updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / afpfs-ng / 01-gcrypt.patch
blob7bcace2812fe35e5dc20eabdd5d59e28fc4b4739
1 diff -ru afpfs-ng-0.8.1/configure.ac afpfs-ng-0.8.1+iPhone/configure.ac
2 --- afpfs-ng-0.8.1/configure.ac 2008-03-08 16:23:12.000000000 +0000
3 +++ afpfs-ng-0.8.1+iPhone/configure.ac 2010-10-24 05:26:15.000000000 +0000
4 @@ -50,21 +50,6 @@
5 case $host in
6 *-*-darwin*)
7 AC_MSG_CHECKING([for correct gcrypt version])
8 - AC_RUN_IFELSE(
9 - [AC_LANG_PROGRAM([
10 - #include <gcrypt.h>
11 - #include <stdio.h>],[
12 - char*p= GCRYPT_VERSION;
13 - unsigned int vers;
14 - vers=atoi(p)*10000;
15 - p=strchr(p,'.')+1;
16 - vers+=atoi(p)*100;
17 - p=strchr(p,'.')+1;
18 - vers+=atoi(p);
19 - if (vers<10400) return 1;
20 - ])],
21 - [AC_MSG_RESULT([yes])],
22 - [AC_MSG_ERROR([version is < 1.4.0])])
23 AM_CONDITIONAL(HAVE_LIBGCRYPT, true)
24 AC_DEFINE([HAVE_LIBGCRYPT], [1] )