~ubuntu-branches/ubuntu/intrepid/enigma/intrepid

« back to all changes in this revision

Viewing changes to lib-src/zipios++/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2005-08-28 15:30:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050828153009-sky64kb6tcq37xt5
Tags: 0.92.1-1
* New upstream subversion checkout
* Remove menu.s3m, which we are allowed to distributed but not to modify
  also copyright notice is confusing... (Closes: #321669)
* Rebuild with new libzipios (Closes: #325405)
  I hope this works without a versioned build-dependency
* Added "enigma replaces enigma-data" for upgrades (Closes: #308558)
* Added notes about the fonts copyright.
* updated to policy 3.6.2.1 (no changes)

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
 
AC_INIT
3
 
AC_CONFIG_SRCDIR([src/backbuffer.h])
4
 
 
5
 
AM_INIT_AUTOMAKE(zipios++,0.1.5)
6
 
AC_CONFIG_HEADERS([zipios++/zipios-config.h])
7
 
 
8
 
 
9
 
dnl Add -mno-cygwin to CXXFLAGS and CFLAGS if working under cygwin
10
 
dnl if test "$host_os in *cygwin*"; then
11
 
dnl   CXXFLAGS="$CXXFLAGS -mno-cygwin"
12
 
dnl   CFLAGS="$CFLAGS -mno-cygwin"
13
 
dnl fi
14
 
 
15
 
dnl to run test progs with CXX: AC_LANG([C++])
16
 
 
17
 
dnl Use std compliant iostream library if present?
18
 
AC_ARG_WITH(std-compliant-iostream, 
19
 
[  --with-std-compliant-iostream 
20
 
         Include iostream (if present) instead of iostream.h. (Default is yes) ] )
21
 
 
22
 
if test -n "$with_std_compliant_iostream" -a \
23
 
        "$with_std_compliant_iostream" != "no" -a \
24
 
        "$with_std_compliant_iostream" != "yes" ; then
25
 
  AC_MSG_ERROR(
26
 
[illegal argument specified for --with-std-compliant-iostream. 
27
 
Only 'yes' and 'no' are accepted.])
28
 
fi
29
 
if test -z "$with_std_compliant_iostream" -o \
30
 
        "$with_std_compliant_iostream" = "yes" ; then
31
 
  AC_DEFINE(USE_STD_IOSTREAM, 1, [Define if the std compliant iostream library should be used (if present)])
32
 
fi
33
 
 
34
 
dnl Checks for programs.
35
 
AC_PROG_CXX
36
 
AC_PROG_CC
37
 
AC_PROG_CPP
38
 
AC_PROG_INSTALL
39
 
AC_PROG_RANLIB
40
 
 
41
 
dnl Checks for libraries.
42
 
AC_CHECK_LIB(z, inflate, [cv_libz=yes], [cv_libz=no])
43
 
 
44
 
if test "$cv_libz" != "yes"; then
45
 
  AC_MSG_ERROR([zlib is required to compile $PACKAGE.])
46
 
fi
47
 
 
48
 
dnl acconfig.h file added (with #undef for HAVE_ZERROR), which is required
49
 
dnl for symbols defined "manually" with AC_DEFINE
50
 
AC_CHECK_LIB(z, zError, AC_DEFINE(HAVE_ZERROR, 1, [Define if zlib has zError]) )
51
 
 
52
 
dnl Checks for header files.
53
 
AC_HEADER_STDC
54
 
AC_CHECK_HEADERS(unistd.h)
55
 
AC_CXX_HAVE_STL
56
 
AC_CXX_HAVE_STD
57
 
dnl Not necessary anymore: AC_CXX_HAVE_SSTREAM
58
 
AC_CXX_HAVE_STD_IOSTREAM
59
 
 
60
 
dnl Checks for typedefs, structures, and compiler characteristics.
61
 
AC_C_CONST
62
 
AC_C_INLINE
63
 
 
64
 
dnl Checks for library functions.
65
 
 
66
 
AC_CONFIG_FILES([Makefile zipios++/Makefile src/Makefile])
67
 
AC_OUTPUT