]> cygwin.com Git - cygwin-apps/setup.git/blame - configure.ac
2003-10-23 Jerry D. Hedden <jerry@hedden.us>
[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
db04fc41
RC
20AC_INIT
21AC_PREREQ(2.53)
22AC_CONFIG_AUX_DIR(cfgaux)
f6100b6f
RC
23AM_INIT_AUTOMAKE(setup, 0)
24dnl AM_CONFIG_HEADER(include/autoconf.h)
25AM_MAINTAINER_MODE
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,
31 AC_HELP_STRING([--enable-inilint],
32 [Build the inilint tool]),
33 ac_cv_enable_inilint=$enableval, ac_cv_enable_inilint=no)
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
b401ef47
RC
42AC_MSG_CHECKING([Whether to enable rsync support])
43AC_ARG_ENABLE(rsync,
44 AC_HELP_STRING([--enable-rsync],
45 [Compile in rsync support]),
46 ac_cv_enable_rsync=$enableval, ac_cv_enable_rsync=no)
47AC_MSG_RESULT([$ac_cv_enable_rsync])
48if test $ac_cv_enable_rsync = yes; then
49 AM_CONDITIONAL(ENABLERSYNC, true)
50 RSYNC="rsync"
51 RSYNCLIB=rsync/librsync.la
52 AC_CONFIG_SUBDIRS(rsync)
53else
54 AM_CONDITIONAL(ENABLERSYNC, false)
55 RSYNC=
56 RSYNCLIB=
57fi
58AC_SUBST(RSYNC)
59AC_SUBST(RSYNCLIB)
60
f6100b6f 61AC_LANG_CPLUSPLUS
db04fc41 62AC_PROG_CXX
f6100b6f
RC
63AM_PROG_CC_C_O
64AM_PROG_LEX
65AC_PROG_YACC
db04fc41
RC
66AC_CANONICAL_BUILD
67AC_CANONICAL_HOST
6908b7d7 68AC_PROG_LIBTOOL
739457f4 69
f6100b6f
RC
70dnl AC_CHECK_TOOL(AR, ar, ar)
71dnl AC_SUBST(AR)
72dnl AC_CHECK_TOOL(AS, as, as)
73dnl AC_SUBST(AS)
74dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
75dnl AC_SUBST(RANLIB)
76dnl AC_CHECK_TOOL(LD, ld, ld)
77dnl AC_SUBST(LD)
78dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
79dnl AC_SUBST(DLLTOOL)
739457f4
CF
80AC_CHECK_TOOL(WINDRES, windres, windres)
81AC_SUBST(WINDRES)
f6100b6f
RC
82dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
83dnl AC_SUBST(OBJCOPY)
739457f4 84
45e01f23
RC
85AC_CHECK_LIB(mingw32,main)
86
19911586
RC
87AC_CHECK_HEADERS(alloca.h \
88 errno.h \
89 string \
90 string.h )
45e01f23 91
db04fc41
RC
92AC_CONFIG_SUBDIRS(zlib)
93AC_CONFIG_SUBDIRS(bz2lib)
6908b7d7 94AC_CONFIG_SUBDIRS(libgetopt++)
739457f4 95
2b48ecd0
RC
96dnl add portability sources to inilint
97case "$host_os" in
98mingw32)
99 AM_CONDITIONAL(MINGWTARGET, true)
100 ;;
101*)
102 AM_CONDITIONAL(MINGWTARGET, false)
103 ;;
104esac
105
2bbf91cf 106AC_CONFIG_FILES([Makefile tests/Makefile])
db04fc41 107AC_OUTPUT
This page took 0.047353 seconds and 5 git commands to generate.