Commit 1c5ddd94 authored by Sam Hocevar's avatar Sam Hocevar

  * Don't use the #@%&$! autoconf-suggested CFLAGS.
parent 0a4aeaa6
This diff is collapsed.
...@@ -9,6 +9,9 @@ AC_SUBST(VLC_VERSION) ...@@ -9,6 +9,9 @@ AC_SUBST(VLC_VERSION)
VLC_CODENAME=Ourumov VLC_CODENAME=Ourumov
AC_SUBST(VLC_CODENAME) AC_SUBST(VLC_CODENAME)
dnl Save CFLAGS
save_CFLAGS="${CFLAGS}"
dnl Check for tools dnl Check for tools
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_PROG_CC AC_PROG_CC
...@@ -91,9 +94,6 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[ ...@@ -91,9 +94,6 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
Define if <strings.h> defines strncasecmp.) Define if <strings.h> defines strncasecmp.)
]) ])
dnl Do a series of bizarre compilation tests
save_CFLAGS=$CFLAGS
dnl Check for ntohl, etc. dnl Check for ntohl, etc.
CFLAGS="${CFLAGS} -Wall -Werror" CFLAGS="${CFLAGS} -Wall -Werror"
AC_MSG_CHECKING([for ntohl in sys/param.h]) AC_MSG_CHECKING([for ntohl in sys/param.h])
...@@ -110,7 +110,7 @@ AC_TRY_COMPILE([],, ...@@ -110,7 +110,7 @@ AC_TRY_COMPILE([],,
AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
dnl End of the bizarre compilation tests dnl End of the bizarre compilation tests
CFLAGS=$save_CFLAGS CFLAGS="${save_CFLAGS}"
dnl Check for boolean_t dnl Check for boolean_t
AC_MSG_CHECKING([for boolean_t in sys/types.h]) AC_MSG_CHECKING([for boolean_t in sys/types.h])
...@@ -521,6 +521,7 @@ AC_SUBST(LIB_X11) ...@@ -521,6 +521,7 @@ AC_SUBST(LIB_X11)
AC_SUBST(LIB_XVIDEO) AC_SUBST(LIB_XVIDEO)
AC_SUBST(LIB_YUV) AC_SUBST(LIB_YUV)
AC_SUBST(CFLAGS_VLC)
AC_SUBST(CFLAGS_GTK) AC_SUBST(CFLAGS_GTK)
AC_SUBST(CFLAGS_X11) AC_SUBST(CFLAGS_X11)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment