1 {- join("\n",map { "/* $_ */" } @autowarntext) -}
3 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
5 * Licensed under the Apache License 2.0 (the "License"). You may not use
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
11 #ifndef HEADER_DSO_CONF_H
12 # define HEADER_DSO_CONF_H
13 {- output_off() if $disabled{dso} -}
14 {- # The DSO code currently always implements all functions so that no
15 # applications will have to worry about that from a compilation point
16 # of view. However, the "method"s may return zero unless that platform
17 # has support compiled in for them. Currently each method is enabled
18 # by a define "DSO_<name>" ... we translate the "dso_scheme" config
19 # string entry into using the following logic;
20 my $scheme = uc $target{dso_scheme};
21 my @macros = ( "DSO_$scheme" );
22 if ($scheme eq 'DLFCN') {
23 @macros = ( "DSO_DLFCN", "HAVE_DLFCN_H" );
24 } elsif ($scheme eq "DLFCN_NO_H") {
25 @macros = ( "DSO_DLFCN" );
27 join("\n", map { "# define $_" } @macros); -}
28 # define DSO_EXTENSION "{- $target{dso_extension} -}"
29 {- output_on() if $disabled{dso} -}