-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfigure.ac
56 lines (42 loc) · 1.27 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
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_PREREQ([2.69])
AC_INIT(gSTM, [1.3.7], [[email protected]])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([src/config.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_MACRO_DIRS([m4])
AC_PROG_CC
PKG_CHECK_MODULES(GTK3, [gtk+-3.0 >= 3.22])
PKG_CHECK_MODULES(XML, [libxml-2.0])
#PKG_CHECK_MODULES(APPINDICATOR, [appindicator3-0.1])
a=0
AC_CHECK_LIB(ayatana-appindicator3, app_indicator_new, [a=1])
if test $a == 1
then
APPINDICATOR_CFLAGS="-I/usr/include/libayatana-appindicator3-0.1"
APPINDICATOR_LIBS="-layatana-appindicator3"
AC_DEFINE([AYATANA],[],[Use libayatana-appindicator rather than libappindicator.])
else
AC_CHECK_LIB(appindicator3, app_indicator_new,[a=1])
if test $a == 1
then
APPINDICATOR_CFLAGS="-I/usr/include/libappindicator3-0.1"
APPINDICATOR_LIBS="-lappindicator3"
fi
fi
if test $1 == 0
then
AC_MSG_ERROR([An appindicator library is required. Install either libappindicator or libayatana-appindicator.])
fi
AC_SUBST([APPINDICATOR_CFLAGS])
AC_SUBST([APPINDICATOR_LIBS])
AC_CONFIG_FILES([
Makefile
src/Makefile
pixmaps/Makefile
gAskpass/Makefile
gstm.spec
])
AC_OUTPUT