[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/10: [build int] Add more 'AC_LANG_PROGRAM' calls
From: |
Thien-Thi Nguyen |
Subject: |
[Guile-commits] 05/10: [build int] Add more 'AC_LANG_PROGRAM' calls |
Date: |
Fri, 3 Mar 2017 04:17:04 -0500 (EST) |
ttn pushed a commit to branch branch_release-1-8
in repository guile.
commit 181e92ba73a41a70728a027107262e960b0eecbf
Author: Thien-Thi Nguyen <address@hidden>
Date: Fri Mar 3 06:42:00 2017 +0100
[build int] Add more 'AC_LANG_PROGRAM' calls
* configure.ac (guile_cv_need_braces_on_pthread_once_init)
(guile_cv_need_braces_on_pthread_mutex_initializer): Add
‘AC_LANG_PROGRAM’ call to first arg of ‘AC_COMPILE_IFELSE’.
---
configure.ac | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 842918f..24300ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1366,8 +1366,8 @@ case "$with_threads" in
AC_CACHE_CHECK([whether PTHREAD_ONCE_INIT needs braces],
[guile_cv_need_braces_on_pthread_once_init],
- [AC_COMPILE_IFELSE([#include <pthread.h>
- pthread_once_t foo = PTHREAD_ONCE_INIT;],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
+ pthread_once_t foo = PTHREAD_ONCE_INIT;]])],
[guile_cv_need_braces_on_pthread_once_init=no],
[guile_cv_need_braces_on_pthread_once_init=yes])])
if test "$guile_cv_need_braces_on_pthread_once_init" = yes; then
@@ -1378,8 +1378,8 @@ case "$with_threads" in
# 6.5.30m with GCC 3.3.
AC_CACHE_CHECK([whether PTHREAD_MUTEX_INITIALIZER needs braces],
[guile_cv_need_braces_on_pthread_mutex_initializer],
- [AC_COMPILE_IFELSE([#include <pthread.h>
- pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
+ pthread_mutex_t foo = PTHREAD_MUTEX_INITIALIZER;]])],
[guile_cv_need_braces_on_pthread_mutex_initializer=no],
[guile_cv_need_braces_on_pthread_mutex_initializer=yes])])
if test "$guile_cv_need_braces_on_pthread_mutex_initializer" = yes; then
- [Guile-commits] branch branch_release-1-8 updated (579b604 -> 9f3004b), Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 02/10: [build int] Add abstraction: CONFIG_SCRIPT, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 06/10: [libguile] Fix bug: Don't expect ‘send’ string to be writable, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 07/10: Improve ‘(ice-9 documentation) file-commentary’ default scrub proc, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 01/10: Rename configure.in to configure.ac, twice, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 04/10: [build int] Remove EOF "Local Variables" block; nfc, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 05/10: [build int] Add more 'AC_LANG_PROGRAM' calls,
Thien-Thi Nguyen <=
- [Guile-commits] 10/10: [maint] Update years in copyright notice; nfc, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 08/10: [build doc] Accomodate whitespace-injecting makeinfo, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 09/10: [doc] Clean up .texi for modern GNU Texinfo, Thien-Thi Nguyen, 2017/03/03
- [Guile-commits] 03/10: [build int] Dose configure.ac w/ "proper" m4-quoting, Thien-Thi Nguyen, 2017/03/03