dnl Process this file with autoconf to produce a configure script. dnl dnl $Id: configure.in,v 1.1 2005/01/17 13:07:48 dgc Exp $ dnl AC_INIT(drac.syslogd.c) AC_CONFIG_HEADER(config.h) AC_CONFIG_AUX_DIR(aux) AC_PROG_CC AC_ISC_POSIX AC_PROG_CPP AC_PROG_INSTALL dnl Checks for programs. dnl Checks for libraries. AC_CHECK_LIB(nsl, gethostent) AC_CHECK_LIB(socket, connect) dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(syslog.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T dnl Checks for library functions. dnl AC_CHECK_FUNCS(socket strdup strerror strtoul) dnl These are from aclocal.m4, generated by m4/aclocal.sh from m4/*.m4 DGC_ENABLE_DEBUG DGC_WITH_LIBWRAP DGC_WITH_EMBED LIBS="-ldrac $LIBS" DGC_WITH_LIBDRAC dnl redundant -- needs fix in m4 infrastructure for requisite features AC_MSG_CHECKING([whether libdrac is usable]) AC_TRY_LINK( [ ], [ drac_init(); ], [ AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_LIBDRAC) ], [ AC_MSG_RESULT([no]) AC_ERROR([cannot find DRAC support]) ]) AC_OUTPUT(Makefile)