5 Usage: $0 [OPTION]... [VAR=VALUE]... [TARGET]
7 To assign environment variables (e.g., CC, CFLAGS...), specify them as
8 VAR=VALUE. See below for descriptions of some of the useful variables.
10 Defaults for the options are specified in brackets.
13 --srcdir=DIR source directory [detected]
15 Installation directories:
16 --prefix=PREFIX main installation prefix [/usr/local/musl]
17 --exec-prefix=EPREFIX installation prefix for executable files [PREFIX]
19 Fine tuning of the installation directories:
20 --bindir=DIR user executables [EPREFIX/bin]
21 --libdir=DIR library files for the linker [PREFIX/lib]
22 --includedir=DIR include files for the C compiler [PREFIX/include]
23 --syslibdir=DIR location for the dynamic linker [/lib]
26 --target=TARGET configure to run on target TARGET [detected]
27 --host=HOST same as --target
30 --enable-optimize=... optimize listed components for speed over size [auto]
31 --enable-debug build with debugging information [disabled]
32 --enable-warnings build with recommended warnings flags [disabled]
33 --enable-visibility use global visibility options to optimize PIC [auto]
34 --enable-wrapper=... build given musl toolchain wrapper [auto]
35 --disable-shared inhibit building shared library [enabled]
36 --disable-static inhibit building static library [enabled]
38 Some influential environment variables:
39 CC C compiler command [detected]
40 CFLAGS C compiler flags [-Os -pipe ...]
41 CROSS_COMPILE prefix for cross compiler and tools [none]
42 LIBCC compiler runtime library [detected]
44 Use these variables to override the choices made by configure.
53 tr '\n' ' ' <<EOF | grep '^[-[:alnum:]_=,./:]* $' >/dev/null 2>&1 && { echo "$1" ; return 0 ; }
56 printf %s\\n "$1" | sed -e "s/'/'\\\\''/g" -e "1s/^/'/" -e "\$s/\$/'/" -e "s#^'\([-[:alnum:]_,./:]*\)=\(.*\)\$#\1='\2#"
58 echo () { printf "%s\n" "$*" ; }
59 fail () { echo "$*" ; exit 1 ; }
60 fnmatch () { eval "case \"\$2\" in $1) return 0 ;; *) return 1 ;; esac" ; }
61 cmdexists () { type "$1" >/dev/null 2>&1 ; }
62 trycc () { test -z "$CC" && cmdexists "$1" && CC=$1 ; }
65 while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done
69 printf "checking preprocessor condition %s... " "$1"
70 echo "typedef int x;" > "$tmpc"
71 echo "#if $1" >> "$tmpc"
72 echo "#error yes" >> "$tmpc"
73 echo "#endif" >> "$tmpc"
74 if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
84 printf "checking whether compiler accepts %s... " "$2"
85 echo "typedef int x;" > "$tmpc"
86 if $CC $CFLAGS_TRY $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
88 eval "$1=\"\${$1} \$2\""
98 printf "checking whether linker accepts %s... " "$2"
99 echo "typedef int x;" > "$tmpc"
100 if $CC $LDFLAGS_TRY -nostdlib -shared "$2" -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
102 eval "$1=\"\${$1} \$2\""
113 # Beginning of actual script
124 prefix=/usr/local/musl
125 exec_prefix='$(prefix)'
126 bindir='$(exec_prefix)/bin'
127 libdir='$(prefix)/lib'
128 includedir='$(prefix)/include'
146 --srcdir=*) srcdir=${arg#*=} ;;
147 --prefix=*) prefix=${arg#*=} ;;
148 --exec-prefix=*) exec_prefix=${arg#*=} ;;
149 --bindir=*) bindir=${arg#*=} ;;
150 --libdir=*) libdir=${arg#*=} ;;
151 --includedir=*) includedir=${arg#*=} ;;
152 --syslibdir=*) syslibdir=${arg#*=} ;;
153 --enable-shared|--enable-shared=yes) shared=yes ;;
154 --disable-shared|--enable-shared=no) shared=no ;;
155 --enable-static|--enable-static=yes) static=yes ;;
156 --disable-static|--enable-static=no) static=no ;;
157 --enable-optimize) optimize=yes ;;
158 --enable-optimize=*) optimize=${arg#*=} ;;
159 --disable-optimize) optimize=no ;;
160 --enable-debug|--enable-debug=yes) debug=yes ;;
161 --disable-debug|--enable-debug=no) debug=no ;;
162 --enable-warnings|--enable-warnings=yes) warnings=yes ;;
163 --disable-warnings|--enable-warnings=no) warnings=no ;;
164 --enable-visibility|--enable-visibility=yes) visibility=yes ;;
165 --disable-visibility|--enable-visibility=no) visibility=no ;;
166 --enable-wrapper|--enable-wrapper=yes) wrapper=detect ;;
167 --enable-wrapper=all) wrapper=yes ; gcc_wrapper=yes ; clang_wrapper=yes ;;
168 --enable-wrapper=gcc) wrapper=yes ; gcc_wrapper=yes ;;
169 --enable-wrapper=clang) wrapper=yes ; clang_wrapper=yes ;;
170 --disable-wrapper|--enable-wrapper=no) wrapper=no ;;
171 --enable-gcc-wrapper|--enable-gcc-wrapper=yes) wrapper=yes ; gcc_wrapper=yes ;;
172 --disable-gcc-wrapper|--enable-gcc-wrapper=no) wrapper=no ;;
173 --enable-*|--disable-*|--with-*|--without-*|--*dir=*|--build=*) ;;
174 --host=*|--target=*) target=${arg#*=} ;;
175 -* ) echo "$0: unknown option $arg" ;;
176 CC=*) CC=${arg#*=} ;;
177 CFLAGS=*) CFLAGS=${arg#*=} ;;
178 CPPFLAGS=*) CPPFLAGS=${arg#*=} ;;
179 LDFLAGS=*) LDFLAGS=${arg#*=} ;;
180 CROSS_COMPILE=*) CROSS_COMPILE=${arg#*=} ;;
181 LIBCC=*) LIBCC=${arg#*=} ;;
187 for i in srcdir prefix exec_prefix bindir libdir includedir syslibdir ; do
192 # Get the source dir for out-of-tree builds
194 if test -z "$srcdir" ; then
195 srcdir="${0%/configure}"
198 abs_builddir="$(pwd)" || fail "$0: cannot determine working directory"
199 abs_srcdir="$(cd $srcdir && pwd)" || fail "$0: invalid source directory $srcdir"
200 test "$abs_srcdir" = "$abs_builddir" && srcdir=.
201 test "$srcdir" != "." -a -f Makefile -a ! -h Makefile && fail "$0: Makefile already exists in the working directory"
204 # Get a temp filename we can use
208 while : ; do i=$(($i+1))
209 tmpc="./conf$$-$PPID-$i.c"
210 2>|/dev/null > "$tmpc" && break
211 test "$i" -gt 50 && fail "$0: cannot create temporary file $tmpc"
214 trap 'rm "$tmpc"' EXIT INT QUIT TERM HUP
217 # Find a C compiler to use
219 printf "checking for C compiler... "
220 trycc ${CROSS_COMPILE}gcc
221 trycc ${CROSS_COMPILE}c99
222 trycc ${CROSS_COMPILE}cc
224 test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }
226 printf "checking whether C compiler works... "
227 echo "typedef int x;" > "$tmpc"
228 if output=$($CC $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" 2>&1) ; then
231 printf "no; compiler output follows:\n%s\n" "$output"
236 # Figure out options to force errors on unknown flags.
238 tryflag CFLAGS_TRY -Werror=unknown-warning-option
239 tryflag CFLAGS_TRY -Werror=unused-command-line-argument
240 tryldflag LDFLAGS_TRY -Werror=unknown-warning-option
241 tryldflag LDFLAGS_TRY -Werror=unused-command-line-argument
244 # Need to know if the compiler is gcc or clang to decide which toolchain
247 printf "checking for C compiler family... "
248 cc_ver="$(LC_ALL=C $CC -v 2>&1)"
250 if fnmatch '*gcc\ version*' "$cc_ver" ; then
252 elif fnmatch '*clang\ version*' "$cc_ver" ; then
258 # Figure out toolchain wrapper to build
260 if test "$wrapper" = auto -o "$wrapper" = detect ; then
261 echo "#include <stdlib.h>" > "$tmpc"
262 echo "#if ! __GLIBC__" >> "$tmpc"
263 echo "#error no" >> "$tmpc"
264 echo "#endif" >> "$tmpc"
265 printf "checking for toolchain wrapper to build... "
266 if test "$wrapper" = auto && ! $CC -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
268 elif test "$cc_family" = gcc ; then
271 elif test "$cc_family" = clang ; then
276 if test "$wrapper" = detect ; then
277 fail "$0: could not find an appropriate toolchain wrapper"
282 if test "$gcc_wrapper" = yes ; then
283 tools="$tools obj/musl-gcc"
284 tool_libs="$tool_libs lib/musl-gcc.specs"
286 if test "$clang_wrapper" = yes ; then
287 tools="$tools obj/musl-clang obj/ld.musl-clang"
291 # Find the target architecture
293 printf "checking target system type... "
294 test -n "$target" || target=$($CC -dumpmachine 2>/dev/null) || target=unknown
295 printf "%s\n" "$target"
298 # Convert to just ARCH
301 # Catch these early to simplify matching for 32-bit archs
302 mips64*|powerpc64*) fail "$0: unsupported target \"$target\"" ;;
304 aarch64*) ARCH=aarch64 ;;
305 i?86-nt32*) ARCH=nt32 ;;
307 x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;;
308 x86_64-nt64*) ARCH=nt64 ;;
309 x86_64*) ARCH=x86_64 ;;
311 microblaze*) ARCH=microblaze ;;
313 powerpc*) ARCH=powerpc ;;
314 sh[1-9bel-]*|sh|superh*) ARCH=sh ;;
315 unknown) fail "$0: unable to detect target arch; try $0 --target=..." ;;
316 *) fail "$0: unknown or unsupported target \"$target\"" ;;
320 # Try to get a conforming C99 freestanding environment
322 tryflag CFLAGS_C99FSE -std=c99
323 tryflag CFLAGS_C99FSE -nostdinc
324 tryflag CFLAGS_C99FSE -ffreestanding \
325 || tryflag CFLAGS_C99FSE -fno-builtin
326 tryflag CFLAGS_C99FSE -fexcess-precision=standard \
327 || { test "$ARCH" = i386 && tryflag CFLAGS_C99FSE -ffloat-store ; }
328 tryflag CFLAGS_C99FSE -frounding-math
331 # We may use the may_alias attribute if __GNUC__ is defined, so
332 # if the compiler defines __GNUC__ but does not provide it,
333 # it must be defined away as part of the CFLAGS.
335 printf "checking whether compiler needs attribute((may_alias)) suppression... "
339 __attribute__((__may_alias__))
343 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS \
344 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
348 CFLAGS_C99FSE="$CFLAGS_C99FSE -D__may_alias__="
352 # The GNU toolchain defaults to assuming unmarked files need an
353 # executable stack, potentially exposing vulnerabilities in programs
354 # linked with such object files. Fix this.
356 tryflag CFLAGS_C99FSE -Wa,--noexecstack
359 # Check for options to disable stack protector, which needs to be
360 # disabled for a few early-bootstrap translation units. If not found,
361 # this is not an error; we assume the toolchain does not do ssp.
363 tryflag CFLAGS_NOSSP -fno-stack-protector
366 # Check for options that may be needed to prevent the compiler from
367 # generating self-referential versions of memcpy,, memmove, memcmp,
368 # and memset. Really, we should add a check to determine if this
369 # option is sufficient, and if not, add a macro to cripple these
370 # functions with volatile...
372 tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns
375 # Enable debugging if requessted.
377 test "$debug" = yes && CFLAGS_AUTO=-g
380 # Preprocess asm files to add extra debugging information if debug is
381 # enabled, our assembler supports the needed directives, and the
382 # preprocessing script has been written for our architecture.
384 printf "checking whether we should preprocess assembly to add debugging information... "
385 if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" &&
386 test -f "tools/add-cfi.$ARCH.awk" &&
387 printf ".file 1 \"srcfile.s\"\n.line 1\n.cfi_startproc\n.cfi_endproc" | $CC -g -x assembler -c -o /dev/null 2>/dev/null -
393 printf "%s\n" "$ADD_CFI"
396 # Possibly add a -O option to CFLAGS and select modules to optimize with
397 # -O3 based on the status of --enable-optimize and provided CFLAGS.
399 printf "checking for optimization settings... "
402 if fnmatch '-O*|*\ -O*' "$CFLAGS_AUTO $CFLAGS" ; then
403 printf "using provided CFLAGS\n" ;optimize=no
405 printf "using defaults\n" ; optimize=yes
408 xsize|xnone) printf "minimize size\n" ; optimize=size ;;
409 xno|x) printf "disabled\n" ; optimize=no ;;
410 *) printf "custom\n" ;;
413 test "$optimize" = no || tryflag CFLAGS_AUTO -Os || tryflag CFLAGS_AUTO -O2
414 test "$optimize" = yes && optimize="internal,malloc,string"
416 if fnmatch 'no|size' "$optimize" ; then :
418 printf "components to be optimized for speed:"
419 while test "$optimize" ; do
421 *,*) this=${optimize%%,*} optimize=${optimize#*,} ;;
422 *) this=$optimize optimize=
427 */*) this=$this*.c ;;
430 OPTIMIZE_GLOBS="$OPTIMIZE_GLOBS $this"
432 OPTIMIZE_GLOBS=${OPTIMIZE_GLOBS# }
437 tryflag CFLAGS_AUTO -pipe
440 # If debugging is disabled, omit frame pointer. Modern GCC does this
441 # anyway on most archs even when debugging is enabled since the frame
442 # pointer is no longer needed for debugging.
444 if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" ; then :
446 tryflag CFLAGS_AUTO -fomit-frame-pointer
450 # Modern GCC wants to put DWARF tables (used for debugging and
451 # unwinding) in the loaded part of the program where they are
452 # unstrippable. These options force them back to debug sections (and
453 # cause them not to get generated at all if debugging is off).
455 tryflag CFLAGS_AUTO -fno-unwind-tables
456 tryflag CFLAGS_AUTO -fno-asynchronous-unwind-tables
459 # Attempt to put each function and each data object in its own
460 # section. This both allows additional size optimizations at link
461 # time and works around a dangerous class of compiler/assembler bugs
462 # whereby relative address expressions are constant-folded by the
463 # assembler even when one or more of the symbols involved is
464 # replaceable. See gas pr 18561 and gcc pr 66609, 68178, etc.
466 tryflag CFLAGS_AUTO -ffunction-sections
467 tryflag CFLAGS_AUTO -fdata-sections
470 # On x86, make sure we don't have incompatible instruction set
471 # extensions enabled by default. This is bad for making static binaries.
472 # We cheat and use i486 rather than i386 because i386 really does not
473 # work anyway (issues with atomic ops).
474 # Some build environments pass -march and -mtune options via CC, so
475 # check both CC and CFLAGS.
477 if test "$ARCH" = "i386" ; then
478 fnmatch '-march=*|*\ -march=*' "$CC $CFLAGS" || tryldflag CFLAGS_AUTO -march=i486
479 fnmatch '-mtune=*|*\ -mtune=*' "$CC $CFLAGS" || tryldflag CFLAGS_AUTO -mtune=generic
483 # Even with -std=c99, gcc accepts some constructs which are constraint
484 # violations. We want to treat these as errors regardless of whether
485 # other purely stylistic warnings are enabled -- especially implicit
486 # function declarations, which are a dangerous programming error.
488 tryflag CFLAGS_AUTO -Werror=implicit-function-declaration
489 tryflag CFLAGS_AUTO -Werror=implicit-int
490 tryflag CFLAGS_AUTO -Werror=pointer-sign
491 tryflag CFLAGS_AUTO -Werror=pointer-arith
493 if test "x$warnings" = xyes ; then
494 tryflag CFLAGS_AUTO -Wall
495 tryflag CFLAGS_AUTO -Wno-parentheses
496 tryflag CFLAGS_AUTO -Wno-uninitialized
497 tryflag CFLAGS_AUTO -Wno-missing-braces
498 tryflag CFLAGS_AUTO -Wno-unused-value
499 tryflag CFLAGS_AUTO -Wno-unused-but-set-variable
500 tryflag CFLAGS_AUTO -Wno-unknown-pragmas
501 tryflag CFLAGS_AUTO -Wno-pointer-to-int-cast
504 if test "x$visibility" = xauto ; then
505 # This test checks toolchain support for several things:
506 # - the -include option
507 # - the attributes/pragmas used in vis.h
508 # - linking code that takes the address of protected symbols
509 # - gcc 3.x bug that wrongly claims declarations mismatch
510 printf "checking whether global visibility preinclude works... "
512 __attribute__((__visibility__("default")))
513 extern struct a *const x;
519 int bar(void) { fp = foo; return foo(); }
521 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS \
522 -DSHARED -fPIC -I$srcdir/src/internal -include vis.h \
523 -nostdlib -shared -Wl,-Bsymbolic-functions \
524 -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
529 printf "%s\n" "$visibility"
532 if test "x$visibility" = xyes ; then
533 CFLAGS_AUTO="$CFLAGS_AUTO -include vis.h"
534 CFLAGS_AUTO="${CFLAGS_AUTO# }"
537 # Determine if the compiler produces position-independent code (PIC)
538 # by default. If so, we don't need to compile separate object files
539 # for libc.a and libc.so.
540 if trycppif __PIC__ "$CFLAGS_C99FSE $CPPFLAGS $CFLAGS" ; then
546 # Reduce space lost to padding for alignment purposes by sorting data
547 # objects according to their alignment reqirements. This approximates
549 tryldflag LDFLAGS_AUTO -Wl,--sort-section,alignment
550 tryldflag LDFLAGS_AUTO -Wl,--sort-common
552 # When linking shared library, drop dummy weak definitions that were
553 # replaced by strong definitions from other translation units.
554 tryldflag LDFLAGS_AUTO -Wl,--gc-sections
556 # Some patched GCC builds have these defaults messed up...
557 tryldflag LDFLAGS_AUTO -Wl,--hash-style=both
559 # Prevent linking if there are undefined symbols; if any exist,
560 # libc.so will crash at runtime during relocation processing.
561 # The common way this can happen is failure to link the compiler
562 # runtime library; implementation error is also a possibility.
563 tryldflag LDFLAGS_AUTO -Wl,--no-undefined
565 # Avoid exporting symbols from compiler runtime libraries. They
566 # should be hidden anyway, but some toolchains including old gcc
567 # versions built without shared library support and pcc are broken.
568 tryldflag LDFLAGS_AUTO -Wl,--exclude-libs=ALL
570 # Linking with -Bsymbolic-functions is no longer mandatory for
571 # the dynamic linker to work, but enable it if it works as
572 # a linking optimization.
573 tryldflag LDFLAGS_AUTO -Wl,-Bsymbolic-functions
575 # Find compiler runtime library
576 test -z "$LIBCC" && tryldflag LIBCC -lgcc && tryldflag LIBCC -lgcc_eh
577 test -z "$LIBCC" && tryldflag LIBCC -lcompiler_rt
578 test -z "$LIBCC" && try_libcc=`$CC -print-file-name=libpcc.a 2>/dev/null` \
579 && tryldflag LIBCC "$try_libcc"
580 printf "using compiler runtime libraries: %s\n" "$LIBCC"
582 # Figure out arch variants for archs with variants
584 t="$CFLAGS_C99FSE $CPPFLAGS $CFLAGS"
586 if test "$ARCH" = "x86_64" ; then
587 trycppif __ILP32__ "$t" && ARCH=x32
590 if test "$ARCH" = "arm" ; then
591 trycppif __ARMEB__ "$t" && SUBARCH=${SUBARCH}eb
592 trycppif __ARM_PCS_VFP "$t" && SUBARCH=${SUBARCH}hf
593 # Versions of clang up until at least 3.8 have the wrong constraint codes
594 # for floating point operands to inline asm. Detect this so the affected
595 # source files can just disable the asm.
596 if test "$cc_family" = clang ; then
597 printf "checking whether clang's vfp asm constraints work... "
598 echo 'float f(float x) { __asm__("":"+t"(x)); return x; }' > "$tmpc"
599 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
603 CFLAGS_AUTO="$CFLAGS_AUTO -DBROKEN_VFP_ASM"
604 CFLAGS_AUTO="${CFLAGS_AUTO# }"
609 if test "$ARCH" = "aarch64" ; then
610 trycppif __AARCH64EB__ "$t" && SUBARCH=${SUBARCH}_be
613 if test "$ARCH" = "mips" ; then
614 trycppif "_MIPSEL || __MIPSEL || __MIPSEL__" "$t" && SUBARCH=${SUBARCH}el
615 trycppif __mips_soft_float "$t" && SUBARCH=${SUBARCH}-sf
618 test "$ARCH" = "microblaze" && trycppif __MICROBLAZEEL__ "$t" \
619 && SUBARCH=${SUBARCH}el
621 if test "$ARCH" = "sh" ; then
622 tryflag CFLAGS_AUTO -Wa,--isa=any
623 trycppif __BIG_ENDIAN__ "$t" && SUBARCH=${SUBARCH}eb
624 if trycppif "__SH_FPU_ANY__ || __SH4__" "$t" ; then
625 # Some sh configurations are broken and replace double with float
626 # rather than using softfloat when the fpu is present but only
627 # supports single precision. Reject them.
628 printf "checking whether compiler's double type is IEEE double... "
629 echo 'typedef char dblcheck[(int)sizeof(double)-5];' > "$tmpc"
630 if $CC $CFLAGS_C99FSE $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
634 fail "$0: error: compiler's floating point configuration is unsupported"
637 SUBARCH=${SUBARCH}-nofpu
639 if trycppif __SH_FDPIC__ "$t" ; then
640 SUBARCH=${SUBARCH}-fdpic
645 && printf "configured for %s variant: %s\n" "$ARCH" "$ARCH$SUBARCH"
647 case "$ARCH$SUBARCH" in
648 arm) ASMSUBARCH=el ;;
649 *) ASMSUBARCH=$SUBARCH ;;
653 # Some archs (powerpc) have different possible long double formats
654 # that the compiler can be configured for. The logic for whether this
655 # is supported is in bits/float.h; in general, it is not. We need to
656 # check for mismatches here or code in printf, strotd, and scanf will
657 # be dangerously incorrect because it depends on (1) the macros being
658 # correct, and (2) IEEE semantics.
660 printf "checking whether compiler's long double definition matches float.h... "
661 echo '#include <float.h>' > "$tmpc"
662 echo '#if LDBL_MANT_DIG == 53' >> "$tmpc"
663 echo 'typedef char ldcheck[9-(int)sizeof(long double)];' >> "$tmpc"
664 echo '#endif' >> "$tmpc"
665 if $CC $CFLAGS_C99FSE \
666 -I$srcdir/arch/$ARCH -I$srcdir/arch/generic -I$srcdir/include \
667 $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
671 fail "$0: error: unsupported long double type"
675 # Some build systems globally pass in broken CFLAGS like -ffast-math
676 # for all packages. On recent GCC we can detect this and error out
677 # early rather than producing a seriously-broken math library.
679 if trycppif "__FAST_MATH__" \
680 "$CFLAGS_C99FSE $CPPFLAGS $CFLAGS" ; then
681 fail "$0: error: compiler has broken floating point; check CFLAGS"
684 printf "creating config.mak... "
686 cmdline=$(quote "$0")
687 for i ; do cmdline="$cmdline $(quote "$i")" ; done
689 exec 3>&1 1>config.mak
693 # This version of config.mak was generated by:
695 # Any changes made here will be lost if configure is re-run
698 ASMSUBARCH = $ASMSUBARCH
701 exec_prefix = $exec_prefix
704 includedir = $includedir
705 syslibdir = $syslibdir
708 CFLAGS_AUTO = $CFLAGS_AUTO
709 CFLAGS_C99FSE = $CFLAGS_C99FSE
710 CFLAGS_MEMOPS = $CFLAGS_MEMOPS
711 CFLAGS_NOSSP = $CFLAGS_NOSSP
714 LDFLAGS_AUTO = $LDFLAGS_AUTO
715 CROSS_COMPILE = $CROSS_COMPILE
717 OPTIMIZE_GLOBS = $OPTIMIZE_GLOBS
719 TOOL_LIBS = $tool_libs
722 test "x$static" = xno && echo "STATIC_LIBS ="
723 test "x$shared" = xno && echo "SHARED_LIBS ="
724 test "x$cc_family" = xgcc && echo 'WRAPCC_GCC = $(CC)'
725 test "x$cc_family" = xclang && echo 'WRAPCC_CLANG = $(CC)'
726 test "x$pic_default" = xyes && echo 'AOBJS = $(LOBJS)'
729 test "$srcdir" = "." || ln -sf $srcdir/Makefile .