summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorguy <guy>2005-04-20 09:44:30 +0000
committerguy <guy>2005-04-20 09:44:30 +0000
commite1db53eeb7c740cf75eb5835d292d14902257455 (patch)
tree1d11f4fb98aa98aab456e4e82c21c8a8de22187e /aclocal.m4
parentc41b9bd9c1b572f5284f32accae78a9006f74c2e (diff)
downloadtcpdump-e1db53eeb7c740cf75eb5835d292d14902257455.tar.gz
From Albert Chin:
1. On AIX, AC_LBL_C_INLINE detected the compiler supported the inline keyword which is wrong. AC_C_INLINE from autoconf-2.59 worked. 2. AC_CHECK_TYPE from autoconf-2.5x is no longer broken. Replaced AC_LBL_CHECK_TYPE with it, mainly to use <sys/bitypes.h> for Tru64 UNIX where some of the u_int#_t types are defined. 3. Tru64 UNIX 4.0D doesn't support %llx; however, it does support %lx. 4. Added <stdint.h> to interface.h for int#_t types on Tru64 UNIX 4.0D (required for missing/snprintf.c). 5. Reworked includes in tcpdump-stdinc.h for int#_t types.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m483
1 files changed, 1 insertions, 82 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index ab7857b6..ef5ea0f4 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.106 2005-03-27 03:31:01 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.107 2005-04-20 09:44:30 guy Exp $ (LBL)
dnl
dnl Copyright (c) 1995, 1996, 1997, 1998
dnl The Regents of the University of California. All rights reserved.
@@ -157,57 +157,6 @@ AC_DEFUN(AC_LBL_C_INIT,
fi
])
-#
-# Try compiling a sample of the type of code that appears in
-# gencode.c with "inline", "__inline__", and "__inline".
-#
-# Autoconf's AC_C_INLINE, at least in autoconf 2.13, isn't good enough,
-# as it just tests whether a function returning "int" can be inlined;
-# at least some versions of HP's C compiler can inline that, but can't
-# inline a function that returns a struct pointer.
-#
-# Make sure we use the V_CCOPT flags, because some of those might
-# disable inlining.
-#
-AC_DEFUN(AC_LBL_C_INLINE,
- [AC_MSG_CHECKING(for inline)
- save_CFLAGS="$CFLAGS"
- CFLAGS="$V_CCOPT"
- AC_CACHE_VAL(ac_cv_lbl_inline, [
- ac_cv_lbl_inline=""
- ac_lbl_cc_inline=no
- for ac_lbl_inline in inline __inline__ __inline
- do
- AC_TRY_COMPILE(
- [#define inline $ac_lbl_inline
- static inline struct iltest *foo(void);
- struct iltest {
- int iltest1;
- int iltest2;
- };
-
- static inline struct iltest *
- foo()
- {
- static struct iltest xxx;
-
- return &xxx;
- }],,ac_lbl_cc_inline=yes,)
- if test "$ac_lbl_cc_inline" = yes ; then
- break;
- fi
- done
- if test "$ac_lbl_cc_inline" = yes ; then
- ac_cv_lbl_inline=$ac_lbl_inline
- fi])
- CFLAGS="$save_CFLAGS"
- if test ! -z "$ac_cv_lbl_inline" ; then
- AC_MSG_RESULT($ac_cv_lbl_inline)
- else
- AC_MSG_RESULT(no)
- fi
- AC_DEFINE_UNQUOTED(inline, $ac_cv_lbl_inline, [Define as token for inline if inlining supported])])
-
dnl
dnl Use pfopen.c if available and pfopen() not in standard libraries
dnl Require libpcap
@@ -563,36 +512,6 @@ AC_DEFUN(AC_LBL_HAVE_RUN_PATH,
])
dnl
-dnl Due to the stupid way it's implemented, AC_CHECK_TYPE is nearly useless.
-dnl
-dnl usage:
-dnl
-dnl AC_LBL_CHECK_TYPE
-dnl
-dnl results:
-dnl
-dnl int32_t (defined)
-dnl u_int32_t (defined)
-dnl
-AC_DEFUN(AC_LBL_CHECK_TYPE,
- [AC_MSG_CHECKING(for $1 using $CC)
- AC_CACHE_VAL(ac_cv_lbl_have_$1,
- AC_TRY_COMPILE([
-# include "confdefs.h"
-# include <sys/types.h>
-# if STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-# endif],
- [$1 i],
- ac_cv_lbl_have_$1=yes,
- ac_cv_lbl_have_$1=no))
- AC_MSG_RESULT($ac_cv_lbl_have_$1)
- if test $ac_cv_lbl_have_$1 = no ; then
- AC_DEFINE($1, $2)
- fi])
-
-dnl
dnl Check whether a given format can be used to print 64-bit integers
dnl
AC_DEFUN(AC_LBL_CHECK_64BIT_FORMAT,