etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / dist / cf / krb-version.m4
blob415f01b1a4bb601117cf5b50f3cdbaa71a15555f
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