Release 940505
[wine/multimedia.git] / Configure
blob15c7c31eca90830366da6652922c0917bf88d2d0
1 #! /bin/sh
3 ALLDEFINES=''
5 echo
6 echo -n 'Build Wine as emulator or library (E/L) [E]? '
7 read input
8 if [ "$input" = 'l' -o "$input" = 'L' ]
9 then
10 WINELIB='#define WINELIB -DWINELIB'
11 ALLDEFINES="$ALLDEFINES -DWINELIB"
12 else
13 WINELIB=''
16 echo -n 'Short filenames (Y/N) [N]? '
17 read input
18 if [ "$input" = 'y' -o "$input" = 'Y' ]
19 then
20 SHORTNAMES='#define ShortNames -DSHORTNAMES'
21 ALLDEFINES="$ALLDEFINES -DSHORTNAMES"
22 else
23 SHORTNAMES=''
26 echo -n 'Global configfile name [/usr/local/etc/wine.conf]? '
27 read input
28 if [ "$input" = '' ]
29 then
30 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "/usr/local/etc/wine.conf"'
31 else
32 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "'$input'"'
35 if [ "`(domainname)`" = 'amscons.com' ]
36 then
37 echo -n 'New build program (Y/N) [N]? '
38 read input
39 if [ "$input" = 'y' -o "$input" = 'Y' ]
40 then
41 NEWBUILD='#define NewBuild -DNEWBUILD'
42 ALLDEFINES="$ALLDEFINES -DNEWBUILD"
43 else
44 NEWBUILD=''
46 else
47 NEWBUILD=''
50 echo '/* autoconf.h generated automatically. Run Configure. */' > autoconf.h
51 echo $WINELIB >> autoconf.h
52 echo $SHORTNAMES >> autoconf.h
53 echo $NEWBUILD >> autoconf.h
54 echo $WINE_INI_GLOBAL >> autoconf.h
55 echo "#define AutoDefines $ALLDEFINES" >> autoconf.h
57 xmkmf -a