forked from FestCat/festcat-voice-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
59 lines (41 loc) · 1.42 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([festcat-voice-builder], [0.1], [[email protected]])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# wget
AC_PATH_PROG([WGET], [wget], [/usr/bin], [$PATH:/usr/bin])
if test ! -f "$WGET"; then
AC_MSG_ERROR(Can't find wget)
fi
AC_SUBST(WGET)
# sox
AC_PATH_PROG([SOX], [sox], [/usr/bin], [$PATH:/usr/bin])
if test ! -f "$SOX"; then
AC_MSG_ERROR(Can't find sox)
fi
AC_SUBST(SOX)
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_ARG_VAR(htk_user,AS_HELP_STRING([htk_user=USERNAME],[specify the HTK website user name]))
if test "x${htk_user}" = "x" ; then
AC_MSG_ERROR([htk_user=USERNAME environment variable not set])
fi
AC_SUBST([htk_user])
AC_ARG_VAR(htk_password,AS_HELP_STRING([htk_password=PASSWORD],[specify the HTK website password]))
if test "x${htk_password}" = "x" ; then
AC_MSG_ERROR([htk_password=PASSWORD environment variable not set])
fi
AC_SUBST([htk_password])
AC_SUBST(PWD)
WORKDIR=$PWD/work
AC_ARG_VAR(WORKDIR,AS_HELP_STRING([WORKDIR=/directory/to/work/on],[specify the directory to work on]))
AC_SUBST(WORKDIR)
AC_CONFIG_FILES([Makefile deps/Makefile data/en/Makefile data/ca/Makefile data/fr/Makefile data/mr/Makefile])
AC_OUTPUT