AC_INIT(libxplcommon, 0.1, ivaradi@gmail.com) AM_INIT_AUTOMAKE([foreign]) LT_INIT AM_PROG_AS AC_PROG_CC AC_PROG_CXX 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_POSIX], test $_target_win32 -ne 0) if test $_target_win32 -eq 0; then 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_CONFIG_FILES([ Makefile libxplcommon.pc src/Makefile src/xplcommon/Makefile src/xplcommon/posix/Makefile src/xplcommon/win32/Makefile test/Makefile ]) AC_CONFIG_HEADERS([src/xplcommon/config.h]) AC_OUTPUT()