mirror of
https://github.com/bgp/bgpq4.git
synced 2024-05-11 05:55:05 +00:00
Create and run a bootstrap script to prepare for the transition to
automake.
This commit is contained in:
33
configure.ac
Normal file
33
configure.ac
Normal file
@@ -0,0 +1,33 @@
|
||||
AC_INIT(bgpq4,0.0.2,job@ntt.net)
|
||||
AC_PACKAGE_URL(https://github.com/bgp/bgpq4)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_CHECK_HEADERS([sys/cdefs.h sys/queue.h sys/tree.h sys/select.h])
|
||||
|
||||
AC_MSG_CHECKING([for STAILQ_ interface in queue.h])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
||||
#if HAVE_SYS_QUEUE_H
|
||||
#include <sys/queue.h>
|
||||
#else
|
||||
#include "sys_queue.h"
|
||||
#endif
|
||||
struct blah {
|
||||
STAILQ_ENTRY(blah) next;
|
||||
};
|
||||
])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
AC_DEFINE([HAVE_STAILQ_IN_SYS_QUEUE], [1], [sys/queue.h have STAILQ_])],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
|
||||
AC_CHECK_PROGS([MARKDOWN], [markdown_py markdown2 markdown], [echo])
|
||||
|
||||
AC_CHECK_FUNCS(strlcpy)
|
||||
|
||||
AC_CHECK_LIB(socket,socket)
|
||||
AC_CHECK_LIB(nsl,getaddrinfo)
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
|
||||
Reference in New Issue
Block a user