]> git.mxchange.org Git - flightgear.git/blob - 3rdparty/hts_engine_API/configure.ac
Merge commit 'refs/merge-requests/1577' of git://gitorious.org/fg/flightgear into...
[flightgear.git] / 3rdparty / hts_engine_API / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.59)
5 AC_INIT(hts_engine_API, 1.08, hts-engine-users@lists.sourceforge.net)
6 AC_CONFIG_AUX_DIR([config])
7 AC_COPYRIGHT(Copyright 2001-2013 Nagoya Institute of Technology)
8 AC_COPYRIGHT(Copyright 2001-2008 Tokyo Institute of Technology)
9 AM_INIT_AUTOMAKE(hts_engine_API, 1.08, nostdinc no-installinfo no-installman)
10
11 # Checks for C compiler
12 AC_PROG_CC
13 AM_PROG_CC_C_O
14 AC_PROG_INSTALL
15 AC_PROG_RANLIB
16 AN_MAKEVAR([AR], [AC_PROG_AR])
17 AN_PROGRAM([ar], [AC_PROG_AR])
18 AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
19 AC_PROG_AR
20
21
22 # Checks for libraries.
23 AC_CHECK_LIB([m], [log])
24
25
26 # Checks for header files.
27 AC_HEADER_STDC
28 AC_CHECK_HEADERS([stdlib.h string.h])
29
30
31 # Checks for typedefs, structures, and compiler characteristics.
32 AC_C_CONST
33 AC_TYPE_SIZE_T
34
35 # Checks for library functions.
36 AC_FUNC_VPRINTF
37 AC_CHECK_FUNCS([sqrt strchr strrchr strstr])
38
39
40 # Checks for embedded device compile
41 AC_ARG_ENABLE(embedded, [  --enable-embedded   turn on compiling for embedded devices (default=no)],,enable_embedded=no)
42 AC_MSG_CHECKING(whether to enable compiling for embedded devices)
43 if test x$enable_embedded = xyes; then
44         AC_MSG_RESULT(yes)
45         AC_DEFINE(HTS_EMBEDDED)
46 else
47         AC_MSG_RESULT(no)
48 fi
49
50
51 # Checks for using festival
52 AC_ARG_ENABLE(festival, [  --enable-festival   use memory allocation/free functions of speech tools (default=no)],,enable_festival=no)
53 AC_MSG_CHECKING(whether to use memory allocation/free functions of speech tools)
54 if test x$enable_festival = xyes; then
55         AC_MSG_RESULT(yes)
56         AC_DEFINE(FESTIVAL)
57 else
58         AC_MSG_RESULT(no)
59 fi
60
61
62 AC_CANONICAL_HOST
63 AC_C_BIGENDIAN
64
65
66 # Checks library for windows audio devices
67 case "$host_os" in
68  *win32* | *wince* | *cygwin* | *mingw* )
69         AC_HAVE_LIBRARY([winmm],,AC_MSG_ERROR(No winmm))
70         ;;
71  *)
72         ;;
73 esac
74
75
76 AC_CONFIG_FILES([Makefile bin/Makefile lib/Makefile])
77
78 AC_OUTPUT
79