From 109208e609c961dee49c3133ee5eea599af1f419 Mon Sep 17 00:00:00 2001 From: Thomas Uhle Date: Thu, 9 Mar 2023 22:00:28 +0100 Subject: [PATCH 1/2] Some updates for newer versions of autoconf and libtool --- Makefile.am | 2 +- configure.ac | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1be0cbf..5907915 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,7 +10,7 @@ versionedpkglib_LTLIBRARIES = libsnack_sndfile_ext.la libsnack_sndfile_ext_la_SOURCES = \ snack_sndfile_ext.c libsnack_sndfile_ext_la_CFLAGS = @SNACK_INCLUDE_SPEC@ @TCL_INCLUDE_SPEC@ @SNDFILE_CFLAGS@ -libsnack_sndfile_ext_la_LDFLAGS = -version-info 0:0:0 @SNACK_LIB_SPEC@ @TCL_LIB_SPEC@ @SNDFILE_LIBS@ +libsnack_sndfile_ext_la_LDFLAGS = -version-info 0:0:0 -no-undefined @SNACK_LIB_SPEC@ @TCL_LIB_SPEC@ @SNDFILE_LIBS@ # TCL_STUB_LIB_FLAG # TCL_STUB_LIB_SPEC # TCL_STUB_LIB_FILE \ No newline at end of file diff --git a/configure.ac b/configure.ac index d2b606c..6ee00f6 100644 --- a/configure.ac +++ b/configure.ac @@ -16,8 +16,7 @@ AM_MAINTAINER_MODE dnl Checks for programs. AC_PROG_CC -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL +LT_INIT([disable-static win32-dll]) SC_PATH_TCLCONFIG dnl SC_PATH_TKCONFIG @@ -72,8 +71,7 @@ AC_SUBST(CFLAGS) AC_SUBST(TCL_LIB_SPEC) AC_SUBST(SNACK_LIB_SPEC) dnl Checks for header files. -AC_CHECK_HEADERS(string.h math.h locale.h) -AC_HEADER_STDC +AC_CHECK_HEADERS([string.h math.h locale.h], [], [], [AC_INCLUDES_DEFAULT]) dnl Checks for compiler characteristics. dnl AC_ISC_POSIX AC_C_INLINE @@ -84,4 +82,4 @@ Makefile pkgIndex.tcl ]) -AC_OUTPUT([]) \ No newline at end of file +AC_OUTPUT \ No newline at end of file From d9f9f6ea1848f2684b899d21d86f528875d9193b Mon Sep 17 00:00:00 2001 From: Thomas Uhle Date: Thu, 9 Mar 2023 22:08:51 +0100 Subject: [PATCH 2/2] Replace "wish8.4" by "wish" in test.tcl --- test.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.tcl b/test.tcl index 06249bd..d4f42f0 100755 --- a/test.tcl +++ b/test.tcl @@ -1,6 +1,6 @@ #!/bin/sh # the next line restarts using wish \ -exec wish8.4 "$0" "$@" +exec wish "$0" "$@" # 'info sharedlibext' returns '.dll' on Windows and '.so' on most Unix systems