configure.ac: moved CFLAGS checks down
Some warning flags may cause errors during library detection code. Do the CFLAGS checks at the end.
This commit is contained in:
parent
86782faa18
commit
37b69759da
43
configure.ac
43
configure.ac
@ -23,19 +23,6 @@ AC_DEFINE(PROTOCOL_VERSION, "0.14.0", [The mpd protocol version])
|
|||||||
|
|
||||||
MPD_LIBS=""
|
MPD_LIBS=""
|
||||||
MPD_CFLAGS=""
|
MPD_CFLAGS=""
|
||||||
if test x$GCC = xyes
|
|
||||||
then
|
|
||||||
MPD_CHECK_FLAG([-Wall])
|
|
||||||
MPD_CHECK_FLAG([-Wextra])
|
|
||||||
MPD_CHECK_FLAG([-Wno-deprecated-declarations])
|
|
||||||
MPD_CHECK_FLAG([-Wmissing-prototypes])
|
|
||||||
MPD_CHECK_FLAG([-Wdeclaration-after-statement])
|
|
||||||
MPD_CHECK_FLAG([-Wshadow])
|
|
||||||
MPD_CHECK_FLAG([-Wpointer-arith])
|
|
||||||
MPD_CHECK_FLAG([-Wstrict-prototypes])
|
|
||||||
MPD_CHECK_FLAG([-Wcast-qual])
|
|
||||||
MPD_CHECK_FLAG([-Wwrite-strings])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$prefix" || test "x$prefix" = xNONE; then
|
if test -z "$prefix" || test "x$prefix" = xNONE; then
|
||||||
local_lib=
|
local_lib=
|
||||||
@ -692,8 +679,38 @@ if test x$with_zeroconf != xno; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl CFLAGS
|
||||||
|
dnl
|
||||||
|
|
||||||
|
if test x$GCC = xyes
|
||||||
|
then
|
||||||
|
MPD_CHECK_FLAG([-Wall])
|
||||||
|
MPD_CHECK_FLAG([-Wextra])
|
||||||
|
MPD_CHECK_FLAG([-Wno-deprecated-declarations])
|
||||||
|
MPD_CHECK_FLAG([-Wmissing-prototypes])
|
||||||
|
MPD_CHECK_FLAG([-Wdeclaration-after-statement])
|
||||||
|
MPD_CHECK_FLAG([-Wshadow])
|
||||||
|
MPD_CHECK_FLAG([-Wpointer-arith])
|
||||||
|
MPD_CHECK_FLAG([-Wstrict-prototypes])
|
||||||
|
MPD_CHECK_FLAG([-Wcast-qual])
|
||||||
|
MPD_CHECK_FLAG([-Wwrite-strings])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl generate files
|
||||||
|
dnl
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT(src/mp4ff/Makefile doc/Makefile src/Makefile Makefile )
|
AC_OUTPUT(src/mp4ff/Makefile doc/Makefile src/Makefile Makefile )
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl pretty-print result
|
||||||
|
dnl
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "########### MPD CONFIGURATION ############"
|
echo "########### MPD CONFIGURATION ############"
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user