4002N/A#
4002N/A# This was developed in house to configure the engine dir.
4002N/A# Not suitable for upstream.
4002N/A#
363N/A--- /tmp/18/Configure Fri Feb 11 15:15:50 2011
363N/A+++ openssl-1.0.0d/Configure Fri Feb 11 15:18:09 2011
363N/A@@ -18,6 +18,8 @@
363N/A # --prefix option is given; /usr/local/ssl otherwise)
363N/A # --prefix prefix for the OpenSSL include, lib and bin directories
363N/A # (Default: the OPENSSLDIR directory)
363N/A+# --enginesdir engines shared library location
363N/A+# (Default: $prefix/lib/engines)
363N/A #
363N/A # --pk11-libname PKCS#11 library name.
363N/A # (Default: none)
4820N/A@@ -741,6 +743,7 @@
363N/A my $prefix="";
363N/A my $libdir="";
363N/A my $openssldir="";
363N/A+my $enginesdir="";
363N/A my $exe_ext="";
363N/A my $install_prefix= "$ENV{'INSTALL_PREFIX'}";
363N/A my $cross_compile_prefix="";
4820N/A@@ -972,6 +975,10 @@
363N/A {
363N/A $openssldir=$1;
363N/A }
363N/A+ elsif (/^--enginesdir=(.*)$/)
363N/A+ {
363N/A+ $enginesdir=$1;
363N/A+ }
363N/A elsif (/^--install.prefix=(.*)$/)
363N/A {
363N/A $install_prefix=$1;
4820N/A@@ -1285,6 +1292,10 @@
363N/A # we're ready to tolerate, so don't...
363N/A $multilib="" if !-d "$prefix/lib$multilib";
363N/A
363N/A+if ($enginesdir eq "") {
363N/A+ $enginesdir = "$prefix/lib/engines";
363N/A+}
363N/A+
363N/A $libdir="lib$multilib" if $libdir eq "";
363N/A
363N/A $cflags = "$cflags$exp_cflags";
4820N/A@@ -1934,7 +1945,7 @@
363N/A }
363N/A elsif (/^#define\s+ENGINESDIR/)
363N/A {
363N/A- my $foo = "$prefix/$libdir/engines";
363N/A+ my $foo = "$enginesdir";
363N/A $foo =~ s/\\/\\\\/g;
363N/A print OUT "#define ENGINESDIR \"$foo\"\n";
363N/A }