Ola:

-case "${CC}" in
-  *gcc* )
     dnl> Check if malloc.h has mallinfo...
     AC_MSG_CHECKING([for mallinfo in malloc.h])
     AC_LANG_CONFTEST(
     [AC_LANG_PROGRAM([[#include <malloc.h>]],
                      [[struct mallinfo memStats = mallinfo();]])])
-    gcc conftest.c -o /dev/null > /dev/null 2> /dev/null
-    rc=$?
-    if test ".${rc}" = ".0"; then
+    if (eval "$ac_link"); then
         AC_MSG_RESULT(yes)
         AC_DEFINE_UNQUOTED(HAVE_MALLINFO_MALLOC_H,
                                1,
@@ -2005,7 +2001,6 @@
     else
         AC_MSG_RESULT(no)
     fi
-esac


This fix is not correct.

(1) Removing the test for the gcc extension mallinfo is not a good idea -
this has a history of failing under Mac OS X, which is why it's there.

(2) Removing the gcc line means that the test program is actually not
executed (see
http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf
_74.html - The example on that page is the test I used prior to the change)

Thus what you are actually testing is the value left over in $ac_link, which
happens to be the test for strtok_r.



-----Burton

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Wednesday, November 30, 2005 2:53 PM
To: [email protected]
Subject: [Ntop-dev] New ntop commit (author ola)

Update of /export/home/ntop/ntop
In directory unknown:/tmp/cvs-serv8618

Modified Files:
        configure.in
Log Message:
Applied patch from Roland Illig <[EMAIL PROTECTED]>. It correct the
following issues in build configure script: * /dev/null unlink on solaris,
correctly call gcc and correction so it is possible to enable jumbo frames.

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to