forked from yast/yast-devtools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.in.in
67 lines (53 loc) · 1.4 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
66
67
## initialize
@YAST2-INIT-COMMON@
@YAST2-INIT-PROGRAM@
@YAST2-INIT-YCP@
YAST2DEVTOOLS=${ydatadir}/devtools
AC_SUBST(YAST2DEVTOOLS)
YCPDOC=${srcdir}/ycpdoc/src/ycpdoc
AC_SUBST(YCPDOC)
CREATE_PKGCONFIG=noarch
## some common checks
@YAST2-CHECKS-COMMON@
# don't take all the garbage of YaST2-CHECKS-PROGRAM
# this is anyway necessary only because autoreconf
# gets confused by Makefile.am in skeletons
AC_PROG_LIBTOOL
AC_PROG_CXX
# perl checks
AC_CHECK_PROG(PERL, perl, perl, no)
AC_DEFUN([CHECK_PERL_MODULE],[
AC_MSG_CHECKING([for perl module $1])
TMPFILE=conftest.pl
rm -f $TMPFILE
cat >$TMPFILE <<'EOT'
use $1;
EOT
$PERL $TMPFILE 2> /dev/null
if test $? -eq 0 ; then
$2="true"
AC_MSG_RESULT(found)
else
$2="false"
AC_MSG_RESULT(not found)
fi
rm -f $TMPFILE
])
AX_CHECK_DOCBOOK
## this is for y2log_ana
pkg_modules="QtCore, QtGui, QtXml"
PKG_CHECK_MODULES(Qt4, [$pkg_modules],[qt=true
MOC=`$PKG_CONFIG --variable=moc_location QtCore`],
[AC_MSG_RESULT(not found)])
AM_CONDITIONAL(CHECK_QT4, test "$qt" = "true")
AC_SUBST(MOC)
## needed for documentation
CHECK_PERL_MODULE(XML::Writer, XMLWRITER)
if test "$XMLWRITER" = "false"; then
AC_MSG_ERROR([perl xml writer not installed])
exit
fi
## and generate the output
AC_CONFIG_FILES([
devtools/bin/version], [chmod +x devtools/bin/version])
@YAST2-OUTPUT@