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

Comparing projects/libstatgrab/configure.in (file contents):
Revision 1.79 by ats, Mon Nov 1 20:34:57 2004 UTC vs.
Revision 1.102 by tdb, Wed Jun 9 15:16:41 2010 UTC

# Line 6 | Line 6
6   #
7  
8   # Change these to change the package name and version
9 < AC_INIT(libstatgrab, 0.11, bugs@i-scream.org)
10 < AM_INIT_AUTOMAKE(libstatgrab, 0.11)
9 > AC_INIT(libstatgrab, 0.18, bugs@i-scream.org)
10 > AM_INIT_AUTOMAKE(libstatgrab, 0.18)
11  
12   # Revision number (automatically updated)
13   AC_REVISION($Revision$)
# Line 51 | Line 51 | AC_CHECK_MEMBER(struct statvfs.f_fstypename,
51                  [],
52                  [#include <sys/statvfs.h>])
53  
54 + # FreeBSD 9 (and others) uses utmpx rather than utmp
55 + AC_CHECK_MEMBER(struct utmpx.ut_type,
56 +                [AC_DEFINE(HAVE_UTMPX, , [utmpx])],
57 +                [],
58 +                [#include <utmpx.h>])
59 +
60   # Check for sys/loadavg.h
61   AC_CHECK_HEADERS([sys/loadavg.h])
62  
# Line 61 | Line 67 | AC_CHECK_HEADERS([libdevinfo.h])
67   AM_CONDITIONAL(SETGIDBINS, false)
68   AM_CONDITIONAL(SETUIDBINS, false)
69  
70 + # Default MINGW setting
71 + AM_CONDITIONAL(MINGW, false)
72 +
73   # Set things up for different OS's
74   # We define the name of the OS so the code can act accordingly
75   # We also need to add the right LDFLAGS
# Line 74 | Line 83 | solaris2.[[6-7]])
83          BIN_PERM="4755"
84          LINKFLAGS="-lkstat -lsocket -lnsl"
85          AC_CHECK_LIB(devinfo, di_init, [LINKFLAGS="$LINKFLAGS -ldevinfo"])
86 +        AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"])
87          ;;
88   solaris2.*)
89          AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])])
90          AC_DEFINE(SOLARIS, , [Building on Solaris 2.x])
91          LINKFLAGS="-lkstat -ldevinfo -lsocket -lnsl"
92 +        AC_CHECK_LIB(m, fabs, [SAIDARLIBS="$SAIDARLIBS -lm"])
93          ;;
94   hpux11.11*)
95          AC_DEFINE(HPUX, , [Building on HP-UX 11.11])
# Line 91 | Line 102 | freebsd4.*)
102          BIN_PERM="2755"
103          LINKFLAGS="-lkvm -ldevstat"
104          ;;
105 < freebsd[[5-6]].*)
105 > freebsd[[5-9]].*)
106          AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
107          AC_DEFINE(FREEBSD, , [Building on FreeBSD])
108 <        AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x or 6.x])
108 >        AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 9.x])
109          LINKFLAGS="-ldevstat"
110          ;;
111   netbsdelf1*)
112          AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
113          AC_DEFINE(NETBSD, , [Building on NetBSD])
114          ;;
115 < netbsdelf2*)
115 > netbsdelf[[2-3]]*)
116          AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
117          AC_DEFINE(NETBSD, , [Building on NetBSD])
118          AC_DEFINE(NETBSD2, , [Building on NetBSD 2.x])
# Line 118 | Line 129 | dragonfly*)
129          BIN_PERM="2755"
130          LINKFLAGS="-lkvm -ldevstat"
131          ;;
132 < linux-gnu)
132 > linux-gnu*)
133          AC_DEFINE(LINUX, , [Building on GNU/Linux])
134          AM_CONDITIONAL(SETUIDBINS, true)
135          BIN_OWNER="root"
136          BIN_PERM="4755"
137          ;;
138 + kfreebsd*-gnu*)
139 +        AC_DEFINE(ALLBSD, , [Building on a BSD-derived system])
140 +        AC_DEFINE(FREEBSD, , [Building on FreeBSD])
141 +        AC_DEFINE(FREEBSD5, , [Building on FreeBSD 5.x - 9.x])
142 +        LINKFLAGS="-ldevstat"
143 +        ;;
144   cygwin)
145          AC_DEFINE(CYGWIN, , [Building on Cygwin])
146          ;;
147 + mingw32)
148 +        AC_DEFINE(MINGW, , [Building on MinGW])
149 +        AC_DEFINE(WINVER, 0x0500, [Building for Windows 2000])
150 +        AM_CONDITIONAL(MINGW, true)
151 +        LINKFLAGS="-lpdh -lIphlpapi -lpsapi -lnetapi32"
152 +        ;;
153   *)
154          AC_MSG_ERROR([Cannot build on unknown OS: $host_os])
155          ;;
# Line 140 | Line 163 | AC_ARG_WITH([curses-prefix],
163                          SAIDARLIBS="-L${withval}/lib ${SAIDARLIBS}"
164                  fi
165                  if test -d "$withval/include"; then
166 <                        SAIDARCPPFLAGS="-I${withval}/include -I${withval}/include/ncurses ${SAIRDARCPPFLAGS}"
166 >                        SAIDARCPPFLAGS="-I${withval}/include ${SAIRDARCPPFLAGS}"
167                  fi
168          ]
169   )
# Line 239 | Line 262 | AC_SUBST(BIN_GROUP)
262   AC_SUBST(BIN_PERM)
263  
264   # And finish by changing these files
265 < AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile])
265 > AC_CONFIG_FILES([Makefile src/Makefile src/libstatgrab/Makefile src/statgrab/Makefile docs/Makefile docs/libstatgrab/Makefile docs/statgrab/Makefile docs/saidar/Makefile examples/Makefile libstatgrab.pc src/statgrab/statgrab-make-mrtg-config src/statgrab/statgrab-make-mrtg-index src/saidar/Makefile])
266  
267   AC_OUTPUT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines