aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-30 15:40:57 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-31 07:35:06 -0500
commit1c5591947a8d57d54bf0fb17871a1799e96500b4 (patch)
treea1f04c208e0432d262260ac255b4c2db35ec8b11
parenta2373f7007b78e0059b8e9516666ee23ac6b7671 (diff)
downloadportable-1c5591947a8d57d54bf0fb17871a1799e96500b4.tar.gz
portable-1c5591947a8d57d54bf0fb17871a1799e96500b4.tar.bz2
portable-1c5591947a8d57d54bf0fb17871a1799e96500b4.zip
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.
-rwxr-xr-xconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/config b/config
new file mode 100755
index 0000000..3573df4
--- /dev/null
+++ b/config
@@ -0,0 +1,17 @@
1#!/bin/sh
2
3# This file exists for backwards-compatibility with build systems that expect a
4# config script similar to OpenSSL's.
5
6# New software should prefer the native configure script over this one.
7
8ARGS=""
9for var in "$@"; do
10 case $var in
11 no-shared ) ARGS="$ARGS --disable-shared";;
12 no-asm ) ARGS="$ARGS --disable-asm";;
13 --prefix* ) ARGS="$ARGS $var";;
14 esac
15done
16
17./configure $ARGS