Initial commit of vpp code.
[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
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_WITH(unix,
35             AC_HELP_STRING([--with-unix],[Compile unix version of clib]),
36             [],
37             [case $host_os in
38               darwin* | linux*) with_unix=yes;;
39               *) with_unix=no;;
40               esac])
41
42 AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes")
43
44
45 ## Enable 64-bit vector lengths
46 AC_ARG_WITH(vec64,
47             AC_HELP_STRING([--with-vec64],[Enable 64-bit vector lengths]),
48             [with_vec64=1],
49             [with_vec64=0])
50
51 AC_SUBST(VEC64,[-DCLIB_VEC64=${with_vec64}])
52
53 AC_CONFIG_FILES([Makefile])
54 AC_OUTPUT