On Linux Slackware, I get an error message when running the configure for
5.7.1p1 when I do not use --enable-table-db:

...
checking if inet_net_pton will link... no
checking for inet_net_pton in -lresolv... yes
checking if programs using libevent functions will link... yes
./configure: line 19213: test: =: unary operator expected
checking for asr.h... yes
checking for asr_resolver in -lasr... yes
...

One good work-around is to use --enable-table-db

another fix is to patch configure:

--- configure.orig      2015-06-30 01:22:36.000000000 -0700
+++ configure   2015-07-21 18:33:56.261377490 -0700
@@ -19210,7 +19210,7 @@
 LIBS="$save_LIBS"


- if test $use_db_api = 1; then
+ if test x$use_db_api = x1; then
   HAVE_DB_API_TRUE=
   HAVE_DB_API_FALSE='#'
 else
---------------------------------------------------------------------------

The root cause bug appears to be at line 2583 of configure.ac and here is
a patch to fix it:

--- configure.ac.orig   2015-06-30 01:13:34.000000000 -0700
+++ configure.ac        2015-07-21 17:18:42.661435669 -0700
@@ -2580,7 +2580,7 @@
 LIBS="$save_LIBS"


-AM_CONDITIONAL([HAVE_DB_API], [test $use_db_api = 1])
+AM_CONDITIONAL([HAVE_DB_API], [test x$use_db_api = x1])
 AM_COND_IF([HAVE_DB_API], [AC_DEFINE([HAVE_DB_API], [1], [Define to 1 if 
HAVE_DB_API])])


---------------------------------------------------------------------------------------------

Richard Narron
[email protected]


-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to