]> cygwin.com Git - cygwin-apps/setup.git/blob - configure.in
2002-07-15 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / configure.in
1 dnl Copyright (c) 2000, Red Hat, Inc.
2 dnl
3 dnl This program is free software; you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation; either version 2 of the License, or
6 dnl (at your option) any later version.
7 dnl
8 dnl A copy of the GNU General Public License can be found at
9 dnl http://www.gnu.org/
10 dnl
11 dnl Written by Christopher Faylor <cgf@redhat.com>
12 dnl and Robert Collins <rbtcollins@hotmail.com>
13 dnl
14 dnl $Id$
15 dnl
16 dnl Autoconf configure script for Cygwin utilities.
17 dnl
18 dnl Process this file with autoconf to produce a configure script.
19
20 AC_INIT
21 AC_PREREQ(2.53)
22 AC_CONFIG_AUX_DIR(cfgaux)
23 AM_INIT_AUTOMAKE(setup, 0)
24 dnl AM_CONFIG_HEADER(include/autoconf.h)
25 AM_MAINTAINER_MODE
26 AC_CONFIG_SRCDIR([Makefile.in])
27 AC_REVISION($Revision$)dnl
28
29 AC_MSG_CHECKING([Whether to build inilint])
30 AC_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)
34 AC_MSG_RESULT([$ac_cv_enable_inilint])
35 if test $ac_cv_enable_inilint = yes; then
36 INILINT="inilint\$(EXEEXT)"
37 else
38 INILINT=
39 fi
40 AC_SUBST(INILINT)
41
42 AC_MSG_CHECKING([Whether to enable rsync support])
43 AC_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)
47 AC_MSG_RESULT([$ac_cv_enable_rsync])
48 if 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)
53 else
54 AM_CONDITIONAL(ENABLERSYNC, false)
55 RSYNC=
56 RSYNCLIB=
57 fi
58 AC_SUBST(RSYNC)
59 AC_SUBST(RSYNCLIB)
60
61 AC_LANG_CPLUSPLUS
62 AC_PROG_CXX
63 AM_PROG_CC_C_O
64 AM_PROG_LEX
65 AC_PROG_YACC
66 AC_CANONICAL_BUILD
67 AC_CANONICAL_HOST
68 AC_PROG_LIBTOOL
69
70 dnl AC_CHECK_TOOL(AR, ar, ar)
71 dnl AC_SUBST(AR)
72 dnl AC_CHECK_TOOL(AS, as, as)
73 dnl AC_SUBST(AS)
74 dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
75 dnl AC_SUBST(RANLIB)
76 dnl AC_CHECK_TOOL(LD, ld, ld)
77 dnl AC_SUBST(LD)
78 dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
79 dnl AC_SUBST(DLLTOOL)
80 AC_CHECK_TOOL(WINDRES, windres, windres)
81 AC_SUBST(WINDRES)
82 dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
83 dnl AC_SUBST(OBJCOPY)
84
85 AC_CHECK_LIB(mingw32,main)
86
87 AC_CHECK_HEADERS(alloca.h \
88 errno.h \
89 string \
90 string.h )
91
92 AC_CONFIG_SUBDIRS(zlib)
93 AC_CONFIG_SUBDIRS(bz2lib)
94 AC_CONFIG_SUBDIRS(libgetopt++)
95
96 dnl add portability sources to inilint
97 case "$host_os" in
98 mingw32)
99 AM_CONDITIONAL(MINGWTARGET, true)
100 ;;
101 *)
102 AM_CONDITIONAL(MINGWTARGET, false)
103 ;;
104 esac
105
106 AC_CONFIG_FILES([Makefile])
107 AC_OUTPUT
This page took 0.041586 seconds and 5 git commands to generate.