You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Havard <br...@kheldar.apana.org.au> on 2001/08/20 15:14:53 UTC

Re: cvs commit: httpd-2.0 acinclude.m4

This assumes the path separator is always :
Isn't there an autoconf macro to do this portably?


On 20 Aug 2001 12:53:05 -0000, martin@apache.org wrote:

>martin      01/08/20 05:53:05
>
>  Modified:    .        acinclude.m4
>  Log:
>  Extend 'openssl' search to the directories from PATH
>  
>  Revision  Changes    Path
>  1.93      +2 -1      httpd-2.0/acinclude.m4
>  
>  Index: acinclude.m4
>  ===================================================================
>  RCS file: /home/cvs/httpd-2.0/acinclude.m4,v
>  retrieving revision 1.92
>  retrieving revision 1.93
>  diff -u -r1.92 -r1.93
>  --- acinclude.m4	2001/08/19 16:00:59	1.92
>  +++ acinclude.m4	2001/08/20 12:53:05	1.93
>  @@ -398,7 +398,8 @@
>         # shotgun approach: find all occurrences of the openssl program
>         #
>         ap_ssltk_try=""
>  -      for p in /usr/local/openssl/bin /usr/local/ssl/bin $path; do
>  +      # The IFS=... trick eliminates the colons from $PATH, without using an external program
>  +      for p in /usr/local/openssl/bin /usr/local/ssl/bin `IFS=":$IFS"; echo $PATH`; do
>           if test -f "$p/openssl"; then
>             ap_ssltk_try="$ap_ssltk_try $p"
>           fi
>  
>  
>  
>

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------