mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Many (FSF and Sun at least) have interpreted the C99 standard in a way
that int64_t and similar types are only defined on 64 bit platforms. Using -std=gnu99 lifts this rather silly restriction. The HAVE_NETLINK define is not generated anywhere in our configure. So it was rather pointless to use it for any test. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@450 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
2623edcc42
commit
72316ccf9c
1 changed files with 3 additions and 23 deletions
26
configure.ac
26
configure.ac
|
|
@ -63,29 +63,9 @@ test_gcc_flag() {
|
|||
# If using GCC specify some additional parameters
|
||||
if test "x$GCC" = "xyes" ; then
|
||||
|
||||
DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter"
|
||||
|
||||
if test "x$HAVE_NETLINK" = "xyes" ; then
|
||||
# Test whether rtnetlink.h can be included when compiled with -std=c99
|
||||
# some distributions (e.g. archlinux) have broken headers that dont
|
||||
# define __u64 with -std=c99
|
||||
AC_MSG_CHECKING([checking whether rtnetlink.h can be included with -std=c99])
|
||||
OLDCFLAGS="$CFLAGS"
|
||||
CFLAGS="-std=c99"
|
||||
AC_TRY_COMPILE([#include <linux/rtnetlink.h>], [],
|
||||
use_stdc99=yes, use_stdc99=no)
|
||||
|
||||
if test x"$use_stdc99" = xyes; then
|
||||
DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
CFLAGS="$OLDCFLAGS"
|
||||
else
|
||||
DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS"
|
||||
fi
|
||||
# We use gnu99 instead of c99 because many have interpreted the standard
|
||||
# in a way that int64_t isn't defined on non-64 bit platforms.
|
||||
DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter"
|
||||
|
||||
for flag in $DESIRED_FLAGS ; do
|
||||
AC_MSG_CHECKING([whether $CC accepts $flag])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue