Updated shared library code to create symbolic links to .so.1 or .sl.1

files...


git-svn-id: file:///fltk/svn/fltk/trunk@165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-12-18 13:53:27 +00:00
parent 47e5607d87
commit 13070ee270
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# #
# "$Id: Makefile,v 1.7 1998/11/05 16:04:35 mike Exp $" # "$Id: Makefile,v 1.8 1998/12/18 13:53:26 mike Exp $"
# #
# Top-level makefile for the Fast Light Tool Kit (FLTK). # Top-level makefile for the Fast Light Tool Kit (FLTK).
# #
@ -44,6 +44,12 @@ install: makeinclude
fi;\ fi;\
(cd $$dir;$(MAKE) install);\ (cd $$dir;$(MAKE) install);\
done done
@if test "$(LIBNAME)" = libfltk.so.1; then\
ln -s libfltk.so.1 $(libdir)/libfltk.so;\
fi
@if test "$(LIBNAME)" = libfltk.sl.1; then\
ln -s libfltk.sl.1 $(libdir)/libfltk.sl;\
fi
depend: makeinclude depend: makeinclude
@for dir in $(DIRS); do\ @for dir in $(DIRS); do\
@ -65,5 +71,5 @@ makeinclude: configure configh.in makeinclude.in
./configure ./configure
# #
# End of "$Id: Makefile,v 1.7 1998/11/05 16:04:35 mike Exp $". # End of "$Id: Makefile,v 1.8 1998/12/18 13:53:26 mike Exp $".
# #

View File

@ -1,7 +1,7 @@
dnl# -*- sh -*- dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf" dnl# the "configure" script is made from this by running GNU "autoconf"
dnl# dnl#
dnl# "$Id: configure.in,v 1.15 1998/12/07 14:57:26 mike Exp $" dnl# "$Id: configure.in,v 1.16 1998/12/18 13:53:27 mike Exp $"
dnl# dnl#
dnl# Configuration script for the Fast Light Tool Kit (FLTK). dnl# Configuration script for the Fast Light Tool Kit (FLTK).
dnl# dnl#
@ -48,20 +48,24 @@ if eval "test x$enable_shared = xyes"; then
SunOS* | UNIX_S*) SunOS* | UNIX_S*)
LIBNAME="libfltk.so.1" LIBNAME="libfltk.so.1"
LIBCOMMAND="\$(CXX) -G $DEBUGFLAG -o" LIBCOMMAND="\$(CXX) -G $DEBUGFLAG -o"
ln -s libfltk.so.1 lib/libfltk.so
;; ;;
HP-UX*) HP-UX*)
LIBNAME="libfltk.sl.1" LIBNAME="libfltk.sl.1"
LIBCOMMAND="ld -b -z +h libfltk.sl.1 $DEBUGFLAGS -o" LIBCOMMAND="ld -b -z +h libfltk.sl.1 $DEBUGFLAGS -o"
ln -s libfltk.sl.1 lib/libfltk.sl
;; ;;
OSF1* | IRIX*) OSF1* | IRIX*)
LIBNAME="libfltk.so.1" LIBNAME="libfltk.so.1"
LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o"
ln -s libfltk.so.1 lib/libfltk.so
;; ;;
*) *)
echo "Warning: shared libraries may not be supported. Trying -shared" echo "Warning: shared libraries may not be supported. Trying -shared"
echo " option to compiler." echo " option to compiler."
LIBNAME="libfltk.so.1" LIBNAME="libfltk.so.1"
LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o"
ln -s libfltk.so.1 lib/libfltk.so
;; ;;
esac esac
fi]) fi])
@ -162,5 +166,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude) AC_OUTPUT(makeinclude)
dnl# dnl#
dnl# End of "$Id: configure.in,v 1.15 1998/12/07 14:57:26 mike Exp $". dnl# End of "$Id: configure.in,v 1.16 1998/12/18 13:53:27 mike Exp $".
dnl# dnl#