configure.in: check whether host and target makefile fragments exist before adding...
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 15 Jan 1998 23:39:59 +0000 (23:39 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 15 Jan 1998 23:39:59 +0000 (16:39 -0700)
        * configure.in: check whether host and target makefile
        fragments exist before adding them to *_makefile_frag

From-SVN: r17373

ChangeLog
configure.in

index e66a4cdac42e15e8fd7db416656f92741b41bad0..8646d2d05e1f318b26b51be6366b6e6d48f95a76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 16 00:41:37 1998  Alexandre Oliva <oliva@dcc.unicamp.br>
+
+       * configure.in: check whether host and target makefile
+       fragments exist before adding them to *_makefile_frag
+
 1998-01-13  Lee Iverson   (leei@ai.sri.com)
 
        * config-ml.in (multi-do): LDFLAGS must include multilib
index 68d0d9dd58e67081b059e8c120b5dcc15fdbf661..25db03d904b1a85d83591cfd5a1e86e85aeeced0 100644 (file)
@@ -278,7 +278,9 @@ if [ x${shared} = xyes ]; then
       host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
       ;;
     *)
-      host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+      if test -f config/mh-${host_cpu}pic; then
+        host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+      fi
       ;;
   esac
 fi
@@ -898,7 +900,9 @@ if [ x${shared} = xyes ]; then
       target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
       ;;
     *)
-      target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+      if test -f config/mt-${target_cpu}pic; then
+        target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+      fi
       ;;
   esac
 fi