OSDN Git Service

Add configure script checks for prerequisite library headers.
[mingw/mingw-get.git] / configure.ac
1 # configure.ac -*- autoconf -*- vim: filetype=config
2 #
3 # $Id$
4 #
5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2009, 2010, MinGW Project
7 #
8 #
9 # Configuration script for mingw-get
10 #
11 #
12 # This is free software.  Permission is granted to copy, modify and
13 # redistribute this software, under the provisions of the GNU General
14 # Public License, Version 3, (or, at your option, any later version),
15 # as published by the Free Software Foundation; see the file COPYING
16 # for licensing details.
17 #
18 # Note, in particular, that this software is provided "as is", in the
19 # hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
20 # even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
21 # PARTICULAR PURPOSE.  Under no circumstances will the author, or the
22 # MinGW Project, accept liability for any damages, however caused,
23 # arising from the use of this software.
24 #
25   AC_INIT([mingw-get],[0.1-alpha-2],[http://mingw.org/reporting_bugs])
26
27   AC_SUBST([COPYRIGHT_HOLDER],["MinGW Project"])
28   AC_SUBST([YEARS_OF_ISSUE],["2009, 2010"])
29
30 # Override the normal UNIX-centric autoconf default prefix;
31 # substitute the MinGW standard in its place.
32 #
33   AC_PREFIX_DEFAULT([C:/MinGW])
34
35 # We need both C and C++ compilers; check how to invoke them
36 #
37   AC_PROG_CC
38   AC_PROG_CXX
39
40 # We also need a lexical analyser generator
41 #
42   AC_PROG_LEX
43
44 # Ensure that (at least the headers for) prerequisite libraries,
45 # zlib, libbz2 and liblzma are available
46 #
47   AC_CHECK_HEADER([zlib.h],,MINGW_AC_ASSERT_MISSING([zlib],
48     [libz-1.2.3-1-mingw32-dev.tar.gz]))
49   AC_CHECK_HEADER([bzlib.h],,MINGW_AC_ASSERT_MISSING([libbz2],
50     [bzip2-1.0.5-2-mingw32-dev.tar.gz]))
51   AC_CHECK_HEADER([lzma.h],,MINGW_AC_ASSERT_MISSING([liblzma],
52     [liblzma-4.999.9beta_20091209-3-mingw32-dev.tar.bz2]))
53
54 # Set up the archive librarian, to match our compiler settings
55 #
56   AC_CHECK_TOOL([AR],[ar],[ar])
57   AC_SUBST([ARFLAGS],[${ARFLAGS-rcs}])
58
59 # Identify tools required for product installation
60 #
61   AC_PROG_MKDIR_P
62   AC_PROG_INSTALL
63   AC_PROG_LN_S
64
65 # As for the archive librarian, we need to ensure that the tool
66 # for stripping binaries is compatible with the compiler
67 #
68   AC_CHECK_TOOL([STRIP],[strip],[strip])
69
70 # Establish the product version banner, and create a makefile
71 #
72   AC_CONFIG_FILES([version.c Makefile])
73   AC_OUTPUT
74 #
75 # $RCSfile$: end of file