189 |
if test "$use_smp" = "yes"; then |
if test "$use_smp" = "yes"; then |
190 |
AC_CHECK_LIB( pthread, pthread_create, [ |
AC_CHECK_LIB( pthread, pthread_create, [ |
191 |
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
AC_DEFINE( ENABLE_SMP, 1, [whether to enable SMP code]) |
192 |
|
test -n "$GCC" && CFLAGS="$CFLAGS -pthread" |
193 |
LIBS="-lpthread $LIBS" |
LIBS="-lpthread $LIBS" |
194 |
]) |
]) |
195 |
CFLAGS="$CFLAGS -D_REENTRANT" |
CFLAGS="$CFLAGS -D_REENTRANT" |
221 |
) |
) |
222 |
fi |
fi |
223 |
|
|
224 |
|
|
225 |
if test -n "$GCC"; then |
if test -n "$GCC"; then |
226 |
dnl if we are running gcc, use -pipe |
dnl if we are running gcc, use -pipe |
227 |
test -n "$GCC" && CFLAGS="$CFLAGS -pipe" |
test -n "$GCC" && CFLAGS="$CFLAGS -pipe" |