~ubuntu-branches/ubuntu/dapper/file-roller/dapper-updates

1 by Bastien Nocera
Import upstream version 0.8
1
dnl Process this file with autoconf to produce a configure script.
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
2
3
AC_PREREQ(2.52)
1 by Bastien Nocera
Import upstream version 0.8
4
 
1.2.12 by Sebastien Bacher
Import upstream version 2.14.4
5
AC_INIT(file-roller, 2.14.4)
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
6
AC_CONFIG_SRCDIR(src/main.c)
7
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
1 by Bastien Nocera
Import upstream version 0.8
8
AM_CONFIG_HEADER(config.h)
9
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
10
AM_PROG_LIBTOOL
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
11
12
GNOME_DOC_INIT
1 by Bastien Nocera
Import upstream version 0.8
13
14
dnl ==========================================================================
15
dnl
16
dnl If you add a version number here, you *must* add an AC_SUBST line for
17
dnl it too, or it will never make it into the spec file!
18
dnl
19
dnl ==========================================================================
20
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
21
GLIB_REQUIRED=2.6.0
1.2.9 by Daniel Holbach
Import upstream version 2.14.1
22
GTK_REQUIRED=2.8.0
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
23
LIBGNOME_REQUIRED=2.6.0
24
LIBGNOMEUI_REQUIRED=2.6.0
25
GNOME_VFS_REQUIRED=2.9.0
26
LIBGLADE_REQUIRED=2.4.0
27
NAUTILUS_REQUIRED=2.9.0
1 by Bastien Nocera
Import upstream version 0.8
28
29
AC_SUBST(GLIB_REQUIRED)
30
AC_SUBST(GTK_REQUIRED)
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
31
AC_SUBST(LIBGNOME_REQUIRED)
32
AC_SUBST(LIBGNOMEUI_REQUIRED)
1 by Bastien Nocera
Import upstream version 0.8
33
AC_SUBST(GNOME_VFS_REQUIRED)
34
AC_SUBST(LIBGLADE_REQUIRED)
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
35
AC_SUBST(NAUTILUS_REQUIRED)
1 by Bastien Nocera
Import upstream version 0.8
36
37
dnl ===========================================================================
38
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
39
PKG_CHECK_MODULES(FR,					\
40
	glib-2.0 >= $GLIB_REQUIRED			\
41
	gthread-2.0					\
42
	gtk+-2.0 >= $GTK_REQUIRED			\
43
	libgnome-2.0 >= $LIBGNOME_REQUIRED		\
44
	libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED		\
45
	gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED		\
46
	gnome-vfs-module-2.0				\
1.2.2 by Sebastien Bacher
Import upstream version 2.13.2
47
	libglade-2.0 >= $LIBGLADE_REQUIRED)
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
48
AC_SUBST(FR_CFLAGS)
1 by Bastien Nocera
Import upstream version 0.8
49
AC_SUBST(FR_LIBS)
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
50
1.2.2 by Sebastien Bacher
Import upstream version 2.13.2
51
52
NAUTILUS_CFLAGS=""
53
NAUTILUS_LIBS=""
54
build_nautilus_actions=no
55
AC_ARG_ENABLE(nautilus_actions, AC_HELP_STRING([--disable-nautilus-actions],[dont't build the nautilus context menu actions]))
56
57
if test x"$enable_nautilus_actions" != xno; then
58
	if pkg-config --atleast-version=$NAUTILUS_REQUIRED libnautilus-extension; then
59
		NAUTILUS_CFLAGS=`pkg-config --cflags libnautilus-extension glib-2.0`
60
		NAUTILUS_LIBS=`pkg-config --libs libnautilus-extension glib-2.0`
61
		build_nautilus_actions=yes
62
	fi
63
fi
64
AM_CONDITIONAL(ENABLE_NAUTILUS_ACTIONS, test "x$build_nautilus_actions" = xyes)
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
65
AC_SUBST(NAUTILUS_CFLAGS)
66
AC_SUBST(NAUTILUS_LIBS)
67
68
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
69
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
70
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
71
dnl Checks for mkdtemp function
72
73
mkdtemp_missing=false
74
AC_CHECK_FUNC(mkdtemp,
75
    [AC_DEFINE([HAVE_MKDTEMP], 1, [Have GlibC function to make temp dirs])],
76
    mkdtemp_missing=true)
77
AM_CONDITIONAL(MKDTEMP_MISSING, test x$mkdtemp_missing = xtrue)
78
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
79
dnl ******************************
80
81
GETTEXT_PACKAGE=file-roller
82
AC_SUBST(GETTEXT_PACKAGE)
83
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GetText Package])
84
85
AM_GLIB_GNU_GETTEXT
1.2.11 by Daniel Holbach
Import upstream version 2.14.3
86
IT_PROG_INTLTOOL([0.34.90])
1 by Bastien Nocera
Import upstream version 0.8
87
88
if test "x${prefix}" = "xNONE"; then
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
89
  AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Locale dir])
1 by Bastien Nocera
Import upstream version 0.8
90
else
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
91
  AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Locale dir])
92
fi
93
94
dnl ******************************
95
96
AC_ARG_ENABLE(deprecations,AC_HELP_STRING([--enable-deprecations],[warn about deprecated usages]))
97
98
AM_CONDITIONAL(ENABLE_DEPRECATIONS, test "x$enable_deprecations" = xyes)
99
100
dnl ******************************
101
102
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
103
if test x"$GCONFTOOL" = xno; then
104
	AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
105
fi
106
AM_GCONF_SOURCE_2
107
108
dnl ******************************
1 by Bastien Nocera
Import upstream version 0.8
109
110
AC_OUTPUT([
111
Makefile
112
file-roller.spec
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
113
data/Makefile
114
data/glade/Makefile
1 by Bastien Nocera
Import upstream version 0.8
115
src/Makefile
1.1.1 by Sebastien Bacher
Import upstream version 2.8.4
116
src/icons/Makefile
117
src/recent-files/Makefile
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
118
nautilus/Makefile
119
help/Makefile
1 by Bastien Nocera
Import upstream version 0.8
120
po/Makefile.in
121
])
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
122
123
echo "
124
125
Configuration:
126
127
        Source code location:   ${srcdir}
128
        Compiler:               ${CC}
129
        Internal mkdtemp:       ${mkdtemp_missing}
1.2.2 by Sebastien Bacher
Import upstream version 2.13.2
130
	Nautilus support: 	${build_nautilus_actions}
1.2.1 by Daniel Holbach
Import upstream version 2.12.1
131
"