]> granicus.if.org Git - apache/commitdiff
Extend 'openssl' search to the directories from PATH
authorMartin Kraemer <martin@apache.org>
Mon, 20 Aug 2001 12:53:05 +0000 (12:53 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 20 Aug 2001 12:53:05 +0000 (12:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90397 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4

index 311494061bd91b48c8af786e404f262d5f1eec9e..99292115bdf7e60179a41a37f08a86b64ba3428d 100644 (file)
@@ -398,7 +398,8 @@ if test "x$ap_ssltk_base" = "x"; then
       # 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