<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/2fb8f13a3e3241507af96fd56db4fd9f5d630a9a">https://github.com/macports/macports-base/commit/2fb8f13a3e3241507af96fd56db4fd9f5d630a9a</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2fb8f13a3e3241507af96fd56db4fd9f5d630a9a
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Fri May 12 16:29:45 2017 +0200
<span style='display:block; white-space:pre;color:#404040;'> Remove checks for ObjC runtime and foundation
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> After removal of cflib and tclobjc, there is no code requiring
</span><span style='display:block; white-space:pre;color:#404040;'> a Objective-C runtime or oundation libraries in base anymore.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The autoconf macros PTHREAD_LIBS or PTHREAD_CFLAGS are not used and have
</span><span style='display:block; white-space:pre;color:#404040;'> no other references in the configure script. Therefore this is now also
</span><span style='display:block; white-space:pre;color:#404040;'> unused code and can safely be removed.
</span>---
aclocal.m4 | 1 -
configure.ac | 3 -
m4/foundation.m4 | 391 -------------------------------------------------------
m4/pthread.m4 | 234 ---------------------------------
4 files changed, 629 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aclocal.m4 b/aclocal.m4
</span><span style='display:block; white-space:pre;color:#808080;'>index 23429bb..2eaffb1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aclocal.m4
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aclocal.m4
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,4 @@
</span> builtin(include,m4/tcl.m4)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-builtin(include,m4/pthread.m4)
</span> builtin(include,m4/foundation.m4)
dnl Search for a variable in a list. Run ACTION-IF-FOUND if it is in the list,
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/configure.ac b/configure.ac
</span><span style='display:block; white-space:pre;color:#808080;'>index 499d755..3ea757e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/configure.ac
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/configure.ac
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -196,10 +196,7 @@ MP_WERROR
</span> MP_COMPILER_ATTRIBUTE_UNUSED
MP_COMPILER_ATTRIBUTE_LF_PRIVATE
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Foundation checks
</span> ACX_PTHREAD
<span style='display:block; white-space:pre;background:#ffe0e0;'>-MP_OBJC_RUNTIME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-MP_OBJC_FOUNDATION
</span>
MP_PROG_DAEMONDO
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/m4/foundation.m4 b/m4/foundation.m4
</span><span style='display:block; white-space:pre;color:#808080;'>index 8f90325..af0b43f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/m4/foundation.m4
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/m4/foundation.m4
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,394 +49,3 @@ AC_DEFUN([MP_COMPILER_ATTRIBUTE_LF_PRIVATE], [
</span>
AC_DEFINE_UNQUOTED(MP_PRIVATE, $MP_PRIVATE, [Mark private symbols])
])
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# MP_OBJC_RUNTIME --
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Determine the default, working Objective C runtime
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Arguments:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# None.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Requires:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# none
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Depends:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# AC_PROG_OBJC from objc.m4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Results:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Adds a --with-objc-runtime switch to configure.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Result is cached.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Defines one of the following preprocessor macros:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# APPLE_RUNTIME GNU_RUNTIME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Substitutes the following variables:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# OBJC_RUNTIME OBJC_RUNTIME_FLAGS OBJC_LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# OBJC_PTHREAD_CFLAGS OBJC_PTHREAD_LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_DEFUN([MP_OBJC_RUNTIME],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_REQUIRE([AC_PROG_OBJC])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_ARG_WITH(objc-runtime, AS_HELP_STRING([--with-objc-runtime],[Specify either "GNU" or "apple"]), [with_objc_runtime=${withval}])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_runtime}" != x; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case "${with_objc_runtime}" in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNU)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- apple)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- no)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either "GNU" or "apple"])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PUSH([Objective C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_runtime}" != x"no"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check for common header, objc/objc.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CHECK_HEADERS([objc/objc.h], ,[AC_MSG_ERROR([Can't locate Objective C runtime headers])])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Save LIBS & OBJCFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # depending on whether the cache is used,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # the variables may or may not be modified.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OLD_LIBS="${LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OLD_OBJCFLAGS="${OBJCFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Add -lobjc. The following tests will ensure that the library exists and functions with the detected Objective C compiler
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${LIBS} -lobjc"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Test if pthreads are required to link against
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # libobjc - this is the case on FreeBSD.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([if linking libobjc requires pthreads])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CACHE_VAL(mp_cv_objc_req_pthread, [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # First, test if objc links without pthreads
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The following uses quadrigraphs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@<:@' = '['
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@:>@' = ']'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/objc.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/Object.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Object *obj = @<:@Object alloc@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts(@<:@obj name@:>@);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Linked without -pthread
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_req_pthread="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Failed to link without -pthread
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_req_pthread="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # If the above failed, try with pthreads
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${mp_cv_objc_req_pthread}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${LIBS} ${PTHREAD_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/objc.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/Object.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Object *obj = @<:@Object alloc@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts(@<:@obj name@:>@);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Linked with -lpthread
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_req_pthread="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Failed to link against objc at all
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # This will be caught in the runtime
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # checks below
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_req_pthread="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${mp_cv_objc_req_pthread})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${mp_cv_objc_req_pthread}" = x"no"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_LIBS="-lobjc"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_PTHREAD_LIBS="${PTHREAD_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- elif test x"${mp_cv_objc_req_pthread}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_LIBS="-lobjc ${PTHREAD_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"apple"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for Apple Objective-C runtime])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CACHE_VAL(mp_cv_objc_runtime_apple, [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The following uses quadrigraphs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@<:@' = '['
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@:>@' = ']'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/objc.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/objc-api.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- id class = objc_lookUpClass("Object");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- id obj = @<:@class alloc@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts(@<:@obj name@:>@);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_apple="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_apple="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${mp_cv_objc_runtime_apple})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_apple="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"GNU"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for GNU Objective C runtime])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CACHE_VAL(mp_cv_objc_runtime_gnu, [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The following uses quadrigraphs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@<:@' = '['
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@:>@' = ']'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <objc/objc.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- id class = objc_lookup_class("Object");
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- id obj = @<:@class alloc@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts(@<:@obj name@:>@);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_gnu="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_gnu="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${mp_cv_objc_runtime_gnu})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- mp_cv_objc_runtime_gnu="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Apple runtime is prefered
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${mp_cv_objc_runtime_apple}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_RUNTIME="APPLE_RUNTIME"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_RUNTIME_FLAGS="-fnext-runtime"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Using Apple Objective-C runtime])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE([APPLE_RUNTIME], 1, [Define if using the Apple Objective-C runtime and compiler.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- elif test x"${mp_cv_objc_runtime_gnu}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_RUNTIME="GNU_RUNTIME"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_RUNTIME_FLAGS="-fgnu-runtime"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Using GNU Objective-C runtime])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE([GNU_RUNTIME], 1, [Define if using the GNU Objective-C runtime and compiler.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- elif test x"${with_objc_runtime}" = x"no"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_RUNTIME="none"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Not using Objective-C runtime])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_FAILURE([Could not locate a working Objective-C runtime.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Restore LIBS & OBJCFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${OLD_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJCFLAGS="${OLD_OBJCFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_RUNTIME])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_RUNTIME_FLAGS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_LIBS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_PTHREAD_LIBS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_PTHREAD_CFLAGS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_POP([Objective C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# MP_OBJC_FOUNDATION --
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Find a functional Foundation implementation.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The NeXT Foundation implementation is prefered,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# as it is most likely to be the system provided
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Foundation.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Arguments:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# None.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Requires:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# OBJC_RUNTIME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Depends:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# AC_PROG_OBJC from objc.m4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Results:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Adds a --with-objc-foundation switch to configure.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Result is cached.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Defines one of the following preprocessor macros:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# APPLE_FOUNDATION GNUSTEP_FOUNDATION
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Substitutes the following variables:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# OBJC_FOUNDATION OBJC_FOUNDATION_LDFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# OBJC_FOUNDATION_CPPFLAGS OBJC_FOUNDATION_LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_DEFUN([MP_OBJC_FOUNDATION],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_REQUIRE([AC_PROG_OBJC])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_ARG_WITH(objc-foundation, [ --with-objc-foundation Specify either "GNUstep" or "apple"], [with_objc_foundation=${withval}])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_foundation}" != x; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case "${with_objc_foundation}" in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUstep)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNU)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_objc_foundation="GNUstep"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- apple)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- no)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either "GNU" or "apple"])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PUSH([Objective C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_foundation}" != x"no"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_foundation}" = x || test x"${with_objc_foundation}" = x"apple"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@<:@' = '['
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # '@:>@' = ']'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for Apple Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set NeXT LIBS and CFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- APPLE_FOUNDATION_CFLAGS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- APPLE_FOUNDATION_LIBS="-framework Foundation"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CACHE_VAL(ac_cv_objc_foundation_apple, [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Save old LIBS and CFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS_OLD="${LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS_OLD="${CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="${APPLE_FOUNDATION_CFLAGS} ${CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <Foundation/Foundation.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- NSString *string = @<:@@<:@NSString alloc@:>@ initWithCString: "Hello World"@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @<:@NSString length@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_apple="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_apple="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Restore LIBS and CFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${LIBS_OLD}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="${CFLAGS_OLD}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${ac_cv_objc_foundation_apple})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_apple="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_foundation}" = x || test x"${with_objc_foundation}" = x"GNUstep"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_CONFIG=/usr/bin/gnustep-config
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test ! -x "${GNUSTEP_CONFIG}" -a x"${GNUSTEP_SYSTEM_ROOT}" = x; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${with_objc_foundation}" = x"GNUstep"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_WARN([GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for GNUstep Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set GNUstep LDFLAGS, CPPFLAGS, and LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test -x ${GNUSTEP_CONFIG}; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_LDFLAGS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --objc-libs"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_CPPFLAGS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --objc-flags"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_LIBS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --base-libs"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_LDFLAGS="-L${GNUSTEP_SYSTEM_ROOT}/Library/Libraries/"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_CPPFLAGS="-I${GNUSTEP_SYSTEM_ROOT}/Library/Headers/"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GNUSTEP_LIBS="-lgnustep-base"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CACHE_VAL(ac_cv_objc_foundation_gnustep, [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Save old LDFLAGS, CPPFLAGS, and LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LDFLAGS_OLD="${LDFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CPPFLAGS_OLD="${CPPFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS_OLD="${LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${GNUSTEP_LIBS} ${LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_PROGRAM([
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <Foundation/Foundation.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- NSString *string = @<:@@<:@NSString alloc@:>@ initWithCString: "Hello World"@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- @<:@NSString length@:>@;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_gnustep="yes"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ],[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_gnustep="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Restore LDFLAGS, CPPFLAGS, and LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LDFLAGS="${LDFLAGS_OLD}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CPPFLAGS="${CPPFLAGS_OLD}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="${LIBS_OLD}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${ac_cv_objc_foundation_gnustep})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ac_cv_objc_foundation_gnustep="no"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # NeXT Foundation is prefered
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"${ac_cv_objc_foundation_apple}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION="Apple"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_CPPFLAGS="${APPLE_FOUNDATION_CFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_LIBS="${APPLE_FOUNDATION_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_LDFLAGS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE([APPLE_FOUNDATION], 1, [Define if using the Apple Foundation framework])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Using Apple Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- elif test x"${ac_cv_objc_foundation_gnustep}" = x"yes"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION="GNUstep"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_CPPFLAGS="${GNUSTEP_CPPFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_LIBS="${GNUSTEP_LIBS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION_LDFLAGS="${GNUSTEP_LDFLAGS}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE([GNUSTEP_FOUNDATION], 1, [Define if using the GNUstep Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Using GNUstep Foundation library])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- elif test x"${with_objc_foundation}" = x"no" || test x"$MACOSX_VERSION" = x; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJC_FOUNDATION="none"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_NOTICE([Not using Foundation implementation])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([Could not find a working Foundation implementation])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_FOUNDATION])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_FOUNDATION_LDFLAGS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_FOUNDATION_CPPFLAGS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST([OBJC_FOUNDATION_LIBS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LANG_POP([Objective C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-])
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/m4/pthread.m4 b/m4/pthread.m4
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 2317e56..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/m4/pthread.m4
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,234 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl Modified from the original version:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl * Removed pthread-specific CC support
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl * Added FreeBSD specific -pthread/-lpthread flags
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl Notes:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl * -D_THREAD_SAFE may not be necessary on FreeBSD
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl and elsewhere.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl - landonf March 25th, 2005
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl This macro figures out how to build C programs using POSIX threads.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl It sets the PTHREAD_LIBS output variable to the threads library and
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl linker flags, and the PTHREAD_CFLAGS output variable to any special
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl C compiler flags that are needed. (The user can also force certain
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl compiler flags/libs to be tested by setting these environment
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl variables.)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl NOTE: You are assumed to not only compile your program with these
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl flags, but also link it with them as well. e.g. you should link
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl with $CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl $LIBS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl If you are only building threads programs, you may wish to use
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl these variables in your default LIBS, and CFLAGS:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl LIBS="$PTHREAD_LIBS $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl ACTION-IF-FOUND is a list of shell commands to run if a threads
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl default action will define HAVE_PTHREAD.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl Please let the authors know if this macro fails on any platform, or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl if you have any other suggestions or comments. This macro was based
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl posted by Alejandro Forero Cuervo to the autoconf macro repository.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl We are also grateful for the helpful feedback of numerous users.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl @category InstalledPackages
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl @version 2005-01-14
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-dnl @license GPLWithACException
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_DEFUN([ACX_PTHREAD], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_REQUIRE([AC_CANONICAL_HOST])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_LANG_PUSH([C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-acx_pthread_ok=no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# We used to check for pthread.h first, but this fails if pthread.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# requires special compiler flags (e.g. on True64 or Sequent).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# It gets checked for in the link test anyway.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# First of all, check if the user has set any of the PTHREAD_LIBS,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# etcetera environment variables, and if threads linking works using
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# them:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_CFLAGS="$CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_LIBS="$LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$PTHREAD_LIBS $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT($acx_pthread_ok)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"$acx_pthread_ok" = xno; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_LIBS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_CFLAGS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$save_LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$save_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# We must check for the threads library under a number of different
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# names; the ordering is very important because some systems
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# libraries is broken (non-POSIX).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Create a list of thread flags to try. Items starting with a "-" are
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# C compiler flags, and other items are library names, except for "none"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# which indicates that we try without any flags at all, and "pthread-config"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# which is a program returning the flags for the Pth emulation library.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The ordering *is* (sometimes) important. Some notes on the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# individual items follow:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# pthreads: AIX (must check this before -lpthread)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# none: in case threads are in libc; should be tried before -Kthread and
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# other compiler flags to prevent continual compiler warnings
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -pthreads: Solaris/gcc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -mthreads: Mingw32/gcc, Lynx/gcc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# doesn't hurt to check since this sometimes defines pthreads too;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# also defines -D_REENTRANT)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# pthread: Linux, etcetera
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# --thread-safe: KAI C++
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# pthread-config: use pthread-config program (for GNU Pth library)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-case "${host_cpu}-${host_os}" in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *solaris*)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # On Solaris (at least, for some versions), libc contains stubbed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # (non-functional) versions of the pthreads routines, so link-based
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # tests will erroneously succeed. (We need to link with -pthread or
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # a function called by this macro, so we could check for that, but
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # who knows whether they'll stub that too in a future libc.) So,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # we'll just look for -pthreads and -lpthread first:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *freebsd*)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # freebsd 4 uses -pthread, freebsd 5 uses -lpthread
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- acx_pthread_flags="pthread -pthread"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if test x"$acx_pthread_ok" = xno; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-for flag in $acx_pthread_flags; do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case $flag in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- none)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([whether pthreads work without any flags])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -*)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([whether pthreads work with $flag])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_CFLAGS="$flag"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pthread-config)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test x"$acx_pthread_config" = xno; then continue; fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_CFLAGS="`pthread-config --cflags`"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for the pthreads library -l$flag])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_LIBS="-l$flag"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_LIBS="$LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_CFLAGS="$CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$PTHREAD_LIBS $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Check for various functions. We must include pthread.h,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # since some functions may be macros. (On the Sequent, we
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # need a special flag -Kthread to make this header compile.)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # We check for pthread_join because it is in -lpthread on IRIX
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # while pthread_create is in libc. We check for pthread_attr_init
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # due to DEC craziness with -lpthreads. We check for
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # pthread_cleanup_push because it is one of the few pthread
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # functions on Solaris that doesn't have a non-functional libc stub.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # We try pthread_create on general principles.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[pthread_t th; pthread_join(th, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pthread_attr_init(0); pthread_cleanup_push(0, 0);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ]])],[acx_pthread_ok=yes],[])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$save_LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$save_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT($acx_pthread_ok)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "x$acx_pthread_ok" = xyes; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- break;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_LIBS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_CFLAGS=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Various other checks:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if test "x$acx_pthread_ok" = xyes; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_LIBS="$LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$PTHREAD_LIBS $LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- save_CFLAGS="$CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([for joinable pthread attribute])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- attr_name=unknown
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[int attr=$attr;]])],[attr_name=$attr; break],[])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- done
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT($attr_name)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- [Define to necessary symbol if this constant
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uses a non-standard name on your system.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_CHECKING([if more special flags are required for pthreads])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- flag=no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- case "${host_cpu}-${host_os}" in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_RESULT(${flag})
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "x$flag" != xno; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS="$save_LIBS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="$save_CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_SUBST(PTHREAD_LIBS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_SUBST(PTHREAD_CFLAGS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if test x"$acx_pthread_ok" = xyes; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- :
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- acx_pthread_ok=no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-AC_LANG_POP([C])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-])dnl ACX_PTHREAD
</span></pre><pre style='margin:0'>
</pre>