Diff

Differences From Artifact [c6cbc574e2]:

To Artifact [048e8a608f]:


     1      1   prefix = UNSPECIFIED
     2      2   exec_prefix = @exec_prefix@
     3      3   libdir = @libdir@
     4      4   
     5      5   TARGET = @TARGET@
     6      6   
     7      7   CC = @CC@
            8  +CPP = @CPP@
     8      9   AR = @AR@
     9     10   RANLIB = @RANLIB@
    10     11   CFLAGS = @CFLAGS@ @SHOBJFLAGS@
    11     12   CPPFLAGS = @CPPFLAGS@ -I@srcdir@ -I@srcdir@/tcc -Itcc @DEFS@
    12     13   LDFLAGS =
    13     14   SHOBJLDFLAGS = @SHOBJLDFLAGS@
    14     15   LIBS = @LIBS@
................................................................................
    61     62   	$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib"
    62     63   	$(INSTALL) -d "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"
    63     64   	$(INSTALL) -m 0755 $(TARGET) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    64     65   	$(INSTALL) -m 0644 pkgIndex.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    65     66   	$(INSTALL) -m 0644 $(srcdir)/tcc.tcl "$(DESTDIR)$(PACKAGE_INSTALL_DIR)"
    66     67   	$(INSTALL) -m 0644 tcc/libtcc1.a "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib"
    67     68   	$(INSTALL) -m 0644 $(shell echo $(srcdir)/tcc/include/*) "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include"
    68         -	@if [ "$(host_os)" = "mingw32msvc" ]; then \
           69  +	@if ! echo "_WIN32" | $(CPP) $(CPPFLAGS) - | grep '^_WIN32$$' >/dev/null; then \
    69     70   		echo cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
    70     71   		cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
    71     72   	fi
    72     73   	( for file in tcl.h limits.h unistd.h; do echo "#include <$${file}>"; done ) | \
    73         -		$(CC) $(CPPFLAGS) $(CFLAGS) -I$(srcdir)/tcc/include -I$(srcdir)/tcc/include -E - | awk -f $(srcdir)/headers.awk | while read src dst; do \
           74  +		$(CPP) $(CPPFLAGS) $(CFLAGS) -I$(srcdir)/tcc/include -I$(srcdir)/tcc/include - | awk -f $(srcdir)/headers.awk | while read src dst; do \
    74     75   			dst="$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/$$dst"; \
    75     76   			if [ -e "$${dst}" ]; then continue; fi; \
    76     77   			dstdir="$$(dirname "$$dst")"; \
    77     78   			echo mkdir -p "$$dstdir"; \
    78     79   			mkdir -p "$$dstdir"; \
    79     80   			echo cp "$$src" "$$dst"; \
    80     81   			cp "$$src" "$$dst"; \