~ubuntu-branches/ubuntu/intrepid/gnomad2/intrepid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Manuel Garcia
  • Date: 2008-02-08 18:35:32 UTC
  • mfrom: (1.1.7 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080208183532-mgook399gmuo1gml
Tags: 2.9.1-1
New upstream release. Closes: #446812.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
2
AC_PREREQ(2.52)
3
 
AC_INIT(gnomad2, 2.8.12, http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470)
 
3
AC_INIT(gnomad2, 2.9.1, http://sourceforge.net/tracker/?func=add&group_id=65573&atid=511470)
4
4
AC_CONFIG_SRCDIR(src/gnomad2.c)
5
5
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
6
6
 
114
114
AC_SUBST(TAG_LIBS)
115
115
 
116
116
dnl --------------------------------------------------------------------------
 
117
dnl Check taglib library separately:
 
118
dnl first try to locate it using pkg-config, then fall back on using
 
119
dnl header files only.
 
120
dnl --------------------------------------------------------------------------
 
121
 
 
122
PKG_CHECK_MODULES(TAGLIB, taglib >= 1.4, found_taglib_pkg=yes, found_taglib_pkg=no)
 
123
TAGLIB_VER=`pkg-config --modversion taglib`
 
124
AC_CHECK_HEADER(taglib/tag_c.h, found_taglib_header=yes, found_taglib_header=no)
 
125
 
 
126
AC_ARG_WITH(taglib-prefix,
 
127
    [  --with-taglib-prefix=PFX   Prefix where taglib library is installed (optional)], taglib_prefix="$withval", taglib_prefix="")
 
128
 
 
129
if test x"$taglib_prefix" != "x"; then
 
130
   TAGLIB_LIBS="-L$taglib_prefix/lib -ltag_c"
 
131
   TAGLIB_CFLAGS="-I$taglib_prefix/include"
 
132
   have_taglib="yes"
 
133
   AC_DEFINE(HAVE_TAGLIB)
 
134
else
 
135
   if test x"$found_taglib_pkg" = "xno" ; then
 
136
      if test x"$found_taglib_header" = "xno" ; then
 
137
         AC_MSG_NOTICE([*** taglib was not found on your system. Deactivating Ogg/FLAC support! ***])
 
138
         TAGLIB_VER="NOT USED"
 
139
      else
 
140
         TAGLIB_VER=unknown
 
141
         TAGLIB_CFLAGS=""
 
142
         TAGLIB_LIBS="-ltag_c"
 
143
         have_taglib="yes"
 
144
         AC_DEFINE(HAVE_TAGLIB)
 
145
      fi
 
146
   else
 
147
      have_taglib="yes"
 
148
      dnl Override the package default which is only for C++
 
149
      TAGLIB_LIBS="-ltag_c"
 
150
      AC_DEFINE(HAVE_TAGLIB)
 
151
   fi
 
152
fi
 
153
AC_SUBST(TAGLIB_CFLAGS)
 
154
AC_SUBST(TAGLIB_LIBS)
 
155
AM_CONDITIONAL(TAGLIB_COMPILE, test x"$have_taglib" = "xyes" )
 
156
 
 
157
AC_ARG_WITH(taglib-only, [  --with-taglib-only   Use ONLY taglib to tag even MP3 files.], taglib_only="yes", taglib_only="no")
 
158
if test x"$taglib_only" = "xyes" ; then
 
159
   AC_DEFINE(TAGLIB_ONLY)
 
160
   AC_MSG_NOTICE([*** use taglib and taglib only! ***])
 
161
fi
 
162
 
 
163
dnl --------------------------------------------------------------------------
117
164
dnl
118
165
dnl Check for the new, cool libmtp library, and activate functionality
119
166
dnl if we have it.
125
172
AC_CHECK_HEADER(libmtp.h, found_libmtp_header=yes, found_libmtp_header=no)
126
173
 
127
174
AC_ARG_WITH(libmtp-prefix,
128
 
    [  --with-libmtp-prefix=PFX   Prefix where libmtp library is installed (optional)], libmtp_prefix="$withval", id3tag_prefix="")
 
175
    [  --with-libmtp-prefix=PFX   Prefix where libmtp library is installed (optional)], libmtp_prefix="$withval", libmtp_prefix="")
129
176
 
130
177
if test x"$libmtp_prefix" != "x"; then
131
178
   MTP_LIBS="-L$libmtp_prefix/lib -lmtp"
170
217
 
171
218
dnl --------------------------------------------------------------------------
172
219
dnl
 
220
dnl Check for libhal, and activate functionality
 
221
dnl if we have it.
 
222
dnl
 
223
dnl --------------------------------------------------------------------------
 
224
 
 
225
PKG_CHECK_MODULES(HAL, hal, found_hal_pkg=yes, found_hal_pkg=no)
 
226
HAL_VER=`pkg-config --modversion hal`
 
227
 
 
228
if test x"$found_hal_pkg" = "xno" ; then
 
229
   HAL_VER="NOT USED"
 
230
else
 
231
   AC_DEFINE(HAVE_HAL)
 
232
fi
 
233
AC_SUBST(HAL_CFLAGS)
 
234
AC_SUBST(HAL_LIBS)
 
235
 
 
236
 
 
237
dnl --------------------------------------------------------------------------
 
238
dnl
173
239
dnl Add some deprecation C flags
174
240
dnl
175
241
dnl --------------------------------------------------------------------------
239
305
 libnjb version........: $LIBNJB_VER
240
306
 libmtp version........: $MTP_VER
241
307
 id3tag version........: $ID3TAG_VER
 
308
 taglib version........: $TAGLIB_VER
242
309
 dbus-glib version.....: $DBUSGLIB_VER
 
310
 hal version...........: $HAL_VER
243
311
 Install path .........: $prefix
244
312
 
245
313
 Now type 'make' to build $PACKAGE $VERSION,