~ubuntu-branches/ubuntu/saucy/fuse-emulator-utils/saucy-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Alberto Garcia
  • Date: 2013-06-03 01:42:44 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130603014244-7iyxwnnyzybfwpr6
Tags: 1.1.1-1
* New upstream release.
* Drop all patches, they are already included in this release.
* Update my e-mail address in debian/control and debian/copyright.
* Build with hardening options.
  - debian/compat: bump debhelper compatibility level to 9.
  - debian/control: update build dependency on debhelper as well.
* debian/control:
  - Add build dependencies on libswscale-dev and libavformat-dev.
  - Update build dependency on libspectrum to >= 1.1.0.
  - Remove obsolete DM-Upload-Allowed flag.
  - Update Standards-Version to 3.9.4 (no changes).
  - Mention the new fmfconv tool in the package description.
* debian/copyright: update copyright years.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
dnl $Id: configure.in 4211 2010-12-16 21:36:13Z pak21 $
3
 
 
4
 
dnl This program is free software; you can redistribute it and/or modify
5
 
dnl it under the terms of the GNU General Public License as published by
6
 
dnl the Free Software Foundation; either version 2 of the License, or
7
 
dnl (at your option) any later version.
8
 
dnl
9
 
dnl This program is distributed in the hope that it will be useful,
10
 
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
dnl GNU General Public License for more details.
13
 
dnl
14
 
dnl You should have received a copy of the GNU General Public License along
15
 
dnl with this program; if not, write to the Free Software Foundation, Inc.,
16
 
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
 
dnl
18
 
dnl Author contact information:
19
 
dnl
20
 
dnl E-mail: philip-fuse@shadowmagic.org.uk
21
 
 
22
 
AC_INIT(tzxlist.c)
23
 
AM_CONFIG_HEADER(config.h)
24
 
 
25
 
dnl Use automake to produce `Makefile.in'
26
 
AM_INIT_AUTOMAKE(fuse-utils, [1.0.0])
27
 
 
28
 
dnl Checks for programs.
29
 
AC_PROG_CC
30
 
AC_PROG_CXX
31
 
AC_PROG_LIBTOOL
32
 
 
33
 
dnl Check for big endianness
34
 
AC_C_BIGENDIAN
35
 
 
36
 
dnl Check for header files
37
 
AC_CHECK_HEADERS(strings.h)
38
 
 
39
 
dnl Allow the user to say that various libraries are in one place
40
 
AC_ARG_WITH(local-prefix,
41
 
[  --with-local-prefix=PFX local libraries installed in PFX (optional)],
42
 
CFLAGS="$CFLAGS -I$withval/include";
43
 
CXXFLAGS="$CXXFLAGS -I$withval/include";
44
 
LDFLAGS="$LDFLAGS -L$withval/lib",
45
 
if test "$prefix" != "NONE"; then
46
 
  CFLAGS="$CFLAGS -I$prefix/include";
47
 
  CXXFLAGS="$CXXFLAGS -I$prefix/include";
48
 
  LDFLAGS="$LDFLAGS -L$prefix/lib"
49
 
fi)
50
 
 
51
 
dnl Check that libgcrypt is available
52
 
AC_CHECK_LIB(gcrypt,gcry_check_version,
53
 
  AC_DEFINE([HAVE_LIBGCRYPT], 1, [Defined if we've got libgcrypt])
54
 
  GCRYPT_LIBS="$LIBS -lgcrypt"
55
 
  gcrypt=yes
56
 
)
57
 
AC_SUBST(GCRYPT_LIBS)
58
 
AM_CONDITIONAL(BUILD_RZXCHECK, test "$gcrypt" = yes)
59
 
 
60
 
dnl Do we want lots of warning messages?
61
 
AC_MSG_CHECKING(whether lots of warnings requested)
62
 
AC_ARG_ENABLE(warnings,
63
 
[  --enable-warnings       give lots of warnings if using gcc],
64
 
if test "$enableval" = yes; then
65
 
    warnings=yes;
66
 
else
67
 
    warnings=no;
68
 
fi,
69
 
warnings=no)
70
 
AC_MSG_RESULT($warnings)
71
 
 
72
 
dnl If it appears we're using gcc as our compiler, turn on warnings
73
 
if test "$ac_cv_prog_gcc" = yes; then
74
 
    CFLAGS="$CFLAGS -Wall"
75
 
    CXXFLAGS="$CXXFLAGS -Wall"
76
 
    dnl And possibly lots of warnings
77
 
    if test "$warnings" = yes; then
78
 
        CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Winline -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -W -Wsign-compare"
79
 
    fi
80
 
fi
81
 
 
82
 
# Must either find glib or use the replacement (as supplied by libspectrum)
83
 
AC_MSG_CHECKING(whether to use glib)
84
 
AC_ARG_WITH(glib,
85
 
[  --without-glib          don't use glib],
86
 
if test "$withval" = no; then glib=no; else glib=yes; fi,
87
 
glib=yes)
88
 
AC_MSG_RESULT($glib)
89
 
if test "$glib" = yes; then
90
 
  glib2=no
91
 
  AM_PATH_GLIB_2_0(
92
 
    2.0.0,
93
 
    glib2=yes
94
 
    AC_DEFINE([HAVE_LIB_GLIB], 1, [Defined if we've got glib])
95
 
    GLIBS="`pkg-config --libs glib-2.0`",
96
 
  )
97
 
  if test "$glib2" = no; then
98
 
    AM_PATH_GLIB(
99
 
      1.2.0,
100
 
      AC_DEFINE([HAVE_LIB_GLIB], 1, [Defined if we've got glib])
101
 
      GLIBS="`glib-config --libs`",
102
 
      AC_MSG_WARN(glib not found - using libspectrum's replacement)
103
 
    )
104
 
  fi
105
 
fi
106
 
 
107
 
dnl Check that libspectrum is available
108
 
AC_ARG_WITH(libspectrum-prefix,
109
 
[  --with-libspectrum-prefix=PFX where libspectrum is installed (optional)],
110
 
LIBSPEC_CFLAGS=-I$withval/include; LIBSPEC_LIBS=-L$withval/lib,
111
 
LIBSPEC_CFLAGS=""; LIBSPEC_LIBS="")
112
 
ac_save_CPPFLAGS="$CPPFLAGS"
113
 
CPPFLAGS="$CFLAGS $LIBSPEC_CFLAGS $GLIB_CFLAGS"
114
 
AC_CHECK_HEADERS(libspectrum.h,LIBSPEC_LIBS="$LIBSPEC_LIBS -lspectrum $GLIBS",
115
 
                 AC_MSG_ERROR(Sorry - I need libspectrum to be available))
116
 
CPPFLAGS="$ac_save_CPPFLAGS"
117
 
AC_SUBST(LIBSPEC_CFLAGS)
118
 
AC_SUBST(LIBSPEC_LIBS)
119
 
 
120
 
# Look for audiofile (default=yes)
121
 
AC_MSG_CHECKING(whether to use audiofile)
122
 
AC_ARG_WITH(audiofile,
123
 
[  --without-audiofile     don't use audiofile],
124
 
if test "$withval" = no; then audiofile=no; else audiofile=yes; fi,
125
 
audiofile=yes)
126
 
AC_MSG_RESULT($audiofile)
127
 
if test "$audiofile" = yes; then
128
 
  PKG_CHECK_MODULES(
129
 
    AUDIOFILE,
130
 
    audiofile,
131
 
    AC_DEFINE([HAVE_LIB_AUDIOFILE], 1, [Defined if we've got audiofile]), []
132
 
  )
133
 
  if test -z "$AUDIOFILE_LIBS"; then
134
 
    AM_PATH_AUDIOFILE(
135
 
      0.2.3,
136
 
      AC_DEFINE([HAVE_LIB_AUDIOFILE], 1, [Defined if we've got audiofile])
137
 
    )
138
 
  fi
139
 
fi
140
 
AM_CONDITIONAL(BUILD_AUDIOTOOLS, test "$audiofile" = yes)
141
 
 
142
 
# Look for iconv (default=yes)
143
 
AC_MSG_CHECKING(whether to use iconv)
144
 
AC_ARG_WITH(iconv,
145
 
[  --without-iconv         don't use iconv],
146
 
if test "$withval" = no; then iconv=no; else iconv=yes; fi,
147
 
iconv=yes)
148
 
AC_MSG_RESULT($iconv)
149
 
if test "$iconv" = yes; then
150
 
  AC_CHECK_HEADERS(locale.h)
151
 
  AC_CHECK_FUNCS(setlocale)
152
 
  AM_ICONV()
153
 
fi
154
 
AC_SUBST(LTLIBICONV)
155
 
 
156
 
dnl Work out which compatibility routines to use
157
 
AC_MSG_CHECKING(which compatibility routines to use)
158
 
case "$target_os" in
159
 
  amigaos)
160
 
    COMPAT_OSNAME='amiga'
161
 
    ;;
162
 
  *)
163
 
    COMPAT_OSNAME='unix'
164
 
  ;;
165
 
esac
166
 
AC_MSG_RESULT($COMPAT_OSNAME)
167
 
COMPAT_SUBDIR="compat/$COMPAT_OSNAME"
168
 
AC_SUBST(COMPAT_SUBDIR)
169
 
AC_SUBST(COMPAT_OSNAME)
170
 
 
171
 
AC_OUTPUT(Makefile \
172
 
compat/amiga/Makefile \
173
 
compat/unix/Makefile \
174
 
fuse-utils.qpg \
175
 
hacking/Makefile \
176
 
man/Makefile)