@@ -3269,7 +3269,11 @@ int main() {
32693269}
32703270EOF
32713271
3272+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking whether on Linux" >&5
3273+ printf %s " checking whether on Linux... " >&6 ; }
32723274if test x" ${SYSKERNEL} " = x" Linux" ; then
3275+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
3276+ printf " %s\n" " yes" >&6 ; }
32733277
32743278 # # Check if R is configured to compile OpenMP programs out-of-the-box.
32753279 if test x" ${can_use_openmp} " = x" no" ; then
@@ -3280,13 +3284,13 @@ printf %s "checking whether R CMD SHLIB can already compile OpenMP programs... "
32803284 if test x" $? " = x" 0" ; then
32813285 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
32823286printf " %s\n" " yes" >&6 ; }
3283- openmp_already_works=" yes"
3287+ # openmp_already_works="yes"
32843288 arma_have_openmp=" #define ARMA_USE_OPENMP 1"
32853289 can_use_openmp=" yes"
32863290 else
32873291 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
32883292printf " %s\n" " no" >&6 ; }
3289- openmp_already_works=" no"
3293+ # openmp_already_works="no"
32903294 arma_have_openmp=" #define ARMA_DONT_USE_OPENMP 1"
32913295 can_use_openmp=" no"
32923296 fi
@@ -3301,7 +3305,7 @@ printf %s "checking whether R CMD SHLIB can compile OpenMP via -fopenmp... " >&6
33013305 if test x" $? " = x" 0" ; then
33023306 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
33033307printf " %s\n" " yes" >&6 ; }
3304- openmp_already_works=" yes"
3308+ # openmp_already_works="yes"
33053309 arma_have_openmp=" #define ARMA_USE_OPENMP 1"
33063310 can_use_openmp=" yes"
33073311 # keep any entries user may have set
@@ -3310,14 +3314,21 @@ printf "%s\n" "yes" >&6; }
33103314 else
33113315 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
33123316printf " %s\n" " no" >&6 ; }
3313- openmp_already_works=" no"
3317+ # openmp_already_works="no"
33143318 arma_have_openmp=" #define ARMA_DONT_USE_OPENMP 1"
33153319 can_use_openmp=" no"
33163320 fi
33173321 fi
3318- fi
3322+ else
3323+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
3324+ printf " %s\n" " no" >&6 ; }
3325+ fi # if Linux
33193326
3327+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking whether on macOS" >&5
3328+ printf %s " checking whether on macOS... " >&6 ; }
33203329if test x" ${SYSKERNEL} " = x" Darwin" ; then
3330+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
3331+ printf " %s\n" " yes" >&6 ; }
33213332
33223333 # # Check if R is configured to compile OpenMP programs using -Xclang -fopenmp
33233334 if test x" ${can_use_openmp} " = x" no" ; then
@@ -3328,7 +3339,7 @@ printf %s "checking whether R CMD SHLIB can compile OpenMP programs using '-Xcla
33283339 if test x" $? " = x" 0" ; then
33293340 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
33303341printf " %s\n" " yes" >&6 ; }
3331- openmp_already_works=" yes"
3342+ # openmp_already_works="yes"
33323343 arma_have_openmp=" #define ARMA_USE_OPENMP 1"
33333344 can_use_openmp=" yes"
33343345 # keep any entries user may have set
@@ -3337,36 +3348,21 @@ printf "%s\n" "yes" >&6; }
33373348 else
33383349 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
33393350printf " %s\n" " no" >&6 ; }
3340- openmp_already_works=" no"
3351+ # openmp_already_works="no"
33413352 arma_have_openmp=" #define ARMA_DONT_USE_OPENMP 1"
33423353 can_use_openmp=" no"
33433354 fi
33443355 fi
3345- fi
3356+ else
3357+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
3358+ printf " %s\n" " no" >&6 ; }
3359+ fi # if macOS
33463360
33473361# # Go back home.
33483362cd " ${owd} "
33493363rm -rf " ${BUILDDIR} "
33503364
33513365
3352- if test x" ${can_use_openmp} " = x" yes" ; then
3353- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for OpenMP" >&5
3354- printf %s " checking for OpenMP... " >&6 ; }
3355- # # if R has -fopenmp we should be good
3356- allldflags=$( ${R_HOME} /bin/R CMD config --ldflags)
3357- hasOpenMP=$( echo ${allldflags} | grep -- -fopenmp)
3358- if test x" ${hasOpenMP} " = x" " ; then
3359- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: missing" >&5
3360- printf " %s\n" " missing" >&6 ; }
3361- arma_have_openmp=" #define ARMA_DONT_USE_OPENMP 1"
3362- openmp_flag=" "
3363- else
3364- { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: found and suitable" >&5
3365- printf " %s\n" " found and suitable" >&6 ; }
3366- arma_have_openmp=" #define ARMA_USE_OPENMP 1"
3367- openmp_flag=' $(SHLIB_OPENMP_CXXFLAGS)'
3368- fi
3369- fi
33703366
33713367# # now use all these
33723368ARMA_HAVE_OPENMP=" ${arma_have_openmp} "
0 commit comments