aboutsummaryrefslogtreecommitdiff
path: root/cvs/cvsweb.cgi/code/nel/nel-config.in?content-type=text/x-cvsweb-markup&hideattic=0&rev=1.3&sortby=log
blob: f18bdbc049c211d3b376a3a4fb0bc3b445c29e12 (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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
<HEAD><style>		A { color:black }</style>
<!-- hennerik CVSweb $Revision: 1.93 $ -->
<TITLE>code/nel/nel-config.in - view - 1.3</TITLE></HEAD>
<BODY BGCOLOR="#eeeeee">
<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="nel-config.in?hideattic=0&amp;sortby=log"><IMG SRC="/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="nel-config.in?hideattic=0&amp;sortby=log">nel-config.in</A>
 CVS log</b> <IMG SRC="/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to  <a href="/cvs/cvsweb.cgi/?hideattic=0&amp;sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?hideattic=0&amp;sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/nel/?hideattic=0&amp;sortby=log">nel</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File:  <a href="/cvs/cvsweb.cgi/?hideattic=0&amp;sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?hideattic=0&amp;sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/nel/?hideattic=0&amp;sortby=log">nel</a> / <a href="/cvs/cvsweb.cgi/code/nel/nel-config.in?hideattic=0&amp;sortby=log">nel-config.in</a>&nbsp;(<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3&amp;hideattic=0&amp;sortby=log" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nel/nel-config.in?rev=1.3','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR>
Revision <B>1.3</B>, <i>Tue Mar 19 17:42:48 2002 UTC</i> (3 months, 3 weeks ago) by <i>valignat</i>
<BR>Branch: <b>MAIN</b>
<BR>CVS Tags: <b>georges_v2, HEAD</b><BR>Changes since <b>1.2: +11 -1
 lines</b><PRE>
Applied patches which help to have a clen install on GNU/Linux and to make a Debian package (changes on the management of config and log files, bugfixes, etc ...)
</PRE>
</td></tr></table><HR noshade><PRE>#!/bin/sh

#
# $Id: nel-config.in,v 1.3 2002/03/19 17:42:48 valignat Exp $
#
# nel-config
#
# Script printing NeL's install library/include paths and some other
# informations like NeL's version
#

prefix=@prefix@
exec_prefix=@exec_prefix@

lib_dir=@libdir@
include_dir=@includedir@

enable_net=@enable_net@
enable_3d=@enable_3d@
enable_pacs=@enable_pacs@
enable_sound=@enable_sound@
enable_ai=@enable_ai@

usage()
{
 &nbsp; &nbsp;cat &lt;&lt;EOF
Usage: nel-config [OPTIONS] [LIBRARIES]
Options:
 &nbsp; [--prefix[=DIR]]
 &nbsp; [--exec-prefix[=DIR]]
 &nbsp; [--version]
 &nbsp; [--libs]
 &nbsp; [--libtool]
 &nbsp; [--ldflags]
 &nbsp; [--cflags]
 &nbsp; [--without-network]
 &nbsp; [--without-3d]
 &nbsp; [--without-pacs]
 &nbsp; [--without-sound]
 &nbsp; [--without-ai]
EOF
 &nbsp; &nbsp;exit $1
}

if test $# -eq 0
then
 &nbsp; &nbsp;usage 1 1&gt;&amp;2
fi

while test $# -gt 0
do
 &nbsp; &nbsp;case &quot;$1&quot; in
 &nbsp; &nbsp; &nbsp; &nbsp;-*=*) optarg=`echo &quot;$1&quot; | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 &nbsp; &nbsp; &nbsp; &nbsp;*) optarg= ;;
 &nbsp; &nbsp;esac

 &nbsp; &nbsp;case $1 in
 &nbsp; &nbsp; &nbsp; &nbsp;--prefix=*)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prefix=$optarg
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;local_prefix=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--prefix)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_prefix=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--exec-prefix=*)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exec_prefix=$optarg
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exec_prefix_set=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;local_prefix=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--exec-prefix)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_exec_prefix=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--version)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo @VERSION@
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit 0
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--cflags)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_cflags=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--ldflags)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_ldflags=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--libs)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_libs=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--libtool)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo_libtool=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--without-net|--without-network)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without_net=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--without-3d)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without_3d=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--without-pacs)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without_pacs=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--without-ai)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without_ai=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;--without-snd|--without-sound)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without_sound=yes
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp; &nbsp; &nbsp;*)
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;usage 1 1&gt;&amp;2
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;;
 &nbsp; &nbsp;esac
 &nbsp; &nbsp;shift
done

if test &quot;$local_prefix&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;if test &quot;$exec_prefix_set&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;exec_prefix=$prefix
 &nbsp; &nbsp;fi
fi

if test &quot;$echo_prefix&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;echo $prefix
fi

if test &quot;$echo_exec_prefix&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;echo $exec_prefix
fi

if test &quot;$echo_cflags&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;cflags=&quot;-I$include_dir/&quot;
 &nbsp; &nbsp;echo $cflags
fi

if test &quot;$echo_ldflags&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;ldflags=&quot;-L$lib_dir&quot;
 &nbsp; &nbsp;echo $ldflags
fi

if test &quot;$echo_libs&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;lib_misc=&quot;-lnelmisc&quot;
 &nbsp; &nbsp;lib_net=&quot;-lnelnet&quot;
 &nbsp; &nbsp;lib_3d=&quot;-lnel3d&quot;
 &nbsp; &nbsp;lib_pacs=&quot;-lnelpacs&quot;
 &nbsp; &nbsp;lib_sound=&quot;-lnelsnd&quot;
 &nbsp; &nbsp;lib_ai=&quot;-lnelai&quot;

 &nbsp; &nbsp;libs=&quot;$lib_misc&quot;

 &nbsp; &nbsp;if test &quot;$without_net&quot; != &quot;yes&quot; -a &quot;$enable_net&quot; = &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libs=&quot;$libs $lib_net&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_3d&quot; != &quot;yes&quot; -a &quot;$enable_3d&quot; = &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libs=&quot;$libs $lib_3d&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_pacs&quot; != &quot;yes&quot; -a &quot;$enable_pacs&quot; = &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libs=&quot;$libs $lib_pacs&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_sound&quot; != &quot;yes&quot; -a &quot;$enable_sound&quot; = &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libs=&quot;$libs $lib_sound&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_ai&quot; != &quot;yes&quot; -a &quot;$enable_ai&quot; = &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libs=&quot;$libs $lib_ai&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;echo -L@libdir@ $libs
fi

if test &quot;$echo_libtool&quot; = &quot;yes&quot;
then
 &nbsp; &nbsp;libtool_misc=&quot;$lib_dir/libnelmisc.la&quot;
 &nbsp; &nbsp;libtool_net=&quot;$lib_dir/libnelnet.la&quot;
 &nbsp; &nbsp;libtool_3d=&quot;$lib_dir/libnel3d.la&quot;
 &nbsp; &nbsp;libtool_pacs=&quot;$lib_dir/libnelpacs.la&quot;
 &nbsp; &nbsp;libtool_sound=&quot;$lib_dir/libnelsnd.la&quot;
 &nbsp; &nbsp;libtool_ai=&quot;$lib_dir/libnelai.la&quot;

 &nbsp; &nbsp;libtool=&quot;$libtool_misc&quot;

 &nbsp; &nbsp;if test &quot;$without_net&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libtool=&quot;$libtool $libtool_net&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_3d&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libtool=&quot;$libtool $libtool_3d&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_pacs&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libtool=&quot;$libtool $libtool_pacs&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_sound&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libtool=&quot;$libtool $libtool_sound&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;if test &quot;$without_ai&quot; != &quot;yes&quot;
 &nbsp; &nbsp;then
 &nbsp; &nbsp; &nbsp; &nbsp;libtool=&quot;$libtool $libtool_ai&quot;
 &nbsp; &nbsp;fi

 &nbsp; &nbsp;echo $libtool
fi

# EOF

</PRE>