Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: configure.ac

Issue 12388030: Update Opus to 1.0.2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « configure ('k') | depcomp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl Process this file with autoconf to produce a configure script. -*-m4-*- 1 dnl Process this file with autoconf to produce a configure script. -*-m4-*-
2 2
3 AC_INIT(src/opus_encoder.c) 3 AC_INIT(src/opus_encoder.c)
4 4
5 AM_CONFIG_HEADER([config.h]) 5 AM_CONFIG_HEADER([config.h])
6 6
7 dnl enable silent rules on automake 1.11 and later 7 dnl enable silent rules on automake 1.11 and later
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9 9
10 # Read our default version string from version.mk. 10 # Read our default version string from version.mk.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 # For autoconf 47 # For autoconf
48 AC_SUBST(OPUS_VERSION) 48 AC_SUBST(OPUS_VERSION)
49 49
50 # For config.h. 50 # For config.h.
51 AC_DEFINE_UNQUOTED([OPUS_VERSION], ["$OPUS_VERSION"], 51 AC_DEFINE_UNQUOTED([OPUS_VERSION], ["$OPUS_VERSION"],
52 [Opus library version string]) 52 [Opus library version string])
53 53
54 # For libtool. 54 # For libtool.
55 dnl Please update these for releases. 55 dnl Please update these for releases.
56 OPUS_LT_CURRENT=2 56 OPUS_LT_CURRENT=3
57 OPUS_LT_REVISION=0 57 OPUS_LT_REVISION=0
58 OPUS_LT_AGE=2 58 OPUS_LT_AGE=3
59 59
60 AC_SUBST(OPUS_LT_CURRENT) 60 AC_SUBST(OPUS_LT_CURRENT)
61 AC_SUBST(OPUS_LT_REVISION) 61 AC_SUBST(OPUS_LT_REVISION)
62 AC_SUBST(OPUS_LT_AGE) 62 AC_SUBST(OPUS_LT_AGE)
63 63
64 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) 64 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
65 AM_MAINTAINER_MODE 65 AM_MAINTAINER_MODE([enable])
66 66
67 AC_CANONICAL_HOST 67 AC_CANONICAL_HOST
68 AC_MINGW32 68 AC_MINGW32
69 AM_PROG_LIBTOOL 69 AM_PROG_LIBTOOL
70 AM_PROG_CC_C_O 70 AM_PROG_CC_C_O
71 71
72 AC_PROG_CC_C99 72 AC_PROG_CC_C99
73 AC_C_BIGENDIAN
74 AC_C_CONST 73 AC_C_CONST
75 AC_C_INLINE 74 AC_C_INLINE
76 75
77 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not 76 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
78 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3) 77 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
79 AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict, 78 AC_CACHE_CHECK([for C/C++ restrict keyword], ac_cv_c_restrict,
80 [ac_cv_c_restrict=no 79 [ac_cv_c_restrict=no
81 # The order here caters to the fact that C++ does not require restrict. 80 # The order here caters to the fact that C++ does not require restrict.
82 for ac_kw in __restrict __restrict__ _Restrict restrict; do 81 for ac_kw in __restrict __restrict__ _Restrict restrict; do
83 AC_COMPILE_IFELSE([AC_LANG_PROGRAM( 82 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 # ;; 151 # ;;
153 #esac 152 #esac
154 153
155 ac_enable_fixed="no"; 154 ac_enable_fixed="no";
156 ac_enable_float="yes"; 155 ac_enable_float="yes";
157 AC_ARG_ENABLE(fixed-point, [ --enable-fixed-point compile without floatin g point (for machines without a fast enough FPU)], 156 AC_ARG_ENABLE(fixed-point, [ --enable-fixed-point compile without floatin g point (for machines without a fast enough FPU)],
158 [if test "$enableval" = yes; then 157 [if test "$enableval" = yes; then
159 ac_enable_fixed="yes"; 158 ac_enable_fixed="yes";
160 ac_enable_float="no"; 159 ac_enable_float="no";
161 AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point (for machines without a fast enough FPU)]) 160 AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point (for machines without a fast enough FPU)])
162 else 161 fi])
163 AC_DEFINE([FLOATING_POINT], , [Compile as floating-point (for machines with a fast enough FPU)])
164 fi],
165 AC_DEFINE([FLOATING_POINT], , [Compile as floating-point (for machines with a fa st enough FPU)]))
166 162
167 ac_enable_fixed_debug="no" 163 ac_enable_fixed_debug="no"
168 AC_ARG_ENABLE(fixed-point-debug, [ --enable-fixed-point-debug debug fixed-point implementation], 164 AC_ARG_ENABLE(fixed-point-debug, [ --enable-fixed-point-debug debug fixed-point implementation],
169 [if test "$enableval" = yes; then 165 [if test "$enableval" = yes; then
170 ac_enable_fixed_debug="yes" 166 ac_enable_fixed_debug="yes"
171 AC_DEFINE([FIXED_DEBUG], , [Debug fixed-point implementation]) 167 AC_DEFINE([FIXED_DEBUG], , [Debug fixed-point implementation])
172 fi]) 168 fi])
173 169
174 ac_enable_custom_modes="no" 170 ac_enable_custom_modes="no"
175 AC_ARG_ENABLE(custom-modes, [ --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames], 171 AC_ARG_ENABLE(custom-modes, [ --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames],
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 $ac_cv_sizeof_short) SIZE32="short";; 267 $ac_cv_sizeof_short) SIZE32="short";;
272 esac 268 esac
273 fi 269 fi
274 270
275 AC_SUBST(SIZE16) 271 AC_SUBST(SIZE16)
276 AC_SUBST(SIZE32) 272 AC_SUBST(SIZE32)
277 273
278 AM_CONDITIONAL([FIXED_POINT], [test x$ac_enable_fixed = xyes]) 274 AM_CONDITIONAL([FIXED_POINT], [test x$ac_enable_fixed = xyes])
279 AM_CONDITIONAL([CUSTOM_MODES], [test x$ac_enable_custom_modes = xyes]) 275 AM_CONDITIONAL([CUSTOM_MODES], [test x$ac_enable_custom_modes = xyes])
280 276
281 AC_OUTPUT([Makefile opus.pc opus-uninstalled.pc 277 dnl subsitutions for the pkg-config files
282 doc/Makefile doc/Doxyfile]) 278 if test x$ac_enable_float = xyes; then
279 PC_BUILD="floating-point"
280 PC_LIBM=$LIBM
281 else
282 PC_BUILD="fixed-point"
283 PC_LIBM=
284 fi
285 dnl opus_custom requires libm as well
286 if test x$ac_enable_custom_modes = xyes; then
287 PC_BUILD="${PC_BUILD}, custom modes"
288 PC_LIBM=$LIBM
289 fi
290 AC_SUBST([PC_BUILD])
291 AC_SUBST([PC_LIBM])
292
293
294 AC_CONFIG_FILES([Makefile opus.pc opus-uninstalled.pc
295 doc/Makefile doc/Doxyfile])
296
297 AC_OUTPUT
283 298
284 AC_MSG_RESULT([ 299 AC_MSG_RESULT([
285 ------------------------------------------------------------------------ 300 ------------------------------------------------------------------------
286 $PACKAGE $VERSION: Automatic configuration OK. 301 $PACKAGE $VERSION: Automatic configuration OK.
287 302
288 Compiler support: 303 Compiler support:
289 304
290 C99 var arrays: ................ ${has_var_arrays} 305 C99 var arrays: ................ ${has_var_arrays}
291 C99 lrintf: .................... ${ac_cv_func_lrintf} 306 C99 lrintf: .................... ${ac_cv_func_lrintf}
292 Alloca: ........................ ${has_alloca} 307 Alloca: ........................ ${has_alloca}
293 308
294 General configuration: 309 General configuration:
295 310
296 Floating point support: ........ ${ac_enable_float} 311 Floating point support: ........ ${ac_enable_float}
297 Fast float approximations: ..... ${float_approx} 312 Fast float approximations: ..... ${float_approx}
298 Fixed point debugging: ......... ${ac_enable_fixed_debug} 313 Fixed point debugging: ......... ${ac_enable_fixed_debug}
299 Custom modes: .................. ${ac_enable_custom_modes} 314 Custom modes: .................. ${ac_enable_custom_modes}
300 Assertion checking: ............ ${ac_enable_assertions} 315 Assertion checking: ............ ${ac_enable_assertions}
301 Fuzzing: ....................... ${ac_enable_fuzzing} 316 Fuzzing: ....................... ${ac_enable_fuzzing}
302 317
303 API documentation: ............. ${ac_enable_doc} 318 API documentation: ............. ${ac_enable_doc}
304 ------------------------------------------------------------------------ 319 ------------------------------------------------------------------------
305 ]) 320 ])
306 321
307 echo "Type \"make; make install\" to compile and install"; 322 echo "Type \"make; make install\" to compile and install";
308 echo "Type \"make check\" to run the test suite"; 323 echo "Type \"make check\" to run the test suite";
OLDNEW
« no previous file with comments | « configure ('k') | depcomp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698