125 |
## Libtool specific configuration. ## |
## Libtool specific configuration. ## |
126 |
## ------------------------------- ## |
## ------------------------------- ## |
127 |
|
|
128 |
# The API version is the base version. We must guarantee |
AC_SUBST([aclocaldir], ["\${datadir}/aclocal"]) |
129 |
# compatibility for all releases with the same API version. |
AC_SUBST([pkgdatadir], ["\${datadir}/$PACKAGE"]) |
|
# Our current rule is that: |
|
|
# * All releases, including the prereleases, in an X.Y series |
|
|
# are compatible. So 2.0.1c is compatible with 2.0. |
|
|
# * Prereleases on the trunk are all incompatible -- 2.1b and 2.1c |
|
|
# aren't the same. |
|
|
APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'` |
|
|
AC_SUBST([APIVERSION]) |
|
|
AC_SUBST([aclocaldir], ["\${datadir}/aclocal"]) |
|
|
AC_SUBST([pkgvdatadir], ["\${datadir}/$PACKAGE-$APIVERSION"]) |
|
130 |
|
|
131 |
AC_ARG_ENABLE(ltdl-install, |
AC_ARG_ENABLE(ltdl-install, |
132 |
[AS_HELP_STRING([--disable-ltdl-install], [do not install libltdl])]) |
[AS_HELP_STRING([--disable-ltdl-install], [do not install libltdl])]) |
147 |
AC_SUBST([DIST_MAKEFILE_LIST]) |
AC_SUBST([DIST_MAKEFILE_LIST]) |
148 |
|
|
149 |
|
|
|
# Test for ln. We need use it to install the versioned binaries. |
|
|
AC_MSG_CHECKING([whether ln works]) |
|
|
AC_CACHE_VAL([am_cv_prog_ln], [ |
|
|
rm -f conftest conftest.file |
|
|
: >conftest.file |
|
|
if ln conftest.file conftest 2>/dev/null; then |
|
|
am_cv_prog_ln=ln |
|
|
else |
|
|
am_cv_prog_ln='cp -p' |
|
|
fi |
|
|
rm -f conftest conftest.file]) |
|
|
AC_SUBST([LN], [$am_cv_prog_ln]) |
|
|
result=no |
|
|
test "x$am_cv_prog_ln" = xln && result=yes |
|
|
AC_MSG_RESULT([$result]) |
|
|
|
|
|
|
|
150 |
## ---------------- ## |
## ---------------- ## |
151 |
## compiler checks. ## |
## compiler checks. ## |
152 |
## ---------------- ## |
## ---------------- ## |