xref: /openbsd-src/gnu/usr.bin/perl/hints/irix_4.sh (revision 9f11ffb7133c203312a01e4b986886bc88c7d74b)
1#irix_4.sh
2# Last modified Fri May  5 14:06:37 EDT 1995
3optimize='-O1'
4
5# Does Configure really get these wrong? Why?
6d_voidsig=define
7d_charsprf=undef
8
9case "$cc" in
10*gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
11*) ccflags="$ccflags -ansiposix -signed" ;;
12esac
13
14# This hint due thanks Hershel Walters <walters@smd4d.wes.army.mil>
15# Date: Tue, 31 Jan 1995 16:32:53 -0600 (CST)
16# Subject: IRIX4.0.4(.5? 5.0?) problems
17# I don't know if they affect versions of perl other than 5.000 or
18# versions of IRIX other than 4.0.4.
19#
20cat <<'EOM' >&4
21If you have problems, you might have try including
22	-cckr
23in ccflags.
24EOM
25
26case "$usethreads" in
27$define|true|[yY]*)
28        cat >&4 <<EOM
29IRIX `uname -r` does not support POSIX threads.
30You should upgrade to at least IRIX 6.2 with pthread patches.
31EOM
32	exit 1
33	;;
34esac
35
36case " $use64bits $use64bitint $use64bitall " in
37*" $define "*|*" true "*|*" [yY] "*)
38	cat >&4 <<EOM
39IRIX `uname -r` does not support 64-bit types.
40You should upgrade to at least IRIX 6.2.
41Cannot continue, aborting.
42EOM
43	exit 1
44esac
45
46