Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
c19aa704
Commit
c19aa704
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix contrib/pgcrypto to autoconfigure for OpenSSL when --with-openssl
is used in the toplevel configure. Per Marko Kreen.
parent
d22a3727
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+3
-1
3 additions, 1 deletion
configure
configure.in
+2
-1
2 additions, 1 deletion
configure.in
contrib/pgcrypto/Makefile
+26
-54
26 additions, 54 deletions
contrib/pgcrypto/Makefile
src/Makefile.global.in
+3
-1
3 additions, 1 deletion
src/Makefile.global.in
with
34 additions
and
57 deletions
configure
+
3
−
1
View file @
c19aa704
...
...
@@ -314,7 +314,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC CC_FOR_BUILD TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_bonjour with_openssl EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC CC_FOR_BUILD TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_bonjour with_openssl
with_zlib
EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
...
...
@@ -3906,6 +3906,7 @@ else
fi;
#
# Elf
#
...
...
@@ -22916,6 +22917,7 @@ s,@krb_srvtab@,$krb_srvtab,;t t
s,@with_pam@,$with_pam,;t t
s,@with_bonjour@,$with_bonjour,;t t
s,@with_openssl@,$with_openssl,;t t
s,@with_zlib@,$with_zlib,;t t
s,@EGREP@,$EGREP,;t t
s,@ELF_SYS@,$ELF_SYS,;t t
s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
2
−
1
View file @
c19aa704
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.41
5
2005/07/0
3 18:54:26 petere
Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.41
6
2005/07/0
5 23:13:57 tgl
Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -500,6 +500,7 @@ fi
#
PGAC_ARG_BOOL(with, zlib, yes,
[ --without-zlib do not use Zlib])
AC_SUBST(with_zlib)
#
# Elf
...
...
This diff is collapsed.
Click to expand it.
contrib/pgcrypto/Makefile
+
26
−
54
View file @
c19aa704
#
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.1
4
2005/0
3/21 05:24:51 neilc
Exp $
# $PostgreSQL: pgsql/contrib/pgcrypto/Makefile,v 1.1
5
2005/0
7/05 23:13:57 tgl
Exp $
#
# either 'builtin', 'openssl'
cryptolib
=
builtin
# if you don't have OpenSSL, you can use libc random() or /dev/urandom
INT_CFLAGS
=
-DRAND_SILLY
#INT_CFLAGS = -DRAND_DEV=\"/dev/urandom\"
# either 'builtin', 'system'
cryptsrc
=
builtin
INT_SRCS
=
md5.c sha1.c internal.c blf.c rijndael.c
# Random source, preferred order:
# 'dev' - read from random device
#
# 'openssl' - use openssl PRNG.
# Note that currently pgcrypto does not do any
# entropy feeding to it
# This works ofcouse only with cryptolib = openssl
#
# 'silly' - use libc random() - very weak
random
=
silly
random_dev
=
\"
/dev/urandom
\"
OSSL_CFLAGS
=
-DRAND_OPENSSL
OSSL_SRCS
=
openssl.c
OSSL_TESTS
=
des 3des cast5
##########################
ifeq
($(cryptolib), builtin)
CRYPTO_CFLAGS
=
CRYPTO_LDFLAGS
=
SRCS
=
md5.c sha1.c internal.c blf.c rijndael.c
EXTRA_TESTS
=
endif
CF_SRCS
=
$(
if
$(
subst no,,
$(
with_openssl
))
,
$(
OSSL_SRCS
)
,
$(
INT_SRCS
))
CF_TESTS
=
$(
if
$(
subst no,,
$(
with_openssl
))
,
$(
OSSL_TESTS
))
CF_CFLAGS
=
$(
if
$(
subst no,,
$(
with_openssl
))
,
$(
OSSL_CFLAGS
)
,
$(
INT_CFLAGS
))
ifeq
($(cryptolib), openssl)
CRYPTO_CFLAGS
=
-I
/usr/include/openssl
CRYPTO_LDFLAGS
=
-lcrypto
SRCS
=
openssl.c
EXTRA_TESTS
=
des 3des cast5
endif
PG_CPPFLAGS
:=
$(
CF_CFLAGS
)
-I
$(
srcdir
)
$(
PG_CPPFLAGS
)
ifeq
($(cryptsrc), builtin)
SRCS
+=
crypt-blowfish.c crypt-des.c crypt-md5.c
else
CRYPTO_CFLAGS
+=
-DPX_SYSTEM_CRYPT
endif
ifeq
($(random), dev)
CRYPTO_CFLAGS
+=
-DRAND_DEV
=
$(
random_dev
)
endif
ifeq
($(random), openssl)
CRYPTO_CFLAGS
+=
-DRAND_OPENSSL
endif
ifeq
($(random), silly)
CRYPTO_CFLAGS
+=
-DRAND_SILLY
endif
SRCS
+=
pgcrypto.c px.c px-hmac.c px-crypt.c misc.c
\
crypt-gensalt.c random.c
SRCS
=
pgcrypto.c px.c px-hmac.c px-crypt.c misc.c random.c
\
crypt-gensalt.c crypt-blowfish.c crypt-des.c
\
crypt-md5.c
$(
CF_SRCS
)
MODULE_big
=
pgcrypto
OBJS
=
$(
SRCS:.c
=
.o
)
...
...
@@ -61,12 +28,9 @@ DOCS = README.pgcrypto
DATA_built
=
pgcrypto.sql
EXTRA_CLEAN
=
gen-rtab
PG_CPPFLAGS
=
$(
CRYPTO_CFLAGS
)
-I
$(
srcdir
)
SHLIB_LINK
=
$(
CRYPTO_LDFLAGS
)
REGRESS
=
init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael
\
$(
EXTRA
_TESTS
)
\
crypt-des crypt-md5 crypt-blowfish crypt-xdes
$(
CF
_TESTS
)
\
crypt-des crypt-md5 crypt-blowfish crypt-xdes
ifdef
USE_PGXS
...
...
@@ -79,6 +43,14 @@ include $(top_builddir)/src/Makefile.global
include
$(top_srcdir)/contrib/contrib-global.mk
endif
# Add libraries that pgcrypto depends (or might depend) on into the
# shared library link. (The order in which you list them here doesn't
# matter.)
SHLIB_LINK
+=
$(
filter
-lcrypt
-ldes
-lcrypto
-lssl
,
$(
LIBS
))
ifeq
($(PORTNAME), win32)
SHLIB_LINK
+=
$(
filter
-leay32
-lssleay32
,
$(
LIBS
))
endif
# to make ws2_32.lib the last library (must occur after definition of PORTNAME)
ifeq
($(PORTNAME),win32)
SHLIB_LINK
+=
-lwsock32
-lws2_32
...
...
@@ -87,6 +59,6 @@ endif
rijndael.o
:
rijndael.tbl
rijndael.tbl
:
rijndael.tbl
:
rijndael.c
$(
CC
)
$(
CPPFLAGS
)
$(
CFLAGS
)
-DPRINT_TABS
rijndael.c
-o
gen-rtab
./gen-rtab
>
rijndael.tbl
This diff is collapsed.
Click to expand it.
src/Makefile.global.in
+
3
−
1
View file @
c19aa704
# -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.21
5
2005/07/0
3 18:54:28 petere
Exp $
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.21
6
2005/07/0
5 23:13:57 tgl
Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
...
...
@@ -128,6 +128,8 @@ pgxsdir = $(pkglibdir)/pgxs
with_perl
=
@with_perl@
with_python
=
@with_python@
with_tcl
=
@with_tcl@
with_openssl
=
@with_openssl@
with_zlib
=
@with_zlib@
enable_shared
=
@enable_shared@
enable_rpath
=
@enable_rpath@
enable_nls
=
@enable_nls@
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment