@@ -227,6 +227,9 @@ LIBHACL_SHA2_A= Modules/_hacl/libHacl_Hash_SHA2.a
227
227
# Default zoneinfo.TZPATH. Added here to expose it in sysconfig.get_config_var
228
228
TZPATH=@TZPATH@
229
229
230
+ # If to install mimalloc headers
231
+ WITH_MIMALLOC=@WITH_MIMALLOC@
232
+
230
233
# Modes for directories, executables and data files created by the
231
234
# install process. Default to user-only-writable for all file types.
232
235
DIRMODE= 755
@@ -2581,10 +2584,11 @@ inclinstall:
2581
2584
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
2582
2585
else true; \
2583
2586
fi
2584
- @if test ! -d $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; then \
2585
- echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc"; \
2586
- $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2587
- else true; \
2587
+ @if test "$(WITH_MIMALLOC)" == "yes"; then \
2588
+ if test ! -d $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; then \
2589
+ echo "Creating directory $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc"; \
2590
+ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2591
+ fi; \
2588
2592
fi
2589
2593
@for i in $(srcdir)/Include/*.h; \
2590
2594
do \
@@ -2601,13 +2605,15 @@ inclinstall:
2601
2605
echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal; \
2602
2606
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal; \
2603
2607
done
2604
- echo $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h
2605
- $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h
2606
- @for i in $(srcdir)/Include/internal/mimalloc/mimalloc/*.h; \
2607
- do \
2608
- echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal/mimalloc/mimalloc; \
2609
- $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2610
- done
2608
+ @if test "$(WITH_MIMALLOC)" == "yes"; then \
2609
+ echo $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
2610
+ $(INSTALL_DATA) $(srcdir)/Include/internal/mimalloc/mimalloc.h $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc.h; \
2611
+ for i in $(srcdir)/Include/internal/mimalloc/mimalloc/*.h; \
2612
+ do \
2613
+ echo $(INSTALL_DATA) $$i $(INCLUDEPY)/internal/mimalloc/mimalloc; \
2614
+ $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
2615
+ done; \
2616
+ fi
2611
2617
echo $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2612
2618
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2613
2619
0 commit comments