]>
Commit | Line | Data |
---|---|---|
12a7d844 | 1 | AC_PREREQ(2.59)dnl |
4c36016b | 2 | AC_INIT(Makefile.in) |
1fd5e000 | 3 | AC_CONFIG_HEADER(config.h) |
4c36016b CF |
4 | AC_CONFIG_AUX_DIR(..) |
5 | ||
6 | . ${srcdir}/../configure.cygwin | |
7 | ||
8 | AC_WINDOWS_HEADERS | |
9 | AC_WINDOWS_LIBS | |
7f4773b3 | 10 | |
1fd5e000 | 11 | AC_PROG_INSTALL |
1fd5e000 CF |
12 | AC_CANONICAL_SYSTEM |
13 | ||
4c36016b CF |
14 | AC_PROG_CC |
15 | AC_PROG_CXX | |
16 | AC_PROG_CPP | |
17 | AC_LANG(C) | |
18 | AC_LANG(C++) | |
19 | ||
20 | AC_CYGWIN_INCLUDES | |
1fd5e000 | 21 | |
e94903eb CF |
22 | case "$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 | ;; | |
31 | esac | |
32 | ||
33 | AC_SUBST(all_host) | |
34 | AC_SUBST(install_host) | |
35 | ||
1fd5e000 | 36 | AC_CHECK_TOOL(AR, ar, ar) |
1fd5e000 | 37 | AC_CHECK_TOOL(AS, as, as) |
cbda22eb | 38 | AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool) |
1fd5e000 | 39 | AC_CHECK_TOOL(LD, ld, ld) |
48beacf6 | 40 | AC_CHECK_TOOL(NM, nm, nm) |
cbda22eb CF |
41 | AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy) |
42 | AC_CHECK_TOOL(OBJDUMP, objdump, objdump) | |
43 | AC_CHECK_TOOL(RANLIB, ranlib, ranlib) | |
44 | AC_CHECK_TOOL(STRIP, strip, strip) | |
1fd5e000 | 45 | AC_CHECK_TOOL(WINDRES, windres, windres) |
1fd5e000 | 46 | |
1fd5e000 CF |
47 | AC_PROG_MAKE_SET |
48 | ||
1fd5e000 CF |
49 | AC_ARG_ENABLE(debugging, |
50 | [ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging], | |
51 | [case "${enableval}" in | |
52 | yes) AC_DEFINE(DEBUGGING) ;; | |
53 | no) ;; | |
54 | esac | |
55 | ]) | |
56 | ||
f8e2f358 | 57 | MALLOC_OFILES=malloc.o |
1fd5e000 CF |
58 | |
59 | dnl The only time we might want to transform the install names | |
60 | dnl is for unix x cygwin. Otherwise we don't. For now we don't | |
61 | dnl transform names. | |
62 | ||
63 | dnl if test "x$cross_compiling" = "xno" -a ; then | |
64 | dnl if test "x$program_transform_name" = "xs,x,x,"; then | |
65 | dnl program_transform_name="" | |
66 | dnl fi | |
67 | dnl if test "x$program_transform_name" = "x"; then | |
68 | dnl program_transform_name="s,^,$target_alias-," | |
69 | dnl else | |
70 | dnl program_transform_name="$program_transform_name -e s,^,$target_alias-," | |
71 | dnl fi | |
72 | dnl fi | |
73 | ||
1fd5e000 | 74 | case "$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\") ;; |
80 | esac | |
81 | ||
4c36016b | 82 | AC_CONFIGURE_ARGS |
8db71e01 | 83 | AC_SUBST(MALLOC_OFILES) |
4392d36c | 84 | AC_SUBST(LIBSERVER) |
1fd5e000 CF |
85 | AC_SUBST(DLL_ENTRY) |
86 | AC_SUBST(DEF_DLL_ENTRY) | |
87 | AC_SUBST(ALLOCA) | |
88 | AC_SUBST(CONFIG_DIR) | |
9a4d574b | 89 | AC_OUTPUT(Makefile) |