Skip to content
Newer
Older
100755 37 lines (32 sloc) 817 Bytes
ca7d2a3 @paraboul Add MAC OSX10.6 support
paraboul authored Oct 11, 2009
1 #!/bin/bash
2
3 OS_TARGET=`uname -s`
4
5 case "$OS_TARGET" in
6 linux* | Linux*)
7 HOST_OS=Linux
8 echo "#define USE_EPOLL_HANDLER" > ./src/configure.h
9 echo "LINUX_BUILD = 1" > ./modules/plateform.mk;;
10 Darwin*)
11 HOST_OS=Darwin
12 echo "#define USE_KQUEUE_HANDLER" > ./src/configure.h
13 echo "DARWIN_BUILD = 1" > ./modules/plateform.mk;;
14 *)
15 HOST_IS=Linux;;
16 esac
17
885584a @paraboul Fixes and changes :
paraboul authored Dec 22, 2009
18 if [ -e "/usr/include/mysql/mysql.h" ]
db51bad @paraboul build.sh : Add check for mysql headers file
paraboul authored Dec 7, 2009
19 then
0d3da6a @paraboul
paraboul authored Dec 7, 2009
20 echo "HAS_MYSQL = yes" > ./modules/mysql.mk
db51bad @paraboul build.sh : Add check for mysql headers file
paraboul authored Dec 7, 2009
21 echo "#define _USE_MYSQL 1" >> ./src/configure.h
22 cd ./modules/deps/mysac/
23 make
24 cd ../../../
25 else
26 echo "HAS_MYSQL = 0" > ./modules/mysql.mk
27 echo "#undef _USE_MYSQL" >> ./src/configure.h
28 fi
ca7d2a3 @paraboul Add MAC OSX10.6 support
paraboul authored Oct 11, 2009
29
da476da @paraboul Fix compilation errors
paraboul authored Nov 13, 2009
30 cd ./deps/udns-0.0.9/
ca7d2a3 @paraboul Add MAC OSX10.6 support
paraboul authored Oct 11, 2009
31 make clean && ./configure && make
70e098f @paraboul Build fix
paraboul authored Nov 25, 2009
32 cd ../js/src/
ca7d2a3 @paraboul Add MAC OSX10.6 support
paraboul authored Oct 11, 2009
33 ./configure && make
34 cd ../../../
35 make
db51bad @paraboul build.sh : Add check for mysql headers file
paraboul authored Dec 7, 2009
36 cd ./modules/ && make
Something went wrong with that request. Please try again.