-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
38 lines (30 loc) · 1.05 KB
/
configure.ac
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT([lloconv], [6.1.1], [https://gitlab.com/ojwb/lloconv])
AM_INIT_AUTOMAKE([foreign -Wall -Wportability -Werror])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([lloconv.cc])
AC_PROG_CXX
dnl Enable extra warning flags for building with GCC.
if test yes = "$GXX"; then
AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align"
fi
AC_SUBST([AM_CXXFLAGS])
dnl Allow easy building against uninstalled LibreOffice.
AC_ARG_VAR([LO_INCLUDE_PATH], [Path to directory containing LibreOffice headers])
if test x"$LO_INCLUDE_PATH" != x ; then
AM_CPPFLAGS="-I'$LO_INCLUDE_PATH'"
fi
AC_SUBST([AM_CPPFLAGS])
AC_ARG_ENABLE([extra-programs],
[AS_HELP_STRING([--enable-extra-programs],
[enable experimental extra programs])],
[case ${enableval} in
yes)
extra_programs=inject-meta
AC_SUBST([extra_programs]) ;;
no) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-extra-programs]) ;;
esac])
AC_SEARCH_LIBS([dlopen], [dl])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT