| # Process this file with autoconf to produce a configure script. |
| AC_INIT([openolt], [1.4.0], [voltha-discuss@opencord.org]) |
| AC_CONFIG_SRCDIR([config.h.in]) |
| AC_CONFIG_HEADERS([config.h]) |
| [AS_HELP_STRING([--with-sysroot[=DIR]], [search for usr/include, usr/lib, usr/lib64 etal within DIR])], |
| if test "$sysroot" = "yes"; then |
| sysroot='${exec_prefix}/${target_alias}/sys-root' |
| elif test "$sysroot" = "no"; then |
| if test "x$sysroot" != x; then |
| CXXFLAGS="$CXXFLAGS --sysroot=$sysroot" |
| LDFLAGS="$LDFLAGS --sysroot=$sysroot" |
| AC_CHECK_LIB([dl], [main]) |
| AC_CHECK_LIB([pthread], [main]) |
| # Checks for header files. |
| AC_CHECK_HEADERS([unistd.h]) |
| # Checks for typedefs, structures, and compiler characteristics. |
| # Checks for library functions. |
| AC_CHECK_FUNCS([memset strtol]) |
| AC_CONFIG_FILES([Makefile]) |