/[debian]/bti/trunk/configure.ac
ViewVC logotype

Contents of /bti/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1741 - (show annotations)
Thu May 28 15:22:46 2009 UTC (11 years, 6 months ago) by gregoa
File size: 1629 byte(s)
* New upstream release, main changes:
  - new 'verbose' mode
  - SSL also for twitter
1 AC_INIT([bti], [023], [greg@kroah.com])
2 AC_PREREQ(2.60)
3
4 AM_INIT_AUTOMAKE(bti, 023)
5 dnl AM_CONFIG_HEADER([check-news foreign 1.9 dist-bzip2])
6
7 AC_PROG_CC
8 AC_PROG_INSTALL
9
10 AC_CONFIG_MACRO_DIR([m4])
11
12 AC_PATH_PROG([XSLTPROC], [xsltproc])
13
14 dnl FIXME: Replace `main' with a function in `-lnsl':
15 AC_CHECK_LIB([nsl], [main])
16 dnl FIXME: Replace `main' with a function in `-lreadline':
17 AC_CHECK_LIB([readline], [main])
18
19 AC_CHECK_LIB([pcre], [main])
20
21 # CURL
22 LIBCURL_CHECK_CONFIG([yes], [], [have_libcurl="yes"], [have_libcurl="no"])
23 if test "${have_libcurl}" != yes; then
24 AC_MSG_ERROR([libcurl library not found, please install it])
25 else
26 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
27 LIBS="${LIBS} ${LIBCURL}"
28 fi
29
30 # libxml2
31 AM_PATH_XML2([], [have_libxml="yes"], [have_libxml="no"])
32 if test "${have_libxml}" != yes; then
33 AC_MSG_ERROR([libxml not found, please install it])
34 else
35 CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
36 LIBS="$LIBS $XML_LIBS"
37 fi
38
39
40
41 dnl Checks for header files.
42 #AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h unistd.h])
43
44 dnl Checks for typedefs, structures, and compiler characteristics.
45 #AC_TYPE_PID_T
46 #AC_TYPE_SIZE_T
47 #AC_TYPE_SSIZE_T
48
49 dnl Checks for library functions.
50 #AC_FUNC_ALLOCA
51 #AC_FUNC_FORK
52 #AC_FUNC_MALLOC
53 #AC_FUNC_REALLOC
54 #AC_CHECK_FUNCS([strcasecmp strchr strdup strncasecmp strndup])
55
56 AC_CONFIG_FILES([Makefile])
57
58 AC_OUTPUT
59
60
61 echo "
62 bti $VERSION
63 =======
64
65 prefix: ${prefix}
66 datarootdir: ${datarootdir}
67 mandir: ${mandir}
68
69 compiler: ${CC}
70 cflags: ${CFLAGS}
71 ldflags: ${LDFLAGS}
72
73 xsltproc: ${XSLTPROC}
74 "
75

  ViewVC Help
Powered by ViewVC 1.1.26