Diff

Differences From Artifact [03a71efe74]:

To Artifact [c2b5bbda30]:


    22     22   	else
    23     23   		tclconfigsh="${with_tcl}/tclConfig.sh"
    24     24   	fi
    25     25   
    26     26   	if test -f "${tclconfigsh}"; then
    27     27   		source "${tclconfigsh}"
    28     28   
    29         -		CFLAGS="${CFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic"
    30         -		CPPFLAGS="${CPPFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic"
           29  +		CFLAGS="${CFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/unix"
           30  +		CPPFLAGS="${CPPFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/unix"
    31     31   		LDFLAGS="${LDFLAGS}"
    32     32   		LIBS="${LIBS} ${TCL_LIBS}"
    33     33   	fi
    34     34   
    35     35   	AC_SUBST(CFLAGS)
    36     36   	AC_SUBST(CPPFLAGS)
    37     37   	AC_SUBST(LDFLAGS)
................................................................................
    46     46   	STATICLIBCXX="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic"
    47     47   	LIBS="${LIBS} ${STATICLIBCXX}"
    48     48   
    49     49   	AC_SUBST(LIBS)
    50     50   
    51     51   	AC_MSG_RESULT([${STATICLIBCXX}])
    52     52   ])
           53  +
           54  +AC_DEFUN(DC_FIND_TCLKIT_LIBS, [
           55  +	for proj in mk4tcl tcl tclvfs; do
           56  +		AC_MSG_CHECKING([for libraries required for ${proj}])
           57  +
           58  +		libdir="../../../${proj}/inst"
           59  +		libfiles="`find "${libdir}" -name '*.a' | tr "\n" ' '`"
           60  +
           61  +		ARCHS="${ARCHS} ${libfiles}"
           62  +
           63  +		AC_MSG_RESULT([${libfiles}])
           64  +	done
           65  +
           66  +	AC_SUBST(ARCHS)
           67  +])