pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2015-03-24
2015-03-24 13:32:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a662c2806b8106aba875b0143938f765526c7b2b (
54
lines) (+
3
/-
51
)
[
Show
|
Annotate
]
Branch:
8.1
Build: Moved OS checking code to aclocal.m4.
573:
UNAME=unknown fi
-
# We need some special hacks when running slowaris
-
AC_PATH_PROG(uname_prog,uname,no)
-
AC_MSG_CHECKING(operating
system)
-
AC_CACHE_VAL(pike_cv_sys_os,
-
[
-
if
test "$cross_compiling" = "yes"; then
-
case "$host_alias" in
-
*amigaos*) pike_cv_sys_os="AmigaOS";;
-
*linux*) pike_cv_sys_os="Linux";;
-
*solaris*) pike_cv_sys_os="Solaris";;
-
*sunos*) pike_cv_sys_os="SunOS";;
-
*windows*) pike_cv_sys_os="Windows_NT";;
-
*mingw*|*MINGW*)
-
pike_cv_sys_os="Windows_NT"
-
pike_cv_is_mingw="yes";;
-
*) pike_cv_sys_os="Unknown";;
-
esac
-
elif test "$uname_prog" != "no"; then
-
# uname on UNICOS doesn't work like other people's uname
.
..
-
if getconf CRAY
_
RELEASE >/dev/null 2>&1; then
-
pike
_
cv
_
sys_os="UNICOS"
-
else
-
pike_cv_sys_os="`uname`"
-
fi
+
# We need some special hacks when running slowaris
and winblows.
+
PIKE
_AC_
CHECK
_
OS
()
-
case "$pike_cv_sys_os" in
-
SunOS)
-
case "`uname -r`" in
-
5.*) pike_cv_sys_os="Solaris" ;;
-
esac
-
;;
-
Monterey64)
-
# According to the release notes, the string "Monterey64"
-
# will be changed to "AIX" in the final release.
-
# (Monterey 64 is also known as AIX 5L).
-
pike_cv_sys_os="AIX"
-
;;
-
*Windows*|*windows*)
-
pike_cv_sys_os="Windows_NT"
-
;;
-
*MINGW*|*mingw*)
-
pike_cv_is_mingw="yes"
-
pike_cv_sys_os="Windows_NT"
-
;;
-
-
esac
-
else
-
pike_cv_sys_os="Not Solaris"
-
fi
-
])
-
AC_MSG_RESULT($pike_cv_sys_os)
-
+
if test "x$pike_cv_sys_os" = xWindows_NT; then PIKE_FUNCS_NEED_DECLS(yes) fi