1 dnl Autoconf configure script for Cygwin.
2 dnl Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 dnl 2006, 2008, 2009, 2011, 2012, 2013, 2014 Red Hat, Inc.
5 dnl This file is part of Cygwin.
7 dnl This software is a copyrighted work licensed under the terms of the
8 dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
11 dnl Process this file with autoconf to produce a configure script.
14 AC_INIT([Cygwin DLL], 0,
15 cygwin@cygwin.com, cygwin, https://cygwin.com)
16 AC_CONFIG_SRCDIR(Makefile.in)
17 AC_CONFIG_HEADER(config.h)
20 . ${srcdir}/../configure.cygwin
38 case "$with_cross_host" in
41 install_host="install_host"
50 AC_SUBST(install_host)
52 AC_CHECK_TOOL(AR, ar, ar)
53 AC_CHECK_TOOL(AS, as, as)
54 AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
55 AC_CHECK_TOOL(LD, ld, ld)
56 AC_CHECK_TOOL(NM, nm, nm)
57 AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
58 AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
59 AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
60 AC_CHECK_TOOL(STRIP, strip, strip)
61 AC_CHECK_TOOL(WINDRES, windres, windres)
65 AC_ARG_ENABLE(debugging,
66 [ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
67 [case "${enableval}" in
68 yes) AC_DEFINE(DEBUGGING) ;;
73 dnl The only time we might want to transform the install names
74 dnl is for unix x cygwin. Otherwise we don't. For now we don't
77 dnl if test "x$cross_compiling" = "xno" -a ; then
78 dnl if test "x$program_transform_name" = "xs,x,x,"; then
79 dnl program_transform_name=""
81 dnl if test "x$program_transform_name" = "x"; then
82 dnl program_transform_name="s,^,$target_alias-,"
84 dnl program_transform_name="$program_transform_name -e s,^,$target_alias-,"
90 DLL_NAME="cygwin1.dll"
91 DLL_ENTRY="_dll_entry@12"
92 DEF_DLL_ENTRY="dll_entry@12"
94 TLSOFFSETS_H="tlsoffsets.h"
97 DLL_NAME="cygwin1.dll"
99 DEF_DLL_ENTRY="dll_entry"
100 DIN_FILE="x86_64.din"
101 TLSOFFSETS_H="tlsoffsets64.h"
103 *) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;;
110 AC_SUBST(DEF_DLL_ENTRY)
112 AC_SUBST(TLSOFFSETS_H)