187 |
AC_MSG_RESULT($use_smp) |
AC_MSG_RESULT($use_smp) |
188 |
|
|
189 |
if test "$use_smp" = "yes"; then |
if test "$use_smp" = "yes"; then |
|
AC_CHECK_LIB( pthread, pthread_create, [ |
|
190 |
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
191 |
test -n "$GCC" && CFLAGS="$CFLAGS -pthread" |
if test -n "$GCC"; then |
192 |
LIBS="-lpthread $LIBS" |
CFLAGS="$CFLAGS -pthread" |
193 |
]) |
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
194 |
CFLAGS="$CFLAGS -D_REENTRANT" |
CFLAGS="$CFLAGS -D_REENTRANT" |
195 |
|
else |
196 |
|
AC_CHECK_LIB( pthread, pthread_create, [ |
197 |
|
LIBS="-lpthread $LIBS" |
198 |
|
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
199 |
|
CFLAGS="$CFLAGS -D_REENTRANT" |
200 |
|
]) |
201 |
|
fi |
202 |
fi |
fi |
203 |
|
|
204 |
if test "$use_smp" = "yes"; then use_hic=yes |
if test "$use_smp" = "yes"; then use_hic=yes |