blob: 10acfeda616f7453dd240c6a292bbb9a1fa35562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
AC_INIT(configure.in)
CONFIG_RULES
AC_PROG_ARCHIVE
AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_CONST
KRB5_POSIX_LOCKS
AC_CHECK_HEADERS(sys/select.h time.h unistd.h)
dnl Could check for full stdc environment, but will only test
dnl for stdlib.h
AC_CHECK_HEADERS(stdlib.h)
AC_C_CROSS dnl pretty up output, eval this before AC_TRY_RUN
dnl need MSBFIRST, LSBFIRST, BITS16, BITS32
AC_MSG_CHECKING([if system is msbfirst])
AC_CACHE_VAL(krb5_cv_is_msbfirst,
[AC_TRY_RUN(
[#include <stdio.h>
int main()
{
int one = 1;
exit (*(char*) &one); /* MSBFIRST iff 1 */
}],
krb5_cv_is_msbfirst=yes, krb5_cv_is_msbfirst=no
)])dnl fail on cross for now
AC_MSG_RESULT($krb5_cv_is_msbfirst)
if test $krb5_cv_is_msbfirst = yes; then
AC_DEFINE(MSBFIRST)
else
AC_DEFINE(LSBFIRST)
fi
dnl
dnl check int, set bits16/bits32 based on it
AC_CHECK_SIZEOF(int)
if test $ac_cv_sizeof_int = 2; then
AC_DEFINE(BITS16)
else
AC_DEFINE(BITS32)
fi
AC_DEFINE(KRB4_USE_KEYTAB)
AC_HAVE_FUNCS(strsave seteuid setreuid setresuid)
AC_PROG_AWK
CopyHeader(krb_err.h,$(EHDRDIR))
KRB5_BUILD_LIBOBJS
KRB5_BUILD_LIBRARY_WITH_DEPS
V5_AC_OUTPUT_MAKEFILE
|