summaryrefslogtreecommitdiffstats
path: root/unix/aclocal.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-02-01 11:41:31 (GMT)
committerhobbs <hobbs>2000-02-01 11:41:31 (GMT)
commitd9ef6f977a3ef1459bb388a5eb9d6ccdc1f8006b (patch)
tree34a8c6f4fc66e00051094c3efb05a1f095bc5b13 /unix/aclocal.m4
parentdb70212c93ef7d9308f60605350b00f38d6f0433 (diff)
downloadtk-d9ef6f977a3ef1459bb388a5eb9d6ccdc1f8006b.zip
tk-d9ef6f977a3ef1459bb388a5eb9d6ccdc1f8006b.tar.gz
tk-d9ef6f977a3ef1459bb388a5eb9d6ccdc1f8006b.tar.bz2
* unix/aclocal.m4: added *BSD ELF recognition for
SHARED_LIB_SUFFIX determination (from Tcl's tcl.m4)
Diffstat (limited to 'unix/aclocal.m4')
-rw-r--r--unix/aclocal.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/unix/aclocal.m4 b/unix/aclocal.m4
index 9e7243d..16b7b1b 100644
--- a/unix/aclocal.m4
+++ b/unix/aclocal.m4
@@ -741,7 +741,17 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
DL_LIBS=""
LDFLAGS=""
LD_SEARCH_FLAGS=""
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
+ 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"