From 2f44c8151e4214174c6aa23731df643c40db38cd Mon Sep 17 00:00:00 2001
From: Richard Levitte <levitte@openssl.org>
Date: Tue, 3 Mar 2020 00:08:41 +0100
Subject: [PATCH] config: Turn into a simple wrapper

Now that Configure called config.pm's functions directly, the 'config'
script doesn't have much else to do than to pass arguments.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11230)
---
 config | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/config b/config
index 3f288f3740..e194d4bde4 100755
--- a/config
+++ b/config
@@ -1,5 +1,4 @@
-#! /usr/bin/env perl
-# -*- mode: perl; -*-
+#! /bin/sh
 # Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the Apache License 2.0 (the "License").  You may not use
@@ -7,6 +6,5 @@
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
-use lib "util/perl";
-use OpenSSL::config;
-OpenSSL::config::main();
+THERE=`dirname $0`
+exec "$THERE/Configure" "$@"