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='/opt/misc/lib/html2ps/html2psrc'; |
29 |
$globrc='/etc/html2psrc'; |
30 |
$ug='/opt/misc/lib/html2ps/html2ps.html'; |
30 |
$ug='/usr/share/doc/html2ps.html'; |
31 |
|
31 |
|
32 |
$conf=<<'EOR'; |
32 |
$conf=<<'EOR'; |
33 |
@html2ps { |
33 |
@html2ps { |
Lines 480-485
Link Here
|
480 |
&pagedef; |
480 |
&pagedef; |
481 |
($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'}); |
481 |
($pagew,$pageh)=split /\s+/, $AT_page{'size'} if(defined $AT_page{'size'}); |
482 |
|
482 |
|
|
|
483 |
# try autoconfiguration (basing on paths known from packages) |
484 |
eval "require Image::Magick"; $package{'PerlMagick'}=!$@; |
485 |
$package{'ImageMagick'} = ( -x "/usr/bin/mogrify" ); |
486 |
$package{'pbmplus'} = ( -x "/usr/bin/giftoppm" ); |
487 |
$package{'netpbm'} = ( -x "/usr/bin/giftopnm" ); |
488 |
$package{'djpeg'} = ( -x "/usr/bin/djpeg" ); |
489 |
$package{'Ghostscript'} = ( -x "/usr/bin/gs" ); |
490 |
$package{'TeX'} = ( -x "/usr/bin/tex" ); |
491 |
$package{'dvips'} = ( -x "/usr/bin/dvips" ); |
492 |
eval "require LWP::UserAgent"; $package{'libwww-perl'}=!$@; |
493 |
|
483 |
require Image::Magick if($package{'PerlMagick'}); |
494 |
require Image::Magick if($package{'PerlMagick'}); |
484 |
$geturl=$package{'geturl'}; |
495 |
$geturl=$package{'geturl'}; |
485 |
$ulanch="f"; |
496 |
$ulanch="f"; |