Another attempt to fix bug #18966. Added $(INCLUDES) to AS and fixed irix6.5 detection.

This commit is contained in:
cls%seawood.org 1999-12-06 03:28:31 +00:00
Родитель 5692529042
Коммит 8515120e01
2 изменённых файлов: 20 добавлений и 23 удалений

26
nsprpub/configure поставляемый
Просмотреть файл

@ -2668,7 +2668,7 @@ EOF
;; ;;
esac esac
if test "$GNU_CC"; then if test "$GNU_CC"; then
AS='$(CC) -x assembler-with-cpp -D_ASM -mips2' AS='$(CC) -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
CFLAGS="$CFLAGS -Wall -Wno-format" CFLAGS="$CFLAGS -Wall -Wno-format"
_OPTIMIZE_FLAGS="-O6" _OPTIMIZE_FLAGS="-O6"
else else
@ -2713,20 +2713,8 @@ EOF
EOF EOF
fi fi
case "${target_os}" in
irix5*)
;;
*)
cat >> confdefs.h <<\EOF
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
EOF
;;
esac
case "${target_os}" in case "${target_os}" in
irix6.5*) irix6.5*)
;;
*)
if test -z "$GNU_CC"; then if test -z "$GNU_CC"; then
CFLAGS="$CFLAGS -mips3" CFLAGS="$CFLAGS -mips3"
fi fi
@ -2736,6 +2724,18 @@ EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _PR_HAVE_GETPROTO_R_POINTER 1 #define _PR_HAVE_GETPROTO_R_POINTER 1
EOF
cat >> confdefs.h <<\EOF
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
EOF
;;
irix5*)
;;
*)
cat >> confdefs.h <<\EOF
#define _PR_HAVE_SGI_PRDA_PROCMASK 1
EOF EOF
;; ;;

Просмотреть файл

@ -473,7 +473,7 @@ case "$target" in
;; ;;
esac esac
if test "$GNU_CC"; then if test "$GNU_CC"; then
AS='$(CC) -x assembler-with-cpp -D_ASM -mips2' AS='$(CC) -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
CFLAGS="$CFLAGS -Wall -Wno-format" CFLAGS="$CFLAGS -Wall -Wno-format"
_OPTIMIZE_FLAGS="-O6" _OPTIMIZE_FLAGS="-O6"
else else
@ -515,22 +515,19 @@ case "$target" in
if test "${target_os}" = "irix5.3"; then if test "${target_os}" = "irix5.3"; then
AC_DEFINE(IRIX5_3) AC_DEFINE(IRIX5_3)
fi fi
case "${target_os}" in
irix5*)
;;
*)
AC_DEFINE(_PR_HAVE_SGI_PRDA_PROCMASK)
;;
esac
case "${target_os}" in case "${target_os}" in
irix6.5*) irix6.5*)
;;
*)
if test -z "$GNU_CC"; then if test -z "$GNU_CC"; then
CFLAGS="$CFLAGS -mips3" CFLAGS="$CFLAGS -mips3"
fi fi
AC_DEFINE(_PR_HAVE_GETPROTO_R) AC_DEFINE(_PR_HAVE_GETPROTO_R)
AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER) AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER)
AC_DEFINE(_PR_HAVE_SGI_PRDA_PROCMASK)
;;
irix5*)
;;
*)
AC_DEFINE(_PR_HAVE_SGI_PRDA_PROCMASK)
;; ;;
esac esac
case "${target_cpu}" in case "${target_cpu}" in