search for: ac_lang_sourc

Displaying 20 results from an estimated 36 matches for "ac_lang_sourc".

Did you mean: ac_lang_source
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 WEXITSTATUS(status);...
2012 Sep 25
0
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v3)
...k if the flag is supported by compiler +dnl CC_CHECK_CFLAGS_SILENT([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) + +AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [ + AC_CACHE_VAL(AS_TR_SH([cc_cv_cflags_$1]), + [ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], + [eval "AS_TR_SH([cc_cv_cflags_$1])='yes'"], + [eval "AS_TR_SH([cc_cv_cflags_$1])='no'"]) + CFLAGS="$ac_save_CFLAGS" + ]) + + AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes], + [$2], [$3])...
2012 Jul 04
0
[xen-unstable test] 13460: regressions - FAIL
...ttp://xenbits.xensource.com/gitweb?p=osstest.git;a=summary Not pushing. ------------------------------------------------------------ changeset: 25593:7c0351dc41a5 tag: tip user: Olaf Hering <olaf@aepfle.de> date: Wed Jul 04 15:46:17 2012 +0100 tools/m4: add AC_LANG_SOURCE to fix autoconf warnings I see these warnings with autoconf 2.68, add AC_LANG_SOURCE as suggested by upstream documentation. ... # bash autogen.sh configure.ac:141: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194:...
2012 Sep 25
3
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v2)
...k if the flag is supported by compiler +dnl CC_CHECK_CFLAGS_SILENT([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) + +AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [ + AC_CACHE_VAL(AS_TR_SH([cc_cv_cflags_$1]), + [ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], + [eval "AS_TR_SH([cc_cv_cflags_$1])='yes'"], + [eval "AS_TR_SH([cc_cv_cflags_$1])='no'"]) + CFLAGS="$ac_save_CFLAGS" + ]) + + AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes], + [$2], [$3])...
2017 Feb 04
0
[PATCH] Clean up CFLAGS detecting code and add AX macro for _FORTIFY_SOURCE
...= xyes ; then dnl some distributions (such as Gentoo) have _FORTIFY_SOURCE always dnl enabled. We test for this situation in order to prevent polluting dnl the console with messages of macro redefinitions. - AC_MSG_CHECKING([whether to add -D_FORTIFY_SOURCE=2 to CFLAGS]) - AC_LINK_IFELSE([ - AC_LANG_SOURCE( - [[ - int main() { - #ifndef _FORTIFY_SOURCE - return 0; - #else - this_is_an_error; - #endif - } - ]] - )], [ - AC_MSG_RESULT([yes]) - XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2]) - ], [ - AC_MSG_RESULT([no]) - ]) + AX_ADD_FORTIFY_SOURCE AC_LANG_PUSH([C++]) X...
2012 Sep 29
2
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v4)
...k if the flag is supported by compiler +dnl CC_CHECK_CFLAGS_SILENT([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) + +AC_DEFUN([CC_CHECK_CFLAGS_SILENT], [ + AC_CACHE_VAL(AS_TR_SH([cc_cv_cflags_$1]), + [ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], + [eval "AS_TR_SH([cc_cv_cflags_$1])='yes'"], + [eval "AS_TR_SH([cc_cv_cflags_$1])='no'"]) + CFLAGS="$ac_save_CFLAGS" + ]) + + AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes], + [$2], [$3])...
2017 Feb 04
3
Minor CFLAGS-related cleanups
Hi Erik, similar to what I did for libsndfile, this is to simplify the handling of adding -D_FORTIFY_SOURCE=2. Regards David
2012 Dec 21
2
more compiler safety flags
...k_flag'. +AC_DEFUN([OSSH_CHECK_LDFLAG_LINK], [{ + AC_MSG_CHECKING([if $LD supports $1]) + saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $1" + _define_flag="$2" + test "x$_define_flag" = "x" && _define_flag="$1" + AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])], + [ AC_MSG_RESULT([yes]) + LDFLAGS="$saved_LDFLAGS $_define_flag"], + [ AC_MSG_RESULT([no]) + LDFLAGS="$saved_LDFLAGS" ] + ) +}]) dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol) dnl Does AC_EGREP_HEADER on 'header'...
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'
...8 { (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: relevant (all?) my env: % au...
2006 Mar 14
2
Problem compiling openssh-4.3p2 w/ openssl.0.9.8a on FC3
Hi there, I have tried compiling OpenSSH 4.3p2 using the following steps: Upgrade OpenSSL tar xvfz openssl-0.9.8a.tar.gz cd openssl-0.9.8a ./config make make install Upgrade zlib tar xvfz zlib-1.2.3.tar.gz ./configure make test make install Upgrade OpenSSH tar xvfz openssh-4.3p2.tar.gz cd openssh-4.3p2.tar.gz ./configure --with-tcp-wrappers --with-ssl-dir=/usr/local/ssl
2013 Mar 22
1
additional compiler hardening flags
...k_flag'. +AC_DEFUN([OSSH_CHECK_LDFLAG_LINK], [{ + AC_MSG_CHECKING([if $LD supports $1]) + saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $1" + _define_flag="$2" + test "x$_define_flag" = "x" && _define_flag="$1" + AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])], + [ AC_MSG_RESULT([yes]) + LDFLAGS="$saved_LDFLAGS $_define_flag"], + [ AC_MSG_RESULT([no]) + LDFLAGS="$saved_LDFLAGS" ] + ) +}]) dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol) dnl Does AC_EGREP_HEADER on 'header'...
2006 Feb 03
3
OpenSSH_4.3p1 configure patch
...openssh-4.3p1/configure.ac 2006-01-29 05:22:39.000000000 -0800 +++ openssh/configure.ac 2006-02-02 16:10:29.540763142 -0800 @@ -27,6 +27,7 @@ AC_PROG_CPP AC_PROG_RANLIB AC_PROG_INSTALL +AC_PROG_EGREP AC_PATH_PROG(AR, ar) AC_PATH_PROG(CAT, cat) AC_PATH_PROG(KILL, kill) @@ -1832,7 +1833,7 @@ [AC_LANG_SOURCE([[ #include <string.h> #include <openssl/evp.h> -int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL)} +int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} ]])], [ AC_MSG_RESULT(no)
2008 Jun 07
1
Fail to call AC_CACHE_CHECK on R 2.7.0 for Solaris
...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 answer to that...
2017 Jun 18
3
Unable to use nut-2.7.4 with Eaton 5E1500I USB
...t nobugconsulting.ro> wrote: > > running autogen.sh was triggered automatically. but even if I do it explicitly, I still get: > + autoreconf -i > configure.ac:887: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body > ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... > ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from... > ../../lib/autoconf/general.m...
2020 Apr 28
1
[PATCH nbdkit] freebsd, openbsd: Add an extern decl for environ.
...s declared in public header files: +dnl Linux => <unistd.h> Haiku => <stdlib.h> +dnl FreeBSD & OpenBSD => not declared +dnl On platforms where it's not declared we must add an extern decl. +AC_MSG_CHECKING([if environ is declared in header files]) +AC_COMPILE_IFELSE([ +AC_LANG_SOURCE([[ +#include <stdlib.h> +#include <unistd.h> +static int +test (void) +{ + const char **env = environ; + return env ? 1 : 0; // this just forces env to be used +} +]]) + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_ENVIRON_DECL],[1],[environ is declared in headers]) + ],[...
2006 Feb 02
1
[Bug 1148] configure's crippled AES test fails on Sun CC
...un CC rather than gcc the crippled AES test fails because of a missing semicolon (regardless of whether it should fail or not). The fix is trivial: --- configure.ac.orig 2006-02-02 05:46:02.000000000 +0000 +++ configure.ac 2006-02-02 05:46:13.000000000 +0000 @@ -1827,7 +1827,7 @@ [AC_LANG_SOURCE([[ #include <string.h> #include <openssl/evp.h> -int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL)} +int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} ]])], [ AC_MSG_RESULT(no) ------- You a...
2015 Nov 26
0
opus: do not use visibility attributes when targetting windows
...better.) diff --git a/configure.ac b/configure.ac index eabad3a..3bede12 100644 --- a/configure.ac +++ b/configure.ac @@ -759,14 +759,15 @@ saved_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([[char foo;]])], [ AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) CFLAGS="$saved_CFLAGS" ]) +AS_IF([test x"$MINGW32" = x"yes"], [CFLAGS="$saved_CFLAGS"]) CFLAGS="$CFLAGS -W" warn_CFLAGS="-Wall -Wextra -Wcast-align -Wne...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
...NUC__) return __sync_add_and_fetch(ptr, val); #elif defined(_MSC_VER) Index: autoconf/configure.ac =================================================================== --- autoconf/configure.ac (revision 151623) +++ autoconf/configure.ac (working copy) @@ -1378,19 +1378,23 @@ AC_LINK_IFELSE( AC_LANG_SOURCE( [[int main() { + #if defined(__APPLE__) + // atomic functions assumed to be in <libkern/OSAtomic.h> + #else volatile unsigned long val = 1; __sync_synchronize(); __sync_val_compare_and_swap(&val, 1, 0); __sync_add_and_fetch(&val, 1);...
2014 Oct 01
1
gsl package on mavericks
hello I maintain the gsl R package, and many users have recently reported that the package does not install from source under macosx 10.9 ("mavericks"). Users typically install the gnu GSL library and are able to compile and run a small "hello world" program which executes some of the Bessel functionality of the library; but under mavericks the configure script (which uses