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

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 396 Revision 431
1AC_PREREQ([2.61]) 1AC_PREREQ([2.61])
2AC_INIT([sandbox], [1.3.0], [sandbox@gentoo.org]) 2AC_INIT([sandbox], [1.3.1], [sandbox@gentoo.org])
3sb_configure_opts="$*"
3AM_INIT_AUTOMAKE 4AM_INIT_AUTOMAKE
4AC_CONFIG_HEADER([config.h]) 5AC_CONFIG_HEADER([config.h])
5 6
7AC_DEFINE_UNQUOTED([SANDBOX_CONFIGURE_OPTS], ["${sb_configure_opts}"], [Arguments given to ./configure])
8
6dnl Checks for programs. 9dnl Checks for programs.
7AC_PROG_CC 10AC_PROG_CC
11AM_PROG_CC_C_O
8AC_ISC_POSIX 12AC_ISC_POSIX
9AC_PROG_INSTALL 13AC_PROG_INSTALL
10AC_PROG_MAKE_SET 14AC_PROG_MAKE_SET
11AC_PROG_AWK 15AC_PROG_AWK
12AC_CHECK_PROGS([READELF], [readelf eu-readelf], [false]) 16AC_CHECK_PROGS([READELF], [readelf eu-readelf], [false])
17AM_MISSING_PROG([AUTOM4TE], [autom4te])
13 18
14AC_ENABLE_SHARED 19AC_ENABLE_SHARED
15AC_DISABLE_STATIC 20AC_DISABLE_STATIC
16dnl Next four lines is a hack to prevent libtool checking for CXX/F77 21dnl Next four lines is a hack to prevent libtool checking for CXX/F77
17m4_undefine([AC_PROG_CXX]) 22m4_undefine([AC_PROG_CXX])
37 fcntl.h \ 42 fcntl.h \
38 libgen.h \ 43 libgen.h \
39 limits.h \ 44 limits.h \
40 memory.h \ 45 memory.h \
41 signal.h \ 46 signal.h \
47 sigsegv.h \
42 stdarg.h \ 48 stdarg.h \
43 stdbool.h \ 49 stdbool.h \
44 stddef.h \ 50 stddef.h \
45 stdio.h \ 51 stdio.h \
46 stdlib.h \ 52 stdlib.h \
47 string.h \ 53 string.h \
48 strings.h \ 54 strings.h \
55 syscall.h \
49 unistd.h \ 56 unistd.h \
50 utime.h \ 57 utime.h \
51 sys/file.h \ 58 sys/file.h \
52 sys/mman.h \ 59 sys/mman.h \
53 sys/param.h \ 60 sys/param.h \
80 memcpy \ 87 memcpy \
81 memset \ 88 memset \
82 mkdir \ 89 mkdir \
83 pathconf \ 90 pathconf \
84 realpath \ 91 realpath \
92 remove \
85 rmdir \ 93 rmdir \
86 setenv \ 94 setenv \
87 strcasecmp \ 95 strcasecmp \
88 strchr \ 96 strchr \
89 strdup \ 97 strdup \
92 strrchr \ 100 strrchr \
93 strspn \ 101 strspn \
94 strstr \ 102 strstr \
95 strtok_r \ 103 strtok_r \
96]) 104])
97dnl For librcutil 105AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler],
98AC_CHECK_FUNCS([remove]) 106 [HAVE_LIBSIGSEGV=true],
107 [HAVE_LIBSIGSEGV=false])
108AM_CONDITIONAL(HAVE_LIBSIGSEGV, $HAVE_LIBSIGSEGV)
99 109
100dnl Check if gcc provides va_copy or __va_copy (for librcutil) 110dnl Check if gcc provides va_copy or __va_copy (for librcutil)
101AC_MSG_CHECKING([for va_copy]) 111AC_MSG_CHECKING([for va_copy])
102AC_TRY_COMPILE([ 112AC_TRY_COMPILE([
103 #include <stdarg.h> 113 #include <stdarg.h>
230dnl so we dont have to worry about fully expanding all of 240dnl so we dont have to worry about fully expanding all of
231dnl the variables ($sysconfdir defaults to "$prefix/etc") 241dnl the variables ($sysconfdir defaults to "$prefix/etc")
232SANDBOX_DEFINES='-DETCDIR="\"$(sysconfdir)\"" -DLIBSANDBOX_PATH="\"$(libdir)\"" -DSANDBOX_BASHRC_PATH="\"$(pkgdatadir)\""' 242SANDBOX_DEFINES='-DETCDIR="\"$(sysconfdir)\"" -DLIBSANDBOX_PATH="\"$(libdir)\"" -DSANDBOX_BASHRC_PATH="\"$(pkgdatadir)\""'
233AC_SUBST([SANDBOX_DEFINES]) 243AC_SUBST([SANDBOX_DEFINES])
234 244
245CPPFLAGS="$CPPFLAGS -D_REENTRANT"
246if test "$GCC" = yes; then
247 CFLAGS="$CFLAGS -Wall"
248fi
249
250AC_CONFIG_TESTDIR([tests])
251
235AC_OUTPUT([ 252AC_OUTPUT([
236 Makefile 253 Makefile
237 scripts/Makefile 254 scripts/Makefile
238 etc/Makefile 255 etc/Makefile
239 data/Makefile 256 data/Makefile
240 libsbutil/Makefile 257 libsbutil/Makefile
241 libsandbox/Makefile 258 libsandbox/Makefile
242 src/Makefile 259 src/Makefile
260 tests/atlocal
261 tests/Makefile
262 tests/package.m4
243]) 263])

Legend:
Removed from v.396  
changed lines
  Added in v.431

  ViewVC Help
Powered by ViewVC 1.1.20