diff --git a/sm5/CHANGELOG b/sm5/CHANGELOG
index 8f3c7ac1e71a76fe1fbfa47ed67352b95009f943..57f1a67008417eab77eb16b2b7bb9969b747c6fe 100644
--- a/sm5/CHANGELOG
+++ b/sm5/CHANGELOG
@@ -1,6 +1,6 @@
 CHANGELOG for smartmontools
 
-$Id: CHANGELOG,v 1.343 2004/02/20 16:10:27 ballen4705 Exp $
+$Id: CHANGELOG,v 1.344 2004/02/23 20:32:10 ballen4705 Exp $
 
 The most recent version of this file is:
 http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/CHANGELOG?sortby=date&view=markup
@@ -25,6 +25,12 @@ Maintainers / Developers Key:
 NOTES FOR FUTURE RELEASES: see TODO file.
 
 <ADDITIONS TO THE CHANGE LOG SHOULD BE ADDED JUST BELOW HERE, PLEASE>
+  [BA] smartd: configure script did not set correct directory to search for
+       smartd.conf based on --prefix argument to ./configure.  Thanks to
+       GG for identifying the problem and fix.
+
+  [BA] make clean now removes man pages (generated from *.in) files as well
+       as object files.
 
   [EM] Correct copying of sense data in FreeBSD SCSI implementation. Thanks
        to Sergey Svishchev for noticing the bug.
diff --git a/sm5/Makefile.am b/sm5/Makefile.am
index 4e30ada4eaddeec9423ad4574d527702731c7b09..7929984b18120e204cf9a4643d0936aef140b43c 100644
--- a/sm5/Makefile.am
+++ b/sm5/Makefile.am
@@ -1,12 +1,14 @@
 ## Process this file with automake to produce Makefile.in
 #
-# $Id: Makefile.am,v 1.49 2004/02/12 18:30:30 card_captor Exp $
+# $Id: Makefile.am,v 1.50 2004/02/23 20:32:12 ballen4705 Exp $
 #
 
 @SET_MAKE@
 
 AUTOMAKE_OPTIONS = 1.6
 
+AM_CPPFLAGS = -DSMARTMONTOOLS_SYSCONFDIR=\"$(sysconfdir)\"
+
 sbin_PROGRAMS = smartd 	\
 		smartctl
 
@@ -160,7 +162,7 @@ EXTRA_DIST = \
 		autogen.sh		\
                 $(docs_DATA)
 
-DISTCLEANFILES = smartd.conf.5 \
+CLEANFILES = smartd.conf.5 \
                  smartd.conf.4 \
                  smartd.8      \
                  smartd.1m     \
diff --git a/sm5/NEWS b/sm5/NEWS
index 7da6e16aad18095bfdba5550d29704bf37c8a429..d061b0d6bf02c4f41819c04f70d5106329b9e8b1 100644
--- a/sm5/NEWS
+++ b/sm5/NEWS
@@ -1,6 +1,6 @@
 smartmontools NEWS
 ------------------
-CVS ID: $Id: NEWS,v 1.16 2004/02/12 20:33:34 ballen4705 Exp $
+CVS ID: $Id: NEWS,v 1.17 2004/02/23 20:32:12 ballen4705 Exp $
 
 The most up-to-date version of this file is:
 http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/NEWS?sortby=date&view=markup
@@ -9,6 +9,9 @@ http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/NEWS?sortby=date&view=ma
 Date: 
 Summary: smartmontools release 5.27
 -----------------------------------
+- WARNING: this release has a broken --prefix=/a/path option to the
+  configure script.  The consequence is that smartd will not look for the
+  configuration file (smartd.conf) at the desired location.
 - NetBSD support added
 - A new Directive (-s) for smartd.conf now enables flexible automatic
   scheduled self-testing for both ATA and SCSI devices.
diff --git a/sm5/TODO b/sm5/TODO
index 960600dfe2b554c5b6749cd8b12ace19c0b2010d..eb99d13ee8c6747efbaf185bf1c830785f9d859c 100644
--- a/sm5/TODO
+++ b/sm5/TODO
@@ -1,6 +1,6 @@
 TODO list for smartmontools:
 
-$Id: TODO,v 1.46 2003/12/16 05:16:08 ballen4705 Exp $
+$Id: TODO,v 1.47 2004/02/23 20:32:12 ballen4705 Exp $
 
 SATA devices
 ------------
@@ -80,12 +80,6 @@ Add command line option that scans devices then WRITES
 /etc/smartd.conf, perhaps as /etc/smartd.conf.output, just for devices
 that can be monitored.
 
-Solaris
--------
-Try and integrate ATA support.  See
-http://card-captor.dyndns.org/pub/solaris-smart/ for smartmontools
-5.1-18 patched with solaris ATA support (Keiji).
-
 FreeBSD
 -------
 Get interface for 3ware Escalade controllers working (Eduard).
@@ -93,28 +87,6 @@ Modify smartctl -h examples
 
 Packaging
 ---------
-The 'make dist' tarball currently contains these files:
-  examplescripts/Makefile.am
-  Makefile.am
-  configure.in
-  smartd.initd
-  smartd.8
-  smartd.conf.5
-  smartctl.8
-that shouldn't be there.  Note: if the .am files and configure.in
-files are included, then we should also include autogen.sh.
-
-In addition, 'make clean' should remove:  
-  smartd.8
-  smartd.conf.5
-  smartctl.8
-  smartd.initd
-since these are made from the corresponding .in files. But it doesn't
-remove them.
-
 Under freebsd and solaris, the following are wrong:
 smartd.conf: has linux device paths
 smart*.in  : man pages have (mostly) linux device paths
-
-Under freebsd the following is still wrong:
-smartctl   : examples have linux device paths
diff --git a/sm5/configure.in b/sm5/configure.in
index 638b353b4b86dd95397d0fe6581d0c342638691e..578d1ae7530a199c7bb770633caf70759f08f89a 100644
--- a/sm5/configure.in
+++ b/sm5/configure.in
@@ -1,5 +1,5 @@
 #
-# $Id: configure.in,v 1.56 2004/02/13 17:29:09 ballen4705 Exp $
+# $Id: configure.in,v 1.57 2004/02/23 20:32:12 ballen4705 Exp $
 #
 dnl Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.50)
@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.28, smartmontools-support@lists.sourceforge.net)
 AC_CONFIG_SRCDIR(smartctl.c)
 
 smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
-smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.56 2004/02/13 17:29:09 ballen4705 Exp $'`
+smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.57 2004/02/23 20:32:12 ballen4705 Exp $'`
 smartmontools_release_date=2004/02/12
 smartmontools_release_time="23:33:10 UTC"
 
@@ -139,7 +139,6 @@ else
 fi
 
 AC_DEFINE_UNQUOTED(SMARTMONTOOLS_BUILD_HOST,     "${host}",                       [smartmontools Build Host])
-AC_DEFINE_UNQUOTED(SMARTMONTOOLS_SYSCONFDIR,     "${sysconfdir}",                 [smartmontools System Configuration Directory])
 
 AC_SUBST(CFLAGS)