File: configure.ac

package info (click to toggle)
gnome-keyring-sharp 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 764 kB
  • ctags: 318
  • sloc: sh: 3,356; xml: 1,151; cs: 894; makefile: 119; ansic: 29
file content (93 lines) | stat: -rw-r--r-- 2,033 bytes parent folder | download | duplicates (3)
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
dnl configure.ac for Mono.Google library
AC_PREREQ(2.57)
AC_INIT(src/Gnome.Keyring/Ring.cs)
AC_CANONICAL_SYSTEM

AC_PROG_CC
AC_PROG_LIBTOOL

API_VERSION=1.0
VERSION=$API_VERSION.0

AC_SUBST(API_VERSION)
AC_SUBST(VERSION)

AM_INIT_AUTOMAKE(gnome-keyring-sharp, $VERSION)
AM_MAINTAINER_MODE

AC_PROG_INSTALL

AC_PATH_PROG(CSC, csc, no)
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(MCS, mcs, no)
AC_PATH_PROG(RUNTIME, mono, no)
CS="C#"

if test "x$CSC" = "xno" ; then
	if test "x$GMCS" = "xno" ; then
		if test "x$MCS" = "xno" ; then
			AC_MSG_ERROR([No $CS compiler found])
		else
			CSC=$MCS
			ENABLE_DBUS="no"
		fi
	else
		CSC=$GMCS
	fi
fi

#
# The GAC tool
#

AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
	AC_MSG_ERROR([No gacutil tool found])
fi

AC_SUBST(GACUTIL)

GACUTIL_FLAGS='/gacdir $(DESTDIR)$(prefix)'
AC_SUBST(GACUTIL_FLAGS)

PKG_CHECK_MODULES(GLIB_SHARP, [glib-sharp-2.0])
PKG_CHECK_MODULES(GNOME_KEYRING, [gnome-keyring-1])

AC_SUBST(CSFLAGS)
AC_SUBST(GLIB_SHARP_LIBS)
AC_SUBST(GNOME_KEYRING_CFLAGS)
AC_SUBST(GNOME_KEYRING_LIBS)

AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
AC_PATH_PROG(MONODOCER, monodocer, no)
if test "x$MONODOCER" = "xno" -o "x$MDASSEMBLER" = "xno"; then
  enable_monodoc=no
  doc_sources_dir=
else
  enable_monodoc=yes
  doc_sources_dir="`pkg-config --variable=sourcesdir monodoc`"
fi

AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes")
AC_SUBST(CSC)
AC_SUBST(RUNTIME)
AC_SUBST(MDASSEMBLER)
AC_SUBST(MONODOCER)
AC_OUTPUT([
	Makefile
	src/Makefile
	src/gnome-keyring-sharp-1.0.pc
	src/Gnome.Keyring/Makefile
	src/Gnome.Keyring/AssemblyInfo.cs
	gnome-keyring-sharp-glue/Makefile
	docs/Makefile
	sample/Makefile
])

echo "   * $CS compiler: $CSC"
echo "   * Documentation build enabled: $enable_monodoc "
if test "x$enable_monodoc" = "xyes" -a "x$doc_sources_dir" != "x$prefix/lib/monodoc/sources"; then
  echo "      WARNING: The install prefix is different than the monodoc prefix."
  echo "               Monodoc will not be able to load the documentation."
fi