Warn the user if 'wine' will not find its libraries after installation
on 'make install'.
This commit is contained in:
parent
978a934245
commit
c6476e90ab
12
Makefile.in
12
Makefile.in
|
@ -20,6 +20,7 @@ SRCDIR = @srcdir@
|
|||
VPATH = @srcdir@
|
||||
LIBEXT = @LIBEXT@
|
||||
LDCONFIG = @LDCONFIG@
|
||||
LDD = @LDD@
|
||||
MODULE = none
|
||||
|
||||
# Sub-directories containing stand-alone programs
|
||||
|
@ -72,6 +73,17 @@ wine: $(WINEWRAPPER)
|
|||
|
||||
install:: all $(SUBDIRS:%=%/__install__)
|
||||
-$(LDCONFIG)
|
||||
@if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
|
||||
then \
|
||||
echo "*************************************************" ; \
|
||||
echo "*************************************************" ; \
|
||||
echo "The installed Wine libraries will not be found!" ; \
|
||||
echo "You can either:" ; \
|
||||
echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
|
||||
echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
|
||||
echo "*************************************************" ; \
|
||||
echo "*************************************************" ; \
|
||||
fi
|
||||
|
||||
uninstall:: $(SUBDIRS:%=%/__uninstall__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue