| … | |
… | |
| 54 | mempcpy memset mkdir pathconf realpath \ |
54 | mempcpy memset mkdir pathconf realpath \ |
| 55 | rmdir setenv strcasecmp strchr strdup \ |
55 | rmdir setenv strcasecmp strchr strdup \ |
| 56 | strerror strndup strrchr strspn strstr \ |
56 | strerror strndup strrchr strspn strstr \ |
| 57 | ]) |
57 | ]) |
| 58 | |
58 | |
|
|
59 | dnl uClibc doesn't currently provide dlvsym() so lets |
|
|
60 | dnl verify the toolchain supports it |
|
|
61 | AC_CHECK_LIB(dl, dlvsym, |
|
|
62 | [AC_DEFINE(HAVE_DLVSYM, 1, [libdl supports dlvsym])], |
|
|
63 | [AC_DEFINE(HAVE_DLVSYM, 0, [libdl does not support dlvsym])] |
|
|
64 | ) |
|
|
65 | |
| 59 | dnl when using libc5, (f)trucate's offset argument type is size_t with |
66 | dnl when using libc5, (f)trucate's offset argument type is size_t with |
| 60 | dnl libc5, but it's off_t with libc6 (glibc2). |
67 | dnl libc5, but it's off_t with libc6 (glibc2). |
| 61 | AC_MSG_CHECKING(truncate argument type) |
68 | AC_MSG_CHECKING(truncate argument type) |
| 62 | if echo '#include <unistd.h>' | $CC -E - | grep -q 'truncate.*size_t' ; then |
69 | if echo '#include <unistd.h>' | $CC -E - | grep -q 'truncate.*size_t' ; then |
| 63 | AC_MSG_RESULT(size_t) |
70 | AC_MSG_RESULT(size_t) |