OSDN Git Service

* configure.ac: New file.
[mingw/mingw-org-wsl.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.68])
5 AC_INIT([MinGW.org WSL], [1.0], [http://www.mingw.org/report_bugs], [mingw.org-wsl], [http://www.mingw.org])
6 AC_CONFIG_SRCDIR([include/_mingw.h])
7 AC_CONFIG_HEADERS([config.h])
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_INSTALL
12 AC_PROG_MKDIR_P
13 AC_PROG_RANLIB
14 AC_CHECK_TOOL([AS], [as], [as])
15 AC_CHECK_TOOL([DLLTOOL], [dlltool], [dlltool])
16
17 # Checks for libraries.
18
19 # Checks for header files.
20 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])
21
22 # Checks for typedefs, structures, and compiler characteristics.
23 AC_HEADER_STDBOOL
24 AC_C_INLINE
25 AC_TYPE_INT16_T
26 AC_TYPE_INT32_T
27 AC_TYPE_INT64_T
28 AC_TYPE_INT8_T
29 AC_TYPE_MODE_T
30 AC_TYPE_OFF_T
31 AC_TYPE_PID_T
32 AC_TYPE_SIZE_T
33 AC_TYPE_SSIZE_T
34 AC_CHECK_MEMBERS([struct stat.st_rdev])
35 AC_TYPE_UINT16_T
36 AC_TYPE_UINT32_T
37 AC_TYPE_UINT64_T
38 AC_TYPE_UINT8_T
39 AC_CHECK_TYPES([ptrdiff_t])
40
41 # Checks for library functions.
42 AC_FUNC_MALLOC
43 AC_FUNC_MBRTOWC
44 AC_FUNC_MKTIME
45 AC_FUNC_REALLOC
46 AC_FUNC_STRCOLL
47 AC_FUNC_STRTOD
48 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])
49
50 AC_CONFIG_FILES([Makefile])
51 AC_OUTPUT