dpdk: Add support for Mellanox ConnectX-4 devices
[vpp.git] / vppinfra / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(libvppinfra,1.0,)
3 AC_CONFIG_AUX_DIR(config)
4 AC_CONFIG_HEADERS(config/config.h)
5 AC_CANONICAL_BUILD
6 AC_CANONICAL_HOST
7 AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2])
8 AM_SILENT_RULES([yes])
9
10 # Checks for programs.
11 AC_PROG_CC
12 AM_PROG_AS
13 AM_PROG_LIBTOOL
14
15 ######################################################################
16
17 dnl ------------
18 dnl Check CFLAGS, CC
19 dnl ------------
20 AC_ARG_WITH(cc,
21             AC_HELP_STRING([--with-cc],[Set CC for use as C compiler.]),
22             [CC="$with_cc"])
23
24 AC_ARG_WITH(cflags,
25             AC_HELP_STRING([--with-cflags],[Set CFLAGS for use by C compiler.]),
26             [CFLAGS="$with_cflags"])
27
28 AC_ARG_WITH(ldflags,
29             AC_HELP_STRING([--with-ldflags],[Set LDFLAGS for linking.]),
30             [LDFLAGS="$with_ldflags"])
31
32 ######################################################################
33
34 AC_ARG_ENABLE(tests,
35               AC_HELP_STRING([--enable-tests],[Enable unit tests]),
36               [enable_tests=1],
37               [enable_tests=0])
38
39 AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
40
41 AC_ARG_WITH(unix,
42             AC_HELP_STRING([--with-unix],[Compile unix version of clib]),
43             [],
44             [case $host_os in
45               darwin* | linux*) with_unix=yes;;
46               *) with_unix=no;;
47               esac])
48
49 AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes")
50
51 AC_CONFIG_FILES([Makefile])
52 AC_OUTPUT