/[path-sandbox]/trunk/configure.in
Gentoo

Contents of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (show annotations) (download)
Thu Dec 2 05:22:49 2004 UTC (9 years, 10 months ago) by vapier
File MIME type: text/plain
File size: 1720 byte(s)
turn create-localdecls into semi-autotooled

1 AC_PREREQ(2.59)
2 AC_INIT(sandbox, 1.1, dev-portage@gentoo.org)
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_HEADER([config.h])
5
6 # Checks for programs.
7 AC_PROG_CC
8 AC_ENABLE_SHARED
9 AC_DISABLE_STATIC
10 AC_PROG_LIBTOOL
11
12 AC_PREFIX_DEFAULT([/usr])
13 # Checks for libraries.
14 # Checks for header files.
15 AC_FUNC_ALLOCA
16 AC_HEADER_DIRENT
17 AC_HEADER_STDC
18 AC_HEADER_SYS_WAIT
19 AC_CHECK_HEADERS([ \
20 fcntl.h limits.h memory.h stddef.h \
21 stdlib.h string.h strings.h sys/file.h \
22 sys/param.h sys/time.h unistd.h utime.h \
23 ])
24
25 # Checks for typedefs, structures, and compiler characteristics.
26 AC_C_CONST
27 AC_TYPE_UID_T
28 AC_TYPE_MODE_T
29 AC_TYPE_SIZE_T
30 AC_CHECK_TYPES([ptrdiff_t])
31
32 # Checks for library functions.
33 AC_FUNC_CHOWN
34 AC_FUNC_FORK
35 AC_FUNC_LSTAT
36 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
37 AC_FUNC_MALLOC
38 AC_FUNC_REALLOC
39 AC_TYPE_SIGNAL
40 AC_FUNC_STAT
41 AC_CHECK_FUNCS([ \
42 bzero ftruncate getcwd lchown memmove \
43 mempcpy memset mkdir pathconf realpath \
44 rmdir setenv strcasecmp strchr strdup \
45 strerror strndup strrchr strspn strstr \
46 ])
47
48 dnl
49 dnl FIXME: the following needs to be made portable
50 dnl
51
52 dnl when using libc5, (f)trucate's offset argument type is size_t with
53 dnl libc5, but it's off_t with libc6 (glibc2).
54 AC_MSG_CHECKING(truncate argument type)
55 if grep -q 'truncate.*size_t' /usr/include/unistd.h ; then
56 AC_MSG_RESULT(size_t)
57 AC_DEFINE(TRUNCATE_T, size_t, [truncate arg type])
58 else
59 AC_MSG_RESULT(off_t)
60 AC_DEFINE(TRUNCATE_T, off_t, [truncate arg type])
61 fi
62
63 AC_MSG_CHECKING(Checking libc version)
64 echo "int main(void) { return 0; }" > libctest.c
65 gcc -Wall -o libctest libctest.c
66 LIBC_VERSION=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | awk '{print $1}'`
67 rm -f libctest
68 AC_SUBST(LIBC_VERSION)
69 AC_MSG_RESULT(${LIBC_VERSION})
70
71 AC_OUTPUT([Makefile])

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20