~ubuntu-branches/debian/jessie/libbonoboui/jessie

« back to all changes in this revision

Viewing changes to .pc/01_dont_check_for_pangox.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2013-12-29 15:10:19 UTC
  • mfrom: (1.2.5) (6.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20131229151019-nhf3wo82d4jtk7jk
Tags: 2.24.5-2
* Add missing build-dependency on gtk-doc-tools.
* Fix copyright file. Closes: #733487.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
m4_define([bonobo_major_version],[2])
 
2
m4_define([bonobo_minor_version],[24])
 
3
m4_define([bonobo_micro_version],[5])
 
4
m4_define([bonobo_version],[bonobo_major_version.bonobo_minor_version.bonobo_micro_version])
 
5
 
 
6
AC_INIT([libbonoboui],[bonobo_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=bonobo&component=libbonoboui])
 
7
 
 
8
AC_CONFIG_HEADERS([config.h])
 
9
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
 
10
 
 
11
AM_MAINTAINER_MODE
 
12
 
 
13
AC_CANONICAL_HOST
 
14
 
 
15
case "$host" in
 
16
  *-*-mingw*)
 
17
    os_win32=yes
 
18
    ;;
 
19
  *)
 
20
    os_win32=no
 
21
    ;;
 
22
esac
 
23
 
 
24
if test "$os_win32" = "yes"; then
 
25
  if test x$enable_static = xyes -o x$enable_static = x; then
 
26
    AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
 
27
    enable_static=no
 
28
  fi
 
29
  if test x$enable_shared = xno; then
 
30
    AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
 
31
  fi
 
32
  enable_shared=yes
 
33
fi
 
34
 
 
35
AC_ISC_POSIX
 
36
AC_PROG_CC
 
37
AC_STDC_HEADERS
 
38
AC_LIBTOOL_WIN32_DLL
 
39
AM_PROG_LIBTOOL
 
40
AC_PROG_YACC
 
41
AC_PATH_PROGS(PATH_TO_XRDB, "xrdb")
 
42
 
 
43
GNOME_COMMON_INIT
 
44
GNOME_DEBUG_CHECK
 
45
GNOME_COMPILE_WARNINGS([maximum])
 
46
 
 
47
# see bug #455597
 
48
# GNOME_MAINTAINER_MODE_DEFINES
 
49
 
 
50
IT_PROG_INTLTOOL([0.40.0])
 
51
 
 
52
GETTEXT_PACKAGE=libbonoboui-2.0
 
53
AC_SUBST(GETTEXT_PACKAGE)
 
54
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext domain])
 
55
 
 
56
AM_GLIB_GNU_GETTEXT
 
57
 
 
58
AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
 
59
if test x$PKG_CONFIG = xno; then
 
60
  AC_MSG_ERROR([Couldn't find pkg-config, please install it and retry])
 
61
fi
 
62
 
 
63
gtk_target="`$PKG_CONFIG --variable=target gtk+-2.0`"
 
64
 
 
65
if test $gtk_target = x11 ; then
 
66
  dnl X development libraries check
 
67
 
 
68
  #
 
69
  # If Pango included the shared library dependencies from X11 in
 
70
  # the pkg-config output, then we use that (to avoid duplicates).
 
71
  # but if they were omitted to avoid binary compatibility problems
 
72
  # then we need to repeat the checks.
 
73
  #
 
74
  if $PKG_CONFIG --exists pangoxft ; then
 
75
    PANGO_PACKAGES="pangox pangoxft"
 
76
  else
 
77
    PANGO_PACKAGES="pangox"
 
78
  fi
 
79
 
 
80
  x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
 
81
  case x_libs in
 
82
    *-lX11*) pango_omitted_x_deps=no ;;
 
83
    *)       pango_omitted_x_deps=yes ;;
 
84
  esac
 
85
 
 
86
  if test $pango_omitted_x_deps = yes ; then
 
87
    AC_PATH_XTRA
 
88
 
 
89
    if test x$no_x = xyes ; then
 
90
      AC_MSG_ERROR([X development libraries not found])
 
91
    else
 
92
      X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
 
93
    fi
 
94
  fi
 
95
fi
 
96
 
 
97
AC_SUBST(X_LIBS)
 
98
 
 
99
# popt
 
100
AC_CHECK_LIB(popt, poptStrippedArgv, POPT_LIBS=-lpopt, AC_MSG_ERROR([You must have popt version 1.5 or greater installed.]))
 
101
AC_SUBST(POPT_LIBS)
 
102
AC_CHECK_HEADER(popt.h,,AC_MSG_ERROR([Failed to find popt.h - you may have to adjust your environment]))
 
103
 
 
104
dnl
 
105
dnl Start of pkg-config checks
 
106
dnl
 
107
BONOBOUI_MODULES="libgnomecanvas-2.0 >= 1.116.0 \
 
108
                  libbonobo-2.0 >= 2.13.0 \
 
109
                  libgnome-2.0 >= 2.13.7 \
 
110
                  bonobo-activation-2.0 >= 2.13.0 \
 
111
                  libxml-2.0 >= 2.4.20 \
 
112
                  gconf-2.0 >= 1.1.9 \
 
113
                  gtk+-2.0 >= 2.6.0 \
 
114
                  gobject-2.0 >= 2.6.0"
 
115
PKG_CHECK_MODULES(BONOBOUI, $BONOBOUI_MODULES)
 
116
AC_SUBST(BONOBOUI_CFLAGS)
 
117
AC_SUBST(BONOBOUI_LIBS)
 
118
 
 
119
AC_MSG_CHECKING([for broken, old development packages])
 
120
if $PKG_CONFIG --exists gdk_pixbuf; then
 
121
        if $PKG_CONFIG --modversion 'gdk_pixbuf >= 0.12'; then
 
122
                AC_MSG_RESULT([parallel install ok]);
 
123
        else
 
124
                AC_ERROR([If you have gdk-pixbuf you need at least ver 0.12]);
 
125
        fi
 
126
else
 
127
        AC_MSG_RESULT([clean])
 
128
fi;
 
129
 
 
130
PKG_CHECK_MODULES(BONOBOUI_GLADE, $BONOBOUI_MODULES libglade-2.0 >= 1.99.11)
 
131
AC_SUBST(BONOBOUI_GLADE_CFLAGS)
 
132
AC_SUBST(BONOBOUI_GLADE_LIBS)
 
133
 
 
134
if test "$enable_maintainer_mode" = "yes"; then
 
135
        BONOBOUI_SINGLE_INCLUDES="-DGTK_DISABLE_SINGLE_INCLUDES -DG_DISABLE_SINGLE_INCLUDES"
 
136
        AC_SUBST(BONOBOUI_SINGLE_INCLUDES)
 
137
fi
 
138
 
 
139
# glib-genmarshal
 
140
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
 
141
# glib-mkenums
 
142
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
 
143
 
 
144
GTK_DOC_CHECK([1.0])
 
145
 
 
146
AC_CONFIG_FILES([
 
147
Makefile
 
148
libbonoboui-zip
 
149
po/Makefile.in
 
150
bonobo/Makefile
 
151
bonobo/libbonoboui-2.0.pc
 
152
bonobo/libbonoboui-2.0-uninstalled.pc
 
153
glade/Makefile
 
154
samples/Makefile
 
155
samples/controls/Makefile
 
156
samples/bonoboui/Makefile
 
157
samples/container/Makefile
 
158
samples/compound-doc/Makefile
 
159
samples/compound-doc/container/Makefile
 
160
samples/canvdemo/Makefile
 
161
tests/Makefile
 
162
tests/control/Makefile
 
163
tools/Makefile
 
164
tools/browser/Makefile
 
165
doc/Makefile
 
166
doc/api/Makefile
 
167
doc/api/figures/Makefile
 
168
])
 
169
 
 
170
AC_OUTPUT