@@ -14143,6 +14143,41 @@ fi
14143
14143
{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $je_cv_strerror_r_returns_char_with_gnu_source " >&5
14144
14144
$as_echo " $je_cv_strerror_r_returns_char_with_gnu_source " >&6 ; }
14145
14145
14146
+ if test " x${je_cv_strerror_r_returns_char_with_gnu_source} " = " xno" ; then
14147
+
14148
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking whether strerror_r header only is compilable" >&5
14149
+ $as_echo_n " checking whether strerror_r header only is compilable... " >&6 ; }
14150
+ if ${je_cv_strerror_r_header_pass+: } false ; then :
14151
+ $as_echo_n " (cached) " >&6
14152
+ else
14153
+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
14154
+ /* end confdefs.h. */
14155
+
14156
+ #include <errno.h>
14157
+ #include <stdio.h>
14158
+ #include <stdlib.h>
14159
+ #include <string.h>
14160
+
14161
+ int
14162
+ main ()
14163
+ {
14164
+
14165
+ ;
14166
+ return 0;
14167
+ }
14168
+ _ACEOF
14169
+ if ac_fn_c_try_link " $LINENO " ; then :
14170
+ je_cv_strerror_r_header_pass=yes
14171
+ else
14172
+ je_cv_strerror_r_header_pass=no
14173
+ fi
14174
+ rm -f core conftest.err conftest.$ac_objext \
14175
+ conftest$ac_exeext conftest.$ac_ext
14176
+ fi
14177
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $je_cv_strerror_r_header_pass " >&5
14178
+ $as_echo " $je_cv_strerror_r_header_pass " >&6 ; }
14179
+
14180
+ fi
14146
14181
CONFIGURE_CFLAGS=" ${SAVED_CONFIGURE_CFLAGS} "
14147
14182
if test " x${CONFIGURE_CFLAGS} " = " x" -o " x${SPECIFIED_CFLAGS} " = " x" ; then
14148
14183
CFLAGS=" ${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS} "
@@ -14155,6 +14190,8 @@ if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
14155
14190
14156
14191
$as_echo " #define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >> confdefs.h
14157
14192
14193
+ elif test " x${je_cv_strerror_r_header_pass} " = " xno" ; then
14194
+ as_fn_error $? " cannot determine return type of strerror_r" " $LINENO " 5
14158
14195
fi
14159
14196
14160
14197
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for stdbool.h that conforms to C99" >&5
0 commit comments