Check-in [5ade025cc5]
Overview
Comment:Updated to work on older autoconf implementations and support the new versionscript.m4 interface
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5ade025cc560f2c0ec46ed3e641fc39e1862d432
User & Date: rkeene on 2014-06-21 04:44:15
Other Links: manifest | tags
Context
2014-06-21
05:06
Updated to allow "tcc" to build check-in: 035f309e4f user: rkeene tags: trunk
04:44
Updated to work on older autoconf implementations and support the new versionscript.m4 interface check-in: 5ade025cc5 user: rkeene tags: trunk
04:43
Updated to include "strtonum" implementation (public domain) check-in: 0219a4ded0 user: rkeene tags: trunk
Changes

Modified Makefile.in from [0a8186dc49] to [203970abed].

    72     72   	@if ! echo "_WIN32" | $(CPP) $(CPPFLAGS) - | grep '^_WIN32$$' >/dev/null; then \
    73     73   		echo cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
    74     74   		cp -r $(srcdir)/tcc/win32/include/* "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/"; \
    75     75   		echo cp -r $(srcdir)/tcc/win32/lib/*.def "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib/"; \
    76     76   		cp -r $(srcdir)/tcc/win32/lib/*.def "$(DESTDIR)$(PACKAGE_INSTALL_DIR)/lib/"; \
    77     77   	fi
    78     78   	( for file in $(INSTALL_HEADERS); do echo "#include <$${file}>"; done ) | \
    79         -		$(CPP) -v $(CPPFLAGS) -I$(srcdir)/tcc/include -I$(srcdir)/tcc/include - 2>&1 | awk -f $(srcdir)/headers.awk | while read src dst; do \
           79  +		$(CPP) -v $(CPPFLAGS) -I$(srcdir)/tcc/include -I$(srcdir)/tcc/include - 2>&1 | @AWK@ -f $(srcdir)/headers.awk | while read src dst; do \
    80     80   			dst="$(DESTDIR)$(PACKAGE_INSTALL_DIR)/include/$$dst"; \
    81     81   			if [ -e "$${dst}" ]; then continue; fi; \
    82     82   			dstdir="$$(dirname "$$dst")"; \
    83     83   			mkdir -p "$$dstdir"; \
    84     84   			echo cp "$$src" "$$dst"; \
    85     85   			cp "$$src" "$$dst"; \
    86     86   		done

Modified configure.ac from [b6d99aa0b3] to [3714b15ff7].

     1      1   dnl Define ourselves
     2      2   AC_INIT(tcc4tcl, @@VERS@@)
     3      3   
     4      4   dnl Checks for programs.
     5      5   AC_PROG_CC
            6  +AC_PROG_CPP
     6      7   AC_PROG_MAKE_SET
     7      8   AC_PROG_INSTALL
     8      9   AC_GNU_SOURCE
     9     10   AC_LANG(C)
    10     11   
    11     12   dnl Determine system information
    12     13   DC_CHK_OS_INFO
................................................................................
    69     70   		;;
    70     71   	*)
    71     72   		HOST_PATH_SEPARATOR=':'
    72     73   		;;
    73     74   esac
    74     75   AC_SUBST(HOST_PATH_SEPARATOR)
    75     76   
           77  +dnl Find a suitable awk
           78  +AC_CHECK_TOOLS(AWK, gawk awk, [false])
           79  +
    76     80   dnl Perform Tcl Extension required stuff
    77     81   TCLEXT_INIT
    78     82   
    79     83   dnl This must be done last since it breaks the compilation
    80     84   if test "${TCC4TCL_TARGET}" = "shared"; then
    81         -	DC_SETVERSIONSCRIPT([${srcdir}/tcc4tcl.vers], [tcc4tcl.syms])
    82         -	DC_FIND_STRIP_AND_REMOVESYMS([tcc4tcl.syms])
           85  +	DC_SETUP_STABLE_API([${srcdir}/tcc4tcl.vers], [tcc4tcl.syms])
    83     86   fi
    84     87   
    85     88   dnl Produce output
    86     89   AC_OUTPUT(Makefile pkgIndex.tcl tcc4tcl.syms)