summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-10-30 18:23:07 +0100
committerSimon Josefsson <simon@josefsson.org>2008-10-30 18:23:07 +0100
commit6b7028518612086a37378525daace262b7f66bbe (patch)
treeb426c108563bd05362798f192c86f9d071e56bbf /libextra
parentd059678dc8417498dc9d72b66ece58620be5688d (diff)
downloadgnutls-6b7028518612086a37378525daace262b7f66bbe.tar.gz
New files, forgotten in last commit.
Diffstat (limited to 'libextra')
-rw-r--r--libextra/m4/hooks.m437
1 files changed, 37 insertions, 0 deletions
diff --git a/libextra/m4/hooks.m4 b/libextra/m4/hooks.m4
new file mode 100644
index 0000000000..6d7347f110
--- /dev/null
+++ b/libextra/m4/hooks.m4
@@ -0,0 +1,37 @@
+# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+#
+# Author: Nikos Mavrogiannopoulos, Simon Josefsson
+#
+# This file is part of GNUTLS-EXTRA.
+#
+# GNUTLS-EXTRA is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3 of the
+# License, or (at your option) any later version.
+#
+# GNUTLS-EXTRA is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNUTLS-EXTRA; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+AC_DEFUN([LIBGNUTLS_EXTRA_HOOKS],
+[
+ AC_MSG_CHECKING([whether to disable OpenSSL compatibility layer])
+ AC_ARG_ENABLE(openssl-compatibility,
+ AS_HELP_STRING([--disable-openssl-compatibility],
+ [disable the OpenSSL compatibility support]),
+ ac_enable_openssl=$withval,
+ ac_enable_openssl=yes)
+ if test x$ac_enable_openssl != xno; then
+ AC_MSG_RESULT(no)
+ else
+ AC_MSG_RESULT(yes)
+ fi
+ AM_CONDITIONAL(ENABLE_OPENSSL, test "$ac_enable_openssl" = "yes")
+])