]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygwin/configure.ac
Cygwin: Drop do-nothing install_host target
[newlib-cygwin.git] / winsup / cygwin / configure.ac
1 dnl Autoconf configure script for Cygwin.
2 dnl
3 dnl This file is part of Cygwin.
4 dnl
5 dnl This software is a copyrighted work licensed under the terms of the
6 dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 dnl details.
8 dnl
9 dnl Process this file with autoconf to produce a configure script.
10
11 AC_PREREQ([2.59])
12 AC_INIT([Cygwin DLL],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com])
13 AC_CONFIG_SRCDIR(Makefile.in)
14 AC_CONFIG_HEADER(config.h)
15 AC_CONFIG_AUX_DIR(..)
16
17 . ${srcdir}/../configure.cygwin
18
19 AC_PROG_INSTALL
20 AC_NO_EXECUTABLES
21 AC_CANONICAL_TARGET
22
23 AC_PROG_CC
24 AC_PROG_CXX
25 AC_PROG_CPP
26 AC_LANG(C)
27
28 AC_LANG(C++)
29
30 AC_CYGWIN_INCLUDES
31
32 case "$with_cross_host" in
33 ""|*cygwin*)
34 all_host="all_host"
35 ;;
36 *)
37 all_host=
38 ;;
39 esac
40
41 AC_SUBST(all_host)
42
43 AC_CHECK_TOOL(AR, ar, ar)
44 AC_CHECK_TOOL(AS, as, as)
45 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
46 AC_CHECK_TOOL(LD, ld, ld)
47 AC_CHECK_TOOL(NM, nm, nm)
48 AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
49 AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
50 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
51 AC_CHECK_TOOL(STRIP, strip, strip)
52 AC_CHECK_TOOL(WINDRES, windres, windres)
53
54 AC_ARG_ENABLE(debugging,
55 [ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
56 [case "${enableval}" in
57 yes) AC_DEFINE([DEBUGGING],[1],[Define if DEBUGGING support is requested.]) ;;
58 no) ;;
59 esac
60 ])
61
62 case "$target_cpu" in
63 i?86)
64 DLL_NAME="cygwin1.dll"
65 DLL_ENTRY="_dll_entry@12"
66 DEF_DLL_ENTRY="dll_entry@12"
67 DIN_FILE="i686.din"
68 TLSOFFSETS_H="tlsoffsets.h"
69 ;;
70 x86_64)
71 DLL_NAME="cygwin1.dll"
72 DLL_ENTRY="dll_entry"
73 DEF_DLL_ENTRY="dll_entry"
74 DIN_FILE="x86_64.din"
75 TLSOFFSETS_H="tlsoffsets64.h"
76 ;;
77 *) AC_MSG_ERROR([Invalid target processor "$target_cpu"]) ;;
78 esac
79
80 AC_CONFIGURE_ARGS
81 AC_SUBST(DLL_NAME)
82 AC_SUBST(DLL_ENTRY)
83 AC_SUBST(DEF_DLL_ENTRY)
84 AC_SUBST(DIN_FILE)
85 AC_SUBST(TLSOFFSETS_H)
86 AC_CONFIG_FILES([Makefile])
87 AC_OUTPUT
This page took 0.038661 seconds and 5 git commands to generate.