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"
14 echo -n 'Use processor emulator (*DOES*NOT*WORK*YET*) (Y/N) [N]? '
16 if [ "$input" = 'y' -o "$input" = 'Y' ]
18 PROCEMU
='#define PROCEMU'
19 echo -n 'bochs directory [/usr/src/bochs]? '
23 ALLDEFINES
="$ALLDEFINES -DPROC_EMU_DIR=/usr/src/bochs"
25 ALLDEFINES
="$ALLDEFINES -DPROC_EMU_DIR="$input
31 echo -n 'Short filenames (Y/N) [N]? '
33 if [ "$input" = 'y' -o "$input" = 'Y' ]
35 SHORTNAMES
='#define ShortNames -DSHORTNAMES'
36 ALLDEFINES
="$ALLDEFINES -DSHORTNAMES"
41 echo -n 'Global configfile name [/usr/local/etc/wine.conf]? '
45 WINE_INI_GLOBAL
='#define WINE_INI_GLOBAL "/usr/local/etc/wine.conf"'
47 WINE_INI_GLOBAL
='#define WINE_INI_GLOBAL "'$input'"'
50 if [ "`(domainname)`" = 'amscons.com' ]
52 echo -n 'New build program (Y/N) [N]? '
54 if [ "$input" = 'y' -o "$input" = 'Y' ]
56 NEWBUILD
='#define NewBuild -DNEWBUILD'
57 ALLDEFINES
="$ALLDEFINES -DNEWBUILD"
66 if [ -f /usr
/include
/linux
/ldt.h
]
68 if grep seg_not_present
/usr
/include
/linux
/ldt.h
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