]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ntop/ntop-3.0/autotools.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ntop / ntop-3.0 / autotools.patch
1 --- tmp/base/ntop-3.0-r0/ntop-3.0/acinclude.m4  2004-03-09 12:19:57.000000000 -0500
2 +++ ntop-3.0/acinclude.m4       2004-03-09 12:19:57.000000000 -0500
3 @@ -205,433 +205,3 @@
4  fi
5  # Finished expansion of NTOPCONFIGDEBUG_SETTINGS()
6  ])
7 -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
8 -## Copyright (C) 1996-1999 Free Software Foundation, Inc.
9 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10 -##
11 -## This program is free software; you can redistribute it and/or modify
12 -## it under the terms of the GNU General Public License as published by
13 -## the Free Software Foundation; either version 2 of the License, or
14 -## (at your option) any later version.
15 -##
16 -## This program is distributed in the hope that it will be useful, but
17 -## WITHOUT ANY WARRANTY; without even the implied warranty of
18 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 -## General Public License for more details.
20 -##
21 -## You should have received a copy of the GNU General Public License
22 -## along with this program; if not, write to the Free Software
23 -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 -##
25 -## As a special exception to the GNU General Public License, if you
26 -## distribute this file as part of a program that contains a
27 -## configuration script generated by Autoconf, you may include it under
28 -## the same distribution terms that you use for the rest of that program.
29 -
30 -## 1.4.2 modified by BMSIII - Mar2004 - to eliminate 1.5.2 whines about
31 -## underquoted AC _ DEFUN 's 
32 -
33 -# serial 40 AC_PROG_LIBTOOL
34 -AC_DEFUN([AC_PROG_LIBTOOL],
35 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
36 -
37 -# Save cache, so that ltconfig can load it
38 -AC_CACHE_SAVE
39 -
40 -# Actually configure libtool.  ac_aux_dir is where install-sh is found.
41 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
42 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
43 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
44 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
45 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
46 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
47 -|| AC_MSG_ERROR([libtool configure failed])
48 -
49 -# Reload cache, that may have been modified by ltconfig
50 -AC_CACHE_LOAD
51 -
52 -# This can be used to rebuild libtool when needed
53 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
54 -
55 -# Always use our own libtool.
56 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
57 -AC_SUBST(LIBTOOL)dnl
58 -
59 -# Redirect the config.log output again, so that the ltconfig log is not
60 -# clobbered by the next message.
61 -exec 5>>./config.log
62 -])
63 -
64 -AC_DEFUN([AC_LIBTOOL_SETUP],
65 -[AC_PREREQ(2.13)dnl
66 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
67 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
68 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
69 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
70 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
71 -AC_REQUIRE([AC_PROG_RANLIB])dnl
72 -AC_REQUIRE([AC_PROG_CC])dnl
73 -AC_REQUIRE([AC_PROG_LD])dnl
74 -AC_REQUIRE([AC_PROG_NM])dnl
75 -AC_REQUIRE([AC_PROG_LN_S])dnl
76 -dnl
77 -
78 -# Check for any special flags to pass to ltconfig.
79 -libtool_flags="--cache-file=$cache_file"
80 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
81 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
82 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
83 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
84 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
85 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
86 -[libtool_flags="$libtool_flags --enable-dlopen"])
87 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
88 -[libtool_flags="$libtool_flags --enable-win32-dll"])
89 -AC_ARG_ENABLE(libtool-lock,
90 -  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
91 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
92 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
93 -
94 -# Some flags need to be propagated to the compiler or linker for good
95 -# libtool support.
96 -case "$host" in
97 -*-*-irix6*)
98 -  # Find out which ABI we are using.
99 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
100 -  if AC_TRY_EVAL(ac_compile); then
101 -    case "`/usr/bin/file conftest.o`" in
102 -    *32-bit*)
103 -      LD="${LD-ld} -32"
104 -      ;;
105 -    *N32*)
106 -      LD="${LD-ld} -n32"
107 -      ;;
108 -    *64-bit*)
109 -      LD="${LD-ld} -64"
110 -      ;;
111 -    esac
112 -  fi
113 -  rm -rf conftest*
114 -  ;;
115 -
116 -*-*-sco3.2v5*)
117 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
118 -  SAVE_CFLAGS="$CFLAGS"
119 -  CFLAGS="$CFLAGS -belf"
120 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
121 -    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
122 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
123 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
124 -    CFLAGS="$SAVE_CFLAGS"
125 -  fi
126 -  ;;
127 -
128 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
129 -[*-*-cygwin* | *-*-mingw*)
130 -  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 -  AC_CHECK_TOOL(AS, as, false)
132 -  AC_CHECK_TOOL(OBJDUMP, objdump, false)
133 -  ;;
134 -])
135 -esac
136 -])
137 -
138 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
139 -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
140 -
141 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
142 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
143 -
144 -# AC_ENABLE_SHARED - implement the --enable-shared flag
145 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
146 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
147 -#   `yes'.
148 -AC_DEFUN([AC_ENABLE_SHARED], [dnl
149 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
150 -AC_ARG_ENABLE(shared,
151 -changequote(<<, >>)dnl
152 -<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
153 -changequote([, ])dnl
154 -[p=${PACKAGE-default}
155 -case "$enableval" in
156 -yes) enable_shared=yes ;;
157 -no) enable_shared=no ;;
158 -*)
159 -  enable_shared=no
160 -  # Look at the argument we got.  We use all the common list separators.
161 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
162 -  for pkg in $enableval; do
163 -    if test "X$pkg" = "X$p"; then
164 -      enable_shared=yes
165 -    fi
166 -  done
167 -  IFS="$ac_save_ifs"
168 -  ;;
169 -esac],
170 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
171 -])
172 -
173 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
174 -AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
175 -AC_ENABLE_SHARED(no)])
176 -
177 -# AC_ENABLE_STATIC - implement the --enable-static flag
178 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
179 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
180 -#   `yes'.
181 -AC_DEFUN([AC_ENABLE_STATIC], [dnl
182 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
183 -AC_ARG_ENABLE(static,
184 -changequote(<<, >>)dnl
185 -<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
186 -changequote([, ])dnl
187 -[p=${PACKAGE-default}
188 -case "$enableval" in
189 -yes) enable_static=yes ;;
190 -no) enable_static=no ;;
191 -*)
192 -  enable_static=no
193 -  # Look at the argument we got.  We use all the common list separators.
194 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
195 -  for pkg in $enableval; do
196 -    if test "X$pkg" = "X$p"; then
197 -      enable_static=yes
198 -    fi
199 -  done
200 -  IFS="$ac_save_ifs"
201 -  ;;
202 -esac],
203 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
204 -])
205 -
206 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
207 -AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
208 -AC_ENABLE_STATIC(no)])
209 -
210 -
211 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
212 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
213 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
214 -#   `yes'.
215 -AC_DEFUN([AC_ENABLE_FAST_INSTALL], [dnl
216 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
217 -AC_ARG_ENABLE(fast-install,
218 -changequote(<<, >>)dnl
219 -<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
220 -changequote([, ])dnl
221 -[p=${PACKAGE-default}
222 -case "$enableval" in
223 -yes) enable_fast_install=yes ;;
224 -no) enable_fast_install=no ;;
225 -*)
226 -  enable_fast_install=no
227 -  # Look at the argument we got.  We use all the common list separators.
228 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
229 -  for pkg in $enableval; do
230 -    if test "X$pkg" = "X$p"; then
231 -      enable_fast_install=yes
232 -    fi
233 -  done
234 -  IFS="$ac_save_ifs"
235 -  ;;
236 -esac],
237 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
238 -])
239 -
240 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
241 -AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
242 -AC_ENABLE_FAST_INSTALL(no)])
243 -
244 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
245 -AC_DEFUN([AC_PROG_LD],
246 -[AC_ARG_WITH(gnu-ld,
247 -[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
248 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
249 -AC_REQUIRE([AC_PROG_CC])dnl
250 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
251 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
252 -ac_prog=ld
253 -if test "$ac_cv_prog_gcc" = yes; then
254 -  # Check if gcc -print-prog-name=ld gives a path.
255 -  AC_MSG_CHECKING([for ld used by GCC])
256 -  ac_prog=`($CC -print-prog-name=ld) 2>&5`
257 -  case "$ac_prog" in
258 -    # Accept absolute paths.
259 -changequote(,)dnl
260 -    [\\/]* | [A-Za-z]:[\\/]*)
261 -      re_direlt='/[^/][^/]*/\.\./'
262 -changequote([,])dnl
263 -      # Canonicalize the path of ld
264 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
265 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
266 -       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
267 -      done
268 -      test -z "$LD" && LD="$ac_prog"
269 -      ;;
270 -  "")
271 -    # If it fails, then pretend we aren't using GCC.
272 -    ac_prog=ld
273 -    ;;
274 -  *)
275 -    # If it is relative, then search for the first ld in PATH.
276 -    with_gnu_ld=unknown
277 -    ;;
278 -  esac
279 -elif test "$with_gnu_ld" = yes; then
280 -  AC_MSG_CHECKING([for GNU ld])
281 -else
282 -  AC_MSG_CHECKING([for non-GNU ld])
283 -fi
284 -AC_CACHE_VAL(ac_cv_path_LD,
285 -[if test -z "$LD"; then
286 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
287 -  for ac_dir in $PATH; do
288 -    test -z "$ac_dir" && ac_dir=.
289 -    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
290 -      ac_cv_path_LD="$ac_dir/$ac_prog"
291 -      # Check to see if the program is GNU ld.  I'd rather use --version,
292 -      # but apparently some GNU ld's only accept -v.
293 -      # Break only if it was the GNU/non-GNU ld that we prefer.
294 -      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
295 -       test "$with_gnu_ld" != no && break
296 -      else
297 -       test "$with_gnu_ld" != yes && break
298 -      fi
299 -    fi
300 -  done
301 -  IFS="$ac_save_ifs"
302 -else
303 -  ac_cv_path_LD="$LD" # Let the user override the test with a path.
304 -fi])
305 -LD="$ac_cv_path_LD"
306 -if test -n "$LD"; then
307 -  AC_MSG_RESULT($LD)
308 -else
309 -  AC_MSG_RESULT(no)
310 -fi
311 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
312 -AC_SUBST(LD)
313 -AC_PROG_LD_GNU
314 -])
315 -
316 -AC_DEFUN([AC_PROG_LD_GNU],
317 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
318 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
319 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
320 -  ac_cv_prog_gnu_ld=yes
321 -else
322 -  ac_cv_prog_gnu_ld=no
323 -fi])
324 -])
325 -
326 -# AC_PROG_NM - find the path to a BSD-compatible name lister
327 -AC_DEFUN([AC_PROG_NM],
328 -[AC_MSG_CHECKING([for BSD-compatible nm])
329 -AC_CACHE_VAL(ac_cv_path_NM,
330 -[if test -n "$NM"; then
331 -  # Let the user override the test.
332 -  ac_cv_path_NM="$NM"
333 -else
334 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
335 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
336 -    test -z "$ac_dir" && ac_dir=.
337 -    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
338 -      # Check to see if the nm accepts a BSD-compat flag.
339 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
340 -      #   nm: unknown option "B" ignored
341 -      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
342 -       ac_cv_path_NM="$ac_dir/nm -B"
343 -       break
344 -      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
345 -       ac_cv_path_NM="$ac_dir/nm -p"
346 -       break
347 -      else
348 -       ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
349 -       continue # so that we can try to find one that supports BSD flags
350 -      fi
351 -    fi
352 -  done
353 -  IFS="$ac_save_ifs"
354 -  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
355 -fi])
356 -NM="$ac_cv_path_NM"
357 -AC_MSG_RESULT([$NM])
358 -AC_SUBST(NM)
359 -])
360 -
361 -# AC_CHECK_LIBM - check for math library
362 -AC_DEFUN([AC_CHECK_LIBM],
363 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
364 -LIBM=
365 -case "$host" in
366 -*-*-beos* | *-*-cygwin*)
367 -  # These system don't have libm
368 -  ;;
369 -*-ncr-sysv4.3*)
370 -  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
371 -  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
372 -  ;;
373 -*)
374 -  AC_CHECK_LIB(m, main, LIBM="-lm")
375 -  ;;
376 -esac
377 -])
378 -
379 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
380 -# the libltdl convenience library, adds --enable-ltdl-convenience to
381 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
382 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
383 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
384 -# '${top_builddir}/' (note the single quotes!) if your package is not
385 -# flat, and, if you're not using automake, define top_builddir as
386 -# appropriate in the Makefiles.
387 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
388 -  case "$enable_ltdl_convenience" in
389 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
390 -  "") enable_ltdl_convenience=yes
391 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
392 -  esac
393 -  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
394 -  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
395 -])
396 -
397 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
398 -# the libltdl installable library, and adds --enable-ltdl-install to
399 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
400 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
401 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
402 -# '${top_builddir}/' (note the single quotes!) if your package is not
403 -# flat, and, if you're not using automake, define top_builddir as
404 -# appropriate in the Makefiles.
405 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
406 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
407 -  AC_CHECK_LIB(ltdl, main,
408 -  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
409 -  [if test x"$enable_ltdl_install" = xno; then
410 -     AC_MSG_WARN([libltdl not installed, but installation disabled])
411 -   else
412 -     enable_ltdl_install=yes
413 -   fi
414 -  ])
415 -  if test x"$enable_ltdl_install" = x"yes"; then
416 -    ac_configure_args="$ac_configure_args --enable-ltdl-install"
417 -    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
418 -    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
419 -  else
420 -    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
421 -    LIBLTDL="-lltdl"
422 -    INCLTDL=
423 -  fi
424 -])
425 -
426 -dnl old names
427 -AC_DEFUN([AM_PROG_LIBTOOL], [indir([AC_PROG_LIBTOOL])])dnl
428 -AC_DEFUN([AM_ENABLE_SHARED], [indir([AC_ENABLE_SHARED], $@)])dnl
429 -AC_DEFUN([AM_ENABLE_STATIC], [indir([AC_ENABLE_STATIC], $@)])dnl
430 -AC_DEFUN([AM_DISABLE_SHARED], [indir([AC_DISABLE_SHARED], $@)])dnl
431 -AC_DEFUN([AM_DISABLE_STATIC], [indir([AC_DISABLE_STATIC], $@)])dnl
432 -AC_DEFUN([AM_PROG_LD], [indir([AC_PROG_LD])])dnl
433 -AC_DEFUN([AM_PROG_NM], [indir([AC_PROG_NM])])dnl
434 -
435 -dnl This is just to silence aclocal about the macro not being used
436 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
437 --- tmp/base/ntop-3.0-r0/ntop-3.0/configure.in  2004-03-21 18:45:04.000000000 -0500
438 +++ ntop-3.0/configure.in       2004-05-22 14:20:07.000000000 -0400
439 @@ -190,7 +190,6 @@
440  AC_PROG_INSTALL
441  AC_PROG_LN_S
442  AC_PROG_MAKE_SET
443 -AC_PROG_RANLIB
444  
445  NTOPCONFIGDEBUG_SETTINGS([After ac stuff])
446  
447 @@ -223,7 +222,6 @@
448  AC_MSG_CHECKING([for libtool])
449  AC_MSG_RESULT([])
450  
451 -dnl> Fix to: library used but `LIBTOOL' not defined in `configure.in'
452  AC_PROG_LIBTOOL
453  
454  dnl> Apple, just to be difficult, calls the gnu version glibtool...
455 @@ -231,9 +229,6 @@
456      *-*-darwin*:* )
457          AC_CHECK_TOOL(LIBTOOL, glibtool)
458          ;;
459 -    * )
460 -        AC_CHECK_TOOL(LIBTOOL, libtool)
461 -        ;;
462  esac
463  
464  dnl> Test before we use it, below
465 @@ -798,20 +793,22 @@
466                [  +----------------------------------------------------------------------------+])
467  
468  
469 -AC_MSG_CHECKING([for aclocal.m4])
470 -AC_CHECK_FILE(aclocal.m4, , [
471 -    echo ""
472 -    echo "Invoking aclocal to create aclocal.m4..."
473 -    $ACLOCAL
474 -    echo ""
475 -])
476 -AC_CHECK_FILE(depcomp, , [
477 -    echo ""
478 -    echo "depcomp missing... will install it in this ntop directory."
479 -    echo "  Invoking automake to copy depcomp..."
480 -    $AUTOMAKE --gnu --copy --add-missing
481 -    echo ""
482 -])
483 +if test X"$cross_compiling" != Xyes; then
484 +    AC_MSG_CHECKING([for aclocal.m4])
485 +    AC_CHECK_FILE(aclocal.m4, , [
486 +        echo ""
487 +        echo "Invoking aclocal to create aclocal.m4..."
488 +        $ACLOCAL
489 +        echo ""
490 +    ])
491 +    AC_CHECK_FILE(depcomp, , [
492 +        echo ""
493 +        echo "depcomp missing... will install it in this ntop directory."
494 +        echo "  Invoking automake to copy depcomp..."
495 +        $AUTOMAKE --gnu --copy --add-missing
496 +        echo ""
497 +    ])
498 +fi
499  
500  dnl> Handle the root -> lib/include settings
501  NTOP_SET_LIBINC(PCAP)
502 @@ -2105,15 +2102,15 @@
503  AC_STRUCT_TM
504  AC_STRUCT_TIMEZONE 
505  
506 -AC_CHECK_TYPEDEF(u_int64_t, sys/types.h)
507 -AC_CHECK_TYPEDEF(uint64_t, sys/types.h)
508 -AC_CHECK_TYPEDEF(u_int32_t, sys/types.h)
509 -AC_CHECK_TYPEDEF(u_int16_t, sys/types.h)
510 -AC_CHECK_TYPEDEF(u_int8_t, sys/types.h)
511 -AC_CHECK_TYPEDEF(int64_t, sys/types.h)
512 -AC_CHECK_TYPEDEF(int32_t, sys/types.h)
513 -AC_CHECK_TYPEDEF(int16_t, sys/types.h)
514 -AC_CHECK_TYPEDEF(int8_t, sys/types.h)
515 +AC_CHECK_TYPES([u_int64_t])
516 +AC_CHECK_TYPES([uint64_t])
517 +AC_CHECK_TYPES([u_int32_t])
518 +AC_CHECK_TYPES([u_int16_t])
519 +AC_CHECK_TYPES([u_int8_t])
520 +AC_CHECK_TYPES([int64_t])
521 +AC_CHECK_TYPES([int32_t])
522 +AC_CHECK_TYPES([int16_t])
523 +AC_CHECK_TYPES([int8_t])
524  
525  dnl> If this fails, it could be a bad -l which is going to kill
526  dnl> ALL the tests... so do the trivial compile test...