Skip to content

Commit

Permalink
Conditionally compiling codetagger if not on Win32
Browse files Browse the repository at this point in the history
Codetagger uses systems calls such as link which
are not fully supported on WIN32 platforms.
  • Loading branch information
syzdek committed Aug 14, 2009
1 parent d3ecee9 commit e15dd0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile.am
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions configure.ac
Expand Up @@ -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

Expand Down

0 comments on commit e15dd0b

Please sign in to comment.