Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 021
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 76 lines (54 sloc) 1.629 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
AC_INIT([bti], [021], [greg@kroah.com])
AC_PREREQ(2.60)

AM_INIT_AUTOMAKE(bti, 021)
dnl AM_CONFIG_HEADER([check-news foreign 1.9 dist-bzip2])

AC_PROG_CC
AC_PROG_INSTALL

AC_CONFIG_MACRO_DIR([m4])

AC_PATH_PROG([XSLTPROC], [xsltproc])

dnl FIXME: Replace `main' with a function in `-lnsl':
AC_CHECK_LIB([nsl], [main])
dnl FIXME: Replace `main' with a function in `-lreadline':
AC_CHECK_LIB([readline], [main])

AC_CHECK_LIB([pcre], [main])

# CURL
LIBCURL_CHECK_CONFIG([yes], [], [have_libcurl="yes"], [have_libcurl="no"])
if test "${have_libcurl}" != yes; then
AC_MSG_ERROR([libcurl library not found, please install it])
else
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
LIBS="${LIBS} ${LIBCURL}"
fi

# libxml2
AM_PATH_XML2([], [have_libxml="yes"], [have_libxml="no"])
if test "${have_libxml}" != yes; then
AC_MSG_ERROR([libxml not found, please install it])
else
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
LIBS="$LIBS $XML_LIBS"
fi



dnl Checks for header files.
#AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])

dnl Checks for typedefs, structures, and compiler characteristics.
#AC_TYPE_PID_T
#AC_TYPE_SIZE_T
#AC_TYPE_SSIZE_T

dnl Checks for library functions.
#AC_FUNC_ALLOCA
#AC_FUNC_FORK
#AC_FUNC_MALLOC
#AC_FUNC_REALLOC
#AC_CHECK_FUNCS([strcasecmp strchr strdup strncasecmp strndup])

AC_CONFIG_FILES([Makefile])

AC_OUTPUT


echo "
bti $VERSION
=======

prefix: ${prefix}
datarootdir: ${datarootdir}
mandir: ${mandir}

compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}

xsltproc: ${XSLTPROC}
"

Something went wrong with that request. Please try again.