-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.ac
More file actions
66 lines (45 loc) · 1.19 KB
/
Copy pathconfigure.ac
File metadata and controls
66 lines (45 loc) · 1.19 KB
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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([mingwpath], [0.50], [berryzplus@gmail.com])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/mingwpath.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
AX_ENABLE_BUILDDIR
AM_INIT_AUTOMAKE()
# Checks for programs.
AC_PROG_CC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([string.h])
# Checks for library functions.
AC_ARG_WITH(unicode,
AS_HELP_STRING([--with-unicode], [use unicode (default is YES)]),
[ac_cv_with_unicode=$withval], [ac_cv_with_unicode=yes])
if test $ac_cv_with_unicode = yes; then
AC_DEFINE(_UNICODE, 1, [Define to 1 if you use unicode.])
fi
AH_BOTTOM([
#ifdef _UNICODE
#define UNICODE 1
#endif
#include <string.h>
#include <stdlib.h>
#include <io.h>
#include <stdio.h>
#include <tchar.h>
#if !defined(_WIN32_WINNT)
#define _WIN32_WINNT_WINXP 0x0501
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define WINVER _WIN32_WINNT
#endif
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifndef _SHLOBJ_H
#include <shlobj.h>
#endif
])
AC_CONFIG_FILES(Makefile)
AC_OUTPUT