]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Mon, 23 Jul 2007 12:54:02 +0000 (12:54 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 23 Jul 2007 12:54:02 +0000 (12:54 +0000)
* configure.ac (mips-sgi-irix6*): Override SYSTEMSPEC.
* configure: Regenerate.

From-SVN: r126848

libjava/ChangeLog
libjava/configure
libjava/configure.ac

index 4d4a6c65a5d8cc04adff0d32eaa79218f472b667..a11f19a745824508674f183fbf81849348ea9038 100644 (file)
@@ -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.
index 050fee62f88af4dcb24e82b668fcb0cd223b752c..c987edc7378787e9765fc21b03da5f44f2b94a36 100755 (executable)
@@ -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;
 }
    # 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
 
index f1735a1fee0180e326f6e3fc8840c34529f6c03c..b4cc5f566c06cf2c746890967508e282db6014ea 100644 (file)
@@ -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