~ubuntu-branches/ubuntu/warty/zenity/warty

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-10-12 01:48:22 UTC
  • Revision ID: james.westby@ubuntu.com-20041012014822-89rmdkuj434ynu0n
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_PREREQ(2.53)
 
2
AC_INIT(src)
 
3
AM_CONFIG_HEADER(config.h)
 
4
AM_INIT_AUTOMAKE(zenity, 2.8.1)
 
5
 
 
6
AM_MAINTAINER_MODE
 
7
 
 
8
AC_PROG_INTLTOOL([0.29])
 
9
 
 
10
AC_PROG_CC
 
11
 
 
12
GTK_REQUIRED=2.3.1
 
13
 
 
14
PKG_CHECK_MODULES(ZENITY, gtk+-2.0 >= $GTK_REQUIRED libglade-2.0 libgnomecanvas-2.0)
 
15
AC_SUBST(ZENITY_CFLAGS)
 
16
AC_SUBST(ZENITY_LIBS)
 
17
 
 
18
AC_CHECK_LIB(popt, poptHelpOptions,, AC_MSG_ERROR([popt is required to build script.]))
 
19
 
 
20
dnl ***********************************************
 
21
dnl scrollkeeper checks
 
22
dnl ***********************************************
 
23
 
 
24
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
 
25
if test x$SCROLLKEEPER_CONFIG = xno; then
 
26
        AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package)
 
27
fi
 
28
 
 
29
dnl ***********************************************
 
30
dnl X development libraries check
 
31
dnl ***********************************************
 
32
                                                                                                                                                             
 
33
#
 
34
# If Pango included the shared library dependencies from X11 in
 
35
# the pkg-config output, then we use that (to avoid duplicates).
 
36
# but if they were omitted to avoid binary compatibility problems
 
37
# then we need to repeat the checks.
 
38
#
 
39
if $PKG_CONFIG --exists pangoxft ; then
 
40
  PANGO_PACKAGES="pangox pangoxft"
 
41
else
 
42
  PANGO_PACKAGES="pangox"
 
43
fi
 
44
                                                                                                                                                             
 
45
x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
 
46
case x_libs in
 
47
  *-lX11*) pango_omitted_x_deps=no ;;
 
48
  *)       pango_omitted_x_deps=yes ;;
 
49
esac
 
50
                                                                                                                                                             
 
51
if test $pango_omitted_x_deps = yes ; then
 
52
  AC_PATH_XTRA
 
53
                                                                                                                                                             
 
54
  if test x$no_x = xyes ; then
 
55
    AC_MSG_ERROR([X development libraries not found])
 
56
  else
 
57
    X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
 
58
  fi
 
59
fi
 
60
                                                                                                                                                             
 
61
AC_SUBST(X_LIBS)
 
62
 
 
63
dnl *******************************
 
64
dnl perl check
 
65
dnl *******************************
 
66
 
 
67
AC_PATH_PROG(PERL,perl,)
 
68
 
 
69
dnl *******************************
 
70
dnl Internationalization
 
71
dnl ******************************* 
 
72
 
 
73
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu hi hr hu id is it ja kn ko lt mi mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi zh_CN zh_TW"
 
74
GETTEXT_PACKAGE=zenity-0.1
 
75
AC_SUBST(GETTEXT_PACKAGE)
 
76
AM_GLIB_GNU_GETTEXT
 
77
 
 
78
dnl **************************************************************
 
79
dnl AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
 
80
dnl this is the directory where the *.{mo,gmo} files are installed
 
81
dnl **************************************************************
 
82
 
 
83
zenitylocaledir='${prefix}/${DATADIRNAME}/locale'
 
84
AC_SUBST(zenitylocaledir)
 
85
 
 
86
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Finding gettext package])
 
87
 
 
88
AC_DEFINE_UNQUOTED(GNOME_ICONDIR, "${prefix}/share/pixmaps", [Determining icon location])
 
89
 
 
90
AC_OUTPUT([
 
91
Makefile 
 
92
zenity.spec
 
93
po/Makefile.in
 
94
src/Makefile
 
95
src/gdialog
 
96
data/Makefile
 
97
help/Makefile
 
98
help/C/Makefile
 
99
help/sr/Makefile
 
100
])