74 |
fi], |
fi], |
75 |
[assembly="yes"]) |
[assembly="yes"]) |
76 |
|
|
77 |
|
dnl pthread code |
78 |
|
AC_ARG_ENABLE(pthread, |
79 |
|
AC_HELP_STRING([--disable-pthread], |
80 |
|
[Disable pthread dependent code]), |
81 |
|
[if test "$enable_pthread" = "no" ; then |
82 |
|
pthread="no" |
83 |
|
else |
84 |
|
if test "$enable_pthread" = "yes" ; then |
85 |
|
pthread="yes" |
86 |
|
fi |
87 |
|
fi], |
88 |
|
[pthread="yes"]) |
89 |
|
|
90 |
dnl Build as a module not a shared lib on darwin |
dnl Build as a module not a shared lib on darwin |
91 |
AC_ARG_ENABLE(macosx_module, |
AC_ARG_ENABLE(macosx_module, |
92 |
AC_HELP_STRING([--enable-macosx_module], |
AC_HELP_STRING([--enable-macosx_module], |
605 |
dnl |
dnl |
606 |
dnl ========================================================================== |
dnl ========================================================================== |
607 |
|
|
608 |
|
if test x"$pthread" = x"yes" ; then |
609 |
AC_CHECK_HEADER( |
AC_CHECK_HEADER( |
610 |
[pthread.h], |
[pthread.h], |
611 |
[AC_CHECK_LIB( |
[AC_CHECK_LIB( |
615 |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"], |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"], |
616 |
AC_MSG_WARN(Pthread not supported. No SMP support))], |
AC_MSG_WARN(Pthread not supported. No SMP support))], |
617 |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
618 |
|
else |
619 |
|
AC_MSG_WARN(Pthread support disabled. No SMP support) |
620 |
|
fi |
621 |
|
|
622 |
dnl ========================================================================== |
dnl ========================================================================== |
623 |
dnl |
dnl |