< prev index next >

make/autoconf/build-aux/config.guess

Print this page

        

*** 28,37 **** --- 28,48 ---- # and fix the broken property, if needed. DIR=`dirname $0` OUT=`. $DIR/autoconf-config.guess` + # config.guess doesn't identify systems running the musl C library, and will + # instead return a string with a -gnu suffix. This block detects musl and + # modifies the string to have a -musl suffix instead. + echo $OUT | grep -- -linux- > /dev/null 2> /dev/null + if test $? = 0; then + ldd_version=`ldd --version 2>&1 | head -1 | cut -f1 -d' '` + if [ x"${ldd_version}" = x"musl" ]; then + OUT=`echo $OUT | sed 's/-gnu/-musl/'` + fi + fi + # Test and fix solaris on x86_64 echo $OUT | grep i386-pc-solaris > /dev/null 2> /dev/null if test $? = 0; then # isainfo -n returns either i386 or amd64 REAL_CPU=`isainfo -n`
< prev index next >