| … | |
… | |
| 26 | dnl Checks for header files. |
26 | dnl Checks for header files. |
| 27 | AC_FUNC_ALLOCA |
27 | AC_FUNC_ALLOCA |
| 28 | AC_HEADER_DIRENT |
28 | AC_HEADER_DIRENT |
| 29 | AC_HEADER_STDC |
29 | AC_HEADER_STDC |
| 30 | AC_HEADER_SYS_WAIT |
30 | AC_HEADER_SYS_WAIT |
| 31 | AC_CHECK_HEADERS([ \ |
31 | AC_CHECK_HEADERS_ONCE([ \ |
| 32 | fcntl.h limits.h memory.h stddef.h \ |
32 | dirent.h \ |
| 33 | stdlib.h string.h strings.h sys/file.h \ |
33 | dlfcn.h \ |
| 34 | sys/param.h sys/time.h unistd.h utime.h \ |
34 | errno.h \ |
|
|
35 | fcntl.h \ |
|
|
36 | libgen.h \ |
|
|
37 | limits.h \ |
|
|
38 | memory.h \ |
|
|
39 | signal.h \ |
|
|
40 | stdarg.h \ |
|
|
41 | stddef.h \ |
|
|
42 | stdio.h \ |
|
|
43 | stdlib.h \ |
|
|
44 | string.h \ |
|
|
45 | strings.h \ |
|
|
46 | unistd.h \ |
|
|
47 | utime.h \ |
|
|
48 | sys/file.h \ |
|
|
49 | sys/mman.h \ |
|
|
50 | sys/param.h \ |
|
|
51 | sys/stat.h \ |
|
|
52 | sys/time.h \ |
|
|
53 | sys/types.h \ |
|
|
54 | sys/wait.h \ |
| 35 | ]) |
55 | ]) |
| 36 | |
56 | |
| 37 | dnl Checks for typedefs, structures, and compiler characteristics. |
57 | dnl Checks for typedefs, structures, and compiler characteristics. |
| 38 | AC_C_CONST |
58 | AC_C_CONST |
| 39 | AC_TYPE_UID_T |
59 | AC_TYPE_UID_T |
| … | |
… | |
| 147 | [have_rtld_next="yes"], |
167 | [have_rtld_next="yes"], |
| 148 | [have_rtld_next="no"] |
168 | [have_rtld_next="no"] |
| 149 | ) |
169 | ) |
| 150 | AC_MSG_RESULT([$have_rtld_next]) |
170 | AC_MSG_RESULT([$have_rtld_next]) |
| 151 | if test x"$have_rtld_next" = xyes ; then |
171 | if test x"$have_rtld_next" = xyes ; then |
|
|
172 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
| 152 | AC_DEFINE([HAVE_RTLD_NEXT], [1], [Have RTLD_NEXT enabled libc]) |
173 | AC_DEFINE([HAVE_RTLD_NEXT], [1], [Have RTLD_NEXT enabled libc]) |
| 153 | fi |
174 | fi |
| 154 | |
175 | |
| 155 | dnl we need to handle symbols differently based upon their version, |
176 | dnl we need to handle symbols differently based upon their version, |
| 156 | dnl but we have to know which symbols the libc supports first |
177 | dnl but we have to know which symbols the libc supports first |