From 9a4602a943aee72277e0df16d9a0826ef6eff862 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 11:05:26 +0200 Subject: [PATCH 001/166] Add HAVE_ACCESS --- .../libbuild2/autoconf/checks/HAVE_ACCESS.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h new file mode 100644 index 00000000..153bdf9b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h @@ -0,0 +1,20 @@ +// HAVE_ACCESS : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ACCESS + +/* Since glibc 2.1, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) +# define HAVE_ACCESS 1 +#endif From 3837d8ca5cc442ba74a838dd2f9eb25cc38bc560 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 11:05:36 +0200 Subject: [PATCH 002/166] Add HAVE_ALTIVEC --- .../checks/instructions/HAVE_ALTIVEC.c | 21 +++++++++++++++++++ .../checks/instructions/buildfile | 16 ++++++++++++++ .../checks/instructions/config.h.in | 1 + .../libbuild2/autoconf/checks/HAVE_ALTIVEC.h | 9 ++++++++ 4 files changed, 47 insertions(+) create mode 100644 libbuild2-autoconf-tests/checks/instructions/HAVE_ALTIVEC.c create mode 100644 libbuild2-autoconf-tests/checks/instructions/buildfile create mode 100644 libbuild2-autoconf-tests/checks/instructions/config.h.in create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALTIVEC.h diff --git a/libbuild2-autoconf-tests/checks/instructions/HAVE_ALTIVEC.c b/libbuild2-autoconf-tests/checks/instructions/HAVE_ALTIVEC.c new file mode 100644 index 00000000..761451dc --- /dev/null +++ b/libbuild2-autoconf-tests/checks/instructions/HAVE_ALTIVEC.c @@ -0,0 +1,21 @@ +/* Verify existence of instruction set + * https://github.com/gcc-mirror/gcc/blob/9bbad3685131ec95d970f81bf75f9556d4d92742/gcc/config/rs6000/altivec.h#L33-L35 + */ + +#include "config.h" + +#ifdef HAVE_ALTIVEC +# include +#endif + +int +main () +{ +#ifdef HAVE_ALTIVEC + vector signed int v1 = (vector signed int) { 0 }; + vector signed int v2 = (vector signed int) { 1 }; + v1 = vec_add(v1, v2); +#endif + + return 0; +} diff --git a/libbuild2-autoconf-tests/checks/instructions/buildfile b/libbuild2-autoconf-tests/checks/instructions/buildfile new file mode 100644 index 00000000..102b2e2e --- /dev/null +++ b/libbuild2-autoconf-tests/checks/instructions/buildfile @@ -0,0 +1,16 @@ + +for t : c{*} +{ + exe{$name($t)}: $t h{config} +} + +h{config}: in{config} + +c.poptions += "-I$out_base" + +if ($c.target.system != 'win32-msvc') +{ + c.libs += -pthread + c.poptions += -DTEST_PTHREAD +} + diff --git a/libbuild2-autoconf-tests/checks/instructions/config.h.in b/libbuild2-autoconf-tests/checks/instructions/config.h.in new file mode 100644 index 00000000..1a6fe098 --- /dev/null +++ b/libbuild2-autoconf-tests/checks/instructions/config.h.in @@ -0,0 +1 @@ +#undef HAVE_ALTIVEC diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALTIVEC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALTIVEC.h new file mode 100644 index 00000000..76ca909a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALTIVEC.h @@ -0,0 +1,9 @@ +// HAVE_ALTIVEC + +#undef HAVE_ALTIVEC + +/* PowerPC (POWER1 and later) + compiler flag + */ +#if defined(__VEC__) || defined(__ALTIVEC__) +# define HAVE_ALTIVEC 1 +#endif From c06b2d12eacad49020527ea6d0002b173f3a4b4d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 11:05:50 +0200 Subject: [PATCH 003/166] Add HAVE__ALIGNED_MALLOC --- .../libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h new file mode 100644 index 00000000..e9d9183a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h @@ -0,0 +1,10 @@ +// HAVE__ALIGNED_MALLOC + +#undef HAVE__ALIGNED_MALLOC + +/* Windows + */ +#if defined(_WIN32) +# define HAVE__ALIGNED_MALLOC 1 +#endif + From 105ebcc2aad4b88b949a46e413b530408c643af6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 12:41:44 +0200 Subject: [PATCH 004/166] Add HAVE_ATAN2F --- .../libbuild2/autoconf/checks/HAVE_ATAN2F.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h new file mode 100644 index 00000000..c916f850 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h @@ -0,0 +1,15 @@ +// HAVE_ATAN2F : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_ATAN2F + +/* Since ANSI C89/ISO C99, OpenBSD 2.6 + */ +#if (!defined(BUILD2_AUTOCONF_MACOS) && !defined(__NetBSD__) && !defined(__sun)) && \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) +# define HAVE_ATAN2F 1 +#endif + From 67200128ed7d893830211980df17dec762d1abd4 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 13:22:00 +0200 Subject: [PATCH 005/166] Add HAVE_ATAN2 --- .../libbuild2/autoconf/checks/HAVE_ATAN2.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h new file mode 100644 index 00000000..c79608e2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h @@ -0,0 +1,15 @@ +// HAVE_ATAN2 : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_ATAN2 + +/* Since ANSI C89/ISO C99, OpenBSD 2.6 + */ +#if (!defined(BUILD2_AUTOCONF_MACOS) && !defined(__NetBSD__) && !defined(__sun)) && \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) +# define HAVE_ATAN2 1 +#endif + From 11f05c5ca651d994b652d55cedbe1d12edf3b789 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 14:24:42 +0200 Subject: [PATCH 006/166] Add HAVE_BCRYPT --- .../libbuild2/autoconf/checks/HAVE_BCRYPT.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h new file mode 100644 index 00000000..f31f286b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h @@ -0,0 +1,11 @@ +// HAVE_BCRYPT : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_BCRYPT + +/* Since Version 3 AT&T UNIX, 4.3BSD (OpenBSD), Linux/glibc (no version info) + */ +#if defined(__OpenBSD__) || \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) +# define HAVE_BCRYPT 1 +#endif From 26d6316f9b0c183852c8785c63ec27ca89c0a026 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 14:52:45 +0200 Subject: [PATCH 007/166] Add HAVE_CBRT --- .../libbuild2/autoconf/checks/HAVE_CBRT.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h new file mode 100644 index 00000000..3f498992 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h @@ -0,0 +1,14 @@ +// HAVE_CBRT : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_CBRT + +/* Since C99, POSIX.1-2001, 4.3BSD, OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(_WIN32) +# define HAVE_CBRT 1 +#endif + From 41436a0c61cc7516ba74b4625917d0a9c9cafe15 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 14:59:59 +0200 Subject: [PATCH 008/166] Add HAVE_CBRTF --- .../libbuild2/autoconf/checks/HAVE_CBRTF.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h new file mode 100644 index 00000000..f22dd709 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h @@ -0,0 +1,15 @@ +// HAVE_CBRTF : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_CBRTF + +/* Since C99, POSIX.1-2001, 4.3BSD, OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(_WIN32) +# define HAVE_CBRTF 1 +#endif + + From a6d2ca30cb747e6afe8c7c071d9a010fe17d9295 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 15:06:43 +0200 Subject: [PATCH 009/166] Define HAVE_CBRT and HAVE_CBRTF for mingw --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h | 3 ++- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h index 3f498992..5630e104 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h @@ -8,7 +8,8 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) # define HAVE_CBRT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h index f22dd709..abce72f2 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h @@ -4,11 +4,12 @@ /* Since C99, POSIX.1-2001, 4.3BSD, OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) # define HAVE_CBRTF 1 #endif From 76c04859c90cd423ef957180b95b5fdde4bb3c07 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 15:18:19 +0200 Subject: [PATCH 010/166] Add HAVE_CLOSESOCKET --- .../libbuild2/autoconf/checks/HAVE_CLOSESOCKET.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CLOSESOCKET.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CLOSESOCKET.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CLOSESOCKET.h new file mode 100644 index 00000000..8e7cf863 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CLOSESOCKET.h @@ -0,0 +1,10 @@ +// HAVE_CLOSESOCKET + +#undef HAVE_CLOSESOCKET + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_CLOSESOCKET 1 +#endif From 90700bb2099306c0b847f869c81da517049d430c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 15:21:06 +0200 Subject: [PATCH 011/166] Add HAVE_COMMANDLINETOARGVW --- .../autoconf/checks/HAVE_COMMANDLINETOARGVW.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COMMANDLINETOARGVW.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COMMANDLINETOARGVW.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COMMANDLINETOARGVW.h new file mode 100644 index 00000000..3c518c99 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COMMANDLINETOARGVW.h @@ -0,0 +1,10 @@ +// HAVE_COMMANDLINETOARGVW + +#undef HAVE_COMMANDLINETOARGVW + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_COMMANDLINETOARGVW 1 +#endif From f338630b6a125a0b7a9703efccc3d9c757530016 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 15:26:07 +0200 Subject: [PATCH 012/166] Fix typo in HAVE_ACCESS --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h index 153bdf9b..0aef0686 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h @@ -13,8 +13,8 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) \ + BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - ((defined(__sun) && defined(__SVR4)) + (defined(__sun) && defined(__SVR4)) # define HAVE_ACCESS 1 #endif From 0010432d301f13702e8c6973826b64f6caa07891 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:30:37 +0200 Subject: [PATCH 013/166] Define HAVE_ATAN* for solaris. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h | 3 ++- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h index c79608e2..dcd95b96 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h @@ -9,7 +9,8 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) + BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) || \ + (defined(__sun) && defined(__SVR4)) # define HAVE_ATAN2 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h index c916f850..4001aae7 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h @@ -9,7 +9,8 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 1) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) + BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) || \ + (defined(__sun) && defined(__SVR4)) # define HAVE_ATAN2F 1 #endif From 8eaaf5c7dca3ca55a6a62d94931b0a5648cb996e Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:31:07 +0200 Subject: [PATCH 014/166] Define HAVE_CBRT* for solaris. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h | 6 ++++-- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h index 5630e104..0a9bbf9a 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h @@ -2,14 +2,16 @@ #undef HAVE_CBRT -/* Since C99, POSIX.1-2001, 4.3BSD, OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows +/* Since C99, POSIX.1-2001, 4.3BSD, + * OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows, Solaris */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ defined(_WIN32) || \ - defined(__MINGW32__) + defined(__MINGW32__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_CBRT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h index abce72f2..ef43b196 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h @@ -2,14 +2,16 @@ #undef HAVE_CBRTF -/* Since C99, POSIX.1-2001, 4.3BSD, OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows +/* Since C99, POSIX.1-2001, 4.3BSD, + * OpenBSD 2.1, FreeBSD 2.0, glibc 2.19, Windows, Solaris */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ defined(_WIN32) || \ - defined(__MINGW32__) + defined(__MINGW32__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_CBRTF 1 #endif From 3e69b09e7925cb9ea5262c7bbca19d51d791e6e3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:31:32 +0200 Subject: [PATCH 015/166] Add HAVE_COPYSIGN --- .../libbuild2/autoconf/checks/HAVE_COPYSIGN.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h new file mode 100644 index 00000000..fc29f94b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h @@ -0,0 +1,21 @@ +// HAVE_COPYSIGN : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COPYSIGN + +/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(_WIN32) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + (defined(__sun) && defined(__SVR4)) +# define HAVE_COPYSIGN 1 +#endif From 1b3a6b972caeba3a873d87cb87b3e814f6d34a43 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:39:56 +0200 Subject: [PATCH 016/166] Add HAVE_COPYSIGNF & HAVE_COPYSIGNL --- .../autoconf/checks/HAVE_COPYSIGNF.h | 21 +++++++++++++++++++ .../autoconf/checks/HAVE_COPYSIGNL.h | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h new file mode 100644 index 00000000..b4f11952 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h @@ -0,0 +1,21 @@ +// HAVE_COPYSIGNF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COPYSIGNF + +/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(_WIN32) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + (defined(__sun) && defined(__SVR4)) +# define HAVE_COPYSIGNF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h new file mode 100644 index 00000000..d0db2e63 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h @@ -0,0 +1,21 @@ +// HAVE_COPYSIGNL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COPYSIGNL + +/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(_WIN32) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + (defined(__sun) && defined(__SVR4)) +# define HAVE_COPYSIGNL 1 +#endif From 06c4ccfb271057ee567046aa4a5abc1237fed8de Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:49:08 +0200 Subject: [PATCH 017/166] Update sun/solaris checks. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h | 4 ++-- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h index fc29f94b..a73704d1 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h @@ -6,7 +6,7 @@ #undef HAVE_COPYSIGN -/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 * POSIX.1, SVr4 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ @@ -16,6 +16,6 @@ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - (defined(__sun) && defined(__SVR4)) + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_COPYSIGN 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h index b4f11952..0324b90f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h @@ -16,6 +16,6 @@ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - (defined(__sun) && defined(__SVR4)) + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_COPYSIGNF 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h index d0db2e63..7bfc65ee 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h @@ -6,7 +6,7 @@ #undef HAVE_COPYSIGNL -/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 * POSIX.1, SVr4 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ @@ -16,6 +16,6 @@ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - (defined(__sun) && defined(__SVR4)) + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_COPYSIGNL 1 #endif From 4bb26f74d0343822d3527cc5f9c3245978a639a1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 18:51:16 +0200 Subject: [PATCH 018/166] Add HAVE_COS, HAVE_COSF & HAVE_COSL --- .../libbuild2/autoconf/checks/HAVE_COS.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_COSF.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_COSL.h | 21 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h new file mode 100644 index 00000000..4a9d2db0 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h @@ -0,0 +1,21 @@ +// HAVE_COS : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COS + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS 10.10, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_COS 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h new file mode 100644 index 00000000..00602c38 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h @@ -0,0 +1,21 @@ +// HAVE_COSF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COSF + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS 10.10, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_COSF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h new file mode 100644 index 00000000..61305576 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h @@ -0,0 +1,21 @@ +// HAVE_COSL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_COSL + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS 10.10, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_COSL 1 +#endif From 65909b3ec3fc0c37cec91f1a12757c9c69bacf20 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:13:40 +0200 Subject: [PATCH 019/166] Add HAVE_DEV_IC_BT8XX_H --- .../libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h new file mode 100644 index 00000000..c58372d6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h @@ -0,0 +1,12 @@ +// HAVE_DEV_IC_BT8XX_H : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_DEV_IC_BT8XX_H + +/* OpenBSD 2.3, FreeBSD 2.2, glibc 2.19, Windows, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199805) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) +# define HAVE_DEV_IC_BT8XX_H 1 +#endif From f6c259fbc7a149c67c7d7b88f4e72cd86ff6bea2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:20:46 +0200 Subject: [PATCH 020/166] Add HAVE_DIRECT_H.h --- .../libbuild2/autoconf/checks/HAVE_DIRECT_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRECT_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRECT_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRECT_H.h new file mode 100644 index 00000000..64aef418 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRECT_H.h @@ -0,0 +1,10 @@ +// HAVE_DIRECT_H + +#undef HAVE_DIRECT_H + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_DIRECT_H 1 +#endif From 2f7ad17a2f9851e257aadbaf0d7f98a51fdab9d7 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:49:50 +0200 Subject: [PATCH 021/166] Fix typo in with OpenBSD year --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h | 4 ++-- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h index a73704d1..a0c373ef 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGN.h @@ -11,7 +11,7 @@ */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h index 0324b90f..94106e21 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNF.h @@ -6,12 +6,12 @@ #undef HAVE_COPYSIGNF -/* Since glibc 2.19, BSD 4.3, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 * POSIX.1, SVr4 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h index 7bfc65ee..d7dda8ca 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COPYSIGNL.h @@ -11,7 +11,7 @@ */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(_WIN32) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h index 4a9d2db0..bb4781a0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h @@ -11,7 +11,7 @@ */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h index 00602c38..67a1e20f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSF.h @@ -11,7 +11,7 @@ */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h index 61305576..bcbe823e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COSL.h @@ -11,7 +11,7 @@ */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199518) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ From 04c226f234e259c2776622c5082c616bc3595db0 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:50:07 +0200 Subject: [PATCH 022/166] Add HAVE_DIRENT_H --- .../libbuild2/autoconf/checks/HAVE_DIRENT_H.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRENT_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRENT_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRENT_H.h new file mode 100644 index 00000000..63ea11c7 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DIRENT_H.h @@ -0,0 +1,20 @@ +// HAVE_DIRENT_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_DIRENT_H + +/* Since + * 4.2BSD, FreeBSD 2.2, OpenBSD 2.2, NetBSD 6.0, MacOS 10.10, Mingw-w64 2.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_DIRENT_H 1 +#endif From b9b9eb6473216f11a23478c31a605671c1c14e5a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:52:55 +0200 Subject: [PATCH 023/166] Add HAVE_DOS_PATHS --- .../libbuild2/autoconf/checks/HAVE_DOS_PATHS.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DOS_PATHS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DOS_PATHS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DOS_PATHS.h new file mode 100644 index 00000000..8f79da7c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DOS_PATHS.h @@ -0,0 +1,9 @@ +// HAVE_DOS_PATHS + +#undef HAVE_DOS_PATHS + +/* Windows + */ +#if defined(_WIN32) +# define HAVE_DOS_PATHS 1 +#endif From 0a132b16eb774c2f1bfc7e4adccec3c2600cce8a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 19:59:30 +0200 Subject: [PATCH 024/166] Add HAVE_DXGIDEBUG_H --- .../libbuild2/autoconf/checks/HAVE_DXGIDEBUG_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXGIDEBUG_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXGIDEBUG_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXGIDEBUG_H.h new file mode 100644 index 00000000..bddb4d40 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXGIDEBUG_H.h @@ -0,0 +1,10 @@ +// HAVE_DXGIDEBUG_H + +#undef HAVE_DXGIDEBUG_H + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_DXGIDEBUG_H 1 +#endif From 1e1a92766bb365ffadb01244dc8ca0588d895735 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:01:11 +0200 Subject: [PATCH 025/166] Add HAVE_DXVA_H --- .../libbuild2/autoconf/checks/HAVE_DXVA_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXVA_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXVA_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXVA_H.h new file mode 100644 index 00000000..554a73fa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DXVA_H.h @@ -0,0 +1,10 @@ +// HAVE_DXVA_H + +#undef HAVE_DXVA_H + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_DXVA_H 1 +#endif From 26d3c69e4c3b40a352dc3af0b7edc07c0962aab6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:13:18 +0200 Subject: [PATCH 026/166] Add HAVE_ERF --- .../libbuild2/autoconf/checks/HAVE_ERF.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h new file mode 100644 index 00000000..1d572657 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h @@ -0,0 +1,16 @@ +// HAVE_ERF : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_ERF + +/* Since C99, POSIX.1-2001, 4.3BSD, + * OpenBSD 2.1, FreeBSD 1.0, NetBSD 1.3, glibc 2.19, Windows, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ERF 1 +#endif From fa3e16b9f6589ecd7f5e749d5c47da3e4b274380 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:23:35 +0200 Subject: [PATCH 027/166] Add HAVE_WINDOWS_H --- .../libbuild2/autoconf/checks/HAVE_WINDOWS_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINDOWS_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINDOWS_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINDOWS_H.h new file mode 100644 index 00000000..3bf3c7ae --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINDOWS_H.h @@ -0,0 +1,10 @@ +// HAVE_WINDOWS_H + +#undef HAVE_WINDOWS_H + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_WINDOWS_H 1 +#endif From 2e1d0ce23864e6e2421fd85357f7e819cf9c58d3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:26:04 +0200 Subject: [PATCH 028/166] Add HAVE_WINSOCK2_H --- .../libbuild2/autoconf/checks/HAVE_WINSOCK2_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINSOCK2_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINSOCK2_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINSOCK2_H.h new file mode 100644 index 00000000..390b87fd --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINSOCK2_H.h @@ -0,0 +1,10 @@ +// HAVE_WINSOCK2_H + +#undef HAVE_WINSOCK2_H + +/* Windows, Mingw + */ +#if defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_WINSOCK2_H 1 +#endif From 0aa4903f4e400f0bbda1218e3f1b885ed8962baa Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:38:28 +0200 Subject: [PATCH 029/166] Add HAVE_GETHRTIME --- .../libbuild2/autoconf/checks/HAVE_GETHRTIME.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETHRTIME.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETHRTIME.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETHRTIME.h new file mode 100644 index 00000000..a7ae0066 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETHRTIME.h @@ -0,0 +1,9 @@ +// HAVE_GETHRTIME + +#undef HAVE_GETHRTIME + +/* Solaris + */ +#if ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_GETHRTIME 1 +#endif From a5662ab30e8e7fec7a493199e7d7c0268a74a40a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:46:34 +0200 Subject: [PATCH 030/166] Add HAVE_GETRUSAGE.h --- .../libbuild2/autoconf/checks/HAVE_GETRUSAGE.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETRUSAGE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETRUSAGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETRUSAGE.h new file mode 100644 index 00000000..1cd2334b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETRUSAGE.h @@ -0,0 +1,15 @@ +// HAVE_GETRUSAGE : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_GETRUSAGE + +/* Since POSIX.1-2001, SVr4, 4.3BSD, + * OpenBSD 2.1, FreeBSD 1.0, NetBSD 1.3, glibc 2.33, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 33) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_GETRUSAGE 1 +#endif From d29e704e3cb61359b84644cad361eafd29d694dc Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 20:52:43 +0200 Subject: [PATCH 031/166] Add HAVE_GLOB --- .../libbuild2/autoconf/checks/HAVE_GLOB.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GLOB.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GLOB.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GLOB.h new file mode 100644 index 00000000..a1c4411b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GLOB.h @@ -0,0 +1,15 @@ +// HAVE_GLOB : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_GLOB + +/* Since POSIX.2, + * OpenBSD 2.1, FreeBSD 1.0, NetBSD 1.3, glibc 2.0, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_GLOB 1 +#endif From 25207018f5d2c697af767b0fbd9b91f48cf1d4e6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 21:02:58 +0200 Subject: [PATCH 032/166] Add HAVE_GMTIME_R --- .../libbuild2/autoconf/checks/HAVE_GMTIME_R.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h new file mode 100644 index 00000000..72c69fda --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h @@ -0,0 +1,14 @@ +// HAVE_GMTIME_R : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_GMTIME_R + +/* Since POSIX.2, + * OpenBSD 2.1, FreeBSD 1.0, NetBSD 1.3, glibc 2.0, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_GMTIME_R 1 +#endif From 35f4af9e27a56bb61899011c77d226bddcf65887 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 21:40:57 +0200 Subject: [PATCH 033/166] Add HAVE_ISINF|FINITE|NORMAL|NAN --- .../libbuild2/autoconf/checks/HAVE_ISFINITE.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_ISINF.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_ISNAN.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_ISNORMAL.h | 21 +++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNAN.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNORMAL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h new file mode 100644 index 00000000..839975b4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h @@ -0,0 +1,21 @@ +// HAVE_ISFINITE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISFINITE + +/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200910) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ISFINITE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h new file mode 100644 index 00000000..fee12281 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h @@ -0,0 +1,21 @@ +// HAVE_ISINF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISINF + +/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200910) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ISINF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNAN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNAN.h new file mode 100644 index 00000000..b32e909f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNAN.h @@ -0,0 +1,21 @@ +// HAVE_ISNAN : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISNAN + +/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200910) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ISNAN 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNORMAL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNORMAL.h new file mode 100644 index 00000000..570661ea --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISNORMAL.h @@ -0,0 +1,21 @@ +// HAVE_ISNORMAL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ISNORMAL + +/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200910) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ISNORMAL 1 +#endif From 4e1857411c0622067b79d6515aa47a54486c6703 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 22:51:45 +0200 Subject: [PATCH 034/166] Add HAVE_LSX & HAVE_LASX --- .../libbuild2/autoconf/checks/HAVE_LASX.h | 14 ++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LSX.h | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LASX.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LASX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LASX.h new file mode 100644 index 00000000..bbfe30f4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LASX.h @@ -0,0 +1,14 @@ +// HAVE_LASX + +#undef HAVE_LASX + +/* GCC, Clang: -mlasx (https://gcc.gnu.org/onlinedocs/gcc/LoongArch-Options.html) + * Supported on LoongArch (https://github.com/loongson/la-toolchain-conventions?tab=readme-ov-file#cc-preprocessor-built-in-macro-definitions) + */ +#ifdef __loongarch_asx +# define HAVE_LASX 1 +// LASX implies LSX +# ifndef HAVE_LSX +# define HAVE_LSX 1 +# endif +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSX.h new file mode 100644 index 00000000..1d696142 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSX.h @@ -0,0 +1,10 @@ +// HAVE_LSX + +#undef HAVE_LSX + +/* GCC, Clang: -mlsx (https://gcc.gnu.org/onlinedocs/gcc/LoongArch-Options.html) + * Supported on LoongArch (https://github.com/loongson/la-toolchain-conventions?tab=readme-ov-file#cc-preprocessor-built-in-macro-definitions) + */ +#ifdef __loongarch_sx +# define HAVE_LSX 1 +#endif From 2b932e565e2765f3c3bc4d58ffe852227df3ca1d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 23:33:34 +0200 Subject: [PATCH 035/166] Add HAVE_INET_ATON --- .../libbuild2/autoconf/checks/HAVE_INET_ATON.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_ATON.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_ATON.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_ATON.h new file mode 100644 index 00000000..aee1dd8d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INET_ATON.h @@ -0,0 +1,16 @@ +// HAVE_INET_ATON : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_INET_ATON +/* Since BSD 4.2 (1983) + */ +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_INET_ATON 1 +#endif From e0a367e5e9dbd9337570bffec09d76065041dc57 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 23:45:27 +0200 Subject: [PATCH 036/166] Add HAVE_GETOPT --- .../libbuild2/autoconf/checks/HAVE_GETOPT.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h new file mode 100644 index 00000000..d7b07a1a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h @@ -0,0 +1,14 @@ +// HAVE_GETOPT : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_GETOPT + +/* Since POSIX.2, 4.3BSD + * OpenBSD 2.1, FreeBSD 1.0, NetBSD 1.3, glibc 2.0, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_GETOPT 1 +#endif From b72c7d5cd7be5690f6154e1b49cacc6705b0ad9d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 23:55:33 +0200 Subject: [PATCH 037/166] Fix typo in HAVE_COS --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h index bb4781a0..410c1d10 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_COS.h @@ -9,7 +9,7 @@ /* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS 10.10, Mingw-w64 2.0 * POSIX.1, SVr4 */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 10) || \ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ From 0ddedadf20e429889142b3c87426db9394b8dabe Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 22 Aug 2024 23:59:41 +0200 Subject: [PATCH 038/166] Add HAVE_HYPOT, HAVE_HYPOTF & HAVE_CABS --- .../libbuild2/autoconf/checks/HAVE_CABS.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_HYPOT.h | 20 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_HYPOTF.h | 20 ++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CABS.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOTF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CABS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CABS.h new file mode 100644 index 00000000..7fdab08f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CABS.h @@ -0,0 +1,21 @@ +// HAVE_CABS : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_CABS + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_CABS 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h new file mode 100644 index 00000000..edb7cd8a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h @@ -0,0 +1,20 @@ +// HAVE_HYPOT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_HYPOT + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_HYPOT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOTF.h new file mode 100644 index 00000000..3ad52dc1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOTF.h @@ -0,0 +1,20 @@ +// HAVE_HYPOTF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_HYPOTF + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_HYPOTF 1 +#endif From 867d71a9b8e6ff368054b99f31fae5acd30d06d2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 23 Aug 2024 00:11:15 +0200 Subject: [PATCH 039/166] Add HAVE_LOG2[F] & HAVE_LOG10[F] --- .../libbuild2/autoconf/checks/HAVE_LOG10.h | 19 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LOG10F.h | 19 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LOG2.h | 19 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LOG2F.h | 19 +++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10.h new file mode 100644 index 00000000..888854db --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10.h @@ -0,0 +1,19 @@ +// HAVE_LOG10 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LOG10 + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_LOG10 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h new file mode 100644 index 00000000..0145f58d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h @@ -0,0 +1,19 @@ +// HAVE_LOG10F : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LOG10F + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_LOG10F 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h new file mode 100644 index 00000000..4f0d02d1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h @@ -0,0 +1,19 @@ +// HAVE_LOG2 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LOG2 + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 2.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_LOG2 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h new file mode 100644 index 00000000..9c1698b5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h @@ -0,0 +1,19 @@ +// HAVE_LOG2F : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LOG2F + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) +# define HAVE_LOG2F 1 +#endif From 009d3c5105c93749470c2f99946356a657846fe0 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 23 Aug 2024 01:15:19 +0200 Subject: [PATCH 040/166] Add HAVE_POW[FL] --- .../libbuild2/autoconf/checks/HAVE_POW.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_POWF.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_POWL.h | 21 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POW.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POW.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POW.h new file mode 100644 index 00000000..cd6fbdfb --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POW.h @@ -0,0 +1,21 @@ +// HAVE_POW : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_POW + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_POW 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWF.h new file mode 100644 index 00000000..44951127 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWF.h @@ -0,0 +1,21 @@ +// HAVE_POWF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_POWF + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_POWF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWL.h new file mode 100644 index 00000000..bfb73134 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POWL.h @@ -0,0 +1,21 @@ +// HAVE_POWL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_POWL + +/* Since glibc 2.19, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_POWL 1 +#endif From 10d0a0b78ede12b0f2f9a2ca48cfd1ef68876951 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 23 Aug 2024 01:18:54 +0200 Subject: [PATCH 041/166] Add HAVE_ROUND[FL] --- .../libbuild2/autoconf/checks/HAVE_ROUND.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_ROUNDF.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_ROUNDL.h | 21 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUND.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUND.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUND.h new file mode 100644 index 00000000..9a47d004 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUND.h @@ -0,0 +1,21 @@ +// HAVE_ROUND : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ROUND + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ROUND 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDF.h new file mode 100644 index 00000000..88949be2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDF.h @@ -0,0 +1,21 @@ +// HAVE_ROUNDF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ROUNDF + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ROUNDF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDL.h new file mode 100644 index 00000000..962fa08a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ROUNDL.h @@ -0,0 +1,21 @@ +// HAVE_ROUNDL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ROUNDL + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.0, NetBSD 1.0, MacOS, Mingw-w64 1.0 + * POSIX.1, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ROUNDL 1 +#endif From 861fba850d0f27165be275b0be3fc608e39ee28a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 11:17:20 +0200 Subject: [PATCH 042/166] Add HAVE_ARMV8 --- .../libbuild2/autoconf/checks/HAVE_ARMV8.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMV8.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMV8.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMV8.h new file mode 100644 index 00000000..47cf30ce --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMV8.h @@ -0,0 +1,13 @@ +// HAVE_ARMV8 + +#undef HAVE_ARMV8 + +/* Based on: + * https://developer.arm.com/documentation/dui0774/g/chr1383660321827 + * https://developer.arm.com/documentation/101028/0012/5--Feature-test-macros + */ +#if defined(__ARM_ARCH) +# if __ARM_ARCH == 8 +# define HAVE_ARMV8 1 +# endif +#endif From d37571a30c44294871895ef40a01d48f29009038 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 14:39:12 +0200 Subject: [PATCH 043/166] Add HAVE_AS_ARCHEXT_DOTPROD HAVE_AS_ARCHEXT_I8MM HAVE_AS_ARCH_DIRECTIVE HAVE_AS_DN_DIRECTIVE HAVE_AS_FPU_DIRECTIVE HAVE_AS_FUNC_DIRECTIVE --- .../autoconf/checks/HAVE_AS_ARCHEXT_DOTPROD.h | 10 ++++++++++ .../autoconf/checks/HAVE_AS_ARCHEXT_I8MM.h | 13 +++++++++++++ .../autoconf/checks/HAVE_AS_ARCH_DIRECTIVE.h | 10 ++++++++++ .../autoconf/checks/HAVE_AS_DN_DIRECTIVE.h | 11 +++++++++++ .../autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h | 13 +++++++++++++ .../autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h | 10 ++++++++++ 6 files changed, 67 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_DOTPROD.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_I8MM.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCH_DIRECTIVE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_DOTPROD.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_DOTPROD.h new file mode 100644 index 00000000..e4bfa79e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_DOTPROD.h @@ -0,0 +1,10 @@ +// HAVE_AS_ARCHEXT_DOTPROD + +#undef HAVE_AS_ARCHEXT_DOTPROD + +/* Assembly feature. + * Available in Cortex-A75, Cortex-A55, and Neoverse N1 and later. + */ +#if defined(__ARM_FEATURE_DOTPROD) +# define HAVE_AS_ARCHEXT_DOTPROD 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_I8MM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_I8MM.h new file mode 100644 index 00000000..b59c4832 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCHEXT_I8MM.h @@ -0,0 +1,13 @@ +// HAVE_AS_ARCHEXT_I8MM + +#undef HAVE_AS_ARCHEXT_I8MM + +/* Assembly feature. + * Available in ARMV8 and later. + * See: https://developer.arm.com/documentation/101754/0622/armclang-Reference/Other-Compiler-specific-Features/Supported-architecture-features/Matrix-Multiplication-extension?lang=en + */ +#if defined(__ARM_ARCH) +# if __ARM_ARCH >= 8 +# define HAVE_AS_ARCHEXT_I8MM 1 +# endif +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCH_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCH_DIRECTIVE.h new file mode 100644 index 00000000..325e7596 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_ARCH_DIRECTIVE.h @@ -0,0 +1,10 @@ +// HAVE_AS_ARCH_DIRECTIVE + +#undef HAVE_AS_ARCH_DIRECTIVE + +/* Assembly directive '.arch' + * AFAICS this exists on ARM since very old versions. + */ +#if defined(__ARM_ARCH) +# define HAVE_AS_ARCH_DIRECTIVE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h new file mode 100644 index 00000000..4bdf2e31 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h @@ -0,0 +1,11 @@ +// HAVE_AS_DN_DIRECTIVE + +#undef HAVE_AS_DN_DIRECTIVE + +/* Assembly feature. + * Available in ARMV8 and later. + * See: https://sourceware.org/binutils/docs/as/ARM-Directives.html + */ +#if defined(__ARM_NEON) || defined(__ARM_NEON__) +# define HAVE_AS_DN_DIRECTIVE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h new file mode 100644 index 00000000..8ce2d5e3 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h @@ -0,0 +1,13 @@ +// HAVE_AS_FPU_DIRECTIVE + +#undef HAVE_AS_FPU_DIRECTIVE + +/* Assembly feature. + * Available in ARMV8 and later. + * See: https://sourceware.org/binutils/docs/as/ARM-Directives.html + */ +#if defined(__ARM_ARCH) +# if __ARM_ARCH >= 8 +# define HAVE_AS_FPU_DIRECTIVE 1 +# endif +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h new file mode 100644 index 00000000..2ba1a1c2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h @@ -0,0 +1,10 @@ +// HAVE_AS_FUNC_DIRECTIVE + +#undef HAVE_AS_FUNC_DIRECTIVE + +/* Assembly directive '.func'/'.function' + * AFAICS this exists on ARM since very old versions. + */ +#if defined(__ARM_ARCH) +# define HAVE_AS_FUNC_DIRECTIVE 1 +#endif From 0bcb6171c6ce9bbcb648bd98e94387cb039cf396 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 15:03:07 +0200 Subject: [PATCH 044/166] Add HAVE_AVX512 --- .../libbuild2/autoconf/checks/HAVE_AVX512.h | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512.h new file mode 100644 index 00000000..e47f1f51 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512.h @@ -0,0 +1,22 @@ +// HAVE_AVX512 + +#undef HAVE_AVX512 + +/* GCC, Clang: -march={knl,skylake-avx512, ...} + * + * MSVC: /arch:AVX512 + * + * This code is based on + * * https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-1/additional-predefined-macros.html + * * https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170 + */ + +#if defined(__AVX512CD__) || \ + defined(__AVX512ER__) || \ + defined(__AVX512F__) || \ + defined(__AVX512PF__) || \ + defined(__AVX512BW__) || \ + defined(__AVX512DQ__) || \ + defined(__AVX512VL__) +# define HAVE_AVX512 1 +#endif From c4caa91dea46c200fb594582284b84dec314c16f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 15:13:46 +0200 Subject: [PATCH 045/166] Add HAVE_ASM_HWPROBE_H --- .../libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h new file mode 100644 index 00000000..128b7cc8 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h @@ -0,0 +1,10 @@ +// HAVE_ASM_HWPROBE_H + +#undef HAVE_ASM_HWPROBE_H + +/* AFAICS this is exclusively a Risc-V thing. + */ + +#if defined(__riscv) +# define HAVE_ASM_HWPROBE_H 1 +#endif From cfd932599242d43c6444b076fbfca018728fda86 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 15:30:13 +0200 Subject: [PATCH 046/166] Add HAVE_ASM_TYPES_H --- .../libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h new file mode 100644 index 00000000..fbda0ee6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h @@ -0,0 +1,9 @@ +// HAVE_ASM_TYPES_H + +#undef HAVE_ASM_TYPES_H + +/* Since Linux 2.2. + */ +#if defined(__linux__) +# define HAVE_ASM_TYPES_H 1 +#endif From 44d61d19520c58ce495732074a8a0a16298f0931 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 15:41:29 +0200 Subject: [PATCH 047/166] Add HAVE_AS_OBJECT_ARCH_DIRECTIVE --- .../autoconf/checks/HAVE_AS_OBJECT_ARCH_DIRECTIVE.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_OBJECT_ARCH_DIRECTIVE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_OBJECT_ARCH_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_OBJECT_ARCH_DIRECTIVE.h new file mode 100644 index 00000000..1991f11d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_OBJECT_ARCH_DIRECTIVE.h @@ -0,0 +1,10 @@ +// HAVE_AS_OBJECT_ARCH_DIRECTIVE + +#undef HAVE_AS_OBJECT_ARCH_DIRECTIVE + +/* Assembly directive '.object_arch' + * AFAICS this exists on ARM since very old versions. + */ +#if defined(__ARM_ARCH) +# define HAVE_AS_OBJECT_ARCH_DIRECTIVE 1 +#endif From 0d6e596f391844e6b8a1438f5e08c48cc9686c5a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 16:00:14 +0200 Subject: [PATCH 048/166] Add HAVE_AVX512ICL --- .../libbuild2/autoconf/checks/HAVE_AVX512ICL.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512ICL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512ICL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512ICL.h new file mode 100644 index 00000000..c8d3f95d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AVX512ICL.h @@ -0,0 +1,15 @@ +// HAVE_AVX512ICL + +#undef HAVE_AVX512ICL + +/* GCC, Clang: -m={avx512vbmi, avx512vbmi2, avx512vnni, avx512bf16, avx512fp16} + * + * MSVC: /arch:AVX512 + * + * Note: This refers to additional AVX-512 extensions that were introduced starting with Ice Lake (ICL) + */ + +#if defined(__AVX512VBMI__) || \ + defined(__AVX512VNNI__) +# define HAVE_AVX512ICL 1 +#endif From 2b492a1fbf59c209b16744871209053de09dde30 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 16:04:22 +0200 Subject: [PATCH 049/166] Add HAVE_DCBZ --- .../libbuild2/autoconf/checks/HAVE_DCBZL.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DCBZL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DCBZL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DCBZL.h new file mode 100644 index 00000000..dc6230c6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DCBZL.h @@ -0,0 +1,9 @@ +// HAVE_DCBZL + +#undef HAVE_DCBZL + +/* Since PowerPC 603 processor (mid-1990s). + */ +#if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) +# define HAVE_DCBZL 1 +#endif From 85b8b9a43f0323503bcfcf82bbdd10ef65546f7c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 16:36:41 +0200 Subject: [PATCH 050/166] Add HAVE_ASM_EBP --- .../libbuild2/autoconf/checks/HAVE_ASM_EBP.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h new file mode 100644 index 00000000..d6326224 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h @@ -0,0 +1,14 @@ +// HAVE_ASM_EBP + +#undef HAVE_ASM_EBP + +/* x86 excluding ARM, PowerPC, MIPS & RISC-V. + */ +#if defined(__i386__) +# if !defined(__arm__) && !defined(__powerpc__) && \ + !defined(__ppc__) && \ + !defined(__mips__) && \ + !defined(__riscv__) && !defined(__riscv) +# define HAVE_ASM_EBP 1 +# endif +#endif From e4c8c20acecd3f308d6fed14262059bd94bff80c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 16:42:34 +0200 Subject: [PATCH 051/166] Add HAVE_ASM_EBX --- .../libbuild2/autoconf/checks/HAVE_ASM_EBX.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h new file mode 100644 index 00000000..5e56ee7f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h @@ -0,0 +1,14 @@ +// HAVE_ASM_EBX + +#undef HAVE_ASM_EBX + +/* x86 excluding ARM, PowerPC, MIPS & RISC-V. + */ +#if defined(__i386__) +# if !defined(__arm__) && !defined(__powerpc__) && \ + !defined(__ppc__) && \ + !defined(__mips__) && \ + !defined(__riscv__) && !defined(__riscv) +# define HAVE_ASM_EBX 1 +# endif +#endif From 9de48e95b36e5ce625216d68ea2627a7c396b345 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 16:53:24 +0200 Subject: [PATCH 052/166] Add HAVE_EXP[2F] --- .../libbuild2/autoconf/checks/HAVE_EXP.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_EXP2.h | 20 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_EXP2F.h | 21 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_EXPF.h | 21 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2F.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXPF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP.h new file mode 100644 index 00000000..160d92d0 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP.h @@ -0,0 +1,21 @@ +// HAVE_EXP : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_EXP + +/* Since glibc 2.1, 4.3BSD, FreeBSD 2.3, OpenBSD 4.4, NetBSD 6.0, MacOS v?, Mingw-w64 2.0 + * Windows. + * NOTE: This just replicates HAVE_EXP2.h + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200811) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(__APPLE__) || \ + defined(_WIN32) +# define HAVE_EXP 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2.h new file mode 100644 index 00000000..4d1e4949 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2.h @@ -0,0 +1,20 @@ +// HAVE_EXP2 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_EXP2 + +/* Since glibc 2.1, 4.3BSD, FreeBSD 2.3, OpenBSD 4.4, NetBSD 6.0, MacOS v?, Mingw-w64 2.0 + * Windows. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200811) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(__APPLE__) || \ + defined(_WIN32) +# define HAVE_EXP2 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2F.h new file mode 100644 index 00000000..220d4dba --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXP2F.h @@ -0,0 +1,21 @@ +// HAVE_EXP2F : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_EXP2F + +/* Since glibc 2.1, 4.3BSD, FreeBSD 2.3, OpenBSD 4.4, NetBSD 6.0, MacOS v?, Mingw-w64 2.0 + * Windows. + * NOTE: This just replicates HAVE_EXP2.h + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200811) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(__APPLE__) || \ + defined(_WIN32) +# define HAVE_EXP2F 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXPF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXPF.h new file mode 100644 index 00000000..73b368e9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_EXPF.h @@ -0,0 +1,21 @@ +// HAVE_EXPF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_EXPF + +/* Since glibc 2.1, 4.3BSD, FreeBSD 2.3, OpenBSD 4.4, NetBSD 6.0, MacOS v?, Mingw-w64 2.0 + * Windows. + * NOTE: This just replicates HAVE_EXP2.h + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200811) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(__APPLE__) || \ + defined(_WIN32) +# define HAVE_EXPF 1 +#endif From 694cb74aaf27a7d29b46250fec156387d7114cd1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:10:50 +0200 Subject: [PATCH 053/166] Add HAVE_MKSTEMP --- .../libbuild2/autoconf/checks/HAVE_MKSTEMP.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MKSTEMP.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MKSTEMP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MKSTEMP.h new file mode 100644 index 00000000..a56bbde5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MKSTEMP.h @@ -0,0 +1,18 @@ +// HAVE_MKSTEMP : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MKSTEMP + +/* Since glibc 2.1, 4.3BSD, FreeBSD 1.0, OpenBSD 2.2, NetBSD 1.3, MacOS v?, Mingw-w64 2.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ + defined(__APPLE__) +# define HAVE_MKSTEMP 1 +#endif From 6f2d2fad3b200db6db18d7f173c1e1ed79439a3c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:18:36 +0200 Subject: [PATCH 054/166] Add HAVE_FMA[3|4] --- .../libbuild2/autoconf/checks/HAVE_FMA3.h | 11 +++++++++++ .../libbuild2/autoconf/checks/HAVE_FMA4.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h new file mode 100644 index 00000000..98f6403c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h @@ -0,0 +1,11 @@ +// HAVE_FMA3 + +#undef HAVE_FMA3 + +/* GCC, Clang: -mfma + * + * MSVC: /arch:AVX2 + */ +#ifdef __FMA__ +# define HAVE_FMA3 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h new file mode 100644 index 00000000..459d2268 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h @@ -0,0 +1,11 @@ +// HAVE_FMA4 + +#undef HAVE_FMA4 + +/* GCC, Clang: -mfma4 + * + * MSVC: /arch:AVX2 + */ +#ifdef __FMA4__ +# define HAVE_FMA4 1 +#endif From 4edfcc0bde87bc1571f229c69cdb513922f91d18 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:29:04 +0200 Subject: [PATCH 055/166] Add HAVE_I8MM & HAVE_I686 --- .../libbuild2/autoconf/checks/HAVE_I686.h | 9 +++++++++ .../libbuild2/autoconf/checks/HAVE_I8MM.h | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I8MM.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h new file mode 100644 index 00000000..96cd0fa9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h @@ -0,0 +1,9 @@ +// HAVE_I686 + +#undef HAVE_I686 + +/* Defined for i686 processors (Pentium Pro and later) + */ +#if defined(__i686__) +# define HAVE_I686 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I8MM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I8MM.h new file mode 100644 index 00000000..f818c3e2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I8MM.h @@ -0,0 +1,10 @@ +// HAVE_I8MM + +#undef HAVE_I8MM + +/* Signals that the target platform supports the I8MM instructions. + * __AMX_INT8__: This macro is defined if the compiler supports AMX-INT8 instructions. + */ +#if defined(__AMX_INT8__) +# define HAVE_I8MM 1 +#endif From 971435dad9529c53f04c56c1d38c81db34e84433 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:36:33 +0200 Subject: [PATCH 056/166] Add HAVE_LOCALTIME_R --- .../autoconf/checks/HAVE_LOCALTIME_R.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h new file mode 100644 index 00000000..ab3a6c39 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h @@ -0,0 +1,21 @@ +// HAVE_LOCALTIME_R : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LOCALTIME_R + +/* Since glibc 2.0, 4.3BSD, FreeBSD 3.0, OpenBSD 2.1, NetBSD 1.2, MacOS 10.0, Mingw-w64 2.0 + * POSIX.1c, SVr4 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 2) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_LOCALTIME_R 1 +#endif From b3a23c72006f2a2b7bb687469ab357a44a422dfb Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:41:45 +0200 Subject: [PATCH 057/166] Add HAVE_LOCAL_ALIGNED --- .../libbuild2/autoconf/checks/HAVE_LOCAL_ALIGNED.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCAL_ALIGNED.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCAL_ALIGNED.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCAL_ALIGNED.h new file mode 100644 index 00000000..d7c47fc1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCAL_ALIGNED.h @@ -0,0 +1,10 @@ +// HAVE_LOCAL_ALIGNED + +#undef HAVE_LOCAL_ALIGNED + +/* Platforms and compilers supporting alignment attributes + */ + #if (defined(__SSE__) || defined(__AVX__) || defined(__ARM_NEON__) || defined(__ALTIVEC__)) \ + && (defined(__GNUC__) || defined(_MSC_VER)) +# define HAVE_LOCAL_ALIGNED 1 +#endif From e8b2d6bae1fb4a956c9b8c50980b028cbd0337ff Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:45:21 +0200 Subject: [PATCH 058/166] Add HAVE_FAST_UNALIGNED --- .../autoconf/checks/HAVE_FAST_UNALIGNED.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h new file mode 100644 index 00000000..43515aa9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h @@ -0,0 +1,19 @@ +// HAVE_FAST_UNALIGNED + +#undef HAVE_FAST_UNALIGNED + +/* Platforms and compilers supporting efficient unaligned memory access. + */ +#if defined(__x86_64__) || defined(__i386__) /* x86 and x86-64 (Intel and AMD) */ +/* x86 and x86-64 platforms have efficient unaligned memory access */ +# define HAVE_FAST_UNALIGNED 1 +#elif defined(__ARM_ARCH) && (__ARM_ARCH >= 7) /* ARMv7-A or later */ +/* ARMv7-A and ARMv8-A architectures support fast unaligned access */ +# define HAVE_FAST_UNALIGNED 1 +#elif defined(__aarch64__) /* ARM 64-bit (ARMv8) */ +/* ARMv8-A (64-bit) has fast unaligned access */ +# define HAVE_FAST_UNALIGNED 1 +#elif defined(__POWERPC__) && defined(__ALTIVEC__) /* PowerPC with AltiVec support */ +/* Some PowerPC platforms with AltiVec might support efficient unaligned access */ +# define HAVE_FAST_UNALIGNED 1 +#endif From 23207117208002cfc91f2a8ecb7c3930b1f9eeeb Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:53:52 +0200 Subject: [PATCH 059/166] Add HAVE_LOONGSON[2|3] --- .../libbuild2/autoconf/checks/HAVE_LOONGSON2.h | 11 +++++++++++ .../libbuild2/autoconf/checks/HAVE_LOONGSON3.h | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON2.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON3.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON2.h new file mode 100644 index 00000000..c2f76c88 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON2.h @@ -0,0 +1,11 @@ +// HAVE_LOONGSON2 + +#undef HAVE_LOONGSON2 + +/* MIPS-based Loongson processor. + */ +#ifdef __loongson__ + #if defined(__loongson2f__) || defined(__loongson2e__) + #define HAVE_LOONGSON2 1 + #endif +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON3.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON3.h new file mode 100644 index 00000000..9c88f58b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOONGSON3.h @@ -0,0 +1,11 @@ +// HAVE_LOONGSON3 + +#undef HAVE_LOONGSON3 + +/* MIPS-based Loongson processor. + */ +#ifdef __loongson__ + #if defined(__loongson3__) + #define HAVE_LOONGSON3 1 + #endif +#endif From fba039109c00486e6d3ae53e7ab271f4d1dddc40 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 6 Sep 2024 17:58:13 +0200 Subject: [PATCH 060/166] Add HAVE_PRAGMA_DEPRECATED --- .../autoconf/checks/HAVE_PRAGMA_DEPRECATED.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRAGMA_DEPRECATED.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRAGMA_DEPRECATED.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRAGMA_DEPRECATED.h new file mode 100644 index 00000000..0a5cac89 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRAGMA_DEPRECATED.h @@ -0,0 +1,11 @@ +// HAVE_PRAGMA_DEPRECATED + +#undef HAVE_PRAGMA_DEPRECATED + +/* Support for '#pragma deprecated' + */ +#if (defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)) \ + && !(defined(__sun__) && !defined(__GNUC__)) + // The compiler supports pragma deprecated (GCC, Clang, MSVC, MinGW) +# define HAVE_PRAGMA_DEPRECATED 1 +#endif From 6a60f744c4a46196f7fe16725c2e8defa65ceb60 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 14:33:43 +0200 Subject: [PATCH 061/166] Add HAVE_IBM_ASM --- .../libbuild2/autoconf/checks/HAVE_IBM_ASM.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_IBM_ASM.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_IBM_ASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_IBM_ASM.h new file mode 100644 index 00000000..59ef6805 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_IBM_ASM.h @@ -0,0 +1,12 @@ +// HAVE_IBM_ASM + +#undef HAVE_IBM_ASM + +/* IBM architecture that supports IBM assembly language, + * specifically PowerPC (PPC) or IBM Z (z/Architecture). + */ +#if (defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) || defined(__powerpc64__) || defined(__PPC64__) || \ + defined(__s390__) || defined(__s390x__) || \ + defined(__IBMC__) || defined(__IBMCPP__)) +# define HAVE_IBM_ASM 1 +#endif From bc234d3d2c8446417f1cbfbb06af795a67c1fc76 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 14:40:36 +0200 Subject: [PATCH 062/166] Add HAVE_INLINE_ASM, HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS & HAVE_INLINE_ASM_NONLOCAL_LABELS --- .../libbuild2/autoconf/checks/HAVE_INLINE_ASM.h | 13 +++++++++++++ .../checks/HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS.h | 12 ++++++++++++ .../checks/HAVE_INLINE_ASM_NONLOCAL_LABELS.h | 12 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_NONLOCAL_LABELS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM.h new file mode 100644 index 00000000..df3c2ea4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM.h @@ -0,0 +1,13 @@ +// HAVE_INLINE_ASM + +#undef HAVE_INLINE_ASM + +/* Indicates whether inline assembly is supported by the compiler. + * Note: MSVC supports inline assembly but only in 32-bit mode. + Inline assembly is not supported in 64-bit MSVC + */ +#if (defined(__GNUC__) || defined(__clang__) || defined(__INTEL_COMPILER) || \ + (defined(_MSC_VER) && !defined(_M_X64)) || defined(__IBMC__) || defined(__IBMCPP__) || \ + defined(__ARMCC_VERSION)) +# define HAVE_INLINE_ASM 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS.h new file mode 100644 index 00000000..fcd9c3be --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS.h @@ -0,0 +1,12 @@ +// HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS + +#undef HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS + +/* Indicates if the compiler supports direct symbol references in inline assembly. + * GCC and Clang support direct symbol references in inline assembly. + * MSVC allows direct symbol references only in 32-bit mode (not in 64-bit mode). + */ +#if defined(__GNUC__) || defined(__clang__) || \ + (defined(_MSC_VER) && !defined(_M_X64)) +# define HAVE_INLINE_ASM_DIRECT_SYMBOL_REFS 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_NONLOCAL_LABELS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_NONLOCAL_LABELS.h new file mode 100644 index 00000000..6b04ac69 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INLINE_ASM_NONLOCAL_LABELS.h @@ -0,0 +1,12 @@ +// HAVE_INLINE_ASM_NONLOCAL_LABELS + +#undef HAVE_INLINE_ASM_NONLOCAL_LABELS + +/* Indicates if the compiler supports non-local labels in inline assembly. + * GCC and Clang support non-local labels in inline assembly. + * MSVC might support non-local labels in 32-bit mode, but not in 64-bit mode. + */ +#if defined(__GNUC__) || defined(__clang__) || \ + (defined(_MSC_VER) && !defined(_M_X64)) +# define HAVE_INLINE_ASM_NONLOCAL_LABELS 1 +#endif From 5ef0f5e60fe941349852e40cd79f41606fb19e6a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 16:37:31 +0200 Subject: [PATCH 063/166] Add HAVE_LDBRX --- .../libbuild2/autoconf/checks/HAVE_LDBRX.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDBRX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDBRX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDBRX.h new file mode 100644 index 00000000..c8e61e79 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDBRX.h @@ -0,0 +1,10 @@ +// HAVE_LDBRX + +#undef HAVE_LDBRX + +/* Load Doubleword Byte-Reversed Indexed instruction, + * which is specific to the PowerPC (PPC) architecture. + */ +#if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) || defined(__powerpc64__) || defined(__PPC64__) +# define HAVE_LDBRX 1 +#endif From 531bf1bbd6bdf2a6c29a5c463f9f77e90fecd0d9 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 16:41:23 +0200 Subject: [PATCH 064/166] Add HAVE_LDEXPF --- .../libbuild2/autoconf/checks/HAVE_LDEXPF.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h new file mode 100644 index 00000000..140ab48f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h @@ -0,0 +1,14 @@ +// HAVE_LDEXPF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LDEXPF + +/* Availability of the ldexpf() function, which is part of the C standard library. + */ +#if (__STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__clang__) || \ + (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(_POSIX_VERSION) +# define HAVE_LDEXPF 1 +#endif From 4214f83698eff3e18fd568eba019352b89c396f9 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 16:45:20 +0200 Subject: [PATCH 065/166] Add HAVE_LIBC_MSVCRT --- .../libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h new file mode 100644 index 00000000..32ec74d8 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h @@ -0,0 +1,9 @@ +// HAVE_LIBC_MSVCRT + +#undef HAVE_LIBC_MSVCRT + +/* Presence of MSVCRT (Microsoft Visual C++ Runtime Library) in the C standard library. + */ +#if defined(_MSC_VER) || defined(__MINGW32__) +# define HAVE_LIBC_MSVCRT 1 +#endif From dad00b4ce6934b3a73620f31f980933130275765 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:36:45 +0200 Subject: [PATCH 066/166] Add HAVE_MACHINE_IOCTL_METEOR_H & HAVE_MACHINE_IOCTL_BT848_H --- .../autoconf/checks/HAVE_MACHINE_IOCTL_BT848_H.h | 14 ++++++++++++++ .../autoconf/checks/HAVE_MACHINE_IOCTL_METEOR_H.h | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_BT848_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_METEOR_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_BT848_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_BT848_H.h new file mode 100644 index 00000000..c5b2f211 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_BT848_H.h @@ -0,0 +1,14 @@ +// HAVE_MACHINE_IOCTL_BT848_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MACHINE_IOCTL_BT848_H + +/* Presence of . + * Since FreeBSD 4.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) +# define HAVE_MACHINE_IOCTL_BT848_H 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_METEOR_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_METEOR_H.h new file mode 100644 index 00000000..f76f34dd --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MACHINE_IOCTL_METEOR_H.h @@ -0,0 +1,14 @@ +// HAVE_MACHINE_IOCTL_METEOR_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MACHINE_IOCTL_METEOR_H + +/* Presence of . + * Since FreeBSD 4.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) +# define HAVE_MACHINE_IOCTL_METEOR_H 1 +#endif From 73ca233061e9ca8439e4c0adcd4473a1282f2cab Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:37:02 +0200 Subject: [PATCH 067/166] Add HAVE_MALLOC_H --- .../libbuild2/autoconf/checks/HAVE_MALLOC_H.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h new file mode 100644 index 00000000..c461adfa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h @@ -0,0 +1,12 @@ +// HAVE_MALLOC_H + +#undef HAVE_MALLOC_H + +/* Presence of malloc.h. + * Supported on Linux (deprecated since glibc 2.0), Windows * Mingw + */ +#if (defined(__GLIBC__) && __GLIBC__ < 2) || \ + defined(_WIN32) || \ + defined(__MINGW32__) +# define HAVE_MALLOC_H 1 +#endif From 4b65c5199416c10eb3a6f0b1a8a86734336d48e3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:39:05 +0200 Subject: [PATCH 068/166] Add HAVE_MEMALIGN & HAVE_POSIX_MEMALIGN --- .../libbuild2/autoconf/checks/HAVE_MEMALIGN.h | 15 +++++++++++++++ .../autoconf/checks/HAVE_POSIX_MEMALIGN.h | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MEMALIGN.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POSIX_MEMALIGN.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MEMALIGN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MEMALIGN.h new file mode 100644 index 00000000..cc41a929 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MEMALIGN.h @@ -0,0 +1,15 @@ +// HAVE_MEMALIGN : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_MEMALIGN + +/* Presence of memalign() function. + * Since glibc 2.0, Solaris + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_MEMALIGN 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POSIX_MEMALIGN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POSIX_MEMALIGN.h new file mode 100644 index 00000000..43cd40e9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_POSIX_MEMALIGN.h @@ -0,0 +1,17 @@ +// HAVE_POSIX_MEMALIGN : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_POSIX_MEMALIGN + +/* Presence of memalign() function. + * Since FreeBSD 7.0, OpenBSD 5.5, NetBSD 3.0, MacOS 10.6 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201405) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) +# define HAVE_POSIX_MEMALIGN 1 +#endif From 9d94af9b6e1e5c2011278cd02374434722c5d837 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:39:36 +0200 Subject: [PATCH 069/166] Add HAVE_MAPVIEWOFFILE --- .../libbuild2/autoconf/checks/HAVE_MAPVIEWOFFILE.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MAPVIEWOFFILE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MAPVIEWOFFILE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MAPVIEWOFFILE.h new file mode 100644 index 00000000..cb79f2ea --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MAPVIEWOFFILE.h @@ -0,0 +1,10 @@ +// HAVE_MAPVIEWOFFILE + +#undef HAVE_MAPVIEWOFFILE + +/* Presence of MapViewOfFile() function. + * Supported on Windows + */ +#if defined(_WIN32) +# define HAVE_MAPVIEWOFFILE 1 +#endif From a6326a8f26266a0c8399c6e4b6537285d2c0e096 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:50:31 +0200 Subject: [PATCH 070/166] Add HAVE_DEV_BKTR_IOCTL_BT848_H & HAVE_DEV_BKTR_IOCTL_METEOR_H --- .../autoconf/checks/HAVE_DEV_BKTR_IOCTL_BT848_H.h | 14 ++++++++++++++ .../autoconf/checks/HAVE_DEV_BKTR_IOCTL_METEOR_H.h | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_BT848_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_METEOR_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_BT848_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_BT848_H.h new file mode 100644 index 00000000..a5ff2d70 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_BT848_H.h @@ -0,0 +1,14 @@ +// HAVE_DEV_BKTR_IOCTL_BT848_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_DEV_BKTR_IOCTL_BT848_H + +/* Presence of . + * Since FreeBSD 4.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) +# define HAVE_DEV_BKTR_IOCTL_BT848_H 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_METEOR_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_METEOR_H.h new file mode 100644 index 00000000..64db2909 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_BKTR_IOCTL_METEOR_H.h @@ -0,0 +1,14 @@ +// HAVE_DEV_BKTR_IOCTL_METEOR_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_DEV_BKTR_IOCTL_METEOR_H + +/* Presence of . + * Since FreeBSD 4.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) +# define HAVE_DEV_BKTR_IOCTL_METEOR_H 1 +#endif From b99349993098b5240ff15d29517b4cfb581052f8 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 17:51:34 +0200 Subject: [PATCH 071/166] Minor cleanup. --- .../libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h | 2 +- .../libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h index 128b7cc8..108d482e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_HWPROBE_H.h @@ -5,6 +5,6 @@ /* AFAICS this is exclusively a Risc-V thing. */ -#if defined(__riscv) +#if defined(__riscv__) || defined(__riscv) # define HAVE_ASM_HWPROBE_H 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h index c58372d6..aa71a369 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h @@ -2,7 +2,7 @@ #undef HAVE_DEV_IC_BT8XX_H -/* OpenBSD 2.3, FreeBSD 2.2, glibc 2.19, Windows, Solaris +/* OpenBSD 2.3, FreeBSD 2.2, glibc 2.19, NetBSD 1.5 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h index 140ab48f..ceec539b 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LDEXPF.h @@ -1,8 +1,4 @@ -// HAVE_LDEXPF : BUILD2_AUTOCONF_LIBC_VERSION - -#ifndef BUILD2_AUTOCONF_LIBC_VERSION -# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included -#endif +// HAVE_LDEXPF #undef HAVE_LDEXPF From dcbaf21f53ec1d93b3009f38dd35627dd431b44c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 18:20:01 +0200 Subject: [PATCH 072/166] Add HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h --- .../checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h | 16 ++++++++++++++++ .../HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA.h | 14 ++++++++++++++ .../autoconf/checks/HAVE_KCMVIDEOCODECTYPE_VP9.h | 14 ++++++++++++++ ...AVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h | 14 ++++++++++++++ ...E_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h | 14 ++++++++++++++ ...VIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h | 14 ++++++++++++++ ...MAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h | 14 ++++++++++++++ ...VIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h | 14 ++++++++++++++ .../HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h | 14 ++++++++++++++ ...XELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h | 14 ++++++++++++++ ...XELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h | 14 ++++++++++++++ ...XELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h | 15 +++++++++++++++ ...IXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h | 15 +++++++++++++++ ...XELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h | 15 +++++++++++++++ ...XELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h | 15 +++++++++++++++ ...IXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h | 15 +++++++++++++++ 16 files changed, 231 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_VP9.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h new file mode 100644 index 00000000..c8720150 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h @@ -0,0 +1,16 @@ +// HAVE_KCMVIDEOCODECTYPE_HEVC : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCMVIDEOCODECTYPE_HEVC + +/* HEVC (High-Efficiency Video Coding), + * also known as H.265 codec, in the media framework. + * Since MacOS 10.13/iOS 11, Windows 10 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) || \ + (defined(_WIN32) && (_WIN32_WINNT >= _WIN32_WINNT_WIN10)) +# define HAVE_KCMVIDEOCODECTYPE_HEVC 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA.h new file mode 100644 index 00000000..94773aec --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA.h @@ -0,0 +1,14 @@ +// HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA + +/* HEVC (High-Efficiency Video Coding) with Alpha Channel. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCMVIDEOCODECTYPE_HEVCWITHALPHA 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_VP9.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_VP9.h new file mode 100644 index 00000000..76b60c88 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_VP9.h @@ -0,0 +1,14 @@ +// HAVE_KCMVIDEOCODECTYPE_VP9 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCMVIDEOCODECTYPE_VP9 + +/* VP9 codec, an open-source codec developed by Google. + * Since MacOS 10.15/iOS 13 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 15) +# define HAVE_KCMVIDEOCODECTYPE_VP9 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h new file mode 100644 index 00000000..abbcd1c1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 + +/* ITU-R BT.2020 color primaries, used in Ultra HD and HDR video. + * Since MacOS 10.11/iOS 9 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) +# define HAVE_KCVIMAGEBUFFERCOLORPRIMARIES_ITU_R_2020 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h new file mode 100644 index 00000000..02dc8589 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 + +/* ITU-R BT.2020 transfer function for HDR video. + * Since MacOS 10.11/iOS 9 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) +# define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2020 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h new file mode 100644 index 00000000..75a43044 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG + +/* ITU-R BT.2100 HLG (Hybrid Log-Gamma) transfer function, used in HDR video. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_ITU_R_2100_HLG 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h new file mode 100644 index 00000000..9ca57095 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ + +/* SMPTE ST 2084 PQ (Perceptual Quantizer) transfer function used in HDR10. + * Since MacOS 10.11/iOS 9 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) +# define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_2084_PQ 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h new file mode 100644 index 00000000..122130aa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 + +/* SMPTE ST 428-1 transfer function, used in digital cinema. + * Since MacOS 10.12/iOS 10 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 12) +# define HAVE_KCVIMAGEBUFFERTRANSFERFUNCTION_SMPTE_ST_428_1 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h new file mode 100644 index 00000000..b7b9c01c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020.h @@ -0,0 +1,14 @@ +// HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 + +/* ITU-R BT.2020 YCbCr matrix, used in UHDTV color space conversions. + * Since MacOS 10.11/iOS 9 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) +# define HAVE_KCVIMAGEBUFFERYCBCRMATRIX_ITU_R_2020 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..8e9ef3b2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE.h @@ -0,0 +1,14 @@ +// HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE + +/* 420 YCbCr 10-bit biplanar video range pixel format. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..0aaabe90 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE.h @@ -0,0 +1,14 @@ +// HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE + +/* 422 YCbCr 10-bit biplanar video range pixel format. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_422YPCBCR10BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..698ea85b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE.h @@ -0,0 +1,15 @@ +// HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE + +/* 422 YCbCr 16-bit biplanar video range pixel format, + * typically used for higher bit depth color processing in HDR. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_422YPCBCR16BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..6a6ea9b2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE.h @@ -0,0 +1,15 @@ +// HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE + +/* 422 YCbCr 8-bit biplanar video range pixel format, + * commonly used in SD and HD video content. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_422YPCBCR8BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..5f4b22de --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE.h @@ -0,0 +1,15 @@ +// HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE + +/* 444 YCbCr 10-bit biplanar video range pixel format, + * commonly used in HDR workflows. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_444YPCBCR10BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..7b5be7af --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE.h @@ -0,0 +1,15 @@ +// HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE + +/* 444 YCbCr 16-bit biplanar video range pixel format, + * often used in higher-end video production and HDR. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_444YPCBCR16BIPLANARVIDEORANGE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h new file mode 100644 index 00000000..6fb6480f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE.h @@ -0,0 +1,15 @@ +// HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE + +/* 444 YCbCr 8-bit biplanar video range pixel format, + * commonly used in professional video production. + * Since MacOS 10.13/iOS 11 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) +# define HAVE_KCVPIXELFORMATTYPE_444YPCBCR8BIPLANARVIDEORANGE 1 +#endif From 5482688a47ca3be444af14b2294af7ac78f0f681 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 18:35:44 +0200 Subject: [PATCH 073/166] Add HAVE_PRCTL --- .../libbuild2/autoconf/checks/HAVE_PRCTL.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRCTL.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRCTL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRCTL.h new file mode 100644 index 00000000..c45dbdaa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PRCTL.h @@ -0,0 +1,14 @@ +// HAVE_PRCTL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PRCTL + +/* Presence of the prctl() system call. + * Since glibc 2.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) +# define HAVE_PRCTL 1 +#endif From c4abb631cd6c4ea2eebd1f7df7bce4bdff7039e0 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 18:36:50 +0200 Subject: [PATCH 074/166] Add HAVE_PTHREAD_{CANCEL, NP_H, SETNAME_NP, SET_NAME_NP} --- .../autoconf/checks/HAVE_PTHREAD_CANCEL.h | 19 +++++++++++++++++++ .../autoconf/checks/HAVE_PTHREAD_NP_H.h | 14 ++++++++++++++ .../autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h | 18 ++++++++++++++++++ .../checks/HAVE_PTHREAD_SET_NAME_NP.h | 18 ++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_CANCEL.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_NP_H.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_CANCEL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_CANCEL.h new file mode 100644 index 00000000..7193aa70 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_CANCEL.h @@ -0,0 +1,19 @@ +// HAVE_PTHREAD_CANCEL : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PTHREAD_CANCEL + +/* Presence of the pthread_cancel() function. + * Since glibc 2.0, FreeBSD 5.2, OpenBSD 3.3, NetBSD 3.0, MacOS 10.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 2) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200305) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_PTHREAD_CANCEL 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_NP_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_NP_H.h new file mode 100644 index 00000000..646ebfbe --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_NP_H.h @@ -0,0 +1,14 @@ +// HAVE_PTHREAD_NP_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PTHREAD_NP_H + +/* Existence of the pthread_np.h header, which provides non-standard POSIX (NP). + * FreeBSD 5.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) +# define HAVE_PTHREAD_NP_H 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h new file mode 100644 index 00000000..0461a43b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h @@ -0,0 +1,18 @@ +// HAVE_PTHREAD_SETNAME_NP : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PTHREAD_SETNAME_NP + +/* Presence of the pthread_setname_np() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.12, FreeBSD 7.0, NetBSD 8.0, MacOS 10.6 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) +# define HAVE_PTHREAD_SETNAME_NP 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h new file mode 100644 index 00000000..1c035a8a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h @@ -0,0 +1,18 @@ +// HAVE_PTHREAD_SET_NAME_NP : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_PTHREAD_SET_NAME_NP + +/* Presence of the pthread_set_name_np() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.12, FreeBSD 7.0, NetBSD 8.0, MacOS 10.6 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) +# define HAVE_PTHREAD_SET_NAME_NP 1 +#endif From a26dfbcec4c524825bb505d3af7baa3903ec9f41 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 21:05:46 +0200 Subject: [PATCH 075/166] Add: HAVE_STRUCT_GROUP_SOURCE_REQ HAVE_STRUCT_IP_MREQ_SOURCE HAVE_STRUCT_IPV6_MREQ HAVE_STRUCT_POLLFD HAVE_STRUCT_RUSAGE_RU_MAXRSS HAVE_STRUCT_SOCKADDR_SA_LEN HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE --- .../checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h | 16 ++++++++++++++ .../autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h | 19 +++++++++++++++++ .../checks/HAVE_STRUCT_IP_MREQ_SOURCE.h | 16 ++++++++++++++ .../autoconf/checks/HAVE_STRUCT_POLLFD.h | 21 +++++++++++++++++++ .../checks/HAVE_STRUCT_RUSAGE_RU_MAXRSS.h | 21 +++++++++++++++++++ .../checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h | 20 ++++++++++++++++++ .../checks/HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC.h | 19 +++++++++++++++++ .../HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE.h | 15 +++++++++++++ 8 files changed, 147 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_RUSAGE_RU_MAXRSS.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h new file mode 100644 index 00000000..a47ecaa0 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h @@ -0,0 +1,16 @@ +// HAVE_STRUCT_GROUP_SOURCE_REQ : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_GROUP_SOURCE_REQ + +/* Presence of the group_source_req structure, used for managing IP multicast group + * subscriptions with source filtering, typically found in newer networking libraries. + * Since glibc 2.5, FreeBSD 9.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 5) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) +# define HAVE_STRUCT_GROUP_SOURCE_REQ 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h new file mode 100644 index 00000000..b8d10095 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h @@ -0,0 +1,19 @@ +// HAVE_STRUCT_IPV6_MREQ : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_IPV6_MREQ + +/* Pof the group_source_req structure, used for managing IP multicast group + * subscriptions with source filtering, typically found in newer networking libraries. + * Since glibc 2.1, FreeBSD 5.0, OpenBSD 3.0, NetBSD 1.5, MacOS 10 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200112) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) +# define HAVE_STRUCT_IPV6_MREQ 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h new file mode 100644 index 00000000..2d2fdd1f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h @@ -0,0 +1,16 @@ +// HAVE_STRUCT_IP_MREQ_SOURCE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_IP_MREQ_SOURCE + +/* Presence of the ip_mreq_source structure, used for IP + * multicast source filtering in IPv4. + * Since glibc 2.1, FreeBSD 9.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) +# define HAVE_STRUCT_IP_MREQ_SOURCE 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h new file mode 100644 index 00000000..8ab2b8d7 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h @@ -0,0 +1,21 @@ +// HAVE_STRUCT_POLLFD : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_POLLFD + +/* Presence of the pollfd structure, used for the poll() system call, + * which monitors multiple file descriptors. + * Since glibc 2.0, FreeBSD 3.0, OpenBSD 2.0, NetBSD 1.3, MacOS 10 + * Solaris 2.6 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_STRUCT_POLLFD 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_RUSAGE_RU_MAXRSS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_RUSAGE_RU_MAXRSS.h new file mode 100644 index 00000000..d67b138f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_RUSAGE_RU_MAXRSS.h @@ -0,0 +1,21 @@ +// HAVE_STRUCT_RUSAGE_RU_MAXRSS : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_RUSAGE_RU_MAXRSS + +/* Presence of the ru_maxrss field in the rusage structure, which + * tracks the maximum resident set size (memory usage) of a process. + * Since glibc 2.0, FreeBSD 4.0, OpenBSD 2.0, NetBSD 1.3, MacOS 10 + * Solaris 7 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_STRUCT_RUSAGE_RU_MAXRSS 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h new file mode 100644 index 00000000..7e133c91 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h @@ -0,0 +1,20 @@ +// HAVE_STRUCT_SOCKADDR_SA_LEN : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_SOCKADDR_SA_LEN + +/* Presence of the sa_len field in the sockaddr structure, + * which defines the length of the address structure. + * FreeBSD 4.0, OpenBSD 2.0, NetBSD 1.5, MacOS 10 + * Solaris 7 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) +# define HAVE_STRUCT_SOCKADDR_SA_LEN 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC.h new file mode 100644 index 00000000..293e2985 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC.h @@ -0,0 +1,19 @@ +// HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC + +/* Presence of the st_mtim.tv_nsec field in the stat structure, + * which provides nanosecond resolution for file modification times. + * Since glibc 2.12, FreeBSD 5.0, OpenBSD 5.6, NetBSD 6.0, MacOS 10.5 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201411) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(6, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 5) +# define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE.h new file mode 100644 index 00000000..b1a2aae5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE.h @@ -0,0 +1,15 @@ +// HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE + +/* Presence of the v4l2_frmivalenum structure, specifically for + * discrete frame intervals, in the Video4Linux2 (V4L2) API. + * Since glibc 2.5 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 5) +# define HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE 1 +#endif From a286c5fa04440370c6e3c0800b7b48451f3b972f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 21:20:06 +0200 Subject: [PATCH 076/166] Add HAVE_SYSCTLBYNAME --- .../autoconf/checks/HAVE_SYSCTLBYNAME.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTLBYNAME.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTLBYNAME.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTLBYNAME.h new file mode 100644 index 00000000..c4990b5d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTLBYNAME.h @@ -0,0 +1,18 @@ +// HAVE_SYSCTLBYNAME : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYSCTLBYNAME + +/* Presence of the sysctlbyname() function, which retrieves system + * information using a string name (e.g., hardware data or OS settings). + * It's commonly used in BSD-based systems to access system configuration parameters. + * Since FreeBSD 2.2, NetBSD 1.3, MacOS 10.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) +# define HAVE_SYSCTLBYNAME 1 +#endif From 84fb5991693a24e2abf1ea9e767a4cc8ab2992c0 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 21:20:18 +0200 Subject: [PATCH 077/166] Add HAVE_SYS_HWPROBE_H --- .../autoconf/checks/HAVE_SYS_HWPROBE_H.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_HWPROBE_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_HWPROBE_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_HWPROBE_H.h new file mode 100644 index 00000000..6917ae51 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_HWPROBE_H.h @@ -0,0 +1,15 @@ +// HAVE_SYS_HWPROBE_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYS_HWPROBE_H + +/* Presence of sys/hwprobe.h, which is specific to hardware probing + * interfaces on some Unix-based systems for identifying hardware capabilities. + * Since Solaris 2.6 + */ +#if ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_SYS_HWPROBE_H 1 +#endif From 9adfe113b880c7cd4383becf2c39a3dfe72737b2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 21:20:33 +0200 Subject: [PATCH 078/166] Add HAVE_SYS_VIDEOIO_H --- .../autoconf/checks/HAVE_SYS_VIDEOIO_H.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h new file mode 100644 index 00000000..4616e000 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h @@ -0,0 +1,16 @@ +// HAVE_SYS_VIDEOIO_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SYS_VIDEOIO_H + +/* Presence of sys/videoio.h, which provides an interface for controlling video + * devices. It is often used for video capture devices, particularly on Unix systems. + * Since Linux Kernel 2.2 (now deprecated), Solaris + */ +#if defined(__linux__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_SYS_VIDEOIO_H 1 +#endif From 4b84b797b2b7743170cce107da65173e55982d98 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Sep 2024 21:20:46 +0200 Subject: [PATCH 079/166] Add HAVE_TERMIOS_H --- .../autoconf/checks/HAVE_TERMIOS_H.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TERMIOS_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TERMIOS_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TERMIOS_H.h new file mode 100644 index 00000000..0b0bd707 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TERMIOS_H.h @@ -0,0 +1,20 @@ +// HAVE_TERMIOS_H : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TERMIOS_H + +/* Presence of termios.h header, which provides an API for terminal I/O settings, + * commonly used for managing terminal attributes (e.g., baud rate, control flags). + * Since glibc 2.0, FreeBSD 2.0, OpenBSD 2.0, NetBSD 1.0, MacOS 10, Solaris 2.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_TERMIOS_H 1 +#endif From 32dae31ace4dc50346eb8ae72bb8293add769cbd Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:51:38 +0200 Subject: [PATCH 080/166] Tweak HAVE_ISINF --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h index fee12281..1787f1a3 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISINF.h @@ -6,15 +6,15 @@ #undef HAVE_ISINF -/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris +/* Since Linux/glibc 2.1, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.6, Mac OS 10.3, + * Windows, MinGW 3.0, Solaris 10 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(200910) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ - defined(BUILD2_AUTOCONF_MACOS) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 3) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(3, 0) || \ defined(_WIN32) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_ISINF 1 From db03ff1aa9041cb870171586260ae34e50d3e221 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:27 +0200 Subject: [PATCH 081/166] Add HAVE_RV --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV.h new file mode 100644 index 00000000..8a6d7ede --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV.h @@ -0,0 +1,9 @@ +// HAVE_RV + +#undef HAVE_RV + +/* Presence of RISC-V architecture (RV) support in the environment. + */ +#if defined(__riscv__) || defined(__riscv) +# define HAVE_RV 1 +#endif From 89e9b56285e4dd129b7a92015a9d592ca6b651e2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:36 +0200 Subject: [PATCH 082/166] Add HAVE_RVV --- .../libbuild2/autoconf/checks/HAVE_RVV.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RVV.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RVV.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RVV.h new file mode 100644 index 00000000..4119dd12 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RVV.h @@ -0,0 +1,10 @@ +// HAVE_RVV + +#undef HAVE_RVV + +/* Presence of RISC-V Vector Extension (RVV), which adds vector + * processing capabilities to the base RISC-V architecture. + */ +#if defined(__riscv_vector) +# define HAVE_RVV 1 +#endif From aeced58391c179b4bc9e824fbe757b5200050889 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:37 +0200 Subject: [PATCH 083/166] Add HAVE_RV_ZVBB --- .../libbuild2/autoconf/checks/HAVE_RV_ZVBB.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV_ZVBB.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV_ZVBB.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV_ZVBB.h new file mode 100644 index 00000000..deedd6bb --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RV_ZVBB.h @@ -0,0 +1,10 @@ +// HAVE_RV_ZVBB + +#undef HAVE_RV_ZVBB + +/* Presence of ZVBB extension of the RISC-V ISA, which + * adds vector bit-manipulation instructions. + */ +#if defined(__riscv_zvbb) +# define HAVE_RV_ZVBB 1 +#endif From a7c4c81ca3fe4d8b8747188973899aef7d9281b1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:38 +0200 Subject: [PATCH 084/166] Add HAVE_SCHED_GETAFFINITY --- .../autoconf/checks/HAVE_SCHED_GETAFFINITY.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_GETAFFINITY.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_GETAFFINITY.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_GETAFFINITY.h new file mode 100644 index 00000000..03846d65 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SCHED_GETAFFINITY.h @@ -0,0 +1,16 @@ +// HAVE_SCHED_GETAFFINITY : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SCHED_GETAFFINITY + +/* Presence of the sched_getaffinity() function, which retrieves + * the CPU affinity of a process (i.e., which CPUs a process can run on). + * Since glibc 2.3.4, FreeBSD 7.1 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 4) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 1) +# define HAVE_SCHED_GETAFFINITY 1 +#endif From 223c7893dfdcf8d55d7cdb99614b559a8af321b2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:39 +0200 Subject: [PATCH 085/166] Add HAVE_SECITEMIMPORT --- .../autoconf/checks/HAVE_SECITEMIMPORT.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECITEMIMPORT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECITEMIMPORT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECITEMIMPORT.h new file mode 100644 index 00000000..5f09a92f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECITEMIMPORT.h @@ -0,0 +1,15 @@ +// HAVE_SECITEMIMPORT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SECITEMIMPORT + +/* Presence of the SecItemImport function, which is used in Apple's + * Security framework for importing security items (such as certificates or keys). + * Since MacOS 10.7/iOS 5 + */ +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) +# define HAVE_SECITEMIMPORT 1 +#endif From 37d62a1fa753b539dfc0f88731dc59c0e403df5b Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:40 +0200 Subject: [PATCH 086/166] Add HAVE_SECTION_DATA_REL_RO --- .../autoconf/checks/HAVE_SECTION_DATA_REL_RO.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h new file mode 100644 index 00000000..d05ecf6c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h @@ -0,0 +1,18 @@ +// HAVE_SECTION_DATA_REL_RO : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SECTION_DATA_REL_RO + +/* Presence of the .data.rel.ro section, which is used for + * placing read-only data that may be relocated at runtime. + * Since glibc 2.3, FreeBSD 11.0, MacOS 10.12, Solaris 10 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(11, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 12) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_SECTION_DATA_REL_RO 1 +#endif From a6588559c694f0cbab0e3c48ca737287aaf1899c Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:40 +0200 Subject: [PATCH 087/166] Add HAVE_SETCONSOLECTRLHANDLER --- .../autoconf/checks/HAVE_SETCONSOLECTRLHANDLER.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLECTRLHANDLER.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLECTRLHANDLER.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLECTRLHANDLER.h new file mode 100644 index 00000000..93d38ad6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLECTRLHANDLER.h @@ -0,0 +1,11 @@ +// HAVE_SETCONSOLECTRLHANDLER + +#undef HAVE_SETCONSOLECTRLHANDLER + +/* Presence of the SetConsoleCtrlHandler() function, which is specific + * to Windows for handling console control events like Ctrl+C. + * Windows + */ +#if defined(_WIN32) +# define HAVE_SETCONSOLECTRLHANDLER 1 +#endif From 2ace485bb7e9f2a6e590fe4878ee378f9bf64a02 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:46 +0200 Subject: [PATCH 088/166] Add HAVE_SETCONSOLETEXTATTRIBUTE --- .../autoconf/checks/HAVE_SETCONSOLETEXTATTRIBUTE.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLETEXTATTRIBUTE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLETEXTATTRIBUTE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLETEXTATTRIBUTE.h new file mode 100644 index 00000000..66f0ab7a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETCONSOLETEXTATTRIBUTE.h @@ -0,0 +1,11 @@ +// HAVE_SETCONSOLETEXTATTRIBUTE + +#undef HAVE_SETCONSOLETEXTATTRIBUTE + +/* Presence of the SetConsoleTextAttribute() function, which is used + * on Windows to change the text color and attributes in the console. + * Windows + */ +#if defined(_WIN32) +# define HAVE_SETCONSOLETEXTATTRIBUTE 1 +#endif From 18a8b4bdecff019f97e6e34fa4a23d6b667a385f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:47 +0200 Subject: [PATCH 089/166] Add HAVE_SETDLLDIRECTORY --- .../libbuild2/autoconf/checks/HAVE_SETDLLDIRECTORY.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETDLLDIRECTORY.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETDLLDIRECTORY.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETDLLDIRECTORY.h new file mode 100644 index 00000000..6fcf834e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETDLLDIRECTORY.h @@ -0,0 +1,11 @@ +// HAVE_SETDLLDIRECTORY + +#undef HAVE_SETDLLDIRECTORY + +/* Presence of the SetDllDirectory() function, which sets a + * directory to search for DLLs when loading libraries in Windows. + * Windows + */ +#if defined(_WIN32) +# define HAVE_SETDLLDIRECTORY 1 +#endif From 7572bd8f8d0ee66fdca51472638700cedd45dc10 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:47 +0200 Subject: [PATCH 090/166] Add HAVE_SETMODE --- .../libbuild2/autoconf/checks/HAVE_SETMODE.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETMODE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETMODE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETMODE.h new file mode 100644 index 00000000..e42c9d19 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SETMODE.h @@ -0,0 +1,11 @@ +// HAVE_SETMODE + +#undef HAVE_SETMODE + +/* Presence of the setmode() function, used to set the mode + * of a file descriptor (such as binary or text mode). + * Windows, MingW + */ +#if defined(_WIN32) || defined(__MINGW32__) +# define HAVE_SETMODE 1 +#endif From 4c8332d3eb185b97c22f49f75dddaa5bd283c21f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:48 +0200 Subject: [PATCH 091/166] Add HAVE_SIMD_ALIGN_16 --- .../libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h new file mode 100644 index 00000000..667eec5c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h @@ -0,0 +1,10 @@ +// HAVE_SIMD_ALIGN_16 + +#undef HAVE_SIMD_ALIGN_16 + +/* Presence of 16-byte SIMD alignment, + * typically required for SSE and NEON. + */ +#if defined(__SSE__) || defined(__ARM_NEON) || defined(__ARM_NEON__) +# define HAVE_SIMD_ALIGN_16 1 +#endif From 896dc29abe72c8578c8021bc81808466b01e8f34 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:48 +0200 Subject: [PATCH 092/166] Add HAVE_SIMD_ALIGN_32 --- .../libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_32.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_32.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_32.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_32.h new file mode 100644 index 00000000..51c171b2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_32.h @@ -0,0 +1,9 @@ +// HAVE_SIMD_ALIGN_32 + +#undef HAVE_SIMD_ALIGN_32 + +/* Presence of 32-byte SIMD alignment, required for AVX. + */ +#if defined(__AVX__) +# define HAVE_SIMD_ALIGN_32 1 +#endif From 2cda0cc088d529c765274a7d96098f59affd2361 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:49 +0200 Subject: [PATCH 093/166] Add HAVE_SIMD_ALIGN_64 --- .../libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_64.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_64.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_64.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_64.h new file mode 100644 index 00000000..f77ad4e3 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_64.h @@ -0,0 +1,9 @@ +// HAVE_SIMD_ALIGN_64 + +#undef HAVE_SIMD_ALIGN_64 + +/* Presence of 64-byte SIMD alignment, required for AVX-512. + */ +#if defined(__AVX512F__) +# define HAVE_SIMD_ALIGN_64 1 +#endif From 162979fba5581e13f9707e777fb356d2ffb31ce3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 14:47:54 +0200 Subject: [PATCH 094/166] Add HAVE_SINF --- .../libbuild2/autoconf/checks/HAVE_SINF.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SINF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SINF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SINF.h new file mode 100644 index 00000000..b8e7dc6b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SINF.h @@ -0,0 +1,21 @@ +// HAVE_SINF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_SINF + +/* Since Linux/glibc 2.1, FreeBSD 5.0, OpenBSD 3.0, NetBSD 1.6, Mac OS 10.3, + * Windows, MinGW 3.0, Solaris 10 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200112) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 6) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 3) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(3, 0) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_SINF 1 +#endif From d6c997723a8564efa70095a5697c0f70fb261c3e Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 15:07:23 +0200 Subject: [PATCH 095/166] Add HAVE_SSE4 --- .../libbuild2/autoconf/checks/HAVE_SSE4.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SSE4.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SSE4.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SSE4.h new file mode 100644 index 00000000..3046a79d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SSE4.h @@ -0,0 +1,16 @@ +// HAVE_SSE4 + +#undef HAVE_SSE4 + +/* Presence of SSE4 (Streaming SIMD Extensions 4) + * instructions, which include SSE4.1 and SSE4.2. + * This code is based on HAVE_SSE4_1 and: + * https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/global/qsimd.h. + */ +#ifdef _MSC_VER +# ifdef __AVX__ +# define HAVE_SSE4 1 +# endif +#elif defined(__SSE4_1__) || defined(__SSE4_2__) +# define HAVE_SSE4 1 +#endif From d809fee39c08f5748ed3ea0369d8935eb8351049 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 15:34:58 +0200 Subject: [PATCH 096/166] Add HAVE_FAST_64BIT --- .../autoconf/checks/HAVE_FAST_64BIT.h | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_64BIT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_64BIT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_64BIT.h new file mode 100644 index 00000000..32b36b51 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_64BIT.h @@ -0,0 +1,22 @@ +// HAVE_FAST_64BIT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_FAST_64BIT + +/* Presence of optimized support for 64-bit arithmetic operations. + * Virtually on all systems if targeting 64-bit. + */ +#if defined(_WIN64) \ + || defined(__x86_64__) || defined(__x86_64) \ + || defined(__ppc64__) || defined(__PPC64__) \ + || defined(__aarch64__) \ + || defined(__mips64__) \ + || defined(__powerpc64__) \ + || defined(__s390x__) \ + || (defined(__sparc__) && defined(__arch64__)) \ + || defined(__riscv_xlen) && __riscv_xlen == 64 +# define HAVE_FAST_64BIT 1 +#endif From dd25faa040d21d66ecb4c69e5e8d66eafd7d113d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 15:58:29 +0200 Subject: [PATCH 097/166] Add HAVE_FAST_CLZ --- .../libbuild2/autoconf/checks/HAVE_FAST_CLZ.h | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CLZ.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CLZ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CLZ.h new file mode 100644 index 00000000..ca8f2296 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CLZ.h @@ -0,0 +1,35 @@ +// HAVE_FAST_CLZ : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_FAST_CLZ + +/* System has optimized support for Count Leading Zeros (CLZ) instructions. + * Most modern architectures provide hardware instructions for fast CLZ operations + * when targeting 64-bit. + * Since glibc 2.3, FreeBSD 5.0, OpenBSD, NetBSD, MacOS 10.6, Solaris, + * Windows, MinGW 3.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# if defined(_WIN64) \ + || defined(__x86_64__) || defined(__x86_64) \ + || defined(__ppc64__) || defined(__PPC64__) \ + || defined(__aarch64__) \ + || defined(__mips64__) \ + || defined(__powerpc64__) \ + || defined(__s390x__) \ + || (defined(__sparc__) && defined(__arch64__)) \ + || defined(__riscv_xlen) && __riscv_xlen == 64 +# define HAVE_FAST_CLZ 1 +# endif +#endif From 47e2fb7de07a854a56aedbea710af3ae95eab929 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 16:13:45 +0200 Subject: [PATCH 098/166] Add HAVE_FAST_CMOV --- .../autoconf/checks/HAVE_FAST_CMOV.h | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CMOV.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CMOV.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CMOV.h new file mode 100644 index 00000000..2f487341 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_CMOV.h @@ -0,0 +1,25 @@ +// HAVE_FAST_CMOV : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_FAST_CMOV + +/* System has optimized support for Count Leading Zeros (CLZ) instructions. + * Most modern architectures provide hardware instructions for fast CLZ operations + * when targeting 64-bit. + * Since glibc 2.0, FreeBSD 5.0, OpenBSD (x86), NetBSD, MacOS 10.6 (x86_64), Solaris (x86_64 + GCC), + * Windows, MinGW 3.0 + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + (BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) && defined(__i386__)) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + (BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) && defined(__x86_64__)) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + (((defined(__sun) && defined(__SVR4)) || defined(__sun__)) && defined(__x86_64__) && defined (__GNUC__)) +# define HAVE_FAST_CMOV 1 +#endif From d0489cb2b09cc43d99f5d6f7b0e1ebfe3ea899ca Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 16:40:12 +0200 Subject: [PATCH 099/166] Add HAVE_LIBDRM_GETFB2 --- .../autoconf/checks/HAVE_LIBDRM_GETFB2.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h new file mode 100644 index 00000000..7aceb203 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h @@ -0,0 +1,18 @@ +// HAVE_LIBDRM_GETFB2 : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LIBDRM_GETFB2 + +/* Presence of the libdrm's getfb2() function, which is part of + * Direct Rendering Manager (DRM) used for managing graphics on Linux. + * Linux (libdrm 2.4.91) + */ +#if defined(__linux__) +# include +# ifdef DRM_IOCTL_MODE_GETFB2 +# define HAVE_LIBDRM_GETFB2 1 +# endif +#endif From 5f876dd4faed49bb00a5190ecfa30986baef787d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 16:45:53 +0200 Subject: [PATCH 100/166] Tweak HAVE_LIBDRM_GETFB2 --- .../libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h index 7aceb203..055676c0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h @@ -1,8 +1,4 @@ -// HAVE_LIBDRM_GETFB2 : BUILD2_AUTOCONF_LIBC_VERSION - -#ifndef BUILD2_AUTOCONF_LIBC_VERSION -# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included -#endif +// HAVE_LIBDRM_GETFB2 #undef HAVE_LIBDRM_GETFB2 From de1a6d92c366083c26d252a5c340fdc68087a5d4 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:27:26 +0200 Subject: [PATCH 101/166] Add HAVE_LINUX_DMA_BUF_H --- .../autoconf/checks/HAVE_LINUX_DMA_BUF_H.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LINUX_DMA_BUF_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LINUX_DMA_BUF_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LINUX_DMA_BUF_H.h new file mode 100644 index 00000000..de348263 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LINUX_DMA_BUF_H.h @@ -0,0 +1,14 @@ +// HAVE_LINUX_DMA_BUF_H + +#undef HAVE_LINUX_DMA_BUF_H + +/* Presence of the linux/dma-buf.h header, which provides DMA-BUF + * support for buffer sharing between different devices in Linux. + * Linux (kernel 3.3) + */ +#ifdef __linux__ +# include +# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) +# define HAVE_LINUX_DMA_BUF_H 1 +# endif +#endif From 38e6ad206a499e447feeca9d793c4167bfe335a6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:27:35 +0200 Subject: [PATCH 102/166] Add HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS --- .../HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS.h new file mode 100644 index 00000000..1e50286d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS.h @@ -0,0 +1,12 @@ +// HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS + +#undef HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS + +/* Presence of the MMAL (Multimedia Abstraction Layer) parameter + * MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS, used for managing video + * callbacks on Raspberry Pi and similar platforms. + * Since Raspberry Pi (2013), predefined by MMAL + */ +#ifdef MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS +# define HAVE_MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS 1 +#endif From c77590bff48f09f7ab23d40491348d6a85f82426 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:27:47 +0200 Subject: [PATCH 103/166] Add HAVE_MMXEXT --- .../libbuild2/autoconf/checks/HAVE_MMXEXT.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h new file mode 100644 index 00000000..63b01834 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h @@ -0,0 +1,12 @@ +// HAVE_MMXEXT + +#undef HAVE_MMXEXT + +/* Presence of MMXEXT instructions, which are extensions to the original + * MMX instruction set, available on AMD processors starting from K6-2. + * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), + * MacOS 10.04 (x86) + */ +#if defined(__MMX__) +# define HAVE_MMXEXT 1 +#endif From 89d27bc5ce92d3121bb3874ec71c868d3004899d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:28:31 +0200 Subject: [PATCH 104/166] Add HAVE_MM_EMPTY --- .../libbuild2/autoconf/checks/HAVE_MM_EMPTY.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MM_EMPTY.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MM_EMPTY.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MM_EMPTY.h new file mode 100644 index 00000000..0bb1901e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MM_EMPTY.h @@ -0,0 +1,11 @@ +// HAVE_MM_EMPTY + +#undef HAVE_MM_EMPTY + +/* Presence of the _mm_empty() function (from ), associated + * with MMX technology, specifically multimedia extensions found in + * x86 architecture systems. + */ +#if defined(__MMX__) +# define HAVE_MM_EMPTY 1 +#endif From 4abd7e7bb7b2677e85f1f7db184472fd3a41d840 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:28:51 +0200 Subject: [PATCH 105/166] Add HAVE_MSA --- .../libbuild2/autoconf/checks/HAVE_MSA.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MSA.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MSA.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MSA.h new file mode 100644 index 00000000..eabc769e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MSA.h @@ -0,0 +1,10 @@ +// HAVE_MSA + +#undef HAVE_MSA + +/* Presence of MIPS SIMD Architecture (MSA), which + * provides SIMD instructions for MIPS processors. + */ +#if defined(__mips_msa) +# define HAVE_MSA 1 +#endif From 1df659c37c083d7d8ad33d2a3a3eec4b8c746f5d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:29:12 +0200 Subject: [PATCH 106/166] Add HAVE_OS2THREADS --- .../libbuild2/autoconf/checks/HAVE_OS2THREADS.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_OS2THREADS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_OS2THREADS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_OS2THREADS.h new file mode 100644 index 00000000..ff293745 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_OS2THREADS.h @@ -0,0 +1,10 @@ +// HAVE_OS2THREADS + +#undef HAVE_OS2THREADS + +/* Presence of OS/2 threads support, + * specific to the OS/2 operating system. + */ +#ifdef __OS2__ +# define HAVE_OS2THREADS 1 +#endif From 13487fbf2f49afab9e322588684b93c62a5087eb Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:29:13 +0200 Subject: [PATCH 107/166] Add HAVE_PEEKNAMEDPIPE --- .../libbuild2/autoconf/checks/HAVE_PEEKNAMEDPIPE.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PEEKNAMEDPIPE.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PEEKNAMEDPIPE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PEEKNAMEDPIPE.h new file mode 100644 index 00000000..d0a3ac2e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PEEKNAMEDPIPE.h @@ -0,0 +1,10 @@ +// HAVE_PEEKNAMEDPIPE + +#undef HAVE_PEEKNAMEDPIPE + +/* Presence of OS/2 threads support, + * specific to the OS/2 operating system. + */ +#ifdef _WIN32 +# define HAVE_PEEKNAMEDPIPE 1 +#endif From dc2fc4ed3662698ff41d24c44270e244bc44e7df Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:29:38 +0200 Subject: [PATCH 108/166] Add HAVE_PPC4XX --- .../libbuild2/autoconf/checks/HAVE_PPC4XX.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PPC4XX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PPC4XX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PPC4XX.h new file mode 100644 index 00000000..12ba825d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PPC4XX.h @@ -0,0 +1,10 @@ +// HAVE_PPC4XX + +#undef HAVE_PPC4XX + +/* Presence of PowerPC 4xx processors, + * typically found in embedded systems. + */ +#if defined(__powerpc__) && defined(__PPC4XX__) +# define HAVE_PPC4XX 1 +#endif From 01e0e716f4cb05b6fcc713966f736a453c0df2ae Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:29:50 +0200 Subject: [PATCH 109/166] Add HAVE_RDTSC --- .../libbuild2/autoconf/checks/HAVE_RDTSC.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h new file mode 100644 index 00000000..33d96bc5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h @@ -0,0 +1,12 @@ +// HAVE_RDTSC + +#undef HAVE_RDTSC + +/* Presence of RDTSC (Read Time-Stamp Counter) instruction on x86 + * processors, which reads the number of CPU cycles since the last reset. + * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), + * MacOS 10.04 (x86) + */ +#if defined(__i386__) || defined(__x86_64__) +# define HAVE_RDTSC 1 +#endif From 2ad1a35b476c22a2be40143e1586f84c64536546 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:32:36 +0200 Subject: [PATCH 110/166] Tweak HAVE_RDTSC --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h index 33d96bc5..7e997c98 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h @@ -7,6 +7,6 @@ * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), * MacOS 10.04 (x86) */ -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) # define HAVE_RDTSC 1 #endif From 473c16936175cf1ca66b47b1830676d6bcf7e6b4 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:32:41 +0200 Subject: [PATCH 111/166] Add HAVE_UDPLITE_H --- .../libbuild2/autoconf/checks/HAVE_UDPLITE_H.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UDPLITE_H.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UDPLITE_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UDPLITE_H.h new file mode 100644 index 00000000..911d39f9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UDPLITE_H.h @@ -0,0 +1,14 @@ +// HAVE_UDPLITE_H + +#undef HAVE_UDPLITE_H + +/* Presence of udplite.h, used for UDP-Lite protocol, which offers + * partial error checking for better performance in lossy networks. + * Since Linux kernel 2.6.20 (2007) + */ +#ifdef __linux__ +# include +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20) +# define HAVE_UDPLITE_H 1 +# endif +#endif From 3c3fad59bc5388eca84df5145401f4f65ec79a97 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:33:03 +0200 Subject: [PATCH 112/166] Add HAVE_UWP --- .../libbuild2/autoconf/checks/HAVE_UWP.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UWP.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UWP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UWP.h new file mode 100644 index 00000000..2ab03670 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_UWP.h @@ -0,0 +1,10 @@ +// HAVE_UWP + +#undef HAVE_UWP + +/* Presence of Universal Windows Platform (UWP) support. + * Since Windows 8 + */ +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) +# define HAVE_UWP 1 +#endif From 06ab1d070825e5f55127ddf926e8bd15135dec68 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:33:16 +0200 Subject: [PATCH 113/166] Add HAVE_VFP --- .../libbuild2/autoconf/checks/HAVE_VFP.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP.h new file mode 100644 index 00000000..759f2ad4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP.h @@ -0,0 +1,10 @@ +// HAVE_VFP + +#undef HAVE_VFP + +/* Presence of Vector Floating Point (VFP), which is an extension + * for ARM processors providing floating-point arithmetic instructions. + */ +#ifdef __ARM_VFP__ +# define HAVE_VFP 1 +#endif From afbb4dc817be5f07379e2fc3c37a920f323e5668 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:41:06 +0200 Subject: [PATCH 114/166] Add HAVE_VFPV3 --- .../libbuild2/autoconf/checks/HAVE_VFPV3.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV3.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV3.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV3.h new file mode 100644 index 00000000..8164744a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV3.h @@ -0,0 +1,9 @@ +// HAVE_VFPV3 + +#undef HAVE_VFPV3 + +/* Presence of VFP v3 on ARM platforms. + */ +#if defined(__VFP_FP__) && defined(__ARM_ARCH_7A__) +# define HAVE_VFPV3 1 +#endif From f5c4c8ae9ecef461bc1d0d15790fbe3a5b88e8ec Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:41:14 +0200 Subject: [PATCH 115/166] Add HAVE_VFPV4 --- .../libbuild2/autoconf/checks/HAVE_VFPV4.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV4.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV4.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV4.h new file mode 100644 index 00000000..2b58ea7e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFPV4.h @@ -0,0 +1,9 @@ +// HAVE_VFPV4 + +#undef HAVE_VFPV4 + +/* Presence of VFP v4 on ARM platforms. + */ +#if defined(__VFP_FP__) && defined(__ARM_ARCH_8A__) +# define HAVE_VFPV4 1 +#endif From 8c9a0484a8fde00782d2e8e75482b4f3a3211043 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:41:20 +0200 Subject: [PATCH 116/166] Add HAVE_VFP_ARGS --- .../libbuild2/autoconf/checks/HAVE_VFP_ARGS.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP_ARGS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP_ARGS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP_ARGS.h new file mode 100644 index 00000000..e48daa78 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VFP_ARGS.h @@ -0,0 +1,10 @@ +// HAVE_VFP_ARGS + +#undef HAVE_VFP_ARGS + +/* If the system passes arguments to functions using + * VFP (Vector Floating Point) registers, common on ARM systems. + */ +#ifdef __ARM_PCS_VFP +# define HAVE_VFP_ARGS 1 +#endif From 8945ff4aacd43a82351016d684fa460188ecf543 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:41:30 +0200 Subject: [PATCH 117/166] Add HAVE_VSX --- .../libbuild2/autoconf/checks/HAVE_VSX.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VSX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VSX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VSX.h new file mode 100644 index 00000000..257b33e6 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_VSX.h @@ -0,0 +1,10 @@ +// HAVE_VSX + +#undef HAVE_VSX + +/* Presence of Vector Scalar Extension (VSX) support, an extension to + * the PowerPC architecture that enhances SIMD and floating-point operations. + */ +#ifdef __VSX__ +# define HAVE_VSX 1 +#endif From df7dccab2db9a4ec29db3150f2bfa3bd3a4fe866 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:41:44 +0200 Subject: [PATCH 118/166] Add HAVE_WINRT --- .../libbuild2/autoconf/checks/HAVE_WINRT.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINRT.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINRT.h new file mode 100644 index 00000000..6a50a724 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_WINRT.h @@ -0,0 +1,10 @@ +// HAVE_WINRT + +#undef HAVE_WINRT + +/* Presence of Windows Runtime (WinRT) APIs, used for building + * Universal Windows Platform (UWP) applications. + */ +#ifdef __cplusplus_winrt +# define HAVE_WINRT 1 +#endif From 1f44db0f05c0daa370e85d2a3da3b9dcc16134ba Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:44:47 +0200 Subject: [PATCH 119/166] Add HAVE_X86ASM --- .../libbuild2/autoconf/checks/HAVE_X86ASM.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h new file mode 100644 index 00000000..6195de02 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h @@ -0,0 +1,10 @@ +// HAVE_X86ASM + +#undef HAVE_X86ASM + +/* Presence of x86 assembly support, ensuring that the system can + * execute inline assembly or external assembly for x86 processors. + */ +#if defined(__i386__) +# define HAVE_X86ASM 1 +#endif From 4a775ac0d9bb3b0a60de793d5dbd3b32c8a98fa2 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:44:53 +0200 Subject: [PATCH 120/166] Add HAVE_XFORM_ASM --- .../libbuild2/autoconf/checks/HAVE_XFORM_ASM.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XFORM_ASM.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XFORM_ASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XFORM_ASM.h new file mode 100644 index 00000000..e6526958 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XFORM_ASM.h @@ -0,0 +1,10 @@ +// HAVE_XFORM_ASM + +#undef HAVE_XFORM_ASM + +/* Presence of transformation-related assembly optimizations, + * typically for image or video processing tasks. + */ +#ifdef __XFORM_ASM__ +# define HAVE_XFORM_ASM 1 +#endif From 64f4c2dc6b220796ca4ad69ab0ff70ca22040fef Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 10 Sep 2024 19:45:08 +0200 Subject: [PATCH 121/166] Add HAVE_XMM_CLOBBERS --- .../autoconf/checks/HAVE_XMM_CLOBBERS.h | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XMM_CLOBBERS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XMM_CLOBBERS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XMM_CLOBBERS.h new file mode 100644 index 00000000..52e808ce --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XMM_CLOBBERS.h @@ -0,0 +1,26 @@ +// HAVE_XMM_CLOBBERS : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_XMM_CLOBBERS + +/* Checks whether the system allows for the use of XMM registers (used in SSE) + * to be clobbered by inline assembly instructions. It ensures that the + * compiler knows which registers are being modified. + * Since Linux, FreeBSD, OpenBSD, NetBSD, MacOS 10.6, Solaris, + * Windows, MinGW + */ +#if defined(__linux__) || \ + defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + (defined(__sun) && defined(__SVR4)) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) +# if defined(__SSE__) && defined(__x86_64__) +# define HAVE_XMM_CLOBBERS 1 +# endif +#endif From 8bc44e2fae54806886e5ed0070018e8bb91598ce Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 12:19:06 +0200 Subject: [PATCH 122/166] Add HAVE_ELF_AUX_INFO --- .../autoconf/checks/HAVE_ELF_AUX_INFO.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ELF_AUX_INFO.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ELF_AUX_INFO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ELF_AUX_INFO.h new file mode 100644 index 00000000..c32ad080 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ELF_AUX_INFO.h @@ -0,0 +1,16 @@ +// HAVE_ELF_AUX_INFO : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +#error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ELF_AUX_INFO + +/* Presence of the elf_aux_info() function, which retrieves information from + * the auxiliary vector in ELF binaries. It is specific to FreeBSD and is used + * to query system information at runtime, similar to getauxval() on Linux. + * Since FreeBSD 7.0 + */ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) +#define HAVE_ELF_AUX_INFO 1 +#endif From a1a5be17fe40fa48bae0ee4142068360e713d51b Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 17:15:06 +0200 Subject: [PATCH 123/166] Tweak HAVE_ATAN2 & HAVE_ATAN2F. --- .../libbuild2/autoconf/checks/HAVE_ATAN2.h | 21 ++++++++++++------- .../libbuild2/autoconf/checks/HAVE_ATAN2F.h | 21 ++++++++++++------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h index dcd95b96..b48535c1 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2.h @@ -2,15 +2,20 @@ #undef HAVE_ATAN2 -/* Since ANSI C89/ISO C99, OpenBSD 2.6 +/* Presence of the atan2() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.0, FreeBSD 1.0, OpenBSD 1.0, NetBSD 1.0, MacOS 10.0 + * Solaris 2.0, Windows, MinGW */ -#if (!defined(BUILD2_AUTOCONF_MACOS) && !defined(__NetBSD__) && !defined(__sun)) && \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) || \ - (defined(__sun) && defined(__SVR4)) +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_ATAN2 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h index 4001aae7..698812ee 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN2F.h @@ -2,15 +2,20 @@ #undef HAVE_ATAN2F -/* Since ANSI C89/ISO C99, OpenBSD 2.6 +/* Presence of the atan2f() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.0, FreeBSD 1.0, OpenBSD 1.0, NetBSD 1.0, MacOS 10.0 + * Solaris 2.0, Windows, MinGW */ -#if (!defined(BUILD2_AUTOCONF_MACOS) && !defined(__NetBSD__) && !defined(__sun)) && \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 1) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 10) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(6, 0) || \ - (defined(__sun) && defined(__SVR4)) +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_ATAN2F 1 #endif From 6a1930a28c889d7dd645801632237bdaea230db1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 17:15:13 +0200 Subject: [PATCH 124/166] Add HAVE_ALIGNED_STACK --- .../autoconf/checks/HAVE_ALIGNED_STACK.h | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALIGNED_STACK.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALIGNED_STACK.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALIGNED_STACK.h new file mode 100644 index 00000000..6dedd16e --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ALIGNED_STACK.h @@ -0,0 +1,52 @@ +// HAVE_ALIGNED_STACK : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_ALIGNED_STACK + +/* Platform or compiler ensures a properly aligned stack for functions, + * which is necessary for optimal performance + */ +// Linux: Supports x86, x86_64, ARM (32-bit and 64-bit), SPARC +#if defined(__linux__) \ + && (defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__sparc__)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// Windows: Supports x86, x86_64, ARM (32-bit and 64-bit) +#if defined(_WIN32) \ + && (defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// macOS: Supports x86_64 and ARM64 +#if defined(__APPLE__) \ + && (defined(__x86_64__) || defined(__aarch64__)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// FreeBSD: Supports x86_64, ARM (32-bit and 64-bit), SPARC64 +#if defined(__FreeBSD__) \ + && (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__sparc64__)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// OpenBSD: Supports x86_64, ARM (32-bit and 64-bit) +#if defined(__OpenBSD__) \ + && (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// NetBSD: Supports x86_64, ARM (32-bit and 64-bit) +#if defined(__NetBSD__) \ + && (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)) +# define HAVE_ALIGNED_STACK 1 +#endif + +// Solaris: Supports x86_64 and SPARC64 +#if defined(__sun) \ + && (defined(__x86_64__) || defined(__sparc64__)) +# define HAVE_ALIGNED_STACK 1 +#endif From 3075b26c088aab2af7a1af053a275cb347c5c3c1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 17:15:15 +0200 Subject: [PATCH 125/166] Add HAVE_ATAN --- .../libbuild2/autoconf/checks/HAVE_ATAN.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN.h new file mode 100644 index 00000000..1d3f2462 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATAN.h @@ -0,0 +1,21 @@ +// HAVE_ATAN : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_ATAN + +/* Presence of the atan2() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.0, FreeBSD 1.0, OpenBSD 1.0, NetBSD 1.0, MacOS 10.0 + * Solaris 2.0, Windows, MinGW + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ATAN 1 +#endif + From a16446064fa769f42fdbc519f0f45cf71831f308 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 17:15:16 +0200 Subject: [PATCH 126/166] Add HAVE_ATANF --- .../libbuild2/autoconf/checks/HAVE_ATANF.h | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATANF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATANF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATANF.h new file mode 100644 index 00000000..644a2bb5 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ATANF.h @@ -0,0 +1,21 @@ +// HAVE_ATANF : BUILD2_AUTOCONF_LIBC_VERSION + +#undef HAVE_ATANF + +/* Presence of the atan2() function, which is a + * non-standard POSIX function used to set the name of a thread. + * Since glibc 2.0, FreeBSD 1.0, OpenBSD 1.0, NetBSD 1.0, MacOS 10.0 + * Solaris 2.0, Windows, MinGW + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) +# define HAVE_ATANF 1 +#endif + From cae282343a43c9788a89e8bc8d15dc6ca69ca33d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 17:15:17 +0200 Subject: [PATCH 127/166] Add HAVE_MMX --- .../libbuild2/autoconf/checks/HAVE_MMX.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h new file mode 100644 index 00000000..a7f692df --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h @@ -0,0 +1,12 @@ +// HAVE_MMX + +#undef HAVE_MMX + +/* Presence of MMX instructions, which are extensions to the original + * MMX instruction set, available on AMD processors starting from K6-2. + * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), + * MacOS 10.04 (x86) + */ +#if defined(__MMX__) +# define HAVE_MMX 1 +#endif From 7b265be3e0d5ffb94b07bf9923340a98846dab6b Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 11 Sep 2024 17:52:18 +0200 Subject: [PATCH 128/166] HAVE_LLRINT HAVE_LLRINTF HAVE_LRINT HAVE_LRINTF HAVE_LSTAT HAVE_MMI HAVE_RINT HAVE_TRUNC HAVE_TRUNCF --- .../libbuild2/autoconf/checks/HAVE_LLRINT.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LLRINTF.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LRINT.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LRINTF.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_LSTAT.h | 13 +++++++++++++ .../libbuild2/autoconf/checks/HAVE_MMI.h | 11 +++++++++++ .../libbuild2/autoconf/checks/HAVE_RINT.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_TRUNC.h | 18 ++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_TRUNCF.h | 18 ++++++++++++++++++ 9 files changed, 150 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINT.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINTF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINT.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINTF.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMI.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RINT.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNC.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNCF.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINT.h new file mode 100644 index 00000000..b3709be4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINT.h @@ -0,0 +1,18 @@ +// HAVE_LLRINT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LLRINT + +/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_LLRINT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINTF.h new file mode 100644 index 00000000..d943f29d --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LLRINTF.h @@ -0,0 +1,18 @@ +// HAVE_LLRINTF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LLRINTF + +/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_LLRINTF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINT.h new file mode 100644 index 00000000..604585aa --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINT.h @@ -0,0 +1,18 @@ +// HAVE_LRINT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LRINT + +/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_LRINT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINTF.h new file mode 100644 index 00000000..be4bded9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LRINTF.h @@ -0,0 +1,18 @@ +// HAVE_LRINTF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LRINTF + +/* Since glibc 2.1, FreeBSD 5.4, OpenBSD 3.9, NetBSD 3.1 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 4) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 1) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_LRINTF 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h new file mode 100644 index 00000000..9d8a2a6f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h @@ -0,0 +1,13 @@ +// HAVE_LSTAT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_LSTAT + +/* Since glibc 2.19. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) +# define HAVE_LSTAT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMI.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMI.h new file mode 100644 index 00000000..2ed0c57f --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMI.h @@ -0,0 +1,11 @@ +// HAVE_MMI + +#undef HAVE_MMI + +/* Presence of MMI (Multimedia Instructions), typically used in specific + * CPU architectures for multimedia processing, like in certain MIPS processors. + * Linux + */ +#if defined(__mips__) +# define HAVE_MMI 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RINT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RINT.h new file mode 100644 index 00000000..b60d1c2a --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RINT.h @@ -0,0 +1,18 @@ +// HAVE_RINT : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_RINT + +/* Since glibc 2.19, FreeBSD 1.0, OpenBSD 2.2, NetBSD 1.3 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199712) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_RINT 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNC.h new file mode 100644 index 00000000..d5e1ce60 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNC.h @@ -0,0 +1,18 @@ +// HAVE_TRUNC : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TRUNC + +/* Since glibc 2.1, FreeBSD 5.3, OpenBSD 4.0, NetBSD 4.0 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200611) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(4, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_TRUNC 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNCF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNCF.h new file mode 100644 index 00000000..604967a9 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_TRUNCF.h @@ -0,0 +1,18 @@ +// HAVE_TRUNCF : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif + +#undef HAVE_TRUNCF + +/* Since glibc 2.1, FreeBSD 5.3, OpenBSD 4.0, NetBSD 4.0 and MacOS, Win32. + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 3) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200611) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(4, 0) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) +# define HAVE_TRUNCF 1 +#endif From 3c0ff9e3fb97bfdf3c609573eef9cc3248592056 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 11 Sep 2024 20:22:32 +0200 Subject: [PATCH 129/166] Tweak HAVE_LOCALTIME_R --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h index ab3a6c39..73368dba 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOCALTIME_R.h @@ -15,7 +15,6 @@ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 2) || \ BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ - defined(_WIN32) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_LOCALTIME_R 1 #endif From e1c4a0d23c4c3db3cada376b553f120957142c32 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 12 Sep 2024 12:36:38 +0200 Subject: [PATCH 130/166] HAVE_BCRYPT: Make available on more platforms (and add context). --- .../libbuild2/autoconf/checks/HAVE_BCRYPT.h | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h index f31f286b..1ad872f0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_BCRYPT.h @@ -2,10 +2,25 @@ #undef HAVE_BCRYPT -/* Since Version 3 AT&T UNIX, 4.3BSD (OpenBSD), Linux/glibc (no version info) +/* Presence of bcrypt functionality, specifically cryptographic operations. + * This check in many cases refers to the Windows Cryptography API: Next Generation (CNG), + * but other times on the *nix bcrypt library. + * + * - Linux (glibc 2.0), and libxcrypt is available by default on many Linux distributions. + * - FreeBSD (5.0) includes bcrypt as a default password hashing algorithm, implemented in crypt() and libcrypt. + * - OpenBSD (2.1) is the originator of the bcrypt password hashing algorithm and has it included by default in the system. + * - NetBSD (3.5) includes bcrypt as part of its password hashing implementations, using libcrypt. + * - MacOS (10.7) uses the libcrypt library. + * - Solaris has bcrypt available through libcrypt. + * - Windows (since Vista and Windows Server 2008) through 'Windows CNG' */ -#if defined(__OpenBSD__) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 5) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ + BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) || \ + defined(_WIN32) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_BCRYPT 1 #endif From 1f2bae328244b8010dd54ef7d244e73ac2291cb6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 12 Sep 2024 12:37:29 +0200 Subject: [PATCH 131/166] HAVE_MALLOC_H: Don't check glibc version, since even though it is deprecated it seems to exists for an unforseen future. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h index c461adfa..ee284f96 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MALLOC_H.h @@ -5,7 +5,7 @@ /* Presence of malloc.h. * Supported on Linux (deprecated since glibc 2.0), Windows * Mingw */ -#if (defined(__GLIBC__) && __GLIBC__ < 2) || \ +#if defined(__GLIBC__) || \ defined(_WIN32) || \ defined(__MINGW32__) # define HAVE_MALLOC_H 1 From a3202614fd81efdb3e92b4ccba19ed60f3c66dd1 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Thu, 12 Sep 2024 11:56:26 +0200 Subject: [PATCH 132/166] Remove HAVE_LIBDRM_GETFB2, it's library specific and should instead be a header-check in buildfile for 'drm/drm.h' --- .../libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h deleted file mode 100644 index 055676c0..00000000 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBDRM_GETFB2.h +++ /dev/null @@ -1,14 +0,0 @@ -// HAVE_LIBDRM_GETFB2 - -#undef HAVE_LIBDRM_GETFB2 - -/* Presence of the libdrm's getfb2() function, which is part of - * Direct Rendering Manager (DRM) used for managing graphics on Linux. - * Linux (libdrm 2.4.91) - */ -#if defined(__linux__) -# include -# ifdef DRM_IOCTL_MODE_GETFB2 -# define HAVE_LIBDRM_GETFB2 1 -# endif -#endif From d87921b72723806e4d4dbfbeb2ef4c0bc5e2e34f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 18 Oct 2024 12:31:43 +0200 Subject: [PATCH 133/166] Various fixes, mainly for macos. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h | 1 + libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h | 1 + libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h | 1 + libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h | 1 + .../libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h | 6 +++--- libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h | 3 ++- 6 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h index 0a9bbf9a..a70611fd 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRT.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ defined(_WIN32) || \ defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h index ef43b196..e34ae3de 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_CBRTF.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ defined(_WIN32) || \ defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h index 1d572657..aaf309f6 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ERF.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ defined(_WIN32) || \ defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h index d7b07a1a..75c60e64 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETOPT.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_GETOPT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h index 1c035a8a..2ebb9d04 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h @@ -11,8 +11,8 @@ * Since glibc 2.12, FreeBSD 7.0, NetBSD 8.0, MacOS 10.6 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ - BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(20131101) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(7, 0) # define HAVE_PTHREAD_SET_NAME_NP 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h index 11f200b6..af138581 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h @@ -16,10 +16,11 @@ defined(__FreeBSD__) || \ defined(__OpenBSD__) || \ defined(__NetBSD__) || \ - defined(__APPLE__) || \ (defined(__sun) && defined(__SVR4)) || \ defined(__CYGWIN__) + # include + /* If available, we do nothing. */ # elif defined(_WIN32) /* While socklen_t is declared in , including this header is From 2567175cd109f6c96b089f4c9f76dab217902263 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 19 Oct 2024 19:51:05 +0200 Subject: [PATCH 134/166] HAVE_SECTION_DATA_REL_RO: Not available for macos. --- .../libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h index d05ecf6c..c242097c 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SECTION_DATA_REL_RO.h @@ -8,11 +8,12 @@ /* Presence of the .data.rel.ro section, which is used for * placing read-only data that may be relocated at runtime. - * Since glibc 2.3, FreeBSD 11.0, MacOS 10.12, Solaris 10 + * Since glibc 2.3, FreeBSD 7.0, Solaris 10 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 3) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(11, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 12) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(201609) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(7, 0) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_SECTION_DATA_REL_RO 1 #endif From 0ea2d686474b289311817cfdaa32bfb4e90f663b Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 15 Oct 2024 01:46:57 +0200 Subject: [PATCH 135/166] HAVE_SYSCTL: Fix 'older than' check for GLIBC. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h index 41c324ec..17e6fa90 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYSCTL.h @@ -12,6 +12,6 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ - !BUILD2_AUTOCONF_GLIBC_PREREQ(2, 32) + (defined(__GLIBC__) && defined(__GLIBC_MINOR__) && ((__GLIBC__ << 16) + __GLIBC_MINOR__ <= ((2) << 16) + (31))) # define HAVE_SYSCTL 1 #endif From bf6d96dd0fac0e4dbcedbd516ababd05df76736d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 15 Oct 2024 01:47:36 +0200 Subject: [PATCH 136/166] HAVE_X86ASM: Also check MSVC defines. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h index 6195de02..605b8b6c 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_X86ASM.h @@ -5,6 +5,8 @@ /* Presence of x86 assembly support, ensuring that the system can * execute inline assembly or external assembly for x86 processors. */ -#if defined(__i386__) +#if defined(__i386__) || \ + defined(__x86_64__) || \ + (defined(_M_IX86) || defined(_M_X64)) && (defined(_MSC_VER) || defined(__GNUC__) || defined(__clang__)) # define HAVE_X86ASM 1 #endif From 9b49ed85ccd2e0d82085b6e28f36d5a59937f89e Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sun, 20 Oct 2024 19:24:17 +0200 Subject: [PATCH 137/166] HAVE_ARC4RANDOM_BUF: Not available on linux (unless libbsd is installed). --- .../libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h index 7fb4a51a..dfeb7a5f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h @@ -7,12 +7,11 @@ #undef HAVE_ARC4RANDOM_BUF /* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7 - * and glibc 2.36. + * and glibc 2.36 (only via libbsd). */ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36) + BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) # define HAVE_ARC4RANDOM_BUF 1 #endif From 621a069277a5a5f61e6613dea517e1092cd7451d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sun, 20 Oct 2024 19:25:15 +0200 Subject: [PATCH 138/166] HAVE_ARC4RANDOM: Not available on linux (unless libbsd is installed). --- .../libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h index ab92bbc1..399cb3e3 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h @@ -7,12 +7,11 @@ #undef HAVE_ARC4RANDOM /* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7 - * and glibc 2.36. + * and glibc 2.36 (only via libbsd). */ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36) + BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) # define HAVE_ARC4RANDOM 1 #endif From 7fdf94fbdd096a0e74a928ee8596dcc19d2650ba Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 21 Oct 2024 12:28:22 +0200 Subject: [PATCH 139/166] HAVE_ASM_EBP & HAVE_ASM_EBX enabled on x86_64 as well. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h | 6 ++++-- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h index d6326224..ac536a4e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h @@ -2,9 +2,11 @@ #undef HAVE_ASM_EBP -/* x86 excluding ARM, PowerPC, MIPS & RISC-V. +/* x86 (available on x86_64 under RBP) excluding ARM, PowerPC, MIPS & RISC-V. */ -#if defined(__i386__) +#if defined(__i386__) || \ + defined(__x86_64__) || \ + (defined(_M_IX86) || defined(_M_X64)) # if !defined(__arm__) && !defined(__powerpc__) && \ !defined(__ppc__) && \ !defined(__mips__) && \ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h index 5e56ee7f..2aa693c7 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h @@ -2,9 +2,11 @@ #undef HAVE_ASM_EBX -/* x86 excluding ARM, PowerPC, MIPS & RISC-V. +/* x86 (available on x86_64 under RBX) excluding ARM, PowerPC, MIPS & RISC-V. */ -#if defined(__i386__) +#if defined(__i386__) || \ + defined(__x86_64__) || \ + (defined(_M_IX86) || defined(_M_X64)) # if !defined(__arm__) && !defined(__powerpc__) && \ !defined(__ppc__) && \ !defined(__mips__) && \ From 503aaaf55990233ced4006b3874775f9ed696064 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 21 Oct 2024 16:29:46 +0200 Subject: [PATCH 140/166] HAVE_MMX & HAVE_MMXEXT are available with MSVC for x86 & x86_64. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h | 5 +++-- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h index a7f692df..644c5f27 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h @@ -5,8 +5,9 @@ /* Presence of MMX instructions, which are extensions to the original * MMX instruction set, available on AMD processors starting from K6-2. * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), - * MacOS 10.04 (x86) + * MacOS 10.04 (x86), MSVC */ -#if defined(__MMX__) +#if defined(__MMX__) || \ + defined(_M_IX86) || defined(_M_X64) # define HAVE_MMX 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h index 63b01834..0fd6b3e6 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h @@ -5,8 +5,9 @@ /* Presence of MMXEXT instructions, which are extensions to the original * MMX instruction set, available on AMD processors starting from K6-2. * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), - * MacOS 10.04 (x86) + * MacOS 10.04 (x86), MSVC */ -#if defined(__MMX__) +#if defined(__MMXEXT__) || \ + defined(_M_IX86) || defined(_M_X64) # define HAVE_MMXEXT 1 #endif From 4a98dc49ccc1bda23bf1f6fca447ca6716e31b49 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Fri, 25 Oct 2024 23:33:36 +0200 Subject: [PATCH 141/166] socklen_t: Revert accidental change. --- libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h index af138581..11f200b6 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h @@ -16,11 +16,10 @@ defined(__FreeBSD__) || \ defined(__OpenBSD__) || \ defined(__NetBSD__) || \ + defined(__APPLE__) || \ (defined(__sun) && defined(__SVR4)) || \ defined(__CYGWIN__) - # include - /* If available, we do nothing. */ # elif defined(_WIN32) /* While socklen_t is declared in , including this header is From 5fa403abeda237d2cb5236bdf86906da6e478114 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 28 Oct 2024 23:31:06 +0100 Subject: [PATCH 142/166] HAVE_ASM_EBP & HAVE_ASM_EBX not available on Windows. HAVE_KCMVIDEOCODECTYPE_HVEC is for MacOS/iOS only. --- .../libbuild2/autoconf/checks/HAVE_ASM_EBP.h | 21 ++++++++++--------- .../libbuild2/autoconf/checks/HAVE_ASM_EBX.h | 21 ++++++++++--------- .../checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h | 5 ++--- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h index ac536a4e..5b1a12d4 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h @@ -2,15 +2,16 @@ #undef HAVE_ASM_EBP -/* x86 (available on x86_64 under RBP) excluding ARM, PowerPC, MIPS & RISC-V. +/* Check for EBP (Extended Base Pointer) support in assembly on x86/x86_64, + * excluding unsupported architectures (ARM, PowerPC, MIPS, RISC-V) + * and excluding Windows x64 with MSVC due to calling convention limitations. */ -#if defined(__i386__) || \ - defined(__x86_64__) || \ - (defined(_M_IX86) || defined(_M_X64)) -# if !defined(__arm__) && !defined(__powerpc__) && \ - !defined(__ppc__) && \ - !defined(__mips__) && \ - !defined(__riscv__) && !defined(__riscv) -# define HAVE_ASM_EBP 1 -# endif +#if (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)) && \ + !(defined(_WIN32) && defined(_MSC_VER) && defined(_M_X64)) && \ + !defined(__arm__) && !defined(__aarch64__) && \ + !defined(__powerpc__) && !defined(__ppc__) && \ + !defined(__mips__) && !defined(__riscv) + #define HAVE_ASM_EBP 1 +#else + #define HAVE_ASM_EBP 0 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h index 2aa693c7..f0d9c351 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h @@ -2,15 +2,16 @@ #undef HAVE_ASM_EBX -/* x86 (available on x86_64 under RBX) excluding ARM, PowerPC, MIPS & RISC-V. +/* Check for EBX (Extended Base Pointer) support in assembly on x86/x86_64, + * excluding unsupported architectures (ARM, PowerPC, MIPS, RISC-V) + * and excluding Windows x64 with MSVC due to calling convention limitations. */ -#if defined(__i386__) || \ - defined(__x86_64__) || \ - (defined(_M_IX86) || defined(_M_X64)) -# if !defined(__arm__) && !defined(__powerpc__) && \ - !defined(__ppc__) && \ - !defined(__mips__) && \ - !defined(__riscv__) && !defined(__riscv) -# define HAVE_ASM_EBX 1 -# endif +#if (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)) && \ + !(defined(_WIN32) && defined(_MSC_VER) && defined(_M_X64)) && \ + !defined(__arm__) && !defined(__aarch64__) && \ + !defined(__powerpc__) && !defined(__ppc__) && \ + !defined(__mips__) && !defined(__riscv) + #define HAVE_ASM_EBX 1 +#else + #define HAVE_ASM_EBX 0 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h index c8720150..3a89018e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_KCMVIDEOCODECTYPE_HEVC.h @@ -8,9 +8,8 @@ /* HEVC (High-Efficiency Video Coding), * also known as H.265 codec, in the media framework. - * Since MacOS 10.13/iOS 11, Windows 10 + * Since MacOS 10.13/iOS 11 */ -#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) || \ - (defined(_WIN32) && (_WIN32_WINNT >= _WIN32_WINNT_WIN10)) +#if BUILD2_AUTOCONF_MACOS_PREREQ(10, 13) # define HAVE_KCMVIDEOCODECTYPE_HEVC 1 #endif From 45c87be77c66815b9a87733b65eb96f4ba0e370d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 29 Oct 2024 09:27:44 +0100 Subject: [PATCH 143/166] Improve checks (in particular for linux): HAVE_DEV_IC_BT8XX_H HAVE_PTHREAD_SETNAME_NP HAVE_PTHREAD_SET_NAME_NP HAVE_SLEEP HAVE_STRUCT_SOCKADDR_SA_LEN HAVE_SYS_VIDEOIO_H --- .../autoconf/checks/HAVE_DEV_IC_BT8XX_H.h | 11 ++++++++--- .../autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h | 15 +++++++++------ .../autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h | 17 ++++++++++------- .../libbuild2/autoconf/checks/HAVE_SLEEP.h | 11 +++++++---- .../checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h | 10 ++++------ .../autoconf/checks/HAVE_SYS_VIDEOIO_H.h | 16 ++++++++++------ 6 files changed, 48 insertions(+), 32 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h index aa71a369..0e74d6d7 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_DEV_IC_BT8XX_H.h @@ -2,10 +2,15 @@ #undef HAVE_DEV_IC_BT8XX_H -/* OpenBSD 2.3, FreeBSD 2.2, glibc 2.19, NetBSD 1.5 +/* Check for dev/ic/bt8xx.h, which provides Brooktree video capture + * driver interfaces on BSD-based systems. Available since: + * - FreeBSD 2.2+ + * - OpenBSD 2.3+ (1998) + * - NetBSD 1.5+ + * + * This header is not relevant for glibc-based systems. */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 2) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199805) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) # define HAVE_DEV_IC_BT8XX_H 1 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h index 0461a43b..8c354b4d 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SETNAME_NP.h @@ -6,13 +6,16 @@ #undef HAVE_PTHREAD_SETNAME_NP -/* Presence of the pthread_setname_np() function, which is a - * non-standard POSIX function used to set the name of a thread. - * Since glibc 2.12, FreeBSD 7.0, NetBSD 8.0, MacOS 10.6 +/* Check for the presence of the pthread_setname_np() function, + * which sets the name of a thread. This function is available on: + * - glibc 2.12+ + * - FreeBSD 9.0+ + * - NetBSD 8.0+ + * - macOS 10.6+ */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(7, 0) || \ - BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) # define HAVE_PTHREAD_SETNAME_NP 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h index 2ebb9d04..1f47db47 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_PTHREAD_SET_NAME_NP.h @@ -6,13 +6,16 @@ #undef HAVE_PTHREAD_SET_NAME_NP -/* Presence of the pthread_set_name_np() function, which is a - * non-standard POSIX function used to set the name of a thread. - * Since glibc 2.12, FreeBSD 7.0, NetBSD 8.0, MacOS 10.6 +/* Check for the presence of the pthread_set_name_np() function, + * which sets the name of a thread. This is available on: + * - glibc 2.12+ + * - FreeBSD 9.0+ + * - NetBSD 8.0+ + * - macOS 10.6+ */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(20131101) || \ - BUILD2_AUTOCONF_NETBSD_PREREQ(7, 0) +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 12) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 6) # define HAVE_PTHREAD_SET_NAME_NP 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h index c6e70123..51bf295b 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h @@ -6,14 +6,17 @@ #undef HAVE_SLEEP -/* Since Version 4/7 AT&T UNIX. - * glibc 2.1 (?) +/* Check for the presence of the sleep() function, which pauses the + * program for a specified number of seconds. This function is widely + * available on UNIX-like systems, including: + * - Linux (all versions with glibc 2.0+) + * - FreeBSD 3.0+, NetBSD 1.3+, OpenBSD 2.1+, macOS 10.0+ */ -#if defined(__linux__) || \ +#if defined(__linux__) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) # define HAVE_SLEEP 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h index 7e133c91..1b500d3b 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_SA_LEN.h @@ -6,15 +6,13 @@ #undef HAVE_STRUCT_SOCKADDR_SA_LEN -/* Presence of the sa_len field in the sockaddr structure, +/* Check for the presence of the sa_len field in the sockaddr structure, * which defines the length of the address structure. - * FreeBSD 4.0, OpenBSD 2.0, NetBSD 1.5, MacOS 10 - * Solaris 7 + * Supported on FreeBSD 4.0, OpenBSD 2.0, NetBSD 1.5, and macOS 10.0+ */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ +#if BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ - BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) # define HAVE_STRUCT_SOCKADDR_SA_LEN 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h index 4616e000..a41d03ae 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_VIDEOIO_H.h @@ -6,11 +6,15 @@ #undef HAVE_SYS_VIDEOIO_H -/* Presence of sys/videoio.h, which provides an interface for controlling video - * devices. It is often used for video capture devices, particularly on Unix systems. - * Since Linux Kernel 2.2 (now deprecated), Solaris +/* Check for sys/videoio.h presence, which is specific to + * Solaris and older Unix systems. On Linux, this header is deprecated, + * and video capture uses linux/videodev2.h instead. */ -#if defined(__linux__) || \ - ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) -# define HAVE_SYS_VIDEOIO_H 1 +#if (defined(__sun) && defined(__SVR4)) || defined(__sun__) + #define HAVE_SYS_VIDEOIO_H 1 +#elif defined(__linux__) + #include + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) + #define HAVE_SYS_VIDEOIO_H 1 + #endif #endif From 34e3fc7a22787476c50b848fc02184057ace101f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 30 Oct 2024 11:56:22 +0100 Subject: [PATCH 144/166] BYTE_ORDER: If '__DARWIN_BYTE_ORDER' isn't defined (eg. on apple-silicon), so fall back to '__BYTE_ORDER__' check. --- .../libbuild2/autoconf/checks/BYTE_ORDER.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h index 35ab553d..29d954ce 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h @@ -43,11 +43,15 @@ # define BIG_ENDIAN 4321 # define LITTLE_ENDIAN 1234 # define BYTE_ORDER LITTLE_ENDIAN -# elif defined(__BYTE_ORDER__) && \ - defined(__ORDER_BIG_ENDIAN__) && \ - defined(__ORDER_LITTLE_ENDIAN__) - /* GCC, Clang (and others, potentially). - */ +# endif +#endif + +/* Fallback: GCC, Clang (specifically apple-silicon and others, potentially). + */ +#ifndef BYTE_ORDER +# if defined(__BYTE_ORDER__) && \ + defined(__ORDER_BIG_ENDIAN__) && \ + defined(__ORDER_LITTLE_ENDIAN__) # define BYTE_ORDER __BYTE_ORDER__ # define BIG_ENDIAN __ORDER_BIG_ENDIAN__ # define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ From 54ec7b91699f3a516db69fc7a062f2d5d764a3f3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 30 Oct 2024 17:57:19 +0100 Subject: [PATCH 145/166] Tweak some checks that should also be defined as 1 on windows. --- .../libbuild2/autoconf/checks/HAVE_ACCESS.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h | 5 ++++- .../libbuild2/autoconf/checks/HAVE_GETADDRINFO.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_GETENV.h | 11 ++++++----- .../libbuild2/autoconf/checks/HAVE_HYPOT.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_LOG10F.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_LOG2.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_LOG2F.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_RDTSC.h | 10 +++++----- .../libbuild2/autoconf/checks/HAVE_SLEEP.h | 5 ++++- .../libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h | 3 ++- 12 files changed, 35 insertions(+), 20 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h index 0aef0686..cb4295ed 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ACCESS.h @@ -15,6 +15,7 @@ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(2, 0) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - (defined(__sun) && defined(__SVR4)) + (defined(__sun) && defined(__SVR4)) || \ + defined(_WIN32) # define HAVE_ACCESS 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h index 43515aa9..2a87193d 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_UNALIGNED.h @@ -4,7 +4,10 @@ /* Platforms and compilers supporting efficient unaligned memory access. */ -#if defined(__x86_64__) || defined(__i386__) /* x86 and x86-64 (Intel and AMD) */ + +/* x86 and x86-64 (Intel and AMD) */ +#if defined(__x86_64__) || defined(__i386__) || \ + defined(_M_IX86) || defined(_M_X64) /* x86 and x86-64 platforms have efficient unaligned memory access */ # define HAVE_FAST_UNALIGNED 1 #elif defined(__ARM_ARCH) && (__ARM_ARCH >= 7) /* ARMv7-A or later */ diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETADDRINFO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETADDRINFO.h index 9e526689..9df6399c 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETADDRINFO.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETADDRINFO.h @@ -14,6 +14,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 5)|| \ BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ - defined(BUILD2_AUTOCONF_MACOS) + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) # define HAVE_GETADDRINFO 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETENV.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETENV.h index a9d04d05..a18f568f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETENV.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GETENV.h @@ -9,10 +9,11 @@ /* Since Version 7 AT&T UNIX, 4.3BSD-Tahoe (OpenBSD, FreeBSD, NetBSD, Mac OS X), * glibc 1.09 */ -#if defined(__FreeBSD__) || \ - defined(__OpenBSD__) || \ - defined(__NetBSD__) || \ - defined(BUILD2_AUTOCONF_MACOS) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(1, 9) +#if defined(__FreeBSD__) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) || \ + defined(BUILD2_AUTOCONF_MACOS) || \ + BUILD2_AUTOCONF_GLIBC_PREREQ(1, 9) || \ + defined(_WIN32) # define HAVE_GETENV 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h index edb7cd8a..1128b03e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_HYPOT.h @@ -15,6 +15,7 @@ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) || \ + defined(_WIN32) # define HAVE_HYPOT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h index 0145f58d..bc2e912e 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG10F.h @@ -14,6 +14,7 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ - defined(BUILD2_AUTOCONF_MACOS) + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) # define HAVE_LOG10F 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h index 4f0d02d1..dcb3a9fe 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2.h @@ -14,6 +14,7 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ - defined(BUILD2_AUTOCONF_MACOS) + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) # define HAVE_LOG2 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h index 9c1698b5..d1ee28b1 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LOG2F.h @@ -14,6 +14,7 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ - defined(BUILD2_AUTOCONF_MACOS) + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) # define HAVE_LOG2F 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h index 7e997c98..ae57f085 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_RDTSC.h @@ -2,11 +2,11 @@ #undef HAVE_RDTSC -/* Presence of RDTSC (Read Time-Stamp Counter) instruction on x86 - * processors, which reads the number of CPU cycles since the last reset. - * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), - * MacOS 10.04 (x86) +/* Check for the presence of the RDTSC (Read Time-Stamp Counter) instruction, + * which reads the number of CPU cycles since the last reset. + * Available on x86 (32-bit and 64-bit) processors. */ -#if defined(__i386__) +#if defined(__i386__) || defined(__x86_64__) || \ + defined(_M_IX86) || defined(_M_X64) # define HAVE_RDTSC 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h index 51bf295b..9ad6892f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h @@ -17,6 +17,9 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ - BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + defined(_WIN32) # define HAVE_SLEEP 1 +#else +# define HAVE_SLEEP 0 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h index dc520596..628b50c8 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h @@ -15,6 +15,7 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ - defined(BUILD2_AUTOCONF_MACOS) + defined(BUILD2_AUTOCONF_MACOS) || \ + defined(_WIN32) # define HAVE_STRUCT_ADDRINFO 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h index b8d10095..b7d538ac 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h @@ -14,6 +14,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(200112) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) # define HAVE_STRUCT_IPV6_MREQ 1 #endif From a0c19001842e66cf3f0b6a7f04ecf44dd461315e Mon Sep 17 00:00:00 2001 From: helmesjo Date: Wed, 30 Oct 2024 17:58:39 +0100 Subject: [PATCH 146/166] Add HAVE_GNU_WINDRES --- .../libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h new file mode 100644 index 00000000..eb4aa40b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h @@ -0,0 +1,10 @@ +// HAVE_GNU_WINDRES + +#undef HAVE_GNU_WINDRES + +/* GNU windres is commonly available in MinGW and Cygwin environments, + * where it's used to compile Windows resource files (.rc). + */ +#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) + #define HAVE_GNU_WINDRES 1 +#endif From 2b9871b4f3cb92c077a12bfea5e9f7419ea7d1e8 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 11:50:48 +0100 Subject: [PATCH 147/166] HAVE_ASM_EBP & HAVE_ASM_EBX: Don't define as '0' when not available. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h | 2 -- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h index 5b1a12d4..5bc9d430 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBP.h @@ -12,6 +12,4 @@ !defined(__powerpc__) && !defined(__ppc__) && \ !defined(__mips__) && !defined(__riscv) #define HAVE_ASM_EBP 1 -#else - #define HAVE_ASM_EBP 0 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h index f0d9c351..ca6bd9d5 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_EBX.h @@ -12,6 +12,4 @@ !defined(__powerpc__) && !defined(__ppc__) && \ !defined(__mips__) && !defined(__riscv) #define HAVE_ASM_EBX 1 -#else - #define HAVE_ASM_EBX 0 #endif From 9c7436950ec877b9ed1634fa36e156de4e008f79 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 12:00:43 +0100 Subject: [PATCH 148/166] HAVE_SLEEP: Don't define as '0' when not available. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h index 9ad6892f..ddded58b 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SLEEP.h @@ -20,6 +20,4 @@ BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ defined(_WIN32) # define HAVE_SLEEP 1 -#else -# define HAVE_SLEEP 0 #endif From b0c20b83c61709daa9bca6ae86065d62cdcf9967 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 13:29:01 +0100 Subject: [PATCH 149/166] Add HAVE_GNU_AS --- .../libbuild2/autoconf/checks/HAVE_GNU_AS.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h new file mode 100644 index 00000000..e3144c7c --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h @@ -0,0 +1,10 @@ +// HAVE_GNU_AS + +#undef HAVE_GNU_AS + +/* GNU Assembler (as) is commonly available in environments like + * Linux, MinGW, and Cygwin, where the GNU toolchain is standard. + */ +#if defined(__GNUC__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) + #define HAVE_GNU_AS 1 +#endif From 9231156c7848470babe4e5a8dfcf8b30ae470b9a Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 13:29:15 +0100 Subject: [PATCH 150/166] Add HAVE_ASM_MOD_Q --- .../autoconf/checks/HAVE_ASM_MOD_Q.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_MOD_Q.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_MOD_Q.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_MOD_Q.h new file mode 100644 index 00000000..1c3d12b1 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_MOD_Q.h @@ -0,0 +1,19 @@ +// HAVE_ASM_MOD_Q + +#undef HAVE_ASM_MOD_Q + +/* Check if the 'modq' assembly instruction is available, which may be used + * in x86-64 environments with specific assemblers. + * This instruction is non-standard and might not be universally supported. + */ +#if defined(__x86_64__) || defined(_M_X64) + #if defined(__GNUC__) || defined(__clang__) + // GCC and Clang can support inline assembly with 'modq' + #define HAVE_ASM_MOD_Q 1 + #elif defined(_MSC_VER) + // MSVC does not natively support 'modq' but might support equivalent + // operations depending on the intrinsic and inline assembly + // options (older MSVC might lack support) + #define HAVE_ASM_MOD_Q 1 + #endif +#endif From 593c36adc46fbab1c17cdf9023c1e15dc85001d6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 13:50:15 +0100 Subject: [PATCH 151/166] HAVE_AS_FUNC_DIRECTIVE (.func) is not available on apple-silicon. --- .../libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h index 2ba1a1c2..6960f71f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FUNC_DIRECTIVE.h @@ -3,8 +3,9 @@ #undef HAVE_AS_FUNC_DIRECTIVE /* Assembly directive '.func'/'.function' - * AFAICS this exists on ARM since very old versions. + * AFAICS this exists on ARM since very old versions, + * but not on Apple Silicon. */ -#if defined(__ARM_ARCH) +#if defined(__ARM_ARCH) && !defined(__APPLE__) # define HAVE_AS_FUNC_DIRECTIVE 1 #endif From 0f311ea5c1e2289c1b44ada760a3dc383084d0aa Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 17:20:51 +0100 Subject: [PATCH 152/166] HAVE_GNU_WINDRES: Also available on MSYS2. --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h index eb4aa40b..a81a9e0d 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h @@ -5,6 +5,6 @@ /* GNU windres is commonly available in MinGW and Cygwin environments, * where it's used to compile Windows resource files (.rc). */ -#if defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) +#if defined(__MSYS__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) #define HAVE_GNU_WINDRES 1 #endif From 2574861df2c3927ff4cb7a296c50dc1eaef84218 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 17:22:32 +0100 Subject: [PATCH 153/166] Revert "Add HAVE_GNU_AS" This reverts commit b0c20b83c61709daa9bca6ae86065d62cdcf9967. It's not used by any package. --- .../libbuild2/autoconf/checks/HAVE_GNU_AS.h | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h deleted file mode 100644 index e3144c7c..00000000 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_AS.h +++ /dev/null @@ -1,10 +0,0 @@ -// HAVE_GNU_AS - -#undef HAVE_GNU_AS - -/* GNU Assembler (as) is commonly available in environments like - * Linux, MinGW, and Cygwin, where the GNU toolchain is standard. - */ -#if defined(__GNUC__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) - #define HAVE_GNU_AS 1 -#endif From 4e349524ab6ed20f77bbc7590d22a18acd7f9606 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 4 Nov 2024 21:03:20 +0100 Subject: [PATCH 154/166] Fix the following checks for MINGW32: HAVE_GMTIME_R.h HAVE_GNU_WINDRES.h HAVE_ISFINITE.h HAVE_LIBC_MSVCRT.h HAVE_SYS_TYPES_H.h --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h | 1 + .../libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h | 2 +- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h | 4 +++- .../libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h | 2 +- .../libbuild2/autoconf/checks/HAVE_SYS_TYPES_H.h | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h index 72c69fda..52aa41d3 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_GMTIME_R 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h index a81a9e0d..d49a45d5 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GNU_WINDRES.h @@ -6,5 +6,5 @@ * where it's used to compile Windows resource files (.rc). */ #if defined(__MSYS__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(__CYGWIN__) - #define HAVE_GNU_WINDRES 1 +# define HAVE_GNU_WINDRES 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h index 839975b4..14108cc3 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ISFINITE.h @@ -6,7 +6,8 @@ #undef HAVE_ISFINITE -/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris +/* Since Linux/glibc 2.0, FreeBSD 5.1, OpenBSD 4.4, NetBSD 1.3, Mac OS, Solaris, + * MingW */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 1) || \ @@ -16,6 +17,7 @@ BUILD2_AUTOCONF_MINGW_PREREQ(1, 0) || \ defined(BUILD2_AUTOCONF_MACOS) || \ defined(_WIN32) || \ + defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_ISFINITE 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h index 32ec74d8..b7d36a2f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LIBC_MSVCRT.h @@ -4,6 +4,6 @@ /* Presence of MSVCRT (Microsoft Visual C++ Runtime Library) in the C standard library. */ -#if defined(_MSC_VER) || defined(__MINGW32__) +#if defined(_MSC_VER) # define HAVE_LIBC_MSVCRT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_TYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_TYPES_H.h index ec4ad171..0850aabf 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_TYPES_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SYS_TYPES_H.h @@ -6,6 +6,6 @@ #undef HAVE_SYS_TYPES_H /* Linux only (?) */ -#if defined(__linux__) +#if defined(__linux__) || defined(__MINGW32__) || defined(__CYGWIN__) # define HAVE_SYS_TYPES_H 1 #endif From 020466f2b711557cb30cdfbb2d39ad376c4629ea Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 9 Nov 2024 16:45:41 +0100 Subject: [PATCH 155/166] Revert "HAVE_ARC4RANDOM_BUF: Not available on linux (unless libbsd is installed)." It's required for at least libevent and appears to be a reasonable assumption that it exists. This reverts commit 9b49ed85ccd2e0d82085b6e28f36d5a59937f89e. --- .../libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h index dfeb7a5f..7fb4a51a 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM_BUF.h @@ -7,11 +7,12 @@ #undef HAVE_ARC4RANDOM_BUF /* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7 - * and glibc 2.36 (only via libbsd). + * and glibc 2.36. */ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) + BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36) # define HAVE_ARC4RANDOM_BUF 1 #endif From a6b00ed2c006c471978378471356b689dc206cd6 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 9 Nov 2024 16:47:08 +0100 Subject: [PATCH 156/166] Revert "HAVE_ARC4RANDOM: Not available on linux (unless libbsd is installed)." It's required for at least libevent and appears to be a reasonable assumption that it exists. This reverts commit 621a069277a5a5f61e6613dea517e1092cd7451d. --- .../libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h index 399cb3e3..ab92bbc1 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARC4RANDOM.h @@ -7,11 +7,12 @@ #undef HAVE_ARC4RANDOM /* Since OpenBSD 2.1, FreeBSD 2.3, NetBSD 2.0, Mac OS X 10.7 - * and glibc 2.36 (only via libbsd). + * and glibc 2.36. */ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(199706) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(2, 0) || \ - BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) + BUILD2_AUTOCONF_MACOS_PREREQ(10, 7) || \ + BUILD2_AUTOCONF_GLIBC_PREREQ(2, 36) # define HAVE_ARC4RANDOM 1 #endif From 194f35ce28356eb49d5f274a8e77ba919f366081 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 9 Dec 2024 23:31:27 +0100 Subject: [PATCH 157/166] TEMP: Tweaks for windows. Clean this up. --- .../autoconf/checks/HAVE_FAST_FLOAT16.h | 20 +++++++++++++++++++ .../libbuild2/autoconf/checks/HAVE_FMA3.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_FMA4.h | 3 ++- .../libbuild2/autoconf/checks/HAVE_I686.h | 3 ++- .../autoconf/checks/HAVE_SIMD_ALIGN_16.h | 4 +++- .../autoconf/checks/HAVE_SOCKLEN_T.h | 7 +++++++ .../autoconf/checks/HAVE__ALIGNED_MALLOC.h | 1 - .../libbuild2/autoconf/checks/socklen_t.h | 2 +- 8 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_FLOAT16.h create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_FLOAT16.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_FLOAT16.h new file mode 100644 index 00000000..eaa78b6b --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FAST_FLOAT16.h @@ -0,0 +1,20 @@ +// HAVE_FAST_FLOAT16 + +#undef HAVE_FAST_FLOAT16 + +/* Checks for the availability of fast `_Float16` support. + * `_Float16` is natively supported on: + * - GCC (11.0+) with supported architectures (ARM, x86 with AVX-512FP16, RISC-V V-extension). + * - Clang with similar architecture support. + * - ARM platforms with NEON or SVE. + * MSVC does not support `_Float16`. + */ + +#if (defined(__GNUC__) && __GNUC__ >= 11) || defined(__clang__) +# if defined(__ARM_FEATURE_FP16_SCALAR_ARITHMETIC) || \ + defined(__ARM_NEON) || \ + defined(__AVX512FP16__) || \ + defined(__riscv_zfh) +# define HAVE_FAST_FLOAT16 1 +# endif +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h index 98f6403c..9db7948b 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA3.h @@ -6,6 +6,7 @@ * * MSVC: /arch:AVX2 */ -#ifdef __FMA__ +#if defined(__FMA__) || \ + (defined(_WIN32) && defined(__AVX2__)) # define HAVE_FMA3 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h index 459d2268..bb2ae02a 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_FMA4.h @@ -6,6 +6,7 @@ * * MSVC: /arch:AVX2 */ -#ifdef __FMA4__ +#if defined(__FMA4__) || \ + (defined(_WIN32) && defined(__AVX2__)) # define HAVE_FMA4 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h index 96cd0fa9..0953f63f 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_I686.h @@ -3,7 +3,8 @@ #undef HAVE_I686 /* Defined for i686 processors (Pentium Pro and later) + * MSVC: Check for 32-bit x86 (_M_IX86) and compatible instruction sets. */ -#if defined(__i686__) +#if defined(__i686__) || (defined(_MSC_VER) && defined(_M_IX86) && _M_IX86 >= 600) # define HAVE_I686 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h index 667eec5c..b0aab113 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SIMD_ALIGN_16.h @@ -4,7 +4,9 @@ /* Presence of 16-byte SIMD alignment, * typically required for SSE and NEON. + * WIN32: Check for _M_IX86 or _M_X64 and SSE support. */ -#if defined(__SSE__) || defined(__ARM_NEON) || defined(__ARM_NEON__) +#if defined(__SSE__) || defined(__ARM_NEON) || defined(__ARM_NEON__) || \ + (defined(_WIN32) && (defined(_M_IX86) || defined(_M_X64))) # define HAVE_SIMD_ALIGN_16 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h new file mode 100644 index 00000000..32fe6be2 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h @@ -0,0 +1,7 @@ +// HAVE_SOCKLEN_T: socklen_t + +#undef HAVE_SOCKLEN_T + +#ifdef socklen_t +# define HAVE_SOCKLEN_T 1 +#endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h index e9d9183a..ceb7eb77 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE__ALIGNED_MALLOC.h @@ -7,4 +7,3 @@ #if defined(_WIN32) # define HAVE__ALIGNED_MALLOC 1 #endif - diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h index 11f200b6..4219d611 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h @@ -28,7 +28,7 @@ * this is a simple int typedef and so just doing that feels like the * simplest (if hackish) way to sidestep the whole mess. */ - typedef int socklen_t; +# define socklen_t int # else /* Else define it to unsigned int (suggested fallback by libevent). */ # define socklen_t unsigned int From 28f5ade7f77e19b2288e52cad6344e132d529280 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 14 Dec 2024 16:00:37 +0100 Subject: [PATCH 158/166] Add HAVE_ARMASM --- .../libbuild2/autoconf/checks/HAVE_ARMASM.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMASM.h diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMASM.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMASM.h new file mode 100644 index 00000000..ef709fb4 --- /dev/null +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ARMASM.h @@ -0,0 +1,12 @@ +// HAVE_ARMASM + +#undef HAVE_ARMASM + +// Check for ARM assembly support based on compiler targeting ARM + +// GCC or Clang (including Apple Clang) - Check for ARM target architecture +#if defined(__GNUC__) || defined(__clang__) +# if defined(__ARM_ARCH) || defined(__arm__) || defined(__aarch64__) +# define HAVE_ARMASM 1 +# endif +#endif From bbda87c9e8ad95fc6fd92c5a1f66ae7026b67282 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 14 Dec 2024 16:01:54 +0100 Subject: [PATCH 159/166] Revise these checks (specifically to work correctly for MacOS): HAVE_ASM_TYPES_H.h HAVE_GMTIME_R.h HAVE_LSTAT.h HAVE_SOCKLEN_T.h HAVE_STRUCT_GROUP_SOURCE_REQ.h HAVE_STRUCT_IP_MREQ_SOURCE.h socklen_t.h --- .../autoconf/checks/HAVE_ASM_TYPES_H.h | 2 +- .../libbuild2/autoconf/checks/HAVE_GMTIME_R.h | 1 + .../libbuild2/autoconf/checks/HAVE_LSTAT.h | 13 +++++++++++-- .../autoconf/checks/HAVE_SOCKLEN_T.h | 19 +++++++++++++++++-- .../checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h | 6 ++++-- .../checks/HAVE_STRUCT_IP_MREQ_SOURCE.h | 7 +++++-- .../libbuild2/autoconf/checks/socklen_t.h | 14 +++++++------- 7 files changed, 46 insertions(+), 16 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h index fbda0ee6..45b5d4b8 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h @@ -4,6 +4,6 @@ /* Since Linux 2.2. */ -#if defined(__linux__) +#if defined(__linux__) || (__APPLE__) # define HAVE_ASM_TYPES_H 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h index 52aa41d3..707c4df3 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_GMTIME_R.h @@ -9,6 +9,7 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199105) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ defined(__MINGW32__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_GMTIME_R 1 diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h index 9d8a2a6f..a15ba920 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_LSTAT.h @@ -6,8 +6,17 @@ #undef HAVE_LSTAT -/* Since glibc 2.19. +/* + * lstat() is available in: + * - glibc since 2.19 + * - BSD systems (including MacOS) + * - Solaris */ -#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 19) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_LSTAT 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h index 32fe6be2..d7e66794 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_SOCKLEN_T.h @@ -1,7 +1,22 @@ -// HAVE_SOCKLEN_T: socklen_t +// HAVE_SOCKLEN_T : BUILD2_AUTOCONF_LIBC_VERSION + +#ifndef BUILD2_AUTOCONF_LIBC_VERSION +# error BUILD2_AUTOCONF_LIBC_VERSION appears to be conditionally included +#endif #undef HAVE_SOCKLEN_T -#ifdef socklen_t +/* socklen_t is available in: + * - glibc since 2.0 + * - BSD systems (including MacOS) + * - Solaris, Cygwin + */ +#if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + (defined(__sun) && defined(__SVR4)) || \ + defined(__CYGWIN__) # define HAVE_SOCKLEN_T 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h index a47ecaa0..e2c5a9f2 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h @@ -8,9 +8,11 @@ /* Presence of the group_source_req structure, used for managing IP multicast group * subscriptions with source filtering, typically found in newer networking libraries. - * Since glibc 2.5, FreeBSD 9.0 + * Since glibc 2.5, FreeBSD 9.0, MacOS 10.11, NetBSD 8.0 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 5) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) # define HAVE_STRUCT_GROUP_SOURCE_REQ 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h index 2d2fdd1f..def6778d 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h @@ -8,9 +8,12 @@ /* Presence of the ip_mreq_source structure, used for IP * multicast source filtering in IPv4. - * Since glibc 2.1, FreeBSD 9.0 + * Since glibc 2.1, FreeBSD 9.0, MacOS 10.4, NetBSD 3.0, OpenBSD 4.0 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 1) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) + BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 4) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(3, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(200508) # define HAVE_STRUCT_IP_MREQ_SOURCE 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h index 4219d611..9aced9cb 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h @@ -1,4 +1,4 @@ -// socklen_t! +// socklen_t! : BUILD2_AUTOCONF_LIBC_VERSION /* If socklen_t is already defined, assume it's correct and use it as-is (see * ssize_t for details). @@ -12,11 +12,11 @@ * To forestall portability problems, it is recommended that * applications should not use values larger than 232 - 1. */ -# if defined(__linux__) || \ - defined(__FreeBSD__) || \ - defined(__OpenBSD__) || \ - defined(__NetBSD__) || \ - defined(__APPLE__) || \ +# if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(4, 0) || \ + BUILD2_AUTOCONF_OPENBSD_PREREQ(199510) || \ + BUILD2_AUTOCONF_NETBSD_PREREQ(1, 0) || \ + BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ (defined(__sun) && defined(__SVR4)) || \ defined(__CYGWIN__) # include @@ -28,7 +28,7 @@ * this is a simple int typedef and so just doing that feels like the * simplest (if hackish) way to sidestep the whole mess. */ -# define socklen_t int + typedef int socklen_t # else /* Else define it to unsigned int (suggested fallback by libevent). */ # define socklen_t unsigned int From 99bce6656d88a1f891b0140fb6aad3c40fb8b95d Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 16 Dec 2024 11:51:04 +0100 Subject: [PATCH 160/166] BYTE_ORDER: Remove problematic header on MacOS (which isn't necessary anyways). --- .../libbuild2/autoconf/checks/BYTE_ORDER.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h index 29d954ce..4649afb9 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h @@ -12,7 +12,10 @@ #elif defined(__FreeBSD__) || defined(__NetBSD__) # include #elif defined(__APPLE__) -# include +// NOTE: This header is deprecated and also causes various +// issues with defines like u_int and friends, and +// strictly speaking it shouldn't be necessary. +//# include #elif !defined(_WIN32) # include #endif @@ -38,6 +41,11 @@ # define BYTE_ORDER __DARWIN_BYTE_ORDER # define BIG_ENDIAN __DARWIN_BIG_ENDIAN # define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN +# else + // If for some reason __DARWIN_BYTE_ORDER isn't defined, we can assume: +# define BYTE_ORDER __LITTLE_ENDIAN // macOS uses little-endian +# define BIG_ENDIAN 4321 +# define LITTLE_ENDIAN 1234 # endif # elif defined(_WIN32) # define BIG_ENDIAN 4321 From af601df3d4d1a5638a7f3975e1985def349a8d3e Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 16 Dec 2024 11:51:58 +0100 Subject: [PATCH 161/166] socklen_t: Add missing semi-colon. --- libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h index 9aced9cb..4e0329c0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/socklen_t.h @@ -28,7 +28,7 @@ * this is a simple int typedef and so just doing that feels like the * simplest (if hackish) way to sidestep the whole mess. */ - typedef int socklen_t + typedef int socklen_t; # else /* Else define it to unsigned int (suggested fallback by libevent). */ # define socklen_t unsigned int From e7cccc84ecbf28b3c3d496b98f69fcc3b399f6d3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 16 Dec 2024 11:54:00 +0100 Subject: [PATCH 162/166] Revise these checks (specifically to work correctly for MacOS): HAVE_ASM_TYPES_H.h HAVE_AS_DN_DIRECTIVE.h HAVE_AS_FPU_DIRECTIVE.h HAVE_INTTYPES_H.h --- .../libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h | 2 +- .../libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h | 9 ++++++--- .../libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h | 7 ++++--- .../libbuild2/autoconf/checks/HAVE_INTTYPES_H.h | 4 ++-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h index 45b5d4b8..fbda0ee6 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_ASM_TYPES_H.h @@ -4,6 +4,6 @@ /* Since Linux 2.2. */ -#if defined(__linux__) || (__APPLE__) +#if defined(__linux__) # define HAVE_ASM_TYPES_H 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h index 4bdf2e31..62e159ed 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_DN_DIRECTIVE.h @@ -3,9 +3,12 @@ #undef HAVE_AS_DN_DIRECTIVE /* Assembly feature. - * Available in ARMV8 and later. + * Available in ARMv8 and later. * See: https://sourceware.org/binutils/docs/as/ARM-Directives.html + * Note: Apple Silicon (M1 and later) uses ARMv8 architecture but has different preprocessor macros. */ -#if defined(__ARM_NEON) || defined(__ARM_NEON__) -# define HAVE_AS_DN_DIRECTIVE 1 +#if (defined(__ARM_NEON) || defined(__ARM_ARCH_ISA_A64)) || (defined(__APPLE__) && (defined(__arm64__) || defined(__arm64e__))) +# if defined(__ARM_ARCH) && __ARM_ARCH >= 8 || (defined(__APPLE__) && (defined(__arm64__) || defined(__arm64e__))) +# define HAVE_AS_DN_DIRECTIVE 1 +# endif #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h index 8ce2d5e3..051b5ef9 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_AS_FPU_DIRECTIVE.h @@ -3,11 +3,12 @@ #undef HAVE_AS_FPU_DIRECTIVE /* Assembly feature. - * Available in ARMV8 and later. + * Available in ARMv8 and later. * See: https://sourceware.org/binutils/docs/as/ARM-Directives.html + * Note: Apple Silicon (M1 and later) uses ARMv8 architecture but has different preprocessor macros. */ -#if defined(__ARM_ARCH) -# if __ARM_ARCH >= 8 +#if defined(__ARM_ARCH) || (defined(__APPLE__) && (defined(__arm64__) || defined(__arm64e__))) +# if defined(__ARM_ARCH) && __ARM_ARCH >= 8 || (defined(__APPLE__) && (defined(__arm64__) || defined(__arm64e__))) # define HAVE_AS_FPU_DIRECTIVE 1 # endif #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h index b7a93abe..3e91adea 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_INTTYPES_H.h @@ -6,11 +6,11 @@ #undef HAVE_INTTYPES_H -/* Since OpenBSD 3.9, FreeBSD 5.0, NetBSD 5.0, Mac OS X 10.3 +/* Since OpenBSD 3.9, FreeBSD 5.0, NetBSD 5.0, Mac OS X 10.3, * glibc 2.2, Mingw-w64 2.0, Platform SDK 10. */ #if BUILD2_AUTOCONF_OPENBSD_PREREQ(200601) || \ - BUILD2_AUTOCONF_FREEBSD_PREREQ(2, 3) || \ + BUILD2_AUTOCONF_FREEBSD_PREREQ(5, 0) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(5, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 3) || \ BUILD2_AUTOCONF_GLIBC_PREREQ(2, 2) || \ From 2b07dac3b484d42569864cfeb4ca7c94e7d69303 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 16 Dec 2024 20:39:05 +0100 Subject: [PATCH 163/166] HAVE_XOP: 1 for MSVC+AMD --- libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XOP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XOP.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XOP.h index e1106445..ee16b738 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XOP.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_XOP.h @@ -10,6 +10,6 @@ * https://docs.microsoft.com/en-us/cpp/intrinsics/x86-intrinsics-list * https://docs.microsoft.com/en-us/cpp/intrinsics/x64-amd64-intrinsics-list) */ -#ifdef __XOP__ +#if defined(__XOP__) || (defined(_MSC_VER) && defined(_M_AMD64)) # define HAVE_XOP 1 #endif From d93b1ca541f23f1f92a838bb22ccc1819bcebcc3 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Mon, 16 Dec 2024 12:57:49 +0100 Subject: [PATCH 164/166] BYTE_ORDER: Use the same fallback for __APPLE__ as other platforms. --- libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h index 4649afb9..4e9b19c0 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/BYTE_ORDER.h @@ -41,11 +41,6 @@ # define BYTE_ORDER __DARWIN_BYTE_ORDER # define BIG_ENDIAN __DARWIN_BIG_ENDIAN # define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN -# else - // If for some reason __DARWIN_BYTE_ORDER isn't defined, we can assume: -# define BYTE_ORDER __LITTLE_ENDIAN // macOS uses little-endian -# define BIG_ENDIAN 4321 -# define LITTLE_ENDIAN 1234 # endif # elif defined(_WIN32) # define BIG_ENDIAN 4321 From c70f324259de51f93662ada2a9ed0f0c34fa509f Mon Sep 17 00:00:00 2001 From: helmesjo Date: Sat, 28 Dec 2024 12:38:07 +0100 Subject: [PATCH 165/166] Revise these checks (specifically to work correctly for Win32 as FFmpeg expects): HAVE_STRUCT_ADDRINFO.h HAVE_STRUCT_GROUP_SOURCE_REQ.h HAVE_STRUCT_IN6_ADDR.h HAVE_STRUCT_IPV6_MREQ.h HAVE_STRUCT_IP_MREQ_SOURCE.h HAVE_STRUCT_POLLFD.h HAVE_STRUCT_SOCKADDR_STORAGE.h --- .../libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h | 4 +++- .../autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h | 5 ++++- .../libbuild2/autoconf/checks/HAVE_STRUCT_IN6_ADDR.h | 4 +++- .../libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h | 4 +++- .../libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h | 5 ++++- .../libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h | 7 +++++-- .../autoconf/checks/HAVE_STRUCT_SOCKADDR_STORAGE.h | 4 +++- 7 files changed, 25 insertions(+), 8 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h index 628b50c8..733b7e45 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_ADDRINFO.h @@ -16,6 +16,8 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 5) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_ADDRINFO 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h index e2c5a9f2..169b57ce 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_GROUP_SOURCE_REQ.h @@ -13,6 +13,9 @@ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 5) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 11) || \ - BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) + BUILD2_AUTOCONF_NETBSD_PREREQ(8, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_GROUP_SOURCE_REQ 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IN6_ADDR.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IN6_ADDR.h index 3094a2cf..535c8605 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IN6_ADDR.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IN6_ADDR.h @@ -13,6 +13,8 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(200106) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_IN6_ADDR 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h index b7d538ac..639e07fb 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IPV6_MREQ.h @@ -15,6 +15,8 @@ BUILD2_AUTOCONF_OPENBSD_PREREQ(200112) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 5) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_IPV6_MREQ 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h index def6778d..d8201765 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_IP_MREQ_SOURCE.h @@ -14,6 +14,9 @@ BUILD2_AUTOCONF_FREEBSD_PREREQ(9, 0) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 4) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(3, 0) || \ - BUILD2_AUTOCONF_OPENBSD_PREREQ(200508) + BUILD2_AUTOCONF_OPENBSD_PREREQ(200508) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_IP_MREQ_SOURCE 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h index 8ab2b8d7..f68fea05 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_POLLFD.h @@ -8,14 +8,17 @@ /* Presence of the pollfd structure, used for the poll() system call, * which monitors multiple file descriptors. - * Since glibc 2.0, FreeBSD 3.0, OpenBSD 2.0, NetBSD 1.3, MacOS 10 - * Solaris 2.6 + * Since glibc 2.0, FreeBSD 3.0, OpenBSD 2.0, NetBSD 1.3, MacOS 10, + * Windows (winsock2.h) & Solaris 2.6 */ #if BUILD2_AUTOCONF_GLIBC_PREREQ(2, 0) || \ BUILD2_AUTOCONF_FREEBSD_PREREQ(3, 0) || \ BUILD2_AUTOCONF_OPENBSD_PREREQ(199610) || \ BUILD2_AUTOCONF_NETBSD_PREREQ(1, 3) || \ BUILD2_AUTOCONF_MACOS_PREREQ(10, 0) || \ + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) || \ ((defined(__sun) && defined(__SVR4)) || defined(__sun__)) # define HAVE_STRUCT_POLLFD 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_STORAGE.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_STORAGE.h index 61b790e0..0626a809 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_STORAGE.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_STRUCT_SOCKADDR_STORAGE.h @@ -13,6 +13,8 @@ defined(__OpenBSD__) || \ defined(__NetBSD__) || \ defined(BUILD2_AUTOCONF_MACOS) || \ - defined(_WIN32) + defined(_WIN32) || \ + defined(__MINGW32__) || \ + defined(__CYGWIN__) # define HAVE_STRUCT_SOCKADDR_STORAGE 1 #endif From 2c1781e074b7b873d27cb0ebd87cfa75d7383f53 Mon Sep 17 00:00:00 2001 From: helmesjo Date: Tue, 7 Jan 2025 14:32:09 +0100 Subject: [PATCH 166/166] Revise HAVE_MMX & HAVE_MMXEXT (when testing with FFmpeg it looks like whenever HAVE_X86ASM is 1 then these should also be 1). --- .../libbuild2/autoconf/checks/HAVE_MMX.h | 11 +++++------ .../libbuild2/autoconf/checks/HAVE_MMXEXT.h | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h index 644c5f27..d8840f44 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMX.h @@ -1,13 +1,12 @@ -// HAVE_MMX +// HAVE_MMX : HAVE_X86ASM #undef HAVE_MMX -/* Presence of MMX instructions, which are extensions to the original - * MMX instruction set, available on AMD processors starting from K6-2. - * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), - * MacOS 10.04 (x86), MSVC +/* Presence of MMX instructions: + * - Checks for explicit __MMX__ definition first + * - Falls back to compiler-specific checks for likely MMX support */ #if defined(__MMX__) || \ - defined(_M_IX86) || defined(_M_X64) + defined(HAVE_X86ASM) # define HAVE_MMX 1 #endif diff --git a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h index 0fd6b3e6..5278c1c4 100644 --- a/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h +++ b/libbuild2-autoconf/libbuild2/autoconf/checks/HAVE_MMXEXT.h @@ -1,13 +1,12 @@ -// HAVE_MMXEXT +// HAVE_MMXEXT : HAVE_X86ASM #undef HAVE_MMXEXT -/* Presence of MMXEXT instructions, which are extensions to the original - * MMX instruction set, available on AMD processors starting from K6-2. - * Since glibc 2.0 (x86), FreeBSD (x86), OpenBSD (x86), NetBSD (x86), - * MacOS 10.04 (x86), MSVC +/* Presence of MMXEXT instructions: + * - Checks for explicit __MMXEXT__ definition first + * - Falls back to compiler-specific checks for likely MMXEXT support */ #if defined(__MMXEXT__) || \ - defined(_M_IX86) || defined(_M_X64) + defined(HAVE_X86ASM) # define HAVE_MMXEXT 1 #endif