mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 15:19:34 -05:00
Obtain version name from build/version (re-add build/version).
This will facilate version.c generation on non-UNIX systems.
This commit is contained in:
parent
a0d2b3c5a0
commit
fd41e31d46
3 changed files with 560 additions and 547 deletions
1
build/version
Normal file
1
build/version
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
2.0-devel
|
||||||
10
configure.in
10
configure.in
|
|
@ -12,9 +12,15 @@ define([AC_CACHE_LOAD], )dnl
|
||||||
define([AC_CACHE_SAVE], )dnl
|
define([AC_CACHE_SAVE], )dnl
|
||||||
|
|
||||||
dnl Configure.in for OpenLDAP
|
dnl Configure.in for OpenLDAP
|
||||||
AC_INIT(include/ldap.h)dnl
|
AC_INIT(build/version)dnl
|
||||||
AC_CONFIG_AUX_DIR(build)dnl
|
AC_CONFIG_AUX_DIR(build)dnl
|
||||||
AM_INIT_AUTOMAKE(OpenLDAP,[2.0-devel], [no defines])dnl
|
|
||||||
|
OL_VERSION=`cat $ac_aux_dir/version`
|
||||||
|
if test -z "$OL_VERSION"; then
|
||||||
|
AC_MSG_ERROR([could not determine version])
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(OpenLDAP,[$OL_VERSION], [no defines])dnl
|
||||||
AC_SUBST(PACKAGE)
|
AC_SUBST(PACKAGE)
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
AC_DEFINE_UNQUOTED(OPENLDAP_PACKAGE,"$PACKAGE",Package)
|
AC_DEFINE_UNQUOTED(OPENLDAP_PACKAGE,"$PACKAGE",Package)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue