OSDN Git Service

* config.table: Make locating frag files failsafe even for the
authormanfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 1998 00:28:10 +0000 (00:28 +0000)
committermanfred <manfred@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 1998 00:28:10 +0000 (00:28 +0000)
special case if configuring and building in srcdir.
* configure.in: Make locating frag files failsafe even for the
special case if configuring and building in srcdir.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18410 138bc75d-0d04-0410-961f-82ee72b054a4

libiberty/ChangeLog
libiberty/config.table

index cff6e6b..1cc75d2 100644 (file)
@@ -1,3 +1,8 @@
+Thu Mar  5 09:23:28 1998  Manfred Hollstein  <manfred@s-direktnet.de>
+
+       * config.table: Make locating frag files failsafe even for the
+       special case if configuring and building in srcdir.
+
 Mon Feb 23 14:33:15 1998  Ian Lance Taylor  <ian@cygnus.com>
 
        * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
index e367e1b..f302956 100644 (file)
@@ -66,6 +66,14 @@ fi
 echo "# Warning: this fragment is automatically generated" > temp-frag
 
 for frag in ${frags}; do
+  case ${frag} in
+    ../* )
+      if [ ${srcdir} = . ]; then
+       [ -n "${with_target_subdir}" ] && frag=../${frag}
+       [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
+      fi
+      ;;
+  esac
   frag=${srcdir}/${xsrcdir}config/$frag
   if [ -f ${frag} ]; then
     echo "Appending ${frag} to xhost-mkfrag"