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