-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
59 lines (48 loc) · 1.53 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT([bla],[6.4.8],[[email protected]])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h])
if test x"${CXXFLAGS+set}" = xset; then
# the user set CXXFLAGS; don't override it.
cxx_flags_were_set=true
else
cxx_flags_were_set=false
fi
if $cxx_flags_were_set; then
CXXFLAGS=$CXXFLAGS
fi
# Checks for programs.
AC_PROG_CXX( [g++ c++] )
# libtool stuff
LT_INIT
# when running tests, use CXX
AC_LANG([C++])
#checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
# ugly hack when PKG_CONFIG_PATH isn't defined.
# couldn't get it to work otherwise
if test "x$PKG_CONFIG_PATH" = x; then
export PKG_CONFIG_PATH=""
fi
AC_ARG_WITH(ticcutils,
[ --with-ticcutils=DIR use libticcutils installed in <DIR>;
note that you can install libticcutils in a non-default directory with
./configure --prefix=<DIR> in the libticutils installation directory],
[PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$withval/lib/pkgconfig"],
[PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$prefix/lib/pkgconfig"])
AC_MSG_NOTICE( [pkg-config search path: $PKG_CONFIG_PATH] )
PKG_CHECK_MODULES([ticcutils], [ticcutils >= 0.10] )
CXXFLAGS="$CXXFLAGS $ticcutils_CFLAGS"
LIBS="$LIBS $ticcutils_LIBS"
AC_CONFIG_FILES([
Makefile
m4/Makefile
src/Makefile
])
AC_OUTPUT