diff --git a/src/configure.in b/src/configure.in
index cbfe9b3f582b03bdc94c4967ad30520b528a7ffb..c7568b199f99229157987598c01573227021f1f6 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.954 2006/06/17 20:26:04 mast Exp $")
+AC_REVISION("$Id: configure.in,v 1.955 2006/06/17 21:21:01 mast Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -2225,7 +2225,7 @@ if test "x$PIKE_PATH_TRANSLATE" = "x"; then
     # MinGW system.
     cat <<\EOF
 #!/bin/sh
-# Automatically generated by $Id: configure.in,v 1.954 2006/06/17 20:26:04 mast Exp $.
+# Automatically generated by $Id: configure.in,v 1.955 2006/06/17 21:21:01 mast Exp $.
 # MinGW-version. Do NOT edit.
 posix_name="`cat`"
 posix_prefix="/"
@@ -2263,7 +2263,7 @@ EOF
     # Native POSIX system.
   cat <<\EOF
 #!/bin/sh
-# Automatically generated by $Id: configure.in,v 1.954 2006/06/17 20:26:04 mast Exp $.
+# Automatically generated by $Id: configure.in,v 1.955 2006/06/17 21:21:01 mast Exp $.
 # POSIX-version. Do NOT edit.
 cat
 EOF
@@ -2272,7 +2272,7 @@ else
   # rntcl-style
   cat <<\EOF
 #!/bin/sh
-# Automatically generated by $Id: configure.in,v 1.954 2006/06/17 20:26:04 mast Exp $.
+# Automatically generated by $Id: configure.in,v 1.955 2006/06/17 21:21:01 mast Exp $.
 # RNTCL-version. Do NOT edit.
 sed -e "$PIKE_PATH_TRANSLATE"
 EOF
@@ -7530,11 +7530,8 @@ AC_SUBST(PIKE_LIB)
 
 #############################################################################
 
-PMOD_TARGETS=
-for f in $srcdir/*.cmod; do
-  PMOD_TARGETS="$PMOD_TARGETS $f"
-done
 PMOD_TARGETS=`echo $srcdir/*.cmod | sed -e "s/\.cmod/\.c/g" | sed -e "s|$srcdir/|\\$(SRCDIR)/|g"`
+test "$PMOD_TARGETS" = '$(SRCDIR)/*.c' && PMOD_TARGETS=
 AC_SUBST(PMOD_TARGETS)
 
 #############################################################################