summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-15 05:01:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-15 05:01:17 +0000
commit0d3f4a92cf4b6558f19a39d416c08db5e0b64a5f (patch)
treef389d5adef64ead31fe63f41eb979ed5d37d9e78 /configure
parent31c55301e4c3c84803186d28d2764363b457532f (diff)
2000-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure')
-rw-r--r--configure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index ce9c3dcae1..2e4c5af106 100644
--- a/configure
+++ b/configure
@@ -4933,6 +4933,25 @@ case "$target_os" in
rhasody*)
CFLAGS="$CFLAGS -pipe -no-precomp"
;;
+ osf*)
+ if $without_gcc = "yes" ; then
+ CFLAGS="$CFLAGS -ansi"
+ else
+ # compile something small: taint.c is fine for this.
+ # the main point is the '-v' flag of 'cc'.
+ case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in
+ */gemc_cc*) # we have the new DEC GEM CC
+ CFLAGS="$CFLAGS -frpm d -ieee"
+ ;;
+ *) # we have the old MIPS CC
+ CFLAGS="$CFLAGS -oldc"
+ ;;
+ esac
+ # cleanup
+ rm -f /tmp/main.o
+ CFLAGS="$CFLAGS -std"
+ fi
+ ;;
*)
;;
esac