summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-28 16:53:59 (GMT)
committerhobbs <hobbs>2009-04-28 16:53:59 (GMT)
commit6da62179f41c6011115f80c8720eb1c6ac8fa5f9 (patch)
tree8b5fb1220dbab0488a6ea5bd57105a7639c28bfd /unix/tcl.m4
parentb833b61c1a2034bc3c012917d44a1b2a29d26d9a (diff)
downloadtk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.zip
tk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.tar.gz
tk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.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 bcd3611..479ea08 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1128,11 +1128,12 @@ dnl AC_CHECK_TOOL(AR, ar)
AS_IF([test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"], [
# 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])