OSDN Git Service

Provide more robust inverse hyperbolic sine functions.
[mingw/mingw-org-wsl.git] / configure.ac
1 ##
2 # @file configure.ac
3 # Copyright 2012, 2013 MinGW.org project
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a
6 # copy of this software and associated documentation files (the "Software"),
7 # to deal in the Software without restriction, including without limitation
8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 # and/or sell copies of the Software, and to permit persons to whom the
10 # Software is furnished to do so, subject to the following conditions:
11
12 # The above copyright notice and this permission notice (including the next
13 # paragraph) shall be included in all copies or substantial portions of the
14 # Software.
15
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 # DEALINGS IN THE SOFTWARE.
23 ##
24
25 #                                               -*- Autoconf -*-
26 # Process this file with autoconf to produce a configure script.
27
28 AC_PREREQ([2.68])
29 AC_INIT([MinGW.org WSL], [4.0], [http://www.mingw.org/report_bugs], [mingw-org-wsl], [http://www.mingw.org])
30 AC_CONFIG_AUX_DIR([build-aux])
31 AC_PREFIX_DEFAULT([/mingw])
32 AC_CONFIG_SRCDIR([include/_mingw.h])
33 AC_CONFIG_HEADERS([config.h])
34 AC_CANONICAL_SYSTEM
35
36 # Checks for programs.
37 AC_PROG_CC
38 AC_PROG_INSTALL
39 AC_PROG_MKDIR_P
40 AC_PROG_RANLIB
41 AC_CHECK_TOOL([AS], [as], [as])
42 AC_CHECK_TOOL([DLLTOOL], [dlltool], [dlltool])
43
44 AC_ARG_VAR([PACKAGE_RELEASE], [Release serial number for the current PACKAGE_VERSION])
45 AC_SUBST([PACKAGE_RELEASE], [${PACKAGE_RELEASE-"1"}])
46
47 #When set to prod, meaning production release, the RELEASE_STATUS and
48 #RELEASE_REFERENCE are ignored.
49 AC_ARG_VAR([RELEASE_STATUS], [Release package status, prod, rc, alpha, etc])
50 AC_SUBST([RELEASE_STATUS], [${RELEASE_STATUS-"prod"}])
51 AC_ARG_VAR([RELEASE_REFERENCE], [Reference serial number for the release status])
52 AC_SUBST([RELEASE_REFERENCE], [${RELEASE_REFERENCE-"1"}])
53
54 # Checks for libraries.
55
56 # Checks for header files.
57 AC_CHECK_HEADERS([fcntl.h fenv.h float.h inttypes.h limits.h locale.h malloc.h memory.h stddef.h stdint.h stdlib.h string.h strings.h sys/file.h sys/param.h sys/time.h sys/timeb.h unistd.h values.h wchar.h wctype.h])
58
59 # Checks for typedefs, structures, and compiler characteristics.
60 AC_HEADER_STDBOOL
61 AC_C_INLINE
62 AC_TYPE_INT16_T
63 AC_TYPE_INT32_T
64 AC_TYPE_INT64_T
65 AC_TYPE_INT8_T
66 AC_TYPE_MODE_T
67 AC_TYPE_OFF_T
68 AC_TYPE_PID_T
69 AC_TYPE_SIZE_T
70 AC_TYPE_SSIZE_T
71 AC_CHECK_MEMBERS([struct stat.st_rdev])
72 AC_TYPE_UINT16_T
73 AC_TYPE_UINT32_T
74 AC_TYPE_UINT64_T
75 AC_TYPE_UINT8_T
76 AC_CHECK_TYPES([ptrdiff_t])
77
78 # Checks for library functions.
79 AC_FUNC_MALLOC
80 AC_FUNC_MBRTOWC
81 AC_FUNC_MKTIME
82 AC_FUNC_REALLOC
83 AC_FUNC_STRCOLL
84 AC_FUNC_STRTOD
85 AC_CHECK_FUNCS([atexit btowc bzero dup2 fesetround floor ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname gettimeofday inet_ntoa isascii iswprint localeconv mblen mbrlen memchr memmove memset mkdir modf pow putenv rint rmdir select setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul strtoull strtoumax tzset utime])
86
87 AC_CONFIG_FILES([Makefile tests/Makefile])
88 AC_OUTPUT