File: configure.ac

package info (click to toggle)
curtain 0.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,212 kB
  • sloc: sh: 11,552; ansic: 658; makefile: 127
file content (105 lines) | stat: -rw-r--r-- 2,105 bytes parent folder | download
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
96
97
98
99
100
101
102
103
104
105
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.54)

m4_define([curtain_version], [0.3])
m4_define([gtk_required_version], [2.99.3])

AC_INIT([curtain], [curtain_version],
	http://code.google.com/p/ardesia/issues/list,
	[curtain])

AC_PREFIX_DEFAULT(/usr)
AC_CONFIG_SRCDIR([src/curtain.c])
AC_CONFIG_MACRO_DIR([m4macros])

AM_INIT_AUTOMAKE(no-define dist-bzip2)
AM_CONFIG_HEADER(config.h)

# Enable silent build rules by default, requires at least
# Automake-1.11. Disable by either passing --disable-silent-rules to
# configure or passing V=1 to make
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

# gettext i18n support
GETTEXT_PACKAGE=curtain
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
                   [The prefix for our gettext translation domains.])

# Determine a C compiler to use
AC_PROG_CC
AM_PROG_CC_C_O

# Initialize libtool
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL

AM_PROG_AS

# Initialize maintainer mode
AM_MAINTAINER_MODE

# Honor aclocal flags
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"


# Check for pkg-config
PKG_PROG_PKG_CONFIG(0.16)

#################
# Check for Win32
#################
case "$host" in
  *-*-mingw*|*-*-cygwin*)
    platform_win32=yes
    ;;
  *)
    platform_win32=no
    ;;
esac

######################
# Internationalisation
######################

IT_PROG_INTLTOOL([0.35.0],[no-xml])
AM_GLIB_GNU_GETTEXT

AM_PROG_LIBTOOL

#######
# Gtk 3
#######
AM_PATH_GTK_3_0(gtk_required_version, :,
  AC_MSG_ERROR(Test for GTK3+ failed. See the file 'INSTALL' for help.),
  gthread)


AC_MSG_CHECKING([if GTK+ is version 2.99.3 or newer])
if $PKG_CONFIG --atleast-version=2.99.3 gtk+-3.0; then
  have_gtk3=yes
else
  have_gtk3=no
fi

AC_MSG_RESULT($have_gtk_3)

AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = yes)

PKG_CHECK_MODULES(curtain, [gtk+-3.0])

AC_CHECK_PROGS(XDG_UTILS, [xdg-desktop-menu], [])

AC_CONFIG_FILES([
Makefile
po/Makefile.in
docs/curtain.1
docs/Makefile
src/Makefile
desktop/Makefile
])

AC_OUTPUT