--- cromfs-1.5.10.2.old/configure +++ cromfs-1.5.10.2/configure @@ -146,7 +146,7 @@ HAS_OPENMP=0 do_echo -n "Checking if your compiler supports OpenMP... " if [ "$CC" = "icc" ] && \ - cc_check '<'$DISABLE_THREADS'stdio.h>' '-openmp' 'int x,y[100]; + cc_check '<'$DISABLE_THREADS'force_error.h>' '-openmp' 'int x,y[100]; #pragma omp parallel for for(x=0; x<100;++x)y[x]=5;'; then do_echo Yes @@ -158,7 +158,7 @@ # Needed for openmp support: LDFLAGS="$LDFLAGS -lguide -lpthread" -elif cc_check '<'$DISABLE_THREADS'stdio.h>' '-fopenmp' 'int x,y[100];for(x=0; x<100;++x)y[x]=5;'; then +elif cc_check '<'$DISABLE_THREADS'force_error.h>' '-fopenmp' 'int x,y[100];for(x=0; x<100;++x)y[x]=5;'; then do_echo Yes do_echo "- Will use OpenMP, not checking for -pthread" CPPFLAGS="$CPPFLAGS -fopenmp"