summaryrefslogtreecommitdiff
path: root/games/lpairs/patches/patch-aa
blob: c1833b106d8093dc1353a5eb02b639dd952b285e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$NetBSD: patch-aa,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $

--- configure.in.orig	Fri Apr 19 16:47:41 2002
+++ configure.in
@@ -17,29 +17,30 @@
 LIBS="$LIBS $SDL_LIBS"
 AM_PATH_SDL(1.1.5, CFLAGS="$CFLAGS -DSDL_1_1_5",)
 
-dnl check for pthread
-ac_save_LIBS="$LIBS"
-thread_flag=""
-dnl first look for -pthread
-LIBS="$LIBS -pthread"
-AC_TRY_LINK(
-        [#include <pthread.h>],
-        [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ],
-        AC_MSG_RESULT("-pthread used...")
-        thread_flag="-pthread",
-        dnl now look for -lpthread
-        AC_MSG_RESULT("checking for -lpthread...")
-        LIBS="$ac_save_LIBS"
-        AC_CHECK_LIB(
-                pthread,
-                pthread_create,
-                thread_flag="-lpthread"
-		AC_MSG_RESULT(yes),
-                AC_MSG_ERROR([lib pthread is needed])
-        )
-)
-LIBS="$ac_save_LIBS"
-AC_SUBST(thread_flag)
+dnl SDL picks all this stuff up
+dnl dnl check for pthread
+dnl ac_save_LIBS="$LIBS"
+dnl thread_flag=""
+dnl dnl first look for -pthread
+dnl LIBS="$LIBS -pthread"
+dnl AC_TRY_LINK(
+dnl         [#include <pthread.h>],
+dnl         [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ],
+dnl         AC_MSG_RESULT("-pthread used...")
+dnl         thread_flag="-pthread",
+dnl         dnl now look for -lpthread
+dnl         AC_MSG_RESULT("checking for -lpthread...")
+dnl         LIBS="$ac_save_LIBS"
+dnl         AC_CHECK_LIB(
+dnl                 pthread,
+dnl                 pthread_create,
+dnl                 thread_flag="-lpthread"
+dnl 		AC_MSG_RESULT(yes),
+dnl                 AC_MSG_ERROR([lib pthread is needed])
+dnl         )
+dnl )
+dnl LIBS="$ac_save_LIBS"
+dnl AC_SUBST(thread_flag)
 
 dnl check sound
 sound_flag="-DSOUND"