diff options
author | hobbs <hobbs> | 2000-01-11 22:09:18 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-01-11 22:09:18 (GMT) |
commit | 80aca675e000cc95aa5910d75144bada69786139 (patch) | |
tree | 6d094056c0cb17773c790dd3b5d4daa596cd5cb4 | |
parent | 6cf44cfd1a6b849cbfabaf7d6b2279499e3b068e (diff) | |
download | tcl-80aca675e000cc95aa5910d75144bada69786139.zip tcl-80aca675e000cc95aa5910d75144bada69786139.tar.gz tcl-80aca675e000cc95aa5910d75144bada69786139.tar.bz2 |
* unix/tclUnixFile.c: fixed signature style on functions
* unix/Makefile.in: made sure tcl.m4 would be installed with dist
* unix/tcl.m4: added ELF support for NetBSD [Bug: 3959]
-rw-r--r-- | unix/Makefile.in | 7 | ||||
-rw-r--r-- | unix/tcl.m4 | 15 | ||||
-rw-r--r-- | unix/tclUnixFile.c | 32 |
3 files changed, 33 insertions, 21 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index 26d91dd..e59ce25 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.51 1999/12/21 23:59:49 hobbs Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.52 2000/01/11 22:09:18 hobbs Exp $ VERSION = @TCL_VERSION@ @@ -460,7 +460,7 @@ topDirName: gendate: yacc -l $(GENERIC_DIR)/tclGetDate.y sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ - -e 's?SCCSID?RCS: @(#) $$Id: Makefile.in,v 1.51 1999/12/21 23:59:49 hobbs Exp $$?' \ + -e 's?SCCSID?RCS: @(#) $$Id: Makefile.in,v 1.52 2000/01/11 22:09:18 hobbs Exp $$?' \ -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ -e '/TclDatenewstate:/d' -e '/#pragma/d' \ -e '/#include <inttypes.h>/d' -e 's/const /CONST /g' \ @@ -1046,11 +1046,10 @@ dist: $(UNIX_DIR)/configure cp $(UNIX_DIR)/Makefile.in $(DISTDIR)/unix chmod 664 $(DISTDIR)/unix/Makefile.in cp $(UNIX_DIR)/configure $(UNIX_DIR)/configure.in \ - $(UNIX_DIR)/aclocal.m4 \ + $(UNIX_DIR)/tcl.m4 $(UNIX_DIR)/aclocal.m4 \ $(UNIX_DIR)/tclConfig.sh.in $(UNIX_DIR)/install-sh \ $(UNIX_DIR)/porting.notes $(UNIX_DIR)/porting.old \ $(UNIX_DIR)/README $(UNIX_DIR)/ldAix \ - $(UNIX_DIR)/tcl.m4 $(UNIX_DIR)/aclocal.m4 \ $(DISTDIR)/unix chmod 775 $(DISTDIR)/unix/configure $(DISTDIR)/unix/configure.in chmod 775 $(DISTDIR)/unix/ldAix diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 0b8fdda..4c59293 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -756,7 +756,8 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*) # Not available on all versions: check for include file. AC_CHECK_HEADER(dlfcn.h, [ - SHLIB_CFLAGS="-fpic" + # NetBSD/SPARC needs -fPIC, -fpic will not do. + SHLIB_CFLAGS="-fPIC" SHLIB_LD="ld -Bshareable -x" SHLIB_LD_LIBS="" SHLIB_SUFFIX=".so" @@ -765,6 +766,18 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [ LDFLAGS="" LD_SEARCH_FLAGS="" SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' + LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + AC_MSG_CHECKING(for ELF) + AC_EGREP_CPP(yes, [ +#ifdef __ELF__ + yes +#endif + ], + AC_MSG_RESULT(yes) + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so', + AC_MSG_RESULT(no) + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' + ) ], [ SHLIB_CFLAGS="" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 12653f3..2679fdb 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixFile.c,v 1.8 1999/12/13 03:05:52 hobbs Exp $ + * RCS: @(#) $Id: tclUnixFile.c,v 1.9 2000/01/11 22:09:19 hobbs Exp $ */ #include "tclInt.h" @@ -195,15 +195,15 @@ TclpFindExecutable(argv0) */ int -TclpMatchFilesTypes( - Tcl_Interp *interp, /* Interpreter to receive results. */ - char *separators, /* Directory separators to pass to TclDoGlob. */ - Tcl_DString *dirPtr, /* Contains path to directory to search. */ - char *pattern, /* Pattern to match against. */ - char *tail, /* Pointer to end of pattern. Tail must +TclpMatchFilesTypes(interp, separators, dirPtr, pattern, tail, types) + Tcl_Interp *interp; /* Interpreter to receive results. */ + char *separators; /* Directory separators to pass to TclDoGlob */ + Tcl_DString *dirPtr; /* Contains path to directory to search. */ + char *pattern; /* Pattern to match against. */ + char *tail; /* Pointer to end of pattern. Tail must * point to a location in pattern and must - * not be static.*/ - GlobTypeData *types) /* Object containing list of acceptable types. + * not be static. */ + GlobTypeData *types; /* Object containing list of acceptable types. * May be NULL. */ { char *native, *fname, *dirName, *patternEnd = tail; @@ -424,14 +424,14 @@ TclpMatchFilesTypes( * 'TclpMatchFilesTypes' instead. */ int -TclpMatchFiles( - Tcl_Interp *interp, /* Interpreter to receive results. */ - char *separators, /* Directory separators to pass to TclDoGlob. */ - Tcl_DString *dirPtr, /* Contains path to directory to search. */ - char *pattern, /* Pattern to match against. */ - char *tail) /* Pointer to end of pattern. Tail must +TclpMatchFiles(interp, separators, dirPtr, pattern, tail) + Tcl_Interp *interp; /* Interpreter to receive results. */ + char *separators; /* Directory separators to pass to TclDoGlob */ + Tcl_DString *dirPtr; /* Contains path to directory to search. */ + char *pattern; /* Pattern to match against. */ + char *tail; /* Pointer to end of pattern. Tail must * point to a location in pattern and must - * not be static.*/ + * not be static. */ { return TclpMatchFilesTypes(interp,separators,dirPtr,pattern,tail,NULL); } |