Lines 26-33
Link Here
|
26 |
# Set the name of the global configuration file. See the installation notes |
26 |
# Set the name of the global configuration file. See the installation notes |
27 |
# and manual page for more details on configuration files. |
27 |
# and manual page for more details on configuration files. |
28 |
|
28 |
|
29 |
$globrc='/usr/local/lib/html2ps/html2psrc'; |
29 |
$globrc='/etc/html2psrc'; |
30 |
$ug='/usr/local/lib/html2ps/html2ps.html'; |
30 |
$ug='@DOCDIR@/html2ps.html'; |
31 |
|
31 |
|
32 |
$conf=<<'EOR'; |
32 |
$conf=<<'EOR'; |
33 |
@html2ps { |
33 |
@html2ps { |
Lines 478-483
Link Here
|
478 |
print DBG "*****\n" if($opt_d); |
478 |
print DBG "*****\n" if($opt_d); |
479 |
&pagedef; |
479 |
&pagedef; |
480 |
($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'}); |
480 |
($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'}); |
|
|
481 |
|
482 |
# try autoconfiguration (basing on paths known from PLD packages) |
483 |
eval "require Image::Magick"; $package{'PerlMagick'}=!$@; |
484 |
$package{'ImageMagick'} = ( -x "/usr/X11R6/bin/mogrify" ); |
485 |
$package{'pbmplus'} = ( -x "/usr/bin/giftoppm" ); |
486 |
$package{'netpbm'} = ( -x "/usr/bin/giftopnm" ); |
487 |
$package{'djpeg'} = ( -x "/usr/bin/djpeg" ); |
488 |
$package{'Ghostscript'} = ( -x "/usr/bin/gs" ); |
489 |
$package{'TeX'} = ( -x "/usr/bin/tex" ); |
490 |
$package{'dvips'} = ( -x "/usr/bin/dvips" ); |
491 |
eval "require LWP::UserAgent"; $package{'libwww-perl'}=!$@; |
481 |
|
492 |
|
482 |
require Image::Magick if($package{'PerlMagick'}); |
493 |
require Image::Magick if($package{'PerlMagick'}); |
483 |
$geturl=$package{'geturl'}; |
494 |
$geturl=$package{'geturl'}; |