;;
*)
AC_DEFINE(HAVE_THREAD_PTHREAD, 1, [Use pthread thread code])
+ PTHREAD_CFLAGS=
+ PTHREAD_LIBS=-lpthread
;;
esac
+AC_SUBST(PTHREAD_CFLAGS)
+AC_SUBST(PTHREAD_LIBS)
AC_ARG_ENABLE(backend,
AC_HELP_STRING([--enable-backend],[sse,mmx,neon,arm,all (default all)]),
Description: Library of Optimized Inner Loops Runtime Compiler
Version: @VERSION@
Libs: -L${libdir} -lorc-@ORC_MAJORMINOR@
-Libs.private: @LIBM@ @LIBRT@
+Libs.private: @LIBM@ @LIBRT@ @PTHREAD_LIBS@
Cflags: -I${includedir}
orcc=${toolsdir}/orcc@EXEEXT@
lib_LTLIBRARIES = liborc-@ORC_MAJORMINOR@.la
-liborc_@ORC_MAJORMINOR@_la_LIBADD = $(LIBM) $(LIBRT)
+liborc_@ORC_MAJORMINOR@_la_LIBADD = $(LIBM) $(LIBRT) $(PTHREAD_LIBS)
liborc_@ORC_MAJORMINOR@_la_LDFLAGS = \
-version-info $(ORC_LIBVERSION) \
-no-undefined -export-symbols-regex 'orc_'