6 echo -n 'Build Wine as emulator or library (E/L) [E]? '
8 if [ "$input" = 'l' -o "$input" = 'L' ]
10 WINELIB='#define WINELIB -DWINELIB'
11 ALLDEFINES="$ALLDEFINES -DWINELIB"
16 echo -n 'Short filenames (Y/N) [N]? '
18 if [ "$input" = 'y' -o "$input" = 'Y' ]
20 SHORTNAMES='#define ShortNames -DSHORTNAMES'
21 ALLDEFINES="$ALLDEFINES -DSHORTNAMES"
26 echo -n 'Global configfile name [/usr/local/etc/wine.conf]? '
30 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "/usr/local/etc/wine.conf"'
32 WINE_INI_GLOBAL='#define WINE_INI_GLOBAL "'$input'"'
35 if [ "`(domainname)`" = 'amscons.com' ]
37 echo -n 'New build program (Y/N) [N]? '
39 if [ "$input" = 'y' -o "$input" = 'Y' ]
41 NEWBUILD='#define NewBuild -DNEWBUILD'
42 ALLDEFINES="$ALLDEFINES -DNEWBUILD"
50 if [ -f /usr/include/linux/ldt.h ]
52 if grep -q seg_not_present /usr/include/linux/ldt.h
54 NEWLINUXLDT='#define NewLinuxLdt -DNEW_LDT_STRUCT'
55 ALLDEFINES="$ALLDEFINES -DNEW_LDT_STRUCT"
63 echo '/* autoconf.h generated automatically. Run Configure. */' > autoconf.h
64 echo $WINELIB >> autoconf.h
65 echo $SHORTNAMES >> autoconf.h
66 echo $NEWBUILD >> autoconf.h
67 echo $WINE_INI_GLOBAL >> autoconf.h
68 echo $NEWLINUXLDT >> autoconf.h
69 echo "#define AutoDefines $ALLDEFINES" >> autoconf.h