OSDN Git Service

PR rtl-optimization/53908
[pf3gnuchains/gcc-fork.git] / gcc / config.build
index 62486db..26809b6 100644 (file)
@@ -1,5 +1,6 @@
 # GCC build-specific configuration file.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2009, 2010,
+# 2011
 # Free Software Foundation, Inc.
 
 #This file is part of GCC.
@@ -51,18 +52,6 @@ build_file_translate=
 
 # System-specific settings.
 case $build in
-  alpha*-dec-osf4*)
-    # Some versions of OSF4 (specifically X4.0-9 296.7) have
-    # a broken tar, so we use cpio instead.
-    build_install_headers_dir=install-headers-cpio
-    ;;
-  alpha*-dec-*vms*)
-    build_xm_file=alpha/xm-vms.h
-    build_exeext=.exe
-    build_install_headers_dir=install-headers-cp
-    prefix=/gnu
-    local_prefix=/gnu
-    ;;
   hppa1.0-*-hpux1[01]* | \
   hppa*64*-*-hpux11* | \
   hppa1.1-*-hpux11* | \
@@ -73,14 +62,18 @@ case $build in
     # IBM 360/370/390 Architecture
     build_xm_defines='FATAL_EXIT_CODE=12'
     ;;
-  i[34567]86-*-cygwin* | i[34567]86-*-pe )
+  i[34567]86-*-cygwin* )
     build_xm_file=i386/xm-cygwin.h
     build_exeext=.exe
     ;;
   i[34567]86-*-mingw32* | x86_64-*-mingw*)
     build_xm_file=i386/xm-mingw32.h
     build_exeext=.exe
-    build_file_translate="CMD //C"
+    t=`(CMD //c echo /c) 2>/dev/null`
+    case $t in ?:*)
+      build_file_translate="CMD //c"
+      ;;
+    esac
     ;;
   i[34567]86-pc-msdosdjgpp*)
     build_xm_file=i386/xm-djgpp.h
@@ -115,5 +108,11 @@ case $build in
     # All other System V variants.
     build_install_headers_dir=install-headers-cpio
     ;;
+  *-*-*vms*)
+    # All OpenVMS targets.
+    build_xm_file="vms/xm-vms.h"
+    build_exeext=.exe
+    build_install_headers_dir=install-headers-cp
+    ;;
 esac