diff --git a/ChangeLog b/ChangeLog
index 9f828443e2c3402776bfca801af6879fc363ee30..57747eaa541f7eef9737f37b20f5783fadd4fd63 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-24  Niels M�ller  <niels@s3.kth.se>
+
+	* Makefile.in (distdir): Use [ -f, not [ -e, since the latter
+	is less portable, and not supported by Solaris /bin/sh.
+
 2005-11-23  Niels M�ller  <niels@s3.kth.se>
 
 	* testsuite/Makefile.in (DISTFILES): Added teardown-env.
diff --git a/Makefile.in b/Makefile.in
index 2384fa99d22ff3ed7969e44960cf68735dc49d3a..667af824dff9c1999bf81f6479f5a2ef71c25aa5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -272,7 +272,7 @@ distdir: $(DISTFILES)
 	rm -rf "$(distdir)"
 	mkdir "$(distdir)"
 	set -e; for f in $(DISTFILES) ; do \
-	  if [ -e "$$f" ] ; then cp "$$f" "$(distdir)" ; \
+	  if [ -f "$$f" ] ; then cp "$$f" "$(distdir)" ; \
 	  else cp "$(srcdir)/$$f" "$(distdir)" ; \
 	  fi ; \
 	done