Support and autodetect LZO version 2.0 and later.
This commit is contained in:
parent
0d1ac68c59
commit
bdb3c24cea
1 changed files with 12 additions and 8 deletions
20
m4/lzo.m4
20
m4/lzo.m4
|
@ -21,13 +21,17 @@ AC_DEFUN([tinc_LZO],
|
||||||
LDFLAGS="$LDFLAGS -L$withval"]
|
LDFLAGS="$LDFLAGS -L$withval"]
|
||||||
)
|
)
|
||||||
|
|
||||||
AC_CHECK_HEADERS(lzo1x.h,
|
AC_CHECK_LIB(lzo2, lzo1x_1_compress,
|
||||||
[],
|
[AC_CHECK_HEADERS(lzo/lzo1x.h,
|
||||||
[AC_MSG_ERROR("lzo header files not found."); break]
|
[LIBS="$LIBS -llzo2"],
|
||||||
)
|
[AC_MSG_ERROR("lzo2 header files not found."); break]
|
||||||
|
)],
|
||||||
AC_CHECK_LIB(lzo, lzo1x_1_compress,
|
[AC_CHECK_LIB(lzo, lzo1x_1_compress,
|
||||||
[LIBS="$LIBS -llzo"],
|
[AC_CHECK_HEADERS(lzo1x.h,
|
||||||
[AC_MSG_ERROR("lzo libraries not found.")]
|
[LIBS="$LIBS -llzo"],
|
||||||
|
[AC_MSG_ERROR("lzo1 header files not found."); break]
|
||||||
|
)],
|
||||||
|
[AC_MSG_ERROR("lzo libraries not found."); break]
|
||||||
|
)]
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue