The pod2mantest file in the util directory does not work as described
in the comments in the file. It states that it will first test for
"pod2man" without absolute paths. It doesn't actually do that. If you
change it so that it really does test for pod2man without the absolute
path, it can break the makefile, since the output of pod2mantest is
used as an argument to $PERL. Thus you can have a file "pod2man"
in the $PATH, but not in @INC. In that case $PERL can't find the
file, even though the shell script "pod2mantest" could find it.
This situation is actually seen in DJGPP, where pod2man is in the
$DJDIR/bin directory, which is not in @INC. Note that even with this
change, pod2mantest can fail to find a perfectly valid pod2man file if
it is in a directory in @INC which is not in $PATH.

The file also breaks for DJGPP, since it assumes that the PATH
separator is ":". I made a small change to make this ";" for DJGPP.
                        Doug

--- openssl-0.9.7/util/pod2mantest.orig 2002-06-30 00:24:56.000000000 -0800
+++ openssl-0.9.7/util/pod2mantest      2002-06-30 12:40:12.000000000 -0800
@@ -11,20 +11,14 @@
 
 
 IFS=:
-try_without_dir=false
-# First we try "pod2man", then "$dir/pod2man" for each item in $PATH.
-for dir in dummy:$PATH; do
-    if [ "$try_without_dir" = true ]; then
-      # first iteration
-      pod2man=pod2man
-      try_without_dir=false
-    else
-      # second and later iterations
+if test "$OSTYPE" = "msdosdjgpp"; then
+IFS=";"
+fi
+for dir in $PATH; do
       pod2man="$dir/pod2man"
       if [ ! -f "$pod2man" ]; then  # '-x' is not available on Ultrix
         pod2man=''
       fi
-    fi
 
     if [ ! "$pod2man" = '' ]; then
         failure=none

__ 
Doug Kaufman
Internet: [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to