Damjan Marion | 08ff7e0 | 2016-01-20 13:45:36 +0100 | [diff] [blame] | 1 | AC_INIT(vpp-api-test, 1.0) |
Dave Barach | 2126b35 | 2016-02-10 08:42:59 -0500 | [diff] [blame] | 2 | LT_INIT |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 3 | AM_INIT_AUTOMAKE |
Damjan Marion | bbae375 | 2016-07-08 13:57:11 +0200 | [diff] [blame] | 4 | AM_SILENT_RULES([yes]) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 5 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 6 | AC_PROG_CC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 7 | |
| 8 | AC_ARG_WITH(q-plugin-prefix, |
| 9 | AC_HELP_STRING([--with-q-plugin-prefix],[vlib plugin prefix]), |
| 10 | [case $with_q_plugin_prefix in |
| 11 | *) ;; |
| 12 | esac]) |
| 13 | |
| 14 | AC_ARG_WITH(q-platform, |
| 15 | AC_HELP_STRING([--with-q-platform],[Build version for given platform (qnative)]), |
| 16 | [case $with_q_platform in |
| 17 | qnative) ;; |
Damjan Marion | 08ff7e0 | 2016-01-20 13:45:36 +0100 | [diff] [blame] | 18 | vpp) with_q_platform=vpp;; |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 19 | *) with_q_platform=qnative;; |
| 20 | esac]) |
| 21 | |
| 22 | AC_ARG_WITH(dpdk, |
| 23 | AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), |
| 24 | [with_dpdk=1], |
| 25 | [with_dpdk=0]) |
| 26 | |
| 27 | AC_SUBST(Q_PLATFORM_DEFINE,[-DQ_PLATFORM_${with_q_platform}]) |
| 28 | AC_SUBST(Q_PLATFORM_PLUGPATH,[-DQ_PLUGIN_PREFIX=${with_q_plugin_prefix}]) |
| 29 | AC_SUBST(DPDK,[-DDPDK=${with_dpdk}]) |
| 30 | AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") |
| 31 | |
| 32 | AC_OUTPUT([Makefile]) |