Debian Codegraph @

configure.ac

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