1dnl Process this file with autoconf to produce a configure script. 2AC_REVISION($Revision: 1.5 $) 3AC_PREREQ(2.62) 4test -z "$CFLAGS" && CFLAGS="-g" 5AC_INIT([Heimdal],[7.8.0],[https://github.com/heimdal/heimdal/issues]) 6AC_CONFIG_SRCDIR([kuser/kinit.c]) 7AC_CONFIG_HEADERS(include/config.h) 8AC_CONFIG_MACRO_DIR([cf]) 9 10AM_INIT_AUTOMAKE([foreign 1.11]) 11AM_MAINTAINER_MODE 12 13LT_PREREQ([2.2]) 14LT_INIT([shared static win32-dll]) 15 16 17dnl Checks for programs. 18AC_PROG_CC 19AM_PROG_CC_C_O 20AC_PROG_CPP 21AM_PATH_PYTHON 22AC_CHECK_PROG(CLANG_FORMAT, clang-format, [clang-format], [no]) 23 24m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 25 26AC_PREFIX_DEFAULT(/usr/heimdal) 27 28test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 29test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 30 31AC_CANONICAL_HOST 32CANONICAL_HOST=$host 33AC_SUBST(CANONICAL_HOST) 34 35rk_SYS_LARGEFILE 36 37rk_AIX 38rk_IRIX 39rk_SUNOS 40 41dnl 42dnl this is needed to run the configure tests against glibc 43dnl 44AC_DEFINE([_GNU_SOURCE], 1, 45 [Define to enable extensions on glibc-based systems such as Linux.]) 46 47AC_OBJEXT 48AC_EXEEXT 49 50dnl 51dnl this is needed when der-protos.h or der-private.h has to be generated 52dnl 53if ! test -f "$srcdir/lib/asn1/der-protos.h" || 54 ! test -f "$srcdir/lib/asn1/der-private.h"; then 55 AC_KRB_PROG_PERL 56 AC_KRB_PERL_MOD(Getopt::Std) 57 AC_KRB_PERL_MOD(File::Compare) 58 AC_KRB_PERL_MOD(JSON) 59fi 60 61dnl AC_KRB_PROG_YACC 62AC_PROG_YACC 63AM_PROG_LEX 64dnl AC_PROG_RANLIB 65AC_PROG_AWK 66AC_KRB_PROG_LN_S 67 68AC_MIPS_ABI 69CC="$CC $abi" 70libdir="$libdir$abilibdirext" 71 72AC_C___ATTRIBUTE__ 73 74AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes") 75rk_VERSIONSCRIPT 76 77dnl 78dnl Helper bits for cross compiling 79dnl 80 81 82 83AM_CONDITIONAL(CROSS_COMPILE, test "${cross_compiling}" = yes) 84 85AC_ARG_WITH(cross-tools, 86 AS_HELP_STRING([--with-cross-tools=dir], [use cross tools in dir]), 87 [if test "$withval" = "yes"; then 88 AC_MSG_ERROR([Need path to cross tools]) 89 fi 90 with_cross_tools="${with_cross_tools}/" 91 ]) 92 93if test "${cross_compiling}" != yes ; then 94 95 ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" 96 SLC="\$(top_builddir)/lib/sl/slc" 97 98 ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" 99 SLC_DEP="\$(SLC)" 100else 101 ASN1_COMPILE="${with_cross_tools}asn1_compile" 102 SLC="${with_cross_tools}slc" 103 104 ASN1_COMPILE_DEP= 105 SLC_DEP= 106 107 ac_cv_prog_COMPILE_ET=${with_cross_tools}compile_et 108 109fi 110 111AC_SUBST([ASN1_COMPILE]) 112AC_SUBST([ASN1_COMPILE_DEP]) 113AC_SUBST([SLC]) 114AC_SUBST([SLC_DEP]) 115 116dnl --- 117 118AC_DEFINE(HEIM_WEAK_CRYPTO, 1, [Define if you want support for weak crypto]) 119 120rk_TEST_PACKAGE(openldap, 121[#include <lber.h> 122#include <ldap.h>], 123[-lldap -llber],,,OPENLDAP) 124 125AC_ARG_ENABLE(hdb-openldap-module, 126 AS_HELP_STRING([--enable-hdb-openldap-module], 127 [if you want support to build openldap hdb as shared object])) 128if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 129 AC_DEFINE(OPENLDAP_MODULE, 1, [Define if you want support for hdb ldap module]) 130fi 131AM_CONDITIONAL(OPENLDAP_MODULE, test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes) 132 133dnl 134dnl Optional modules, pk-init, digest, kx509 135dnl 136 137AC_ARG_ENABLE(pk-init, 138 AS_HELP_STRING([--disable-pk-init], 139 [if you want disable to PK-INIT support])) 140if test "$enable_pk_init" != no ;then 141 AC_DEFINE([PKINIT], 1, [Define to enable PKINIT.]) 142fi 143AM_CONDITIONAL(PKINIT, test "$enable_pk_init" != no) 144 145AC_ARG_ENABLE(digest, 146 AS_HELP_STRING([--disable-digest], 147 [if you want disable to DIGEST support])) 148if test "$enable_digest" != no ;then 149 AC_DEFINE([DIGEST], 1, [Define to enable DIGEST.]) 150fi 151 152AC_ARG_ENABLE(kx509, 153 AS_HELP_STRING([--disable-kx509], 154 [if you want disable to kx509 support])) 155if test "$enable_kx509" != no ;then 156 AC_DEFINE([KX509], 1, [Define to enable kx509.]) 157fi 158 159dnl Need to test if pkg-config exists 160PKG_PROG_PKG_CONFIG 161 162dnl libcap-ng 163AC_ARG_WITH([capng], 164 AC_HELP_STRING([--with-capng], [use libcap-ng to drop KDC privileges @<:@default=check@:>@]), 165 [], 166 [with_capng=check]) 167if test "$with_capng" != "no"; then 168 PKG_CHECK_MODULES([CAPNG], [libcap-ng >= 0.4.0], 169 [with_capng=yes],[with_capng=no]) 170fi 171if test "$with_capng" = "yes"; then 172 AC_DEFINE_UNQUOTED([HAVE_CAPNG], 1, [whether capng is available for privilege reduction]) 173fi 174AM_CONDITIONAL([HAVE_CAPNG], [test "$with_capng" != "no"]) 175AC_SUBST([CAPNG_CFLAGS]) 176AC_SUBST([CAPNG_LIBS]) 177 178dnl Check for sqlite 179rk_TEST_PACKAGE(sqlite3, 180[#include <sqlite3.h> 181#ifndef SQLITE_OPEN_CREATE 182#error "old version" 183#endif], 184[-lsqlite3],,,SQLITE3) 185 186if test "X$with_sqlite3" != Xyes ; then 187 INCLUDE_sqlite3="-I\$(top_srcdir)/lib/sqlite" 188 LIB_sqlite3="\$(top_builddir)/lib/sqlite/libheimsqlite.la" 189fi 190AM_CONDITIONAL(SQLITE3, test "X$with_sqlite3" = Xyes) 191 192AC_DEFINE(HAVE_SQLITE3, 1, [Define if you want support for sqlite in Heimdal.]) 193 194AC_ARG_ENABLE(sqlite-cache, 195 AS_HELP_STRING([--disable-sqlite-cache],[if you want support for cache in sqlite])) 196if test "$enable_sqlite_cache" != no; then 197 AC_DEFINE(HAVE_SCC, 1, [Define if you want support for cache in sqlite.]) 198fi 199AM_CONDITIONAL(have_scc, test "$enable_sqlite_cache" != no) 200 201 202dnl check for libintl 203rk_TEST_PACKAGE(libintl, 204[#include <libintl.h>], 205[-lintl],,,LIBINTL) 206 207dnl path where the hdb directory is stored 208AC_ARG_WITH([hdbdir], 209 [AS_HELP_STRING([--with-hdbdir],[Default location for KDC database @<:@default=/var/heimdal@:>@])], 210 [], 211 [with_hdbdir=/var/heimdal]) 212DIR_hdbdir="$with_hdbdir" 213AC_SUBST([DIR_hdbdir]) 214 215 216AM_CONDITIONAL(KRB5, true) 217AM_CONDITIONAL(do_roken_rename, true) 218 219AC_DEFINE(SUPPORT_INETD, 1, [Enable use of inetd style startup.])dnl 220 221 222AC_DEFINE(KRB5, 1, [Enable Kerberos 5 support in applications.])dnl 223AC_SUBST(LIB_kdb)dnl 224 225KRB_CRYPTO 226 227KRB_PTHREADS 228 229AC_ARG_ENABLE(dce, 230 AS_HELP_STRING([--enable-dce],[if you want support for DCE/DFS PAG's])) 231if test "$enable_dce" = yes; then 232 AC_DEFINE(DCE, 1, [Define if you want support for DCE/DFS PAG's.]) 233fi 234AM_CONDITIONAL(DCE, test "$enable_dce" = yes) 235 236## XXX quite horrible: 237if test -f /etc/ibmcxx.cfg; then 238 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[[^=]]*=\(.*\)/\1/;s/,/ /gp;}'` 239 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[[^=]]*=\(.*\)/\1/;s/-q[^,]*//;s/,/ /gp;}'` 240 dpagaix_ldflags= 241else 242 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 243 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 244 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 245fi 246AC_SUBST(dpagaix_cflags) 247AC_SUBST(dpagaix_ldadd) 248AC_SUBST(dpagaix_ldflags) 249 250AC_ARG_ENABLE([afs-support], 251 AS_HELP_STRING([--disable-afs-support],[if you don't want support for AFS])) 252if test "$enable_afs_support" = no; then 253 AC_DEFINE(NO_AFS, 1, [Define if you don't wan't support for AFS.]) 254 NO_AFS="1" 255fi 256AC_SUBST(NO_AFS)dnl 257AM_CONDITIONAL(NO_AFS, test "$enable_afs_support" = no) 258 259rk_DB 260 261dnl AC_ROKEN(10,[/usr/heimdal /usr/athena],[lib/roken],[$(top_builddir)/lib/roken/libroken.la],[-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken]) 262 263rk_ROKEN(lib/roken) 264LIBADD_roken="$LIB_roken" 265AC_SUBST(LIBADD_roken)dnl 266LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 267 268rk_OTP 269 270rk_LIBDISPATCH 271 272AC_CHECK_OSFC2 273 274AC_ARG_ENABLE(mmap, 275 AS_HELP_STRING([--disable-mmap],[disable use of mmap])) 276if test "$enable_mmap" = "no"; then 277 AC_DEFINE(NO_MMAP, 1, [Define if you don't want to use mmap.]) 278fi 279 280AC_ARG_ENABLE(afs-string-to-key, 281 AS_HELP_STRING([--disable-afs-string-to-key], 282 [disable use of weak AFS string-to-key functions]), 283 [], [enable_afs_string_to_key=yes]) 284 285if test "$enable_afs_string_to_key" = "yes"; then 286 AC_DEFINE(ENABLE_AFS_STRING_TO_KEY, 1, [Define if want to use the weak AFS string to key functions.]) 287 ENABLE_AFS_STRING_TO_KEY=1 288fi 289AC_SUBST(ENABLE_AFS_STRING_TO_KEY)dnl 290 291 292rk_CHECK_MAN 293 294AC_CHECK_HEADERS([\ 295 readline/readline.h \ 296 readline.h \ 297 editline/readline.h \ 298]) 299 300rk_TEST_PACKAGE(readline, 301[#include <stdio.h> 302#if defined(HAVE_READLINE_READLINE_H) 303#include <readline/readline.h> 304#elif defined(HAVE_READLINE_H) 305#include <readline.h> 306#endif 307],-lreadline,,, READLINE,, [readline.h readline/readline.h]) 308 309rk_TEST_PACKAGE(libedit, 310[#include <stdio.h> 311#if defined(HAVE_READLINE_READLINE_H) 312#include <readline/readline.h> 313#elif defined(HAVE_READLINE_H) 314#include <readline.h> 315#elif defined(HAVE_EDITLINE_READLINE_H) 316#include <editline/readline.h> 317#endif 318],-ledit,,, READLINE,, [readline.h readline/readline.h editline/readline.h]) 319 320AC_CONFIG_SUBDIRS([lib/libedit]) 321 322KRB_C_BIGENDIAN 323AC_C_INLINE 324 325dnl AM_C_PROTOTYPES 326 327dnl Checks for typedefs, structures, and compiler characteristics. 328AC_C_CONST 329AC_TYPE_OFF_T 330AC_CHECK_TYPE_EXTRA(mode_t, unsigned short, []) 331AC_CHECK_TYPE_EXTRA(sig_atomic_t, int, [#include <signal.h>]) 332AC_HAVE_TYPE([long long]) 333AC_HEADER_TIME 334AC_STRUCT_TM 335 336dnl Checks for header files. 337AC_HEADER_STDC 338 339AC_CHECK_HEADERS([\ 340 CommonCrypto/CommonDigest.h \ 341 CommonCrypto/CommonCryptor.h \ 342 arpa/telnet.h \ 343 bind/bitypes.h \ 344 bsdsetjmp.h \ 345 curses.h \ 346 dlfcn.h \ 347 execinfo.h \ 348 fnmatch.h \ 349 inttypes.h \ 350 io.h \ 351 libutil.h \ 352 limits.h \ 353 maillock.h \ 354 netgroup.h \ 355 netinet/in6_machtypes.h \ 356 netinet/tcp.h \ 357 pthread.h \ 358 pty.h \ 359 sac.h \ 360 sgtty.h \ 361 siad.h \ 362 signal.h \ 363 strings.h \ 364 stropts.h \ 365 sys/bitypes.h \ 366 sys/category.h \ 367 sys/file.h \ 368 sys/filio.h \ 369 sys/ioccom.h \ 370 sys/mman.h \ 371 sys/param.h \ 372 sys/pty.h \ 373 sys/ptyio.h \ 374 sys/select.h \ 375 sys/socket.h \ 376 sys/str_tty.h \ 377 sys/stream.h \ 378 sys/stropts.h \ 379 sys/syscall.h \ 380 sys/termio.h \ 381 sys/timeb.h \ 382 sys/times.h \ 383 sys/types.h \ 384 sys/un.h \ 385 locale.h \ 386 termcap.h \ 387 termio.h \ 388 termios.h \ 389 time.h \ 390 tmpdir.h \ 391 udb.h \ 392 util.h \ 393]) 394 395dnl On Solaris 8 there's a compilation warning for term.h because 396dnl it doesn't define `bool'. 397AC_CHECK_HEADERS(term.h, , , -) 398 399dnl aix have asl.h (A/IX screen library) that we don't want 400AC_CHECK_HEADERS(asl.h, , , [ 401#include <asl.h> 402#ifndef ASL_STRING_EMERG 403#error ASL_STRING_EMERG missing 404#endif]) 405 406AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT 407#if HAVE_SYS_SOCKET_H 408#include <sys/socket.h> 409#endif]) 410 411AC_CHECK_HEADERS(sys/ptyvar.h, , , [AC_INCLUDES_DEFAULT 412#if HAVE_SYS_TTY_H 413#include <sys/tty.h> 414#endif]) 415 416AC_CHECK_HEADERS(sys/strtty.h, , , [AC_INCLUDES_DEFAULT 417#if HAVE_TERMIOS_H 418#include <termios.h> 419#endif 420#if HAVE_SYS_STREAM_H 421#include <sys/stream.h> 422#endif]) 423 424AC_CHECK_HEADERS(sys/ucred.h, , , [AC_INCLUDES_DEFAULT 425#if HAVE_SYS_TYPES_H 426#include <sys/types.h> 427#endif 428#if HAVE_SYS_PARAM_H 429#include <sys/param.h> 430#endif]) 431 432AC_CHECK_HEADERS(security/pam_modules.h, , , [AC_INCLUDES_DEFAULT 433#include <security/pam_appl.h> 434]) 435 436dnl export symbols 437rk_WIN32_EXPORT(BUILD_KRB5_LIB, KRB5_LIB) 438rk_WIN32_EXPORT(BUILD_ROKEN_LIB, ROKEN_LIB) 439rk_WIN32_EXPORT(BUILD_GSSAPI_LIB, GSSAPI_LIB) 440 441dnl Checks for libraries. 442 443AC_FIND_FUNC_NO_LIBS(logwtmp, util,[ 444#ifdef HAVE_UTIL_H 445#include <util.h> 446#endif 447],[0,0,0]) 448AC_FIND_FUNC_NO_LIBS(logout, util,[ 449#ifdef HAVE_UTIL_H 450#include <util.h> 451#endif 452],[0]) 453AC_FIND_FUNC_NO_LIBS(openpty, util,[ 454#ifdef HAVE_UTIL_H 455#include <util.h> 456#endif 457],[0,0,0,0,0]) 458 459AC_FIND_FUNC_NO_LIBS(tgetent, termcap ncurses curses,[ 460#ifdef HAVE_TERMCAP_H 461#include <termcap.h> 462#endif 463#ifdef HAVE_CURSES_H 464#include <curses.h> 465#endif 466],[0,0]) 467 468dnl Checks for library functions. 469 470AC_CHECK_FUNCS([ \ 471 _getpty \ 472 _scrsize \ 473 arc4random \ 474 backtrace \ 475 fcntl \ 476 fork \ 477 getpeereid \ 478 getpeerucred \ 479 grantpt \ 480 kill \ 481 mktime \ 482 ptsname \ 483 rand \ 484 revoke \ 485 select \ 486 setitimer \ 487 setpcred \ 488 setpgid \ 489 setproctitle \ 490 setregid \ 491 setresgid \ 492 setresuid \ 493 setreuid \ 494 setsid \ 495 setutent \ 496 sigaction \ 497 strstr \ 498 ttyname \ 499 ttyslot \ 500 umask \ 501 unlockpt \ 502 vhangup \ 503 waitpid \ 504 yp_get_default_domain \ 505]) 506 507AC_MSG_CHECKING([checking for __sync_add_and_fetch]) 508AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>]], 509 [[unsigned int foo, bar; bar = __sync_add_and_fetch(&foo, 1);]])], 510 [ac_rk_have___sync_add_and_fetch=yes], [ac_rk_have___sync_add_and_fetch=no]) 511if test "$ac_rk_have___sync_add_and_fetch" = "yes" ; then 512 AC_DEFINE_UNQUOTED(HAVE___SYNC_ADD_AND_FETCH, 1, [have __sync_add_and_fetch]) 513fi 514AC_MSG_RESULT($ac_rk_have___sync_add_and_fetch) 515 516AC_FUNC_MMAP 517 518KRB_CAPABILITIES 519rk_DLADDR 520 521AC_CHECK_GETPWNAM_R_POSIX 522AC_CHECK_GETPWUID_R_POSIX 523 524dnl detect doors on solaris 525if test "$enable_pthread_support" != no; then 526 saved_LIBS="$LIBS" 527 LIBS="$LIBS $PTHREADS_LIBS" 528 AC_FIND_FUNC_NO_LIBS(door_create, door) 529 LIBS="$saved_LIBS" 530fi 531 532AC_ARG_ENABLE(kcm, 533 AS_HELP_STRING([--enable-kcm],[enable Kerberos Credentials Manager]), 534,[enable_kcm=yes]) 535 536if test "$enable_kcm" = yes ; then 537 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 538 enable_kcm=no 539 fi 540fi 541if test "$enable_kcm" = yes; then 542 AC_DEFINE(HAVE_KCM, 1, 543 [Define if you want to use the Kerberos Credentials Manager.]) 544fi 545AM_CONDITIONAL(KCM, test "$enable_kcm" = yes) 546 547 548 549dnl Cray stuff 550AC_CHECK_FUNCS(getudbnam setlim) 551 552dnl AC_KRB_FUNC_GETCWD_BROKEN 553 554AC_CHECK_TYPES([int8_t, int16_t, int32_t, int64_t, 555 u_int8_t, u_int16_t, u_int32_t, u_int64_t, 556 uint8_t, uint16_t, uint32_t, uint64_t],,,[ 557#ifdef HAVE_INTTYPES_H 558#include <inttypes.h> 559#endif 560#ifdef HAVE_SYS_TYPES_H 561#include <sys/types.h> 562#endif 563#ifdef HAVE_SYS_BITYPES_H 564#include <sys/bitypes.h> 565#endif 566#ifdef HAVE_BIND_BITYPES_H 567#include <bind/bitypes.h> 568#endif 569#ifdef HAVE_NETINET_IN6_MACHTYPES_H 570#include <netinet/in6_machtypes.h> 571#endif 572]) 573 574rk_FRAMEWORK_SECURITY 575 576KRB_READLINE 577 578rk_TELNET 579 580dnl Some operating systems already have com_err and compile_et 581CHECK_COMPILE_ET 582 583rk_AUTH_MODULES([sia afskauthlib]) 584 585rk_DESTDIRS 586 587rk_WFLAGS([-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs]) 588 589 590AH_BOTTOM([#ifdef __APPLE__ 591#include <AvailabilityMacros.h> 592#endif]) 593 594AH_BOTTOM([#ifdef ROKEN_RENAME 595#include "roken_rename.h" 596#endif]) 597 598AC_ARG_ENABLE(heimdal-documentation, 599 AS_HELP_STRING([--disable-heimdal-documentation], 600 [if you want disable to heimdal documentation])) 601AM_CONDITIONAL(HEIMDAL_DOCUMENTATION, test "$enable_heimdal_documentation" != no) 602 603AC_CONFIG_FILES(Makefile \ 604 etc/Makefile \ 605 include/Makefile \ 606 include/gssapi/Makefile \ 607 include/hcrypto/Makefile \ 608 include/kadm5/Makefile \ 609 lib/Makefile \ 610 lib/base/Makefile \ 611 lib/asn1/Makefile \ 612 lib/com_err/Makefile \ 613 lib/hcrypto/Makefile \ 614 lib/hx509/Makefile \ 615 lib/gssapi/Makefile \ 616 lib/ntlm/Makefile \ 617 lib/hdb/Makefile \ 618 lib/ipc/Makefile \ 619 lib/kadm5/Makefile \ 620 lib/kafs/Makefile \ 621 lib/kdfs/Makefile \ 622 lib/krb5/Makefile \ 623 lib/otp/Makefile \ 624 lib/roken/Makefile \ 625 lib/sl/Makefile \ 626 lib/sqlite/Makefile \ 627 lib/vers/Makefile \ 628 lib/wind/Makefile \ 629 po/Makefile \ 630 kuser/Makefile \ 631 kpasswd/Makefile \ 632 kadmin/Makefile \ 633 admin/Makefile \ 634 kcm/Makefile \ 635 kdc/Makefile \ 636 appl/Makefile \ 637 appl/afsutil/Makefile \ 638 appl/dbutils/Makefile \ 639 appl/gssmask/Makefile \ 640 appl/otp/Makefile \ 641 appl/su/Makefile \ 642 appl/test/Makefile \ 643 appl/kf/Makefile \ 644 appl/dceutils/Makefile \ 645 tests/Makefile \ 646 tests/bin/Makefile \ 647 tests/can/Makefile \ 648 tests/db/Makefile \ 649 tests/kdc/Makefile \ 650 tests/ldap/Makefile \ 651 tests/gss/Makefile \ 652 tests/java/Makefile \ 653 tests/plugin/Makefile \ 654 packages/Makefile \ 655 packages/mac/Makefile \ 656 doc/Makefile \ 657 tools/Makefile \ 658) 659 660AC_OUTPUT 661 662dnl 663dnl This is the release version name-number[beta] 664dnl 665 666cat > include/newversion.h.in <<EOF 667#ifndef VERSION_HIDDEN 668#define VERSION_HIDDEN 669#endif 670VERSION_HIDDEN const char *heimdal_long_version = "@([#])\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 671VERSION_HIDDEN const char *heimdal_version = "AC_PACKAGE_STRING"; 672EOF 673 674if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 675 echo "include/version.h is unchanged" 676 rm -f include/newversion.h.in 677else 678 echo "creating include/version.h" 679 User=${USER-${LOGNAME}} 680 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 681 Date=`date` 682 mv -f include/newversion.h.in include/version.h.in 683 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 684fi 685