1 dnl Check to find the lzo headers/libraries
5 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
8 AC_HELP_STRING([--with-lzo=DIR], [lzo base directory, or:]),
10 CFLAGS="$CFLAGS -I$withval/include"
11 CPPFLAGS="$CPPFLAGS -I$withval/include"
12 LIBS="$LIBS -L$withval/lib"]
15 AC_ARG_WITH(lzo-include,
16 AC_HELP_STRING([--with-lzo-include=DIR], [lzo headers directory]),
17 [lzo_include="$withval"
18 CFLAGS="$CFLAGS -I$withval"
19 CPPFLAGS="$CPPFLAGS -I$withval"]
23 AC_HELP_STRING([--with-lzo-lib=DIR], [lzo library directory]),
25 LIBS="$LIBS -L$withval"]
28 AC_CHECK_HEADERS(lzo1x.h,
30 [AC_MSG_ERROR("lzo header files not found."); break]
33 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
35 AC_CHECK_LIB(lzo, lzo1x_1_compress,
37 [AC_MSG_ERROR("lzo libraries not found.")]