1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

If perl linking failed, print the error message too.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1899 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-23 20:30:01 +00:00 committed by cras
parent d599f7bb99
commit 287df1f16a

View File

@ -527,7 +527,7 @@ if test "$want_perl" != "no"; then
dnl * check that perl's ldflags actually work
AC_CACHE_VAL(irssi_cv_lib_perl_works, [
echo "main(){perl_alloc(); return 0;}" > conftest.c
$CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> /dev/null > /dev/null
$CC $CFLAGS conftest.c -o conftest $LDFLAGS $PERL_LDFLAGS 2> perl.error.tmp > /dev/null
if test -s conftest; then
irssi_cv_lib_perl_works=yes
else
@ -536,10 +536,11 @@ if test "$want_perl" != "no"; then
])
if test "x$irssi_cv_lib_perl_works" = "xno"; then
perl_check_error="Error linking with perl libraries: $PERL_LDFLAGS"
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])
want_perl=no
fi
rm -f perl.error.tmp
fi
if test "x$want_perl" != "xno"; then