From 29197d74400e7f04398141b1f8b0ed363d7d364f Mon Sep 17 00:00:00 2001 From: Charles Wilson Date: Sun, 22 Nov 2009 01:14:28 +0000 Subject: [PATCH] Only build cygdrop when $host is cygwin. --- ChangeLog | 7 +++++++ Makefile.am | 9 ++++++--- NEWS | 1 + configure.ac | 5 +++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index afadc2f..caeee8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-11-21 Charles Wilson + + Only build cygdrop when $host is cygwin. + * configure.ac: Arrange to build cygdrop only when CYGWIN. + * Makefile.am: Ditto. + * NEWS: Add cygdrop. + 2009-11-21 Christian Franke Add cygdrop utility. diff --git a/Makefile.am b/Makefile.am index 998a40d..e976762 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,8 +12,7 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) if WITH_WINDOWS_PROGRAMS windows_progs = src/banner/banner src/clip/getclip src/clip/putclip \ src/cygstart/cygstart src/lpr/lpr src/mkshortcut/mkshortcut \ - src/readshortcut/readshortcut \ - src/cygdrop/cygdrop + src/readshortcut/readshortcut windows_ltlibraries = src/cygicons/libicons.la windows_headers = src/cygicons/cygicons.h cygicons_docs = src/cygicons/README @@ -26,9 +25,13 @@ ipc_progs = src/ipc/semtool src/ipc/shmtool \ ipc_scripts = src/ipc/ipck endif +if WITH_CYGWIN_SPECIFIC_PROGRAMS +cygwin_specific_progs = src/cygdrop/cygdrop +endif + bin_PROGRAMS = src/ascii/ascii $(windows_progs) src/conv/conv \ src/dump/dump $(ipc_progs) \ - src/realpath/realpath + src/realpath/realpath $(cygwin_specific_progs) bin_SCRIPTS = $(ipc_scripts) diff --git a/NEWS b/NEWS index cdcedb5..d4a436f 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ Add --help option to lpr. Build system improvements. Add support for building on MinGW. + Add new cygdrop utility (Christian Franke; requires w2k or better) 1.4.0 Add support to cygstart for filenames with UTF/wide chars. diff --git a/configure.ac b/configure.ac index 3a1d18b..73edd6e 100644 --- a/configure.ac +++ b/configure.ac @@ -85,6 +85,11 @@ esac],dnl dnl Set Conditionals for Makefile.am AM_CONDITIONAL(WITH_WINDOWS_PROGRAMS, test "$ac_cv_func_OpenClipboard" = yes) AM_CONDITIONAL(WITH_NATIVE_IPC_PROGRAMS, test "$HAVE_INTRINSIC_IPC" = yes) +host_is_cygwin=no +case "$host" in +*cygwin* ) host_is_cygwin=yes ;; +esac +AM_CONDITIONAL(WITH_CYGWIN_SPECIFIC_PROGRAMS, test "$host_is_cygwin" = yes) AC_CONFIG_FILES([Makefile po/Makefile.in src/cygicons/cygicons.rc]) -- 2.43.5