X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=3a6a597fabdc05a7d2a4e3856297c20ce328917f;hb=e42d9f224a4ef2784f8fd43f9f4f5c593a7ddd57;hp=679f543ed2f93cea6f4feb2fd37409be134f7c5f;hpb=33e5a6d5549381b79d1f556d46c396b681aea69a;p=fips diff --git a/configure b/configure index 679f543..3a6a597 100755 --- a/configure +++ b/configure @@ -345,6 +345,43 @@ printf "\t${WARN_CFLAGS}\n" rm -f minimal minimal.c +printf "#include \nint main(void){return 0;}\n" > arch-minimal.c + +printf "Checking for machine-dependent compiler support:\n" + +printf " Compiler can create 32-bit binaries... " +have_m32=Yes +if ${CC} -m32 -o arch-minimal arch-minimal.c > /dev/null 2>&1 +then + printf "Yes.\n" +else + printf "No.\n" + have_m32=No +fi + +printf " Compiler can create 64-bit binaries... " +have_m64=Yes +if ${CC} -m64 -o arch-minimal arch-minimal.c > /dev/null 2>&1 +then + printf "Yes.\n" +else + printf "No.\n" + have_m64=No +fi + +if [ "$have_m32" = "No" ] || [ "$have_m64" = "No" ]; then + cat <