source: heimdal/trunk/cf/krb-version.m4@ 4

Last change on this file since 4 was 1, checked in by Paul Smedley, 10 years ago

Initial commit of Heimdal 1.5.3

File size: 789 bytes
Line 
1dnl $Id$
2dnl
3dnl
4dnl output a C header-file with some version strings
5dnl
6
7AC_DEFUN([AC_KRB_VERSION],[
8cat > include/newversion.h.in <<FOOBAR
9const char *${PACKAGE_TARNAME}_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
10const char *${PACKAGE_TARNAME}_version = "$PACKAGE_STRING";
11FOOBAR
12
13if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
14 echo "include/version.h is unchanged"
15 rm -f include/newversion.h.in
16else
17 echo "creating include/version.h"
18 User=${USER-${LOGNAME}}
19 Host=`(hostname || uname -n) 2>/dev/null | sed 1q`
20 Date=`date`
21 mv -f include/newversion.h.in include/version.h.in
22 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
23fi
24])
Note: See TracBrowser for help on using the repository browser.