diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac.tpl | 19 | ||||
-rw-r--r-- | crypto/Makefile.am.tpl | 1 | ||||
-rw-r--r-- | libcrypto.pc.in | 15 | ||||
-rw-r--r-- | libssl.pc.in | 16 | ||||
-rw-r--r-- | openssl.pc.in | 11 | ||||
-rwxr-xr-x | update.sh | 3 |
8 files changed, 66 insertions, 4 deletions
@@ -34,6 +34,8 @@ Makefile.in | |||
34 | *.lo | 34 | *.lo |
35 | *.la | 35 | *.la |
36 | 36 | ||
37 | *.pc | ||
38 | |||
37 | # tests | 39 | # tests |
38 | test-driver | 40 | test-driver |
39 | *.log | 41 | *.log |
diff --git a/Makefile.am b/Makefile.am index bec672c..fbb9315 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,2 +1,5 @@ | |||
1 | SUBDIRS = crypto ssl include apps tests man | 1 | SUBDIRS = crypto ssl include apps tests man |
2 | ACLOCAL_AMFLAGS = -I m4 | 2 | ACLOCAL_AMFLAGS = -I m4 |
3 | |||
4 | pkgconfigdir = $(libdir)/pkgconfig | ||
5 | pkgconfig_DATA = libcrypto.pc libssl.pc openssl.pc | ||
diff --git a/configure.ac.tpl b/configure.ac.tpl index c565485..ab06402 100644 --- a/configure.ac.tpl +++ b/configure.ac.tpl | |||
@@ -97,5 +97,20 @@ AC_CHECK_HEADER(sys/sysctl.h, AC_DEFINE(HAVE_SYS_SYSCTL_H)) | |||
97 | 97 | ||
98 | LT_INIT | 98 | LT_INIT |
99 | 99 | ||
100 | AC_OUTPUT(Makefile include/Makefile include/openssl/Makefile ssl/Makefile | 100 | AC_CONFIG_FILES([ |
101 | crypto/Makefile tests/Makefile apps/Makefile man/Makefile) | 101 | Makefile |
102 | include/Makefile | ||
103 | include/openssl/Makefile | ||
104 | ssl/Makefile | ||
105 | crypto/Makefile | ||
106 | tests/Makefile | ||
107 | apps/Makefile | ||
108 | man/Makefile | ||
109 | libcrypto.pc | ||
110 | libssl.pc | ||
111 | openssl.pc | ||
112 | ]) | ||
113 | |||
114 | AC_OUTPUT | ||
115 | |||
116 | DISTCLEANFILES += *.pc | ||
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl index 4830da4..20c3495 100644 --- a/crypto/Makefile.am.tpl +++ b/crypto/Makefile.am.tpl | |||
@@ -19,6 +19,7 @@ libcompatnoopt_la_SOURCES = compat/explicit_bzero.c | |||
19 | # other compatibility functions | 19 | # other compatibility functions |
20 | libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) | 20 | libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) |
21 | libcompat_la_SOURCES = | 21 | libcompat_la_SOURCES = |
22 | libcompat_la_LIBADD = $(PLATFORM_LDADD) | ||
22 | 23 | ||
23 | if NO_STRLCAT | 24 | if NO_STRLCAT |
24 | libcompat_la_SOURCES += compat/strlcat.c | 25 | libcompat_la_SOURCES += compat/strlcat.c |
diff --git a/libcrypto.pc.in b/libcrypto.pc.in new file mode 100644 index 0000000..4e886b9 --- /dev/null +++ b/libcrypto.pc.in | |||
@@ -0,0 +1,15 @@ | |||
1 | #libcrypto pkg-config source file | ||
2 | |||
3 | prefix=@prefix@ | ||
4 | exec_prefix=@exec_prefix@ | ||
5 | libdir=@libdir@ | ||
6 | includedir=@includedir@ | ||
7 | |||
8 | Name: LibreSSL-libssl | ||
9 | Description: Secure Sockets Layer and cryptography libraries | ||
10 | Version: @VERSION@ | ||
11 | Requires: | ||
12 | Conflicts: | ||
13 | Libs: -L${libdir} -lcrypto | ||
14 | Libs.private: @LIBS@ | ||
15 | Cflags: -I${includedir} | ||
diff --git a/libssl.pc.in b/libssl.pc.in new file mode 100644 index 0000000..43b8bb7 --- /dev/null +++ b/libssl.pc.in | |||
@@ -0,0 +1,16 @@ | |||
1 | #libssl pkg-config source file | ||
2 | |||
3 | prefix=@prefix@ | ||
4 | exec_prefix=@exec_prefix@ | ||
5 | libdir=@libdir@ | ||
6 | includedir=@includedir@ | ||
7 | |||
8 | Name: LibreSSL-libssl | ||
9 | Description: Secure Sockets Layer and cryptography libraries | ||
10 | Version: @VERSION@ | ||
11 | Requires: | ||
12 | Requires.private: libcrypto | ||
13 | Conflicts: | ||
14 | Libs: -L${libdir} -lssl | ||
15 | Libs.private: @LIBS@ -lcrypto | ||
16 | Cflags: -I${includedir} | ||
diff --git a/openssl.pc.in b/openssl.pc.in new file mode 100644 index 0000000..b4acfa5 --- /dev/null +++ b/openssl.pc.in | |||
@@ -0,0 +1,11 @@ | |||
1 | #openssl pkg-config source file | ||
2 | |||
3 | prefix=@prefix@ | ||
4 | exec_prefix=@exec_prefix@ | ||
5 | libdir=@libdir@ | ||
6 | includedir=@includedir@ | ||
7 | |||
8 | Name: LibreSSL | ||
9 | Description: Secure Sockets Layer and cryptography libraries and tools | ||
10 | Version: @VERSION@ | ||
11 | Requires: libssl libcrypto | ||
@@ -306,8 +306,7 @@ test_excludes=(biotest aeadtest evptest pq_test ssltest arc4randomforktest) | |||
306 | fi | 306 | fi |
307 | echo "check_PROGRAMS += $TEST" >> Makefile.am | 307 | echo "check_PROGRAMS += $TEST" >> Makefile.am |
308 | echo "${TEST}_SOURCES = $i" >> Makefile.am | 308 | echo "${TEST}_SOURCES = $i" >> Makefile.am |
309 | echo "${TEST}_LDADD = \$(PLATFORM_LDADD)" >> Makefile.am | 309 | echo "${TEST}_LDADD = \$(top_builddir)/ssl/libssl.la" >> Makefile.am |
310 | echo "${TEST}_LDADD += \$(top_builddir)/ssl/libssl.la" >> Makefile.am | ||
311 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am | 310 | echo "${TEST}_LDADD += \$(top_builddir)/crypto/libcrypto.la" >> Makefile.am |
312 | done | 311 | done |
313 | ) | 312 | ) |