From d144d58c947696e3e707e842e77959c3fb578084 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 22 Jan 2007 01:04:23 +0000 Subject: Regenerate all the autotools provided files - some were ancient and would have failed on some modern systems. Sole exception is the old INSTALL file, libax25 had its own. Maybe we should drop for simplicity; it doesn't provide alot of information. --- configure.ac | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..7d73ead --- /dev/null +++ b/configure.ac @@ -0,0 +1,60 @@ +AC_PREREQ(2.59) +AC_INIT(libax25, 0.0.11, linux-hams@vger.kernel.org) +AC_CONFIG_SRCDIR(axlib.h) +AM_INIT_AUTOMAKE([foreign no-define]) + +AM_CONFIG_HEADER(config.h) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_GCC_TRADITIONAL +AC_PROG_LIBTOOL + +dnl Checks for libraries. + +AC_FUNC_SETPGRP +AC_TYPE_SIGNAL +AC_CHECK_FUNCS(socket strdup strerror strspn) + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h unistd.h zlib.h) + +dnl Checks for working glibc 2.1 headers +AC_MSG_CHECKING(for working netax25/ax25.h header file) +AC_HEADER_EGREP(ax25_fwd_struct, netax25/ax25.h, has_ax25=yes, has_ax25=no) +if test "$has_ax25" = "yes" ; then + AC_DEFINE(HAVE_NETAX25_AX25_H, 1, [Define if you have a proper netax25/ax25.h header file]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi +AC_MSG_CHECKING(for working netrom/netrom.h header file) +AC_HEADER_EGREP(unsigned int ndigis, netrom/netrom.h, has_netrom=yes, has_netrom=no) +if test "$has_netrom" = "yes" ; then + AC_DEFINE(HAVE_NETROM_NETROM_H, 1, [Define if you have a proper netrom/netrom.h header file.]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi +AC_MSG_CHECKING(for working netrose/rose.h header file) +AC_HEADER_EGREP(rose_facilities_struct, netrose/rose.h, has_rose=yes, has_rose=no) +if test "$has_rose" = "yes" ; then + AC_DEFINE(HAVE_NETROSE_ROSE_H, 1, [Define if you have a proper netrose/rose.h header file.]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST + +dnl Only use -Wall if we have gcc +if test "x$GCC" = "xyes"; then + if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then + CFLAGS="$CFLAGS -Wall" + fi +fi + +dnl Checks for library functions. +AC_OUTPUT(Makefile) -- cgit v1.2.3