42 |
TARGETDIR="unknown" |
TARGETDIR="unknown" |
43 |
case "$host" in |
case "$host" in |
44 |
i*86-*-linux*) TARGET=X86; TARGETDIR=x86;; |
i*86-*-linux*) TARGET=X86; TARGETDIR=x86;; |
45 |
|
i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;; |
46 |
i*86-*-solaris2.1[[0-9]]*) TARGET=X86_64; TARGETDIR=x86;; |
i*86-*-solaris2.1[[0-9]]*) TARGET=X86_64; TARGETDIR=x86;; |
47 |
i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;; |
i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;; |
48 |
i*86-*-beos*) TARGET=X86; TARGETDIR=x86;; |
i*86-*-beos*) TARGET=X86; TARGETDIR=x86;; |
192 |
[Define to the flags needed for the .section .eh_frame directive.]) |
[Define to the flags needed for the .section .eh_frame directive.]) |
193 |
fi |
fi |
194 |
|
|
195 |
|
AC_CACHE_CHECK([for __attribute__((visibility("hidden")))], |
196 |
|
libffi_cv_hidden_visibility_attribute, [ |
197 |
|
echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c |
198 |
|
libffi_cv_hidden_visibility_attribute=no |
199 |
|
if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then |
200 |
|
if grep '\.hidden.*foo' conftest.s >/dev/null; then |
201 |
|
libffi_cv_hidden_visibility_attribute=yes |
202 |
|
fi |
203 |
|
fi |
204 |
|
rm -f conftest.* |
205 |
|
]) |
206 |
|
if test $libffi_cv_hidden_visibility_attribute = yes; then |
207 |
|
AC_DEFINE(HAVE_HIDDEN_VISIBILITY_ATTRIBUTE, 1, |
208 |
|
[Define if __attribute__((visibility("hidden"))) is supported.]) |
209 |
|
fi |
210 |
|
|
211 |
|
AH_BOTTOM([ |
212 |
|
#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE |
213 |
|
#ifdef LIBFFI_ASM |
214 |
|
#define FFI_HIDDEN(name) .hidden name |
215 |
|
#else |
216 |
|
#define FFI_HIDDEN __attribute__ ((visibility ("hidden"))) |
217 |
|
#endif |
218 |
|
#else |
219 |
|
#ifdef LIBFFI_ASM |
220 |
|
#define FFI_HIDDEN(name) |
221 |
|
#else |
222 |
|
#define FFI_HIDDEN |
223 |
|
#endif |
224 |
|
#endif |
225 |
|
]) |
226 |
|
|
227 |
AC_SUBST(TARGET) |
AC_SUBST(TARGET) |
228 |
AC_SUBST(TARGETDIR) |
AC_SUBST(TARGETDIR) |
229 |
|
|