From 1c5591947a8d57d54bf0fb17871a1799e96500b4 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 30 Oct 2014 15:40:57 -0500 Subject: [PATCH] Add an OpenSSL compatible ./config wrapper This allows sofware expecting OpenSSL's config script, to a limited extent, to continue building without changes. Thanks to technion for pointing this out and providing the initial patch. --- config | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 config diff --git a/config b/config new file mode 100755 index 0000000..3573df4 --- /dev/null +++ b/config @@ -0,0 +1,17 @@ +#!/bin/sh + +# This file exists for backwards-compatibility with build systems that expect a +# config script similar to OpenSSL's. + +# New software should prefer the native configure script over this one. + +ARGS="" +for var in "$@"; do + case $var in + no-shared ) ARGS="$ARGS --disable-shared";; + no-asm ) ARGS="$ARGS --disable-asm";; + --prefix* ) ARGS="$ARGS $var";; + esac +done + +./configure $ARGS