-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
87 lines (79 loc) · 2.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
dnl# -*- Autoconf -*-
dnl# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.72])dnl
AC_INIT([osxbom],[0.0.6],[https://github.com/cooljeanius/osxbom/issues])dnl
AC_CONFIG_SRCDIR([bom.h])dnl
AC_CONFIG_AUX_DIR([build-aux])dnl
AC_CONFIG_HEADERS([config.h])dnl
dnl# Set up Automake.
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.11.6 gnits dist-zip])dnl
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C_O
AC_PROG_CPP
AM_PROG_AS
AC_LANG([C++])dnl
AC_PROG_CXX
AC_PROG_CXX_C_O
AC_PROG_CXXCPP
AC_PATH_PROGS([RM_PROG],[rm grm])dnl
AC_SUBST([RM_PROG])dnl
AC_PATH_PROGS([ROFF_PROG],[nroff groff roff])dnl
AC_SUBST([ROFF_PROG])dnl
AC_PATH_PROGS([YAMLLINT],[yamllint gyamllint])dnl
AC_SUBST([YAMLLINT])dnl
# Checks for header files.
AC_DEFUN([AC_REQUIRE_HEADER_STDC],[
m4_ifdef([AC_HEADER_STDC],[
AC_REQUIRE([AC_HEADER_STDC])dnl
],[
AC_REQUIRE([AC_CHECK_INCLUDES_DEFAULT])dnl
AC_REQUIRE([AC_PROG_EGREP])dnl
])dnl
])dnl
AC_REQUIRE_HEADER_STDC
AC_HEADER_STDBOOL dnl# also "_CHECK"s it
AC_CHECK_HEADERS([arpa/inet.h ctype.h getopt.h mach-o/arch.h])dnl
if test "x${ac_cv_header_stdint_h}" = "x"; then
test -z "${ac_cv_header_stdint_h}" || unset ac_cv_header_stdint_h
AC_CHECK_HEADERS([stdint.h])
fi
if test "x${ac_cv_header_stdio_h}" = "x"; then
test -z "${ac_cv_header_stdio_h}" || unset ac_cv_header_stdio_h
AC_CHECK_HEADERS([stdio.h])
fi
if test "x${ac_cv_header_unistd_h}" = "x"; then
test -z "${ac_cv_header_unistd_h}" || unset ac_cv_header_unistd_h
AC_CHECK_HEADERS([unistd.h])
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_CONST
AC_C_FLEXIBLE_ARRAY_MEMBER
AC_C_PROTOTYPES
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_CHECK_TYPES([NXArchInfo],[],[],[
#ifdef HAVE_MACH_O_ARCH_H
# include <mach-o/arch.h>
#else
# if defined(__GNUC__) && !defined(__STRICT_ANSI__)
# warning "this conftest for NXArchInfo wants to include <mach-o/arch.h>"
# endif /* __GNUC__ && !__STRICT_ANSI__ */
#endif /* MACH_O_ARCH_H */
])dnl
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
dnl# some of these are only used by the system implementation of lsbom,
dnl# and NOT by this one (yet, at least):
AC_CHECK_FUNCS([NXGetArchInfoFromName atoi cerr cout close exit \
fflush fprintf fwrite getopt getopt_long getopt_long_only \
getprogname isprint ntohl ntohs printf puts read \
setfill setw strcmp strcpy strlen what])dnl
AC_CHECK_DECLS([ntohl, ntohs])dnl
# Output.
AC_CONFIG_FILES([Makefile Makefile_orig])dnl
AC_OUTPUT