forked from mono/gtk-sharp-beans
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.ac
More file actions
58 lines (47 loc) · 1.47 KB
/
Copy pathconfigure.ac
File metadata and controls
58 lines (47 loc) · 1.47 KB
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gtk-sharp-beans, 2.14.1, stephane@delcroix.org)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(AssemblyInfo.cs.in)
AM_INIT_AUTOMAKE([dist-bzip2 tar-ustar])
PACKAGE_VERSION=gtk-sharp-beans-2.0
AC_SUBST(PACKAGE_VERSION)
AC_PATH_PROG(CSC, gmcs)
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
AC_MSG_ERROR([No gacutil tool found, You need to install either the mono or .Net SDL.])
fi
GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib'
AC_SUBST(GACUTIL)
AC_SUBST(GACUTIL_FLAGS)
PKG_CHECK_MODULES(GTKSHARP, gtk-sharp-2.0 >= 2.12)
PKG_CHECK_MODULES(GLIBSHARP, glib-sharp-2.0 >= 2.12)
PKG_CHECK_MODULES(GIOSHARP, gio-sharp-2.0 >= 2.18)
PKG_CHECK_MODULES(GAPI, gapi-2.0 >= 2.12.0)
asms="`$PKG_CONFIG --variable=Libraries gio-sharp-2.0`"
for asm in $asms; do
GIOSHARP_ASSEMBLIES="$GIOSHARP_ASSEMBLIES $asm"
[[ -r "$asm.mdb" ]] && GIOSHARP_ASSEMBLIES="$GIOSHARP_ASSEMBLIES $asm.mdb"
[[ -r "$asm.config" ]] && GIOSHARP_ASSEMBLIES="$GIOSHARP_ASSEMBLIES $asm.config"
done
AC_SUBST(GIOSHARP_ASSEMBLIES)
CSC_DEFINES=""
if pkg-config --atleast-version=2.16 gtk+-2.0; then
CSC_DEFINES="$CSC_DEFINES -d:GTK_2_16"
fi
AC_SUBST(CSC_DEFINES)
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib
else
LIB_PREFIX=.so
LIB_SUFFIX=
fi
AC_SUBST(LIB_PREFIX)
AC_SUBST(LIB_SUFFIX)
AC_OUTPUT(
Makefile
sources/Makefile
gtk-sharp-beans-2.0.pc
gtk-sharp-beans.dll.config
AssemblyInfo.cs
)