ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/configure.in
(Generate patch)

Comparing projects/cms/source/ihost/configure.in (file contents):
Revision 1.28 by tdb, Sun Oct 5 12:52:12 2003 UTC vs.
Revision 1.29 by tdb, Mon Jan 5 15:51:55 2004 UTC

# Line 61 | Line 61 | AC_FUNC_MALLOC
61   AC_FUNC_REALLOC
62   AC_FUNC_FORK
63   AC_CHECK_FUNCS(strlcat)
64 AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])])
64  
65   # Figure out details about the host - we need the OS
66   AC_CANONICAL_HOST
# Line 76 | Line 75 | case $host_os in
75   solaris2.*)
76          AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])],[-lnsl -lsocket])
77          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
78 <        LIBS="$LIBS -lnsl -lsocket -lkstat -Wl,-Bstatic -lstatgrab -lukcprog -Wl,-Bdynamic"
78 >        LIBS="$LIBS -lnsl -lsocket -lkstat -ldevinfo -Wl,-Bstatic -lstatgrab -lukcprog -Wl,-Bdynamic"
79          ;;
80 < freebsd4.*)
80 > freebsd*)
81          AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
82 <        AC_DEFINE(FREEBSD, , [Building on FreeBSD 4.x])
82 >        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
83 >        AC_DEFINE(FREEBSD, , [Building on FreeBSD])
84          LIBS="$LIBS -lstatgrab -lkvm -ldevstat -lukcprog -static"
85          # FreeBSD needs ihost to be setgid kmem
86          AM_CONDITIONAL(SETGIDKMEM, true)
87          ;;
88 + netbsdelf*)
89 +        AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
90 +        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
91 +        AC_DEFINE(NETBSD, , [Building on NetBSD])
92 +        LIBS="$LIBS -lstatgrab -lkvm -lukcprog -static"
93 +        AM_CONDITIONAL(SETGIDKMEM, true)
94 +        ;;
95   linux-gnu)
96          AC_CHECK_LIB(ukcprog, fpgetline,[:],[AC_MSG_ERROR([need libukcprog])])
97          AC_DEFINE(LINUX, , [Building on GNU/Linux])
98          LIBS="$LIBS -lstatgrab -lukcprog -static"
99          ;;
100 + cygwin)
101 +        AC_DEFINE(CYGWIN, , [Building on Cygwin])
102 +        ;;
103   *)
104          AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
105          ;;
106   esac
107 +
108 + # Check for libstatgrab
109 + AC_CHECK_LIB(statgrab, get_general_stats,[:],[AC_MSG_ERROR([need libstatgrab])])
110  
111   # Check for the --with-pid-file option
112   AC_ARG_WITH([pid-file], [  --with-pid-file=FILE    location of PID file (default: /var/tmp/.ihost.pid)], [pidfile=$withval], [pidfile=[/var/tmp/.ihost.pid]])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines