Skip to content

Commit f09f36f

Browse files
committed
Merge pull request #277
2 parents 86243cd + 50f417c commit f09f36f

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

config.m4

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ int main(void)
2727
], [ac_cv_c_bigendian_php=yes], [ac_cv_c_bigendian_php=no], [ac_cv_c_bigendian_php=unknown])
2828
])
2929
if test $ac_cv_c_bigendian_php = yes; then
30-
BSON_BYTE_ORDER=4321
30+
AC_SUBST(BSON_BYTE_ORDER, 4321)
3131
else
32-
BSON_BYTE_ORDER=1234
32+
AC_SUBST(BSON_BYTE_ORDER, 1234)
3333
fi
34-
AC_SUBST(BSON_BYTE_ORDER)
3534
])
3635
dnl Borrowed from sapi/fpm/config.m4
3736
AC_DEFUN([PHP_BSON_CLOCK],
@@ -63,8 +62,7 @@ AC_DEFUN([PHP_BSON_CLOCK],
6362
fi
6463
6564
if test "$have_clock_gettime" = "yes"; then
66-
BSON_HAVE_CLOCK_GETTIME=1
67-
AC_SUBST(BSON_HAVE_CLOCK_GETTIME)
65+
AC_SUBST(BSON_HAVE_CLOCK_GETTIME, 1)
6866
fi
6967
])
7068

@@ -494,30 +492,30 @@ dnl }}}
494492
PHP_BSON_BIGENDIAN
495493
AC_HEADER_STDBOOL
496494

497-
BSON_EXTRA_ALIGN=0
498-
AC_SUBST(BSON_EXTRA_ALIGN)
495+
AC_SUBST(BSON_EXTRA_ALIGN, 0)
499496

500497
if test "$ac_cv_header_stdbool_h" = "yes"; then
501-
BSON_HAVE_STDBOOL_H=1
498+
AC_SUBST(BSON_HAVE_STDBOOL_H, 1)
502499
else
503-
BSON_HAVE_STDBOOL_H=0
500+
AC_SUBST(BSON_HAVE_STDBOOL_H, 0)
504501
fi
505-
AC_SUBST(BSON_HAVE_STDBOOL_H)
506502

507-
BSON_OS=1
508-
AC_SUBST(BSON_OS)
503+
AC_SUBST(BSON_OS, 1)
509504

510505
PHP_BSON_CLOCK
511506
AC_CHECK_FUNC(strnlen,ac_cv_func_strnlen=yes,ac_cv_func_strnlen=no)
512507
if test "$ac_cv_func_strnlen" = "yes"; then
513-
BSON_HAVE_STRNLEN=1
508+
AC_SUBST(BSON_HAVE_STRNLEN, 1)
509+
else
510+
AC_SUBST(BSON_HAVE_STRNLEN, 0)
514511
fi
515-
AC_SUBST(BSON_HAVE_STRNLEN)
512+
516513
AC_CHECK_FUNC(snprintf,ac_cv_func_snprintf=yes,ac_cv_func_snprintf=no)
517514
if test "$ac_cv_func_snprintf" = "yes"; then
518-
BSON_HAVE_SNPRINTF=1
515+
AC_SUBST(BSON_HAVE_SNPRINTF, 1)
516+
else
517+
AC_SUBST(BSON_HAVE_SNPRINTF, 0)
519518
fi
520-
AC_SUBST(BSON_HAVE_SNPRINTF)
521519

522520
if test "$PHP_LIBMONGOC" == "no"; then
523521
backup_srcdir=${srcdir}

0 commit comments

Comments
 (0)