7e81525dafd235b4f31ca6b2bfbd2d3605046ea0
[openwrt/staging/wigyori.git] / toolchain / autoconf-lean / patches / 120-add-extra-checks.patch
1 --- a/config-site-generator/configure.ac
2 +++ b/config-site-generator/configure.ac
3 @@ -23,6 +23,7 @@ AC_DEFUN([AC_MSG_ERROR], [
4 test -e conftest.dir && rm -rf conftest.dir ])
5
6 # Checks for programs.
7 +AC_PROG_CC
8 AC_PROG_CC_C89
9 AC_PROG_CC_C_O
10 AC_PROG_CPP
11 @@ -52,9 +53,11 @@ AC_PROG_LEX
12 AC_PROG_LN_S
13 AC_PROG_RANLIB
14 AC_PROG_SED
15 +AC_PROG_LEX
16 #AC_PROG_YACC
17
18 AM_PROG_AS
19 +AM_PROG_AR
20
21 # Checks for system services.
22 #AC_PATH_X
23 @@ -118,6 +121,8 @@ sys/ucontext.h sys/uio.h sys/un.h sys/us
24 sys/wait.h sys/xattr.h tar.h termios.h tgmath.h time.h ucontext.h ulimit.h \
25 unistd.h utime.h utmp.h utmpx.h wchar.h wctype.h wordexp.h
26 ])
27 +# extra headers
28 +AC_CHECK_HEADERS([sys/cdefs.h])
29
30 # Checks for typedefs, structures, and compiler characteristics.
31 AC_TYPE_GETGROUPS
32 @@ -217,6 +222,16 @@ AC_FUNC_STRTOLD
33 AC_FUNC_UTIME_NULL
34 AC_FUNC_VPRINTF
35
36 +AC_CHECK_SIZEOF(short)
37 +AC_CHECK_SIZEOF(int)
38 +AC_CHECK_SIZEOF(long)
39 +AC_CHECK_SIZEOF(long long)
40 +AC_CHECK_SIZEOF(unsigned int)
41 +AC_CHECK_SIZEOF(unsigned long)
42 +AC_CHECK_SIZEOF(unsigned long long)
43 +AC_CHECK_SIZEOF(off_t)
44 +AC_CHECK_SIZEOF(size_t)
45 +
46 # Functions list scraped from musl 0.9.4 x86_64
47 AC_CHECK_FUNCS([ \
48 a64l abort abs accept access acos acosf acosh acoshf acoshl acosl addmntent \