From 4715563785b366095a6e9a6f04fd30c63a1a7600 Mon Sep 17 00:00:00 2001 From: gord-fig Date: Tue, 17 Sep 2002 20:11:35 +0000 Subject: [PATCH] Look for compat flag in GS_OPTIONS. --- lustre/doc/tex2pdf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/doc/tex2pdf b/lustre/doc/tex2pdf index d2c5738..d9a7176 100755 --- a/lustre/doc/tex2pdf +++ b/lustre/doc/tex2pdf @@ -1418,7 +1418,11 @@ sub check_commands { &checkCommand("epstopdf","See pdftex homepage for details: http://tug.org/applications/pdftex"); $exec_epstopdf = `which epstopdf`; chomp $exec_epstopdf; - if (&grep_file($exec_epstopdf, "-dCompatibilityLevel=1\\.1", $TRUE) > 0) { + my $compat = "-dCompatibilityLevel=1\\.1"; + if (defined($ENV{'GS_OPTIONS'}) && $ENV{'GS_OPTIONS'} =~ /$compat/o) { + &report(9, "Good: ghostscript option '-dCompatibilityLevel=1.1' detected " + ."in\n'\$GS_OPTIONS'."); + } elsif (&grep_file($exec_epstopdf, $compat, $TRUE) > 0) { &report(9, "Good: ghostscript option '-dCompatibilityLevel=1.1' detected " ."in\n'$exec_epstopdf'."); } else { -- 1.8.3.1