blob: 7367275f98b9e77dc344054abba763208b98b306 [file] [log] [blame] [raw]
# Helder Correia <helder.correia@netcabo.pt>
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/dev.cpp)
AM_INIT_AUTOMAKE(nload, 0.3.2)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
dnl Checks for libraries.
dnl Replace `main' with a function in -lncurses:
AC_CHECK_LIB(ncurses, initscr)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h sys/time.h)
# Use -Wall if we have gcc.
if test "x$GCC" = "xyes" ; then
CFLAGS="$CFLAGS -Wall"
fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
dnl Checks for library functions.
AC_CHECK_FUNCS(gettimeofday)
AC_OUTPUT([
Makefile
docs/Makefile
docs/nload.1
nload.spec
src/Makefile
])