-
Notifications
You must be signed in to change notification settings - Fork 19
/
winconfigure
27 lines (23 loc) · 927 Bytes
/
winconfigure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
SYSNAME=`uname -o`
touch aclocal.m4
touch Makefile.in
touch config.h.in
rm -f ktest/cw32bld
rm -f ktest/cw62bld
rm -f ktest/uwbld
if [ "$SYSNAME" = "Cygwin" ]; then
# ./configure --host i686-w64-mingw32 --prefix=/cygdrive/c/oasis # do not use 32 bit variant!!!
#./configure --build=x86_64 --host x86_64-w64-mingw32 --prefix=/cygdrive/c/oasis --without-zlib
./configure --build=x86_64 --host x86_64-w64-mingw32 --prefix=/cygdrive/c/oasis --with-zlib=/usr/x86_64-w64-mingw32/sys-root/mingw --enable-static
touch ktest/cw64bld
exit 0
else
SYSNAME=`uname -r`
if echo "$SYSNAME" | grep -q "Microsoft"; then
echo "This is not yet supported due to lack of thread support"
# ./configure --host x86_64-w64-mingw32 --prefix=/mnt/c/oasis --with-zlib=/usr/x86_64-w64-mingw32
else
echo "Must run this on a windows machine either under cygwin or under the Linux Subsystem for Windows"
fi
fi