From 13070ee270bcdd9d6eb366e23f0279a7027cc5ca Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 18 Dec 1998 13:53:27 +0000 Subject: [PATCH] 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 --- Makefile | 10 ++++++++-- configure.in | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 953f968f5..ce9355675 100644 --- a/Makefile +++ b/Makefile @@ -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). # @@ -44,6 +44,12 @@ install: makeinclude fi;\ (cd $$dir;$(MAKE) install);\ 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 @for dir in $(DIRS); do\ @@ -65,5 +71,5 @@ makeinclude: configure configh.in makeinclude.in ./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 $". # diff --git a/configure.in b/configure.in index dbeb6e01b..7477218ff 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl# -*- sh -*- dnl# the "configure" script is made from this by running GNU "autoconf" 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# Configuration script for the Fast Light Tool Kit (FLTK). dnl# @@ -48,20 +48,24 @@ if eval "test x$enable_shared = xyes"; then SunOS* | UNIX_S*) LIBNAME="libfltk.so.1" LIBCOMMAND="\$(CXX) -G $DEBUGFLAG -o" + ln -s libfltk.so.1 lib/libfltk.so ;; HP-UX*) LIBNAME="libfltk.sl.1" LIBCOMMAND="ld -b -z +h libfltk.sl.1 $DEBUGFLAGS -o" + ln -s libfltk.sl.1 lib/libfltk.sl ;; OSF1* | IRIX*) LIBNAME="libfltk.so.1" LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" + ln -s libfltk.so.1 lib/libfltk.so ;; *) echo "Warning: shared libraries may not be supported. Trying -shared" echo " option to compiler." LIBNAME="libfltk.so.1" LIBCOMMAND="\$(CXX) -shared $DEBUGFLAG -o" + ln -s libfltk.so.1 lib/libfltk.so ;; esac fi]) @@ -162,5 +166,5 @@ AC_CONFIG_HEADER(config.h:configh.in) AC_OUTPUT(makeinclude) 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#