forked from cr33dog/pyxfce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
95 lines (67 loc) · 2.42 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
88
89
90
91
92
93
94
95
-*- mode: m4 -*-
AC_PREREQ(2.52)
AC_CONFIG_MACRO_DIR([m4])
ACLOCAL_AMFLAGS = -I m4
m4_define(pyxfce_major_version, 4)
m4_define(pyxfce_minor_version, 4)
m4_define(pyxfce_micro_version, 0)
m4_define(pyxfce_version, pyxfce_major_version.pyxfce_minor_version.pyxfce_micro_version)
m4_define(xfce_required_version, 4.4.0)
AC_INIT(pyxfce, pyxfce_version, [])
AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE(PYXFCE_MAJOR_VERSION, pyxfce_major_version, [pyxfce major version])
AC_DEFINE(PYXFCE_MINOR_VERSION, pyxfce_minor_version, [pyxfce minor version])
AC_DEFINE(PYXFCE_MICRO_VERSION, pyxfce_micro_version, [pyxfce micro version])
dnl AC_xCONFIG_SRCDIR([])
dnl AC_xCONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
AC_CHECK_FUNCS(bind_textdomain_codeset)
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AM_PATH_PYTHON(2.3)
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
dnl get rid of the -export-dynamic stuff from the configure flags ...
export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
BM_DEPEND([XFCE4_UTIL], [libxfce4util-1.0], [4.1.0])
BM_DEPEND([XFCE4_XFCONF], [libxfconf-0], [4.6.2])
BM_DEPEND([XFCE4_UI], [libxfce4ui-1], [4.7.5])
BM_DEPEND([XFCE4_MENU], [libxfce4menu-0.1], [4.6.1])
dnl new panel
dnl HAVE_MIGHTY_MOUSE
BM_DEPEND_CHECK([MIGHTY_MOUSE], [libxfce4panel-1.0], [4.7.6], [mighty-mouse], [the new panel], [yes])
dnl AM_CONDITIONAL([HAVE_MIGHTY_MOUSE], [test x"$ac_cv_MIGHTY_MOUSE_check" = x"yes"])
AM_CONDITIONAL([HAVE_MIGHTY_MOUSE], [test ! -z "$MIGHTY_MOUSE_FOUND" ])
dnl XFCE_MIGHTY_MOUSE_PANEL_PLUGIN([PANEL], [4.3])
dnl PANEL_EXTERNALPLUGINDIR
dnl PANEL_DESKTOPDATADIR
BM_DEPEND([GTK], [gtk+-2.0], [2.4])
BM_DEPEND([PYGTK], [pygtk-2.0], [2.6.0])
BM_DEBUG_SUPPORT
AC_C_CONST
PYGTK_CODEGEN_DEFINES=""
dnl add required cflags ...
JH_ADD_CFLAG([-Wall])
JH_ADD_CFLAG([-std=c9x])
JH_ADD_CFLAG([-fno-strict-aliasing])
dnl AC_DEFINE([CODEGEN_PATH], [/usr/share/pygtk/2.0/codegen], [codegen executeable directory])
AC_MSG_CHECKING([for codegen executeable directory])
CODEGEN_PATH="`pkg-config --variable=codegendir pygtk-2.0`"
AC_MSG_RESULT([$CODEGEN_PATH])
AC_SUBST([CODEGEN_PATH])
dnl pygtk-2.0.pc
dnl codegen/Makefile
AC_CONFIG_FILES(
Makefile
pyxfce-1.0.pc
ui/Makefile
panel/Makefile
util/Makefile
xfconf/Makefile
menu/Makefile
)
AC_OUTPUT