author | Mikael Berthe <mikael@lilotux.net> |
Sun, 05 Jun 2016 20:06:46 +0200 | |
changeset 2268 | f5402d705f67 |
parent 2061 | f36d60bed54b |
permissions | -rw-r--r-- |
1302
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
1 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
2 |
dnl Off-the-Record Messaging library |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
3 |
dnl Copyright (C) 2004-2007 Ian Goldberg, Chris Alexander, Nikita Borisov |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
4 |
dnl <otr@cypherpunks.ca> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
5 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
6 |
dnl This library is free software; you can redistribute it and/or |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
7 |
dnl modify it under the terms of version 2.1 of the GNU Lesser General |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
8 |
dnl Public License as published by the Free Software Foundation. |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
9 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
10 |
dnl This library is distributed in the hope that it will be useful, |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
11 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
12 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
13 |
dnl Lesser General Public License for more details. |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
14 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
15 |
dnl You should have received a copy of the GNU Lesser General Public |
2268
f5402d705f67
Fix FSF addresses in all files
Mikael Berthe <mikael@lilotux.net>
parents:
2061
diff
changeset
|
16 |
dnl License along with this library. |
f5402d705f67
Fix FSF addresses in all files
Mikael Berthe <mikael@lilotux.net>
parents:
2061
diff
changeset
|
17 |
dnl If not, see <http://www.gnu.org/licenses/>. |
1302
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
18 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
19 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
20 |
dnl AM_PATH_LIBOTR([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
21 |
dnl Test for libotr, and define LIBOTR_CFLAGS and LIBOTR_LIBS as appropriate. |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
22 |
dnl enables arguments --with-libotr-prefix= |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
23 |
dnl --with-libotr-inc-prefix= |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
24 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
25 |
dnl You must already have found libgcrypt with AM_PATH_LIBGCRYPT |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
26 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
27 |
dnl Adapted from alsa.m4, originally by |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
28 |
dnl Richard Boulton <richard-alsa@tartarus.org> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
29 |
dnl Christopher Lansdown <lansdoct@cs.alfred.edu> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
30 |
dnl Jaroslav Kysela <perex@suse.cz> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
31 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
32 |
AC_DEFUN([AM_PATH_LIBOTR], |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
33 |
[dnl Save the original CFLAGS, LDFLAGS, and LIBS |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
34 |
libotr_save_CFLAGS="$CFLAGS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
35 |
libotr_save_LDFLAGS="$LDFLAGS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
36 |
libotr_save_LIBS="$LIBS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
37 |
libotr_found=yes |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
38 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
39 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
40 |
dnl Get the cflags and libraries for libotr |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
41 |
dnl |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
42 |
AC_ARG_WITH(libotr-prefix, |
1456
5e99e802656c
Fix case in configure help message
Mikael Berthe <mikael@lilotux.net>
parents:
1302
diff
changeset
|
43 |
[ --with-libotr-prefix=PFX prefix where libotr is installed (optional)], |
1302
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
44 |
[libotr_prefix="$withval"], [libotr_prefix=""]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
45 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
46 |
AC_ARG_WITH(libotr-inc-prefix, |
1456
5e99e802656c
Fix case in configure help message
Mikael Berthe <mikael@lilotux.net>
parents:
1302
diff
changeset
|
47 |
[ --with-libotr-inc-prefix=PFX prefix where libotr includes are (optional)], |
1302
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
48 |
[libotr_inc_prefix="$withval"], [libotr_inc_prefix=""]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
49 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
50 |
dnl Add any special include directories |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
51 |
AC_MSG_CHECKING(for libotr CFLAGS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
52 |
if test "$libotr_inc_prefix" != "" ; then |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
53 |
LIBOTR_CFLAGS="$LIBOTR_CFLAGS -I$libotr_inc_prefix" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
54 |
CFLAGS="$CFLAGS $LIBOTR_CFLAGS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
55 |
fi |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
56 |
AC_MSG_RESULT($LIBOTR_CFLAGS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
57 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
58 |
dnl add any special lib dirs |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
59 |
AC_MSG_CHECKING(for libotr LIBS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
60 |
if test "$libotr_prefix" != "" ; then |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
61 |
LIBOTR_LIBS="$LIBOTR_LIBS -L$libotr_prefix" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
62 |
LDFLAGS="$LDFLAGS $LIBOTR_LIBS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
63 |
fi |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
64 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
65 |
dnl add the libotr library |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
66 |
LIBOTR_LIBS="$LIBOTR_LIBS -lotr" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
67 |
LIBS="$LIBOTR_LIBS $LIBS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
68 |
AC_MSG_RESULT($LIBOTR_LIBS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
69 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
70 |
dnl Check for a working version of libotr that is of the right version. |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
71 |
min_libotr_version=ifelse([$1], ,3.0.0,$1) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
72 |
no_libotr="" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
73 |
libotr_min_major_version=`echo $min_libotr_version | \ |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
74 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
75 |
libotr_min_minor_version=`echo $min_libotr_version | \ |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
76 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
77 |
libotr_min_sub_version=`echo $min_libotr_version | \ |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
78 |
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
79 |
AC_MSG_CHECKING(for libotr headers version $libotr_min_major_version.x >= $min_libotr_version) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
80 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
81 |
AC_LANG_SAVE |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
82 |
AC_LANG_C |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
83 |
AC_TRY_COMPILE([ |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
84 |
#include <stdlib.h> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
85 |
#include <libotr/version.h> |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
86 |
], [ |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
87 |
# if(OTRL_VERSION_MAJOR != $libotr_min_major_version) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
88 |
# error not present |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
89 |
# else |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
90 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
91 |
# if(OTRL_VERSION_MINOR > $libotr_min_minor_version) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
92 |
exit(0); |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
93 |
# else |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
94 |
# if(OTRL_VERSION_MINOR < $libotr_min_minor_version) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
95 |
# error not present |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
96 |
# endif |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
97 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
98 |
# if(OTRL_VERSION_SUB < $libotr_min_sub_version) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
99 |
# error not present |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
100 |
# endif |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
101 |
# endif |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
102 |
# endif |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
103 |
exit(0); |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
104 |
], |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
105 |
[AC_MSG_RESULT(found.)], |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
106 |
[AC_MSG_RESULT(not present.) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
107 |
ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libotr not found.)]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
108 |
libotr_found=no] |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
109 |
) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
110 |
AC_LANG_RESTORE |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
111 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
112 |
dnl Now that we know that we have the right version, let's see if we have the library and not just the headers. |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
113 |
AC_CHECK_LIB([otr], [otrl_message_receiving],, |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
114 |
[ifelse([$3], , [AC_MSG_ERROR(No linkable libotr was found.)]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
115 |
libotr_found=no], |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
116 |
$LIBGCRYPT_LIBS |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
117 |
) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
118 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
119 |
LDFLAGS="$libotr_save_LDFLAGS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
120 |
LIBS="$libotr_save_LIBS" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
121 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
122 |
if test "x$libotr_found" = "xyes" ; then |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
123 |
ifelse([$2], , :, [$2]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
124 |
else |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
125 |
LIBOTR_CFLAGS="" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
126 |
LIBOTR_LIBS="" |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
127 |
ifelse([$3], , :, [$3]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
128 |
fi |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
129 |
|
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
130 |
dnl That should be it. Now just export our symbols: |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
131 |
AC_SUBST(LIBOTR_CFLAGS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
132 |
AC_SUBST(LIBOTR_LIBS) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
133 |
]) |
1abddbec502a
Provide libotr and libgcrypt m4 macros
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
134 |