Changeset 5047
- Timestamp:
- 11/26/07 14:54:31 (4 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/Module.mk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5045 r5047 3 3 4 4 SVN 5 Makefile: No warnings about ld configuration for staged installations 5 6 sensors-detect: Drop PCA9540 detection 6 7 -
lm-sensors/branches/lm-sensors-3.0.0/lib/Module.mk
r4848 r5047 116 116 install-lib: all-lib 117 117 $(MKDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(LIBINCLUDEDIR) $(DESTDIR)$(LIBMAN3DIR) $(DESTDIR)$(LIBMAN5DIR) 118 @if [ ! -e "$(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)" ] ; then \118 @if [ -z "$(DESTDIR)" -a ! -e "$(LIBDIR)/$(LIBSHSONAME)" ] ; then \ 119 119 echo '******************************************************************************' ; \ 120 120 echo 'Warning: This is the first installation of the $(LIBSHSONAME)*' ; \ 121 echo ' library files in $( DESTDIR)$(LIBDIR)!' ; \121 echo ' library files in $(LIBDIR)!' ; \ 122 122 echo ' You must update the library cache or the userspace tools may fail' ; \ 123 123 echo ' or have unpredictable results!' ; \ 124 echo ' Run the following command: /sbin/ldconfig' ; \124 echo ' Run the following command: /sbin/ldconfig' ; \ 125 125 echo '******************************************************************************' ; \ 126 126 fi … … 129 129 $(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME) 130 130 $(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME) 131 @if [ "$(DESTDIR)$(LIBDIR)" != "/usr/lib" -a "$(DESTDIR)$(LIBDIR)" != "/lib" ] ; then \131 @if [ -z "$(DESTDIR)" -a "$(LIBDIR)" != "/usr/lib" -a "$(LIBDIR)" != "/lib" ] ; then \ 132 132 if [ -e "/usr/lib/$(LIBSHSONAME)" -o -e "/usr/lib/$(LIBSHBASENAME)" ] ; then \ 133 133 echo '******************************************************************************' ; \ 134 134 echo 'Warning: You have at least one $(LIBSHBASENAME) library file in /usr/lib' ; \ 135 echo ' and the new library files are in $( DESTDIR)$(LIBDIR)!' ; \135 echo ' and the new library files are in $(LIBDIR)!' ; \ 136 136 echo ' These old files must be removed or the userspace tools may fail' ; \ 137 137 echo ' or have unpredictable results!' ; \ … … 139 139 echo '******************************************************************************' ; \ 140 140 fi ; \ 141 grep -q '^$( DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \142 grep -q '^$( DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \143 grep -q '[[:space:]:,]$( DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \144 grep -q '[[:space:]:,]$( DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \141 grep -q '^$(LIBDIR)$$' /etc/ld.so.conf || \ 142 grep -q '^$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 143 grep -q '[[:space:]:,]$(LIBDIR)$$' /etc/ld.so.conf || \ 144 grep -q '[[:space:]:,]$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 145 145 ( echo '******************************************************************************' ; \ 146 echo 'Warning: Library directory $( DESTDIR)$(LIBDIR) is not in /etc/ld.so.conf!' ; \146 echo 'Warning: Library directory $(LIBDIR) is not in /etc/ld.so.conf!' ; \ 147 147 echo ' Add it and run /sbin/ldconfig for the userspace tools to work.' ; \ 148 148 echo '******************************************************************************' ) ; \
