X-Git-Url: https://git.cworth.org/git?p=glaze;a=blobdiff_plain;f=configure;h=d25e22a4b3820951164753053d173fb93e92860e;hp=d115790d56296b6d99f9d732b525f226cf6c04fa;hb=553d330d06573b6bc951e3c00672a1abfe29b7aa;hpb=f2c5ebbfe53ee598aa2b354f0e013aba3a10fffc diff --git a/configure b/configure index d115790..d25e22a 100755 --- a/configure +++ b/configure @@ -176,6 +176,12 @@ have_m32=Yes if ${CC} -m32 -o arch-minimal arch-minimal.c > /dev/null 2>&1 then printf "Yes.\n" + + printf " Target directory for 32-bit targets... " + + lib32_dir=$(gcc -m32 --print-multiarch) + printf "${lib32_dir}\n" + else printf "No.\n" have_m32=No @@ -186,6 +192,12 @@ have_m64=Yes if ${CC} -m64 -o arch-minimal arch-minimal.c > /dev/null 2>&1 then printf "Yes.\n" + + printf " Target directory for 64-bit targets... " + + lib64_dir=$(gcc -m64 --print-multiarch) + printf "${lib64_dir}\n" + else printf "No.\n" have_m64=No @@ -261,7 +273,9 @@ INCLUDEDIR = ${INCLUDEDIR:-\$(PREFIX)/include} # Whether compiler can create 32 or 64-bit binaries COMPILER_SUPPORTS_32 = ${have_m32} +LIB32_DIR = lib/${lib32_dir} COMPILER_SUPPORTS_64 = ${have_m64} +LIB64_DIR = lib/${lib64_dir} # Version information for glaze library MAJOR = ${MAJOR}