📄 configure
字号:
# FIXME: We temporarily define our own version of AC_PROG_CC. This is# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We# are building a library that must be included in all links, so we # can't link an executable until this lib is built.# autoconf should provide a way to do this.cat >> confdefs.h <<\EOF#define HAVE_GNU_LD 1EOFcase "${target}" in *-*-cygwin*) ;; a29k-amd-udi) ;; arc-*-*) ;; arm-*-pe) ;; arm-*-*) ;; strongarm-*-*) ;; d10v*) ;; h8300*-*-*) ;; h8500-*-*) ;; i345686-*-sco*) ;; m32r-*-*) ;; mn10?00-*-*) ;; powerpcle-*-pe) ;; sh*-*-*) ;; sparc-sun-sunos*) ;; sparc64-*-*) ;; thumb-*-pe) ;; thumb-*-*) ;; v850-*-*) ;; v850e-*-*) ;; v850ea-*-*) ;; w65-*-*) ;; xstormy16-*-*) ;; z8k-*-*) ;; *) cat >> confdefs.h <<\EOF#define MISSING_SYSCALL_NAMES 1EOF ;;esaccase "${target}" in *-*-elf) cat >> confdefs.h <<\EOF#define HAVE_ELF 1EOF echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6echo "configure:811: checking for .previous assembler directive" >&5if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.s <<EOF.section foo_section.previousEOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then cat >> confdefs.h <<\EOF#define HAVE_ASM_PREVIOUS_DIRECTIVE 1EOF fi rm -f conftest*fiecho "$ac_t""$libc_cv_asm_previous_directive" 1>&6 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6echo "configure:831: checking for .popsection assembler directive" >&5if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.s <<EOF.pushsection foo_section.popsectionEOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then cat >> confdefs.h <<\EOF#define HAVE_ASM_POPSECTION_DIRECTIVE 1EOF fi rm -f conftest*fiecho "$ac_t""$libc_cv_asm_popsection_directive" 1>&6 echo $ac_n "checking for section attributes""... $ac_c" 1>&6echo "configure:851: checking for section attributes" >&5if eval "test \"`echo '$''{'libc_cv_section_attributes'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.c <<EOFint secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;int main() {}EOF if { ac_try='${CC-cc} -c $CFLAGS conftest.c 1>&5'; { (eval echo configure:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then cat >> confdefs.h <<\EOF#define HAVE_SECTION_ATTRIBUTES 1EOF fi rm -f conftest*fiecho "$ac_t""$libc_cv_section_attributes" 1>&6 ;;esacecho $ac_n "checking for function prefix""... $ac_c" 1>&6echo "configure:873: checking for function prefix" >&5if eval "test \"`echo '$''{'libc_dollar_prefix'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.c <<\EOFfoo () { }EOFif { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null'; { (eval echo configure:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };then libc_dollar_prefix=yeselse libc_dollar_prefix=nofirm -f conftest* fiecho "$ac_t""$libc_dollar_prefix" 1>&6if test $libc_dollar_prefix = yes ; then cat >> confdefs.h <<\EOF#define __SYMBOL_PREFIX "$"EOFelse cat >> confdefs.h <<\EOF#define __SYMBOL_PREFIX ""EOFfi# Extract the first word of "gcc", so it can be a program name with args.set dummy gcc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:905: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs"fifiCC="$ac_cv_prog_CC"if test -n "$CC"; then echo "$ac_t""$CC" 1>&6else echo "$ac_t""no" 1>&6fiif test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.set dummy cc; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:935: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs"if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fifififiCC="$ac_cv_prog_CC"if test -n "$CC"; then echo "$ac_t""$CC" 1>&6else echo "$ac_t""no" 1>&6fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }fiecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6echo "configure:984: checking whether we are using GNU C" >&5if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.c <<EOF#ifdef __GNUC__ yes;#endifEOFif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yeselse ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then GCC=yes ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yeselse ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then CFLAGS="-g -O2" else CFLAGS="-O2" fielse GCC= test "${CFLAGS+set}" = set || CFLAGS="-g"fiAS=${AS-as}AR=${AR-ar}LD=${LD-ld}# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1044: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6else echo "$ac_t""no" 1>&6fihost_makefile_frag=${srcdir}/../config/default.mhhost_makefile_frag_path=$host_makefile_fragtrap '' 1 2 15cat > confcache <<\EOF# This file is a shell script that caches the results of configure# tests run on this system so they can be shared between configure# scripts and configure runs. It is not useful on other systems.# If it contains results you don't want to keep, you may remove or edit it.## By default, configure uses ./config.cache as the cache file,# creating it if it does not exist already. You can give configure# the --cache-file=FILE option to use a different cache file; that is# what configure does when it calls configure scripts in# subdirectories, so they share the cache.# Giving --cache-file=/dev/null disables caching, for debugging configure.# config.status only pays attention to the cache file if you give it the# --recheck option to rerun configure.#EOF# The following way of writing the cache mishandles newlines in values,# but we know of no workaround that is simple, portable, and efficient.# So, don't put newlines in cache variables' values.# Ultrix sh set writes to stderr and can't be redirected directly,# and sets the high bit in the cache file unless we assign to the vars.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -