--enable-pthread)
CFLAGS="$CFLAGS -DHAVE_PTHREAD=1"
pthread="yes"
- if [ $SYS = MINGW ]; then
+ case $SYS in
+ MINGW)
LDFLAGS="$LDFLAGS -lpthreadGC2"
- else
+ ;;
+ BEOS)
+ ;;
+ *)
LDFLAGS="$LDFLAGS -lpthread"
- fi
+ ;;
+ esac
;;
--enable-debug)
CFLAGS="$CFLAGS -g"
#include <math.h>
#if HAVE_PTHREAD
+#ifdef SYS_BEOS
+#include <kernel/OS.h>
+#define pthread_t thread_id
+#define pthread_create(t,u,f,d) *(t)=spawn_thread(f,"",10,d)
+#define pthread_join(t,s) wait_for_thread(t,(long*)s)
+#else
#include <pthread.h>
#endif
+#endif
#include "common/common.h"
#include "common/cpu.h"