nginx/auto/os/conf

63 lines
1.4 KiB
Plaintext
Raw Normal View History

2003-11-25 14:44:56 -06:00
if [ ".$PLATFORM" = "." ]; then
echo "checking for OS"
SYSTEM=`uname -s 2>/dev/null`
RELEASE=`uname -r 2>/dev/null`
MACHINE=`uname -m 2>/dev/null`
echo " + $SYSTEM $RELEASE $MACHINE"
PLATFORM="$SYSTEM:$RELEASE:$MACHINE";
else
echo "building for $PLATFORM"
fi
case $PLATFORM in
FreeBSD:*)
. auto/os/freebsd
;;
2003-11-26 09:42:18 -06:00
Linux:*)
. auto/os/linux
2003-11-25 14:44:56 -06:00
;;
2003-11-26 09:42:18 -06:00
SunOS:*)
. auto/os/solaris
2003-11-25 14:44:56 -06:00
;;
win32)
CORE_INCS="$WIN32_INCS"
CORE_DEPS="$WIN32_DEPS"
CORE_SRCS="$WIN32_SRCS $SELECT_SRCS $IOCP_SRCS"
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE $IOCP_MODULE"
CFLAGS="$CFLAGS -D HAVE_AIO=1 -D HAVE_IOCP=1"
CORE_LIBS="$CORE_LIBS ws2_32.lib"
2003-12-05 01:11:46 -06:00
# msvcrt.dll
CORE_LIBS="$CORE_LIBS msvcrt.lib"
2003-11-25 14:44:56 -06:00
;;
esac
if [ $TEST_BUILD_DEVPOLL = YES ]; then
2004-01-29 15:45:01 -06:00
CFLAGS="$CFLAGS -D HAVE_DEVPOLL=1 -D TEST_BUILD_DEVPOLL=1"
2003-11-25 14:44:56 -06:00
EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
2004-01-29 15:45:01 -06:00
CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
fi
if [ $TEST_BUILD_EPOLL = YES ]; then
CFLAGS="$CFLAGS -D HAVE_EPOLL=1 -D TEST_BUILD_EPOLL=1"
EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
2003-11-25 14:44:56 -06:00
fi
2004-01-30 11:39:00 -06:00
if [ $TEST_BUILD_SIGIO = YES ]; then
CFLAGS="$CFLAGS -D HAVE_SIGIO=1 -D TEST_BUILD_SIGIO=1"
EVENT_MODULES="$EVENT_MODULES $SIGIO_MODULE"
CORE_SRCS="$CORE_SRCS $SIGIO_SRCS"
fi