From: ellson Date: Tue, 20 Oct 2009 09:49:34 +0000 (+0000) Subject: fix the test for -lperl X-Git-Tag: LAST_LIBGRAPH~32^2~1643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83033c22a1763ac52796303813896101e5902393;p=graphviz fix the test for -lperl --- diff --git a/configure.ac b/configure.ac index 61297e0fd..d215dc20d 100644 --- a/configure.ac +++ b/configure.ac @@ -965,10 +965,13 @@ else use_perl="No (missing header)" PERL= ]) + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $PERL_LIBS" AC_CHECK_LIB(perl,main,,[ use_perl="No (missing library)" PERL= ]) + LDFLAGS=$save_LDFLAGS CPPFLAGS=$save_CPPFLAGS fi if test "x$PERL" != "x"; then