Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kaldi-commonvoice
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Will
kaldi-commonvoice
Commits
66bb0643
Commit
66bb0643
authored
8 years ago
by
Giulio Paci
Browse files
Options
Downloads
Patches
Plain Diff
Added --speex-* options to configure.
parent
8b21e690
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/configure
+18
-7
18 additions, 7 deletions
src/configure
with
18 additions
and
7 deletions
src/configure
+
18
−
7
View file @
66bb0643
...
...
@@ -164,6 +164,15 @@ do
--mkl-libdir
=
*
)
MKLLIBDIR
=
`
read_dirname
$1
`
;
shift
;;
--speex-root
=
*
)
SPEEXROOT
=
`
read_dirname
$1
`
;
shift
;;
--speex-libdir
=
*
)
SPEEXLIBDIR
=
`
read_dirname
$1
`
;
shift
;;
--speex-includedir
=
*
)
SPEEXINCLUDEDIR
=
`
read_dirname
$1
`
;
shift
;;
--omp-libdir
=
*
)
OMPLIBDIR
=
`
read_dirname
$1
`
;
shift
;;
...
...
@@ -462,7 +471,9 @@ function configure_cuda {
function
linux_configure_speex
{
#check whether the user has called tools/extras/install_speex.sh or not
SPEEXROOT
=
`
pwd
`
/../tools/speex
[
!
-z
"
$SPEEXROOT
"
]
||
SPEEXROOT
=
`
pwd
`
/../tools/speex
[
!
-z
"
$SPEEXLIBDIR
"
]
||
SPEEXLIBDIR
=
"
$SPEEXROOT
"
/lib
[
!
-z
"
$SPEEXINCLUDEDIR
"
]
||
SPEEXINCLUDEDIR
=
"
$SPEEXROOT
"
/include
static_speex
=
$1
if
[
"foo"
$static_speex
==
"foo"
]
;
then
static_speex
=
false
...
...
@@ -473,20 +484,20 @@ function linux_configure_speex {
else
spx_type
=
so
fi
if
[
!
-f
"
$SPEEX
ROOT
/lib
/libspeex.
${
spx_type
}
"
]
;
then
if
[
!
-f
"
$SPEEX
LIBDIR
/libspeex.
${
spx_type
}
"
]
;
then
echo
"Static=[
$static_speex
] Speex library not found: You can still build Kaldi without Speex."
return
fi
if
[
-f
$SPEEX
ROOT
/include
/speex/speex.h
]
;
then
if
[
-f
$SPEEX
INCLUDEDIR
/speex/speex.h
]
;
then
echo
>>
kaldi.mk
echo
CXXFLAGS +
=
-DHAVE_SPEEX
-I
${
SPEEX
ROOT
}
/include
>>
kaldi.mk
echo
CXXFLAGS +
=
-DHAVE_SPEEX
-I
${
SPEEX
INCLUDEDIR
}
>>
kaldi.mk
if
$static_speex
;
then
echo
LDLIBS +
=
$SPEEX
ROOT
/lib
/libspeex.a
echo
LDLIBS +
=
$SPEEX
LIBDIR
/libspeex.a
else
echo
LDLIBS +
=
-L
${
SPEEX
ROOT
}
/lib
-lspeex
>>
kaldi.mk
echo
LDFLAGS +
=
-Wl
,-rpath
=
${
SPEEX
ROOT
}
/lib
>>
kaldi.mk
echo
LDLIBS +
=
-L
${
SPEEX
LIBDIR
}
-lspeex
>>
kaldi.mk
echo
LDFLAGS +
=
-Wl
,-rpath
=
${
SPEEX
LIBDIR
}
>>
kaldi.mk
fi
echo
"Successfully configured with Speex at
$SPEEXROOT
, (static=[
$static_speex
])"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment