summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-28 16:53:17 (GMT)
committerhobbs <hobbs>2009-04-28 16:53:17 (GMT)
commit554ab376d71ec5c1566db04e0bdadebf3d9dc1a6 (patch)
tree844eff74e12a55ca3b809ae5ec580788afeae6f1 /unix/configure
parent8ffda9025c94616a1415f41f6daf5438c921f861 (diff)
downloadtk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.zip
tk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.tar.gz
tk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.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/configure')
-rwxr-xr-xunix/configure5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure
index 50192b1..544ef29 100755
--- a/unix/configure
+++ b/unix/configure
@@ -4911,11 +4911,12 @@ fi
# 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
echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5