1 # See: http://gcc.gnu.org/ml/gcc/2000-05/msg01141.html
2 AC_DEFUN([CHECK_PTHREAD],
4 AC_CHECK_LIB(pthread,pthread_create,
10 AC_MSG_CHECKING(if compiler supports -pthread)
11 save_CPPFLAGS="$CPPFLAGS"
12 CPPFLAGS="$CPPFLAGS -pthread"
17 pthread_create(0,0,0,0);
20 PTHREAD_CPPFLAGS=-pthread
21 PTHREAD_LDFLAGS=-pthread
25 AC_MSG_CHECKING(if compiler supports -pthreads)
26 save_CPPFLAGS="$CPPFLAGS"
27 CPPFLAGS="$save_CPPFLAGS -pthreads"
32 pthread_create(0,0,0,0);
35 PTHREAD_CPPFLAGS=-pthreads
36 PTHREAD_LDFLAGS=-pthreads
40 AC_MSG_CHECKING(if compiler supports -threads)
41 save_CPPFLAGS="$CPPFLAGS"
42 CPPFLAGS="$save_CPPFLAGS -threads"
47 pthread_create(0,0,0,0);
50 PTHREAD_CPPFLAGS=-threads
51 PTHREAD_LDFLAGS=-threads
54 AC_MSG_ERROR([Your system is not supporting pthreads!])
58 CPPFLAGS="$save_CPPFLAGS"
62 dnl Checks for all prerequisites of the intl subdirectory,
63 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
64 dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
65 AC_DEFUN([AM_INTL_SUBDIR], [])