51 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
52 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
53 |
|
AC_DEFINE(SOL7, , [Building on Solaris 2.7]) |
54 |
< |
LINKFLAGS="-lkstat" |
54 |
> |
LINKFLAGS="-lkstat -ldevinfo" |
55 |
|
;; |
56 |
|
solaris2.*) |
57 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
58 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
59 |
< |
LINKFLAGS="-lkstat" |
59 |
> |
LINKFLAGS="-lkstat -ldevinfo" |
60 |
|
;; |
61 |
|
freebsd4.*) |
62 |
|
AC_DEFINE(ALLBSD, , [Building on a BSD-derived system]) |
79 |
|
;; |
80 |
|
linux-gnu) |
81 |
|
AC_DEFINE(LINUX, , [Building on GNU/Linux]) |
82 |
+ |
;; |
83 |
+ |
cygwin) |
84 |
+ |
AC_DEFINE(CYGWIN, , [Building on Cygwin]) |
85 |
|
;; |
86 |
|
*) |
87 |
|
AC_MSG_ERROR([Cannot build on unknown OS: $host_os]) |