-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
41 lines (32 loc) · 1.11 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([asmctl], [2.1], [[email protected]])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AC_PREFIX_DEFAULT(/usr/local)
# Checks for programs.
AC_PROG_CC
AC_PROG_SED
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB(nv, FreeBSD_nvlist_create)
AC_CHECK_LIB(nv, nvlist_create)
AC_CHECK_LIB(casper, cap_init)
AC_CHECK_LIB(cap_sysctl, cap_sysctlbyname)
# Checks for header files.
AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h nl_types.h])
AC_CHECK_HEADERS([sys/nv.h sys/capsicum.h libcasper.h capsicum_helpers.h])
AC_CHECK_HEADERS([sys/backlight.h sys/ioctl.h])
AC_CHECK_HEADER(sys/backlight.h, blsrc=src/backlight.c, blsrc=)
AC_SUBST([backlight], $blsrc)
# Check for functions.
AC_CHECK_FUNCS([cap_sysctl_limit_name])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_REALLOC
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strchr strtol strerror ftruncate])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT