< prev index next >

make/autoconf/build-aux/config.guess

Print this page




  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 # This is a wrapper for the config.guess from autoconf. The latter does not
  26 # properly detect 64 bit systems on all platforms. Instead of patching the
  27 # autoconf system (which might easily get lost in a future update), we wrap it
  28 # and fix the broken property, if needed.
  29 
  30 DIR=`dirname $0`
  31 OUT=`. $DIR/autoconf-config.guess`
  32 











  33 # Test and fix solaris on x86_64
  34 echo $OUT | grep i386-pc-solaris > /dev/null 2> /dev/null
  35 if test $? = 0; then
  36   # isainfo -n returns either i386 or amd64
  37   REAL_CPU=`isainfo -n`
  38   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  39 fi
  40 
  41 # Test and fix solaris on sparcv9
  42 echo $OUT | grep sparc-sun-solaris > /dev/null 2> /dev/null
  43 if test $? = 0; then
  44   # isainfo -n returns either sparc or sparcv9
  45   REAL_CPU=`isainfo -n`
  46   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  47 fi
  48 
  49 # Test and fix cygwin on x86_64
  50 echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
  51 if test $? != 0; then
  52   echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null




  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 # This is a wrapper for the config.guess from autoconf. The latter does not
  26 # properly detect 64 bit systems on all platforms. Instead of patching the
  27 # autoconf system (which might easily get lost in a future update), we wrap it
  28 # and fix the broken property, if needed.
  29 
  30 DIR=`dirname $0`
  31 OUT=`. $DIR/autoconf-config.guess`
  32 
  33 # config.guess doesn't identify systems running the musl C library, and will
  34 # instead return a string with a -gnu suffix. This block detects musl and
  35 # modifies the string to have a -musl suffix instead. 
  36 echo $OUT | grep -- -linux- > /dev/null 2> /dev/null
  37 if test $? = 0; then
  38   ldd_version=`ldd --version 2>&1 | head -1 | cut -f1 -d' '`
  39   if [ x"${ldd_version}" = x"musl" ]; then
  40     OUT=`echo $OUT | sed 's/-gnu/-musl/'`
  41   fi
  42 fi
  43 
  44 # Test and fix solaris on x86_64
  45 echo $OUT | grep i386-pc-solaris > /dev/null 2> /dev/null
  46 if test $? = 0; then
  47   # isainfo -n returns either i386 or amd64
  48   REAL_CPU=`isainfo -n`
  49   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  50 fi
  51 
  52 # Test and fix solaris on sparcv9
  53 echo $OUT | grep sparc-sun-solaris > /dev/null 2> /dev/null
  54 if test $? = 0; then
  55   # isainfo -n returns either sparc or sparcv9
  56   REAL_CPU=`isainfo -n`
  57   OUT=$REAL_CPU`echo $OUT | sed -e 's/[^-]*//'`
  58 fi
  59 
  60 # Test and fix cygwin on x86_64
  61 echo $OUT | grep 86-pc-cygwin > /dev/null 2> /dev/null
  62 if test $? != 0; then
  63   echo $OUT | grep 86-pc-mingw > /dev/null 2> /dev/null


< prev index next >