aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2017-07-27 19:43:00 -0400
committerTheodore Ts'o <tytso@mit.edu>2017-07-27 19:43:00 -0400
commitcfb8e0bd85bea2985cb01e0493fa0bb92fce1014 (patch)
tree3804a2af8e9c068cfbd8ae71c06ecece6f3cba03 /configure.ac
parentc3fc71d8fdb9a0358c3daa7af65ce775f8d99077 (diff)
downloadandroid_external_e2fsprogs-cfb8e0bd85bea2985cb01e0493fa0bb92fce1014.tar.gz
android_external_e2fsprogs-cfb8e0bd85bea2985cb01e0493fa0bb92fce1014.tar.bz2
android_external_e2fsprogs-cfb8e0bd85bea2985cb01e0493fa0bb92fce1014.zip
Fix build when configured with --disable-threads
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 9da7b868..4ede01ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1235,16 +1235,20 @@ dnl Test for sem_init, and which library it might require:
dnl
AH_TEMPLATE([HAVE_SEM_INIT], [Define to 1 if sem_init() exists])
SEM_INIT_LIB=''
-AC_CHECK_FUNC(sem_init, ,
- AC_CHECK_LIB(pthread, sem_init,
+echo GL_THREADS_API: ${gl_threads_api}
+if test "${gl_threads_api}" != none
+then
+ AC_CHECK_FUNC(sem_init, ,
+ AC_CHECK_LIB(pthread, sem_init,
AC_DEFINE(HAVE_SEM_INIT, 1)
SEM_INIT_LIB=-lpthread,
- AC_CHECK_LIB(rt, sem_init,
+ AC_CHECK_LIB(rt, sem_init,
AC_DEFINE(HAVE_SEM_INIT, 1)
SEM_INIT_LIB=-lrt,
- AC_CHECK_LIB(posix4, sem_init,
+ AC_CHECK_LIB(posix4, sem_init,
AC_DEFINE(HAVE_SEM_INIT, 1)
SEM_INIT_LIB=-lposix4))))dnl
+fi
AC_SUBST(SEM_INIT_LIB)
dnl
dnl Check for unified diff