add heim_ipc_types.h
[heimdal.git] / cf / krb-version.m4
blobe196d993de206d403b90c936b3afad37cb81913d
1 dnl $Id$
2 dnl
3 dnl
4 dnl output a C header-file with some version strings
5 dnl
7 AC_DEFUN([AC_KRB_VERSION],[
8 cat > include/newversion.h.in <<FOOBAR
9 const char *${PACKAGE_TARNAME}_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
10 const char *${PACKAGE_TARNAME}_version = "$PACKAGE_STRING";
11 FOOBAR
13 if 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
16 else
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