mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
* Look for the openssl program at compile time. If not found, call
openssl through $PATH at runtime.
This commit is contained in:
parent
b4a040e52b
commit
db1973d012
2 changed files with 6 additions and 2 deletions
|
@ -126,6 +126,10 @@ NEED_PROG(perl, perl)
|
|||
NEED_PROG(tar, tar)
|
||||
AC_PATH_PROG(dot, dot)
|
||||
|
||||
AC_PATH_PROG(openssl_prog, openssl, openssl) # if not found, call openssl in $PATH
|
||||
AC_SUBST(openssl_prog)
|
||||
AC_DEFINE_UNQUOTED(OPENSSL_PATH, ["$openssl_prog"], [Path of the OpenSSL binary])
|
||||
|
||||
# Test that Perl has the open/fork feature (Perl 5.8.0 and beyond).
|
||||
AC_MSG_CHECKING([whether Perl is recent enough])
|
||||
if ! $perl -e 'open(FOO, "-|", "true"); while (<FOO>) { print; }; close FOO or die;'; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue