summaryrefslogtreecommitdiff
path: root/legacy/evas/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2011-11-10 18:14:48 +0000
committerVincent Torri <vincent.torri@gmail.com>2011-11-10 18:14:48 +0000
commitd103ed2551282943232598ee912f7fd97bfc1b97 (patch)
tree7a8c2566d67da2e20c4d52ff3c78d012a42fb991 /legacy/evas/m4
parent6483e5c166629a2b398f6d8afc61cf565d3bef1c (diff)
Evas: use -pthread instead of -lpthread
SVN revision: 65030
Diffstat (limited to 'legacy/evas/m4')
-rw-r--r--legacy/evas/m4/evas_check_engine.m466
1 files changed, 60 insertions, 6 deletions
diff --git a/legacy/evas/m4/evas_check_engine.m4 b/legacy/evas/m4/evas_check_engine.m4
index a3f3b21..8c9fb59 100644
--- a/legacy/evas/m4/evas_check_engine.m4
+++ b/legacy/evas/m4/evas_check_engine.m4
@@ -91,9 +91,27 @@ AC_CHECK_HEADER([GL/gl.h],
91 91
92gl_pt_lib=""; 92gl_pt_lib="";
93have_gl_pt="no" 93have_gl_pt="no"
94AC_CHECK_LIB([pthread], [pthread_create], [have_gl_pt="yes"], [have_gl_pt="no"]) 94
95AC_MSG_CHECKING([whether pthread_create() is supported])
96CFLAGS_save="${CFLAGS}"
97CFLAGS="${CFLAGS} -pthread"
98LIBS_save="${LIBS}"
99LIBS="${LIBS} -pthread"
100AC_LINK_IFELSE(
101 [AC_LANG_PROGRAM([[
102#include <pthread.h>
103 ]],
104 [[
105pthread_create(NULL, NULL, NULL, NULL);
106 ]])],
107 [have_gl_pt="yes"],
108 [have_gl_pt="no"])
109CFLAGS=${CFLAGS_save}
110LIBS=${LIBS_save}
111AC_MSG_RESULT([${have_gl_pt}])
112
95if test "x$have_gl_pt" = "xyes" ; then 113if test "x$have_gl_pt" = "xyes" ; then
96 gl_pt_lib=" -lpthread" 114 gl_pt_lib=" -pthread"
97fi 115fi
98 116
99if test "x${have_dep}" = "xyes" ; then 117if test "x${have_dep}" = "xyes" ; then
@@ -236,9 +254,27 @@ AC_CHECK_HEADER([GL/gl.h],
236 254
237gl_pt_lib=""; 255gl_pt_lib="";
238have_gl_pt="no" 256have_gl_pt="no"
239AC_CHECK_LIB([pthread], [pthread_create], [have_gl_pt="yes"], [have_gl_pt="no"]) 257
258AC_MSG_CHECKING([whether pthread_create() is supported])
259CFLAGS_save="${CFLAGS}"
260CFLAGS="${CFLAGS} -pthread"
261LIBS_save="${LIBS}"
262LIBS="${LIBS} -pthread"
263AC_LINK_IFELSE(
264 [AC_LANG_PROGRAM([[
265#include <pthread.h>
266 ]],
267 [[
268pthread_create(NULL, NULL, NULL, NULL);
269 ]])],
270 [have_gl_pt="yes"],
271 [have_gl_pt="no"])
272CFLAGS=${CFLAGS_save}
273LIBS=${LIBS_save}
274AC_MSG_RESULT([${have_gl_pt}])
275
240if test "x$have_gl_pt" = "xyes" ; then 276if test "x$have_gl_pt" = "xyes" ; then
241 gl_pt_lib=" -lpthread" 277 gl_pt_lib=" -pthread"
242fi 278fi
243 279
244if test "x${have_dep}" = "xyes" ; then 280if test "x${have_dep}" = "xyes" ; then
@@ -555,9 +591,27 @@ PKG_CHECK_MODULES([SDL],
555 591
556gl_pt_lib=""; 592gl_pt_lib="";
557have_gl_pt="no" 593have_gl_pt="no"
558AC_CHECK_LIB([pthread], [pthread_create], [have_gl_pt="yes"], [have_gl_pt="no"]) 594
595AC_MSG_CHECKING([whether pthread_create() is supported])
596CFLAGS_save="${CFLAGS}"
597CFLAGS="${CFLAGS} -pthread"
598LIBS_save="${LIBS}"
599LIBS="${LIBS} -pthread"
600AC_LINK_IFELSE(
601 [AC_LANG_PROGRAM([[
602#include <pthread.h>
603 ]],
604 [[
605pthread_create(NULL, NULL, NULL, NULL);
606 ]])],
607 [have_gl_pt="yes"],
608 [have_gl_pt="no"])
609CFLAGS=${CFLAGS_save}
610LIBS=${LIBS_save}
611AC_MSG_RESULT([${have_gl_pt}])
612
559if test "x$have_gl_pt" = "xyes" ; then 613if test "x$have_gl_pt" = "xyes" ; then
560 gl_pt_lib=" -lpthread" 614 gl_pt_lib=" -pthread"
561fi 615fi
562 616
563AC_CHECK_HEADER([GL/gl.h], 617AC_CHECK_HEADER([GL/gl.h],