summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-28 16:52:31 (GMT)
committerhobbs <hobbs>2009-04-28 16:52:31 (GMT)
commit1d39d37569915c98b2d0481ee6fc1651c97ad221 (patch)
treee082becd378016e69b7752a3713319111d0136b1 /unix/tcl.m4
parent972dc7549d64a4c2203fec9c5d425e1d1a06d2bb (diff)
downloadtk-1d39d37569915c98b2d0481ee6fc1651c97ad221.zip
tk-1d39d37569915c98b2d0481ee6fc1651c97ad221.tar.gz
tk-1d39d37569915c98b2d0481ee6fc1651c97ad221.tar.bz2
* unix/tcl.m4, unix/configure (SC_CONFIG_CFLAGS): harden the check
to add _r to CC on AIX with threads.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index f104704..21a2d93 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1064,11 +1064,12 @@ dnl AC_CHECK_TOOL(AR, ar)
if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
# AIX requires the _r compiler when gcc isn't being used
case "${CC}" in
- *_r)
+ *_r|*_r\ *)
# ok ...
;;
*)
- CC=${CC}_r
+ # Make sure only first arg gets _r
+ CC=`echo "$CC" | sed -e 's/^\([[^ ]]*\)/\1_r/'`
;;
esac
AC_MSG_RESULT([Using $CC for compiling with threads])