Last change
on this file since 21:eb59943050c9 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 | |
---|
1 | AC_INIT(libxplcommon, 0.1, ivaradi@gmail.com)
|
---|
2 | AM_INIT_AUTOMAKE([foreign])
|
---|
3 |
|
---|
4 | LT_INIT
|
---|
5 |
|
---|
6 | AM_PROG_AS
|
---|
7 | AC_PROG_CC
|
---|
8 | AC_PROG_CXX
|
---|
9 |
|
---|
10 | AC_CHECK_HEADERS([windows.h winsock2.h])
|
---|
11 |
|
---|
12 | test "$ac_cv_header_windows_h" = "yes" -a "$ac_cv_header_winsock2_h" = "yes"
|
---|
13 | _target_win32=$?
|
---|
14 |
|
---|
15 | AM_CONDITIONAL([TARGET_API_WIN32], test $_target_win32 -eq 0)
|
---|
16 | AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
|
---|
17 | if test $_target_win32 -eq 0; then
|
---|
18 | AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
|
---|
19 | else
|
---|
20 | AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.])
|
---|
21 | fi
|
---|
22 |
|
---|
23 | AC_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 |
|
---|
33 | AC_CONFIG_HEADERS([src/xplcommon/config.h])
|
---|
34 |
|
---|
35 | AC_OUTPUT()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.