search for: ac_run_ifelse

Displaying 14 results from an estimated 14 matches for "ac_run_ifelse".

2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
Strict C99 compilers do not support implicit function declarations or implicit ints, so something like the patch below is needed. Thanks, Florian diff --git a/configure.ac b/configure.ac index 4f68e98a..b5c7a582 100644 --- a/configure.ac +++ b/configure.ac @@ -173,6 +173,9 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <fcntl.h> #include <sys/types.h> #include <sys/wait.h> +#if HAVE_UNISTD_H +# include <unistd.h> +#endif int main(void) { @@ -197,7 +200,7 @@ int main(void) } wait(&status); unlink(tpl); - exit(WEXITSTATUS(status)); + return WEXITS...
2013 Feb 05
5
[Bug 2011] sandbox selection needs some kind of fallback mechanism
https://bugzilla.mindrot.org/show_bug.cgi?id=2011 --- Comment #8 from Petr Lautrbach <plautrba at redhat.com> --- Created attachment 2214 --> https://bugzilla.mindrot.org/attachment.cgi?id=2214&action=edit don't probe seccomp capability of running kernel in configure I'd like to add also possibility to build seccomp_filter sandbox on system with older kernel, E.g. Fedora
2012 Jul 02
1
rlimit sandbox on cygwin
Hi all. I have an old windows VM with an oldish cygwin that I use for the regression tests. Investigating one of the test failures, I see that it's for UsePrivilegeSeparation=sandbox, and it seems to be because setrlimit(RLIMIT_FSIZE, ...) is not supported. IMO, this isn't a big loss, since the most useful thing in the rlimit "sandbox" is the descriptor limits. Can anyone see
2004 Oct 21
3
1.0-test51
http://dovecot.org/test/ This release is built with autoconf 2.59 and libtool 1.9. We'll see how it works out :) The required changes were done by Matthias Andree. - The last fix for connection hanging made IDLE use 100% CPU - We don't use Maildir/.INBOX/ directory anymore, indexes are stored in Maildir-root - Don't crash with FETCH BODY[n.MIME] - Changed %p (protocol)
2006 Sep 21
2
bug(let): openssh v4.3p2 'ok' out-of-box; 'configure' does not survive 'autoreconf'
...uot; >&2;} 16378 { (exit 1); exit 1; }; } 16379 fi 16380 ]]) ... stems from, in 'configure.ac': 1406 dnl see whether mkstemp() requires XXXXXX 1407 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then 1408 AC_MSG_CHECKING([for (overly) strict mkstemp]) 1409 AC_RUN_IFELSE( 1410 [AC_LANG_SOURCE([[ 1411 #include <stdlib.h> 1412 main() { char template[]="conftest.mkstemp-test"; 1413 if (mkstemp(template) == -1) 1414 exit(1); 1415 unlink(template); exit(0); 1416 } - -> 1417 ]])], 1418 [ 1419 AC_MSG_RESULT(no) 1420 ], fyi, re: relevan...
2008 Jun 07
1
Fail to call AC_CACHE_CHECK on R 2.7.0 for Solaris
...is only called on Linux, and not on Solaris. Obviously this could explain why this bit of Sage works on Linux, but not Solaris. ## check for visible __libc_stack_end on Linux case "${host_os}" in linux*) AC_CACHE_CHECK([for visible __lib_stack_end], [r_cv_libc_stack_end], [AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include "confdefs.h" #include <stdlib.h> extern void * __libc_stack_end; So it seems to me this will never work, as the the relevant macro is not run on Solaris. It begs the obvious question why does this work when I download the source of R. I can't see the...
2004 Sep 07
7
[Bug 321] configure does not work when cross compiling
http://bugzilla.mindrot.org/show_bug.cgi?id=321 mcgege at gmx.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mcgege at gmx.de ------- Additional Comments From mcgege at gmx.de 2004-09-07 18:39 ------- I try to compile openssh-3.8.1p1 on a i386
2004 Jun 22
8
[Bug 321] configure does not work when cross compiling
http://bugzilla.mindrot.org/show_bug.cgi?id=321 ------- Additional Comments From astrand at lysator.liu.se 2004-06-22 20:45 ------- Created an attachment (id=655) --> (http://bugzilla.mindrot.org/attachment.cgi?id=655&action=view) Patch to configure.ac (3.7p1) This new patch is for 3.7p1. It only modifies configure.ac; no C source. Can someone *please* apply? ------- You are
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
...DES_DEFAULT], [getpgrp ();])], - [ac_func_getpgrp_0=yes], - [ac_func_getpgrp_0=no]) -# If both static checks agree, we are done. -case $ac_func_getpgrp_0:$ac_func_getpgrp_1 in - yes:no) ac_cv_func_getpgrp_void=yes;; - no:yes) ac_cv_func_getpgrp_void=false;; - *) AC_RUN_IFELSE([_AC_FUNC_GETPGRP_TEST], - [ac_cv_func_getpgrp_void=yes], - [ac_cv_func_getpgrp_void=no], - [AC_MSG_ERROR([cannot check getpgrp if cross compiling])]);; -esac # $ac_func_getpgrp_0:$ac_func_getpgrp_1 + [ac_cv_func_getpgrp_void=no...
2013 Jan 24
2
[PATCH 1/2] lib: Add CLEANUP_FREE macro which automatically calls 'free' when leaving scope.
...ong. AC_CHECK_SIZEOF([long]) +dnl Check if __attribute__((cleanup(...))) works. +dnl XXX It would be nice to use AC_COMPILE_IFELSE here, but gcc just +dnl emits a warning for attributes that it doesn't understand. +AC_MSG_CHECKING([if __attribute__((cleanup(...))) works with this compiler]) +AC_RUN_IFELSE([ +AC_LANG_SOURCE([[ +#include <stdio.h> +#include <stdlib.h> + +void +freep (void *ptr) +{ + exit (0); +} + +void +test (void) +{ + __attribute__((cleanup(freep))) char *ptr = malloc (100); +} + +int +main (int argc, char *argv[]) +{ + test (); + exit (1); +} +]]) + ],[ + AC_...
2018 Aug 13
4
Call for testing: OpenSSH 7.8
On Thu, Aug 09, 2018 at 08:16:34PM CDT, Damien Miller wrote: >Hi, > >OpenSSH 7.8p1 is almost ready for release, so we would appreciate testing >on as many platforms and systems as possible. This is a bugfix release. AIX 7.1 TL5, C compiler 11.1.0.23 - error in "test_utf8": test_sshbuf:
2018 Nov 29
6
[nbdkit PATCH 0/3] Fix %m usage on BSD
Our use of "%m" in various error messages is testament to the project's initial life on Linux - but other than Cygwin, I know of no other platforms supporting that glibc extension. We COULD audit the code and manually turn "%m" into "%s"/strerror(errno), but that's a lot of churn. Instead, let's fix the few outliers that can't be easily wrapped, then
2013 Jan 25
4
[PATCH 0/3] Use __attribute__((cleanup(...)))
This patch series changes a small part of the library to use __attribute__((cleanup(...))) to automatically free memory when pointers go out of the current scope. In general terms this seems to be a small win although you do have to use it carefully. For functions where you can completely get rid of the "exit code paths", it can simplify things. For a good example, see the
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings: Patches 1-12 split configure.ac into smaller files using the m4_include mechanism. Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into three new manual pages: guestfs-hacking(3) - how to extend and contribute to libguestfs guestfs-internals(3) - architecture and internals guestfs-security(3) - security and CVEs Patch 16 is a