]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/configure.in
ChangeLog:
[newlib-cygwin.git] / winsup / cygwin / configure.in
CommitLineData
12a7d844 1AC_PREREQ(2.59)dnl
4c36016b 2AC_INIT(Makefile.in)
1fd5e000 3AC_CONFIG_HEADER(config.h)
4c36016b
CF
4AC_CONFIG_AUX_DIR(..)
5
6. ${srcdir}/../configure.cygwin
7
8AC_WINDOWS_HEADERS
9AC_WINDOWS_LIBS
7f4773b3 10
1fd5e000 11AC_PROG_INSTALL
1fd5e000
CF
12AC_CANONICAL_SYSTEM
13
4c36016b
CF
14AC_PROG_CC
15AC_PROG_CXX
16AC_PROG_CPP
17AC_LANG(C)
18AC_LANG(C++)
19
20AC_CYGWIN_INCLUDES
1fd5e000 21
e94903eb
CF
22case "$with_cross_host" in
23 ""|*cygwin*)
24 all_host="all_host"
25 install_host="install_host"
26 ;;
27 *)
28 all_host=
29 install_host=
30 ;;
31esac
32
33AC_SUBST(all_host)
34AC_SUBST(install_host)
35
1fd5e000 36AC_CHECK_TOOL(AR, ar, ar)
1fd5e000 37AC_CHECK_TOOL(AS, as, as)
cbda22eb 38AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
1fd5e000 39AC_CHECK_TOOL(LD, ld, ld)
48beacf6 40AC_CHECK_TOOL(NM, nm, nm)
cbda22eb
CF
41AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
42AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
43AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
44AC_CHECK_TOOL(STRIP, strip, strip)
1fd5e000 45AC_CHECK_TOOL(WINDRES, windres, windres)
1fd5e000 46
1fd5e000
CF
47AC_PROG_MAKE_SET
48
1fd5e000
CF
49AC_ARG_ENABLE(debugging,
50[ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
51[case "${enableval}" in
52yes) AC_DEFINE(DEBUGGING) ;;
53no) ;;
54esac
55])
56
f8e2f358 57MALLOC_OFILES=malloc.o
1fd5e000
CF
58
59dnl The only time we might want to transform the install names
60dnl is for unix x cygwin. Otherwise we don't. For now we don't
61dnl transform names.
62
63dnl if test "x$cross_compiling" = "xno" -a ; then
64dnl if test "x$program_transform_name" = "xs,x,x,"; then
65dnl program_transform_name=""
66dnl fi
67dnl if test "x$program_transform_name" = "x"; then
68dnl program_transform_name="s,^,$target_alias-,"
69dnl else
70dnl program_transform_name="$program_transform_name -e s,^,$target_alias-,"
71dnl fi
72dnl fi
73
1fd5e000 74case "$target_cpu" in
14963df6 75 i?86) DLL_ENTRY="_dll_entry@12"
1fd5e000 76 DEF_DLL_ENTRY="dll_entry@12"
75a57bf0 77 ALLOCA="_alloca"
1fd5e000 78 CONFIG_DIR="i386" ;;
1fd5e000
CF
79 *) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;;
80esac
81
4c36016b 82AC_CONFIGURE_ARGS
8db71e01 83AC_SUBST(MALLOC_OFILES)
4392d36c 84AC_SUBST(LIBSERVER)
1fd5e000
CF
85AC_SUBST(DLL_ENTRY)
86AC_SUBST(DEF_DLL_ENTRY)
87AC_SUBST(ALLOCA)
88AC_SUBST(CONFIG_DIR)
9a4d574b 89AC_OUTPUT(Makefile)
This page took 0.345785 seconds and 5 git commands to generate.