;;
esac
+# There is a devious bug in the MIPSpro 7.4 compiler:
+# memcmp() is an inlined intrinsic, and "sometimes" it gets compiled wrong.
+#
+# In Perl the most obvious hit is regcomp.c:S_regpposixcc(),
+# causing bus errors when compiling the POSIX character classes like
+# /[[:digit:]], which means that miniperl cannot build perl.
+# (That is almost only the one victim: one single test in re/pat fails, also.)
+#
+# Therefore let's turn the inline intrinsics off and let the normal
+# libc versions be used instead. This may cause a performance hit
+# but a little slower is better than zero speed.
+#
+# MIPSpro C 7.4.1m is supposed to have fixed this bug.
+#
+case "$ccversion" in
+"MIPSpro Compilers: Version 7.4")
+ ccflags="$ccflags -U__INLINE_INTRINSICS"
+ ;;
+esac
+
EOCCBU
# End of cc.cbu callback unit. - Allen
*) ldflags="$ldflags -Wl,-woff,84" ;;
esac
+# IRIX freeware kits sometimes have only o32 libraries for gdbm.
+# You can try Configure ... -Dlibswanted='m' -Dnoextensions='GDBM_File'
+# since the libm seems to be pretty much the only really needed library.
+
# Irix 6.5.6 seems to have a broken header <sys/mode.h>
# don't include that (it doesn't contain S_IFMT, S_IFREG, et al)
#define sPRIfldbl $sPRIfldbl
-#define I_STDLIB $i_stdlib
-#ifdef I_STDLIB
#include <stdlib.h>
-#endif
int main()
{
#define sPRIfldbl $sPRIfldbl
-#define I_STDLIB $i_stdlib
-#ifdef I_STDLIB
#include <stdlib.h>
-#endif
int main()
{
# Helmut Jarausch reports that Perl's malloc is rather unusable
# with IRIX, and SGI confirms the problem.
usemymalloc=${usemymalloc:-false}
+
+# Configure finds <fcntl.h> but then thinks it can use <sys/file.h>
+# instead; in IRIX this is not true because the prototype of fcntl()
+# requires explicit include of <fcntl.h>
+i_fcntl=define
+
+# There is <prctl.h> but it's not the Linux one that Configure expects.
+d_prctl="$undef"