Contents of /trunk/speexdsp/patches/speexdsp-fixbuilds-774c87d.patch
Parent Directory | Revision Log
Revision 2541 -
(show annotations)
(download)
Thu Feb 5 08:51:15 2015 UTC (9 years, 7 months ago) by niro
File size: 1205 byte(s)
Thu Feb 5 08:51:15 2015 UTC (9 years, 7 months ago) by niro
File size: 1205 byte(s)
-added build fix for speexdsp
1 | diff --git a/configure.ac b/configure.ac |
2 | index 2cd2d1e..1de0c23 100644 |
3 | --- a/configure.ac |
4 | +++ b/configure.ac |
5 | @@ -334,6 +334,12 @@ AC_SUBST([USIZE16]) |
6 | AC_SUBST([SIZE32]) |
7 | AC_SUBST([USIZE32]) |
8 | |
9 | +AS_IF([test "$ac_cv_header_stdint_h" = "yes"], [INCLUDE_STDINT="#include <stdint.h>"], |
10 | + [test "$ac_cv_header_inttypes_h" = "yes"], [INCLUDE_STDINT="#include <inttypes.h>"], |
11 | + [test "$ac_cv_header_sys_types_h" = "yes"], [INCLUDE_STDINT="#include <sys/types.h>"]) |
12 | + |
13 | +AC_SUBST([INCLUDE_STDINT]) |
14 | + |
15 | AC_CONFIG_FILES([ |
16 | Makefile libspeexdsp/Makefile doc/Makefile SpeexDSP.spec |
17 | include/Makefile include/speex/Makefile speexdsp.pc |
18 | diff --git a/include/speex/speexdsp_config_types.h.in b/include/speex/speexdsp_config_types.h.in |
19 | index 02b82fd..5ea7b55 100644 |
20 | --- a/include/speex/speexdsp_config_types.h.in |
21 | +++ b/include/speex/speexdsp_config_types.h.in |
22 | @@ -1,13 +1,7 @@ |
23 | #ifndef __SPEEX_TYPES_H__ |
24 | #define __SPEEX_TYPES_H__ |
25 | |
26 | -#if defined HAVE_STDINT_H |
27 | -# include <stdint.h> |
28 | -#elif defined HAVE_INTTYPES_H |
29 | -# include <inttypes.h> |
30 | -#elif defined HAVE_SYS_TYPES_H |
31 | -# include <sys/types.h> |
32 | -#endif |
33 | +@INCLUDE_STDINT@ |
34 | |
35 | typedef @SIZE16@ spx_int16_t; |
36 | typedef @USIZE16@ spx_uint16_t; |