-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.in
94 lines (81 loc) · 2.55 KB
/
configure.in
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
dnl Process this file with autoconf to produce a configure script.
AC_INIT(mintbin, 0.4, [https://github.com/freemint/mintbin/issues/],,[https://github.com/freemint/mintbin/])
AC_CONFIG_SRCDIR(src/mintbin.c)
AC_CANONICAL_HOST
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE([disable])
dnl List of available translations.
ALL_LINGUAS="de"
dnl Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_INSTALL
dnl This test must precede tests of compiler characteristics like
dnl that for the inline keyword, since it may change the degree to
dnl which the compiler supports such features.
AC_USE_SYSTEM_EXTENSIONS
AC_ISC_POSIX
AC_C_PROTOTYPES
AC_C_CONST
AC_C_BIGENDIAN
AC_C_CHAR_UNSIGNED
AC_HEADER_STDC
AC_STRUCT_TM
AC_HEADER_TIME
AC_HEADER_STAT
AC_TYPE_SIGNAL
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
dnl Add missing library functions.
AC_REPLACE_FUNCS(stpcpy strcasecmp strncasecmp strtol strtoul strstr)
AC_FUNC_ALLOCA
AC_CHECK_HEADERS(errno.h fcntl.h signal.h strings.h sys/time.h \
sys/types.h sys/stat.h unistd.h values.h)
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(sbrk utimes)
# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
# by default.
AC_MSG_CHECKING([for utime.h])
AC_CACHE_VAL(mb_cv_header_utime_h,
[AC_TRY_COMPILE([#include <sys/types.h>
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include <utime.h>],
[struct utimbuf s;],
mb_cv_header_utime_h=yes, mb_cv_header_utime_h=no)])
AC_MSG_RESULT($mb_cv_header_utime_h)
if test $mb_cv_header_utime_h = yes; then
AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
fi
dnl Now try not to mess up the cross-user's directories.
crossincludedir=`echo $includedir | sed -e 's,/include$,,g' -e 's,/'$target',,g'`
crossbindir=`echo $bindir | sed -e 's,/bin$,,g' -e 's,/'$target',,g'`
crossincludedir=$crossincludedir/$target/include
crossbindir=$crossbindir/$target/bin
nativeincludedir=""
nativebindir=""
if test x$host_os != xmint; then
includedir=$crossincludedir
bindir=$crossbindir
nativebindir='$(prefix)/bin'
else
if test x$crossincludedir != x$includedir; then
nativeincludedir=$includedir
includedir=$crossincludedir
fi
if test x$crossbindir != x$bindir; then
nativebindir=$bindir
bindir=$crossbindir
fi
fi
AC_SUBST(nativeincludedir)
AC_SUBST(nativebindir)
AM_GNU_GETTEXT
AC_OUTPUT([lib/Makefile intl/Makefile include/Makefile include/mint/Makefile \
src/Makefile po/Makefile.in doc/Makefile misc/Makefile Makefile])