]> granicus.if.org Git - graphviz/commitdiff
fix the test for -lperl
authorellson <devnull@localhost>
Tue, 20 Oct 2009 09:49:34 +0000 (09:49 +0000)
committerellson <devnull@localhost>
Tue, 20 Oct 2009 09:49:34 +0000 (09:49 +0000)
configure.ac

index 61297e0fd156d21e82ab91477361065dd6bdc69f..d215dc20df43eda456bbda5ee8f737f0c91056b4 100644 (file)
@@ -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