*** empty log message ***
[flac.git] / configure.in
index 29b3ee3..4aa1ad8 100644 (file)
@@ -73,6 +73,7 @@ AM_CONDITIONAL(FLaC__CPU_SPARC, test "x$cpu_sparc" = xtrue)
 case "$host" in
        i386-*-openbsd3.[[0-3]]) OBJ_FORMAT=aoutb ;;
        *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;;
+       *-*-darwin*) OBJ_FORMAT=macho ;;
        *) OBJ_FORMAT=elf ;;
 esac
 AC_SUBST(OBJ_FORMAT)
@@ -247,7 +248,8 @@ fi
 AC_CHECK_PROGS(AS, as, as)
 AC_CHECK_PROGS(GAS, gas, gas)
 
-test "$AS" = "as" && as --version | grep GNU >/dev/null && AS=gas
+# try -v (apple as) and --version (gas) at the same time
+test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas
 
 AM_CONDITIONAL(FLaC__HAS_AS, test "$AS" = "as")
 AM_CONDITIONAL(FLaC__HAS_GAS, test "$AS" = "gas")
@@ -263,17 +265,17 @@ fi
 
 OUR_CFLAGS_HEAD='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'
 if test "x$debug" = xtrue; then
-       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -O0 -DDEBUG"
+       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -DDEBUG"
 else
-       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O2 -DNDEBUG"
+       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -DNDEBUG"
        if test "x$GCC" = xyes; then
-               OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__"
+               OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__"
        fi
 fi
 CFLAGS="$OUR_CFLAGS_HEAD $CFLAGS"
 CXXFLAGS="$OUR_CFLAGS_HEAD $CXXFLAGS"
 
-#@@@@@@
+#@@@
 AM_CONDITIONAL(FLaC__HAS_AS__TEMPORARILY_DISABLED, test "yes" = "no")
 AM_CONDITIONAL(FLaC__HAS_GAS__TEMPORARILY_DISABLED, test "yes" = "no")
 
@@ -289,11 +291,6 @@ AC_CONFIG_FILES([ \
        src/libFLAC/include/private/Makefile \
        src/libFLAC/include/protected/Makefile \
        src/libFLAC++/Makefile \
-       src/libOggFLAC/Makefile \
-       src/libOggFLAC/include/Makefile \
-       src/libOggFLAC/include/private/Makefile \
-       src/libOggFLAC/include/protected/Makefile \
-       src/libOggFLAC++/Makefile \
        src/flac/Makefile \
        src/metaflac/Makefile \
        src/monkeys_audio_utilities/Makefile \
@@ -318,15 +315,11 @@ AC_CONFIG_FILES([ \
        src/test_libs_common/Makefile \
        src/test_libFLAC/Makefile \
        src/test_libFLAC++/Makefile \
-       src/test_libOggFLAC/Makefile \
-       src/test_libOggFLAC++/Makefile \
        src/test_seeking/Makefile \
        src/test_streams/Makefile \
        include/Makefile \
        include/FLAC/Makefile \
        include/FLAC++/Makefile \
-       include/OggFLAC/Makefile \
-       include/OggFLAC++/Makefile \
        include/share/Makefile \
        include/share/grabbag/Makefile \
        include/test_libs_common/Makefile \
@@ -334,6 +327,7 @@ AC_CONFIG_FILES([ \
        doc/html/Makefile \
        doc/html/images/Makefile \
        doc/html/ru/Makefile \
+       m4/Makefile \
        man/Makefile \
        test/Makefile \
        test/cuesheets/Makefile \