--- tnm/generic/tnmInt.h +++ tnm/generic/tnmInt.h @@ -36,7 +36,10 @@ #define TnmGetTime TclpGetTime #endif +#if TCL_MAJOR_VERSION < 8 || TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 4 #define TnmCreateDirectory TclpCreateDirectory +#endif + #if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 8 && TCL_RELEASE_SERIAL > 2 #define TnmStat TclStat #else --- tnm/generic/tnmUtil.c +++ tnm/generic/tnmUtil.c @@ -12,6 +12,18 @@ #include "tnmInt.h" #include "tnmPort.h" +#if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 4 || TCL_MAJOR_VERSION > 8 +int TnmCreateDirectory(char *path) +{ + Tcl_Obj *o; + int res; + o = Tcl_NewStringObj(path, -1); + Tcl_IncrRefCount(o); + res = Tcl_FSCreateDirectory(o); + Tcl_DecrRefCount(o); + return res; +} +#endif /* *---------------------------------------------------------------------- --- unix/configure.in +++ unix/configure.in @@ -251,8 +251,8 @@ AC_CHECK_LIB(ieee, main, [LIBS="$LIBS -lieee"]) AC_CHECK_LIB(rpc, main, [LIBS="$LIBS -lrpc"]) AC_CHECK_LIB(rpcsvc, main, [LIBS="$LIBS -lrpcsvc"]) -AC_CHECK_FUNC(res_mkquery, , - AC_CHECK_LIB(resolv, res_mkquery, [LIBS="$LIBS -lresolv"])) +AC_CHECK_FUNC(__res_mkquery, , + AC_CHECK_LIB(resolv, __res_mkquery, [LIBS="$LIBS -lresolv"])) #---------------------------------------------------------------------------- # Checks for various include files missing on some machines.