]> git.sur5r.net Git - openldap/blobdiff - include/Makefile.in
Use OPENLDAP_PACKAGE instead of _OLV_PKG
[openldap] / include / Makefile.in
index 21cc71ea2cfc3c7e60a4ecfed76c5bfd45488b62..91d8a5574134610aa17298ab2de2f0a95aaecacf 100644 (file)
@@ -1,10 +1,10 @@
 # $OpenLDAP$
-## Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
 ## COPYING RESTRICTIONS APPLY, See COPYRIGHT file
 ##
 ## include Makefile.in for OpenLDAP
 
-all-local: ldap_config.h FORCE
+all-local: ldap_config.h ol_version0.h FORCE
 
 install-local: FORCE
        -$(MKDIR) $(DESTDIR)$(includedir)
@@ -43,10 +43,6 @@ ldap_config.h: $(LDAP_CONFIG) Makefile
                $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
            localstatedir=`cygpath -w $(localstatedir) | \
                $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
-           editor=`cygpath -w $(EDITOR) | \
-               $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
-           sendmail=`cygpath -w $(SENDMAIL) | \
-               $(SED) -e 's/\\\\/\\\\\\\\\\\\\\\\/g'`; \
        else \
            sysconfdir=$(sysconfdir); \
            datadir=$(datadir); \
@@ -54,8 +50,6 @@ ldap_config.h: $(LDAP_CONFIG) Makefile
            sbindir=$(sbindir); \
            libexecdir=$(libexecdir); \
            localstatedir=$(localstatedir); \
-           editor=$(EDITOR); \
-           sendmail=$(SENDMAIL); \
        fi; \
        $(SED) \
                        -e "s;%SYSCONFDIR%;$$sysconfdir;" \
@@ -64,11 +58,12 @@ ldap_config.h: $(LDAP_CONFIG) Makefile
                        -e "s;%SBINDIR%;$$sbindir;" \
                        -e "s;%LIBEXECDIR%;$$libexecdir;" \
                        -e "s;%RUNDIR%;$$localstatedir;" \
-                       -e "s;%EDITOR%;$$editor;" \
-                       -e "s;%SENDMAIL%;$$sendmail;" \
                         $(LDAP_CONFIG) >> $@; \
        $(CHMOD) 444 $@
 
+ol_version0.h: $(top_srcdir)/build/version.h
+       $(CPP) -D_OLV_WHO=\"$$USER@`uname -n`\" $? > $@
+
 all-common:                    all-local
 install-common:                all-common install-local
 clean-common:          clean-local