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

Contents of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33 - (show annotations) (download)
Wed Mar 9 07:34:30 2005 UTC (9 years, 4 months ago) by ferringb
Original Path: trunk/configure.in
File MIME type: text/plain
File size: 1889 byte(s)
correct symbols.h building when libdir !+ "/lib"

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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20