diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-03-02 14:12:18 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-02-28 00:09:09 +0000 |
commit | 32c664ff02910bf39a3fbd5a5a4a8bff3191dd03 (patch) | |
tree | e3cebb78e296ae65b04b329e05eac06fd57a9f35 /toolchain/autoconf-lean/patches/120-add-extra-checks.patch | |
parent | 84a339f01523c7892f014cc5439c66b43ba6b6ff (diff) | |
download | upstream-32c664ff02910bf39a3fbd5a5a4a8bff3191dd03.tar.gz upstream-32c664ff02910bf39a3fbd5a5a4a8bff3191dd03.tar.bz2 upstream-32c664ff02910bf39a3fbd5a5a4a8bff3191dd03.zip |
toolchain: add autoconf-lean
Use it to generate a more comprehensive configure sitefile
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'toolchain/autoconf-lean/patches/120-add-extra-checks.patch')
-rw-r--r-- | toolchain/autoconf-lean/patches/120-add-extra-checks.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/toolchain/autoconf-lean/patches/120-add-extra-checks.patch b/toolchain/autoconf-lean/patches/120-add-extra-checks.patch new file mode 100644 index 0000000000..7e81525daf --- /dev/null +++ b/toolchain/autoconf-lean/patches/120-add-extra-checks.patch @@ -0,0 +1,48 @@ +--- a/config-site-generator/configure.ac ++++ b/config-site-generator/configure.ac +@@ -23,6 +23,7 @@ AC_DEFUN([AC_MSG_ERROR], [ + test -e conftest.dir && rm -rf conftest.dir ]) + + # Checks for programs. ++AC_PROG_CC + AC_PROG_CC_C89 + AC_PROG_CC_C_O + AC_PROG_CPP +@@ -52,9 +53,11 @@ AC_PROG_LEX + AC_PROG_LN_S + AC_PROG_RANLIB + AC_PROG_SED ++AC_PROG_LEX + #AC_PROG_YACC + + AM_PROG_AS ++AM_PROG_AR + + # Checks for system services. + #AC_PATH_X +@@ -118,6 +121,8 @@ sys/ucontext.h sys/uio.h sys/un.h sys/us + sys/wait.h sys/xattr.h tar.h termios.h tgmath.h time.h ucontext.h ulimit.h \ + unistd.h utime.h utmp.h utmpx.h wchar.h wctype.h wordexp.h + ]) ++# extra headers ++AC_CHECK_HEADERS([sys/cdefs.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_TYPE_GETGROUPS +@@ -217,6 +222,16 @@ AC_FUNC_STRTOLD + AC_FUNC_UTIME_NULL + AC_FUNC_VPRINTF + ++AC_CHECK_SIZEOF(short) ++AC_CHECK_SIZEOF(int) ++AC_CHECK_SIZEOF(long) ++AC_CHECK_SIZEOF(long long) ++AC_CHECK_SIZEOF(unsigned int) ++AC_CHECK_SIZEOF(unsigned long) ++AC_CHECK_SIZEOF(unsigned long long) ++AC_CHECK_SIZEOF(off_t) ++AC_CHECK_SIZEOF(size_t) ++ + # Functions list scraped from musl 0.9.4 x86_64 + AC_CHECK_FUNCS([ \ + a64l abort abs accept access acos acosf acosh acoshf acoshl acosl addmntent \ |