source: xplcommon/configure.ac@ 16:d70b0c40fe4a

Last change on this file since 16:d70b0c40fe4a was 4:d061ad3be7fd, checked in by István Váradi <ivaradi@…>, 12 years ago

Added support for a waitable event for POSIX and a test program

File size: 852 bytes
Line 
1AC_INIT(libxplcommon, 0.1, ivaradi@gmail.com)
2AM_INIT_AUTOMAKE([foreign])
3
4LT_INIT
5
6AM_PROG_AS
7AC_PROG_CC
8AC_PROG_CXX
9
10AC_CHECK_HEADERS([windows.h winsock2.h])
11
12test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes"
13_target_win32=$?
14
15AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
16AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
17if test $_target_win32 -eq 0; then
18 AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
19else
20 AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.])
21fi
22
23AC_CONFIG_FILES([
24 Makefile
25 libxplcommon.pc
26 src/Makefile
27 src/xplcommon/Makefile
28 src/xplcommon/posix/Makefile
29 src/xplcommon/win32/Makefile
30 test/Makefile
31])
32
33AC_CONFIG_HEADERS([src/xplcommon/config.h])
34
35AC_OUTPUT()
Note: See TracBrowser for help on using the repository browser.