From e15dd0b5c5c9cc3cda8d51aedc8492da89061dd2 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Fri, 14 Aug 2009 14:10:51 -0800 Subject: [PATCH] Conditionally compiling codetagger if not on Win32 Codetagger uses systems calls such as link which are not fully supported on WIN32 platforms. --- Makefile.am | 5 ++++- configure.ac | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f2f36df..2d9bea3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,7 +39,7 @@ DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@ # automake targets -bin_PROGRAMS = src/bitops src/codetagger src/numconvert src/posixregex +bin_PROGRAMS = src/bitops src/numconvert src/posixregex noinst_PROGRAMS = src/recurse noinst_HEADERS = src/common.h man_MANS = doc/codetagger.1 @@ -57,6 +57,9 @@ src_codetagger_DEPENDENCIES = $(lib_LTLIBRARIES) Makefile src_codetagger_CPPFLAGS = -DPROGRAM_NAME="\"codetagger\"" $(AM_CPPFLAGS) src_codetagger_SOURCES = $(noinst_HEADERS) \ src/codetagger.c +if ! IS_WIN32 +bin_PROGRAMS += src/codetagger +endif # macros for src/numconvert diff --git a/configure.ac b/configure.ac index 2ea91b9..b2905a1 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,13 @@ AC_PROG_LIBTOOL # GNU gettext support AM_GNU_GETTEXT([external]) +# tests for windows platform +case $host in + *mingw*) win32_host='yes';; + *) win32_host='no';; +esac +AM_CONDITIONAL([IS_WIN32], [test x$win32_host = xyes]) + AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) AC_SYZDEK_GIT_PACKAGE_VERSION