forked from Mirror/frr
minor fix to HAVE_BROKEN_CMSG_FIRSTHDR support: use AC_MSG_CHECKING
etc. so configure output shows the choice we made. (Andrew: please recheck on a buggy system; it configures/compiles fine on NetBSD.)
This commit is contained in:
parent
b99760ab51
commit
6c20046fd7
|
@ -1,3 +1,9 @@
|
||||||
|
2005-01-04 Greg Troxel <gdt@fnord.ir.bbn.com>
|
||||||
|
|
||||||
|
* configure.ac: Use AC_MSG_CHECKING/AC_MSG_RESULT around
|
||||||
|
CMSG_FIRSTHDR check, so it shows up in the output of configure.
|
||||||
|
Tested on NetBSD, which doesn't define HAVE_BROKEN_CMSG_FIRSTHDR.
|
||||||
|
|
||||||
2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* configure.ac: Added test for broken CMSG_FIRSTHDR macro
|
* configure.ac: Added test for broken CMSG_FIRSTHDR macro
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
## Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
|
## Copyright (c) 1996, 97, 98, 99, 2000 Kunihiro Ishiguro <kunihiro@zebra.org>
|
||||||
## Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
|
## Portions Copyright (c) 2003 Paul Jakma <paul@dishone.st>
|
||||||
##
|
##
|
||||||
## $Id: configure.ac,v 1.82 2005/01/04 16:24:43 ajs Exp $
|
## $Id: configure.ac,v 1.83 2005/01/04 17:02:49 gdt Exp $
|
||||||
AC_PREREQ(2.53)
|
AC_PREREQ(2.53)
|
||||||
|
|
||||||
AC_INIT(Quagga, 0.97.4, [http://bugzilla.quagga.net])
|
AC_INIT(Quagga, 0.97.4, [http://bugzilla.quagga.net])
|
||||||
|
@ -497,6 +497,7 @@ AC_SUBST(OTHER_METHOD)
|
||||||
dnl ------------------------------------
|
dnl ------------------------------------
|
||||||
dnl check for broken CMSG_FIRSTHDR macro
|
dnl check for broken CMSG_FIRSTHDR macro
|
||||||
dnl ------------------------------------
|
dnl ------------------------------------
|
||||||
|
AC_MSG_CHECKING(for broken CMSG_FIRSTHDR)
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#ifdef SUNOS_5
|
#ifdef SUNOS_5
|
||||||
#define _XPG4_2
|
#define _XPG4_2
|
||||||
|
@ -517,7 +518,8 @@ main()
|
||||||
if (CMSG_FIRSTHDR(&msg) != NULL)
|
if (CMSG_FIRSTHDR(&msg) != NULL)
|
||||||
exit(0);
|
exit(0);
|
||||||
exit (1);
|
exit (1);
|
||||||
}],[AC_DEFINE(HAVE_BROKEN_CMSG_FIRSTHDR,,Broken CMSG_FIRSTHDR)])
|
}],[AC_MSG_RESULT(yes - using workaround) AC_DEFINE(HAVE_BROKEN_CMSG_FIRSTHDR,,Broken CMSG_FIRSTHDR)],
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
|
||||||
dnl ------------------------------
|
dnl ------------------------------
|
||||||
dnl check kernel route read method
|
dnl check kernel route read method
|
||||||
|
|
Loading…
Reference in a new issue