fix #4653
authorChristian Grothoff <christian@grothoff.org>
Fri, 16 Sep 2016 11:55:15 +0000 (11:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 16 Sep 2016 11:55:15 +0000 (11:55 +0000)
configure.ac
po/POTFILES.in
src/namestore/Makefile.am

index 79cfa2ec2a76e75800892523a4450a96cbad9861..af0e9306d1ea9d7ce0888f4d5436607d034ece26 100644 (file)
@@ -826,11 +826,19 @@ SAVE_CPPFLAGS=$CPPFLAGS
 AC_MSG_CHECKING(for mysql)
 AC_ARG_WITH(mysql,
   [  --with-mysql=PFX        base of MySQL installation],
-  [AC_MSG_RESULT("$with_mysql")
-   if test "$with_mysql" != "no"
-   then
-    if test "$with_mysql" != "yes"
-    then
+  [AC_MSG_RESULT([$with_mysql])
+   case $with_mysql in
+   no)
+      ;;
+   yes|"")
+      AC_CHECK_HEADERS(mysql/mysql.h,
+       AC_CHECK_LIB(mysqlclient, mysql_init,
+        MYSQL_LDFLAGS="-L$with_mysql/lib -L$with_mysql/lib/mysql"
+        MYSQL_CPPFLAGS="-I$with_mysql/include"
+
+        mysql=true), [], [$CYGWIN_MYSQL_MAGIC])
+      ;;
+   *)
       LDFLAGS="-L$with_mysql/lib -L$with_mysql/lib/mysql $LDFLAGS $ZLIBS"
       CPPFLAGS="-I$with_mysql/include $CPPFLAGS"
       AC_CHECK_HEADERS(mysql/mysql.h,
@@ -839,8 +847,8 @@ AC_ARG_WITH(mysql,
         MYSQL_CPPFLAGS="-I$with_mysql/include"
 
         mysql=true), [], [$CYGWIN_MYSQL_MAGIC])
-    fi
-   fi
+      ;;
+   esac
   ],
   [AC_MSG_RESULT([--with-mysql not specified])
    if test -d "/usr/lib64/mysql"; then
@@ -906,7 +914,7 @@ AC_ARG_WITH(microhttpd,
     case $with_microhttpd in
       no)
         ;;
-      yes)
+      yes|"")
         AC_CHECK_HEADERS([microhttpd.h],
          AC_CHECK_DECL(MHD_OPTION_PER_IP_CONNECTION_LIMIT,
             AC_CHECK_LIB([microhttpd], [MHD_get_fdset2],
index 7e267160f16d86fadf7f7c092634f3cec5cc7c33..c6d3571e71447a3571b4d31a53ff63cf8ae651a5 100644 (file)
@@ -461,6 +461,7 @@ src/util/gnunet-uri.c
 src/util/helper.c
 src/util/load.c
 src/util/mq.c
+src/util/mst.c
 src/util/network.c
 src/util/op.c
 src/util/os_installation.c
@@ -476,6 +477,7 @@ src/util/server_mst.c
 src/util/server_nc.c
 src/util/server_tc.c
 src/util/service.c
+src/util/service_new.c
 src/util/signal.c
 src/util/socks.c
 src/util/speedup.c
index 50b33a18ad72881f1251c21bdfab746ce5b60cbf..23ce477dd9b18bff00adb6efa0526b22609d00b6 100644 (file)
@@ -195,7 +195,7 @@ libgnunet_plugin_rest_namestore_la_LIBADD = \
   $(top_builddir)/src/rest/libgnunetrest.la \
   $(top_builddir)/src/identity/libgnunetidentity.la \
        $(top_builddir)/src/jsonapi/libgnunetjsonapi.la \
-  $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \  
+  $(top_builddir)/src/jsonapi/libgnunetjsonapiutils.la \
   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
   $(LTLIBINTL) -ljansson -lmicrohttpd
 libgnunet_plugin_rest_namestore_la_LDFLAGS = \
@@ -355,9 +355,9 @@ test_plugin_namestore_postgres_LDADD = \
  $(top_builddir)/src/util/libgnunetutil.la
 
 check_SCRIPTS = \
-       test_namestore_put.sh \
-       test_namestore_lookup.sh \
-       test_namestore_delete.sh
+  test_namestore_put.sh \
+  test_namestore_lookup.sh \
+  test_namestore_delete.sh
 
 EXTRA_DIST = \
   test_namestore_api.conf \
@@ -370,4 +370,3 @@ EXTRA_DIST = \
   zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey \
   zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey \
   $(check_SCRIPTS)
-