summaryrefslogtreecommitdiffstats
path: root/cpukit/mghttpd
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/mghttpd')
-rw-r--r--cpukit/mghttpd/Makefile.am2
-rw-r--r--cpukit/mghttpd/preinstall.am2
2 files changed, 4 insertions, 0 deletions
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