Line | |
---|
1 | AC_DEFUN([AM_VSCPL_TARGET_API], [
|
---|
2 |
|
---|
3 | AC_CHECK_HEADERS([windows.h winsock2.h])
|
---|
4 |
|
---|
5 | test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes"
|
---|
6 | _target_win32=$?
|
---|
7 |
|
---|
8 | AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
|
---|
9 | AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64")
|
---|
10 | AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
|
---|
11 | if test $_target_win32 -eq 0; then
|
---|
12 | if test "$host_cpu" = "x86_64"; then
|
---|
13 | AC_DEFINE([TARGET_API_WIN64], [1], [Define if the target is the 64-bit Win32 API.])
|
---|
14 | fi
|
---|
15 | AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
|
---|
16 | else
|
---|
17 | AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.])
|
---|
18 | fi
|
---|
19 |
|
---|
20 | ])
|
---|
21 |
|
---|
22 | AC_DEFUN([AM_VSCPL], [
|
---|
23 | PKG_CHECK_MODULES([VSCPL], [vscpl >= @VERSION@])
|
---|
24 | ])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.