summaryrefslogtreecommitdiffstats
path: root/games/gltron/files/patch-ad
blob: 725c0c90fec6cbe3f20e5beb7556d9fe4dd44b99 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160

$FreeBSD$

--- configure.orig	Thu Apr 12 23:27:42 2001
+++ configure	Fri Apr 27 21:44:23 2001
@@ -536,7 +536,7 @@
 
 
 
-LIBS='-L/usr/X11R6/lib'
+LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
 
 # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2
@@ -972,7 +972,7 @@
 fi
 
 
-CFLAGS=""
+CFLAGS="$CFLAGS -I${X11BASE}/include -I${LOCALBASE}/include"
 
 # Check whether --enable-warn or --disable-warn was given.
 if test "${enable_warn+set}" = set; then
@@ -1023,7 +1023,7 @@
 fi
 
 if test "x$enable_optimize" ; then
-	CFLAGS="$CFLAGS -O$enable_optimize"
+#	CFLAGS="$CFLAGS -O$enable_optimize"
 fi
 
 # Check whether --enable-network or --disable-network was given.
@@ -1042,7 +1042,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lSDL_net  $LIBS"
+LIBS="$LIBS -lSDL_net"
 cat > conftest.$ac_ext <<EOF
 #line 1048 "configure"
 #include "confdefs.h"
@@ -1072,7 +1072,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lSDL_net $LIBS"
+  LIBS="$LIBS -lSDL_net"
 
 else
   echo "$ac_t""no" 1>&6
@@ -1147,7 +1147,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lX11  $LIBS"
+LIBS="$LIBS -lX11"
 cat > conftest.$ac_ext <<EOF
 #line 1153 "configure"
 #include "confdefs.h"
@@ -1177,7 +1177,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lX11 $LIBS"
+  LIBS="$LIBS -lX11"
 
 else
   echo "$ac_t""no" 1>&6
@@ -1191,7 +1191,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lGL  $LIBS"
+LIBS="$LIBS -lGL"
 cat > conftest.$ac_ext <<EOF
 #line 1197 "configure"
 #include "confdefs.h"
@@ -1221,7 +1221,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lGL $LIBS"
+  LIBS="$LIBS -lGL"
 
 else
   echo "$ac_t""no" 1>&6
@@ -1229,14 +1229,14 @@
 fi
 
 
-echo $ac_n "checking for main in -lSDL""... $ac_c" 1>&6
-echo "configure:1234: checking for main in -lSDL" >&5
+echo $ac_n "checking for main in -lSDL-1.1""... $ac_c" 1>&6
+echo "configure:1234: checking for main in -lSDL-1.1" >&5
 ac_lib_var=`echo SDL'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lSDL  $LIBS"
+LIBS="$LIBS -lSDL-1.1 ${PTHREAD_LIBS}"
 cat > conftest.$ac_ext <<EOF
 #line 1242 "configure"
 #include "confdefs.h"
@@ -1262,8 +1262,8 @@
   echo "$ac_t""yes" 1>&6
   ${LN_S} -f system_sdl.c system.c ; \
 ${LN_S} -f system_sdl.h system.h ; \
-LIBS="$LIBS `sdl-config --libs`" ; \
-CFLAGS="$CFLAGS `sdl-config --cflags`" ; \
+LIBS="$LIBS `$SDL_CONFIG --libs`" ; \
+CFLAGS="$CFLAGS `$SDL_CONFIG --cflags`" ; \
 HAVE_SDL=1
 else
   echo "$ac_t""no" 1>&6
@@ -1274,7 +1274,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lglut  $LIBS"
+LIBS="$LIBS -lglut"
 cat > conftest.$ac_ext <<EOF
 #line 1280 "configure"
 #include "confdefs.h"
@@ -1320,7 +1320,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lSDL_mixer  $LIBS"
+LIBS="-L$ac_default_prefix/lib -lSDL_mixer -lsmpeg $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1326 "configure"
 #include "confdefs.h"
@@ -1357,7 +1357,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lmikmod  $LIBS"
+LIBS="$LIBS -lmikmod"
 cat > conftest.$ac_ext <<EOF
 #line 1363 "configure"
 #include "confdefs.h"
@@ -1445,7 +1445,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lpng  $LIBS"
+LIBS="$LIBS -lpng"
 cat > conftest.$ac_ext <<EOF
 #line 1451 "configure"
 #include "confdefs.h"
@@ -1475,7 +1475,7 @@
 #define $ac_tr_lib 1
 EOF
 
-  LIBS="-lpng $LIBS"
+  LIBS="$LIBS -lpng"
 
 else
   echo "$ac_t""no" 1>&6
OpenPOWER on IntegriCloud