File: sunos.m4

package info (click to toggle)
heimdal 7.8.git20221117.28daf24%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 37,024 kB
  • sloc: ansic: 363,849; sh: 7,613; javascript: 6,382; makefile: 4,567; perl: 1,936; yacc: 1,786; lex: 732; python: 725; awk: 468; java: 119; asm: 30
file content (29 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (5)
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
28
29
dnl
dnl $Id$
dnl

AC_DEFUN([rk_SUNOS],[
sunos=no
case "$host" in 
*-*-solaris2.7)
	sunos=57
	;;
*-*-solaris2.1[[1-9]])
	AC_DEFINE([__EXTENSIONS__], [1],
		  [Enable general extensions on Solaris.])
	AC_DEFINE([_STDC_C11_BCI], [1],
		[Enable C11 prototypes for memset_s and friends])
	sunos=511
	;;
*-*-solaris2.[[89]] | *-*-solaris2.10)
	sunos=58
	;;
*-*-solaris2*)
	sunos=50
	;;
esac
if test "$sunos" != no; then
	AC_DEFINE_UNQUOTED(SunOS, $sunos, 
		[Define to what version of SunOS you are running.])
fi
])