From cb7b57e174d7a559af3ec910a99e0538cc9f99b7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Oct 2012 11:09:32 -0500 Subject: mghttpd: Requires POSIX to build server and tests Formerly, mghttpd was conditional only on networking being enabled. It uses on pthread and must also be conditional on POSIX threads support being enabled. --- cpukit/mghttpd/Makefile.am | 2 ++ cpukit/mghttpd/preinstall.am | 2 ++ 2 files changed, 4 insertions(+) (limited to 'cpukit/mghttpd') diff --git a/cpukit/mghttpd/Makefile.am b/cpukit/mghttpd/Makefile.am index e4ed9fdee1..78af78d185 100644 --- a/cpukit/mghttpd/Makefile.am +++ b/cpukit/mghttpd/Makefile.am @@ -1,6 +1,7 @@ include $(top_srcdir)/automake/compile.am if LIBNETWORKING +if HAS_PTHREADS include_mghttpddir = $(includedir)/mghttpd project_lib_LIBRARIES = libmghttpd.a @@ -11,6 +12,7 @@ libmghttpd_a_CPPFLAGS += -DNO_SSL -DNO_POPEN -DNO_CGI libmghttpd_a_SOURCES = mongoose.c mongoose.h include_mghttpd_HEADERS = mongoose.h endif +endif include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/mghttpd/preinstall.am b/cpukit/mghttpd/preinstall.am index aa246f014e..305a91449f 100644 --- a/cpukit/mghttpd/preinstall.am +++ b/cpukit/mghttpd/preinstall.am @@ -24,6 +24,7 @@ $(PROJECT_LIB)/$(dirstamp): PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp) if LIBNETWORKING +if HAS_PTHREADS $(PROJECT_INCLUDE)/mghttpd/$(dirstamp): @$(MKDIR_P) $(PROJECT_INCLUDE)/mghttpd @: > $(PROJECT_INCLUDE)/mghttpd/$(dirstamp) @@ -37,3 +38,4 @@ $(PROJECT_INCLUDE)/mghttpd/mongoose.h: mongoose.h $(PROJECT_INCLUDE)/mghttpd/$(d $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mghttpd/mongoose.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/mghttpd/mongoose.h endif +endif -- cgit v1.2.3