--- htsengine-1.05.orig/configure.ac
+++ htsengine-1.05/configure.ac
@@ -8,9 +8,13 @@
 AC_COPYRIGHT(Copyright 2001-2008 Tokyo Institute of Technology)
 AM_INIT_AUTOMAKE(hts_engine_API, 1.05, nostdinc no-installinfo no-installman)
 
+LTVERSION="1:0:0"
+AC_SUBST(LTVERSION)
+
 # Checks for C compiler
 AC_PROG_CC
 AM_PROG_CC_C_O
+AM_PROG_LIBTOOL
 AC_PROG_INSTALL
 AC_PROG_RANLIB
 AN_MAKEVAR([AR], [AC_PROG_AR])
--- htsengine-1.05.orig/lib/Makefile.am
+++ htsengine-1.05/lib/Makefile.am
@@ -3,9 +3,10 @@
 
 INCLUDES = -I$(top_srcdir)/include
 
-lib_LIBRARIES = libHTSEngine.a
+lib_LTLIBRARIES = libHTSEngine.la
 
-libHTSEngine_a_SOURCES = HTS_audio.c  HTS_engine.c  HTS_hidden.h  HTS_misc.c  \
+libHTSEngine_la_LDFLAGS = -no-undefined -version-info $(LTVERSION)
+libHTSEngine_la_SOURCES = HTS_audio.c  HTS_engine.c  HTS_hidden.h  HTS_misc.c  \
                          HTS_pstream.c  HTS_sstream.c  HTS_model.c  HTS_vocoder.c \
                          HTS_gstream.c HTS_label.c
 
--- htsengine-1.05.orig/bin/Makefile.am
+++ htsengine-1.05/bin/Makefile.am
@@ -7,7 +7,7 @@
 
 hts_engine_SOURCES = hts_engine.c 
 
-hts_engine_LDADD = ../lib/libHTSEngine.a
+hts_engine_LDADD = ../lib/libHTSEngine.la
 
 DISTCLEANFILES = *.log *.out *~
 
