summaryrefslogtreecommitdiff
blob: f88a1473d1f3459609b3916d689f82cd9b3ca357 (plain)
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
Index: test/Makefile.am
===================================================================
--- test/Makefile.am	(Revision 80)
+++ test/Makefile.am	(Arbeitskopie)
@@ -1,4 +1,3 @@
 AM_CFLAGS = -I../src -D_ENABLE_TILT -lm
 LDADD = ../src/libcwiimote.la
 noinst_PROGRAMS= test1 test2 test3 test4
-
Index: configure.ac
===================================================================
--- configure.ac	(Revision 80)
+++ configure.ac	(Arbeitskopie)
@@ -5,22 +5,26 @@
 AC_INIT([libwiimote], [0.4.0], [http://sourceforge.net/projects/libwiimote/])
 AC_CONFIG_HEADER([config.h])
 
-
 VERSION=0.4.0
 PACKAGE=libcwiimote
 
 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
 
 # Checks for programs.
+AC_PROG_CXX
 AC_PROG_CC
+AC_PROG_CPP
 AC_PROG_INSTALL
-AC_PROG_LIBTOOL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
 AC_SUBST(LIBTOOL_DEPS)
 AM_PROG_LIBTOOL
 
 # Checks for libraries.
 AC_CHECK_LIB([bluetooth], [hci_remote_name],
-             [], [AC_MSG_ERROR([We require BlueZ])])
+             [], [AC_MSG_ERROR([BlueZ library required, available at http://www.bluez.org/])])
+AC_CHECK_LIB([m], [asin],
+             [], [AC_MSG_ERROR([libm required])])
 
 # Checks for header files.
 AC_HEADER_STDC
@@ -45,7 +49,7 @@
 AC_CONFIG_FILES([Makefile
                  src/Makefile
                  test/Makefile
-		 libwiimote.pc])
+                 libwiimote.pc])
 AC_OUTPUT
 echo
 echo $PACKAGE v$VERSION