wmmisc: Bump to version 1.2.
[dockapps.git] / ascd / libworkman / include / wm_config.h
blob41847e3d49a4caf5c20d556bb8a88efc391e08d3
1 #ifndef WM_CONFIG_H
2 #define WM_CONFIG_H
3 /*
4 * $Id: wm_config.h,v 1.5 1999/05/05 16:34:22 dirk Exp $
6 * This file is part of WorkMan, the civilized CD player library
7 * (c) 1991-1997 by Steven Grimm (original author)
8 * (c) by Dirk Försterling (current 'author' = maintainer)
9 * The maintainer can be contacted by his e-mail address:
10 * milliByte@DeathsDoor.com
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 **********************************************************************
28 * This file consists of several parts. First, there's a generic,
29 * platform independent part. Set needed options there.
30 * The following parts are platform dependent. You may search for the
31 * names listed below and then set your OS specific options there.
32 * Don't be surprised, if there are no options for your OS. They aren't
33 * needed in any case.
35 * The default values should produce a functional WorkMan on every
36 * platform.
38 *********************
39 * Current platforms:
40 *********************
41 * BSD386
42 * FreeBSD
43 * HP-UX
44 * Irix (SGI)
45 * Linux
46 * News (Sony NewsOS)
47 * OpenBSD
48 * OSF1
49 * Sun (SunOS/Solaris, Sparc or x86)
50 * SVR4
51 * Ultrix
52 * AIX
54 * The above order corresponds with the order of the platform specific
55 * options below.
58 /******************************************************************
59 * generic options
60 ******************************************************************
61 ** ** *** **** ** **** ** * ** ** ** * **
62 * * * *** **** * * *** * ** ** *** * * * * * * **
63 * * *** **** ** *** ** ** ** * * ** * * **
64 * * * *** **** **** *** * ** ** *** * * * * *** **
65 * * * * ** **** * * ** ** **** ** * * *** **
66 ******************************************************************/
69 * This option is obvious. But please do not forget the original
70 * WorkMan version string if you need support.
73 #define WORKMAN_NAME "LibWorkMan"
74 #define WORKMAN_VERSION "1.4.0"
77 * If your CD-ROM drive closes its tray if the device is opened, then
78 * the next define can make WorkMans "Eject" button an "open/close"
79 * button. If it disturbs you, just comment it out.
81 * ### this is preliminary. It may have no effect for you ###
83 #define CAN_CLOSE 1
86 * Define the following if you want the balance slider to
87 * decrease one channel's volume while increasing the other's
89 /* #define SYMETRIC_BALANCE 1 */
93 * Define this if you want CDDA support. Supported systems are:
95 * - Solaris (2.4 or newer)
96 * --> Linux is on the way. Don't define it now. It would lead to errors only.
98 /*#define BUILD_CDDA 1*/
102 * This is for experimental cddb support.
103 * This activates the UI component.
106 #define CDDB_IN_UI 1
109 /******************************************************************
110 * BSD386
111 ******************************************************************
112 *** **** *** ******* ** **** **** ************
113 *** ** ** ****** * ***** ****** ** ** ** ***************
114 *** ****** **** ** *** ***** ***** *** ************
115 *** ** ****** ** * *** ******** ** ** ** ** ***********
116 *** **** *** *** ****** **** **** ************
117 ******************************************************************/
118 #ifdef __bsdi__
121 * This lets you use the SoundBlaster Mixer on BSD/386
123 #define SOUNDBLASTER 1
125 #endif /* __bsdi__ (BSD/386) */
127 /******************************************************************
128 * FreeBSD
129 ******************************************************************
130 *** ** *** ** ** **** *** ***********
131 *** ****** ** ** ****** ****** ** ** ****** * **********
132 *** **** *** **** **** ****** **** ** *********
133 *** ****** ** ** ****** ****** ** ****** ** * **********
134 *** ****** ** ** ** ** **** *** ***********
135 ******************************************************************/
136 #if defined(__FreeBSD__) || defined(__NetBSD__)
138 #define DEFAULT_CD_DEVICE "/dev/rmatcd0c"
140 #endif /* freebsd */
142 /******************************************************************
143 * HP-UX
144 ******************************************************************
145 *** ** ** ********* ** ** ** ***************************
146 *** ** ** ** ******** ** *** ****************************
147 *** ** *** ** ** **** *****************************
148 *** ** ** ************ ** *** ****************************
149 *** ** ** ************* *** ** ***************************
150 ******************************************************************/
151 #if defined(hpux) || defined (__hpux)
153 #define DEFAULT_CD_DEVICE "/dev/rscsi"
155 #endif /* hpux */
157 /******************************************************************
158 * Irix
159 ******************************************************************
160 *** ** *** ** ** *********************************
161 ***** **** ** **** ***** **********************************
162 ***** **** ***** ****** ***********************************
163 ***** **** ** **** ***** **********************************
164 *** ** ** ** ** ** *********************************
165 ******************************************************************/
166 #if defined(sgi)
168 #define DEFAULT_CD_DEVICE "/dev/scsi/sc0d6l0"
170 #endif /* sgi IRIX */
172 /******************************************************************
173 * Linux
174 ******************************************************************
175 *** ****** ** *** ** ** ** ** ***********************
176 *** ******** **** ** ** ** *** ************************
177 *** ******** **** * * ** ** **** *************************
178 *** ******** **** ** ** ** *** ************************
179 *** ** ** *** *** *** ** ***********************
180 ******************************************************************/
181 #ifdef linux
184 * Uncomment the following line to have WorkMan send SCSI commands
185 * directly to the CD-ROM drive. If you have a SCSI drive you
186 * probably want this, but it will cause WorkMan to not work on IDE
187 * drives.
189 #define LINUX_SCSI_PASSTHROUGH 1
192 * Which device should be opened by WorkMan at default?
194 #define DEFAULT_CD_DEVICE "/dev/sbpcd"
197 * Uncomment the following if you use the sbpcd or mcdx device driver.
198 * It shouldn't hurt if you use it on other devices. It'll be nice to
199 * hear from non-sbpcd (or mcdx) users if this is right.
201 /*#define SBPCD_HACK 1*/
204 * Linux Soundcard support
206 #define OSS_SUPPORT 1
209 * This has nothing to do with the above.
212 /* #define CURVED_VOLUME */
215 * Uncomment the following if you want to try out a better responding
216 * WorkMan, especially with IDE drives. This may work with non-IDE
217 * drives as well. But it may be possible, that it doesn't work at all.
218 * If your drive/driver combination cannot handle the faster access,
219 * the driver will usually hang and you have to reboot your machine.
221 /* #define FAST_IDE 1 */
224 * There are two alternative ways of checking a device containing a
225 * mounted filesystem. Define BSD_MOUNTTEST for the test using
226 * getmntent(). Undefine it for using the SVR4 ustat().
227 * I built in the choice, because it's not clear which method should
228 * be used in Linux. The ustat manpage tells us since 1995, that
229 * fstat() should be used, but I'm too dumb to do so.
232 #define BSD_MOUNTTEST
234 #endif /* linux */
236 /******************************************************************
237 * Sony NewsOS
238 ******************************************************************
239 *** *** ** ** ***** *** *****************************
240 *** ** ** ****** ***** ** ********************************
241 *** * * ** **** ** ** **** ******************************
242 *** ** ** ****** * * ****** ****************************
243 *** *** ** ** * *** *****************************
244 ******************************************************************/
245 #if defined(__sony_news) || defined(sony_news)
247 #define DEFAULT_CD_DEVICE "/dev/rsd/b0i6u0p2\0"
249 #endif
251 /******************************************************************
252 * OpenBSD
253 ******************************************************************
254 **** *** *** ** *** ** **** *** *********
255 *** ** ** ** ** ****** ** ** ** ** ****** * ********
256 *** ** ** *** **** * * ** ****** **** ** *******
257 *** ** ** ****** ****** ** ** ** ****** ** * ********
258 **** *** ****** ** *** ** **** *** *********
259 ******************************************************************/
260 #ifdef __OpenBSD__
262 #define DEFAULT_CD_DEVICE "/dev/rcdrom"
264 #endif
266 /******************************************************************
267 * OSF1
268 ******************************************************************
269 **** **** *** *** *** *******************************
270 *** ** ** ****** ****** ** *******************************
271 *** ** **** **** *** ***** *******************************
272 *** ** ****** ** **** ****** *******************************
273 **** **** *** *** ***** *****************************
274 ******************************************************************/
275 #if defined(__osf__)
277 #define DEFAULT_CD_DEVICE "/dev/rcdrom/cd0"
279 #endif
281 /******************************************************************
282 * SunOS/Solaris
283 ******************************************************************
284 **** *** ** ** *** ***************************************
285 *** ****** ** ** ** ***************************************
286 ***** **** ** ** * * ***************************************
287 ******* ** ** ** ** ***************************************
288 **** **** *** *** ***************************************
289 ******************************************************************/
290 #if defined(sun) || defined(__sun__)
293 * Define the following for Solaris 2.x
294 * If you don't want WorkMan to try to activate the SPARCstation 5
295 * internal audio input so you get sound from the workstation, comment
296 * out the CODEC define.
299 #define SYSV 1
300 #define CODEC 1
303 * set the following to "SUNW,CS4231" for Sun and to "SUNW,sb16"
304 * for PC (with SoundBlaster 16) running Solaris x86
305 * (only important if you define CODEC above)
307 /*#define SUN_AUD_DEV "SUNW,CS4231"*/
308 #define SUN_AUD_DEV "SUNW,sbpro"
311 #endif
313 /******************************************************************
314 * SVR4
315 ******************************************************************
316 **** *** **** ** *** * ********************************
317 *** ****** **** ** ** ** * ********************************
318 ***** ***** ** *** *** *******************************
319 ******* *** ** *** ** ***** ********************************
320 **** ***** **** ** ***** ********************************
321 ******************************************************************/
322 #if defined(SVR4) && !defined(sun) && !defined(__sun__)
324 #define DEFAULT_CD_DEVICE "/dev/rcdrom/cd0"
326 #endif
328 /******************************************************************
329 * Ultrix
330 ******************************************************************
331 *** ** ** ***** ** *** ** ** ******************
332 *** ** ** ******* **** ** **** ***** *******************
333 *** ** ** ******* **** ***** ****** ********************
334 *** ** ** ******* **** ** **** ***** *******************
335 **** *** *** **** ** ** ** ** ******************
336 ******************************************************************/
337 #if defined(ultrix) || defined(__ultrix)
339 #endif
341 /******************************************************************
342 * IBM AIX
343 ******************************************************************
344 **** *** ** ** *****************************************
345 *** ** **** ***** ******************************************
346 *** **** ****** *******************************************
347 *** ** **** ***** ******************************************
348 *** ** ** ** ** *****************************************
349 ******************************************************************/
350 #if defined(AIXV3)
352 #define DEFAULT_CD_DEVICE "/dev/cd0"
354 #endif /* IBM AIX */
356 /******************************************************************/
357 #endif /* WM_CONFIG_H */