-
Notifications
You must be signed in to change notification settings - Fork 18
/
configure.in.in
65 lines (51 loc) · 1.61 KB
/
configure.in.in
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
## core configure.in.in
## initialize
@YAST2-INIT-COMMON@
AC_SYS_LARGEFILE
@YAST2-INIT-PROGRAM@
yastdocdir=\${datadir}/doc/yastdoc/html
AC_SUBST(yastdocdir)
## special stuff
# libycp needs flex and bison
AM_PROG_LEX
if test -z "$LEX"; then
AC_MSG_ERROR([Install the package flex.])
fi
AC_CHECK_PROGS(YACC, 'bison -y -d -v' byacc, false)
if test "$YACC" = false; then
AC_MSG_ERROR([bison not installed])
fi
# liby2:Y2SerialComponent needs termios.h in glibc-devel
# (not term.h in ncurses-devel)
Y2UTIL_CFLAGS='-I$(top_srcdir)/liby2util-r/src/include'
Y2UTIL_LIBS='$(top_builddir)/liby2util-r/src/liby2util.la'
AC_SUBST(Y2UTIL_CFLAGS)
AC_SUBST(Y2UTIL_LIBS)
# for historic reasons this value is called SUSEVERSION
SUSEVERSION=`echo $VERSION | cut -d . -f 1,2`
AC_SUBST(SUSEVERSION)
AGENT_INCLUDES='dnl
-I$(top_srcdir)/libycp/src/include dnl
-I$(top_srcdir)/liby2/src/include dnl
-I$(top_srcdir)/libscr/src/include dnl
${Y2UTIL_CFLAGS}'
AC_SUBST(AGENT_INCLUDES)
# override AGENT_LIBADD which is AC_SUBSTed in YAST2-CHECKS-PROGRAM
AGENT_LIBADD='dnl
$(top_builddir)/libscr/src/libscr.la dnl
$(top_builddir)/libycp/src/libycp.la dnl
$(top_builddir)/libycp/src/libycpvalues.la dnl
$(top_builddir)/liby2/src/liby2.la dnl
${Y2UTIL_LIBS}'
AC_PROG_CXX
# gnu++0x instead of c++0x so that
# we do not lose gnu extensions like typeof
# FIXME: rename to Y2CORE_CXXFLAGS and change in devtools:y2autoconf
Y2CORE_CFLAGS="-std=gnu++0x"
AC_SUBST(Y2CORE_CFLAGS) dnl included in CXXFLAGS in YAST2-CHECKS-PROGRAM
CREATE_PKGCONFIG=true
## some common checks
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-PROGRAM@
@YAST2-CHECKS-TESTSUITE@
@YAST2-OUTPUT@