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:12 +0000 (00:28 +0000)
committerManfred Hollstein <manfred@gcc.gnu.org>
Thu, 5 Mar 1998 00:28:12 +0000 (00:28 +0000)
a
* 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: r18412

libio/configure.in

index cbe04c9..9d523e7 100644 (file)
@@ -93,6 +93,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"