Building flac from git master on OS X 10.9.5 fails, using Apple's clang:
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
$ ./configure
...
-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
Configuration summary :
FLAC version : ........................ 1.3.0
Host CPU : ............................ x86_64
Host Vendor : ......................... apple
Host OS : ............................. darwin13.4.0
Compiler is GCC : ..................... no
Compiler is Clang : ................... yes
SSE optimizations : ................... yes
Asm optimizations : ................... yes
Ogg/FLAC support : .................... no
$ make
...
Making all in libFLAC
Making all in include
Making all in private
make[5]: Nothing to be done for `all'.
Making all in protected
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Making all in .
CC bitmath.lo
CC bitreader.lo
In file included from bitreader.c:45:
../../include/share/endswap.h:38:30: error: definition of builtin function
'__builtin_bswap16'
static inline unsigned short __builtin_bswap16(unsigned short a)
^
1 error generated.
make[4]: *** [bitreader.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
$
Fixed in 7a671e7c4123d0f38a7ac626f475181b3a9e6b87 and b7d13c07163df2965987f1607db66616fa518cc3.