mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
46 lines
863 B
Plaintext
46 lines
863 B
Plaintext
|
|
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
|
|
;;
|
|
|
|
Linux:*)
|
|
. auto/os/linux
|
|
;;
|
|
|
|
SunOS:*)
|
|
. auto/os/solaris
|
|
;;
|
|
|
|
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"
|
|
EVENT_FOUND=YES
|
|
|
|
have=HAVE_AIO . auto/have
|
|
have=HAVE_IOCP . auto/have
|
|
CORE_LIBS="$CORE_LIBS ws2_32.lib"
|
|
|
|
# msvcrt.dll
|
|
CORE_LIBS="$CORE_LIBS msvcrt.lib"
|
|
;;
|
|
|
|
esac
|