config.table: Make locating frag files failsafe even for the special case if...
authorManfred Hollstein <manfred@gcc.gnu.org>
Thu, 5 Mar 1998 00:28:14 +0000 (00:28 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Thu, 5 Mar 1998 00:28:14 +0000 (00:28 +0000)

* config.table: Make locating frag files failsafe even for the
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.

From-SVN: r18414

libstdc++/configure.in

index 1a2803e7b35e00650b19a6298e9b40c4c81e8288..d7e8d78a5504840407112da0847ce5d5218ab71d 100644 (file)
@@ -65,6 +65,14 @@ case "${target}" in
 esac
 
 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}/config/$frag
   if [ -f ${frag} ]; then
     echo "Appending ${frag} to target-mkfrag"