root/branches/dev/configure.ac

Revision 118, 3.1 kB (checked in by dsmith, 2 years ago)

Create dev branch (currently contains experimental python plugins)

Line 
1 # ChangeLog:
2 # 2007-05-30 L. Donnie Smith <cwiid@abstrakraft.org>
3 # * added python/Makefile
4 # * added PYTHON_VERSION variable
5 #
6 # 2007-04-09 L. Donnie Smith <cwiid@abstrakraft.org>
7 # * updated for libcwiid rename
8 #
9 # 2007-04-04 L. Donnie Smith <cwiid@abstrakraft.org>
10 # * removed --noyywrap from lex
11 #
12 # 2007-04-01 L. Donnie Smith <cwiid@abstrakraft.org>
13 # * added lswm/Makefile
14 # * moved defs.mak
15 #
16 # 2007-03-19 L. Donnie Smith <cwiid@abstrakraft.org>
17 # * added --disable-ldconfig
18 #
19 # 2007-03-01 L. Donnie Smith <cwiid@abstrakraft.org>
20 # * Initial ChangeLog
21 # * Check for stdint.h
22
23 AC_INIT(CWiid,0.5.02,cwiid@abstrakraft.org)
24
25 AC_PROG_CC
26 AC_PROG_AWK
27 AC_PROG_LEX
28 if test "$LEX" != "flex"; then
29         AC_MSG_ERROR([flex not found])
30 fi
31 if test -z "`echo %%|$LEX -t|grep yypop_buffer_state`"; then
32         AC_MSG_ERROR([flex missing yypop_buffer_state - upgrade to version 2.5.33 or later])
33 fi
34 AC_PROG_YACC
35 if test "$YACC" != "bison -y"; then
36         AC_MSG_ERROR([bison not found])
37 fi
38
39 PYTHON_VERSION=[`python -c 'import sys; print sys.version[:3]'`]
40 AC_SUBST(PYTHON_VERSION)
41
42 AC_CHECK_LIB([pthread], [pthread_create],,
43         AC_MSG_ERROR([pthread library not found]))
44 AC_CHECK_LIB([bluetooth], [hci_devid],,
45         AC_MSG_ERROR([bluetooth library not found]))
46 AC_CHECK_LIB([dl], [dlopen],,
47         AC_MSG_ERROR([dl lib not found]))
48 #AC_CHECK_LIB([rt], [clock_gettime],,
49 #       AC_MSG_ERROR([rt lib not found]))
50
51 AC_HEADER_STDC
52 AC_CHECK_HEADER([stdint.h],,
53         AC_MSG_ERROR([stdint.h not found]))
54 AC_CHECK_HEADER([bluetooth/bluetooth.h],,
55         AC_MSG_ERROR([bluetooth/bluetooth.h not found]))
56 AC_CHECK_HEADERS([bluetooth/l2cap.h bluetooth/hci.h],,
57         AC_MSG_ERROR([bluetooth headers not found]),
58         [#include <bluetooth/bluetooth.h>])
59 AC_CHECK_HEADER([linux/input.h],,
60         AC_MSG_ERROR([linux/input.h not found]))
61 AC_CHECK_HEADER([linux/uinput.h],,
62         AC_MSG_ERROR([linux/uinput.h]),
63         [#include <linux/input.h>])
64
65 AC_ISC_POSIX
66
67 AC_ARG_WITH(cwiid-config-dir,AC_HELP_STRING([--with-cwiid-config-dir],
68         [CWiid configuration directory, default to $(sysconfdir)/cwiid]))
69 if test -z $with_cwiid_config_dir; then
70         CWIID_CONFIG_DIR='${sysconfdir}/cwiid'
71 else
72         CWIID_CONFIG_DIR=$with_cwiid_config_dir
73 fi
74 AC_SUBST(CWIID_CONFIG_DIR)
75
76 AC_ARG_WITH(cwiid-plugins-dir,AC_HELP_STRING([--with-cwiid-plugins-dir],
77         [CWiid plugins directory, default to $(libdir)/cwiid/plugins]))
78 if test -n $with_cwiid_plugins_dir; then
79         CWIID_PLUGINS_DIR='${libdir}/cwiid/plugins'
80 else
81         CWIID_PLUGINS_DIR=$with_cwiid_plugins_dir
82 fi
83 AC_SUBST(CWIID_PLUGINS_DIR)
84
85 AC_ARG_WITH(ldconfig,AC_HELP_STRING([--disable-ldconfig],
86         [don't execute ldconfig after install]))
87 if test "$enable_ldconfig" = "no"; then
88         LDCONFIG="#ldconfig"
89 else
90         LDCONFIG="ldconfig"
91 fi
92 AC_SUBST(LDCONFIG)
93
94 pkg_modules="gtk+-2.0 >= 2.0.0 gthread-2.0"
95 PKG_CHECK_MODULES([GTK], [$pkg_modules])
96 AC_SUBST(GTK_CFLAGS)
97 AC_SUBST(GTK_LIBS)
98
99 AC_OUTPUT(
100         [Makefile]
101         [defs.mak]
102         [common/include/lib.mak]
103         [doc/Makefile]
104         [man/Makefile]
105         [libcwiid/Makefile]
106         [wmdemo/Makefile]
107         [wmgui/Makefile]
108         [wminput/Makefile]
109         [wminput/plugins/Makefile]
110         [wminput/plugins/ir_ptr/Makefile]
111         [wminput/plugins/acc/Makefile]
112         [wminput/plugins/nunchuk_acc/Makefile]
113         [lswm/Makefile]
114         [python/Makefile]
115         )
116
Note: See TracBrowser for help on using the browser.