Index: kitsh/buildsrc/kitsh-0.0/aclocal.m4 ================================================================== --- kitsh/buildsrc/kitsh-0.0/aclocal.m4 +++ kitsh/buildsrc/kitsh-0.0/aclocal.m4 @@ -34,17 +34,15 @@ if test -f "${tclconfigsh}"; then . "${tclconfigsh}" CFLAGS="${CFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic -I${tclconfigshdir}" CPPFLAGS="${CPPFLAGS} ${TCL_INCLUDE_SPEC} -I${TCL_SRC_DIR}/generic -I${tclconfigshdir}" - LDFLAGS="${LDFLAGS}" LIBS="${LIBS} ${TCL_LIBS}" fi AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) - AC_SUBST(LDFLAGS) AC_SUBST(LIBS) AC_MSG_RESULT([$tclconfigsh]) ]) @@ -84,17 +82,15 @@ if test -f "${tkconfigsh}"; then . "${tkconfigsh}" CFLAGS="${CFLAGS} ${TK_INCLUDE_SPEC} -I${TK_SRC_DIR}/generic -I${tkconfigshdir}" CPPFLAGS="${CPPFLAGS} ${TK_INCLUDE_SPEC} -I${TK_SRC_DIR}/generic -I${tkconfigshdir}" - LDFLAGS="${LDFLAGS}" LIBS="${LIBS} ${TK_LIBS}" fi AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) - AC_SUBST(LDFLAGS) AC_SUBST(LIBS) AC_MSG_RESULT([$tkconfigsh]) ]) @@ -198,6 +194,7 @@ else LDFLAGS="${SAVELDFLAGS}" AC_MSG_RESULT([not needed]) fi + AC_SUBST(LDFLAGS) ]) Index: kitsh/buildsrc/kitsh-0.0/configure.ac ================================================================== --- kitsh/buildsrc/kitsh-0.0/configure.ac +++ kitsh/buildsrc/kitsh-0.0/configure.ac @@ -28,11 +28,11 @@ LIBS="${SAVE_LIBS}" dnl Find zlib AC_ARG_WITH(zlib, AC_HELP_STRING([--with-zlib], [directory containing zlib]), [ CFLAGS="${CFLAGS} -I${with_zlib}/include -I${with_zlib}" - LDFLAGS="${CFLAGS} -L${with_zlib}/lib -L${with_zlib}" + LDFLAGS="${LDFLAGS} -L${with_zlib}/lib -L${with_zlib}" ]) AC_SEARCH_LIBS(inflate, z zlib,, [ AC_MSG_WARN([Couldn't find inflate (normally in zlib)!]) ]) dnl Produce output AC_OUTPUT(Makefile)