AC_DEFUN([AM_VSCPL_TARGET_API], [ AC_CHECK_HEADERS([windows.h winsock2.h]) test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes" _target_win32=$? AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0) AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64") AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0) if test $_target_win32 -eq 0; then if test "$host_cpu" = "x86_64"; then AC_DEFINE([TARGET_API_WIN64], [1], [Define if the target is the 64-bit Win32 API.]) fi AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.]) else AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.]) fi ]) AC_DEFUN([AM_VSCPL], [ PKG_CHECK_MODULES([VSCPL], [vscpl >= @VERSION@]) ])