mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 09:12:22 -05:00
configiure: Fix testing compiler flags on anything other than gcc
This commit is contained in:
parent
c2c705a945
commit
eb90f076bb
12
configure.ac
12
configure.ac
@ -661,13 +661,13 @@ if test "x$GCC" = "xyes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl does this compiler support -Wno-pointer-sign ?
|
dnl does this compiler support -Wno-pointer-sign ?
|
||||||
AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
|
AC_MSG_CHECKING([if $CC accepts -Wno-pointer-sign ])
|
||||||
|
|
||||||
safe_CFLAGS=$CFLAGS
|
safe_CFLAGS=$CFLAGS
|
||||||
CFLAGS="-Wno-pointer-sign"
|
CFLAGS="-Wno-pointer-sign"
|
||||||
|
|
||||||
AC_TRY_COMPILE(, [
|
AC_TRY_COMPILE(, [
|
||||||
int main () { return 0 ; }
|
return 0;
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
no_pointer_sign=yes
|
no_pointer_sign=yes
|
||||||
@ -683,13 +683,13 @@ if test x$no_pointer_sign = xyes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl does this compiler support -funsigned-char ?
|
dnl does this compiler support -funsigned-char ?
|
||||||
AC_MSG_CHECKING([if gcc accepts -funsigned-char ])
|
AC_MSG_CHECKING([if $CC accepts -funsigned-char ])
|
||||||
|
|
||||||
safe_CFLAGS=$CFLAGS
|
safe_CFLAGS=$CFLAGS
|
||||||
CFLAGS="-funsigned-char"
|
CFLAGS="-funsigned-char"
|
||||||
|
|
||||||
AC_TRY_COMPILE(, [
|
AC_TRY_COMPILE(, [
|
||||||
int main () { return 0 ; }
|
return 0;
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
unsigned_char=yes
|
unsigned_char=yes
|
||||||
@ -705,13 +705,13 @@ if test x$unsigned_char = xyes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl does this compiler support -Wno-unused-result ?
|
dnl does this compiler support -Wno-unused-result ?
|
||||||
AC_MSG_CHECKING([if gcc accepts -Wno-unused-result ])
|
AC_MSG_CHECKING([if $CC accepts -Wno-unused-result ])
|
||||||
|
|
||||||
safe_CFLAGS=$CFLAGS
|
safe_CFLAGS=$CFLAGS
|
||||||
CFLAGS="-Wno-unused-result"
|
CFLAGS="-Wno-unused-result"
|
||||||
|
|
||||||
AC_TRY_COMPILE(, [
|
AC_TRY_COMPILE(, [
|
||||||
int main () { return 0 ; }
|
return 0;
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
no_unused_result=yes
|
no_unused_result=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user