aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2018-06-26 14:30:24 +0200
committert3sserakt <t3ss@posteo.de>2018-06-26 14:31:15 +0200
commit52b006735e61d184281b56094758ecdc7355ed84 (patch)
tree2d5737544cd3af51ccdaefd634ef4ae8f1d54a42
parent4af6e380bbda66c267737c753ee8357c8b99b0fa (diff)
parent585793ee0d0fd13939188fe0bf6279acd3d2b8ea (diff)
downloadgnunet-52b006735e61d184281b56094758ecdc7355ed84.tar.gz
gnunet-52b006735e61d184281b56094758ecdc7355ed84.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
-rw-r--r--configure.ac31
-rw-r--r--m4/ax_lib_postgresql.m44
-rw-r--r--src/gns/gnunet-bcd.c4
-rw-r--r--src/util/dnsstub.c2
4 files changed, 35 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 3d68ee9b0..fd1642839 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,13 +208,42 @@ AC_PATH_TARGET_TOOL(VAR_IPTABLES_BINARY, iptables, false)
208 208
209if test x"$VAR_IPTABLES_BINARY" != x"false" 209if test x"$VAR_IPTABLES_BINARY" != x"false"
210then 210then
211 if test -x "/sbin/iptables"
212 then
213 VAR_IPTABLES_BINARY="/sbin/iptables"
214 elif test -x "/usr/sbin/iptables"
215 then
216 VAR_IPTABLES_BINARY="/usr/sbin/iptables"
217 fi
218fi
219
220if test x"$VAR_IPTABLES_BINARY" != x"false"
221then
211AC_DEFINE_UNQUOTED([IPTABLES], "$VAR_IPTABLES_BINARY", [Path to iptables]) 222AC_DEFINE_UNQUOTED([IPTABLES], "$VAR_IPTABLES_BINARY", [Path to iptables])
212else 223else
213AC_MSG_WARN([warning: 'iptables' not found.]) 224AC_MSG_WARN([warning: 'iptables' not found.])
214fi 225fi
215 226
227AC_PATH_TARGET_TOOL(VAR_IFCONFIG_BINARY, ifconfig, false)
228
216AC_CHECK_PROG(VAR_IFCONFIG_BINARY, ifconfig, true, false) 229AC_CHECK_PROG(VAR_IFCONFIG_BINARY, ifconfig, true, false)
230if test x"$VAR_IFCONFIG_BINARY" != x"false"
231then
232 if test -x "/sbin/ifconfig"
233 then
234 VAR_IFCONFIG_BINARY="/sbin/ifconfig"
235 elif test -x "/usr/sbin/ifconfig"
236 then
237 VAR_IFCONFIG_BINARY="/usr/sbin/ifconfig"
238 fi
239fi
240if test x"$VAR_IFCONFIG_BINARY" != x"false"
241then
242AC_DEFINE_UNQUOTED([IFCONFIG], "$VAR_IFCONFIG_BINARY", [Path to ifconfig])
243else
217AC_MSG_WARN([warning: 'ifconfig' not found.]) 244AC_MSG_WARN([warning: 'ifconfig' not found.])
245fi
246
218 247
219# miniupnpc / upnpc binary is a soft runtime requirement 248# miniupnpc / upnpc binary is a soft runtime requirement
220AC_PATH_TARGET_TOOL(VAR_UPNPC_BINARY, upnpc, false) 249AC_PATH_TARGET_TOOL(VAR_UPNPC_BINARY, upnpc, false)
@@ -930,7 +959,7 @@ postgres=false
930# even running the check for postgres breaks emscripten ... 959# even running the check for postgres breaks emscripten ...
931if test "$taler_only" != yes; then 960if test "$taler_only" != yes; then
932 AX_LIB_POSTGRESQL([9.5]) 961 AX_LIB_POSTGRESQL([9.5])
933 if test "$found_postgresql" = "yes"; then 962 if test "x$found_postgresql" = "xyes"; then
934 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" 963 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
935 AC_CHECK_HEADERS([libpq-fe.h], 964 AC_CHECK_HEADERS([libpq-fe.h],
936 postgres=true) 965 postgres=true)
diff --git a/m4/ax_lib_postgresql.m4 b/m4/ax_lib_postgresql.m4
index d547383e4..11b6991f0 100644
--- a/m4/ax_lib_postgresql.m4
+++ b/m4/ax_lib_postgresql.m4
@@ -91,7 +91,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
91 POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`" 91 POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
92 POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`" 92 POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`"
93 93
94 POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'` 94 POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##' | awk '{print $1}'`
95 95
96 AC_DEFINE([HAVE_POSTGRESQL], [1], 96 AC_DEFINE([HAVE_POSTGRESQL], [1],
97 [Define to 1 if PostgreSQL libraries are available]) 97 [Define to 1 if PostgreSQL libraries are available])
@@ -113,7 +113,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
113 113
114 if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then 114 if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
115 115
116 AC_MSG_CHECKING([if PostgreSQL version is >= $postgresql_version_req]) 116 AC_MSG_CHECKING([if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req])
117 117
118 dnl Decompose required version string of PostgreSQL 118 dnl Decompose required version string of PostgreSQL
119 dnl and calculate its number representation 119 dnl and calculate its number representation
diff --git a/src/gns/gnunet-bcd.c b/src/gns/gnunet-bcd.c
index a82607b94..9737e1a49 100644
--- a/src/gns/gnunet-bcd.c
+++ b/src/gns/gnunet-bcd.c
@@ -469,7 +469,7 @@ run (void *cls,
469 "open", 469 "open",
470 fn); 470 fn);
471 GNUNET_free (fn); 471 GNUNET_free (fn);
472 CLOSE (fd); 472 GNUNET_break (0 == CLOSE (fd));
473 return; 473 return;
474 } 474 }
475 GNUNET_free (fn); 475 GNUNET_free (fn);
@@ -499,7 +499,7 @@ run (void *cls,
499 return; 499 return;
500 GNUNET_SCHEDULER_add_shutdown (&server_stop, 500 GNUNET_SCHEDULER_add_shutdown (&server_stop,
501 NULL); 501 NULL);
502 CLOSE(fd); 502 GNUNET_break (0 == CLOSE(fd));
503} 503}
504 504
505 505
diff --git a/src/util/dnsstub.c b/src/util/dnsstub.c
index 8b5b20f3c..5b84e6e63 100644
--- a/src/util/dnsstub.c
+++ b/src/util/dnsstub.c
@@ -354,7 +354,7 @@ do_dns_read (struct GNUNET_DNSSTUB_RequestSocket *rs,
354 "Received DNS response from server we never asked (ignored)"); 354 "Received DNS response from server we never asked (ignored)");
355 return GNUNET_NO; 355 return GNUNET_NO;
356 } 356 }
357 if (sizeof (struct GNUNET_TUN_DnsHeader) > r) 357 if (sizeof (struct GNUNET_TUN_DnsHeader) > (size_t) r)
358 { 358 {
359 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 359 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
360 _("Received DNS response that is too small (%u bytes)"), 360 _("Received DNS response that is too small (%u bytes)"),