summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-05-29 20:26:25 +0200
committerMartin Nagy <mnagy@redhat.com>2009-06-02 12:00:49 +0200
commit935758810e131ade1e51e1d765bd908306a4622d (patch)
treee0808515cb775a6166b09fb2e63027ead2b16641
parent8798ba699e105943896facb84383a2b4aecb41e5 (diff)
downloadldap_driver-935758810e131ade1e51e1d765bd908306a4622d.tar.gz
ldap_driver-935758810e131ade1e51e1d765bd908306a4622d.tar.xz
ldap_driver-935758810e131ade1e51e1d765bd908306a4622d.zip
Fix the docdir definition for old autoconf
Using the test [ -n "$docdir" ] was actually the opposite of what we really wanted. Also, autoconf 2.59 doesn't know datarootdir, but only datadir, so change that as well.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b91444f..9c1fbd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,7 @@ int main(void) {
)
# Older autoconf (2.59, for example) doesn't define docdir
-[[ -n "$docdir" ]] && docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+[[ ! -n "$docdir" ]] && docdir='${datadir}/doc/${PACKAGE_TARNAME}'
AC_SUBST([docdir])
AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])