-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac.in
More file actions
57 lines (47 loc) · 1.61 KB
/
configure.ac.in
File metadata and controls
57 lines (47 loc) · 1.61 KB
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([module_posix_timer], [PACKAGE_VERSION], [Robert Burger <robert.burger@dlr.de>])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX([14], [ext], [mandatory])
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG])
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [pkgconfigdir='${libdir}/pkgconfig' AC_SUBST([pkgconfigdir])])
# Check dependencies
PKG_CHECK_MODULES([ROBOTKERNEL], [robotkernel])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([strdup])
# Checks for library functions.
AC_CHECK_LIB(dl, dlopen)
# Platform specific setup
# Check for which host we are on and setup a few things
# specifically based on the host
case $target in
*arm* )
AC_DEFINE([ARCH_ARM], [], [Defined if the target CPU is arm])
;;
*amd64* )
AC_DEFINE([ARCH_INTEL], [], [Defined if the target CPU is intel])
;;
*i?86* )
AC_DEFINE([ARCH_INTEL], [], [Defined if the target CPU is intel])
;;
*x86_64* )
AC_DEFINE([ARCH_INTEL], [], [Defined if the target CPU is intel])
;;
esac
AC_CONFIG_FILES([Makefile src/Makefile module_stream_pipe.pc])
AC_OUTPUT