diff --git a/ChangeLog b/ChangeLog
index 8646d2d05e1f318b26b51be6366b6e6d48f95a76..dac7b07b5d72ad204a3af5ff09b4b5189421bf61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jan 17 21:04:59 1998 H.J. Lu  (hjl@gnu.org)
+
+	* configure.in: Check makefile fragments in the source
+	directory.
+
 Fri Jan 16 00:41:37 1998  Alexandre Oliva <oliva@dcc.unicamp.br>
 
 	* configure.in: check whether host and target makefile
diff --git a/configure.in b/configure.in
index 25db03d904b1a85d83591cfd5a1e86e85aeeced0..7b2682bd2c5e13f290af616d426d88a00bb3fcc3 100644
--- a/configure.in
+++ b/configure.in
@@ -278,7 +278,7 @@ if [ x${shared} = xyes ]; then
       host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
       ;;
     *)
-      if test -f config/mh-${host_cpu}pic; then
+      if test -f ${srcdir}/config/mh-${host_cpu}pic; then
         host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
       fi
       ;;
@@ -900,7 +900,7 @@ if [ x${shared} = xyes ]; then
       target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
       ;;
     *)
-      if test -f config/mt-${target_cpu}pic; then
+      if test -f ${srcdir}/config/mt-${target_cpu}pic; then
         target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
       fi
       ;;