1 dnl Copyright (c) 2000, Red Hat, Inc.
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.
8 dnl A copy of the GNU General Public License can be found at
9 dnl http://www.gnu.org/
11 dnl Written by Christopher Faylor <cgf@redhat.com>
12 dnl and Robert Collins <rbtcollins@hotmail.com>
16 dnl Autoconf configure script for Cygwin utilities.
18 dnl Process this file with autoconf to produce a configure script.
20 AC_INIT([setup], [0], [cygwin-apps@cygwin.com])
22 AC_CONFIG_AUX_DIR([cfgaux])
23 AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.9 foreign no-define -Wall -Wno-portability])
24 dnl AM_CONFIG_HEADER(include/autoconf.h)
26 AC_CONFIG_SRCDIR([Makefile.in])
27 AC_REVISION($Revision$)dnl
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)"
51 dnl AC_CHECK_TOOL(AR, ar, ar)
53 dnl AC_CHECK_TOOL(AS, as, as)
55 dnl AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
57 dnl AC_CHECK_TOOL(LD, ld, ld)
59 dnl AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
61 AC_CHECK_TOOL(WINDRES, windres, windres)
63 dnl AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
66 AC_CHECK_LIB(mingw32,main)
68 AC_CHECK_HEADERS(alloca.h \
73 AC_CONFIG_SUBDIRS(libgetopt++)
75 dnl add portability sources to inilint
78 AM_CONDITIONAL(MINGWTARGET, true)
81 AM_CONDITIONAL(MINGWTARGET, false)
85 AC_CONFIG_FILES([Makefile tests/Makefile])