File tree Expand file tree Collapse file tree 2 files changed +11
-32
lines changed Expand file tree Collapse file tree 2 files changed +11
-32
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,6 @@ dnl -qthreaded AIX cc V5
102
102
dnl -threads gcc (HP-UX)
103
103
dnl
104
104
AC_DEFUN ( [ PTHREADS_CHECK] ,[
105
- save_CFLAGS=$CFLAGS
106
- save_LIBS=$LIBS
107
- PTHREADS_ASSIGN_VARS
108
- PTHREADS_CHECK_COMPILE
109
- LIBS=$save_LIBS
110
- CFLAGS=$save_CFLAGS
111
-
112
105
AC_CACHE_CHECK ( for pthreads_cflags ,ac_cv_pthreads_cflags ,[
113
106
ac_cv_pthreads_cflags=
114
107
if test "$pthreads_working" != "yes"; then
144
137
if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then
145
138
pthreads_working="yes"
146
139
fi
147
-
148
- if test "$pthreads_working" = "yes"; then
149
- threads_result="POSIX-Threads found"
150
- else
151
- threads_result="POSIX-Threads not found"
152
- fi
153
- ] )
154
-
155
- dnl
156
- dnl PTHREADS_ASSIGN_VARS
157
- dnl
158
- dnl Adds pthreads linker and compiler flags.
159
- dnl
160
- AC_DEFUN ( [ PTHREADS_ASSIGN_VARS] ,[
161
- if test -n "$ac_cv_pthreads_lib"; then
162
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
163
- fi
164
-
165
- if test -n "$ac_cv_pthreads_cflags"; then
166
- CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
167
- fi
168
140
] )
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ m4_include([build/libtool.m4])
10
10
m4_include ( [ build/php_cxx_compile_stdcxx.m4] )
11
11
m4_include ( [ build/php.m4] )
12
12
m4_include ( [ build/pkg.m4] )
13
+ m4_include ( [ TSRM/threads.m4] )
14
+ m4_include ( [ TSRM/tsrm.m4] )
13
15
14
16
dnl Basic autoconf initialization, generation of config.nice.
15
17
dnl ----------------------------------------------------------------------------
@@ -310,12 +312,10 @@ case $host_alias in
310
312
;;
311
313
esac
312
314
313
- dnl Include Zend and TSRM configurations.
315
+ dnl Include Zend configurations.
314
316
dnl ----------------------------------------------------------------------------
315
317
316
318
sinclude ( Zend/Zend.m4 )
317
- sinclude ( TSRM/threads.m4 )
318
- sinclude ( TSRM/tsrm.m4 )
319
319
320
320
dnl ----------------------------------------------------------------------------
321
321
356
356
357
357
dnl Force ZTS.
358
358
if test "$enable_zts" = "yes"; then
359
- PTHREADS_ASSIGN_VARS
359
+ dnl Add pthreads linker and compiler flags.
360
+ if test -n "$ac_cv_pthreads_lib"; then
361
+ LIBS="$LIBS -l$ac_cv_pthreads_lib"
362
+ fi
363
+ if test -n "$ac_cv_pthreads_cflags"; then
364
+ CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
365
+ fi
366
+
360
367
PTHREADS_FLAGS
361
368
fi
362
369
You can’t perform that action at this time.
0 commit comments