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

Contents of /trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (hide annotations) (download)
Wed Mar 2 09:01:36 2005 UTC (9 years, 6 months ago) by azarah
File MIME type: text/plain
File size: 1783 byte(s)
Fix inverse test logic in canonicalize.c, use a strncpy.  Fix gcc warning in
getcwd.c.  Add symbols.in and logic to Makefile.am to generate symbol versions
for glibc and other libc's that use this.  Update libsandbox.c to use these
symbol versions if available.  Fix exec wrapper to re-export LD_PRELOAD if the
process unset it.

1 ferringb 2 AC_PREREQ(2.59)
2     AC_INIT(sandbox, 1.1, dev-portage@gentoo.org)
3     AM_INIT_AUTOMAKE
4 ferringb 16 AC_CONFIG_HEADER([config.h])
5 ferringb 2
6     # Checks for programs.
7     AC_PROG_CC
8 azarah 29 AC_ISC_POSIX
9     AC_PROG_INSTALL
10     AC_PROG_MAKE_SET
11     AC_PROG_AWK
12    
13 vapier 21 AC_ENABLE_SHARED
14     AC_DISABLE_STATIC
15 ferringb 2 AC_PROG_LIBTOOL
16    
17     AC_PREFIX_DEFAULT([/usr])
18 azarah 29
19 ferringb 2 # 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 vapier 21 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 ferringb 2
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 vapier 21 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 ferringb 2
54 vapier 23 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 azarah 29 LIBC_VERSION=`ldd libctest | grep libc\\.so | grep -v 'ld-uClibc' | ${AWK} '{print $1}'`
73 vapier 23 rm -f libctest
74     AC_SUBST(LIBC_VERSION)
75     AC_MSG_RESULT(${LIBC_VERSION})
76    
77 vapier 21 AC_OUTPUT([Makefile])

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20