File tree 2 files changed +21
-6
lines changed
2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -8615,7 +8615,21 @@ _ACEOF
8615
8615
8616
8616
8617
8617
8618
- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing log" >&5
8618
+
8619
+ # On MSVC, log is an intrinsic that doesn't require libm. However,
8620
+ # AC_SEARCH_LIBS does not successfully detect this, as it will try to compile
8621
+ # a program using the wrong signature for log. Newer versions of MSVC CL detects
8622
+ # this and rejects the program with the following messages.
8623
+ #
8624
+ # conftest.c(40): warning C4391: 'char log()': incorrect return type for intrinsic function, expected 'double'
8625
+ # conftest.c(44): error C2168: 'log': too few actual parameters for intrinsic function
8626
+ #
8627
+ # Since log is always available on MSVC (it's been around since the dawn of
8628
+ # time), we simply always assume it's there if MSVC is detected.
8629
+ if test " x$je_cv_msvc " = " xyes" ; then
8630
+ LM=
8631
+ else
8632
+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing log" >&5
8619
8633
$as_echo_n " checking for library containing log... " >&6 ; }
8620
8634
if ${ac_cv_search_log+: } false ; then :
8621
8635
$as_echo_n " (cached) " >&6
@@ -8673,10 +8687,11 @@ else
8673
8687
as_fn_error $? " Missing math functions" " $LINENO " 5
8674
8688
fi
8675
8689
8676
- if test " x$ac_cv_search_log " ! = " xnone required" ; then
8677
- LM=" $ac_cv_search_log "
8678
- else
8679
- LM=
8690
+ if test " x$ac_cv_search_log " ! = " xnone required" ; then
8691
+ LM=" $ac_cv_search_log "
8692
+ else
8693
+ LM=
8694
+ fi
8680
8695
fi
8681
8696
8682
8697
You can’t perform that action at this time.
0 commit comments