/usr/share/globus/aclocal/globus_openssl.m4 is in globus-core 8.16-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | dnl
AC_DEFUN([GLOBUS_OPENSSL],
[
AC_ARG_WITH(openssl,
AC_HELP_STRING(
[--with-openssl=PATH],
[Specify the root of the openssl installation]),
[
case $withval in
no|yes)
;;
*)
openssl="$withval"
;;
esac
])
if test "${openssl}" != ""; then
PKG_CONFIG_PATH=${openssl}/lib/pkgconfig
export PKG_CONFIG_PATH
fi
AC_MSG_CHECKING([OpenSSL CFLAGS])
if test "$OPENSSL_CFLAGS" = ""; then
if pkg-config openssl --exists > /dev/null 2>&1 ; then
OPENSSL_CFLAGS="`pkg-config openssl --cflags`"
elif test -r "${openssl}/include/openssl/ssl.h" ; then
OPENSSL_CFLAGS="-I ${openssl}/include"
fi
fi
AC_MSG_RESULT([using '$OPENSSL_CFLAGS'])
CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
AC_TRY_COMPILE([#include <openssl/ssl.h>],
[SSL_library_init();],,
[AC_MSG_ERROR([Unable to compile with SSL])])
AC_MSG_CHECKING([OpenSSL LIBS])
if test "$OPENSSL_LIBS" = ""; then
if pkg-config openssl --exists > /dev/null 2>&1 ; then
OPENSSL_PKGCONF_DEPENDENCIES="openssl"
OPENSSL_LIBS="`pkg-config openssl --libs`"
else
OPENSSL_LIBS="-L${openssl}/lib -lssl -lcrypto"
fi
fi
AC_MSG_RESULT([using '$OPENSSL_LIBS'])
LIBS="${LIBS} ${OPENSSL_LIBS}"
AC_TRY_LINK(
[#include <openssl/ssl.h>],
[SSL_library_init();], , [AC_MSG_ERROR([Unable to link with SSL])])
AC_SUBST(OPENSSL_CFLAGS)
AC_SUBST(OPENSSL_LIBS)
if test "x$OPENSSL_PKGCONF_DEPENDENCIES" != "x"; then
GPT_PKGCONFIG_DEPENDENCIES="$GPT_PKGCONFIG_DEPENDENCIES $OPENSSL_PKGCONF_DEPENDENCIES"
else
GPT_EXTERNAL_INCLUDES="${GPT_EXTERNAL_INCLUDES} ${OPENSSL_CFLAGS}"
GPT_EXTERNAL_LIBS="${GPT_EXTERNAL_LIBS} ${OPENSSL_LIBS}"
fi
])
|