]>
Commit | Line | Data |
---|---|---|
7bb60a3f | 1 | diff -Nur o.speak-1.14-source/Makefile.am n.speak-1.14-source/Makefile.am |
2 | --- o.speak-1.14-source/Makefile.am 1970-01-01 01:00:00.000000000 +0100 | |
3 | +++ n.speak-1.14-source/Makefile.am 2006-09-23 20:28:28.000000000 +0200 | |
4 | @@ -0,0 +1,5 @@ | |
5 | +SUBDIRS = src | |
6 | +pkgdatadir = $(datadir)/espeak-data | |
7 | +install-data-local: | |
8 | + install -d $(DESTDIR)$(pkgdatadir) | |
9 | + cp -Rf espeak-data/* $(DESTDIR)$(pkgdatadir) | |
10 | diff -Nur o.speak-1.14-source/configure.ac n.speak-1.14-source/configure.ac | |
11 | --- o.speak-1.14-source/configure.ac 1970-01-01 01:00:00.000000000 +0100 | |
12 | +++ n.speak-1.14-source/configure.ac 2006-09-23 20:45:27.000000000 +0200 | |
13 | @@ -0,0 +1,43 @@ | |
14 | +# -*- Autoconf -*- | |
15 | +# Process this file with autoconf to produce a configure script. | |
16 | + | |
17 | +AC_PREREQ(2.59) | |
18 | +AC_INIT(espeak, 1.16, ) | |
19 | +AM_INIT_AUTOMAKE | |
20 | +AC_CONFIG_SRCDIR([src/speak.cpp]) | |
21 | +AC_CONFIG_HEADER([config.h]) | |
22 | + | |
23 | +# Checks for programs. | |
24 | +AC_PROG_CXX | |
25 | +AC_PROG_CC | |
26 | +AC_PROG_LIBTOOL | |
27 | + | |
28 | +# Checks for libraries. | |
29 | +AC_CHECK_LIB([portaudio], [main]) | |
30 | + | |
31 | +# Checks for header files. | |
32 | +AC_HEADER_STDC | |
33 | +AC_CHECK_HEADERS([locale.h stdlib.h string.h unistd.h wchar.h wctype.h portaudio.h]) | |
34 | + | |
35 | +# Checks for typedefs, structures, and compiler characteristics. | |
36 | +AC_C_CONST | |
37 | +AC_C_RESTRICT | |
38 | +AC_HEADER_STDBOOL | |
39 | + | |
40 | +# Checks for library functions. | |
41 | +AC_FUNC_CLOSEDIR_VOID | |
42 | +AC_FUNC_MALLOC | |
43 | +AC_FUNC_MEMCMP | |
44 | +AC_FUNC_REALLOC | |
45 | +AC_TYPE_SIGNAL | |
46 | +AC_FUNC_STAT | |
47 | +AC_CHECK_FUNCS([memset pow setlocale sqrt strchr Pa_IsStreamActive]) | |
48 | + | |
49 | +if test "$datadir" = "\${prefix}/share" ; then | |
50 | + datadirectory=$ac_default_prefix/share | |
51 | +else | |
52 | + datadirectory="$datadir/espeak-data" | |
53 | +fi | |
54 | +AC_DEFINE_UNQUOTED(PATH_ESPEAK_DATA, "$datadirectory", [data directory]) | |
55 | +AC_CONFIG_FILES([Makefile src/Makefile]) | |
56 | +AC_OUTPUT | |
57 | diff -Nur o.speak-1.14-source/src/Makefile.am n.speak-1.14-source/src/Makefile.am | |
58 | --- o.speak-1.14-source/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100 | |
59 | +++ n.speak-1.14-source/src/Makefile.am 2006-09-23 22:18:52.000000000 +0200 | |
60 | @@ -0,0 +1,19 @@ | |
61 | +AM_CXXFLAGS = -Wall -pedantic -fno-exceptions | |
62 | + | |
63 | +bin_PROGRAMS = speak | |
64 | +speak_SOURCES = speak.cpp | |
65 | +speak_LDADD = libespeak.la | |
66 | + | |
67 | +lib_LTLIBRARIES = libespeak.la | |
68 | + | |
69 | +libespeak_la_SOURCES = speak_lib.cpp compiledict.cpp dictionary.cpp intonation.cpp \ | |
70 | + readclause.cpp setlengths.cpp \ | |
71 | + synthdata.cpp synthesize.cpp translate.cpp tr_english.cpp \ | |
72 | + tr_languages.cpp voices.cpp wavegen.cpp | |
73 | + | |
74 | +libespeak_la_LDFLAGS = -version-info 2:16:1 | |
75 | + | |
76 | +# -fvisibility=hidden requires modern GCC which is not present in current PLD Ac | |
77 | +#libespeak_la_CXXFLAGS = $(AM_CXXFLAGS) -fvisibility=hidden | |
78 | + | |
79 | +include_HEADERS = speak_lib.h | |
80 | diff -Nur o.speak-1.14-source/src/speech.h n.speak-1.14-source/src/speech.h | |
81 | --- o.speak-1.14-source/src/speech.h 2006-09-21 20:00:41.000000000 +0200 | |
82 | +++ n.speak-1.14-source/src/speech.h 2006-09-23 19:54:14.000000000 +0200 | |
83 | @@ -36,7 +36,10 @@ | |
84 | #endif | |
85 | ||
86 | // will look for espeak_data directory here, and also in user's home directory | |
87 | +#include "config.h" | |
88 | +#ifndef PATH_ESPEAK_DATA | |
89 | #define PATH_ESPEAK_DATA "/usr/share/espeak-data" | |
90 | +#endif | |
91 | ||
92 | typedef unsigned short USHORT; | |
93 | typedef unsigned char UCHAR; | |
94 |