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