1 dnl Process this file with autoconf to produce a configure script
3 dnl ------------------------------------------------
4 dnl Initialization and Versioning
5 dnl ------------------------------------------------
12 AM_CONFIG_HEADER([config.h])
14 AM_INIT_AUTOMAKE(libvorbisidec,1.2.0)
16 dnl Library versioning
21 AC_SUBST(V_LIB_CURRENT)
22 AC_SUBST(V_LIB_REVISION)
25 dnl --------------------------------------------------
26 dnl Check for programs
27 dnl --------------------------------------------------
29 dnl save $CFLAGS since AC_PROG_CC likes to insert "-g -O2"
30 dnl if $CFLAGS is blank
38 dnl --------------------------------------------------
39 dnl Set build flags based on environment
40 dnl --------------------------------------------------
42 dnl Set some target options
45 ldflags_save="$LDFLAGS"
46 if test -z "$GCC"; then
49 DEBUG="-g -D_ARM_ASSEM_"
50 CFLAGS="-O -D_ARM_ASSEM_"
51 PROFILE="-p -g -O -D_ARM_ASSEM_" ;;
61 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -D_ARM_ASSEM_"
62 CFLAGS="-O2 -D_ARM_ASSEM_ -fsigned-char"
63 PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char -fno-inline-functions";;
66 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
67 CFLAGS="-O2 -Wall -fsigned-char"
68 PROFILE="-Wall -pg -g -O2 -fsigned-char -fno-inline-functions";;
71 CFLAGS="$CFLAGS $cflags_save -D_REENTRANT"
72 LDFLAGS="$LDFLAGS $ldflags_save"
75 # Test whenever ld supports -version-script
78 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
79 SHLIB_VERSION_ARG="Wl,--version-script=Version_script"
81 dnl Set extra linker options
84 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
89 LDFLAGS="$LDFLAGS $SHLIB_VERSION_ARG"
92 dnl --------------------------------------------------
94 dnl --------------------------------------------------
98 [ --enable-low-accuracy enable 32 bit only multiply operations],
99 CFLAGS="$CFLAGS -D_LOW_ACCURACY_"
102 dnl --------------------------------------------------
103 dnl Check for headers
104 dnl --------------------------------------------------
106 AC_CHECK_HEADER(memory.h,CFLAGS="$CFLAGS -DUSE_MEMORY_H",:)
108 dnl --------------------------------------------------
109 dnl Check for typedefs, structures, etc
110 dnl --------------------------------------------------
114 dnl --------------------------------------------------
115 dnl Check for library functions
116 dnl --------------------------------------------------
121 dnl --------------------------------------------------
123 dnl --------------------------------------------------
131 AC_OUTPUT(Makefile Version_script)