]> The Tcpdump Group git mirrors - tcpdump/commitdiff
When testing whether "inline" works, use the V_CCOPT flags, because some
authorguy <guy>
Sun, 27 Mar 2005 03:31:01 +0000 (03:31 +0000)
committerguy <guy>
Sun, 27 Mar 2005 03:31:01 +0000 (03:31 +0000)
of those might disable inlining; otherwise, the test for inlining will
succeed, but inlining won't work with the options we're using when
compiling.

aclocal.m4
configure

index cbae4cbfa80cbc25f0a4287fea66d0b4aec97ac7..ab7857b6b74b74fb6727a66f40a1f5a87c2c24e8 100644 (file)
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.105 2004-04-17 08:44:50 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.106 2005-03-27 03:31:01 guy Exp $ (LBL)
 dnl
 dnl Copyright (c) 1995, 1996, 1997, 1998
 dnl    The Regents of the University of California.  All rights reserved.
@@ -166,8 +166,13 @@ AC_DEFUN(AC_LBL_C_INIT,
 # 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
@@ -195,6 +200,7 @@ AC_DEFUN(AC_LBL_C_INLINE,
        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
index 96444fd5900e059a75a7244adf05330f31b9173d..66654f3f564f54b78d790976727f555a47aab0a0 100755 (executable)
--- a/configure
+++ b/configure
@@ -2503,6 +2503,8 @@ _ACEOF
 
 echo "$as_me:$LINENO: checking for inline" >&5
 echo $ECHO_N "checking for inline... $ECHO_C" >&6
+    save_CFLAGS="$CFLAGS"
+    CFLAGS="$V_CCOPT"
     if test "${ac_cv_lbl_inline+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -2568,6 +2570,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext
        fi
 fi
 
+    CFLAGS="$save_CFLAGS"
     if test ! -z "$ac_cv_lbl_inline" ; then
        echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
 echo "${ECHO_T}$ac_cv_lbl_inline" >&6