aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-11-13 15:20:40 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-11-13 15:20:40 +0100
commit91b29b192a9dfe01c81c3a78415525669c64861b (patch)
treee80353403825548e9c99c8d6c1a931cb0927bce6
parentb11b9d9ccb61b03e884199ffb5f4ca9e82c16dd2 (diff)
downloadlibgnunetchat-91b29b192a9dfe01c81c3a78415525669c64861b.tar.gz
libgnunetchat-91b29b192a9dfe01c81c3a78415525669c64861b.zip
Add header check details to regular path to check for gnunet
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--configure.ac69
1 files changed, 59 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 3b8dead..0b222c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,16 +70,65 @@ AC_ARG_WITH(gnunet,
70 [ 70 [
71 AC_MSG_RESULT([--with-gnunet not specified]) 71 AC_MSG_RESULT([--with-gnunet not specified])
72 PKG_CHECK_MODULES([GNUNET], [gnunetutil >= 0.18.0], gnunet=1) 72 PKG_CHECK_MODULES([GNUNET], [gnunetutil >= 0.18.0], gnunet=1)
73 AC_CHECK_HEADERS([gnunet/gnunet_messenger_service.h], 73 AC_CHECK_HEADERS([gnunet/gnunet_util_lib.h],
74 AC_CHECK_LIB([gnunetmessenger], [GNUNET_MESSENGER_connect], 74 AC_CHECK_LIB([gnunetutil], [GNUNET_xfree_],
75 [ 75 [
76 EXT_LIB_PATH="-L${lookin}/lib $EXT_LIB_PATH" 76 EXT_LIB_PATH="-L${lookin}/lib $EXT_LIB_PATH"
77 if test -d "${lookin}/lib64"; then 77 if test -d "${lookin}/lib64"; then
78 EXT_LIB_PATH="-L${lookin}/lib64 $EXT_LIB_PATH" 78 EXT_LIB_PATH="-L${lookin}/lib64 $EXT_LIB_PATH"
79 fi 79 fi
80 ] 80 ]
81 ),,[#include <gnunet/platform.h>] 81 ),,[#include <gnunet/platform.h>]
82 ) 82 )
83 AC_CHECK_HEADERS([gnunet/gnunet_arm_service.h],
84 AC_CHECK_LIB([gnunetarm], [GNUNET_ARM_connect],
85 [
86 gnunet_arm=1
87 ]
88 ),,[#include <gnunet/platform.h>]
89 )
90 AC_CHECK_HEADERS([gnunet/gnunet_fs_service.h],
91 AC_CHECK_LIB([gnunetfs], [GNUNET_FS_start],
92 [
93 gnunet_fs=1
94 ]
95 ),,[#include <gnunet/platform.h>]
96 )
97 AC_CHECK_HEADERS([gnunet/gnunet_gns_service.h],
98 AC_CHECK_LIB([gnunetgns], [GNUNET_GNS_connect],
99 [
100 gnunet_gns=1
101 ]
102 ),,[#include <gnunet/platform.h>]
103 )
104 AC_CHECK_HEADERS([gnunet/gnunet_identity_service.h],
105 AC_CHECK_LIB([gnunetidentity], [GNUNET_IDENTITY_connect],
106 [
107 gnunet_identity=1
108 ]
109 ),,[#include <gnunet/platform.h>]
110 )
111 AC_CHECK_HEADERS([gnunet/gnunet_messenger_service.h],
112 AC_CHECK_LIB([gnunetmessenger], [GNUNET_MESSENGER_connect],
113 [
114 gnunet_messenger=1
115 ]
116 ),,[#include <gnunet/platform.h>]
117 )
118 AC_CHECK_HEADERS([gnunet/gnunet_namestore_service.h],
119 AC_CHECK_LIB([gnunetnamestore], [GNUNET_NAMESTORE_connect],
120 [
121 gnunet_namestore=1
122 ]
123 ),,[#include <gnunet/platform.h>]
124 )
125 AC_CHECK_HEADERS([gnunet/gnunet_regex_service.h],
126 AC_CHECK_LIB([gnunetregex], [GNUNET_REGEX_search],
127 [
128 gnunet_regex=1
129 ]
130 ),,[#include <gnunet/platform.h>]
131 )
83 ] 132 ]
84) 133)
85 134