forked from xwiimote/xwiimote-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
76 lines (61 loc) · 1.8 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
#
# xwiimote-bindings - configure
# Written by David Herrmann, 2013
# Dedicated to the Public Domain
#
AC_PREREQ(2.68)
AC_INIT([xwiimote-bindings],
[1],
[http://github.com/dvdhrm/xwiimote-bindings/issues],
[xwiimote-bindings],
[http://github.com/dvdhrm/xwiimote-bindings])
AC_CONFIG_SRCDIR([./autogen.sh])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER(config.h)
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign 1.11 subdir-objects dist-xz no-dist-gzip tar-pax -Wall -Werror -Wno-portability])
AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O
AC_PROG_LN_S
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_PREREQ(2.2)
LT_INIT
PKG_CHECK_MODULES([XWIIMOTE], [libxwiimote])
PKG_CHECK_VAR([XWIIMOTE_INCLUDEDIR], [libxwiimote], [includedir])
PKG_CHECK_VAR([XWIIMOTE_LIBDIR], [libxwiimote], [libdir])
AC_SUBST(XWIIMOTE_CFLAGS)
AC_SUBST(XWIIMOTE_LIBS)
AC_SUBST(XWIIMOTE_INCLUDEDIR)
AC_SUBST(XWIIMOTE_LIBDIR)
AC_CHECK_PROG([SWIG], [swig], [swig])
if test ! "x$SWIG" = "xswig" ; then
AC_ERROR([swig not found])
fi
AM_PATH_PYTHON(, [have_python="yes"], [have_python="no"])
AM_CONDITIONAL(HAVE_PYTHON, test "x$have_python" = "xyes")
have_perl="no"
AC_PATH_PROG([PERL], [perl], ["no"])
if test ! "x$perl" = "xno" ; then
have_perl="yes"
fi
AM_CONDITIONAL(HAVE_PERL, test "x$have_perl" = "xyes")
#
# Write configuration
#
AC_CONFIG_FILES([Makefile
python/setup.py
perl/Makefile.PL])
AC_OUTPUT
AC_MSG_NOTICE([Build configuration:
prefix: $prefix
exec-prefix: $exec_prefix
libdir: $libdir
includedir: $includedir
python binding: $have_python
perl binding: $have_perl
Run "${MAKE-make}" to start compilation process])