plugin builds: Punt AC_PROG_LIBTOOL. Use MIT_SCHEME_LIBDIR.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sun, 29 May 2016 02:44:40 +0000 (19:44 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sun, 29 May 2016 17:19:29 +0000 (10:19 -0700)
AC_PROG_LIBTOOL is deprecated.  MIT_SCHEME_LIBDIR replaces both
MIT_SCHEME_ARCH and the project name, allowing the latter to be more
easily changed.

14 files changed:
src/cairo/Makefile.am
src/cairo/configure.ac
src/gl/Makefile.am
src/gl/configure.ac
src/glib/Makefile.am
src/glib/configure.ac
src/gtk-screen/Makefile.am
src/gtk-screen/configure.ac
src/gtk/Makefile.am
src/gtk/configure.ac
src/pango/Makefile.am
src/pango/configure.ac
src/planetarium/Makefile.am
src/planetarium/configure.ac

index 8ffd47821e98c36fed566b12ea5499a5b5cf06f6..d5286a8e8f7ffe88fd7b892c298342b29c76572e 100644 (file)
@@ -24,8 +24,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_cairodir = $(scmlibdir)/cairo
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_cairodir = $(scmlibdir)cairo
 
 scmlib_LTLIBRARIES = cairo-shim.la
 scmlib_DATA = cairo-types.bin cairo-const.bin
@@ -96,12 +96,12 @@ tags: tags-am
 ETAGS_ARGS = $(sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(sources) $(cdecls)
 
-EXTRA_DIST += $(sources) $(cdecls) cairo.pkg
-EXTRA_DIST += compile.sh cairo-check.sh
+EXTRA_DIST += $(sources) $(cdecls) compile.sh cairo.pkg
+EXTRA_DIST += cairo-check.sh
 EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 install-html: install-html-am
@@ -109,7 +109,7 @@ install-html: install-html-am
        | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_cairodir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_cairodir)"
index a2412475fa2e579210a360bb784effd9a77d4f14..48e4bc4465fa6c55336662f29fff75d0fa6b7eba 100644 (file)
@@ -54,15 +54,13 @@ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
 
 if ! pkg-config --exists cairo 2>/dev/null; then
@@ -70,13 +68,14 @@ if ! pkg-config --exists cairo 2>/dev/null; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index f7be7c1462661754668be53d2d84faac7ed148fb..20e9414b06613273bc3652ca732e488441e1d24b 100644 (file)
@@ -24,8 +24,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_gldir = $(scmlibdir)/gl
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_gldir = $(scmlibdir)gl
 
 scmlib_LTLIBRARIES = gl-shim.la
 scmlib_DATA = gl-types.bin gl-const.bin
@@ -93,12 +93,12 @@ all_sources = $(sources) gl-adapter.c
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) gl.pkg
-EXTRA_DIST += compile.sh gl-check.sh gl-tests.scm
+EXTRA_DIST += $(all_sources) $(cdecls) compile.sh gl.pkg
+EXTRA_DIST += gl-check.sh gl-tests.scm
 EXTRA_DIST += make.scm optiondb.scm tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -106,7 +106,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_gldir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_gldir)"
index ed1761141fd42792287e71158444bc419a821079..041dfbf0c6f87c0db7770dc834a86520345f4d96 100644 (file)
@@ -27,43 +27,40 @@ General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this plugin; if not, write to the Free Software Foundation,
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-
 ])
 
 AH_TOP([/*
 
-Copyright (C) 2013, 2014, 2015, 2016 Matthew Birkholz
+Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
+    2016 Matthew Birkholz
 
-This file is part of a plugin for MIT/GNU Scheme.
+This file is part of an OpenGL plugin for MIT/GNU Scheme.
 
-MIT/GNU Scheme is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at
-your option) any later version.
+This plugin is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
 
-MIT/GNU Scheme is distributed in the hope that it will be useful, but
+This plugin is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with MIT/GNU Scheme; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
-USA.
+along with this plugin; if not, write to the Free Software Foundation,
+Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 */])
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
 
 if ! pkg-config --exists gl glu gtk+-3.0 2>/dev/null; then
@@ -71,13 +68,14 @@ if ! pkg-config --exists gl glu gtk+-3.0 2>/dev/null; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 034f2c8f5f2665202acc4a0ca1c660c9b9faa933..131242373565ad0f8607be71c685b39413604cd4 100644 (file)
@@ -24,8 +24,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_glibdir = $(scmlibdir)/glib
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_glibdir = $(scmlibdir)glib
 
 scmlib_LTLIBRARIES = glib-shim.la
 scmlib_DATA = glib-types.bin glib-const.bin
@@ -111,12 +111,12 @@ all_sources = $(sources) glibio.c
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) glib.pkg
-EXTRA_DIST += compile.sh glib-tests.scm glib-check-copy.sh glib-check-list.sh
+EXTRA_DIST += $(all_sources) $(cdecls) compile.sh glib.pkg
+EXTRA_DIST += glib-tests.scm glib-check-copy.sh glib-check-list.sh
 EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 install-html: install-html-am
@@ -124,7 +124,7 @@ install-html: install-html-am
        | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_glibdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_glibdir)"
index 8671e2895672dc54f0867ce90f06fc22337cc776..842bc0f386a8943eee6c5c78c1b384b64e7f77f4 100644 (file)
@@ -54,15 +54,13 @@ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
 
 if ! pkg-config --exists glib-2.0 2>/dev/null; then
@@ -70,13 +68,14 @@ if ! pkg-config --exists glib-2.0 2>/dev/null; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index 65d0d2288e04c6d2bb0b0cbc0f394aee48d56339..8fdac1136cb64204e0990831af5bea7306d7ae39 100644 (file)
@@ -24,8 +24,8 @@
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_subdir = $(scmlibdir)/gtk-screen
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_subdir = $(scmlibdir)gtk-screen
 
 sources = gtk-screen.scm gtk-faces.scm
 
@@ -58,12 +58,12 @@ TESTS = check.sh
 ETAGS_ARGS = $(sources)
 TAGS_DEPENDENCIES = $(sources)
 
-EXTRA_DIST += $(sources) gtk-screen.pkg
-EXTRA_DIST += compile.sh check.sh
+EXTRA_DIST += $(sources) compile.sh gtk-screen.pkg
+EXTRA_DIST += check.sh
 EXTRA_DIST += make.scm optiondb.scm
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 #install-html: install-html-am
@@ -71,7 +71,7 @@ install-data-hook:
 #      | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_subdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_subdir)"
index 56db0a0ba11c7ef730ae293dbd2b8e032abd0713..932932c8fb0f802c78c7cea46f5bc0b4561a46f4 100644 (file)
@@ -32,13 +32,14 @@ AM_INIT_AUTOMAKE
 AC_PROG_INSTALL
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index d08be760fa48f450912a5802a5cb1d99cfd69405..7301c8af31beb8c383b5a0725d24116f6ed32ee8 100644 (file)
@@ -24,8 +24,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_gtkdir = $(scmlibdir)/gtk
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_gtkdir = $(scmlibdir)gtk
 
 scmlib_LTLIBRARIES = gtk-shim.la
 scmlib_DATA = gtk-types.bin gtk-const.bin conses.png
@@ -145,8 +145,8 @@ all_sources = $(sources) $(c_sources)
 ETAGS_ARGS = $(all_sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(all_sources) $(cdecls)
 
-EXTRA_DIST += $(all_sources) $(cdecls) gtk.pkg
-EXTRA_DIST += compile.sh gtk-check.sh gtk-tests.scm
+EXTRA_DIST += $(all_sources) $(cdecls) compile.sh gtk.pkg
+EXTRA_DIST += gtk-check.sh gtk-tests.scm
 EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh
 EXTRA_DIST += gtkpanedview-3.10.8.c gtkscrolledview-3.10.8.c
 EXTRA_DIST += gtkpanedview-3.14.13.c gtkscrolledview-3.14.13.c
@@ -155,7 +155,7 @@ EXTRA_DIST += gtkpanedview-3.6.0.c gtkscrolledview-3.6.0.c
 EXTRA_DIST += conses.png hello.scm test-gport-performance.scm
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 install-html: install-html-am
@@ -163,7 +163,7 @@ install-html: install-html-am
        | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_gtkdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_gtkdir)"
index 79aa8a1ac913e1c64ad38be2b75d931fb18787d2..ec1623df497b514fa93db13d8a9ee572e794e979 100644 (file)
@@ -54,15 +54,13 @@ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
 
 if ! pkg-config --exists gtk+-3.0 2>/dev/null; then
@@ -92,13 +90,14 @@ ln -sf gtkscrolledview-$GTK_VERSION.c gtkscrolledview.c
 ln -sf gtkpanedview-$GTK_VERSION.c gtkpanedview.c
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index ccaf6978090986e73e70277380051ac8cb246ec1..8d93483545cc953b7bdd049f1509a071430a14b5 100644 (file)
@@ -24,8 +24,8 @@ ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_pangodir = $(scmlibdir)/pango
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_pangodir = $(scmlibdir)pango
 
 scmlib_LTLIBRARIES = pango-shim.la
 scmlib_DATA = pango-types.bin pango-const.bin
@@ -92,12 +92,12 @@ tags: tags-am
 ETAGS_ARGS = $(sources) -r '/^([^iI].*/' $(cdecls)
 TAGS_DEPENDENCIES = $(sources) $(cdecls)
 
-EXTRA_DIST += $(sources) $(cdecls) pango.pkg
-EXTRA_DIST += compile.sh pango-check.sh
+EXTRA_DIST += $(sources) $(cdecls) compile.sh pango.pkg
+EXTRA_DIST += pango-check.sh
 EXTRA_DIST += make.scm optiondb.scm check-doc.sh tags-fix.sh
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 install-html: install-html-am
@@ -105,7 +105,7 @@ install-html: install-html-am
        | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_pangodir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_pangodir)"
index 55fe8919805017248f0f1d3813e48f4f950979d3..d264fc628723a8fb5e950a35873121f78afce19d 100644 (file)
@@ -54,15 +54,13 @@ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 AM_INIT_AUTOMAKE
 
-AC_PROG_LIBTOOL
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen])
+
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
 
-dnl Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT([dlopen win32-dll])
-
 AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
 
 if ! pkg-config --exists pango 2>/dev/null; then
@@ -70,13 +68,14 @@ if ! pkg-config --exists pango 2>/dev/null; then
 fi
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
index e99e742f4c97d1c702324999f2a9ce930874400d..b48d4bea22e5a4e1ec691e10ef3ad8c2916e643d 100644 (file)
@@ -23,8 +23,8 @@
 EXTRA_DIST = autogen.sh
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
-scmlibdir = $(libdir)/mit-scheme-@MIT_SCHEME_ARCH@
-scmlib_planetariumdir = $(scmlibdir)/planetarium
+scmlibdir = @MIT_SCHEME_LIBDIR@
+scmlib_planetariumdir = $(scmlibdir)planetarium
 
 sources = earth.scm geometry.scm google-earth.scm graphics.scm
 sources += matrices.scm mit-cairo.scm mit-cil.scm mit-graphics.scm mit-gtk.scm
@@ -126,13 +126,13 @@ CLEANFILES += sample-terrain.txt
 ETAGS_ARGS = $(sources)
 TAGS_DEPENDENCIES = $(sources)
 
-EXTRA_DIST += $(sources) mit.pkg mit-3d.pkg
-EXTRA_DIST += mit-compile.sh mit-link.scm mit-check.sh
+EXTRA_DIST += $(sources) mit-compile.sh mit-link.scmf mit.pkg mit-3d.pkg
+EXTRA_DIST += mit-check.sh
 EXTRA_DIST += mit-make.scm mit-optiondb.scm cil-*.txt
 EXTRA_DIST += mit-snapshot.scm
 
 install-data-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
 
 install-html: install-html-am
@@ -140,7 +140,7 @@ install-html: install-html-am
        | $(MIT_SCHEME_EXE) --batch-mode
 
 uninstall-hook:
-       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)/")' \
+       echo '(update-optiondb "$(DESTDIR)$(scmlibdir)")' \
        | $(MIT_SCHEME_EXE) --batch-mode
        [ -d "$(DESTDIR)$(scmlib_planetariumdir)" ] \
        && rmdir "$(DESTDIR)$(scmlib_planetariumdir)"
index a7695b07d8ebb62ffaa417d8afee07defa6085c8..6a21221021a12f1ba3dca49f6e4fdb443fa42611 100644 (file)
@@ -33,13 +33,14 @@ AM_INIT_AUTOMAKE
 AC_PROG_INSTALL
 
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_ARCH=`echo "(display microcode-id/compiled-code-type)" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
+                    echo "          (system-library-directory-pathname)))" ) \
+                  | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                | ${MIT_SCHEME_EXE} --batch-mode`
+                     | ${MIT_SCHEME_EXE} --batch-mode`
 
 AC_SUBST([MIT_SCHEME_EXE])
-AC_SUBST([MIT_SCHEME_ARCH])
+AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT