File: configure.ac

package info (click to toggle)
yuma123 2.11-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 20,900 kB
  • sloc: ansic: 179,975; cpp: 10,968; python: 5,839; sh: 2,287; makefile: 1,021; xml: 621; exp: 592; perl: 70
file content (115 lines) | stat: -rw-r--r-- 3,352 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
AC_INIT([yuma123], [2.11], [vladimir@transpacket.com])

AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign])
LT_INIT([disable-static])

AC_PROG_CC
AC_PROG_CXX
AM_PROG_AS
AC_PROG_LIBTOOL
AC_SEARCH_LIBS([dlopen], [dl dld], [], [
  AC_MSG_ERROR([unable to find the dlopen() function])
])

netconfmoduledir="$libdir/yuma"
AC_SUBST(netconfmoduledir)

yuma_datarootdir=${datarootdir}/yuma
AC_SUBST(yuma_datarootdir)

yangdir=${datarootdir}/yuma/modules
AC_SUBST(yangdir)

ietf_yangdir=${datarootdir}/yuma/modules/ietf
AC_SUBST(ietf_yangdir)

nmda_modules_ietf_yangdir=${datarootdir}/yuma/nmda-modules/ietf
AC_SUBST(nmda_modules_ietf_yangdir)

ietf_draft_yangdir=${datarootdir}/yuma/modules/ietf-draft
AC_SUBST(ietf_draft_yangdir)

ietf_patched_yangdir=${datarootdir}/yuma/modules/ietf-patched
AC_SUBST(ietf_patched_yangdir)

ietf_derived_yangdir=${datarootdir}/yuma/modules/ietf-derived
AC_SUBST(ietf_derived_yangdir)

ietf_expired_yangdir=${datarootdir}/yuma/modules/ietf-expired
AC_SUBST(ietf_expired_yangdir)

netconfcentral_yangdir=${datarootdir}/yuma/modules/netconfcentral
AC_SUBST(netconfcentral_yangdir)

yuma123_yangdir=${datarootdir}/yuma/modules/yuma123
AC_SUBST(yuma123_yangdir)

examples_yangdir="$prefix/share/yuma/modules/examples"
AC_SUBST(examples_yangdir)

ncx_netconf_includedir=${includedir}/yuma/ncx
AC_SUBST(ncx_netconf_includedir)

agt_netconf_includedir=${includedir}/yuma/agt
AC_SUBST(agt_netconf_includedir)

mgr_netconf_includedir=${includedir}/yuma/mgr
AC_SUBST(mgr_netconf_includedir)

yangrpc_netconf_includedir=${includedir}/yuma/yangrpc
AC_SUBST(yangrpc_netconf_includedir)

platform_netconf_includedir=${includedir}/yuma/platform
AC_SUBST(platform_netconf_includedir)

apachemoduledir="$libdir/apache2/modules"
AC_SUBST(apachemoduledir)

CFLAGS="$CFLAGS -g -fPIC -DDEBUG=1 -DLINUX=1 -DGCC=1 -DRELEASE=1 -DENABLE_DIRECT_MUST_AUGMENT_EX=1 -DHAS_FLOAT=1"
AC_SUBST(CFLAGS)

#libreadline<default> or libtecla
AC_ARG_WITH(readline,
	[AS_HELP_STRING([--with-readline],
        [Use readline instead of tecla for interctive commandline yangcli input])],
	[READLINE="1"],[])
#	[AC_MSG_ERROR([--with-readline option is mandatory])])
AM_CONDITIONAL([WITH_READLINE], [test "x$READLINE" = x1])

AC_ARG_WITH(tecla,
	[AS_HELP_STRING([--with-tecla],
        [Use tecla instead of readline for interctive commandline yangcli input])],
	[TECLA="1"],[])
AM_CONDITIONAL([WITH_TECLA], [test "x$TECLA" = x1])
AM_CONDITIONAL([STANDALONE], [test x$standalone = xtrue])

AM_PATH_XML2

AC_CONFIG_FILES([
        Makefile \
        libtecla/Makefile
        netconf/src/netconfd/Makefile
        netconf/src/agt/Makefile
        netconf/modules/Makefile
        netconf/src/mgr/Makefile
        netconf/src/ncx/Makefile
        netconf/src/yangcli/Makefile
        netconf/src/subsys/Makefile
        libtoaster/src/Makefile
        example-modules/helloworld/Makefile
        example-modules/ietf-interfaces/Makefile
        example-modules/ietf-system/Makefile
        example-modules/ietf-network-bridge/Makefile
        netconf/src/yangrpc/Makefile
        netconf/src/yangrpc/example/Makefile
        netconf/src/yangdump/Makefile
        netconf/man/Makefile
])
# Test framework
#        netconf/test/Makefile
#        netconf/test/sys-test/Makefile
#        netconf/test/integ-tests/Makefile
#        netconf/test/sys-test-python/Makefile

AC_OUTPUT