Release 940815
[wine/gsoc-2012-control.git] / Configure
blobc2fee7d59ccfe61fe59feac8d01d40daf3866477
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=''
14 echo -n 'Use processor emulator (*DOES*NOT*WORK*YET*) (Y/N) [N]? '
15 read input
16 if [ "$input" = 'y' -o "$input" = 'Y' ]
17 then
18 PROCEMU='#define PROCEMU'
19 echo -n 'bochs directory [/usr/src/bochs]? '
20 read input
21 if [ "$input" = '' ]
22 then
23 ALLDEFINES="$ALLDEFINES -DPROC_EMU_DIR=/usr/src/bochs"
24 else
25 ALLDEFINES="$ALLDEFINES -DPROC_EMU_DIR="$input
30 echo
31 echo -n 'Short filenames (Y/N) [N]? '
32 read input
33 if [ "$input" = 'y' -o "$input" = 'Y' ]
34 then
35 SHORTNAMES='#define ShortNames -DSHORTNAMES'
36 ALLDEFINES="$ALLDEFINES -DSHORTNAMES"
37 else
38 SHORTNAMES=''
41 echo -n 'Global configfile name [/usr/local/etc/wine.conf]? '
42 read input
43 if [ "$input" = '' ]
44 then
45 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "/usr/local/etc/wine.conf"'
46 else
47 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "'$input'"'
50 if [ "`(domainname)`" = 'amscons.com' ]
51 then
52 echo -n 'New build program (Y/N) [N]? '
53 read input
54 if [ "$input" = 'y' -o "$input" = 'Y' ]
55 then
56 NEWBUILD='#define NewBuild -DNEWBUILD'
57 ALLDEFINES="$ALLDEFINES -DNEWBUILD"
58 else
59 NEWBUILD=''
61 else
62 NEWBUILD=''
65 NEWLINUXLDT=''
66 if [ -f /usr/include/linux/ldt.h ]
67 then
68 if grep seg_not_present /usr/include/linux/ldt.h
69 then
70 NEWLINUXLDT='#define NEW_LDT_STRUCT'
74 echo '/* autoconf.h generated automatically. Run Configure. */' > autoconf.h
75 echo $WINELIB >> autoconf.h
76 echo $SHORTNAMES >> autoconf.h
77 echo $NEWBUILD >> autoconf.h
78 echo $WINE_INI_GLOBAL >> autoconf.h
79 echo $NEWLINUXLDT >> autoconf.h
80 echo $ENDIAN >> autoconf.h
81 echo $PROCEMU >> autoconf.h
82 echo $PROCEMUDIR >> autoconf.h
83 echo "#define AutoDefines $ALLDEFINES" >> autoconf.h
85 xmkmf -a