forked from Alexpux/mingw-w64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
113 lines (98 loc) · 3.31 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([mingw-w64],[4.0b],[mingw-w64-public@lists.sourceforge.net])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([AUTHORS])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE([foreign])
AC_CANONICAL_HOST
AC_DEFUN([MW64_OPTION_ERROR],[AC_MSG_ERROR([Invalid argument to --$1: $AS_TR_SH([$1])])])
# Checks for programs.
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_MSG_CHECKING([whether to build the headers])
AC_ARG_WITH([headers],
[AS_HELP_STRING([--without-headers],
[Skip building the mingw-w64 headers])],
[],
[with_headers=yes])
AS_CASE([$with_headers],
[yes],[AC_CONFIG_SUBDIRS([mingw-w64-headers])],
[no],[],
[MW64_OPTION_ERROR([with-headers])])
AM_CONDITIONAL([HEADER],[test "x$with_headers" = xyes])
AC_MSG_RESULT([$with_headers])
AC_MSG_CHECKING([whether to build the crt])
AC_ARG_WITH([crt],
[AS_HELP_STRING([--without-crt],
[Skip building the mingw-w64 crt])],
[],
[with_crt=yes])
AS_CASE([$with_crt],
[yes],[AC_CONFIG_SUBDIRS([mingw-w64-crt])],
[no],[],
[MW64_OPTION_ERROR([with-crt])])
AM_CONDITIONAL([CRT],[test "x$with_crt" = xyes])
AC_MSG_RESULT([$with_crt])
AC_MSG_CHECKING([whether to build the optional libraries])
AC_ARG_WITH([libraries],
[AS_HELP_STRING([--with-libraries=ARG],
[Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, or all])],
[],
[with_libraries=no])
AS_CASE([$with_libraries],
[yes|all],[
with_libraries="libmangle,pseh"
with_libraries_mangle=yes
with_libraries_pseh=yes],
[libmangle],[
with_libraries="libmangle"
with_libraries_mangle=yes
with_libraries_pseh=no],
[pseh],[
with_libraries="pseh"
with_libraries_mangle=no
with_libraries_pseh=yes],
[no],[
with_libraries_mangle=no
with_libraries_pseh=no],
[MW64_OPTION_ERROR([with-libraries])])
AM_CONDITIONAL([LIBRARIES_MANGLE],[test "x$with_libraries_mangle" = xyes])
AM_CONDITIONAL([LIBRARIES_PSEH],[test "x$with_libraries_pseh" = xyes])
AM_COND_IF([LIBRARIES_MANGLE],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/libmangle])])
AM_COND_IF([LIBRARIES_PSEH],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/pseh])])
AC_MSG_RESULT([$with_libraries])
AC_MSG_CHECKING([whether to build the optional tools])
AC_ARG_WITH([tools],
[AS_HELP_STRING([--with-tools=ARG],
[Build the extra mingw-w64 tools, where ARG is one of gendef, genidl, or all])],
[],
[with_tools=no])
AS_CASE([$with_tools],
[yes|all],[
with_tools="gendef,genidl"
with_tools_gendef=yes
with_tools_genidl=yes],
[gendef],[
with_tools="gendef"
with_tools_gendef=yes
with_tools_genidl=no],
[genidl],[
with_tools="genidl"
with_tools_gendef=no
with_tools_genidl=yes],
[no],[
with_tools_gendef=no
with_tools_genidl=no],
[MW64_OPTION_ERROR([with-tools])])
AM_CONDITIONAL([TOOLS_GENDEF],[test "x$with_tools_gendef" = xyes])
AM_CONDITIONAL([TOOLS_GENIDL],[test "x$with_tools_genidl" = xyes])
AM_COND_IF([TOOLS_GENDEF],[AC_CONFIG_SUBDIRS([mingw-w64-tools/gendef])])
AM_COND_IF([TOOLS_GENIDL],[AC_CONFIG_SUBDIRS([mingw-w64-tools/genidl])])
AC_MSG_RESULT([$with_tools])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT