| … | |
… | |
| 72 | else |
72 | else |
| 73 | AC_MSG_RESULT([off_t]) |
73 | AC_MSG_RESULT([off_t]) |
| 74 | AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type]) |
74 | AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type]) |
| 75 | fi |
75 | fi |
| 76 | |
76 | |
|
|
77 | dnl Check if we have glibc or clone |
|
|
78 | AC_MSG_CHECKING([for glibc]) |
|
|
79 | AC_TRY_COMPILE([ |
|
|
80 | #include <features.h> |
|
|
81 | ], [ |
|
|
82 | #if !defined(__GLIBC__) |
|
|
83 | # error no glibc |
|
|
84 | #endif |
|
|
85 | |
|
|
86 | int main (void) |
|
|
87 | { |
|
|
88 | return 0; |
|
|
89 | } |
|
|
90 | ], [have_glibc="yes"], [have_glibc="no"]) |
|
|
91 | if test x"$have_glibc" = xyes ; then |
|
|
92 | AC_MSG_RESULT([yes]) |
|
|
93 | else |
|
|
94 | AC_MSG_RESULT([no]) |
|
|
95 | fi |
|
|
96 | AM_CONDITIONAL([HAVE_GLIBC], [test x"$have_glibc" = xyes]) |
|
|
97 | |
| 77 | dnl we need to handle symbols differently based upon their version, |
98 | dnl we need to handle symbols differently based upon their version, |
| 78 | dnl but we have to know which symbols the libc supports first |
99 | dnl but we have to know which symbols the libc supports first |
| 79 | AC_MSG_CHECKING([libc path]) |
100 | AC_MSG_CHECKING([libc path]) |
| 80 | echo "int main(void) { return 0; }" > libctest.c |
101 | echo "int main(void) { return 0; }" > libctest.c |
| 81 | $CC -Wall -o libctest libctest.c |
102 | $CC -Wall -o libctest libctest.c |
| … | |
… | |
| 107 | [enable building for multilib setups (default=disabled)]), |
128 | [enable building for multilib setups (default=disabled)]), |
| 108 | [enable_multilib="$enableval"], |
129 | [enable_multilib="$enableval"], |
| 109 | [enable_multilib="no"] |
130 | [enable_multilib="no"] |
| 110 | ) |
131 | ) |
| 111 | |
132 | |
| 112 | if test "$enable_multilib"x != xno ; then |
133 | if test x"$enable_multilib" != xno ; then |
| 113 | AC_DEFINE_UNQUOTED([SB_HAVE_MULTILIB], [1], [have multilib enabled system]) |
134 | AC_DEFINE_UNQUOTED([SB_HAVE_MULTILIB], [1], [have multilib enabled system]) |
| 114 | fi |
135 | fi |
| 115 | |
136 | |
| 116 | AC_OUTPUT([ |
137 | AC_OUTPUT([ |
| 117 | Makefile |
138 | Makefile |