File: gc.m4

package info (click to toggle)
shishi 1.0.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,464 kB
  • ctags: 7,980
  • sloc: ansic: 58,580; sh: 13,513; yacc: 1,252; makefile: 1,167; perl: 624; sed: 16
file content (25 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (4)
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
# gc.m4 serial 9
dnl Copyright (C) 2005-2013 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

AC_DEFUN([gl_GC],
[
  AC_ARG_WITH([libgcrypt],
    AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
    libgcrypt=$withval, libgcrypt=no)
  if test "$libgcrypt" != no; then
    AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [
#include <gcrypt.h>
/* gc-libgcrypt.c will fail on startup if we don't have libgcrypt 1.4.4 or
   later, test for it early. by checking for either
   - GCRY_MODULE_ID_USER which was added in 1.4.4 and dropped in 1.6 or
   - GCRYPT_VERSION_NUMBER which was added in 1.6.
   */
#if !defined GCRY_MODULE_ID_USER && !defined GCRYPT_VERSION_NUMBER
error too old libgcrypt
#endif
])
  fi
])