summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2007-07-23 12:54:02 +0000
committerRainer Orth <ro@gcc.gnu.org>2007-07-23 12:54:02 +0000
commit6da0e74138aca6ca56e234fe5c4dfbcbd7d62f49 (patch)
treed2bf66e187b5eac36b08e91b55ad5cc1e7497a00 /libjava
parent2ee1ce2ccccab351e319e341df4b6244beea2d42 (diff)
downloadgcc-6da0e74138aca6ca56e234fe5c4dfbcbd7d62f49.tar.gz
configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
* configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC. * configure: Regenerate. From-SVN: r126848
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rwxr-xr-xlibjava/configure23
-rw-r--r--libjava/configure.ac11
3 files changed, 31 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 4d4a6c65a5d..a11f19a7458 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
+ * configure: Regenerate.
+
2007-07-19 Release Manager
* GCC 4.2.1 released.
diff --git a/libjava/configure b/libjava/configure
index 050fee62f88..c987edc7378 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -7638,7 +7638,7 @@ ac_x_header_dirs='
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for Xlib.h.
+ # Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -7646,7 +7646,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <X11/Xlib.h>
+#include <X11/Intrinsic.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -7673,7 +7673,7 @@ else
sed 's/^/| /' conftest.$ac_ext >&5
for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/X11/Xlib.h"; then
+ if test -r "$ac_dir/X11/Intrinsic.h"; then
ac_x_includes=$ac_dir
break
fi
@@ -7687,7 +7687,7 @@ if test "$ac_x_libraries" = no; then
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
- LIBS="-lX11 $LIBS"
+ LIBS="-lXt $LIBS"
if test x$gcc_no_link = xyes; then
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
@@ -7699,11 +7699,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <X11/Xlib.h>
+#include <X11/Intrinsic.h>
int
main ()
{
-XrmInitialize ()
+XtMalloc (0)
;
return 0;
}
@@ -14131,7 +14131,14 @@ fi
# On Solaris, and maybe other architectures, the Boehm collector
# requires -ldl.
if test "$GC" = boehm; then
- echo "$as_me:$LINENO: checking for main in -ldl" >&5
+ case "${host}" in
+ mips-sgi-irix6*)
+ # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
+ # libgcj.spec is used, so override here
+ SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
+ ;;
+ *)
+ echo "$as_me:$LINENO: checking for main in -ldl" >&5
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
if test "${ac_cv_lib_dl_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -14198,6 +14205,8 @@ if test $ac_cv_lib_dl_main = yes; then
SYSTEMSPEC="$SYSTEMSPEC -ldl"
fi
+ ;;
+ esac
fi
fi
diff --git a/libjava/configure.ac b/libjava/configure.ac
index f1735a1fee0..b4cc5f566c0 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1151,7 +1151,16 @@ else
# On Solaris, and maybe other architectures, the Boehm collector
# requires -ldl.
if test "$GC" = boehm; then
- AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
+ case "${host}" in
+ mips-sgi-irix6*)
+ # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
+ # libgcj.spec is used, so override here
+ SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
+ ;;
+ *)
+ AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
+ ;;
+ esac
fi
fi