about summary refs log tree commit diff stats
path: root/configure.ac
blob: 31cf8b9b06655cad6b9478a212810bc7d2a5c088 (plain) (blame)
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
AC_INIT(rawr-ebooks, version-1.0)
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_PROG_CXX
AC_CONFIG_FILES([Makefile])

# Get libtwitcurl library and include locations
AC_ARG_WITH([libtwitcurl-include-path],
  [AS_HELP_STRING([--with-libtwitcurl-include-path],
    [location of the libtwitcurl headers, defaults to /usr/include])],
  [LIBTWITCURL_CFLAGS="-I$withval"],
  [LIBTWITCURL_CFLAGS=''])
AC_SUBST([LIBTWITCURL_CFLAGS])

AC_ARG_WITH([libtwitcurl-lib-path],
  [AS_HELP_STRING([--with-libtwitcurl-lib-path], [location of the libtwitcurl libraries])],
  [LIBTWITCURL_LIBS="-L$withval -llibtwitcurl"],
  [LIBTWITCURL_LIBS='-ltwitcurl'])
AC_SUBST([LIBTWITCURL_LIBS])

# Get yaml-cpp library and include locations
AC_ARG_WITH([yamlcpp-include-path],
  [AS_HELP_STRING([--with-yamlcpp-include-path],
    [location of the yamlcpp headers, defaults to /usr/include])],
  [YAML_CFLAGS="-I$withval"],
  [YAML_CFLAGS=''])
AC_SUBST([YAML_CFLAGS])

AC_ARG_WITH([yamlcpp-lib-path],
  [AS_HELP_STRING([--with-yamlcpp-lib-path], [location of the yamlcpp libraries])],
  [YAML_LIBS="-L$withval -lyaml-cpp"],
  [YAML_LIBS='-lyaml-cpp'])
AC_SUBST([YAML_LIBS])

AC_OUTPUT