forked from yast/yast-installation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in.in
43 lines (36 loc) · 1.05 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
## configure.in.in for yast2-installation
##
## 'y2tool y2autoconf' should be called
## from Makefile.cvs to get configure.in
## Initialize
@YAST2-INIT-COMMON@
@YAST2-INIT-YCP@
## some common checks
@YAST2-CHECKS-COMMON@
@YAST2-CHECKS-YCP@
AX_CHECK_DOCBOOK
# If we change the default here instead of in Makefile.am
# then it can be overriden at configure time
if test "${sysconfdir}" = '${prefix}/etc'; then
sysconfdir=/etc
fi
AC_MSG_CHECKING([fvwm directory])
coresysconfdir=`pkg-config --print-errors --variable=sysconfdir yast2-core`
if test -z "$coresysconfdir"; then
AC_MSG_ERROR([yast2-core.rpm does not specify sysconfdir, get a newer one])
fi
#argh hack
if test "$coresysconfdir" = /usr/etc; then
coresysconfdir=/etc
fi
XVersion=$coresysconfdir/YaST2/XVersion
Xsharedir=`. $XVersion; echo $Xsharedir`
if test -z "$Xsharedir"; then
AC_MSG_ERROR([$XVersion not found, get a newer yast2.rpm])
fi
# make overridable for prefix builds
: ${fvwmdir=$Xsharedir/fvwm}
AC_MSG_RESULT([$fvwmdir])
AC_SUBST(fvwmdir)
## and generate the output...
@YAST2-OUTPUT@