| … | |
… | |
| 43 | mempcpy memset mkdir pathconf realpath \ |
43 | mempcpy memset mkdir pathconf realpath \ |
| 44 | rmdir setenv strcasecmp strchr strdup \ |
44 | rmdir setenv strcasecmp strchr strdup \ |
| 45 | strerror strndup strrchr strspn strstr \ |
45 | strerror strndup strrchr strspn strstr \ |
| 46 | ]) |
46 | ]) |
| 47 | |
47 | |
|
|
48 | dnl |
|
|
49 | dnl FIXME: the following needs to be made portable |
|
|
50 | dnl |
|
|
51 | |
|
|
52 | dnl when using libc5, (f)trucate's offset argument type is size_t with |
|
|
53 | dnl libc5, but it's off_t with libc6 (glibc2). |
|
|
54 | AC_MSG_CHECKING(truncate argument type) |
|
|
55 | if grep -q 'truncate.*size_t' /usr/include/unistd.h ; then |
|
|
56 | AC_MSG_RESULT(size_t) |
|
|
57 | AC_DEFINE(TRUNCATE_T, size_t, [truncate arg type]) |
|
|
58 | else |
|
|
59 | AC_MSG_RESULT(off_t) |
|
|
60 | AC_DEFINE(TRUNCATE_T, off_t, [truncate arg type]) |
|
|
61 | fi |
|
|
62 | |
|
|
63 | AC_MSG_CHECKING(Checking libc version) |
|
|
64 | echo "int main(void) { return 0; }" > libctest.c |
|
|
65 | gcc -Wall -o libctest libctest.c |
|
|
66 | LIBC_VERSION=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | awk '{print $1}'` |
|
|
67 | rm -f libctest |
|
|
68 | AC_SUBST(LIBC_VERSION) |
|
|
69 | AC_MSG_RESULT(${LIBC_VERSION}) |
|
|
70 | |
| 48 | AC_OUTPUT([Makefile]) |
71 | AC_OUTPUT([Makefile]) |