1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/powerpc
6 base_machine=powerpc machine=powerpc/powerpc64/le
9 base_machine=powerpc machine=powerpc/powerpc64/be
12 base_machine=powerpc machine=powerpc/powerpc32
13 with_fp_cond="!defined __NO_FPRS__"
16 # SPE support was dropped in glibc 2.30.
17 as_fn_error $? "Host system type $host is no longer supported." "$LINENO" 5
23 # Lets ask the compiler which Power processor we've got, in case the user did
24 # not choose a --with-cpu value. Scan a trivial generated assembly program
25 # and scrape the first
28 # .ascii "-mcpu=<machine>"
29 # directive which shows up, and try using it.
30 case "${machine}:${submachine}" in
32 archcpu=`echo "int foo () { return 0; }" \
33 | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \
34 | grep -E "mcpu=|.machine" -m 1 \
35 | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"`
36 # Note if you add patterns here you must ensure that an appropriate
37 # directory exists in sysdeps/powerpc. Likewise, if we find a
38 # cpu, don't let the generic configure append extra compiler options.
40 405fp|440fp|464fp|476fp)
41 submachine=${archcpu%fp}
42 if test ${libc_cv_cc_submachine+y}
44 printf %s "(cached) " >&6
46 libc_cv_cc_submachine=""
52 if test ${libc_cv_cc_submachine+y}
54 printf %s "(cached) " >&6
56 libc_cv_cc_submachine=""
61 a2|970|power[4-9]|power5x|power6+|power10)
63 if test ${libc_cv_cc_submachine+y}
65 printf %s "(cached) " >&6
67 libc_cv_cc_submachine=""
72 # We couldn't figure it out, assume none