HostVendor_CPP='unknown'
HostOS_CPP='linux'
;;
+i[[3456]]86-*-gnu*)
+ HostPlatform=i386-unknown-gnu
+ TargetPlatform=i386-unknown-gnu
+ BuildPlatform=i386-unknown-gnu
+ HostPlatform_CPP=i386_unknown_gnu
+ HostArch_CPP=i386
+ HostVendor_CPP=unknown
+ HostOS_CPP=gnu
+ ;;
i[[3456]]86-*-freebsd[[3-9]]*) # FreeBSD 3.0+ uses ELF
HostPlatform=i386-unknown-freebsd # hack again
TargetPlatform=i386-unknown-freebsd
HostOS_CPP='mingw32'
exeext='.exe'
;;
+i[[3456]]86-apple-darwin*)
+ HostPlatform=i386-apple-darwin
+ TargetPlatform=i386-apple-darwin #hack
+ BuildPlatform=i386-apple-darwin #hack
+ HostPlatform_CPP='i386_apple_darwin'
+ HostArch_CPP='i386'
+ HostVendor_CPP='apple'
+ HostOS_CPP='darwin'
+ ;;
ia64-*-linux*)
HostPlatform=ia64-unknown-linux # hack again
TargetPlatform=ia64-unknown-linux
])
AC_SUBST(HaveRtldNext)
+dnl ** RTLD_DEFAULT isn't available on cygwin
+AC_MSG_CHECKING(for RTLD_DEFAULT from dlfcn.h)
+AC_EGREP_CPP(yes,
+[
+ #include <dlfcn.h>
+ #ifdef RTLD_DEFAULT
+ yes
+ #endif
+], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_RTLDDEFAULT], [1], [Define to 1 if RTLD_DEFAULT is available.])
+ HaveRtldDefault=YES
+], [
+ AC_MSG_RESULT(no)
+ HaveRtldDefault=NO
+ ])
+AC_SUBST(HaveRtldDefault)
+
dnl ** RTLD_LOCAL isn't available on cygwin or openbsd
AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h)
AC_EGREP_CPP(yes,
[Define to 1 if Apple-style dead-stripping is supported.])
])
+dnl ** check for Apple's "interesting" long double compatibility scheme
+AC_MSG_CHECKING(for printf$LDBLStub)
+AC_TRY_LINK_FUNC(printf$LSBLStub,
+ [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1],
+ [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).])
+ ],
+ [
+ AC_MSG_RESULT(no)
+ AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[0],
+ [Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).])
+ ])
+
+
AC_CONFIG_FILES([mk/config.mk])
AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
AC_OUTPUT