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
commit 287df1f16a

View file

@ -527,7 +527,7 @@ if test "$want_perl" != "no"; then
dnl * check that perl's ldflags actually work dnl * check that perl's ldflags actually work
AC_CACHE_VAL(irssi_cv_lib_perl_works, [ AC_CACHE_VAL(irssi_cv_lib_perl_works, [
echo "main(){perl_alloc(); return 0;}" > conftest.c 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 if test -s conftest; then
irssi_cv_lib_perl_works=yes irssi_cv_lib_perl_works=yes
else else
@ -536,10 +536,11 @@ if test "$want_perl" != "no"; then
]) ])
if test "x$irssi_cv_lib_perl_works" = "xno"; 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]) AC_MSG_RESULT([error linking with perl libraries, building without Perl])
want_perl=no want_perl=no
fi fi
rm -f perl.error.tmp
fi fi
if test "x$want_perl" != "xno"; then if test "x$want_perl" != "xno"; then