1# This file is generated from configure.ac by Autoconf. DO NOT EDIT! 2 # Local configure fragment for sysdeps/arc. 3 4$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h 5 6libc_cv_have_sdata_section=no 7 8# For ARC, historically ; was used for comments and not newline 9# Later # also got added to comment list, but ; couldn't be switched to 10# canonical newline as there's lots of code out there which will break 11libc_cv_asm_line_sep='`' 12cat >>confdefs.h <<_ACEOF 13#define ASM_LINE_SEP $libc_cv_asm_line_sep 14_ACEOF 15 16 17# For big endian ABI, generate a symbol for selecting right dynamic linker 18 19 20{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 21$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 22if ${ac_cv_path_GREP+:} false; then : 23 $as_echo_n "(cached) " >&6 24else 25 if test -z "$GREP"; then 26 ac_path_GREP_found=false 27 # Loop through the user's path and test for each of PROGNAME-LIST 28 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 30do 31 IFS=$as_save_IFS 32 test -z "$as_dir" && as_dir=. 33 for ac_prog in grep ggrep; do 34 for ac_exec_ext in '' $ac_executable_extensions; do 35 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 36 as_fn_executable_p "$ac_path_GREP" || continue 37# Check for GNU ac_path_GREP and select it if it is found. 38 # Check for GNU $ac_path_GREP 39case `"$ac_path_GREP" --version 2>&1` in 40*GNU*) 41 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 42*) 43 ac_count=0 44 $as_echo_n 0123456789 >"conftest.in" 45 while : 46 do 47 cat "conftest.in" "conftest.in" >"conftest.tmp" 48 mv "conftest.tmp" "conftest.in" 49 cp "conftest.in" "conftest.nl" 50 $as_echo 'GREP' >> "conftest.nl" 51 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 52 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 53 as_fn_arith $ac_count + 1 && ac_count=$as_val 54 if test $ac_count -gt ${ac_path_GREP_max-0}; then 55 # Best one so far, save it but keep looking for a better one 56 ac_cv_path_GREP="$ac_path_GREP" 57 ac_path_GREP_max=$ac_count 58 fi 59 # 10*(2^10) chars as input seems more than enough 60 test $ac_count -gt 10 && break 61 done 62 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 63esac 64 65 $ac_path_GREP_found && break 3 66 done 67 done 68 done 69IFS=$as_save_IFS 70 if test -z "$ac_cv_path_GREP"; then 71 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 72 fi 73else 74 ac_cv_path_GREP=$GREP 75fi 76 77fi 78{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 79$as_echo "$ac_cv_path_GREP" >&6; } 80 GREP="$ac_cv_path_GREP" 81 82 83{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 84$as_echo_n "checking for egrep... " >&6; } 85if ${ac_cv_path_EGREP+:} false; then : 86 $as_echo_n "(cached) " >&6 87else 88 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 89 then ac_cv_path_EGREP="$GREP -E" 90 else 91 if test -z "$EGREP"; then 92 ac_path_EGREP_found=false 93 # Loop through the user's path and test for each of PROGNAME-LIST 94 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 for ac_prog in egrep; do 100 for ac_exec_ext in '' $ac_executable_extensions; do 101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 102 as_fn_executable_p "$ac_path_EGREP" || continue 103# Check for GNU ac_path_EGREP and select it if it is found. 104 # Check for GNU $ac_path_EGREP 105case `"$ac_path_EGREP" --version 2>&1` in 106*GNU*) 107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 108*) 109 ac_count=0 110 $as_echo_n 0123456789 >"conftest.in" 111 while : 112 do 113 cat "conftest.in" "conftest.in" >"conftest.tmp" 114 mv "conftest.tmp" "conftest.in" 115 cp "conftest.in" "conftest.nl" 116 $as_echo 'EGREP' >> "conftest.nl" 117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 119 as_fn_arith $ac_count + 1 && ac_count=$as_val 120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 121 # Best one so far, save it but keep looking for a better one 122 ac_cv_path_EGREP="$ac_path_EGREP" 123 ac_path_EGREP_max=$ac_count 124 fi 125 # 10*(2^10) chars as input seems more than enough 126 test $ac_count -gt 10 && break 127 done 128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 129esac 130 131 $ac_path_EGREP_found && break 3 132 done 133 done 134 done 135IFS=$as_save_IFS 136 if test -z "$ac_cv_path_EGREP"; then 137 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 138 fi 139else 140 ac_cv_path_EGREP=$EGREP 141fi 142 143 fi 144fi 145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 146$as_echo "$ac_cv_path_EGREP" >&6; } 147 EGREP="$ac_cv_path_EGREP" 148 149 150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 151$as_echo_n "checking for big endian... " >&6; } 152if ${libc_cv_arc_be+:} false; then : 153 $as_echo_n "(cached) " >&6 154else 155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 156/* end confdefs.h. */ 157#ifdef __BIG_ENDIAN__ 158 yes 159 #endif 160 161_ACEOF 162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 163 $EGREP "yes" >/dev/null 2>&1; then : 164 libc_cv_arc_be=yes 165else 166 libc_cv_arc_be=no 167fi 168rm -f conftest* 169 170fi 171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5 172$as_echo "$libc_cv_arc_be" >&6; } 173if test $libc_cv_arc_be = yes; then 174 # For shlib-versions. 175 $as_echo "#define HAVE_ARC_BE 1" >>confdefs.h 176 177 config_vars="$config_vars 178default-abi = arcbe" 179else 180 config_vars="$config_vars 181default-abi = arcle" 182fi 183