diff --git a/samples/configure b/samples/configure
index 44b89d42e2170e5a21c121bdb4601424c560eddd..0c19e078fafaeda64c5d01acfb2492b85574c2d1 100755
--- a/samples/configure
+++ b/samples/configure
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 # Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.13 
+# Generated automatically using autoconf version 2.13
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 #
 # This configure script is free software; the Free Software Foundation
@@ -1260,7 +1260,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   cat >> confdefs.h <<EOF
 #define $ac_tr_hdr 1
 EOF
- 
+
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -1396,7 +1396,12 @@ s%\[%\\&%g
 s%\]%\\&%g
 s%\$%$$%g
 EOF
+if test "$platform" != "OS390"; then
 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
+else
+# OS390 - EBCDIC NL is '\025'
+DEFS=`sed -f conftest.defs confdefs.h | tr '\025' ' '`
+fi
 rm -f conftest.defs
 
 
@@ -1620,4 +1625,5 @@ test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
 echo
 echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html
+echo Also look at http://xml.apache.org/xerces-c/samples.html