~ubuntu-branches/debian/sid/policykit-1-gnome/sid

« back to all changes in this revision

Viewing changes to .pc/0001-Revert-Drop-marshaller-complications.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-01-28 22:27:25 UTC
  • Revision ID: package-import@ubuntu.com-20120128222725-2nsqedmk9p96y9ge
Tags: 0.105-2
* Drop 0001-Revert-Drop-marshaller-complications.patch and add an explizit
  Build-Depends on libglib2.0-dev (>= 2.30) instead.
* Fix versioned Build-Depends on dpkg-dev.
  The buildflags.mk snippet was added in version 1.16.1, not 1.6.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT([polkit-gnome],[0.105],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome])
2
 
 
3
 
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
4
 
 
5
 
AC_CONFIG_SRCDIR([src])
6
 
AC_CONFIG_HEADERS([config.h])
7
 
AC_CONFIG_MACRO_DIR([m4])
8
 
 
9
 
AM_MAINTAINER_MODE([enable])
10
 
 
11
 
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
12
 
 
13
 
# libtool versioning - this applies to all libraries in this package
14
 
#
15
 
# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
16
 
#
17
 
LT_CURRENT=0
18
 
LT_REVISION=0
19
 
LT_AGE=0
20
 
AC_SUBST(LT_CURRENT)
21
 
AC_SUBST(LT_REVISION)
22
 
AC_SUBST(LT_AGE)
23
 
 
24
 
# Check for programs
25
 
AC_PROG_CC
26
 
AC_HEADER_STDC
27
 
 
28
 
# Initialize libtool
29
 
LT_PREREQ([2.2.6])
30
 
LT_INIT
31
 
 
32
 
# *****
33
 
# GNOME
34
 
# *****
35
 
 
36
 
GNOME_DEBUG_CHECK
37
 
GNOME_COMPILE_WARNINGS([maximum])
38
 
 
39
 
#### gcc warning flags
40
 
 
41
 
if test "x$GCC" = "xyes"; then
42
 
  changequote(,)dnl
43
 
  case " $CFLAGS " in
44
 
  *[\ \ ]-Wall[\ \      ]*) ;;
45
 
  *) CFLAGS="$CFLAGS -Wall" ;;
46
 
  esac
47
 
 
48
 
  case " $CFLAGS " in
49
 
  *[\ \ ]-Wchar-subscripts[\ \  ]*) ;;
50
 
  *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
51
 
  esac
52
 
 
53
 
  case " $CFLAGS " in
54
 
  *[\ \ ]-Wmissing-declarations[\ \     ]*) ;;
55
 
  *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
56
 
  esac
57
 
 
58
 
  case " $CFLAGS " in
59
 
  *[\ \ ]-Wnested-externs[\ \   ]*) ;;
60
 
  *) CFLAGS="$CFLAGS -Wnested-externs" ;;
61
 
  esac
62
 
 
63
 
  case " $CFLAGS " in
64
 
  *[\ \ ]-Wpointer-arith[\ \    ]*) ;;
65
 
  *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
66
 
  esac
67
 
 
68
 
  case " $CFLAGS " in
69
 
  *[\ \ ]-Wcast-align[\ \       ]*) ;;
70
 
  *) CFLAGS="$CFLAGS -Wcast-align" ;;
71
 
  esac
72
 
 
73
 
  case " $CFLAGS " in
74
 
  *[\ \ ]-Wsign-compare[\ \     ]*) ;;
75
 
  *) CFLAGS="$CFLAGS -Wsign-compare" ;;
76
 
  esac
77
 
 
78
 
  if test "x$enable_ansi" = "xyes"; then
79
 
    case " $CFLAGS " in
80
 
    *[\ \       ]-ansi[\ \      ]*) ;;
81
 
    *) CFLAGS="$CFLAGS -ansi" ;;
82
 
    esac
83
 
 
84
 
    case " $CFLAGS " in
85
 
    *[\ \       ]-D_POSIX_C_SOURCE*) ;;
86
 
    *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
87
 
    esac
88
 
 
89
 
    case " $CFLAGS " in
90
 
    *[\ \       ]-D_BSD_SOURCE[\ \      ]*) ;;
91
 
    *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
92
 
    esac
93
 
 
94
 
    case " $CFLAGS " in
95
 
    *[\ \       ]-pedantic[\ \  ]*) ;;
96
 
    *) CFLAGS="$CFLAGS -pedantic" ;;
97
 
    esac
98
 
  fi
99
 
  if test x$enable_gcov = xyes; then
100
 
    case " $CFLAGS " in
101
 
    *[\ \       ]-fprofile-arcs[\ \     ]*) ;;
102
 
    *) CFLAGS="$CFLAGS -fprofile-arcs" ;;
103
 
    esac
104
 
    case " $CFLAGS " in
105
 
    *[\ \       ]-ftest-coverage[\ \    ]*) ;;
106
 
    *) CFLAGS="$CFLAGS -ftest-coverage" ;;
107
 
    esac
108
 
 
109
 
    ## remove optimization
110
 
    CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'`
111
 
  fi
112
 
  changequote([,])dnl
113
 
else
114
 
  if test x$enable_gcov = xyes; then
115
 
    AC_MSG_ERROR([--enable-gcov can only be used with gcc])
116
 
  fi
117
 
fi
118
 
 
119
 
# ***************************
120
 
# Check for required packages
121
 
# ***************************
122
 
 
123
 
POLKIT_AGENT_REQUIRED=0.97
124
 
POLKIT_GOBJECT_REQUIRED=0.97
125
 
GTK_REQUIRED=3.0.0
126
 
GLIB_REQUIRED=2.30
127
 
 
128
 
PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED)
129
 
AC_SUBST(GTK_CFLAGS)
130
 
AC_SUBST(GTK_LIBS)
131
 
 
132
 
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
133
 
AC_SUBST(GLIB_CFLAGS)
134
 
AC_SUBST(GLIB_LIBS)
135
 
 
136
 
PKG_CHECK_MODULES(POLKIT_AGENT, polkit-agent-1 >= $POLKIT_AGENT_REQUIRED)
137
 
AC_SUBST(POLKIT_AGENT_CFLAGS)
138
 
AC_SUBST(POLKIT_AGENT_LIBS)
139
 
 
140
 
PKG_CHECK_MODULES(POLKIT_GOBJECT, polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED)
141
 
AC_SUBST(POLKIT_GOBJECT_CFLAGS)
142
 
AC_SUBST(POLKIT_GOBJECT_LIBS)
143
 
 
144
 
# ********************
145
 
# Internationalisation
146
 
# ********************
147
 
 
148
 
IT_PROG_INTLTOOL([0.35.0])
149
 
 
150
 
GETTEXT_PACKAGE=polkit-gnome-1
151
 
AC_SUBST([GETTEXT_PACKAGE])
152
 
AM_GLIB_GNU_GETTEXT
153
 
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
154
 
 
155
 
# *************************************
156
 
# *************************************
157
 
 
158
 
AC_SUBST([AM_CPPFLAGS])
159
 
AC_SUBST([AM_CFLAGS])
160
 
AC_SUBST([AM_CXXFLAGS])
161
 
AC_SUBST([AM_LDFLAGS])
162
 
 
163
 
AC_CONFIG_FILES([
164
 
Makefile
165
 
po/Makefile.in
166
 
src/Makefile
167
 
])
168
 
 
169
 
AC_OUTPUT
170
 
 
171
 
echo "
172
 
                  polkit-gnome $VERSION
173
 
                =======================
174
 
 
175
 
        prefix:                     ${prefix}
176
 
        libdir:                     ${libdir}
177
 
        libexecdir:                 ${libexecdir}
178
 
        bindir:                     ${bindir}
179
 
        sbindir:                    ${sbindir}
180
 
        datadir:                    ${datadir}
181
 
        sysconfdir:                 ${sysconfdir}
182
 
        localstatedir:              ${localstatedir}
183
 
 
184
 
        compiler:                   ${CC}
185
 
        cflags:                     ${CFLAGS}
186
 
        cppflags:                   ${CPPFLAGS}
187
 
 
188
 
        Maintainer mode:            ${USE_MAINTAINER_MODE}
189
 
"