configure.ac 2.82 KB
Newer Older
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
1
# Process this file with autoconf to produce a configure script.
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
2

Jonh Wendell's avatar
Jonh Wendell committed
3
AC_INIT(vinagre, 2.23.91, http://www.gnome.org/projects/vinagre)
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
4
5
6
7
8
9
10
11
12
13
14
15

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE

dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
16
17
AM_PROG_LIBTOOL

18
GNOME_COMPILE_WARNINGS(yes)
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
19

Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
20
21
22
#*******************************************************************************
# Internationalization
#*******************************************************************************
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
23
24
25
26
27
28
29
GETTEXT_PACKAGE=vinagre
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])

IT_PROG_INTLTOOL([0.35.0])
AM_GLIB_GNU_GETTEXT

30
GNOME_DOC_INIT
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
31

Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
32
33
34
#*******************************************************************************
# Check required GNOME libraries
#*******************************************************************************
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
35

36
37
GLIB_REQUIRED=2.17.0
GTK_REQUIRED=2.13.1
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
38
39
LIBGLADE_REQUIRED=2.6.0
GCONF_REQUIRED=2.16.0
40
GTHREAD_REQUIRED=2.0.0
Jonh Wendell's avatar
Jonh Wendell committed
41
GTK_VNC_REQUIRED=0.3.6
42
AVAHI_REQUIRED=0.6.22
Jonh Wendell's avatar
Jonh Wendell committed
43
PANEL_REQUIRED_VERSION=2.0.0
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
44
45
46

PKG_CHECK_MODULES(VINAGRE, \ 
  glib-2.0 >= $GLIB_REQUIRED \
47
  gio-2.0 >= $GLIB_REQUIRED \
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
48
49
  gtk+-2.0 >= $GTK_REQUIRED \ 
  libglade-2.0 >= $LIBGLADE_REQUIRED \
Jonh Wendell S. Santana's avatar
Stuff    
Jonh Wendell S. Santana committed
50
  gconf-2.0 >= $GCONF_REQUIRED \
51
  gthread-2.0 >= $GTHREAD_REQUIRED \
52
  gnome-keyring-1 \
53
54
55
  gtk-vnc-1.0 >= $GTK_VNC_REQUIRED \
  avahi-ui >= $AVAHI_REQUIRED \
  avahi-gobject >= $AVAHI_REQUIRED)
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
56
57
58
AC_SUBST(VINAGRE_CFLAGS)
AC_SUBST(VINAGRE_LIBS)

Jonh Wendell's avatar
Jonh Wendell committed
59
60
61
62
63
PKG_CHECK_MODULES(APPLET, \ 
  libpanelapplet-2.0 >= $PANEL_REQUIRED_VERSION)
AC_SUBST(APPLET_CFLAGS)
AC_SUBST(APPLET_LIBS)

Jonh Wendell's avatar
Jonh Wendell committed
64
65
66
67
68
69
70
71
dnl ================================================================
dnl GConf related settings
dnl ================================================================

AC_PATH_PROG(GCONFTOOL, gconftool-2)
AM_GCONF_SOURCE_2


72
73
74
75
76
77
78
79
80
dnl define a MAINT-like variable REBUILD which is set
dnl if Perl, so autogenerated sources can be rebuilt
AC_PATH_PROGS(PERL, perl5 perl)
AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)
REBUILD=\#
if test "x$enable_rebuilds" = "xyes" && \
     test -n "$PERL" && \
     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
  REBUILD=
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
81
fi
82
AC_SUBST(REBUILD)
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
83

Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
84
85
#*******************************************************************************

Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
86
87
88
89
AC_OUTPUT([
Makefile
data/Makefile
data/vinagre.desktop.in
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
90
data/vinagre-file.desktop.in
91
data/icons/Makefile
92
help/Makefile
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
93
po/Makefile.in
94
src/Makefile
95
src/view/Makefile
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
96
])
Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
97
98
99
100

#*******************************************************************************

echo "
101
102
103

This is vinagre version AC_PACKAGE_VERSION

Jonh Wendell S. Santana's avatar
Jonh Wendell S. Santana committed
104
105
106
107
108
Configure summary:

	Compiler ...................:  ${CC} 
	Compiler Flags .............:  ${CFLAGS}
"