Don't warn about multichar characters on BeOS/Haiku.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Oct 2011 16:35:25 -0400
changeset 5989cd688ba5b7d4
parent 5982 f324bd81b52c
child 5990 75c796a375e1
Don't warn about multichar characters on BeOS/Haiku.

The system headers use them generously.
(transplanted from 825e1072eac6c950ca4f6e879a91ea199a282b2c)
configure.in
     1.1 --- a/configure.in	Thu Oct 13 01:21:35 2011 -0400
     1.2 +++ b/configure.in	Thu Oct 13 16:35:25 2011 -0400
     1.3 @@ -958,6 +958,19 @@
     1.4  
     1.5      if test x$have_gcc_Wall = xyes; then
     1.6          EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
     1.7 +
     1.8 +        dnl Haiku headers use multicharacter constants all over the place. Ignore these warnings when using -Wall.
     1.9 +        AC_MSG_CHECKING(for necessary GCC -Wno-multichar option)
    1.10 +        need_gcc_Wno_multichar=no
    1.11 +        case "$host" in
    1.12 +            *-*-beos* | *-*-haiku*)
    1.13 +                need_gcc_Wno_multichar=yes
    1.14 +                ;;
    1.15 +        esac
    1.16 +        AC_MSG_RESULT($need_gcc_Wno_multichar)
    1.17 +        if test x$need_gcc_Wno_multichar = xyes; then
    1.18 +            EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
    1.19 +        fi
    1.20      fi
    1.21  }
    1.22