-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
52 lines (45 loc) · 1.13 KB
/
configure.ac
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
AC_INIT([jload],[0.1],[joewing@joewing.net])
AC_PREREQ([2.69])
AC_CONFIG_HEADER([config.h])
AC_LANG(C)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_MKDIR_P
AC_PATH_X
if test ! "$no_x" = "yes" ; then
if test ! x"$x_libraries" = x ; then
LDFLAGS="$LDFLAGS -L$x_libraries"
fi
if test ! x"$x_includes" = x ; then
CFLAGS="$CFLAGS -I$x_includes"
fi
else
AC_MSG_ERROR([Could not find X11])
fi
AC_CHECK_LIB([X11], XOpenDisplay,
[ LDFLAGS="$LDFLAGS -lX11" ],
[ AC_MSG_ERROR([libX11 not found]) ])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([sys/types.h sys/sysctl.h])
AC_CHECK_HEADERS([sys/mpctl.h])
AC_CHECK_HEADERS([sys/sysget.h])
AC_CHECK_FUNCS([sysconf sysctl mpctl sysget])
AC_CHECK_HEADERS([loadavg.h sys/loadavg.h])
AC_CHECK_FUNCS([getloadavg])
if test "$prefix" = "NONE" ; then
PREFIX="$ac_default_prefix"
prefix="$ac_default_prefix"
else
PREFIX="$prefix"
fi
if test "$exec_prefix" = "NONE" ; then
exec_prefix="$PREFIX"
fi
BINDIR=`eval echo \""$bindir"\"`
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(PACKAGE_VERSION)
AC_SUBST(BINDIR, "$BINDIR")
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT