Install libraries into architecture-dependent directory
This commit is contained in:
parent
aba02de319
commit
6a3a89a8c0
|
@ -1,7 +1,7 @@
|
|||
INCLUDES = -I@top_srcdir@/c/xlib -I@top_srcdir@/c/libs -I@x_includes@ \
|
||||
-I@top_srcdir@/c -I@scsh_includes@
|
||||
|
||||
pkglib_LTLIBRARIES = libscx.la
|
||||
libsys_LTLIBRARIES = libscx.la
|
||||
|
||||
libscx_la_SOURCES = \
|
||||
client.c colormap.c cursor.c display.c error.c event-types.c \
|
||||
|
|
|
@ -60,6 +60,8 @@
|
|||
|
||||
#if no_x == 'yes' fail ...
|
||||
|
||||
libsysdir="${prefix}/lib/`uname -m`-`uname -s`"
|
||||
AC_SUBST(libsysdir)
|
||||
AC_SUBST(LIBS)
|
||||
AC_SUBST(CC)
|
||||
AC_SUBST(x_includes)
|
||||
|
|
|
@ -44,10 +44,10 @@ CLEANFILES= load-scx.scm
|
|||
|
||||
load-scx.scm: $(srcdir)/load-scx.scm.in
|
||||
sed -e "s|@scxdatadir@|`pwd`/$(srcdir)|g" \
|
||||
-e "s|@scxlibdir@|`pwd`/../c/xlib/.libs|g" $< > $@
|
||||
-e "s|@scxlibsysdir@|`pwd`/../c/xlib/.libs|g" $< > $@
|
||||
|
||||
install-data-hook:
|
||||
sed -e "s|@scxdatadir@|$(pkgdatadir)|g" \
|
||||
-e "s|@scxlibdir@|$(pkglibdir)|g" \
|
||||
-e "s|@scxlibsysdir@|$(libsysdir)|g" \
|
||||
$(srcdir)/load-scx.scm.in \
|
||||
> $(DESTDIR)/$(pkgdatadir)/load-scx.scm
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
(open 'dynamic-externals)
|
||||
(open 'external-calls)
|
||||
(run '(let ((initializer-name "scx_init_xlib")
|
||||
(module-file "@scxlibdir@/libscx.so"))
|
||||
(module-file "@scxlibsysdir@/libscx.so"))
|
||||
(dynamic-load module-file)
|
||||
(call-external (get-external initializer-name))))
|
||||
(config)
|
||||
|
|
Loading…
Reference in New Issue