mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Make configure checks able to build with -Werror
Also fix a few compiler warnings, this combined with pull #82 allows me to build with CFLAGS="-Werror -Wall".
This commit is contained in:
parent
1bf4753914
commit
beec29c305
6 changed files with 13 additions and 11 deletions
|
|
@ -221,7 +221,7 @@ AC_CACHE_VAL(irssi_cv_type_socklen_t,
|
|||
[AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>],
|
||||
[socklen_t t;],
|
||||
[socklen_t t = 0; return((int)t); ],
|
||||
irssi_cv_type_socklen_t=yes,
|
||||
irssi_cv_type_socklen_t=no,
|
||||
)])
|
||||
|
|
@ -455,8 +455,10 @@ if test "$want_perl" != "no"; then
|
|||
esac
|
||||
|
||||
dnl * check that perl's ldflags actually work
|
||||
echo "main(){perl_alloc(); return 0;}" > conftest.c
|
||||
$CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
|
||||
echo "#include <EXTERN.h>" > conftest.c
|
||||
echo "#include <perl.h>" >> conftest.c
|
||||
echo "int main(){perl_alloc(); return 0;}" >> conftest.c
|
||||
$CC $CFLAGS $PERL_CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
|
||||
if test ! -s conftest -a "x$ignore_perl_errors" = "x"; then
|
||||
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS: `cat perl.error.tmp`"
|
||||
AC_MSG_RESULT([error linking with perl libraries, building without Perl])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue