Let Makefile.lite build succeed on FreeBSD amd64
[flac.git] / configure.ac
index eb9b0cc..46cb916 100644 (file)
@@ -397,13 +397,23 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
                XIPH_ADD_CFLAGS([-fgnu89-inline])
                fi
 
+       if test "x$GCC_MAJOR_VERSION$GCC_MINOR_VERSION" = "x47" ; then
+               XIPH_ADD_CFLAGS([-fno-inline-small-functions])
+               fi
+
        if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
                XIPH_ADD_CFLAGS([-msse2])
-               XIPH_ADD_CFLAGS([-mstackrealign])
                fi
 
        fi
 
+case "$host_os" in
+       "mingw32"|"os2")
+       if test "$host_cpu" = "i686"; then
+               XIPH_ADD_CFLAGS([-mstackrealign])
+               fi
+       esac
+
 XIPH_ADD_CFLAGS([-Wextra])
 
 if test x$enable_werror = "xyes" ; then
@@ -482,6 +492,7 @@ AC_CONFIG_FILES([ \
        objs/release/Makefile \
        objs/release/bin/Makefile \
        objs/release/lib/Makefile \
+       microbench/Makefile
 ])
 AC_OUTPUT