don't use glibc, and uses `environ` instead of `__environ`.
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
just blindly linking to -lpthread, as Android includes pthread
support within libc and doesn't provide a separate libpthread.
svn path=/trunk/mono/; revision=155747
+2010-04-19 Jonathan Pryor <jpryor@novell.com>
+
+ * include/private/gcconfig.h: Android platforms are built atop Linux,
+ don't use glibc, and uses `environ` instead of `__environ`.
+ * configure.in: Use AC_CHECK_LIB() to check for pthread instead of
+ just blindly linking to -lpthread, as Android includes pthread
+ support within libc and doesn't provide a separate libpthread.
+
2010-03-09 Zoltan Varga <vargaz@gmail.com>
* include/private/gc_locks.h: Fix amd64 build with newer gcc's.
;;
posix | pthreads)
THREADS=posix
- THREADDLLIBS=-lpthread
+ AC_CHECK_LIB(pthread, pthread_self, THREADDLLIBS="-lpthread",,)
case "$host" in
x86-*-linux* | ia64-*-linux* | i386-*-linux* | i486-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha*-*-linux* | s390*-*-linux* | sparc*-*-linux* | powerpc-*-linux*)
AC_DEFINE(GC_LINUX_THREADS)
# if defined(__GLIBC__)&& __GLIBC__>=2
# define SEARCH_FOR_DATA_START
# else /* !GLIBC2 */
+# if defined(PLATFORM_ANDROID)
+# define __environ environ
+# endif
extern char **__environ;
# define DATASTART ((ptr_t)(&__environ))
/* hideous kludge: __environ is the first */