]> cygwin.com Git - cygwin-apps/setup.git/blame - configure.ac
Add Makefile rule to rename build products to form used when uploading
[cygwin-apps/setup.git] / configure.ac
CommitLineData
37ee316b
CF
1dnl Copyright (c) 2000, Red Hat, Inc.
2dnl
3dnl This program is free software; you can redistribute it and/or modify
4dnl it under the terms of the GNU General Public License as published by
5dnl the Free Software Foundation; either version 2 of the License, or
6dnl (at your option) any later version.
7dnl
8dnl A copy of the GNU General Public License can be found at
9dnl http://www.gnu.org/
739457f4 10dnl
6dfbe297 11dnl Written by Christopher Faylor <cgf@redhat.com>
f6100b6f
RC
12dnl and Robert Collins <rbtcollins@hotmail.com>
13dnl
14dnl $Id$
15dnl
37ee316b
CF
16dnl Autoconf configure script for Cygwin utilities.
17dnl
739457f4
CF
18dnl Process this file with autoconf to produce a configure script.
19
dacb1ebd
BD
20AC_INIT([setup], [0], [cygwin-apps@cygwin.com])
21AC_PREREQ(2.60)
22AC_CONFIG_AUX_DIR([cfgaux])
443b9db6 23AM_INIT_AUTOMAKE([1.12 subdir-objects foreign no-define -Wall -Wno-portability])
f6100b6f 24dnl AM_CONFIG_HEADER(include/autoconf.h)
e07b6f3d 25m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES(yes)])
db04fc41
RC
26AC_CONFIG_SRCDIR([Makefile.in])
27AC_REVISION($Revision$)dnl
28
19911586
RC
29AC_MSG_CHECKING([Whether to build inilint])
30AC_ARG_ENABLE(inilint,
f8dcce01
MB
31 AC_HELP_STRING([--enable-inilint],
32 [Build the inilint tool]),
33 ac_cv_enable_inilint=$enableval, ac_cv_enable_inilint=no)
19911586
RC
34AC_MSG_RESULT([$ac_cv_enable_inilint])
35if test $ac_cv_enable_inilint = yes; then
aa1e3b4d 36 INILINT="inilint\$(EXEEXT)"
19911586
RC
37else
38 INILINT=
39fi
40AC_SUBST(INILINT)
41
f6100b6f 42AC_LANG_CPLUSPLUS
db04fc41 43AC_PROG_CXX
f6100b6f
RC
44AM_PROG_CC_C_O
45AM_PROG_LEX
46AC_PROG_YACC
db04fc41
RC
47AC_CANONICAL_BUILD
48AC_CANONICAL_HOST
6908b7d7 49AC_PROG_LIBTOOL
739457f4 50
739457f4 51AC_CHECK_TOOL(WINDRES, windres, windres)
77ddbf45 52AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
739457f4 53
19911586
RC
54AC_CHECK_HEADERS(alloca.h \
55 errno.h \
56 string \
57 string.h )
45e01f23 58
c63e8b4a
YS
59AC_CHECK_HEADER(zlib.h, , missing_deps="$missing_deps zlib")
60AC_CHECK_HEADER(bzlib.h, , missing_deps="$missing_deps libbz2")
61AC_CHECK_HEADER(lzma.h, , missing_deps="$missing_deps liblzma")
62AC_CHECK_HEADER(gcrypt.h, , missing_deps="$missing_deps libgcrypt")
63
64if test -n "$missing_deps"; then
65 AC_MSG_ERROR([missing prerequisites: $missing_deps])
66fi
67
be6622c0
CF
68prefix=`pwd`/inst; mkdir -p "$prefix"
69exec_prefix=$prefix
1cc1fad4 70ac_configure_args="$ac_configure_args --disable-shared"
1e0f90f9 71AC_CONFIG_SUBDIRS(libgetopt++)
739457f4 72
2b48ecd0 73dnl add portability sources to inilint
e49fef4d
YS
74case "$host" in
75i?86-*-mingw32)
76 SETUP="setup"
b9d154a2 77 ARCH="x86"
e49fef4d
YS
78 ;;
79x86_64-*-mingw32)
a2f2948a 80 SETUP="setup"
b9d154a2 81 ARCH="x86_64"
2b48ecd0
RC
82 ;;
83*)
e49fef4d 84 AC_MSG_ERROR([Cygwin Setup can only be built for Win32 or Win64 hosts])
2b48ecd0
RC
85 ;;
86esac
e49fef4d 87AC_SUBST(SETUP)
b9d154a2 88AC_SUBST(ARCH)
2b48ecd0 89
2bbf91cf 90AC_CONFIG_FILES([Makefile tests/Makefile])
db04fc41 91AC_OUTPUT
This page took 0.069641 seconds and 5 git commands to generate.