blob: dbd77f0b7430a7d74a1c5b9b6b4b6f9283824da5 [file] [log] [blame]
Girish Gowdrae538dfd2019-09-30 11:07:30 +05301# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.69])
5AC_INIT([openolt], [1.4.0], [voltha-discuss@opencord.org])
6AC_CONFIG_SRCDIR([config.h.in])
7AC_CONFIG_HEADERS([config.h])
8
9AC_ARG_WITH(sysroot,
10 [AS_HELP_STRING([--with-sysroot[=DIR]], [search for usr/include, usr/lib, usr/lib64 etal within DIR])],
11 [
12 sysroot=$withval
13
14 if test "$sysroot" = "yes"; then
15 sysroot='${exec_prefix}/${target_alias}/sys-root'
16 elif test "$sysroot" = "no"; then
17 sysroot=
18 fi
19
20 if test "x$sysroot" != x; then
21 CXXFLAGS="$CXXFLAGS --sysroot=$sysroot"
22 LDFLAGS="$LDFLAGS --sysroot=$sysroot"
23 fi
24 ], [])
25
26# Checks for programs.
27AC_PROG_CXX
28AC_PROG_CC
29AC_PROG_AWK
30AC_PROG_SED
31AC_PROG_LN_S
32AC_PROG_MAKE_SET
33
34# Checks for libraries.
35AC_CHECK_LIB([dl], [main])
36AC_CHECK_LIB([pthread], [main])
37
38# Checks for header files.
39AC_CHECK_HEADERS([unistd.h])
40
41# Checks for typedefs, structures, and compiler characteristics.
42AC_CHECK_HEADER_STDBOOL
43AC_C_INLINE
44AC_TYPE_UINT16_T
45AC_TYPE_UINT32_T
46AC_TYPE_UINT8_T
47
48# Checks for library functions.
49AC_FUNC_MALLOC
50AC_CHECK_FUNCS([memset strtol])
51
52AC_CONFIG_FILES([Makefile])
53AC_OUTPUT