1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202 else 203 as_have_required=no 204 fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207 else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209 as_found=false 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211 do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234 fi; } 235 IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241 # neutralization value for shells without unset; and this also 242 # works around shells that cannot unset nonexistent variables. 243 # Preserve -v and -x to the replacement shell. 244 BASH_ENV=/dev/null 245 ENV=/dev/null 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247 case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252 esac 253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254 # Admittedly, this is quite paranoid, since all the known shells bail 255 # out after a failed `exec'. 256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257 exit 255 258 fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 268 $0: including any error possibly output before this 269 $0: message. Then install a modern shell, or manually run 270 $0: the script under such a shell if you do have one." 271 fi 272 exit 1 273 fi 274 fi 275 fi 276 SHELL=${CONFIG_SHELL-/bin/sh} 277 export SHELL 278 # Unset more variables known to interfere with behavior of common tools. 279 CLICOLOR_FORCE= GREP_OPTIONS= 280 unset CLICOLOR_FORCE GREP_OPTIONS 281 282 ## --------------------- ## 283 ## M4sh Shell Functions. ## 284 ## --------------------- ## 285 # as_fn_unset VAR 286 # --------------- 287 # Portably unset VAR. 288 as_fn_unset () 289 { 290 { eval $1=; unset $1;} 291 } 292 as_unset=as_fn_unset 293 294 # as_fn_set_status STATUS 295 # ----------------------- 296 # Set $? to STATUS, without forking. 297 as_fn_set_status () 298 { 299 return $1 300 } # as_fn_set_status 301 302 # as_fn_exit STATUS 303 # ----------------- 304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305 as_fn_exit () 306 { 307 set +e 308 as_fn_set_status $1 309 exit $1 310 } # as_fn_exit 311 312 # as_fn_mkdir_p 313 # ------------- 314 # Create "$as_dir" as a directory, including parents if necessary. 315 as_fn_mkdir_p () 316 { 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334 $as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358 } # as_fn_mkdir_p 359 360 # as_fn_executable_p FILE 361 # ----------------------- 362 # Test if FILE is an executable regular file. 363 as_fn_executable_p () 364 { 365 test -f "$1" && test -x "$1" 366 } # as_fn_executable_p 367 # as_fn_append VAR VALUE 368 # ---------------------- 369 # Append the text in VALUE to the end of the definition contained in VAR. Take 370 # advantage of any shell optimizations that allow amortized linear growth over 371 # repeated appends, instead of the typical quadratic growth present in naive 372 # implementations. 373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378 else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383 fi # as_fn_append 384 385 # as_fn_arith ARG... 386 # ------------------ 387 # Perform arithmetic evaluation on the ARGs, and store the result in the 388 # global $as_val. Take advantage of shells that can avoid forks. The arguments 389 # must be portable across $(()) and expr. 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395 else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400 fi # as_fn_arith 401 402 403 # as_fn_error STATUS ERROR [LINENO LOG_FD] 404 # ---------------------------------------- 405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407 # script with STATUS, using 1 if that was 0. 408 as_fn_error () 409 { 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417 } # as_fn_error 418 419 if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422 else 423 as_expr=false 424 fi 425 426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428 else 429 as_basename=false 430 fi 431 432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434 else 435 as_dirname=false 436 fi 437 438 as_me=`$as_basename -- "$0" || 439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442 $as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457 # Avoid depending upon Character Ranges. 458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461 as_cr_digits='0123456789' 462 as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498 } 499 500 ECHO_C= ECHO_N= ECHO_T= 501 case `echo -n x` in #((((( 502 -n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509 *) 510 ECHO_N='-n';; 511 esac 512 513 rm -f conf$$ conf$$.exe conf$$.file 514 if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516 else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519 fi 520 if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534 else 535 as_ln_s='cp -pR' 536 fi 537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538 rmdir conf$$.dir 2>/dev/null 539 540 if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542 else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545 fi 546 547 as_test_x='test -x' 548 as_executable_p=as_fn_executable_p 549 550 # Sed expression to map a string onto a valid CPP name. 551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553 # Sed expression to map a string onto a valid variable name. 554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 test -n "$DJDIR" || exec 7<&0 </dev/null 558 exec 6>&1 559 560 # Name of the host. 561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562 # so uname gets run too. 563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565 # 566 # Initializations. 567 # 568 ac_default_prefix=/usr/local 569 ac_clean_files= 570 ac_config_libobj_dir=. 571 LIBOBJS= 572 cross_compiling=no 573 subdirs= 574 MFLAGS= 575 MAKEFLAGS= 576 577 # Identity of this package. 578 PACKAGE_NAME='GNU C Runtime Library' 579 PACKAGE_TARNAME='libgcc' 580 PACKAGE_VERSION='1.0' 581 PACKAGE_STRING='GNU C Runtime Library 1.0' 582 PACKAGE_BUGREPORT='' 583 PACKAGE_URL='http://www.gnu.org/software/libgcc/' 584 585 ac_unique_file="static-object.mk" 586 ac_includes_default='/* none */' 587 ac_subst_vars='LTLIBOBJS 588 LIBOBJS 589 md_unwind_header 590 unwind_header 591 enable_execute_stack 592 asm_hidden_op 593 extra_parts 594 cpu_type 595 get_gcc_base_ver 596 HAVE_STRUB_SUPPORT 597 thread_header 598 tm_defines 599 tm_file 600 tmake_file 601 sfp_machine_header 602 set_use_emutls 603 set_have_cc_tls 604 vis_hide 605 solaris_ld_v2_maps 606 real_host_noncanonical 607 accel_dir_suffix 608 use_tm_clone_registry 609 force_explicit_eh_registry 610 CET_FLAGS 611 fixed_point 612 enable_decimal_float 613 decimal_float 614 EGREP 615 GREP 616 long_double_type_size 617 double_type_size 618 CPP 619 OBJEXT 620 EXEEXT 621 ac_ct_CC 622 CPPFLAGS 623 LDFLAGS 624 CFLAGS 625 CC 626 LN_S 627 STRIP 628 RANLIB 629 NM 630 LIPO 631 AR 632 toolexeclibdir 633 toolexecdir 634 enable_gcov 635 target_subdir 636 host_subdir 637 build_subdir 638 build_libsubdir 639 target_noncanonical 640 host_noncanonical 641 AWK 642 INSTALL_DATA 643 INSTALL_SCRIPT 644 INSTALL_PROGRAM 645 MAINT 646 slibdir 647 PICFLAG 648 host_os 649 host_vendor 650 host_cpu 651 host 652 build_os 653 build_vendor 654 build_cpu 655 build 656 with_aix_soname 657 enable_vtable_verify 658 enable_shared 659 libgcc_topdir 660 target_alias 661 host_alias 662 build_alias 663 LIBS 664 ECHO_T 665 ECHO_N 666 ECHO_C 667 DEFS 668 mandir 669 localedir 670 libdir 671 psdir 672 pdfdir 673 dvidir 674 htmldir 675 infodir 676 docdir 677 oldincludedir 678 includedir 679 localstatedir 680 sharedstatedir 681 sysconfdir 682 datadir 683 datarootdir 684 libexecdir 685 sbindir 686 bindir 687 program_transform_name 688 prefix 689 exec_prefix 690 PACKAGE_URL 691 PACKAGE_BUGREPORT 692 PACKAGE_STRING 693 PACKAGE_VERSION 694 PACKAGE_TARNAME 695 PACKAGE_NAME 696 PATH_SEPARATOR 697 SHELL' 698 ac_subst_files='' 699 ac_user_opts=' 700 enable_option_checking 701 with_target_subdir 702 with_cross_host 703 with_ld 704 enable_shared 705 enable_vtable_verify 706 with_aix_soname 707 enable_version_specific_runtime_libs 708 with_toolexeclibdir 709 with_slibdir 710 enable_maintainer_mode 711 with_build_libsubdir 712 enable_gcov 713 enable_largefile 714 enable_decimal_float 715 with_system_libunwind 716 enable_cet 717 enable_explicit_exception_frame_registration 718 enable_tm_clone_registry 719 with_glibc_version 720 enable_tls 721 with_gcc_major_version_only 722 ' 723 ac_precious_vars='build_alias 724 host_alias 725 target_alias 726 CC 727 CFLAGS 728 LDFLAGS 729 LIBS 730 CPPFLAGS 731 CPP' 732 733 734 # Initialize some variables set by options. 735 ac_init_help= 736 ac_init_version=false 737 ac_unrecognized_opts= 738 ac_unrecognized_sep= 739 # The variables have the same names as the options, with 740 # dashes changed to underlines. 741 cache_file=/dev/null 742 exec_prefix=NONE 743 no_create= 744 no_recursion= 745 prefix=NONE 746 program_prefix=NONE 747 program_suffix=NONE 748 program_transform_name=s,x,x, 749 silent= 750 site= 751 srcdir= 752 verbose= 753 x_includes=NONE 754 x_libraries=NONE 755 756 # Installation directory options. 757 # These are left unexpanded so users can "make install exec_prefix=/foo" 758 # and all the variables that are supposed to be based on exec_prefix 759 # by default will actually change. 760 # Use braces instead of parens because sh, perl, etc. also accept them. 761 # (The list follows the same order as the GNU Coding Standards.) 762 bindir='${exec_prefix}/bin' 763 sbindir='${exec_prefix}/sbin' 764 libexecdir='${exec_prefix}/libexec' 765 datarootdir='${prefix}/share' 766 datadir='${datarootdir}' 767 sysconfdir='${prefix}/etc' 768 sharedstatedir='${prefix}/com' 769 localstatedir='${prefix}/var' 770 includedir='${prefix}/include' 771 oldincludedir='/usr/include' 772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 773 infodir='${datarootdir}/info' 774 htmldir='${docdir}' 775 dvidir='${docdir}' 776 pdfdir='${docdir}' 777 psdir='${docdir}' 778 libdir='${exec_prefix}/lib' 779 localedir='${datarootdir}/locale' 780 mandir='${datarootdir}/man' 781 782 ac_prev= 783 ac_dashdash= 784 for ac_option 785 do 786 # If the previous option needs an argument, assign it. 787 if test -n "$ac_prev"; then 788 eval $ac_prev=\$ac_option 789 ac_prev= 790 continue 791 fi 792 793 case $ac_option in 794 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 795 *=) ac_optarg= ;; 796 *) ac_optarg=yes ;; 797 esac 798 799 # Accept the important Cygnus configure options, so we can diagnose typos. 800 801 case $ac_dashdash$ac_option in 802 --) 803 ac_dashdash=yes ;; 804 805 -bindir | --bindir | --bindi | --bind | --bin | --bi) 806 ac_prev=bindir ;; 807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 808 bindir=$ac_optarg ;; 809 810 -build | --build | --buil | --bui | --bu) 811 ac_prev=build_alias ;; 812 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 813 build_alias=$ac_optarg ;; 814 815 -cache-file | --cache-file | --cache-fil | --cache-fi \ 816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 817 ac_prev=cache_file ;; 818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 820 cache_file=$ac_optarg ;; 821 822 --config-cache | -C) 823 cache_file=config.cache ;; 824 825 -datadir | --datadir | --datadi | --datad) 826 ac_prev=datadir ;; 827 -datadir=* | --datadir=* | --datadi=* | --datad=*) 828 datadir=$ac_optarg ;; 829 830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 831 | --dataroo | --dataro | --datar) 832 ac_prev=datarootdir ;; 833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 835 datarootdir=$ac_optarg ;; 836 837 -disable-* | --disable-*) 838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 839 # Reject names that are not valid shell variable names. 840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 841 as_fn_error $? "invalid feature name: $ac_useropt" 842 ac_useropt_orig=$ac_useropt 843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 844 case $ac_user_opts in 845 *" 846 "enable_$ac_useropt" 847 "*) ;; 848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 849 ac_unrecognized_sep=', ';; 850 esac 851 eval enable_$ac_useropt=no ;; 852 853 -docdir | --docdir | --docdi | --doc | --do) 854 ac_prev=docdir ;; 855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 856 docdir=$ac_optarg ;; 857 858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 859 ac_prev=dvidir ;; 860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 861 dvidir=$ac_optarg ;; 862 863 -enable-* | --enable-*) 864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 865 # Reject names that are not valid shell variable names. 866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 867 as_fn_error $? "invalid feature name: $ac_useropt" 868 ac_useropt_orig=$ac_useropt 869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 870 case $ac_user_opts in 871 *" 872 "enable_$ac_useropt" 873 "*) ;; 874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 875 ac_unrecognized_sep=', ';; 876 esac 877 eval enable_$ac_useropt=\$ac_optarg ;; 878 879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 881 | --exec | --exe | --ex) 882 ac_prev=exec_prefix ;; 883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 885 | --exec=* | --exe=* | --ex=*) 886 exec_prefix=$ac_optarg ;; 887 888 -gas | --gas | --ga | --g) 889 # Obsolete; use --with-gas. 890 with_gas=yes ;; 891 892 -help | --help | --hel | --he | -h) 893 ac_init_help=long ;; 894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 895 ac_init_help=recursive ;; 896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 897 ac_init_help=short ;; 898 899 -host | --host | --hos | --ho) 900 ac_prev=host_alias ;; 901 -host=* | --host=* | --hos=* | --ho=*) 902 host_alias=$ac_optarg ;; 903 904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 905 ac_prev=htmldir ;; 906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 907 | --ht=*) 908 htmldir=$ac_optarg ;; 909 910 -includedir | --includedir | --includedi | --included | --include \ 911 | --includ | --inclu | --incl | --inc) 912 ac_prev=includedir ;; 913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 914 | --includ=* | --inclu=* | --incl=* | --inc=*) 915 includedir=$ac_optarg ;; 916 917 -infodir | --infodir | --infodi | --infod | --info | --inf) 918 ac_prev=infodir ;; 919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 920 infodir=$ac_optarg ;; 921 922 -libdir | --libdir | --libdi | --libd) 923 ac_prev=libdir ;; 924 -libdir=* | --libdir=* | --libdi=* | --libd=*) 925 libdir=$ac_optarg ;; 926 927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 928 | --libexe | --libex | --libe) 929 ac_prev=libexecdir ;; 930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 931 | --libexe=* | --libex=* | --libe=*) 932 libexecdir=$ac_optarg ;; 933 934 -localedir | --localedir | --localedi | --localed | --locale) 935 ac_prev=localedir ;; 936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 937 localedir=$ac_optarg ;; 938 939 -localstatedir | --localstatedir | --localstatedi | --localstated \ 940 | --localstate | --localstat | --localsta | --localst | --locals) 941 ac_prev=localstatedir ;; 942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 944 localstatedir=$ac_optarg ;; 945 946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 947 ac_prev=mandir ;; 948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 949 mandir=$ac_optarg ;; 950 951 -nfp | --nfp | --nf) 952 # Obsolete; use --without-fp. 953 with_fp=no ;; 954 955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 956 | --no-cr | --no-c | -n) 957 no_create=yes ;; 958 959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 961 no_recursion=yes ;; 962 963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 965 | --oldin | --oldi | --old | --ol | --o) 966 ac_prev=oldincludedir ;; 967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 970 oldincludedir=$ac_optarg ;; 971 972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 973 ac_prev=prefix ;; 974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 975 prefix=$ac_optarg ;; 976 977 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 978 | --program-pre | --program-pr | --program-p) 979 ac_prev=program_prefix ;; 980 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 982 program_prefix=$ac_optarg ;; 983 984 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 985 | --program-suf | --program-su | --program-s) 986 ac_prev=program_suffix ;; 987 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 989 program_suffix=$ac_optarg ;; 990 991 -program-transform-name | --program-transform-name \ 992 | --program-transform-nam | --program-transform-na \ 993 | --program-transform-n | --program-transform- \ 994 | --program-transform | --program-transfor \ 995 | --program-transfo | --program-transf \ 996 | --program-trans | --program-tran \ 997 | --progr-tra | --program-tr | --program-t) 998 ac_prev=program_transform_name ;; 999 -program-transform-name=* | --program-transform-name=* \ 1000 | --program-transform-nam=* | --program-transform-na=* \ 1001 | --program-transform-n=* | --program-transform-=* \ 1002 | --program-transform=* | --program-transfor=* \ 1003 | --program-transfo=* | --program-transf=* \ 1004 | --program-trans=* | --program-tran=* \ 1005 | --progr-tra=* | --program-tr=* | --program-t=*) 1006 program_transform_name=$ac_optarg ;; 1007 1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1009 ac_prev=pdfdir ;; 1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1011 pdfdir=$ac_optarg ;; 1012 1013 -psdir | --psdir | --psdi | --psd | --ps) 1014 ac_prev=psdir ;; 1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1016 psdir=$ac_optarg ;; 1017 1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1019 | -silent | --silent | --silen | --sile | --sil) 1020 silent=yes ;; 1021 1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1023 ac_prev=sbindir ;; 1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1025 | --sbi=* | --sb=*) 1026 sbindir=$ac_optarg ;; 1027 1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1030 | --sharedst | --shareds | --shared | --share | --shar \ 1031 | --sha | --sh) 1032 ac_prev=sharedstatedir ;; 1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1036 | --sha=* | --sh=*) 1037 sharedstatedir=$ac_optarg ;; 1038 1039 -site | --site | --sit) 1040 ac_prev=site ;; 1041 -site=* | --site=* | --sit=*) 1042 site=$ac_optarg ;; 1043 1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1045 ac_prev=srcdir ;; 1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1047 srcdir=$ac_optarg ;; 1048 1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1050 | --syscon | --sysco | --sysc | --sys | --sy) 1051 ac_prev=sysconfdir ;; 1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1054 sysconfdir=$ac_optarg ;; 1055 1056 -target | --target | --targe | --targ | --tar | --ta | --t) 1057 ac_prev=target_alias ;; 1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1059 target_alias=$ac_optarg ;; 1060 1061 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1062 verbose=yes ;; 1063 1064 -version | --version | --versio | --versi | --vers | -V) 1065 ac_init_version=: ;; 1066 1067 -with-* | --with-*) 1068 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1071 as_fn_error $? "invalid package name: $ac_useropt" 1072 ac_useropt_orig=$ac_useropt 1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1074 case $ac_user_opts in 1075 *" 1076 "with_$ac_useropt" 1077 "*) ;; 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1079 ac_unrecognized_sep=', ';; 1080 esac 1081 eval with_$ac_useropt=\$ac_optarg ;; 1082 1083 -without-* | --without-*) 1084 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1087 as_fn_error $? "invalid package name: $ac_useropt" 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092 "with_$ac_useropt" 1093 "*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval with_$ac_useropt=no ;; 1098 1099 --x) 1100 # Obsolete; use --with-x. 1101 with_x=yes ;; 1102 1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1104 | --x-incl | --x-inc | --x-in | --x-i) 1105 ac_prev=x_includes ;; 1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1108 x_includes=$ac_optarg ;; 1109 1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1112 ac_prev=x_libraries ;; 1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1115 x_libraries=$ac_optarg ;; 1116 1117 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1118 Try \`$0 --help' for more information" 1119 ;; 1120 1121 *=*) 1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1123 # Reject names that are not valid shell variable names. 1124 case $ac_envvar in #( 1125 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1126 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1127 esac 1128 eval $ac_envvar=\$ac_optarg 1129 export $ac_envvar ;; 1130 1131 *) 1132 # FIXME: should be removed in autoconf 3.0. 1133 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1135 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1136 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1137 ;; 1138 1139 esac 1140 done 1141 1142 if test -n "$ac_prev"; then 1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1144 as_fn_error $? "missing argument to $ac_option" 1145 fi 1146 1147 if test -n "$ac_unrecognized_opts"; then 1148 case $enable_option_checking in 1149 no) ;; 1150 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1151 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1152 esac 1153 fi 1154 1155 # Check all directory arguments for consistency. 1156 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1157 datadir sysconfdir sharedstatedir localstatedir includedir \ 1158 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1159 libdir localedir mandir 1160 do 1161 eval ac_val=\$$ac_var 1162 # Remove trailing slashes. 1163 case $ac_val in 1164 */ ) 1165 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1166 eval $ac_var=\$ac_val;; 1167 esac 1168 # Be sure to have absolute directory names. 1169 case $ac_val in 1170 [\\/$]* | ?:[\\/]* ) continue;; 1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1172 esac 1173 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1174 done 1175 1176 # There might be people who depend on the old broken behavior: `$host' 1177 # used to hold the argument of --host etc. 1178 # FIXME: To remove some day. 1179 build=$build_alias 1180 host=$host_alias 1181 target=$target_alias 1182 1183 # FIXME: To remove some day. 1184 if test "x$host_alias" != x; then 1185 if test "x$build_alias" = x; then 1186 cross_compiling=maybe 1187 elif test "x$build_alias" != "x$host_alias"; then 1188 cross_compiling=yes 1189 fi 1190 fi 1191 1192 ac_tool_prefix= 1193 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1194 1195 test "$silent" = yes && exec 6>/dev/null 1196 1197 1198 ac_pwd=`pwd` && test -n "$ac_pwd" && 1199 ac_ls_di=`ls -di .` && 1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1201 as_fn_error $? "working directory cannot be determined" 1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1203 as_fn_error $? "pwd does not report name of working directory" 1204 1205 1206 # Find the source files, if location was not specified. 1207 if test -z "$srcdir"; then 1208 ac_srcdir_defaulted=yes 1209 # Try the directory containing this script, then the parent directory. 1210 ac_confdir=`$as_dirname -- "$as_myself" || 1211 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1212 X"$as_myself" : 'X\(//\)[^/]' \| \ 1213 X"$as_myself" : 'X\(//\)$' \| \ 1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1215 $as_echo X"$as_myself" | 1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1217 s//\1/ 1218 q 1219 } 1220 /^X\(\/\/\)[^/].*/{ 1221 s//\1/ 1222 q 1223 } 1224 /^X\(\/\/\)$/{ 1225 s//\1/ 1226 q 1227 } 1228 /^X\(\/\).*/{ 1229 s//\1/ 1230 q 1231 } 1232 s/.*/./; q'` 1233 srcdir=$ac_confdir 1234 if test ! -r "$srcdir/$ac_unique_file"; then 1235 srcdir=.. 1236 fi 1237 else 1238 ac_srcdir_defaulted=no 1239 fi 1240 if test ! -r "$srcdir/$ac_unique_file"; then 1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1242 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1243 fi 1244 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1245 ac_abs_confdir=`( 1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1247 pwd)` 1248 # When building in place, set srcdir=. 1249 if test "$ac_abs_confdir" = "$ac_pwd"; then 1250 srcdir=. 1251 fi 1252 # Remove unnecessary trailing slashes from srcdir. 1253 # Double slashes in file names in object file debugging info 1254 # mess up M-x gdb in Emacs. 1255 case $srcdir in 1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1257 esac 1258 for ac_var in $ac_precious_vars; do 1259 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1260 eval ac_env_${ac_var}_value=\$${ac_var} 1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1262 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1263 done 1264 1265 # 1266 # Report the --help message. 1267 # 1268 if test "$ac_init_help" = "long"; then 1269 # Omit some internal or obsolete options to make the list less imposing. 1270 # This message is too long to be a string in the A/UX 3.1 sh. 1271 cat <<_ACEOF 1272 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems. 1273 1274 Usage: $0 [OPTION]... [VAR=VALUE]... 1275 1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1277 VAR=VALUE. See below for descriptions of some of the useful variables. 1278 1279 Defaults for the options are specified in brackets. 1280 1281 Configuration: 1282 -h, --help display this help and exit 1283 --help=short display options specific to this package 1284 --help=recursive display the short help of all the included packages 1285 -V, --version display version information and exit 1286 -q, --quiet, --silent do not print \`checking ...' messages 1287 --cache-file=FILE cache test results in FILE [disabled] 1288 -C, --config-cache alias for \`--cache-file=config.cache' 1289 -n, --no-create do not create output files 1290 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1291 1292 Installation directories: 1293 --prefix=PREFIX install architecture-independent files in PREFIX 1294 [$ac_default_prefix] 1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1296 [PREFIX] 1297 1298 By default, \`make install' will install all the files in 1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1301 for instance \`--prefix=\$HOME'. 1302 1303 For better control, use the options below. 1304 1305 Fine tuning of the installation directories: 1306 --bindir=DIR user executables [EPREFIX/bin] 1307 --sbindir=DIR system admin executables [EPREFIX/sbin] 1308 --libexecdir=DIR program executables [EPREFIX/libexec] 1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1312 --libdir=DIR object code libraries [EPREFIX/lib] 1313 --includedir=DIR C header files [PREFIX/include] 1314 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1317 --infodir=DIR info documentation [DATAROOTDIR/info] 1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1319 --mandir=DIR man documentation [DATAROOTDIR/man] 1320 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc] 1321 --htmldir=DIR html documentation [DOCDIR] 1322 --dvidir=DIR dvi documentation [DOCDIR] 1323 --pdfdir=DIR pdf documentation [DOCDIR] 1324 --psdir=DIR ps documentation [DOCDIR] 1325 _ACEOF 1326 1327 cat <<\_ACEOF 1328 1329 System types: 1330 --build=BUILD configure for building on BUILD [guessed] 1331 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1332 _ACEOF 1333 fi 1334 1335 if test -n "$ac_init_help"; then 1336 case $ac_init_help in 1337 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";; 1338 esac 1339 cat <<\_ACEOF 1340 1341 Optional Features: 1342 --disable-option-checking ignore unrecognized --enable/--with options 1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1345 --disable-shared don't provide a shared libgcc 1346 --enable-vtable-verify Enable vtable verification feature 1347 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1348 --enable-maintainer-mode 1349 enable make rules and dependencies not useful (and 1350 sometimes confusing) to the casual installer 1351 --disable-gcov don't provide libgcov and related host tools 1352 --disable-largefile omit support for large files 1353 --enable-decimal-float={no,yes,bid,dpd} 1354 enable decimal float extension to C. Selecting 'bid' 1355 or 'dpd' choses which decimal floating point format 1356 to use 1357 --enable-cet enable Intel CET in target libraries [default=auto] 1358 --enable-explicit-exception-frame-registration 1359 register exception tables explicitly at module 1360 start, for use e.g. for compatibility with 1361 installations without PT_GNU_EH_FRAME support 1362 --disable-tm-clone-registry disable TM clone registry 1363 --enable-tls Use thread-local storage [default=yes] 1364 1365 Optional Packages: 1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1368 --with-target-subdir=SUBDIR Configuring in a subdirectory for target 1369 --with-cross-host=HOST Configuring with a cross compiler 1370 --with-ld arrange to use the specified ld (full pathname) 1371 --with-aix-soname=aix|svr4|both 1372 shared library versioning (aka "SONAME") variant to 1373 provide on AIX 1374 --with-toolexeclibdir=DIR 1375 install libraries built with a cross compiler within 1376 DIR 1377 --with-slibdir=DIR shared libraries in DIR LIBDIR 1378 --with-build-libsubdir=DIR Directory where to find libraries for build system 1379 --with-system-libunwind use installed libunwind 1380 --with-glibc-version=M.N 1381 assume GCC used with glibc version M.N or later 1382 --with-gcc-major-version-only 1383 use only GCC major number in filesystem paths 1384 1385 Some influential environment variables: 1386 CC C compiler command 1387 CFLAGS C compiler flags 1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1389 nonstandard directory <lib dir> 1390 LIBS libraries to pass to the linker, e.g. -l<library> 1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1392 you have headers in a nonstandard directory <include dir> 1393 CPP C preprocessor 1394 1395 Use these variables to override the choices made by `configure' or to help 1396 it to find libraries and programs with nonstandard names/locations. 1397 1398 Report bugs to the package provider. 1399 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. 1400 General help using GNU software: <http://www.gnu.org/gethelp/>. 1401 _ACEOF 1402 ac_status=$? 1403 fi 1404 1405 if test "$ac_init_help" = "recursive"; then 1406 # If there are subdirs, report their specific --help. 1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1408 test -d "$ac_dir" || 1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1410 continue 1411 ac_builddir=. 1412 1413 case "$ac_dir" in 1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1415 *) 1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1417 # A ".." for each directory in $ac_dir_suffix. 1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1419 case $ac_top_builddir_sub in 1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1422 esac ;; 1423 esac 1424 ac_abs_top_builddir=$ac_pwd 1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1426 # for backward compatibility: 1427 ac_top_builddir=$ac_top_build_prefix 1428 1429 case $srcdir in 1430 .) # We are building in place. 1431 ac_srcdir=. 1432 ac_top_srcdir=$ac_top_builddir_sub 1433 ac_abs_top_srcdir=$ac_pwd ;; 1434 [\\/]* | ?:[\\/]* ) # Absolute name. 1435 ac_srcdir=$srcdir$ac_dir_suffix; 1436 ac_top_srcdir=$srcdir 1437 ac_abs_top_srcdir=$srcdir ;; 1438 *) # Relative name. 1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1440 ac_top_srcdir=$ac_top_build_prefix$srcdir 1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1442 esac 1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1444 1445 cd "$ac_dir" || { ac_status=$?; continue; } 1446 # Check for guested configure. 1447 if test -f "$ac_srcdir/configure.gnu"; then 1448 echo && 1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1450 elif test -f "$ac_srcdir/configure"; then 1451 echo && 1452 $SHELL "$ac_srcdir/configure" --help=recursive 1453 else 1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1455 fi || ac_status=$? 1456 cd "$ac_pwd" || { ac_status=$?; break; } 1457 done 1458 fi 1459 1460 test -n "$ac_init_help" && exit $ac_status 1461 if $ac_init_version; then 1462 cat <<\_ACEOF 1463 GNU C Runtime Library configure 1.0 1464 generated by GNU Autoconf 2.69 1465 1466 Copyright (C) 2012 Free Software Foundation, Inc. 1467 This configure script is free software; the Free Software Foundation 1468 gives unlimited permission to copy, distribute and modify it. 1469 _ACEOF 1470 exit 1471 fi 1472 1473 ## ------------------------ ## 1474 ## Autoconf initialization. ## 1475 ## ------------------------ ## 1476 1477 # ac_fn_c_try_compile LINENO 1478 # -------------------------- 1479 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1480 ac_fn_c_try_compile () 1481 { 1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1483 rm -f conftest.$ac_objext 1484 if { { ac_try="$ac_compile" 1485 case "(($ac_try" in 1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1487 *) ac_try_echo=$ac_try;; 1488 esac 1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1490 $as_echo "$ac_try_echo"; } >&5 1491 (eval "$ac_compile") 2>conftest.err 1492 ac_status=$? 1493 if test -s conftest.err; then 1494 grep -v '^ *+' conftest.err >conftest.er1 1495 cat conftest.er1 >&5 1496 mv -f conftest.er1 conftest.err 1497 fi 1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1499 test $ac_status = 0; } && { 1500 test -z "$ac_c_werror_flag" || 1501 test ! -s conftest.err 1502 } && test -s conftest.$ac_objext; then : 1503 ac_retval=0 1504 else 1505 $as_echo "$as_me: failed program was:" >&5 1506 sed 's/^/| /' conftest.$ac_ext >&5 1507 1508 ac_retval=1 1509 fi 1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1511 as_fn_set_status $ac_retval 1512 1513 } # ac_fn_c_try_compile 1514 1515 # ac_fn_c_try_cpp LINENO 1516 # ---------------------- 1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1518 ac_fn_c_try_cpp () 1519 { 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1521 if { { ac_try="$ac_cpp conftest.$ac_ext" 1522 case "(($ac_try" in 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1524 *) ac_try_echo=$ac_try;; 1525 esac 1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1527 $as_echo "$ac_try_echo"; } >&5 1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1529 ac_status=$? 1530 if test -s conftest.err; then 1531 grep -v '^ *+' conftest.err >conftest.er1 1532 cat conftest.er1 >&5 1533 mv -f conftest.er1 conftest.err 1534 fi 1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1536 test $ac_status = 0; } > conftest.i && { 1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1538 test ! -s conftest.err 1539 }; then : 1540 ac_retval=0 1541 else 1542 $as_echo "$as_me: failed program was:" >&5 1543 sed 's/^/| /' conftest.$ac_ext >&5 1544 1545 ac_retval=1 1546 fi 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 as_fn_set_status $ac_retval 1549 1550 } # ac_fn_c_try_cpp 1551 1552 # ac_fn_c_try_run LINENO 1553 # ---------------------- 1554 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1555 # that executables *can* be run. 1556 ac_fn_c_try_run () 1557 { 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 if { { ac_try="$ac_link" 1560 case "(($ac_try" in 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562 *) ac_try_echo=$ac_try;; 1563 esac 1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565 $as_echo "$ac_try_echo"; } >&5 1566 (eval "$ac_link") 2>&5 1567 ac_status=$? 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1570 { { case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573 esac 1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575 $as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_try") 2>&5 1577 ac_status=$? 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; }; }; then : 1580 ac_retval=0 1581 else 1582 $as_echo "$as_me: program exited with status $ac_status" >&5 1583 $as_echo "$as_me: failed program was:" >&5 1584 sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=$ac_status 1587 fi 1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592 } # ac_fn_c_try_run 1593 1594 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1595 # -------------------------------------------- 1596 # Tries to find the compile-time value of EXPR in a program that includes 1597 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1598 # computed 1599 ac_fn_c_compute_int () 1600 { 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 if test "$cross_compiling" = yes; then 1603 # Depending upon the size, compute the lo and hi bounds. 1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1605 /* end confdefs.h. */ 1606 $4 1607 int 1608 main () 1609 { 1610 static int test_array [1 - 2 * !(($2) >= 0)]; 1611 test_array [0] = 0; 1612 return test_array [0]; 1613 1614 ; 1615 return 0; 1616 } 1617 _ACEOF 1618 if ac_fn_c_try_compile "$LINENO"; then : 1619 ac_lo=0 ac_mid=0 1620 while :; do 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622 /* end confdefs.h. */ 1623 $4 1624 int 1625 main () 1626 { 1627 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1628 test_array [0] = 0; 1629 return test_array [0]; 1630 1631 ; 1632 return 0; 1633 } 1634 _ACEOF 1635 if ac_fn_c_try_compile "$LINENO"; then : 1636 ac_hi=$ac_mid; break 1637 else 1638 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1639 if test $ac_lo -le $ac_mid; then 1640 ac_lo= ac_hi= 1641 break 1642 fi 1643 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1644 fi 1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1646 done 1647 else 1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649 /* end confdefs.h. */ 1650 $4 1651 int 1652 main () 1653 { 1654 static int test_array [1 - 2 * !(($2) < 0)]; 1655 test_array [0] = 0; 1656 return test_array [0]; 1657 1658 ; 1659 return 0; 1660 } 1661 _ACEOF 1662 if ac_fn_c_try_compile "$LINENO"; then : 1663 ac_hi=-1 ac_mid=-1 1664 while :; do 1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1666 /* end confdefs.h. */ 1667 $4 1668 int 1669 main () 1670 { 1671 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1672 test_array [0] = 0; 1673 return test_array [0]; 1674 1675 ; 1676 return 0; 1677 } 1678 _ACEOF 1679 if ac_fn_c_try_compile "$LINENO"; then : 1680 ac_lo=$ac_mid; break 1681 else 1682 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1683 if test $ac_mid -le $ac_hi; then 1684 ac_lo= ac_hi= 1685 break 1686 fi 1687 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1688 fi 1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1690 done 1691 else 1692 ac_lo= ac_hi= 1693 fi 1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695 fi 1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1697 # Binary search between lo and hi bounds. 1698 while test "x$ac_lo" != "x$ac_hi"; do 1699 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701 /* end confdefs.h. */ 1702 $4 1703 int 1704 main () 1705 { 1706 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1707 test_array [0] = 0; 1708 return test_array [0]; 1709 1710 ; 1711 return 0; 1712 } 1713 _ACEOF 1714 if ac_fn_c_try_compile "$LINENO"; then : 1715 ac_hi=$ac_mid 1716 else 1717 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1718 fi 1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1720 done 1721 case $ac_lo in #(( 1722 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1723 '') ac_retval=1 ;; 1724 esac 1725 else 1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727 /* end confdefs.h. */ 1728 $4 1729 static long int longval () { return $2; } 1730 static unsigned long int ulongval () { return $2; } 1731 #include <stdio.h> 1732 #include <stdlib.h> 1733 int 1734 main () 1735 { 1736 1737 FILE *f = fopen ("conftest.val", "w"); 1738 if (! f) 1739 return 1; 1740 if (($2) < 0) 1741 { 1742 long int i = longval (); 1743 if (i != ($2)) 1744 return 1; 1745 fprintf (f, "%ld", i); 1746 } 1747 else 1748 { 1749 unsigned long int i = ulongval (); 1750 if (i != ($2)) 1751 return 1; 1752 fprintf (f, "%lu", i); 1753 } 1754 /* Do not output a trailing newline, as this causes \r\n confusion 1755 on some platforms. */ 1756 return ferror (f) || fclose (f) != 0; 1757 1758 ; 1759 return 0; 1760 } 1761 _ACEOF 1762 if ac_fn_c_try_run "$LINENO"; then : 1763 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1764 else 1765 ac_retval=1 1766 fi 1767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1768 conftest.$ac_objext conftest.beam conftest.$ac_ext 1769 rm -f conftest.val 1770 1771 fi 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775 } # ac_fn_c_compute_int 1776 1777 # ac_fn_c_check_header_preproc LINENO HEADER VAR 1778 # ---------------------------------------------- 1779 # Tests whether HEADER is present, setting the cache variable VAR accordingly. 1780 ac_fn_c_check_header_preproc () 1781 { 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1784 $as_echo_n "checking for $2... " >&6; } 1785 if eval \${$3+:} false; then : 1786 $as_echo_n "(cached) " >&6 1787 else 1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1789 /* end confdefs.h. */ 1790 #include <$2> 1791 _ACEOF 1792 if ac_fn_c_try_cpp "$LINENO"; then : 1793 eval "$3=yes" 1794 else 1795 eval "$3=no" 1796 fi 1797 rm -f conftest.err conftest.i conftest.$ac_ext 1798 fi 1799 eval ac_res=\$$3 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801 $as_echo "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804 } # ac_fn_c_check_header_preproc 1805 cat >config.log <<_ACEOF 1806 This file contains any messages produced by compilers while 1807 running configure, to aid debugging if configure makes a mistake. 1808 1809 It was created by GNU C Runtime Library $as_me 1.0, which was 1810 generated by GNU Autoconf 2.69. Invocation command line was 1811 1812 $ $0 $@ 1813 1814 _ACEOF 1815 exec 5>>config.log 1816 { 1817 cat <<_ASUNAME 1818 ## --------- ## 1819 ## Platform. ## 1820 ## --------- ## 1821 1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1823 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1824 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1825 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1826 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1827 1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1830 1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1838 1839 _ASUNAME 1840 1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842 for as_dir in $PATH 1843 do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 $as_echo "PATH: $as_dir" 1847 done 1848 IFS=$as_save_IFS 1849 1850 } >&5 1851 1852 cat >&5 <<_ACEOF 1853 1854 1855 ## ----------- ## 1856 ## Core tests. ## 1857 ## ----------- ## 1858 1859 _ACEOF 1860 1861 1862 # Keep a trace of the command line. 1863 # Strip out --no-create and --no-recursion so they do not pile up. 1864 # Strip out --silent because we don't want to record it for future runs. 1865 # Also quote any args containing shell meta-characters. 1866 # Make two passes to allow for proper duplicate-argument suppression. 1867 ac_configure_args= 1868 ac_configure_args0= 1869 ac_configure_args1= 1870 ac_must_keep_next=false 1871 for ac_pass in 1 2 1872 do 1873 for ac_arg 1874 do 1875 case $ac_arg in 1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1878 | -silent | --silent | --silen | --sile | --sil) 1879 continue ;; 1880 *\'*) 1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1882 esac 1883 case $ac_pass in 1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1885 2) 1886 as_fn_append ac_configure_args1 " '$ac_arg'" 1887 if test $ac_must_keep_next = true; then 1888 ac_must_keep_next=false # Got value, back to normal. 1889 else 1890 case $ac_arg in 1891 *=* | --config-cache | -C | -disable-* | --disable-* \ 1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1894 | -with-* | --with-* | -without-* | --without-* | --x) 1895 case "$ac_configure_args0 " in 1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1897 esac 1898 ;; 1899 -* ) ac_must_keep_next=true ;; 1900 esac 1901 fi 1902 as_fn_append ac_configure_args " '$ac_arg'" 1903 ;; 1904 esac 1905 done 1906 done 1907 { ac_configure_args0=; unset ac_configure_args0;} 1908 { ac_configure_args1=; unset ac_configure_args1;} 1909 1910 # When interrupted or exit'd, cleanup temporary files, and complete 1911 # config.log. We remove comments because anyway the quotes in there 1912 # would cause problems or look ugly. 1913 # WARNING: Use '\'' to represent an apostrophe within the trap. 1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1915 trap 'exit_status=$? 1916 # Save into config.log some information that might help in debugging. 1917 { 1918 echo 1919 1920 $as_echo "## ---------------- ## 1921 ## Cache variables. ## 1922 ## ---------------- ##" 1923 echo 1924 # The following way of writing the cache mishandles newlines in values, 1925 ( 1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1927 eval ac_val=\$$ac_var 1928 case $ac_val in #( 1929 *${as_nl}*) 1930 case $ac_var in #( 1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1933 esac 1934 case $ac_var in #( 1935 _ | IFS | as_nl) ;; #( 1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1937 *) { eval $ac_var=; unset $ac_var;} ;; 1938 esac ;; 1939 esac 1940 done 1941 (set) 2>&1 | 1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1943 *${as_nl}ac_space=\ *) 1944 sed -n \ 1945 "s/'\''/'\''\\\\'\'''\''/g; 1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1947 ;; #( 1948 *) 1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1950 ;; 1951 esac | 1952 sort 1953 ) 1954 echo 1955 1956 $as_echo "## ----------------- ## 1957 ## Output variables. ## 1958 ## ----------------- ##" 1959 echo 1960 for ac_var in $ac_subst_vars 1961 do 1962 eval ac_val=\$$ac_var 1963 case $ac_val in 1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1965 esac 1966 $as_echo "$ac_var='\''$ac_val'\''" 1967 done | sort 1968 echo 1969 1970 if test -n "$ac_subst_files"; then 1971 $as_echo "## ------------------- ## 1972 ## File substitutions. ## 1973 ## ------------------- ##" 1974 echo 1975 for ac_var in $ac_subst_files 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 fi 1985 1986 if test -s confdefs.h; then 1987 $as_echo "## ----------- ## 1988 ## confdefs.h. ## 1989 ## ----------- ##" 1990 echo 1991 cat confdefs.h 1992 echo 1993 fi 1994 test "$ac_signal" != 0 && 1995 $as_echo "$as_me: caught signal $ac_signal" 1996 $as_echo "$as_me: exit $exit_status" 1997 } >&5 1998 rm -f core *.core core.conftest.* && 1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2000 exit $exit_status 2001 ' 0 2002 for ac_signal in 1 2 13 15; do 2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2004 done 2005 ac_signal=0 2006 2007 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2008 rm -f -r conftest* confdefs.h 2009 2010 $as_echo "/* confdefs.h */" > confdefs.h 2011 2012 # Predefined preprocessor variables. 2013 2014 cat >>confdefs.h <<_ACEOF 2015 #define PACKAGE_NAME "$PACKAGE_NAME" 2016 _ACEOF 2017 2018 cat >>confdefs.h <<_ACEOF 2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2020 _ACEOF 2021 2022 cat >>confdefs.h <<_ACEOF 2023 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2024 _ACEOF 2025 2026 cat >>confdefs.h <<_ACEOF 2027 #define PACKAGE_STRING "$PACKAGE_STRING" 2028 _ACEOF 2029 2030 cat >>confdefs.h <<_ACEOF 2031 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2032 _ACEOF 2033 2034 cat >>confdefs.h <<_ACEOF 2035 #define PACKAGE_URL "$PACKAGE_URL" 2036 _ACEOF 2037 2038 2039 # Let the site file select an alternate cache file if it wants to. 2040 # Prefer an explicitly selected file to automatically selected ones. 2041 ac_site_file1=NONE 2042 ac_site_file2=NONE 2043 if test -n "$CONFIG_SITE"; then 2044 # We do not want a PATH search for config.site. 2045 case $CONFIG_SITE in #(( 2046 -*) ac_site_file1=./$CONFIG_SITE;; 2047 */*) ac_site_file1=$CONFIG_SITE;; 2048 *) ac_site_file1=./$CONFIG_SITE;; 2049 esac 2050 elif test "x$prefix" != xNONE; then 2051 ac_site_file1=$prefix/share/config.site 2052 ac_site_file2=$prefix/etc/config.site 2053 else 2054 ac_site_file1=$ac_default_prefix/share/config.site 2055 ac_site_file2=$ac_default_prefix/etc/config.site 2056 fi 2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2058 do 2059 test "x$ac_site_file" = xNONE && continue 2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2063 sed 's/^/| /' "$ac_site_file" >&5 2064 . "$ac_site_file" \ 2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2067 as_fn_error $? "failed to load site script $ac_site_file 2068 See \`config.log' for more details" "$LINENO" 5; } 2069 fi 2070 done 2071 2072 if test -r "$cache_file"; then 2073 # Some versions of bash will fail to source /dev/null (special files 2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2077 $as_echo "$as_me: loading cache $cache_file" >&6;} 2078 case $cache_file in 2079 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2080 *) . "./$cache_file";; 2081 esac 2082 fi 2083 else 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2085 $as_echo "$as_me: creating cache $cache_file" >&6;} 2086 >$cache_file 2087 fi 2088 2089 # Check that the precious variables saved in the cache have kept the same 2090 # value. 2091 ac_cache_corrupted=false 2092 for ac_var in $ac_precious_vars; do 2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2094 eval ac_new_set=\$ac_env_${ac_var}_set 2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2096 eval ac_new_val=\$ac_env_${ac_var}_value 2097 case $ac_old_set,$ac_new_set in 2098 set,) 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2101 ac_cache_corrupted=: ;; 2102 ,set) 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2105 ac_cache_corrupted=: ;; 2106 ,);; 2107 *) 2108 if test "x$ac_old_val" != "x$ac_new_val"; then 2109 # differences in whitespace do not lead to failure. 2110 ac_old_val_w=`echo x $ac_old_val` 2111 ac_new_val_w=`echo x $ac_new_val` 2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2115 ac_cache_corrupted=: 2116 else 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2119 eval $ac_var=\$ac_old_val 2120 fi 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2125 fi;; 2126 esac 2127 # Pass precious variables to config.status. 2128 if test "$ac_new_set" = set; then 2129 case $ac_new_val in 2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2131 *) ac_arg=$ac_var=$ac_new_val ;; 2132 esac 2133 case " $ac_configure_args " in 2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2136 esac 2137 fi 2138 done 2139 if $ac_cache_corrupted; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2145 fi 2146 ## -------------------- ## 2147 ## Main body of script. ## 2148 ## -------------------- ## 2149 2150 ac_ext=c 2151 ac_cpp='$CPP $CPPFLAGS' 2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2155 2156 2157 2158 2159 2160 2161 2162 # The libgcc should not depend on any header files 2163 2164 2165 2166 # Check whether --with-target-subdir was given. 2167 if test "${with_target_subdir+set}" = set; then : 2168 withval=$with_target_subdir; 2169 fi 2170 2171 2172 # Check whether --with-cross-host was given. 2173 if test "${with_cross_host+set}" = set; then : 2174 withval=$with_cross_host; 2175 fi 2176 2177 2178 # Check whether --with-ld was given. 2179 if test "${with_ld+set}" = set; then : 2180 withval=$with_ld; 2181 fi 2182 2183 2184 if test "${srcdir}" = "."; then 2185 if test -n "${with_build_subdir}"; then 2186 libgcc_topdir="${srcdir}/../.." 2187 with_target_subdir= 2188 elif test -z "${with_target_subdir}"; then 2189 libgcc_topdir="${srcdir}/.." 2190 else 2191 if test "${with_target_subdir}" != "."; then 2192 libgcc_topdir="${srcdir}/${with_multisrctop}../.." 2193 else 2194 libgcc_topdir="${srcdir}/${with_multisrctop}.." 2195 fi 2196 fi 2197 else 2198 libgcc_topdir="${srcdir}/.." 2199 fi 2200 2201 ac_aux_dir= 2202 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do 2203 if test -f "$ac_dir/install-sh"; then 2204 ac_aux_dir=$ac_dir 2205 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 2206 break 2207 elif test -f "$ac_dir/install.sh"; then 2208 ac_aux_dir=$ac_dir 2209 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 2210 break 2211 elif test -f "$ac_dir/shtool"; then 2212 ac_aux_dir=$ac_dir 2213 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 2214 break 2215 fi 2216 done 2217 if test -z "$ac_aux_dir"; then 2218 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5 2219 fi 2220 2221 # These three variables are undocumented and unsupported, 2222 # and are intended to be withdrawn in a future Autoconf release. 2223 # They can cause serious problems if a builder's source tree is in a directory 2224 # whose full name contains unusual characters. 2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2228 2229 2230 ac_config_headers="$ac_config_headers auto-target.h:config.in" 2231 2232 2233 # Check whether --enable-shared was given. 2234 if test "${enable_shared+set}" = set; then : 2235 enableval=$enable_shared; 2236 case $enable_shared in 2237 yes | no) ;; 2238 *) 2239 enable_shared=no 2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2241 for pkg in $enableval; do 2242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 2243 enable_shared=yes 2244 fi 2245 done 2246 IFS="$ac_save_ifs" 2247 ;; 2248 esac 2249 2250 else 2251 enable_shared=yes 2252 fi 2253 2254 2255 2256 # Check whether --enable-vtable-verify was given. 2257 if test "${enable_vtable_verify+set}" = set; then : 2258 enableval=$enable_vtable_verify; case "$enableval" in 2259 yes) enable_vtable_verify=yes ;; 2260 no) enable_vtable_verify=no ;; 2261 *) enable_vtable_verify=no;; 2262 esac 2263 else 2264 enable_vtable_verify=no 2265 fi 2266 2267 2268 2269 2270 # Check whether --with-aix-soname was given. 2271 if test "${with_aix_soname+set}" = set; then : 2272 withval=$with_aix_soname; case "${host}:${enable_shared}" in 2273 power*-*-aix[5-9]*:yes) 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5 2275 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; } 2276 case ${withval} in 2277 aix|svr4|both) ;; 2278 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;; 2279 esac 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 2281 $as_echo "$withval" >&6; } 2282 ;; 2283 *) with_aix_soname=aix ;; 2284 esac 2285 2286 else 2287 with_aix_soname=aix 2288 fi 2289 2290 2291 2292 # Make sure we can run config.sub. 2293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2294 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2295 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2297 $as_echo_n "checking build system type... " >&6; } 2298 if ${ac_cv_build+:} false; then : 2299 $as_echo_n "(cached) " >&6 2300 else 2301 ac_build_alias=$build_alias 2302 test "x$ac_build_alias" = x && 2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2304 test "x$ac_build_alias" = x && 2305 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2308 2309 fi 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2311 $as_echo "$ac_cv_build" >&6; } 2312 case $ac_cv_build in 2313 *-*-*) ;; 2314 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2315 esac 2316 build=$ac_cv_build 2317 ac_save_IFS=$IFS; IFS='-' 2318 set x $ac_cv_build 2319 shift 2320 build_cpu=$1 2321 build_vendor=$2 2322 shift; shift 2323 # Remember, the first character of IFS is used to create $*, 2324 # except with old shells: 2325 build_os=$* 2326 IFS=$ac_save_IFS 2327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2328 2329 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2331 $as_echo_n "checking host system type... " >&6; } 2332 if ${ac_cv_host+:} false; then : 2333 $as_echo_n "(cached) " >&6 2334 else 2335 if test "x$host_alias" = x; then 2336 ac_cv_host=$ac_cv_build 2337 else 2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2340 fi 2341 2342 fi 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2344 $as_echo "$ac_cv_host" >&6; } 2345 case $ac_cv_host in 2346 *-*-*) ;; 2347 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2348 esac 2349 host=$ac_cv_host 2350 ac_save_IFS=$IFS; IFS='-' 2351 set x $ac_cv_host 2352 shift 2353 host_cpu=$1 2354 host_vendor=$2 2355 shift; shift 2356 # Remember, the first character of IFS is used to create $*, 2357 # except with old shells: 2358 host_os=$* 2359 IFS=$ac_save_IFS 2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2361 2362 2363 2364 2365 2366 2367 case "${host}" in 2368 # PIC is the default on some targets or must not be used. 2369 *-*-darwin*) 2370 # For darwin, common symbols are not allowed in MH_DYLIB files 2371 case "${CFLAGS}" in 2372 # If we are using a compiler supporting mdynamic-no-pic 2373 # and the option has been tested as safe to add, then cancel 2374 # it here, since the code generated is incompatible with shared 2375 # libs. 2376 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;; 2377 *) PICFLAG=-fno-common ;; 2378 esac 2379 ;; 2380 alpha*-dec-osf5*) 2381 # PIC is the default. 2382 ;; 2383 hppa*64*-*-hpux*) 2384 # PIC is the default for 64-bit PA HP-UX. 2385 ;; 2386 i[34567]86-*-cygwin* | x86_64-*-cygwin*) 2387 ;; 2388 i[34567]86-*-mingw* | x86_64-*-mingw*) 2389 ;; 2390 i[34567]86-*-interix[3-9]*) 2391 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 2392 # Instead, we relocate shared libraries at runtime. 2393 ;; 2394 i[34567]86-*-nto-qnx*) 2395 # QNX uses GNU C++, but need to define -shared option too, otherwise 2396 # it will coredump. 2397 PICFLAG='-fPIC -shared' 2398 ;; 2399 i[34567]86-pc-msdosdjgpp*) 2400 # DJGPP does not support shared libraries at all. 2401 ;; 2402 ia64*-*-hpux*) 2403 # On IA64 HP-UX, PIC is the default but the pic flag 2404 # sets the default TLS model and affects inlining. 2405 PICFLAG=-fPIC 2406 ;; 2407 loongarch*-*-*) 2408 PICFLAG=-fpic 2409 ;; 2410 mips-sgi-irix6*) 2411 # PIC is the default. 2412 ;; 2413 rs6000-ibm-aix* | powerpc-ibm-aix*) 2414 # All AIX code is PIC. 2415 ;; 2416 2417 # Some targets support both -fPIC and -fpic, but prefer the latter. 2418 # FIXME: Why? 2419 i[34567]86-*-* | x86_64-*-*) 2420 PICFLAG=-fpic 2421 ;; 2422 # FIXME: Override -fPIC default in libgcc only? 2423 sh-*-linux* | sh[2346lbe]*-*-linux*) 2424 PICFLAG=-fpic 2425 ;; 2426 sh*-*-netbsd*) 2427 PICFLAG=-fpic 2428 ;; 2429 # Default to -fPIC unless specified otherwise. 2430 *) 2431 PICFLAG=-fPIC 2432 ;; 2433 esac 2434 2435 # If the user explicitly uses -fpic/-fPIC, keep that. 2436 case "${CFLAGS}" in 2437 *-fpic*) 2438 PICFLAG=-fpic 2439 ;; 2440 *-fPIC*) 2441 PICFLAG=-fPIC 2442 ;; 2443 esac 2444 2445 2446 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2448 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2449 # Check whether --enable-version-specific-runtime-libs was given. 2450 if test "${enable_version_specific_runtime_libs+set}" = set; then : 2451 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2452 yes) version_specific_libs=yes ;; 2453 no) version_specific_libs=no ;; 2454 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2455 esac 2456 else 2457 version_specific_libs=no 2458 fi 2459 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2461 $as_echo "$version_specific_libs" >&6; } 2462 2463 2464 # Check whether --with-toolexeclibdir was given. 2465 if test "${with_toolexeclibdir+set}" = set; then : 2466 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 2467 /) 2468 ;; 2469 */) 2470 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 2471 ;; 2472 esac 2473 else 2474 with_toolexeclibdir=no 2475 fi 2476 2477 2478 2479 2480 # Check whether --with-slibdir was given. 2481 if test "${with_slibdir+set}" = set; then : 2482 withval=$with_slibdir; slibdir="$with_slibdir" 2483 else 2484 if test "${version_specific_libs}" = yes; then 2485 slibdir='$(libsubdir)' 2486 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then 2487 case ${with_toolexeclibdir} in 2488 no) 2489 slibdir='$(exec_prefix)/$(host_noncanonical)/lib' 2490 ;; 2491 *) 2492 slibdir=${with_toolexeclibdir} 2493 ;; 2494 esac 2495 else 2496 slibdir='$(libdir)' 2497 fi 2498 fi 2499 2500 2501 2502 # Command-line options. 2503 # Very limited version of AC_MAINTAINER_MODE. 2504 # Check whether --enable-maintainer-mode was given. 2505 if test "${enable_maintainer_mode+set}" = set; then : 2506 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in 2507 yes) MAINT='' ;; 2508 no) MAINT='#' ;; 2509 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;; 2510 esac 2511 maintainer_mode=${enableval} 2512 else 2513 MAINT='#' 2514 fi 2515 2516 2517 # Find a good install program. We prefer a C program (faster), 2518 # so one script is as good as another. But avoid the broken or 2519 # incompatible versions: 2520 # SysV /etc/install, /usr/sbin/install 2521 # SunOS /usr/etc/install 2522 # IRIX /sbin/install 2523 # AIX /bin/install 2524 # AmigaOS /C/install, which installs bootblocks on floppy discs 2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2528 # OS/2's system install, which has a completely different semantic 2529 # ./install, which can be erroneously created by make from ./install.sh. 2530 # Reject install programs that cannot install multiple files. 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2532 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2533 if test -z "$INSTALL"; then 2534 if ${ac_cv_path_install+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536 else 2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2538 for as_dir in $PATH 2539 do 2540 IFS=$as_save_IFS 2541 test -z "$as_dir" && as_dir=. 2542 # Account for people who put trailing slashes in PATH elements. 2543 case $as_dir/ in #(( 2544 ./ | .// | /[cC]/* | \ 2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2547 /usr/ucb/* ) ;; 2548 *) 2549 # OSF1 and SCO ODT 3.0 have their own names for install. 2550 # Don't use installbsd from OSF since it installs stuff as root 2551 # by default. 2552 for ac_prog in ginstall scoinst install; do 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2555 if test $ac_prog = install && 2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2557 # AIX install. It has an incompatible calling convention. 2558 : 2559 elif test $ac_prog = install && 2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2561 # program-specific install script used by HP pwplus--don't use. 2562 : 2563 else 2564 rm -rf conftest.one conftest.two conftest.dir 2565 echo one > conftest.one 2566 echo two > conftest.two 2567 mkdir conftest.dir 2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2569 test -s conftest.one && test -s conftest.two && 2570 test -s conftest.dir/conftest.one && 2571 test -s conftest.dir/conftest.two 2572 then 2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2574 break 3 2575 fi 2576 fi 2577 fi 2578 done 2579 done 2580 ;; 2581 esac 2582 2583 done 2584 IFS=$as_save_IFS 2585 2586 rm -rf conftest.one conftest.two conftest.dir 2587 2588 fi 2589 if test "${ac_cv_path_install+set}" = set; then 2590 INSTALL=$ac_cv_path_install 2591 else 2592 # As a last resort, use the slow shell script. Don't cache a 2593 # value for INSTALL within a source directory, because that will 2594 # break other packages using the cache if that directory is 2595 # removed, or if the value is a relative name. 2596 INSTALL=$ac_install_sh 2597 fi 2598 fi 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2600 $as_echo "$INSTALL" >&6; } 2601 2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2603 # It thinks the first close brace ends the variable substitution. 2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2605 2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2607 2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2609 2610 2611 for ac_prog in gawk mawk nawk awk 2612 do 2613 # Extract the first word of "$ac_prog", so it can be a program name with args. 2614 set dummy $ac_prog; ac_word=$2 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616 $as_echo_n "checking for $ac_word... " >&6; } 2617 if ${ac_cv_prog_AWK+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619 else 2620 if test -n "$AWK"; then 2621 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2622 else 2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624 for as_dir in $PATH 2625 do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2630 ac_cv_prog_AWK="$ac_prog" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634 done 2635 done 2636 IFS=$as_save_IFS 2637 2638 fi 2639 fi 2640 AWK=$ac_cv_prog_AWK 2641 if test -n "$AWK"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2643 $as_echo "$AWK" >&6; } 2644 else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646 $as_echo "no" >&6; } 2647 fi 2648 2649 2650 test -n "$AWK" && break 2651 done 2652 2653 # We need awk; bail out if it's missing. 2654 case ${AWK} in 2655 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; 2656 esac 2657 2658 2659 case ${build_alias} in 2660 "") build_noncanonical=${build} ;; 2661 *) build_noncanonical=${build_alias} ;; 2662 esac 2663 2664 case ${host_alias} in 2665 "") host_noncanonical=${build_noncanonical} ;; 2666 *) host_noncanonical=${host_alias} ;; 2667 esac 2668 2669 2670 2671 case ${target_alias} in 2672 "") target_noncanonical=${host_noncanonical} ;; 2673 *) target_noncanonical=${target_alias} ;; 2674 esac 2675 2676 2677 2678 2679 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2680 # have matching libraries, they should use host libraries: Makefile.tpl 2681 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2682 # However, they still use the build modules, because the corresponding 2683 # host modules (e.g. bison) are only built for the host when bootstrap 2684 # finishes. So: 2685 # - build_subdir is where we find build modules, and never changes. 2686 # - build_libsubdir is where we find build libraries, and can be overridden. 2687 2688 # Prefix 'build-' so this never conflicts with target_subdir. 2689 build_subdir="build-${build_noncanonical}" 2690 2691 # Check whether --with-build-libsubdir was given. 2692 if test "${with_build_libsubdir+set}" = set; then : 2693 withval=$with_build_libsubdir; build_libsubdir="$withval" 2694 else 2695 build_libsubdir="$build_subdir" 2696 fi 2697 2698 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2699 if ( test $srcdir = . && test -d gcc ) \ 2700 || test -d $srcdir/../host-${host_noncanonical}; then 2701 host_subdir="host-${host_noncanonical}" 2702 else 2703 host_subdir=. 2704 fi 2705 # No prefix. 2706 target_subdir=${target_noncanonical} 2707 2708 2709 # Check whether --enable-gcov was given. 2710 if test "${enable_gcov+set}" = set; then : 2711 enableval=$enable_gcov; 2712 else 2713 case $target in 2714 bpf-*-*) 2715 enable_gcov=no 2716 ;; 2717 *) 2718 enable_gcov=yes 2719 ;; 2720 esac 2721 fi 2722 2723 2724 2725 # Calculate toolexeclibdir 2726 # Also toolexecdir, though it's only used in toolexeclibdir 2727 case ${version_specific_libs} in 2728 yes) 2729 # Need the gcc compiler version to know where to install libraries 2730 # and header files if --enable-version-specific-runtime-libs option 2731 # is selected. 2732 toolexecdir='$(libdir)/gcc/$(target_noncanonical)' 2733 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 2734 ;; 2735 no) 2736 if test -n "$with_cross_host" && 2737 test x"$with_cross_host" != x"no"; then 2738 # Install a library built with a cross compiler in tooldir, not libdir. 2739 toolexecdir='$(exec_prefix)/$(target_noncanonical)' 2740 case ${with_toolexeclibdir} in 2741 no) 2742 toolexeclibdir='$(toolexecdir)/lib' 2743 ;; 2744 *) 2745 toolexeclibdir=${with_toolexeclibdir} 2746 ;; 2747 esac 2748 else 2749 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' 2750 toolexeclibdir='$(libdir)' 2751 fi 2752 multi_os_directory=`$CC -print-multi-os-directory` 2753 case $multi_os_directory in 2754 .) ;; # Avoid trailing /. 2755 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 2756 esac 2757 ;; 2758 esac 2759 2760 2761 2762 if test -n "$ac_tool_prefix"; then 2763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2764 set dummy ${ac_tool_prefix}ar; ac_word=$2 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2766 $as_echo_n "checking for $ac_word... " >&6; } 2767 if ${ac_cv_prog_AR+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769 else 2770 if test -n "$AR"; then 2771 ac_cv_prog_AR="$AR" # Let the user override the test. 2772 else 2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2774 for as_dir in $PATH 2775 do 2776 IFS=$as_save_IFS 2777 test -z "$as_dir" && as_dir=. 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2780 ac_cv_prog_AR="${ac_tool_prefix}ar" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784 done 2785 done 2786 IFS=$as_save_IFS 2787 2788 fi 2789 fi 2790 AR=$ac_cv_prog_AR 2791 if test -n "$AR"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 2793 $as_echo "$AR" >&6; } 2794 else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796 $as_echo "no" >&6; } 2797 fi 2798 2799 2800 fi 2801 if test -z "$ac_cv_prog_AR"; then 2802 ac_ct_AR=$AR 2803 # Extract the first word of "ar", so it can be a program name with args. 2804 set dummy ar; ac_word=$2 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806 $as_echo_n "checking for $ac_word... " >&6; } 2807 if ${ac_cv_prog_ac_ct_AR+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809 else 2810 if test -n "$ac_ct_AR"; then 2811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2812 else 2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814 for as_dir in $PATH 2815 do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2820 ac_cv_prog_ac_ct_AR="ar" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824 done 2825 done 2826 IFS=$as_save_IFS 2827 2828 fi 2829 fi 2830 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2831 if test -n "$ac_ct_AR"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 2833 $as_echo "$ac_ct_AR" >&6; } 2834 else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836 $as_echo "no" >&6; } 2837 fi 2838 2839 if test "x$ac_ct_AR" = x; then 2840 AR="" 2841 else 2842 case $cross_compiling:$ac_tool_warned in 2843 yes:) 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2846 ac_tool_warned=yes ;; 2847 esac 2848 AR=$ac_ct_AR 2849 fi 2850 else 2851 AR="$ac_cv_prog_AR" 2852 fi 2853 2854 if test -n "$ac_tool_prefix"; then 2855 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 2856 set dummy ${ac_tool_prefix}lipo; ac_word=$2 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2858 $as_echo_n "checking for $ac_word... " >&6; } 2859 if ${ac_cv_prog_LIPO+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861 else 2862 if test -n "$LIPO"; then 2863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 2864 else 2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866 for as_dir in $PATH 2867 do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2872 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876 done 2877 done 2878 IFS=$as_save_IFS 2879 2880 fi 2881 fi 2882 LIPO=$ac_cv_prog_LIPO 2883 if test -n "$LIPO"; then 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 2885 $as_echo "$LIPO" >&6; } 2886 else 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888 $as_echo "no" >&6; } 2889 fi 2890 2891 2892 fi 2893 if test -z "$ac_cv_prog_LIPO"; then 2894 ac_ct_LIPO=$LIPO 2895 # Extract the first word of "lipo", so it can be a program name with args. 2896 set dummy lipo; ac_word=$2 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898 $as_echo_n "checking for $ac_word... " >&6; } 2899 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 2900 $as_echo_n "(cached) " >&6 2901 else 2902 if test -n "$ac_ct_LIPO"; then 2903 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 2904 else 2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906 for as_dir in $PATH 2907 do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2912 ac_cv_prog_ac_ct_LIPO="lipo" 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916 done 2917 done 2918 IFS=$as_save_IFS 2919 2920 fi 2921 fi 2922 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 2923 if test -n "$ac_ct_LIPO"; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 2925 $as_echo "$ac_ct_LIPO" >&6; } 2926 else 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928 $as_echo "no" >&6; } 2929 fi 2930 2931 if test "x$ac_ct_LIPO" = x; then 2932 LIPO=":" 2933 else 2934 case $cross_compiling:$ac_tool_warned in 2935 yes:) 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2938 ac_tool_warned=yes ;; 2939 esac 2940 LIPO=$ac_ct_LIPO 2941 fi 2942 else 2943 LIPO="$ac_cv_prog_LIPO" 2944 fi 2945 2946 if test -n "$ac_tool_prefix"; then 2947 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 2948 set dummy ${ac_tool_prefix}nm; ac_word=$2 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950 $as_echo_n "checking for $ac_word... " >&6; } 2951 if ${ac_cv_prog_NM+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953 else 2954 if test -n "$NM"; then 2955 ac_cv_prog_NM="$NM" # Let the user override the test. 2956 else 2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958 for as_dir in $PATH 2959 do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2964 ac_cv_prog_NM="${ac_tool_prefix}nm" 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968 done 2969 done 2970 IFS=$as_save_IFS 2971 2972 fi 2973 fi 2974 NM=$ac_cv_prog_NM 2975 if test -n "$NM"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 2977 $as_echo "$NM" >&6; } 2978 else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980 $as_echo "no" >&6; } 2981 fi 2982 2983 2984 fi 2985 if test -z "$ac_cv_prog_NM"; then 2986 ac_ct_NM=$NM 2987 # Extract the first word of "nm", so it can be a program name with args. 2988 set dummy nm; ac_word=$2 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990 $as_echo_n "checking for $ac_word... " >&6; } 2991 if ${ac_cv_prog_ac_ct_NM+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993 else 2994 if test -n "$ac_ct_NM"; then 2995 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 2996 else 2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998 for as_dir in $PATH 2999 do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_ac_ct_NM="nm" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008 done 3009 done 3010 IFS=$as_save_IFS 3011 3012 fi 3013 fi 3014 ac_ct_NM=$ac_cv_prog_ac_ct_NM 3015 if test -n "$ac_ct_NM"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 3017 $as_echo "$ac_ct_NM" >&6; } 3018 else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020 $as_echo "no" >&6; } 3021 fi 3022 3023 if test "x$ac_ct_NM" = x; then 3024 NM="" 3025 else 3026 case $cross_compiling:$ac_tool_warned in 3027 yes:) 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3030 ac_tool_warned=yes ;; 3031 esac 3032 NM=$ac_ct_NM 3033 fi 3034 else 3035 NM="$ac_cv_prog_NM" 3036 fi 3037 3038 if test -n "$ac_tool_prefix"; then 3039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042 $as_echo_n "checking for $ac_word... " >&6; } 3043 if ${ac_cv_prog_RANLIB+:} false; then : 3044 $as_echo_n "(cached) " >&6 3045 else 3046 if test -n "$RANLIB"; then 3047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3048 else 3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050 for as_dir in $PATH 3051 do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_exec_ext in '' $ac_executable_extensions; do 3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060 done 3061 done 3062 IFS=$as_save_IFS 3063 3064 fi 3065 fi 3066 RANLIB=$ac_cv_prog_RANLIB 3067 if test -n "$RANLIB"; then 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3069 $as_echo "$RANLIB" >&6; } 3070 else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072 $as_echo "no" >&6; } 3073 fi 3074 3075 3076 fi 3077 if test -z "$ac_cv_prog_RANLIB"; then 3078 ac_ct_RANLIB=$RANLIB 3079 # Extract the first word of "ranlib", so it can be a program name with args. 3080 set dummy ranlib; ac_word=$2 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082 $as_echo_n "checking for $ac_word... " >&6; } 3083 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3084 $as_echo_n "(cached) " >&6 3085 else 3086 if test -n "$ac_ct_RANLIB"; then 3087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3088 else 3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090 for as_dir in $PATH 3091 do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 ac_cv_prog_ac_ct_RANLIB="ranlib" 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100 done 3101 done 3102 IFS=$as_save_IFS 3103 3104 fi 3105 fi 3106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3107 if test -n "$ac_ct_RANLIB"; then 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3109 $as_echo "$ac_ct_RANLIB" >&6; } 3110 else 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112 $as_echo "no" >&6; } 3113 fi 3114 3115 if test "x$ac_ct_RANLIB" = x; then 3116 RANLIB=":" 3117 else 3118 case $cross_compiling:$ac_tool_warned in 3119 yes:) 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3122 ac_tool_warned=yes ;; 3123 esac 3124 RANLIB=$ac_ct_RANLIB 3125 fi 3126 else 3127 RANLIB="$ac_cv_prog_RANLIB" 3128 fi 3129 3130 if test -n "$ac_tool_prefix"; then 3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3132 set dummy ${ac_tool_prefix}strip; ac_word=$2 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134 $as_echo_n "checking for $ac_word... " >&6; } 3135 if ${ac_cv_prog_STRIP+:} false; then : 3136 $as_echo_n "(cached) " >&6 3137 else 3138 if test -n "$STRIP"; then 3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3140 else 3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142 for as_dir in $PATH 3143 do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152 done 3153 done 3154 IFS=$as_save_IFS 3155 3156 fi 3157 fi 3158 STRIP=$ac_cv_prog_STRIP 3159 if test -n "$STRIP"; then 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3161 $as_echo "$STRIP" >&6; } 3162 else 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164 $as_echo "no" >&6; } 3165 fi 3166 3167 3168 fi 3169 if test -z "$ac_cv_prog_STRIP"; then 3170 ac_ct_STRIP=$STRIP 3171 # Extract the first word of "strip", so it can be a program name with args. 3172 set dummy strip; ac_word=$2 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174 $as_echo_n "checking for $ac_word... " >&6; } 3175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177 else 3178 if test -n "$ac_ct_STRIP"; then 3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3180 else 3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182 for as_dir in $PATH 3183 do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_ac_ct_STRIP="strip" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192 done 3193 done 3194 IFS=$as_save_IFS 3195 3196 fi 3197 fi 3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3199 if test -n "$ac_ct_STRIP"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3201 $as_echo "$ac_ct_STRIP" >&6; } 3202 else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204 $as_echo "no" >&6; } 3205 fi 3206 3207 if test "x$ac_ct_STRIP" = x; then 3208 STRIP=":" 3209 else 3210 case $cross_compiling:$ac_tool_warned in 3211 yes:) 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3214 ac_tool_warned=yes ;; 3215 esac 3216 STRIP=$ac_ct_STRIP 3217 fi 3218 else 3219 STRIP="$ac_cv_prog_STRIP" 3220 fi 3221 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3223 $as_echo_n "checking whether ln -s works... " >&6; } 3224 LN_S=$as_ln_s 3225 if test "$LN_S" = "ln -s"; then 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3227 $as_echo "yes" >&6; } 3228 else 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3230 $as_echo "no, using $LN_S" >&6; } 3231 fi 3232 3233 3234 3235 ac_ext=c 3236 ac_cpp='$CPP $CPPFLAGS' 3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3240 if test -n "$ac_tool_prefix"; then 3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244 $as_echo_n "checking for $ac_word... " >&6; } 3245 if ${ac_cv_prog_CC+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247 else 3248 if test -n "$CC"; then 3249 ac_cv_prog_CC="$CC" # Let the user override the test. 3250 else 3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252 for as_dir in $PATH 3253 do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3258 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262 done 3263 done 3264 IFS=$as_save_IFS 3265 3266 fi 3267 fi 3268 CC=$ac_cv_prog_CC 3269 if test -n "$CC"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3271 $as_echo "$CC" >&6; } 3272 else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274 $as_echo "no" >&6; } 3275 fi 3276 3277 3278 fi 3279 if test -z "$ac_cv_prog_CC"; then 3280 ac_ct_CC=$CC 3281 # Extract the first word of "gcc", so it can be a program name with args. 3282 set dummy gcc; ac_word=$2 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284 $as_echo_n "checking for $ac_word... " >&6; } 3285 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287 else 3288 if test -n "$ac_ct_CC"; then 3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3290 else 3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292 for as_dir in $PATH 3293 do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3298 ac_cv_prog_ac_ct_CC="gcc" 3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3300 break 2 3301 fi 3302 done 3303 done 3304 IFS=$as_save_IFS 3305 3306 fi 3307 fi 3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3309 if test -n "$ac_ct_CC"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3311 $as_echo "$ac_ct_CC" >&6; } 3312 else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314 $as_echo "no" >&6; } 3315 fi 3316 3317 if test "x$ac_ct_CC" = x; then 3318 CC="" 3319 else 3320 case $cross_compiling:$ac_tool_warned in 3321 yes:) 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3324 ac_tool_warned=yes ;; 3325 esac 3326 CC=$ac_ct_CC 3327 fi 3328 else 3329 CC="$ac_cv_prog_CC" 3330 fi 3331 3332 if test -z "$CC"; then 3333 if test -n "$ac_tool_prefix"; then 3334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3335 set dummy ${ac_tool_prefix}cc; ac_word=$2 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337 $as_echo_n "checking for $ac_word... " >&6; } 3338 if ${ac_cv_prog_CC+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340 else 3341 if test -n "$CC"; then 3342 ac_cv_prog_CC="$CC" # Let the user override the test. 3343 else 3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345 for as_dir in $PATH 3346 do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3351 ac_cv_prog_CC="${ac_tool_prefix}cc" 3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355 done 3356 done 3357 IFS=$as_save_IFS 3358 3359 fi 3360 fi 3361 CC=$ac_cv_prog_CC 3362 if test -n "$CC"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3364 $as_echo "$CC" >&6; } 3365 else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367 $as_echo "no" >&6; } 3368 fi 3369 3370 3371 fi 3372 fi 3373 if test -z "$CC"; then 3374 # Extract the first word of "cc", so it can be a program name with args. 3375 set dummy cc; ac_word=$2 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3377 $as_echo_n "checking for $ac_word... " >&6; } 3378 if ${ac_cv_prog_CC+:} false; then : 3379 $as_echo_n "(cached) " >&6 3380 else 3381 if test -n "$CC"; then 3382 ac_cv_prog_CC="$CC" # Let the user override the test. 3383 else 3384 ac_prog_rejected=no 3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386 for as_dir in $PATH 3387 do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3393 ac_prog_rejected=yes 3394 continue 3395 fi 3396 ac_cv_prog_CC="cc" 3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400 done 3401 done 3402 IFS=$as_save_IFS 3403 3404 if test $ac_prog_rejected = yes; then 3405 # We found a bogon in the path, so make sure we never use it. 3406 set dummy $ac_cv_prog_CC 3407 shift 3408 if test $# != 0; then 3409 # We chose a different compiler from the bogus one. 3410 # However, it has the same basename, so the bogon will be chosen 3411 # first if we set CC to just the basename; use the full file name. 3412 shift 3413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3414 fi 3415 fi 3416 fi 3417 fi 3418 CC=$ac_cv_prog_CC 3419 if test -n "$CC"; then 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3421 $as_echo "$CC" >&6; } 3422 else 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424 $as_echo "no" >&6; } 3425 fi 3426 3427 3428 fi 3429 if test -z "$CC"; then 3430 if test -n "$ac_tool_prefix"; then 3431 for ac_prog in cl.exe 3432 do 3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436 $as_echo_n "checking for $ac_word... " >&6; } 3437 if ${ac_cv_prog_CC+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439 else 3440 if test -n "$CC"; then 3441 ac_cv_prog_CC="$CC" # Let the user override the test. 3442 else 3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444 for as_dir in $PATH 3445 do 3446 IFS=$as_save_IFS 3447 test -z "$as_dir" && as_dir=. 3448 for ac_exec_ext in '' $ac_executable_extensions; do 3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3452 break 2 3453 fi 3454 done 3455 done 3456 IFS=$as_save_IFS 3457 3458 fi 3459 fi 3460 CC=$ac_cv_prog_CC 3461 if test -n "$CC"; then 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3463 $as_echo "$CC" >&6; } 3464 else 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466 $as_echo "no" >&6; } 3467 fi 3468 3469 3470 test -n "$CC" && break 3471 done 3472 fi 3473 if test -z "$CC"; then 3474 ac_ct_CC=$CC 3475 for ac_prog in cl.exe 3476 do 3477 # Extract the first word of "$ac_prog", so it can be a program name with args. 3478 set dummy $ac_prog; ac_word=$2 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480 $as_echo_n "checking for $ac_word... " >&6; } 3481 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483 else 3484 if test -n "$ac_ct_CC"; then 3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3486 else 3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3488 for as_dir in $PATH 3489 do 3490 IFS=$as_save_IFS 3491 test -z "$as_dir" && as_dir=. 3492 for ac_exec_ext in '' $ac_executable_extensions; do 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3494 ac_cv_prog_ac_ct_CC="$ac_prog" 3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3496 break 2 3497 fi 3498 done 3499 done 3500 IFS=$as_save_IFS 3501 3502 fi 3503 fi 3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3505 if test -n "$ac_ct_CC"; then 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3507 $as_echo "$ac_ct_CC" >&6; } 3508 else 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3510 $as_echo "no" >&6; } 3511 fi 3512 3513 3514 test -n "$ac_ct_CC" && break 3515 done 3516 3517 if test "x$ac_ct_CC" = x; then 3518 CC="" 3519 else 3520 case $cross_compiling:$ac_tool_warned in 3521 yes:) 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3524 ac_tool_warned=yes ;; 3525 esac 3526 CC=$ac_ct_CC 3527 fi 3528 fi 3529 3530 fi 3531 3532 3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3535 as_fn_error $? "no acceptable C compiler found in \$PATH 3536 See \`config.log' for more details" "$LINENO" 5; } 3537 3538 # Provide some information about the compiler. 3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3540 set X $ac_compile 3541 ac_compiler=$2 3542 for ac_option in --version -v -V -qversion; do 3543 { { ac_try="$ac_compiler $ac_option >&5" 3544 case "(($ac_try" in 3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3546 *) ac_try_echo=$ac_try;; 3547 esac 3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3549 $as_echo "$ac_try_echo"; } >&5 3550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3551 ac_status=$? 3552 if test -s conftest.err; then 3553 sed '10a\ 3554 ... rest of stderr output deleted ... 3555 10q' conftest.err >conftest.er1 3556 cat conftest.er1 >&5 3557 fi 3558 rm -f conftest.er1 conftest.err 3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3560 test $ac_status = 0; } 3561 done 3562 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564 /* end confdefs.h. */ 3565 #include <stdio.h> 3566 int 3567 main () 3568 { 3569 printf ("hello world\n"); 3570 ; 3571 return 0; 3572 } 3573 _ACEOF 3574 # FIXME: Cleanup? 3575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3576 (eval $ac_link) 2>&5 3577 ac_status=$? 3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3579 test $ac_status = 0; }; then : 3580 gcc_no_link=no 3581 else 3582 gcc_no_link=yes 3583 fi 3584 if test x$gcc_no_link = xyes; then 3585 # Setting cross_compile will disable run tests; it will 3586 # also disable AC_CHECK_FILE but that's generally 3587 # correct if we can't link. 3588 cross_compiling=yes 3589 EXEEXT= 3590 else 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592 /* end confdefs.h. */ 3593 3594 int 3595 main () 3596 { 3597 3598 ; 3599 return 0; 3600 } 3601 _ACEOF 3602 ac_clean_files_save=$ac_clean_files 3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3604 # Try to create an executable without -o first, disregard a.out. 3605 # It will help us diagnose broken compilers, and finding out an intuition 3606 # of exeext. 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3608 $as_echo_n "checking whether the C compiler works... " >&6; } 3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3610 3611 # The possible output files: 3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3613 3614 ac_rmfiles= 3615 for ac_file in $ac_files 3616 do 3617 case $ac_file in 3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3620 esac 3621 done 3622 rm -f $ac_rmfiles 3623 3624 if { { ac_try="$ac_link_default" 3625 case "(($ac_try" in 3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3627 *) ac_try_echo=$ac_try;; 3628 esac 3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3630 $as_echo "$ac_try_echo"; } >&5 3631 (eval "$ac_link_default") 2>&5 3632 ac_status=$? 3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 test $ac_status = 0; }; then : 3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3637 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3638 # so that the user can short-circuit this test for compilers unknown to 3639 # Autoconf. 3640 for ac_file in $ac_files '' 3641 do 3642 test -f "$ac_file" || continue 3643 case $ac_file in 3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3645 ;; 3646 [ab].out ) 3647 # We found the default executable, but exeext='' is most 3648 # certainly right. 3649 break;; 3650 *.* ) 3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3652 then :; else 3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3654 fi 3655 # We set ac_cv_exeext here because the later test for it is not 3656 # safe: cross compilers may not add the suffix if given an `-o' 3657 # argument, so we may need to know it at that point already. 3658 # Even if this section looks crufty: it has the advantage of 3659 # actually working. 3660 break;; 3661 * ) 3662 break;; 3663 esac 3664 done 3665 test "$ac_cv_exeext" = no && ac_cv_exeext= 3666 3667 else 3668 ac_file='' 3669 fi 3670 if test -z "$ac_file"; then : 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3672 $as_echo "no" >&6; } 3673 $as_echo "$as_me: failed program was:" >&5 3674 sed 's/^/| /' conftest.$ac_ext >&5 3675 3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3678 as_fn_error 77 "C compiler cannot create executables 3679 See \`config.log' for more details" "$LINENO" 5; } 3680 else 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3682 $as_echo "yes" >&6; } 3683 fi 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3685 $as_echo_n "checking for C compiler default output file name... " >&6; } 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3687 $as_echo "$ac_file" >&6; } 3688 ac_exeext=$ac_cv_exeext 3689 3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3691 ac_clean_files=$ac_clean_files_save 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3693 $as_echo_n "checking for suffix of executables... " >&6; } 3694 if { { ac_try="$ac_link" 3695 case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698 esac 3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3700 $as_echo "$ac_try_echo"; } >&5 3701 (eval "$ac_link") 2>&5 3702 ac_status=$? 3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3704 test $ac_status = 0; }; then : 3705 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3707 # work properly (i.e., refer to `conftest.exe'), while it won't with 3708 # `rm'. 3709 for ac_file in conftest.exe conftest conftest.*; do 3710 test -f "$ac_file" || continue 3711 case $ac_file in 3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3714 break;; 3715 * ) break;; 3716 esac 3717 done 3718 else 3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3722 See \`config.log' for more details" "$LINENO" 5; } 3723 fi 3724 rm -f conftest conftest$ac_cv_exeext 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3726 $as_echo "$ac_cv_exeext" >&6; } 3727 3728 rm -f conftest.$ac_ext 3729 EXEEXT=$ac_cv_exeext 3730 ac_exeext=$EXEEXT 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732 /* end confdefs.h. */ 3733 #include <stdio.h> 3734 int 3735 main () 3736 { 3737 FILE *f = fopen ("conftest.out", "w"); 3738 return ferror (f) || fclose (f) != 0; 3739 3740 ; 3741 return 0; 3742 } 3743 _ACEOF 3744 ac_clean_files="$ac_clean_files conftest.out" 3745 # Check that the compiler produces executables we can run. If not, either 3746 # the compiler is broken, or we cross compile. 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3748 $as_echo_n "checking whether we are cross compiling... " >&6; } 3749 if test "$cross_compiling" != yes; then 3750 { { ac_try="$ac_link" 3751 case "(($ac_try" in 3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3753 *) ac_try_echo=$ac_try;; 3754 esac 3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3756 $as_echo "$ac_try_echo"; } >&5 3757 (eval "$ac_link") 2>&5 3758 ac_status=$? 3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3760 test $ac_status = 0; } 3761 if { ac_try='./conftest$ac_cv_exeext' 3762 { { case "(($ac_try" in 3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3764 *) ac_try_echo=$ac_try;; 3765 esac 3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3767 $as_echo "$ac_try_echo"; } >&5 3768 (eval "$ac_try") 2>&5 3769 ac_status=$? 3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3771 test $ac_status = 0; }; }; then 3772 cross_compiling=no 3773 else 3774 if test "$cross_compiling" = maybe; then 3775 cross_compiling=yes 3776 else 3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3779 as_fn_error $? "cannot run C compiled programs. 3780 If you meant to cross compile, use \`--host'. 3781 See \`config.log' for more details" "$LINENO" 5; } 3782 fi 3783 fi 3784 fi 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3786 $as_echo "$cross_compiling" >&6; } 3787 3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3789 ac_clean_files=$ac_clean_files_save 3790 fi 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3792 $as_echo_n "checking for suffix of object files... " >&6; } 3793 if ${ac_cv_objext+:} false; then : 3794 $as_echo_n "(cached) " >&6 3795 else 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797 /* end confdefs.h. */ 3798 3799 int 3800 main () 3801 { 3802 3803 ; 3804 return 0; 3805 } 3806 _ACEOF 3807 rm -f conftest.o conftest.obj 3808 if { { ac_try="$ac_compile" 3809 case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812 esac 3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3814 $as_echo "$ac_try_echo"; } >&5 3815 (eval "$ac_compile") 2>&5 3816 ac_status=$? 3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3818 test $ac_status = 0; }; then : 3819 for ac_file in conftest.o conftest.obj conftest.*; do 3820 test -f "$ac_file" || continue; 3821 case $ac_file in 3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3824 break;; 3825 esac 3826 done 3827 else 3828 $as_echo "$as_me: failed program was:" >&5 3829 sed 's/^/| /' conftest.$ac_ext >&5 3830 3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3833 as_fn_error $? "cannot compute suffix of object files: cannot compile 3834 See \`config.log' for more details" "$LINENO" 5; } 3835 fi 3836 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3837 fi 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3839 $as_echo "$ac_cv_objext" >&6; } 3840 OBJEXT=$ac_cv_objext 3841 ac_objext=$OBJEXT 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3844 if ${ac_cv_c_compiler_gnu+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846 else 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848 /* end confdefs.h. */ 3849 3850 int 3851 main () 3852 { 3853 #ifndef __GNUC__ 3854 choke me 3855 #endif 3856 3857 ; 3858 return 0; 3859 } 3860 _ACEOF 3861 if ac_fn_c_try_compile "$LINENO"; then : 3862 ac_compiler_gnu=yes 3863 else 3864 ac_compiler_gnu=no 3865 fi 3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3868 3869 fi 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3871 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3872 if test $ac_compiler_gnu = yes; then 3873 GCC=yes 3874 else 3875 GCC= 3876 fi 3877 ac_test_CFLAGS=${CFLAGS+set} 3878 ac_save_CFLAGS=$CFLAGS 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3880 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3881 if ${ac_cv_prog_cc_g+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883 else 3884 ac_save_c_werror_flag=$ac_c_werror_flag 3885 ac_c_werror_flag=yes 3886 ac_cv_prog_cc_g=no 3887 CFLAGS="-g" 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889 /* end confdefs.h. */ 3890 3891 int 3892 main () 3893 { 3894 3895 ; 3896 return 0; 3897 } 3898 _ACEOF 3899 if ac_fn_c_try_compile "$LINENO"; then : 3900 ac_cv_prog_cc_g=yes 3901 else 3902 CFLAGS="" 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904 /* end confdefs.h. */ 3905 3906 int 3907 main () 3908 { 3909 3910 ; 3911 return 0; 3912 } 3913 _ACEOF 3914 if ac_fn_c_try_compile "$LINENO"; then : 3915 3916 else 3917 ac_c_werror_flag=$ac_save_c_werror_flag 3918 CFLAGS="-g" 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920 /* end confdefs.h. */ 3921 3922 int 3923 main () 3924 { 3925 3926 ; 3927 return 0; 3928 } 3929 _ACEOF 3930 if ac_fn_c_try_compile "$LINENO"; then : 3931 ac_cv_prog_cc_g=yes 3932 fi 3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3934 fi 3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3936 fi 3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3938 ac_c_werror_flag=$ac_save_c_werror_flag 3939 fi 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3941 $as_echo "$ac_cv_prog_cc_g" >&6; } 3942 if test "$ac_test_CFLAGS" = set; then 3943 CFLAGS=$ac_save_CFLAGS 3944 elif test $ac_cv_prog_cc_g = yes; then 3945 if test "$GCC" = yes; then 3946 CFLAGS="-g -O2" 3947 else 3948 CFLAGS="-g" 3949 fi 3950 else 3951 if test "$GCC" = yes; then 3952 CFLAGS="-O2" 3953 else 3954 CFLAGS= 3955 fi 3956 fi 3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3959 if ${ac_cv_prog_cc_c89+:} false; then : 3960 $as_echo_n "(cached) " >&6 3961 else 3962 ac_cv_prog_cc_c89=no 3963 ac_save_CC=$CC 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965 /* end confdefs.h. */ 3966 #include <stdarg.h> 3967 #include <stdio.h> 3968 struct stat; 3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3970 struct buf { int x; }; 3971 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3972 static char *e (p, i) 3973 char **p; 3974 int i; 3975 { 3976 return p[i]; 3977 } 3978 static char *f (char * (*g) (char **, int), char **p, ...) 3979 { 3980 char *s; 3981 va_list v; 3982 va_start (v,p); 3983 s = g (p, va_arg (v,int)); 3984 va_end (v); 3985 return s; 3986 } 3987 3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3989 function prototypes and stuff, but not '\xHH' hex character constants. 3990 These don't provoke an error unfortunately, instead are silently treated 3991 as 'x'. The following induces an error, until -std is added to get 3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3993 array size at least. It's necessary to write '\x00'==0 to get something 3994 that's true only with -std. */ 3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3996 3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3998 inside strings and character constants. */ 3999 #define FOO(x) 'x' 4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4001 4002 int test (int i, double x); 4003 struct s1 {int (*f) (int a);}; 4004 struct s2 {int (*f) (double a);}; 4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4006 int argc; 4007 char **argv; 4008 int 4009 main () 4010 { 4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4012 ; 4013 return 0; 4014 } 4015 _ACEOF 4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4018 do 4019 CC="$ac_save_CC $ac_arg" 4020 if ac_fn_c_try_compile "$LINENO"; then : 4021 ac_cv_prog_cc_c89=$ac_arg 4022 fi 4023 rm -f core conftest.err conftest.$ac_objext 4024 test "x$ac_cv_prog_cc_c89" != "xno" && break 4025 done 4026 rm -f conftest.$ac_ext 4027 CC=$ac_save_CC 4028 4029 fi 4030 # AC_CACHE_VAL 4031 case "x$ac_cv_prog_cc_c89" in 4032 x) 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4034 $as_echo "none needed" >&6; } ;; 4035 xno) 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4037 $as_echo "unsupported" >&6; } ;; 4038 *) 4039 CC="$CC $ac_cv_prog_cc_c89" 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4042 esac 4043 if test "x$ac_cv_prog_cc_c89" != xno; then : 4044 4045 fi 4046 4047 ac_ext=c 4048 ac_cpp='$CPP $CPPFLAGS' 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 4053 ac_ext=c 4054 ac_cpp='$CPP $CPPFLAGS' 4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4059 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4060 # On Suns, sometimes $CPP names a directory. 4061 if test -n "$CPP" && test -d "$CPP"; then 4062 CPP= 4063 fi 4064 if test -z "$CPP"; then 4065 if ${ac_cv_prog_CPP+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067 else 4068 # Double quotes because CPP needs to be expanded 4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4070 do 4071 ac_preproc_ok=false 4072 for ac_c_preproc_warn_flag in '' yes 4073 do 4074 # Use a header file that comes with gcc, so configuring glibc 4075 # with a fresh cross-compiler works. 4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4077 # <limits.h> exists even on freestanding compilers. 4078 # On the NeXT, cc -E runs the code through the compiler's parser, 4079 # not just through cpp. "Syntax error" is here to catch this case. 4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4081 /* end confdefs.h. */ 4082 #ifdef __STDC__ 4083 # include <limits.h> 4084 #else 4085 # include <assert.h> 4086 #endif 4087 Syntax error 4088 _ACEOF 4089 if ac_fn_c_try_cpp "$LINENO"; then : 4090 4091 else 4092 # Broken: fails on valid input. 4093 continue 4094 fi 4095 rm -f conftest.err conftest.i conftest.$ac_ext 4096 4097 # OK, works on sane cases. Now check whether nonexistent headers 4098 # can be detected and how. 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100 /* end confdefs.h. */ 4101 #include <ac_nonexistent.h> 4102 _ACEOF 4103 if ac_fn_c_try_cpp "$LINENO"; then : 4104 # Broken: success on invalid input. 4105 continue 4106 else 4107 # Passes both tests. 4108 ac_preproc_ok=: 4109 break 4110 fi 4111 rm -f conftest.err conftest.i conftest.$ac_ext 4112 4113 done 4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4115 rm -f conftest.i conftest.err conftest.$ac_ext 4116 if $ac_preproc_ok; then : 4117 break 4118 fi 4119 4120 done 4121 ac_cv_prog_CPP=$CPP 4122 4123 fi 4124 CPP=$ac_cv_prog_CPP 4125 else 4126 ac_cv_prog_CPP=$CPP 4127 fi 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4129 $as_echo "$CPP" >&6; } 4130 ac_preproc_ok=false 4131 for ac_c_preproc_warn_flag in '' yes 4132 do 4133 # Use a header file that comes with gcc, so configuring glibc 4134 # with a fresh cross-compiler works. 4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4136 # <limits.h> exists even on freestanding compilers. 4137 # On the NeXT, cc -E runs the code through the compiler's parser, 4138 # not just through cpp. "Syntax error" is here to catch this case. 4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4140 /* end confdefs.h. */ 4141 #ifdef __STDC__ 4142 # include <limits.h> 4143 #else 4144 # include <assert.h> 4145 #endif 4146 Syntax error 4147 _ACEOF 4148 if ac_fn_c_try_cpp "$LINENO"; then : 4149 4150 else 4151 # Broken: fails on valid input. 4152 continue 4153 fi 4154 rm -f conftest.err conftest.i conftest.$ac_ext 4155 4156 # OK, works on sane cases. Now check whether nonexistent headers 4157 # can be detected and how. 4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159 /* end confdefs.h. */ 4160 #include <ac_nonexistent.h> 4161 _ACEOF 4162 if ac_fn_c_try_cpp "$LINENO"; then : 4163 # Broken: success on invalid input. 4164 continue 4165 else 4166 # Passes both tests. 4167 ac_preproc_ok=: 4168 break 4169 fi 4170 rm -f conftest.err conftest.i conftest.$ac_ext 4171 4172 done 4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4174 rm -f conftest.i conftest.err conftest.$ac_ext 4175 if $ac_preproc_ok; then : 4176 4177 else 4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4181 See \`config.log' for more details" "$LINENO" 5; } 4182 fi 4183 4184 ac_ext=c 4185 ac_cpp='$CPP $CPPFLAGS' 4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4189 4190 4191 ac_c_preproc_warn_flag=yes 4192 4193 4194 # Check whether --enable-largefile was given. 4195 if test "${enable_largefile+set}" = set; then : 4196 enableval=$enable_largefile; 4197 fi 4198 4199 if test "$enable_largefile" != no; then 4200 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4202 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4203 if ${ac_cv_sys_largefile_CC+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205 else 4206 ac_cv_sys_largefile_CC=no 4207 if test "$GCC" != yes; then 4208 ac_save_CC=$CC 4209 while :; do 4210 # IRIX 6.2 and later do not support large files by default, 4211 # so use the C compiler's -n32 option if that helps. 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213 /* end confdefs.h. */ 4214 #include <sys/types.h> 4215 /* Check that off_t can represent 2**63 - 1 correctly. 4216 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4217 since some C++ compilers masquerading as C compilers 4218 incorrectly reject 9223372036854775807. */ 4219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4221 && LARGE_OFF_T % 2147483647 == 1) 4222 ? 1 : -1]; 4223 int 4224 main () 4225 { 4226 4227 ; 4228 return 0; 4229 } 4230 _ACEOF 4231 if ac_fn_c_try_compile "$LINENO"; then : 4232 break 4233 fi 4234 rm -f core conftest.err conftest.$ac_objext 4235 CC="$CC -n32" 4236 if ac_fn_c_try_compile "$LINENO"; then : 4237 ac_cv_sys_largefile_CC=' -n32'; break 4238 fi 4239 rm -f core conftest.err conftest.$ac_objext 4240 break 4241 done 4242 CC=$ac_save_CC 4243 rm -f conftest.$ac_ext 4244 fi 4245 fi 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4247 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 4248 if test "$ac_cv_sys_largefile_CC" != no; then 4249 CC=$CC$ac_cv_sys_largefile_CC 4250 fi 4251 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4253 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4254 if ${ac_cv_sys_file_offset_bits+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256 else 4257 while :; do 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259 /* end confdefs.h. */ 4260 #include <sys/types.h> 4261 /* Check that off_t can represent 2**63 - 1 correctly. 4262 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4263 since some C++ compilers masquerading as C compilers 4264 incorrectly reject 9223372036854775807. */ 4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4267 && LARGE_OFF_T % 2147483647 == 1) 4268 ? 1 : -1]; 4269 int 4270 main () 4271 { 4272 4273 ; 4274 return 0; 4275 } 4276 _ACEOF 4277 if ac_fn_c_try_compile "$LINENO"; then : 4278 ac_cv_sys_file_offset_bits=no; break 4279 fi 4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4282 /* end confdefs.h. */ 4283 #define _FILE_OFFSET_BITS 64 4284 #include <sys/types.h> 4285 /* Check that off_t can represent 2**63 - 1 correctly. 4286 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4287 since some C++ compilers masquerading as C compilers 4288 incorrectly reject 9223372036854775807. */ 4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4291 && LARGE_OFF_T % 2147483647 == 1) 4292 ? 1 : -1]; 4293 int 4294 main () 4295 { 4296 4297 ; 4298 return 0; 4299 } 4300 _ACEOF 4301 if ac_fn_c_try_compile "$LINENO"; then : 4302 ac_cv_sys_file_offset_bits=64; break 4303 fi 4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 ac_cv_sys_file_offset_bits=unknown 4306 break 4307 done 4308 fi 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4310 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4311 case $ac_cv_sys_file_offset_bits in #( 4312 no | unknown) ;; 4313 *) 4314 cat >>confdefs.h <<_ACEOF 4315 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4316 _ACEOF 4317 ;; 4318 esac 4319 rm -rf conftest* 4320 if test $ac_cv_sys_file_offset_bits = unknown; then 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4322 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4323 if ${ac_cv_sys_large_files+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325 else 4326 while :; do 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328 /* end confdefs.h. */ 4329 #include <sys/types.h> 4330 /* Check that off_t can represent 2**63 - 1 correctly. 4331 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4332 since some C++ compilers masquerading as C compilers 4333 incorrectly reject 9223372036854775807. */ 4334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4336 && LARGE_OFF_T % 2147483647 == 1) 4337 ? 1 : -1]; 4338 int 4339 main () 4340 { 4341 4342 ; 4343 return 0; 4344 } 4345 _ACEOF 4346 if ac_fn_c_try_compile "$LINENO"; then : 4347 ac_cv_sys_large_files=no; break 4348 fi 4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351 /* end confdefs.h. */ 4352 #define _LARGE_FILES 1 4353 #include <sys/types.h> 4354 /* Check that off_t can represent 2**63 - 1 correctly. 4355 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4356 since some C++ compilers masquerading as C compilers 4357 incorrectly reject 9223372036854775807. */ 4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4360 && LARGE_OFF_T % 2147483647 == 1) 4361 ? 1 : -1]; 4362 int 4363 main () 4364 { 4365 4366 ; 4367 return 0; 4368 } 4369 _ACEOF 4370 if ac_fn_c_try_compile "$LINENO"; then : 4371 ac_cv_sys_large_files=1; break 4372 fi 4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4374 ac_cv_sys_large_files=unknown 4375 break 4376 done 4377 fi 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4379 $as_echo "$ac_cv_sys_large_files" >&6; } 4380 case $ac_cv_sys_large_files in #( 4381 no | unknown) ;; 4382 *) 4383 cat >>confdefs.h <<_ACEOF 4384 #define _LARGE_FILES $ac_cv_sys_large_files 4385 _ACEOF 4386 ;; 4387 esac 4388 rm -rf conftest* 4389 fi 4390 4391 4392 fi 4393 4394 4395 4396 # The cast to long int works around a bug in the HP C Compiler 4397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4399 # This bug is HP SR number 8606223364. 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 4401 $as_echo_n "checking size of double... " >&6; } 4402 if ${ac_cv_sizeof_double+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404 else 4405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 4406 4407 else 4408 if test "$ac_cv_type_double" = yes; then 4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4411 as_fn_error 77 "cannot compute sizeof (double) 4412 See \`config.log' for more details" "$LINENO" 5; } 4413 else 4414 ac_cv_sizeof_double=0 4415 fi 4416 fi 4417 4418 fi 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 4420 $as_echo "$ac_cv_sizeof_double" >&6; } 4421 4422 4423 4424 cat >>confdefs.h <<_ACEOF 4425 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 4426 _ACEOF 4427 4428 4429 # The cast to long int works around a bug in the HP C Compiler 4430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4432 # This bug is HP SR number 8606223364. 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 4434 $as_echo_n "checking size of long double... " >&6; } 4435 if ${ac_cv_sizeof_long_double+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437 else 4438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 4439 4440 else 4441 if test "$ac_cv_type_long_double" = yes; then 4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4444 as_fn_error 77 "cannot compute sizeof (long double) 4445 See \`config.log' for more details" "$LINENO" 5; } 4446 else 4447 ac_cv_sizeof_long_double=0 4448 fi 4449 fi 4450 4451 fi 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 4453 $as_echo "$ac_cv_sizeof_long_double" >&6; } 4454 4455 4456 4457 cat >>confdefs.h <<_ACEOF 4458 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 4459 _ACEOF 4460 4461 4462 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val 4463 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val 4464 4465 4466 4467 4468 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \ 4469 unistd.h sys/stat.h sys/types.h \ 4470 string.h strings.h memory.h sys/auxv.h sys/mman.h 4471 do : 4472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4473 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" 4474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4475 cat >>confdefs.h <<_ACEOF 4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4477 _ACEOF 4478 4479 fi 4480 done 4481 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4483 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4484 if ${ac_cv_path_GREP+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486 else 4487 if test -z "$GREP"; then 4488 ac_path_GREP_found=false 4489 # Loop through the user's path and test for each of PROGNAME-LIST 4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4492 do 4493 IFS=$as_save_IFS 4494 test -z "$as_dir" && as_dir=. 4495 for ac_prog in grep ggrep; do 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4498 as_fn_executable_p "$ac_path_GREP" || continue 4499 # Check for GNU ac_path_GREP and select it if it is found. 4500 # Check for GNU $ac_path_GREP 4501 case `"$ac_path_GREP" --version 2>&1` in 4502 *GNU*) 4503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4504 *) 4505 ac_count=0 4506 $as_echo_n 0123456789 >"conftest.in" 4507 while : 4508 do 4509 cat "conftest.in" "conftest.in" >"conftest.tmp" 4510 mv "conftest.tmp" "conftest.in" 4511 cp "conftest.in" "conftest.nl" 4512 $as_echo 'GREP' >> "conftest.nl" 4513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4515 as_fn_arith $ac_count + 1 && ac_count=$as_val 4516 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4517 # Best one so far, save it but keep looking for a better one 4518 ac_cv_path_GREP="$ac_path_GREP" 4519 ac_path_GREP_max=$ac_count 4520 fi 4521 # 10*(2^10) chars as input seems more than enough 4522 test $ac_count -gt 10 && break 4523 done 4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4525 esac 4526 4527 $ac_path_GREP_found && break 3 4528 done 4529 done 4530 done 4531 IFS=$as_save_IFS 4532 if test -z "$ac_cv_path_GREP"; then 4533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4534 fi 4535 else 4536 ac_cv_path_GREP=$GREP 4537 fi 4538 4539 fi 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4541 $as_echo "$ac_cv_path_GREP" >&6; } 4542 GREP="$ac_cv_path_GREP" 4543 4544 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4546 $as_echo_n "checking for egrep... " >&6; } 4547 if ${ac_cv_path_EGREP+:} false; then : 4548 $as_echo_n "(cached) " >&6 4549 else 4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4551 then ac_cv_path_EGREP="$GREP -E" 4552 else 4553 if test -z "$EGREP"; then 4554 ac_path_EGREP_found=false 4555 # Loop through the user's path and test for each of PROGNAME-LIST 4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4558 do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_prog in egrep; do 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4564 as_fn_executable_p "$ac_path_EGREP" || continue 4565 # Check for GNU ac_path_EGREP and select it if it is found. 4566 # Check for GNU $ac_path_EGREP 4567 case `"$ac_path_EGREP" --version 2>&1` in 4568 *GNU*) 4569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4570 *) 4571 ac_count=0 4572 $as_echo_n 0123456789 >"conftest.in" 4573 while : 4574 do 4575 cat "conftest.in" "conftest.in" >"conftest.tmp" 4576 mv "conftest.tmp" "conftest.in" 4577 cp "conftest.in" "conftest.nl" 4578 $as_echo 'EGREP' >> "conftest.nl" 4579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4581 as_fn_arith $ac_count + 1 && ac_count=$as_val 4582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4583 # Best one so far, save it but keep looking for a better one 4584 ac_cv_path_EGREP="$ac_path_EGREP" 4585 ac_path_EGREP_max=$ac_count 4586 fi 4587 # 10*(2^10) chars as input seems more than enough 4588 test $ac_count -gt 10 && break 4589 done 4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4591 esac 4592 4593 $ac_path_EGREP_found && break 3 4594 done 4595 done 4596 done 4597 IFS=$as_save_IFS 4598 if test -z "$ac_cv_path_EGREP"; then 4599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4600 fi 4601 else 4602 ac_cv_path_EGREP=$EGREP 4603 fi 4604 4605 fi 4606 fi 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4608 $as_echo "$ac_cv_path_EGREP" >&6; } 4609 EGREP="$ac_cv_path_EGREP" 4610 4611 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4613 $as_echo_n "checking for ANSI C header files... " >&6; } 4614 if ${ac_cv_header_stdc+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616 else 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618 /* end confdefs.h. */ 4619 #include <stdlib.h> 4620 #include <stdarg.h> 4621 #include <string.h> 4622 #include <float.h> 4623 4624 int 4625 main () 4626 { 4627 4628 ; 4629 return 0; 4630 } 4631 _ACEOF 4632 if ac_fn_c_try_compile "$LINENO"; then : 4633 ac_cv_header_stdc=yes 4634 else 4635 ac_cv_header_stdc=no 4636 fi 4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638 4639 if test $ac_cv_header_stdc = yes; then 4640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642 /* end confdefs.h. */ 4643 #include <string.h> 4644 4645 _ACEOF 4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4647 $EGREP "memchr" >/dev/null 2>&1; then : 4648 4649 else 4650 ac_cv_header_stdc=no 4651 fi 4652 rm -f conftest* 4653 4654 fi 4655 4656 if test $ac_cv_header_stdc = yes; then 4657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659 /* end confdefs.h. */ 4660 #include <stdlib.h> 4661 4662 _ACEOF 4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4664 $EGREP "free" >/dev/null 2>&1; then : 4665 4666 else 4667 ac_cv_header_stdc=no 4668 fi 4669 rm -f conftest* 4670 4671 fi 4672 4673 if test $ac_cv_header_stdc = yes; then 4674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4675 if test "$cross_compiling" = yes; then : 4676 : 4677 else 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679 /* end confdefs.h. */ 4680 #include <ctype.h> 4681 #include <stdlib.h> 4682 #if ((' ' & 0x0FF) == 0x020) 4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4685 #else 4686 # define ISLOWER(c) \ 4687 (('a' <= (c) && (c) <= 'i') \ 4688 || ('j' <= (c) && (c) <= 'r') \ 4689 || ('s' <= (c) && (c) <= 'z')) 4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4691 #endif 4692 4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4694 int 4695 main () 4696 { 4697 int i; 4698 for (i = 0; i < 256; i++) 4699 if (XOR (islower (i), ISLOWER (i)) 4700 || toupper (i) != TOUPPER (i)) 4701 return 2; 4702 return 0; 4703 } 4704 _ACEOF 4705 if ac_fn_c_try_run "$LINENO"; then : 4706 4707 else 4708 ac_cv_header_stdc=no 4709 fi 4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4711 conftest.$ac_objext conftest.beam conftest.$ac_ext 4712 fi 4713 4714 fi 4715 fi 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4717 $as_echo "$ac_cv_header_stdc" >&6; } 4718 if test $ac_cv_header_stdc = yes; then 4719 4720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4721 4722 fi 4723 4724 4725 # Check for decimal float support. 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5 4727 $as_echo_n "checking whether decimal floating point is supported... " >&6; } 4728 if ${libgcc_cv_dfp+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730 else 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732 /* end confdefs.h. */ 4733 4734 #include <fenv.h> 4735 4736 int 4737 main () 4738 { 4739 4740 _Decimal32 x; 4741 int fe_except = 4742 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT; 4743 4744 ; 4745 return 0; 4746 } 4747 _ACEOF 4748 if ac_fn_c_try_compile "$LINENO"; then : 4749 libgcc_cv_dfp=yes 4750 else 4751 libgcc_cv_dfp=no 4752 fi 4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754 fi 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5 4756 $as_echo "$libgcc_cv_dfp" >&6; } 4757 decimal_float=$libgcc_cv_dfp 4758 4759 4760 4761 # Check whether --enable-decimal-float was given. 4762 if test "${enable_decimal_float+set}" = set; then : 4763 enableval=$enable_decimal_float; 4764 case $enable_decimal_float in 4765 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; 4766 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. 4767 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; 4768 esac 4769 4770 else 4771 4772 case $host in 4773 aarch64* | \ 4774 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ 4775 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ 4776 i?86*-*-mingw* | x86_64*-*-mingw* | \ 4777 i?86*-*-cygwin* | x86_64*-*-cygwin*) 4778 enable_decimal_float=yes 4779 ;; 4780 *) 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 4782 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} 4783 enable_decimal_float=no 4784 ;; 4785 esac 4786 4787 fi 4788 4789 4790 # x86's use BID format instead of DPD 4791 case x$enable_decimal_float in 4792 xyes) 4793 case $host in 4794 aarch64* | i?86*-*-* | x86_64*-*-*) 4795 enable_decimal_float=bid 4796 ;; 4797 *) 4798 enable_decimal_float=dpd 4799 ;; 4800 esac 4801 default_decimal_float=$enable_decimal_float 4802 ;; 4803 xno) 4804 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper 4805 # dependency on libdecnumber. 4806 default_decimal_float=dpd 4807 ;; 4808 esac 4809 4810 4811 4812 4813 # Check for fixed-point support. 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5 4815 $as_echo_n "checking whether fixed-point is supported... " >&6; } 4816 if ${libgcc_cv_fixed_point+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818 else 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820 /* end confdefs.h. */ 4821 _Sat _Fract x; 4822 _ACEOF 4823 if ac_fn_c_try_compile "$LINENO"; then : 4824 libgcc_cv_fixed_point=yes 4825 else 4826 libgcc_cv_fixed_point=no 4827 fi 4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4829 fi 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5 4831 $as_echo "$libgcc_cv_fixed_point" >&6; } 4832 fixed_point=$libgcc_cv_fixed_point 4833 4834 4835 # For platforms with the unwind ABI which includes an unwind library, 4836 # libunwind, we can choose to use the system libunwind. 4837 # config.gcc also contains tests of with_system_libunwind. 4838 4839 4840 # Check whether --with-system-libunwind was given. 4841 if test "${with_system_libunwind+set}" = set; then : 4842 withval=$with_system_libunwind; 4843 fi 4844 4845 # If system-libunwind was not specifically set, pick a default setting. 4846 if test x$with_system_libunwind = x; then 4847 case ${target} in 4848 ia64-*-hpux*) with_system_libunwind=yes ;; 4849 *) with_system_libunwind=no ;; 4850 esac 4851 fi 4852 # Based on system-libunwind and target, do we have ipinfo? 4853 if test x$with_system_libunwind = xyes; then 4854 case ${target} in 4855 ia64-*-*) have_unwind_getipinfo=no ;; 4856 *) have_unwind_getipinfo=yes ;; 4857 esac 4858 else 4859 # Darwin before version 9 does not have _Unwind_GetIPInfo. 4860 4861 case ${target} in 4862 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; 4863 *) have_unwind_getipinfo=yes ;; 4864 esac 4865 4866 fi 4867 4868 if test x$have_unwind_getipinfo = xyes; then 4869 4870 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 4871 4872 fi 4873 4874 4875 # Check if the compiler is configured for setjmp/longjmp exceptions. 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5 4877 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; } 4878 if ${ac_cv_sjlj_exceptions+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880 else 4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4882 /* end confdefs.h. */ 4883 #ifdef __USING_SJLJ_EXCEPTIONS__ 4884 this will fail 4885 #endif 4886 int 4887 main () 4888 { 4889 int i; 4890 ; 4891 return 0; 4892 } 4893 _ACEOF 4894 if ac_fn_c_try_compile "$LINENO"; then : 4895 ac_cv_sjlj_exceptions=no 4896 else 4897 ac_cv_sjlj_exceptions=yes 4898 fi 4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4900 fi 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5 4902 $as_echo "$ac_cv_sjlj_exceptions" >&6; } 4903 4904 # Check whether --enable-cet was given. 4905 if test "${enable_cet+set}" = set; then : 4906 enableval=$enable_cet; 4907 case "$enableval" in 4908 yes|no|auto) ;; 4909 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 4910 esac 4911 4912 else 4913 enable_cet=auto 4914 fi 4915 4916 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 4918 $as_echo_n "checking for CET support... " >&6; } 4919 4920 # NB: Avoid nested save_CFLAGS and save_LDFLAGS. 4921 case "$host" in 4922 i[34567]86-*-linux* | x86_64-*-linux*) 4923 case "$enable_cet" in 4924 auto) 4925 # Check if target supports multi-byte NOPs 4926 # and if compiler and assembler support CET insn. 4927 cet_save_CFLAGS="$CFLAGS" 4928 CFLAGS="$CFLAGS -fcf-protection" 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930 /* end confdefs.h. */ 4931 4932 int 4933 main () 4934 { 4935 4936 #if !defined(__SSE2__) 4937 #error target does not support multi-byte NOPs 4938 #else 4939 asm ("setssbsy"); 4940 #endif 4941 4942 ; 4943 return 0; 4944 } 4945 _ACEOF 4946 if ac_fn_c_try_compile "$LINENO"; then : 4947 enable_cet=yes 4948 else 4949 enable_cet=no 4950 fi 4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4952 CFLAGS="$cet_save_CFLAGS" 4953 ;; 4954 yes) 4955 # Check if assembler supports CET. 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957 /* end confdefs.h. */ 4958 4959 int 4960 main () 4961 { 4962 asm ("setssbsy"); 4963 ; 4964 return 0; 4965 } 4966 _ACEOF 4967 if ac_fn_c_try_compile "$LINENO"; then : 4968 4969 else 4970 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 4971 fi 4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4973 ;; 4974 esac 4975 ;; 4976 *) 4977 enable_cet=no 4978 ;; 4979 esac 4980 if test x$enable_cet = xyes; then 4981 CET_FLAGS="-fcf-protection -mshstk" 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4983 $as_echo "yes" >&6; } 4984 else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986 $as_echo "no" >&6; } 4987 fi 4988 4989 4990 4991 # Check whether --enable-explicit-exception-frame-registration was given. 4992 if test "${enable_explicit_exception_frame_registration+set}" = set; then : 4993 enableval=$enable_explicit_exception_frame_registration; 4994 force_explicit_eh_registry= 4995 if test "$enable_explicit_exception_frame_registration" = yes; then 4996 if test $ac_cv_sjlj_exceptions = yes; then 4997 as_fn_error $? "Can't --enable-explicit-exception-frame-registration 4998 with setjmp/longjmp exceptions" "$LINENO" 5 4999 fi 5000 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS 5001 fi 5002 5003 fi 5004 5005 5006 5007 # Check whether --enable-tm-clone-registry was given. 5008 if test "${enable_tm_clone_registry+set}" = set; then : 5009 enableval=$enable_tm_clone_registry; 5010 use_tm_clone_registry= 5011 if test "$enable_tm_clone_registry" = no; then 5012 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0 5013 fi 5014 5015 else 5016 5017 use_tm_clone_registry= 5018 case $target in 5019 msp430*elfbare) 5020 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0 5021 ;; 5022 esac 5023 5024 fi 5025 5026 5027 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5030 if ${acl_cv_prog_gnu_ld+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032 else 5033 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5034 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 5035 acl_cv_prog_gnu_ld=yes 5036 else 5037 acl_cv_prog_gnu_ld=no 5038 fi 5039 fi 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5041 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 5042 with_gnu_ld=$acl_cv_prog_gnu_ld 5043 5044 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 5046 $as_echo_n "checking for thread model used by GCC... " >&6; } 5047 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5 5049 $as_echo "$target_thread_file" >&6; } 5050 5051 # Check for assembler CFI support. 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5 5053 $as_echo_n "checking whether assembler supports CFI directives... " >&6; } 5054 if ${libgcc_cv_cfi+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056 else 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058 /* end confdefs.h. */ 5059 asm("\n\ 5060 .text\n\ 5061 .cfi_startproc\n\ 5062 .cfi_personality 0, symbol\n\ 5063 .cfi_endproc"); 5064 _ACEOF 5065 if ac_fn_c_try_compile "$LINENO"; then : 5066 libgcc_cv_cfi=yes 5067 else 5068 libgcc_cv_cfi=no 5069 fi 5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071 fi 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5 5073 $as_echo "$libgcc_cv_cfi" >&6; } 5074 5075 # Check 32bit or 64bit. In the case of MIPS, this really determines the 5076 # word size rather than the address size. 5077 cat > conftest.c <<EOF 5078 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \ 5079 || defined(__mips64) || defined(__loongarch64) 5080 host_address=64 5081 #else 5082 host_address=32 5083 #endif 5084 EOF 5085 eval `${CC-cc} -E conftest.c | grep host_address=` 5086 rm -f conftest.c 5087 5088 case ${host} in 5089 mips*-*-*) 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5 5091 $as_echo_n "checking whether the target is hard-float... " >&6; } 5092 if ${libgcc_cv_mips_hard_float+:} false; then : 5093 $as_echo_n "(cached) " >&6 5094 else 5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096 /* end confdefs.h. */ 5097 #ifndef __mips_hard_float 5098 #error FOO 5099 #endif 5100 5101 _ACEOF 5102 if ac_fn_c_try_compile "$LINENO"; then : 5103 libgcc_cv_mips_hard_float=yes 5104 else 5105 libgcc_cv_mips_hard_float=no 5106 fi 5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5108 fi 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5 5110 $as_echo "$libgcc_cv_mips_hard_float" >&6; } 5111 esac 5112 5113 case ${host} in 5114 *-*-solaris2*) 5115 # Check for system-provided CRTs on Solaris 11.4. 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 5117 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; } 5118 if ${libgcc_cv_solaris_crts+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120 else 5121 libgcc_cv_solaris_crts=no 5122 libgcc_sysroot="`${CC} -print-sysroot`" 5123 libgcc_libdir="$libgcc_sysroot/usr/lib" 5124 # At the time they were added, gcrt1.o became a symlink for backwards 5125 # compatibility on x86, while crt1.o was added on sparc, so check for that. 5126 case ${host} in 5127 i?86-*-solaris2* | x86_64-*-solaris2*) 5128 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi 5129 ;; 5130 sparc*-*-solaris2*) 5131 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi 5132 ;; 5133 esac 5134 fi 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5 5136 $as_echo "$libgcc_cv_solaris_crts" >&6; } 5137 if test $libgcc_cv_solaris_crts = yes; then 5138 5139 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h 5140 5141 fi 5142 ;; 5143 esac 5144 5145 # Determine the version of glibc, if any, used on the target. 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 5147 $as_echo_n "checking for target glibc version... " >&6; } 5148 5149 # Check whether --with-glibc-version was given. 5150 if test "${with_glibc_version+set}" = set; then : 5151 withval=$with_glibc_version; 5152 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then 5153 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` 5154 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` 5155 else 5156 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 5157 fi 5158 else 5159 5160 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then : 5161 5162 else 5163 glibc_version_major=0 5164 fi 5165 5166 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then : 5167 5168 else 5169 glibc_version_minor=0 5170 fi 5171 5172 fi 5173 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 5175 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; } 5176 5177 # Determine floating-point type for powerpc*-*-linux* or vxworks7*. 5178 # Single-precision-only FPRs are not a supported configuration for 5179 # this target, so are not allowed for in this test. 5180 case ${host} in 5181 powerpc*-*-linux* | powerpc*-*-vxworks7*) 5182 cat > conftest.c <<EOF 5183 #ifdef __powerpc64__ 5184 ppc_fp_type=64 5185 #elif defined _SOFT_FLOAT 5186 ppc_fp_type=soft 5187 #elif defined _SOFT_DOUBLE 5188 ppc_fp_type=e500v1 5189 #elif defined __NO_FPRS__ 5190 ppc_fp_type=e500v2 5191 #else 5192 ppc_fp_type=hard 5193 #endif 5194 EOF 5195 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=` 5196 rm -f conftest.c 5197 # glibc 2.19 and later provide all the soft-fp functions, with proper 5198 # interactions with <fenv.h> exception and rounding mode handling, so 5199 # make libgcc's versions into compat symbols if a recent enough glibc 5200 # version is being used. 5201 ppc_fp_compat= 5202 case ${ppc_fp_type} in 5203 soft|e500v1|e500v2) 5204 if test $glibc_version_major -gt 2 \ 5205 || ( test $glibc_version_major -eq 2 \ 5206 && test $glibc_version_minor -ge 19 ); then 5207 ppc_fp_compat="t-softfp-compat" 5208 fi 5209 ;; 5210 esac 5211 ;; 5212 esac 5213 5214 case ${host} in 5215 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just 5216 # check if we have VSX (ISA 2.06) support to build the software libraries, and 5217 # whether the assembler can handle xsaddqp for hardware support. Also check if 5218 # a new glibc is being used so that __builtin_cpu_supports can be used. 5219 powerpc*-*-linux*) 5220 saved_CFLAGS="$CFLAGS" 5221 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128" 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5 5223 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; } 5224 if ${libgcc_cv_powerpc_float128+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226 else 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228 /* end confdefs.h. */ 5229 vector double dadd (vector double a, vector double b) { return a + b; } 5230 _ACEOF 5231 if ac_fn_c_try_compile "$LINENO"; then : 5232 libgcc_cv_powerpc_float128=yes 5233 else 5234 libgcc_cv_powerpc_float128=no 5235 fi 5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5237 fi 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5 5239 $as_echo "$libgcc_cv_powerpc_float128" >&6; } 5240 5241 CFLAGS="$CFLAGS -mcpu=power9 -mfloat128-hardware" 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5 5243 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; } 5244 if ${libgcc_cv_powerpc_float128_hw+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246 else 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248 /* end confdefs.h. */ 5249 #include <sys/auxv.h> 5250 #ifndef AT_PLATFORM 5251 #error "AT_PLATFORM is not defined" 5252 #endif 5253 #ifndef __BUILTIN_CPU_SUPPORTS__ 5254 #error "__builtin_cpu_supports is not available" 5255 #endif 5256 vector unsigned char add (vector unsigned char a, vector unsigned char b) 5257 { 5258 vector unsigned char ret; 5259 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b)); 5260 return ret; 5261 } 5262 void *add_resolver (void) { return (void *) add; } 5263 __float128 add_ifunc (__float128, __float128) 5264 __attribute__ ((__ifunc__ ("add_resolver"))); 5265 _ACEOF 5266 if ac_fn_c_try_compile "$LINENO"; then : 5267 libgcc_cv_powerpc_float128_hw=yes 5268 else 5269 libgcc_cv_powerpc_float128_hw=no 5270 fi 5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5272 fi 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5 5274 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; } 5275 CFLAGS="$saved_CFLAGS" 5276 5277 saved_CFLAGS="$CFLAGS" 5278 CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware" 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5 5280 $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; } 5281 if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283 else 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285 /* end confdefs.h. */ 5286 #include <sys/auxv.h> 5287 #ifndef AT_PLATFORM 5288 #error "AT_PLATFORM is not defined" 5289 #endif 5290 #ifndef __BUILTIN_CPU_SUPPORTS__ 5291 #error "__builtin_cpu_supports is not available" 5292 #endif 5293 vector unsigned char conv (vector unsigned char qs) 5294 { 5295 vector unsigned char ret; 5296 __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs)); 5297 return ret; 5298 } 5299 void *conv_resolver (void) { return (void *) conv; } 5300 __float128 conv_ifunc (__float128) 5301 __attribute__ ((__ifunc__ ("conv_resolver"))); 5302 _ACEOF 5303 if ac_fn_c_try_compile "$LINENO"; then : 5304 libgcc_cv_powerpc_3_1_float128_hw=yes 5305 else 5306 libgcc_cv_powerpc_3_1_float128_hw=no 5307 fi 5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309 fi 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5 5311 $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; } 5312 CFLAGS="$saved_CFLAGS" 5313 esac 5314 5315 # Collect host-machine-specific information. 5316 . ${srcdir}/config.host 5317 5318 # Used for constructing correct paths for offload compilers. 5319 accel_dir_suffix= 5320 real_host_noncanonical=${host_noncanonical} 5321 if test x"$enable_as_accelerator_for" != x; then 5322 accel_dir_suffix=/accel/${target_noncanonical} 5323 real_host_noncanonical=${enable_as_accelerator_for} 5324 fi 5325 5326 5327 5328 if test x"$enable_offload_targets" != x; then 5329 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o" 5330 extra_parts="${extra_parts} crtoffloadtable.o crtoffloadtableS.o" 5331 fi 5332 5333 # Check if Solaris/x86 linker supports ZERO terminator unwind entries. 5334 # This is after config.host so we can augment tmake_file. 5335 # Link with -nostartfiles -nodefaultlibs since neither are present while 5336 # building libgcc. 5337 case ${host} in 5338 i?86-*-solaris2* | x86_64-*-solaris2*) 5339 cat > conftest.s <<EOF 5340 .section .eh_frame,"a",@unwind 5341 .zero 4 5342 .section .jcr,"aw",@progbits 5343 .zero 8 5344 EOF 5345 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5' 5346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5347 (eval $ac_try) 2>&5 5348 ac_status=$? 5349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5350 test $ac_status = 0; }; }; then 5351 tmake_file="${tmake_file} i386/t-crtstuff" 5352 fi 5353 ;; 5354 esac 5355 5356 # Check if Solaris linker support v2 linker mapfile syntax. 5357 # Link with -nostartfiles -nodefaultlibs since neither are present while 5358 # building libgcc. 5359 case ${host} in 5360 *-*-solaris2*) 5361 solaris_ld_v2_maps=no 5362 echo 'int main(void) {return 0;}' > conftest.c 5363 echo '$mapfile_version 2' > conftest.map 5364 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5' 5365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5366 (eval $ac_try) 2>&5 5367 ac_status=$? 5368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5369 test $ac_status = 0; }; }; then 5370 solaris_ld_v2_maps=yes 5371 fi 5372 ;; 5373 esac 5374 5375 5376 # Check if xtensa target is configured for windowed ABI and thus needs to use 5377 # custom unwind code. 5378 # This is after config.host so we can augment tmake_file. 5379 case ${host} in 5380 xtensa*-*) 5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5382 /* end confdefs.h. */ 5383 #ifdef __XTENSA_CALL0_ABI__ 5384 #error 5385 #endif 5386 5387 _ACEOF 5388 if ac_fn_c_try_compile "$LINENO"; then : 5389 tmake_file="${tmake_file} xtensa/t-windowed" 5390 fi 5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5392 ;; 5393 esac 5394 5395 # Check for visibility support. This is after config.host so that 5396 # we can check for asm_hidden_op. 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 5398 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; } 5399 if ${libgcc_cv_hidden_visibility_attribute+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401 else 5402 5403 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c 5404 libgcc_cv_hidden_visibility_attribute=no 5405 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' 5406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5410 test $ac_status = 0; }; }; then 5411 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then 5412 libgcc_cv_hidden_visibility_attribute=yes 5413 fi 5414 fi 5415 rm -f conftest.* 5416 5417 fi 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5 5419 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; } 5420 5421 if test $libgcc_cv_hidden_visibility_attribute = yes; then 5422 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS' 5423 5424 cat >>confdefs.h <<_ACEOF 5425 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op 5426 _ACEOF 5427 5428 else 5429 vis_hide= 5430 fi 5431 5432 5433 # Check for .cfi_sections .debug_frame support. 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5 5435 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; } 5436 if ${libgcc_cv_cfi_sections_directive+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438 else 5439 5440 echo 'int foo (int, char *);' > conftest.c 5441 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c 5442 libgcc_cv_cfi_sections_directive=no 5443 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5' 5444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5445 (eval $ac_try) 2>&5 5446 ac_status=$? 5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5448 test $ac_status = 0; }; }; then 5449 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then 5450 libgcc_cv_cfi_sections_directive=yes 5451 fi 5452 fi 5453 rm -f conftest.* 5454 5455 fi 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5 5457 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; } 5458 if test $libgcc_cv_cfi_sections_directive = yes; then 5459 5460 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h 5461 5462 fi 5463 5464 # See if we have thread-local storage. We can only test assembler 5465 # since link-time and run-time tests require the newly built 5466 # gcc, which can't be used to build executable due to that libgcc 5467 # is yet to be built here. 5468 5469 # Check whether --enable-tls was given. 5470 if test "${enable_tls+set}" = set; then : 5471 enableval=$enable_tls; 5472 case "$enableval" in 5473 yes|no) ;; 5474 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 5475 esac 5476 5477 else 5478 enable_tls=yes 5479 fi 5480 5481 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5 5483 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; } 5484 if ${gcc_cv_have_cc_tls+:} false; then : 5485 $as_echo_n "(cached) " >&6 5486 else 5487 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489 /* end confdefs.h. */ 5490 __thread int a; int b; int main() { return a = b; } 5491 _ACEOF 5492 if ac_fn_c_try_compile "$LINENO"; then : 5493 gcc_cv_have_cc_tls=yes 5494 else 5495 gcc_cv_have_cc_tls=no 5496 fi 5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5498 5499 fi 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5 5501 $as_echo "$gcc_cv_have_cc_tls" >&6; } 5502 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then 5503 5504 $as_echo "#define HAVE_CC_TLS 1" >>confdefs.h 5505 5506 fi 5507 set_have_cc_tls= 5508 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then 5509 set_have_cc_tls="-DHAVE_CC_TLS" 5510 fi 5511 5512 5513 # See if we have emulated thread-local storage. 5514 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 5516 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } 5517 if ${gcc_cv_use_emutls+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519 else 5520 5521 gcc_cv_use_emutls=no 5522 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c 5523 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' 5524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5525 (eval $ac_try) 2>&5 5526 ac_status=$? 5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5528 test $ac_status = 0; }; }; then 5529 if grep __emutls_get_address conftest.s > /dev/null; then 5530 gcc_cv_use_emutls=yes 5531 fi 5532 fi 5533 rm -f conftest.* 5534 5535 fi 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 5537 $as_echo "$gcc_cv_use_emutls" >&6; } 5538 if test "$gcc_cv_use_emutls" = "yes" ; then 5539 5540 $as_echo "#define USE_EMUTLS 1" >>confdefs.h 5541 5542 fi 5543 set_use_emutls= 5544 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then 5545 set_use_emutls="-DUSE_EMUTLS" 5546 fi 5547 5548 5549 5550 5551 case "${target}" in 5552 i[34567]86-*-* | x86_64-*-*) 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5 5554 $as_echo_n "checking if the assembler supports AVX... " >&6; } 5555 if ${libgcc_cv_as_avx+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557 else 5558 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560 /* end confdefs.h. */ 5561 5562 int 5563 main () 5564 { 5565 asm("vzeroupper"); 5566 ; 5567 return 0; 5568 } 5569 _ACEOF 5570 if ac_fn_c_try_compile "$LINENO"; then : 5571 libgcc_cv_as_avx=yes 5572 else 5573 libgcc_cv_as_avx=no 5574 fi 5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5576 5577 fi 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5 5579 $as_echo "$libgcc_cv_as_avx" >&6; } 5580 if test x$libgcc_cv_as_avx = xyes; then 5581 5582 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h 5583 5584 fi 5585 ;; 5586 esac 5587 5588 5589 5590 case "${target}" in 5591 aarch64*-*-*) 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5 5593 $as_echo_n "checking if the assembler supports LSE... " >&6; } 5594 if ${libgcc_cv_as_lse+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596 else 5597 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599 /* end confdefs.h. */ 5600 5601 int 5602 main () 5603 { 5604 asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]"); 5605 5606 ; 5607 return 0; 5608 } 5609 _ACEOF 5610 if ac_fn_c_try_compile "$LINENO"; then : 5611 libgcc_cv_as_lse=yes 5612 else 5613 libgcc_cv_as_lse=no 5614 fi 5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5616 5617 fi 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5 5619 $as_echo "$libgcc_cv_as_lse" >&6; } 5620 if test x$libgcc_cv_as_lse = xyes; then 5621 5622 $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h 5623 5624 fi 5625 ;; 5626 esac 5627 5628 5629 5630 case "${target}" in 5631 aarch64*-*-*) 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if as supports .variant_pcs" >&5 5633 $as_echo_n "checking if as supports .variant_pcs... " >&6; } 5634 if ${libgcc_cv_as_variant_pcs+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636 else 5637 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639 /* end confdefs.h. */ 5640 5641 int 5642 main () 5643 { 5644 asm (".variant_pcs foobar"); 5645 ; 5646 return 0; 5647 } 5648 _ACEOF 5649 if ac_fn_c_try_compile "$LINENO"; then : 5650 libgcc_cv_as_variant_pcs=yes 5651 else 5652 libgcc_cv_as_variant_pcs=no 5653 fi 5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655 5656 fi 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_variant_pcs" >&5 5658 $as_echo "$libgcc_cv_as_variant_pcs" >&6; } 5659 if test x$libgcc_cv_as_variant_pcs = xyes; then 5660 5661 $as_echo "#define HAVE_AS_VARIANT_PCS 1" >>confdefs.h 5662 5663 fi 5664 ;; 5665 esac 5666 5667 # Check __getauxval ABI symbol for CPU feature detection. 5668 case ${target} in 5669 aarch64*-linux-*) 5670 # No link check because the libc may not be present. 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __getauxval" >&5 5672 $as_echo_n "checking for __getauxval... " >&6; } 5673 if ${libgcc_cv_have___getauxval+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675 else 5676 case ${target} in 5677 *-linux-gnu*) 5678 libgcc_cv_have___getauxval=yes 5679 ;; 5680 *) 5681 libgcc_cv_have___getauxval=no 5682 esac 5683 fi 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_have___getauxval" >&5 5685 $as_echo "$libgcc_cv_have___getauxval" >&6; } 5686 if test x$libgcc_cv_have___getauxval = xyes; then 5687 5688 $as_echo "#define HAVE___GETAUXVAL 1" >>confdefs.h 5689 5690 fi 5691 esac 5692 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5 5694 $as_echo_n "checking for init priority support... " >&6; } 5695 if ${libgcc_cv_init_priority+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697 else 5698 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700 /* end confdefs.h. */ 5701 5702 int 5703 main () 5704 { 5705 void ip (void) __attribute__ ((constructor (1))); 5706 ; 5707 return 0; 5708 } 5709 _ACEOF 5710 if ac_fn_c_try_compile "$LINENO"; then : 5711 libgcc_cv_init_priority=yes 5712 else 5713 libgcc_cv_init_priority=no 5714 fi 5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5716 fi 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5 5718 $as_echo "$libgcc_cv_init_priority" >&6; } 5719 if test $libgcc_cv_init_priority = yes; then 5720 5721 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h 5722 5723 fi 5724 5725 # Conditionalize the sfp-machine.h header for this target machine. 5726 if test -z "${sfp_machine_header}"; then 5727 sfp_machine_header=$cpu_type/sfp-machine.h 5728 if test -f ${srcdir}/config/${sfp_machine_header}; then 5729 : 5730 else 5731 sfp_machine_header=no-sfp-machine.h 5732 fi 5733 fi 5734 5735 5736 # Conditionalize the makefile for this target machine. 5737 tmake_file_= 5738 for f in ${tmake_file} 5739 do 5740 if test -f ${srcdir}/config/$f 5741 then 5742 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 5743 fi 5744 done 5745 tmake_file="${tmake_file_}" 5746 5747 5748 # Likewise export definitions for libgcc_tm.h 5749 tm_file_= 5750 for f in ${tm_file} 5751 do 5752 tm_file_="${tm_file_} \$(srcdir)/config/$f" 5753 done 5754 tm_file="${tm_file_}" 5755 5756 5757 5758 # Map from thread model to thread header. 5759 5760 case $target_thread_file in 5761 aix) thread_header=config/rs6000/gthr-aix.h ;; 5762 dce) thread_header=config/pa/gthr-dce.h ;; 5763 gcn) thread_header=config/gcn/gthr-gcn.h ;; 5764 lynx) thread_header=config/gthr-lynx.h ;; 5765 mipssde) thread_header=config/mips/gthr-mipssde.h ;; 5766 posix) thread_header=gthr-posix.h ;; 5767 rtems) thread_header=config/gthr-rtems.h ;; 5768 single) thread_header=gthr-single.h ;; 5769 tpf) thread_header=config/s390/gthr-tpf.h ;; 5770 vxworks) thread_header=config/gthr-vxworks.h ;; 5771 win32) thread_header=config/i386/gthr-win32.h ;; 5772 mcf) thread_header=config/i386/gthr-mcf.h ;; 5773 esac 5774 5775 5776 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strub support" >&5 5778 $as_echo_n "checking for strub support... " >&6; } 5779 if ${libgcc_cv_strub_support+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781 else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783 /* end confdefs.h. */ 5784 void __attribute__ ((__strub__)) fn (void) {} 5785 _ACEOF 5786 if ac_fn_c_try_compile "$LINENO"; then : 5787 libgcc_cv_strub_support=yes 5788 else 5789 libgcc_cv_strub_support=no 5790 fi 5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5792 fi 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_strub_support" >&5 5794 $as_echo "$libgcc_cv_strub_support" >&6; } 5795 if test "x$libgcc_cv_strub_support" != xno; then 5796 HAVE_STRUB_SUPPORT= 5797 else 5798 HAVE_STRUB_SUPPORT='# ' 5799 fi 5800 5801 5802 # Determine what GCC version number to use in filesystem paths. 5803 5804 get_gcc_base_ver="cat" 5805 5806 # Check whether --with-gcc-major-version-only was given. 5807 if test "${with_gcc_major_version_only+set}" = set; then : 5808 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 5809 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 5810 fi 5811 5812 fi 5813 5814 5815 5816 5817 # Substitute configuration variables 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 # We need multilib support. 5828 ac_config_files="$ac_config_files Makefile" 5829 5830 ac_config_commands="$ac_config_commands default" 5831 5832 cat >confcache <<\_ACEOF 5833 # This file is a shell script that caches the results of configure 5834 # tests run on this system so they can be shared between configure 5835 # scripts and configure runs, see configure's option --config-cache. 5836 # It is not useful on other systems. If it contains results you don't 5837 # want to keep, you may remove or edit it. 5838 # 5839 # config.status only pays attention to the cache file if you give it 5840 # the --recheck option to rerun configure. 5841 # 5842 # `ac_cv_env_foo' variables (set or unset) will be overridden when 5843 # loading this file, other *unset* `ac_cv_foo' will be assigned the 5844 # following values. 5845 5846 _ACEOF 5847 5848 # The following way of writing the cache mishandles newlines in values, 5849 # but we know of no workaround that is simple, portable, and efficient. 5850 # So, we kill variables containing newlines. 5851 # Ultrix sh set writes to stderr and can't be redirected directly, 5852 # and sets the high bit in the cache file unless we assign to the vars. 5853 ( 5854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5855 eval ac_val=\$$ac_var 5856 case $ac_val in #( 5857 *${as_nl}*) 5858 case $ac_var in #( 5859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5861 esac 5862 case $ac_var in #( 5863 _ | IFS | as_nl) ;; #( 5864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5865 *) { eval $ac_var=; unset $ac_var;} ;; 5866 esac ;; 5867 esac 5868 done 5869 5870 (set) 2>&1 | 5871 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5872 *${as_nl}ac_space=\ *) 5873 # `set' does not quote correctly, so add quotes: double-quote 5874 # substitution turns \\\\ into \\, and sed turns \\ into \. 5875 sed -n \ 5876 "s/'/'\\\\''/g; 5877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5878 ;; #( 5879 *) 5880 # `set' quotes correctly as required by POSIX, so do not add quotes. 5881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5882 ;; 5883 esac | 5884 sort 5885 ) | 5886 sed ' 5887 /^ac_cv_env_/b end 5888 t clear 5889 :clear 5890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5891 t end 5892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5893 :end' >>confcache 5894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5895 if test -w "$cache_file"; then 5896 if test "x$cache_file" != "x/dev/null"; then 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5898 $as_echo "$as_me: updating cache $cache_file" >&6;} 5899 if test ! -f "$cache_file" || test -h "$cache_file"; then 5900 cat confcache >"$cache_file" 5901 else 5902 case $cache_file in #( 5903 */* | ?:*) 5904 mv -f confcache "$cache_file"$$ && 5905 mv -f "$cache_file"$$ "$cache_file" ;; #( 5906 *) 5907 mv -f confcache "$cache_file" ;; 5908 esac 5909 fi 5910 fi 5911 else 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5914 fi 5915 fi 5916 rm -f confcache 5917 5918 test "x$prefix" = xNONE && prefix=$ac_default_prefix 5919 # Let make expand exec_prefix. 5920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5921 5922 DEFS=-DHAVE_CONFIG_H 5923 5924 ac_libobjs= 5925 ac_ltlibobjs= 5926 U= 5927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5928 # 1. Remove the extension, and $U if already installed. 5929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5932 # will be set to the directory where LIBOBJS objects are built. 5933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5935 done 5936 LIBOBJS=$ac_libobjs 5937 5938 LTLIBOBJS=$ac_ltlibobjs 5939 5940 5941 5942 : "${CONFIG_STATUS=./config.status}" 5943 ac_write_fail=0 5944 ac_clean_files_save=$ac_clean_files 5945 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5947 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5948 as_write_fail=0 5949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5950 #! $SHELL 5951 # Generated by $as_me. 5952 # Run this file to recreate the current configuration. 5953 # Compiler output produced by configure, useful for debugging 5954 # configure, is in config.log if it exists. 5955 5956 debug=false 5957 ac_cs_recheck=false 5958 ac_cs_silent=false 5959 5960 SHELL=\${CONFIG_SHELL-$SHELL} 5961 export SHELL 5962 _ASEOF 5963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5964 ## -------------------- ## 5965 ## M4sh Initialization. ## 5966 ## -------------------- ## 5967 5968 # Be more Bourne compatible 5969 DUALCASE=1; export DUALCASE # for MKS sh 5970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5971 emulate sh 5972 NULLCMD=: 5973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5974 # is contrary to our usage. Disable this feature. 5975 alias -g '${1+"$@"}'='"$@"' 5976 setopt NO_GLOB_SUBST 5977 else 5978 case `(set -o) 2>/dev/null` in #( 5979 *posix*) : 5980 set -o posix ;; #( 5981 *) : 5982 ;; 5983 esac 5984 fi 5985 5986 5987 as_nl=' 5988 ' 5989 export as_nl 5990 # Printing a long string crashes Solaris 7 /usr/bin/printf. 5991 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5994 # Prefer a ksh shell builtin over an external printf program on Solaris, 5995 # but without wasting forks for bash or zsh. 5996 if test -z "$BASH_VERSION$ZSH_VERSION" \ 5997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5998 as_echo='print -r --' 5999 as_echo_n='print -rn --' 6000 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6001 as_echo='printf %s\n' 6002 as_echo_n='printf %s' 6003 else 6004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6006 as_echo_n='/usr/ucb/echo -n' 6007 else 6008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6009 as_echo_n_body='eval 6010 arg=$1; 6011 case $arg in #( 6012 *"$as_nl"*) 6013 expr "X$arg" : "X\\(.*\\)$as_nl"; 6014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6015 esac; 6016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6017 ' 6018 export as_echo_n_body 6019 as_echo_n='sh -c $as_echo_n_body as_echo' 6020 fi 6021 export as_echo_body 6022 as_echo='sh -c $as_echo_body as_echo' 6023 fi 6024 6025 # The user is always right. 6026 if test "${PATH_SEPARATOR+set}" != set; then 6027 PATH_SEPARATOR=: 6028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6030 PATH_SEPARATOR=';' 6031 } 6032 fi 6033 6034 6035 # IFS 6036 # We need space, tab and new line, in precisely that order. Quoting is 6037 # there to prevent editors from complaining about space-tab. 6038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 6039 # splitting by setting IFS to empty value.) 6040 IFS=" "" $as_nl" 6041 6042 # Find who we are. Look in the path if we contain no directory separator. 6043 as_myself= 6044 case $0 in #(( 6045 *[\\/]* ) as_myself=$0 ;; 6046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6047 for as_dir in $PATH 6048 do 6049 IFS=$as_save_IFS 6050 test -z "$as_dir" && as_dir=. 6051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6052 done 6053 IFS=$as_save_IFS 6054 6055 ;; 6056 esac 6057 # We did not find ourselves, most probably we were run as `sh COMMAND' 6058 # in which case we are not to be found in the path. 6059 if test "x$as_myself" = x; then 6060 as_myself=$0 6061 fi 6062 if test ! -f "$as_myself"; then 6063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6064 exit 1 6065 fi 6066 6067 # Unset variables that we do not need and which cause bugs (e.g. in 6068 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6069 # suppresses any "Segmentation fault" message there. '((' could 6070 # trigger a bug in pdksh 5.2.14. 6071 for as_var in BASH_ENV ENV MAIL MAILPATH 6072 do eval test x\${$as_var+set} = xset \ 6073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6074 done 6075 PS1='$ ' 6076 PS2='> ' 6077 PS4='+ ' 6078 6079 # NLS nuisances. 6080 LC_ALL=C 6081 export LC_ALL 6082 LANGUAGE=C 6083 export LANGUAGE 6084 6085 # CDPATH. 6086 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6087 6088 6089 # as_fn_error STATUS ERROR [LINENO LOG_FD] 6090 # ---------------------------------------- 6091 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6092 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6093 # script with STATUS, using 1 if that was 0. 6094 as_fn_error () 6095 { 6096 as_status=$1; test $as_status -eq 0 && as_status=1 6097 if test "$4"; then 6098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 6099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 6100 fi 6101 $as_echo "$as_me: error: $2" >&2 6102 as_fn_exit $as_status 6103 } # as_fn_error 6104 6105 6106 # as_fn_set_status STATUS 6107 # ----------------------- 6108 # Set $? to STATUS, without forking. 6109 as_fn_set_status () 6110 { 6111 return $1 6112 } # as_fn_set_status 6113 6114 # as_fn_exit STATUS 6115 # ----------------- 6116 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 6117 as_fn_exit () 6118 { 6119 set +e 6120 as_fn_set_status $1 6121 exit $1 6122 } # as_fn_exit 6123 6124 # as_fn_unset VAR 6125 # --------------- 6126 # Portably unset VAR. 6127 as_fn_unset () 6128 { 6129 { eval $1=; unset $1;} 6130 } 6131 as_unset=as_fn_unset 6132 # as_fn_append VAR VALUE 6133 # ---------------------- 6134 # Append the text in VALUE to the end of the definition contained in VAR. Take 6135 # advantage of any shell optimizations that allow amortized linear growth over 6136 # repeated appends, instead of the typical quadratic growth present in naive 6137 # implementations. 6138 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6139 eval 'as_fn_append () 6140 { 6141 eval $1+=\$2 6142 }' 6143 else 6144 as_fn_append () 6145 { 6146 eval $1=\$$1\$2 6147 } 6148 fi # as_fn_append 6149 6150 # as_fn_arith ARG... 6151 # ------------------ 6152 # Perform arithmetic evaluation on the ARGs, and store the result in the 6153 # global $as_val. Take advantage of shells that can avoid forks. The arguments 6154 # must be portable across $(()) and expr. 6155 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6156 eval 'as_fn_arith () 6157 { 6158 as_val=$(( $* )) 6159 }' 6160 else 6161 as_fn_arith () 6162 { 6163 as_val=`expr "$@" || test $? -eq 1` 6164 } 6165 fi # as_fn_arith 6166 6167 6168 if expr a : '\(a\)' >/dev/null 2>&1 && 6169 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6170 as_expr=expr 6171 else 6172 as_expr=false 6173 fi 6174 6175 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6176 as_basename=basename 6177 else 6178 as_basename=false 6179 fi 6180 6181 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6182 as_dirname=dirname 6183 else 6184 as_dirname=false 6185 fi 6186 6187 as_me=`$as_basename -- "$0" || 6188 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6189 X"$0" : 'X\(//\)$' \| \ 6190 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6191 $as_echo X/"$0" | 6192 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6193 s//\1/ 6194 q 6195 } 6196 /^X\/\(\/\/\)$/{ 6197 s//\1/ 6198 q 6199 } 6200 /^X\/\(\/\).*/{ 6201 s//\1/ 6202 q 6203 } 6204 s/.*/./; q'` 6205 6206 # Avoid depending upon Character Ranges. 6207 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6210 as_cr_digits='0123456789' 6211 as_cr_alnum=$as_cr_Letters$as_cr_digits 6212 6213 ECHO_C= ECHO_N= ECHO_T= 6214 case `echo -n x` in #((((( 6215 -n*) 6216 case `echo 'xy\c'` in 6217 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6218 xy) ECHO_C='\c';; 6219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6220 ECHO_T=' ';; 6221 esac;; 6222 *) 6223 ECHO_N='-n';; 6224 esac 6225 6226 rm -f conf$$ conf$$.exe conf$$.file 6227 if test -d conf$$.dir; then 6228 rm -f conf$$.dir/conf$$.file 6229 else 6230 rm -f conf$$.dir 6231 mkdir conf$$.dir 2>/dev/null 6232 fi 6233 if (echo >conf$$.file) 2>/dev/null; then 6234 if ln -s conf$$.file conf$$ 2>/dev/null; then 6235 as_ln_s='ln -s' 6236 # ... but there are two gotchas: 6237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6239 # In both cases, we have to default to `cp -pR'. 6240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6241 as_ln_s='cp -pR' 6242 elif ln conf$$.file conf$$ 2>/dev/null; then 6243 as_ln_s=ln 6244 else 6245 as_ln_s='cp -pR' 6246 fi 6247 else 6248 as_ln_s='cp -pR' 6249 fi 6250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6251 rmdir conf$$.dir 2>/dev/null 6252 6253 6254 # as_fn_mkdir_p 6255 # ------------- 6256 # Create "$as_dir" as a directory, including parents if necessary. 6257 as_fn_mkdir_p () 6258 { 6259 6260 case $as_dir in #( 6261 -*) as_dir=./$as_dir;; 6262 esac 6263 test -d "$as_dir" || eval $as_mkdir_p || { 6264 as_dirs= 6265 while :; do 6266 case $as_dir in #( 6267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6268 *) as_qdir=$as_dir;; 6269 esac 6270 as_dirs="'$as_qdir' $as_dirs" 6271 as_dir=`$as_dirname -- "$as_dir" || 6272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6273 X"$as_dir" : 'X\(//\)[^/]' \| \ 6274 X"$as_dir" : 'X\(//\)$' \| \ 6275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6276 $as_echo X"$as_dir" | 6277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6278 s//\1/ 6279 q 6280 } 6281 /^X\(\/\/\)[^/].*/{ 6282 s//\1/ 6283 q 6284 } 6285 /^X\(\/\/\)$/{ 6286 s//\1/ 6287 q 6288 } 6289 /^X\(\/\).*/{ 6290 s//\1/ 6291 q 6292 } 6293 s/.*/./; q'` 6294 test -d "$as_dir" && break 6295 done 6296 test -z "$as_dirs" || eval "mkdir $as_dirs" 6297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 6298 6299 6300 } # as_fn_mkdir_p 6301 if mkdir -p . 2>/dev/null; then 6302 as_mkdir_p='mkdir -p "$as_dir"' 6303 else 6304 test -d ./-p && rmdir ./-p 6305 as_mkdir_p=false 6306 fi 6307 6308 6309 # as_fn_executable_p FILE 6310 # ----------------------- 6311 # Test if FILE is an executable regular file. 6312 as_fn_executable_p () 6313 { 6314 test -f "$1" && test -x "$1" 6315 } # as_fn_executable_p 6316 as_test_x='test -x' 6317 as_executable_p=as_fn_executable_p 6318 6319 # Sed expression to map a string onto a valid CPP name. 6320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6321 6322 # Sed expression to map a string onto a valid variable name. 6323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6324 6325 6326 exec 6>&1 6327 ## ----------------------------------- ## 6328 ## Main body of $CONFIG_STATUS script. ## 6329 ## ----------------------------------- ## 6330 _ASEOF 6331 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6332 6333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6334 # Save the log message, to keep $0 and so on meaningful, and to 6335 # report actual input values of CONFIG_FILES etc. instead of their 6336 # values after options handling. 6337 ac_log=" 6338 This file was extended by GNU C Runtime Library $as_me 1.0, which was 6339 generated by GNU Autoconf 2.69. Invocation command line was 6340 6341 CONFIG_FILES = $CONFIG_FILES 6342 CONFIG_HEADERS = $CONFIG_HEADERS 6343 CONFIG_LINKS = $CONFIG_LINKS 6344 CONFIG_COMMANDS = $CONFIG_COMMANDS 6345 $ $0 $@ 6346 6347 on `(hostname || uname -n) 2>/dev/null | sed 1q` 6348 " 6349 6350 _ACEOF 6351 6352 case $ac_config_files in *" 6353 "*) set x $ac_config_files; shift; ac_config_files=$*;; 6354 esac 6355 6356 case $ac_config_headers in *" 6357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6358 esac 6359 6360 6361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6362 # Files that config.status was made for. 6363 config_files="$ac_config_files" 6364 config_headers="$ac_config_headers" 6365 config_commands="$ac_config_commands" 6366 6367 _ACEOF 6368 6369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6370 ac_cs_usage="\ 6371 \`$as_me' instantiates files and other configuration actions 6372 from templates according to the current configuration. Unless the files 6373 and actions are specified as TAGs, all are instantiated by default. 6374 6375 Usage: $0 [OPTION]... [TAG]... 6376 6377 -h, --help print this help, then exit 6378 -V, --version print version number and configuration settings, then exit 6379 --config print configuration, then exit 6380 -q, --quiet, --silent 6381 do not print progress messages 6382 -d, --debug don't remove temporary files 6383 --recheck update $as_me by reconfiguring in the same conditions 6384 --file=FILE[:TEMPLATE] 6385 instantiate the configuration file FILE 6386 --header=FILE[:TEMPLATE] 6387 instantiate the configuration header FILE 6388 6389 Configuration files: 6390 $config_files 6391 6392 Configuration headers: 6393 $config_headers 6394 6395 Configuration commands: 6396 $config_commands 6397 6398 Report bugs to the package provider. 6399 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. 6400 General help using GNU software: <http://www.gnu.org/gethelp/>." 6401 6402 _ACEOF 6403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6404 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6405 ac_cs_version="\\ 6406 GNU C Runtime Library config.status 1.0 6407 configured by $0, generated by GNU Autoconf 2.69, 6408 with options \\"\$ac_cs_config\\" 6409 6410 Copyright (C) 2012 Free Software Foundation, Inc. 6411 This config.status script is free software; the Free Software Foundation 6412 gives unlimited permission to copy, distribute and modify it." 6413 6414 ac_pwd='$ac_pwd' 6415 srcdir='$srcdir' 6416 INSTALL='$INSTALL' 6417 AWK='$AWK' 6418 test -n "\$AWK" || AWK=awk 6419 _ACEOF 6420 6421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6422 # The default lists apply if the user does not specify any file. 6423 ac_need_defaults=: 6424 while test $# != 0 6425 do 6426 case $1 in 6427 --*=?*) 6428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6430 ac_shift=: 6431 ;; 6432 --*=) 6433 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6434 ac_optarg= 6435 ac_shift=: 6436 ;; 6437 *) 6438 ac_option=$1 6439 ac_optarg=$2 6440 ac_shift=shift 6441 ;; 6442 esac 6443 6444 case $ac_option in 6445 # Handling of the options. 6446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6447 ac_cs_recheck=: ;; 6448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6449 $as_echo "$ac_cs_version"; exit ;; 6450 --config | --confi | --conf | --con | --co | --c ) 6451 $as_echo "$ac_cs_config"; exit ;; 6452 --debug | --debu | --deb | --de | --d | -d ) 6453 debug=: ;; 6454 --file | --fil | --fi | --f ) 6455 $ac_shift 6456 case $ac_optarg in 6457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6458 '') as_fn_error $? "missing file argument" ;; 6459 esac 6460 as_fn_append CONFIG_FILES " '$ac_optarg'" 6461 ac_need_defaults=false;; 6462 --header | --heade | --head | --hea ) 6463 $ac_shift 6464 case $ac_optarg in 6465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6466 esac 6467 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6468 ac_need_defaults=false;; 6469 --he | --h) 6470 # Conflict between --help and --header 6471 as_fn_error $? "ambiguous option: \`$1' 6472 Try \`$0 --help' for more information.";; 6473 --help | --hel | -h ) 6474 $as_echo "$ac_cs_usage"; exit ;; 6475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6476 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6477 ac_cs_silent=: ;; 6478 6479 # This is an error. 6480 -*) as_fn_error $? "unrecognized option: \`$1' 6481 Try \`$0 --help' for more information." ;; 6482 6483 *) as_fn_append ac_config_targets " $1" 6484 ac_need_defaults=false ;; 6485 6486 esac 6487 shift 6488 done 6489 6490 ac_configure_extra_args= 6491 6492 if $ac_cs_silent; then 6493 exec 6>/dev/null 6494 ac_configure_extra_args="$ac_configure_extra_args --silent" 6495 fi 6496 6497 _ACEOF 6498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6499 if \$ac_cs_recheck; then 6500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6501 shift 6502 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6503 CONFIG_SHELL='$SHELL' 6504 export CONFIG_SHELL 6505 exec "\$@" 6506 fi 6507 6508 _ACEOF 6509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6510 exec 5>>config.log 6511 { 6512 echo 6513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6514 ## Running $as_me. ## 6515 _ASBOX 6516 $as_echo "$ac_log" 6517 } >&5 6518 6519 _ACEOF 6520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6521 # 6522 # INIT-COMMANDS 6523 # 6524 srcdir=${srcdir} 6525 host=${host} 6526 with_target_subdir=${with_target_subdir} 6527 with_multisubdir=${with_multisubdir} 6528 ac_configure_args="--enable-multilib ${ac_configure_args}" 6529 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 6530 libgcc_topdir=${libgcc_topdir} 6531 CC="${CC}" 6532 6533 6534 _ACEOF 6535 6536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6537 6538 # Handling of arguments. 6539 for ac_config_target in $ac_config_targets 6540 do 6541 case $ac_config_target in 6542 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;; 6543 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6544 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 6545 6546 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6547 esac 6548 done 6549 6550 6551 # If the user did not use the arguments to specify the items to instantiate, 6552 # then the envvar interface is used. Set only those that are not. 6553 # We use the long form for the default assignment because of an extremely 6554 # bizarre bug on SunOS 4.1.3. 6555 if $ac_need_defaults; then 6556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6559 fi 6560 6561 # Have a temporary directory for convenience. Make it in the build tree 6562 # simply because there is no reason against having it here, and in addition, 6563 # creating and moving files from /tmp can sometimes cause problems. 6564 # Hook for its removal unless debugging. 6565 # Note that there is a small window in which the directory will not be cleaned: 6566 # after its creation but before its name has been assigned to `$tmp'. 6567 $debug || 6568 { 6569 tmp= ac_tmp= 6570 trap 'exit_status=$? 6571 : "${ac_tmp:=$tmp}" 6572 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6573 ' 0 6574 trap 'as_fn_exit 1' 1 2 13 15 6575 } 6576 # Create a (secure) tmp directory for tmp files. 6577 6578 { 6579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6580 test -d "$tmp" 6581 } || 6582 { 6583 tmp=./conf$$-$RANDOM 6584 (umask 077 && mkdir "$tmp") 6585 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6586 ac_tmp=$tmp 6587 6588 # Set up the scripts for CONFIG_FILES section. 6589 # No need to generate them if there are no CONFIG_FILES. 6590 # This happens for instance with `./config.status config.h'. 6591 if test -n "$CONFIG_FILES"; then 6592 6593 6594 ac_cr=`echo X | tr X '\015'` 6595 # On cygwin, bash can eat \r inside `` if the user requested igncr. 6596 # But we know of no other shell where ac_cr would be empty at this 6597 # point, so we can use a bashism as a fallback. 6598 if test "x$ac_cr" = x; then 6599 eval ac_cr=\$\'\\r\' 6600 fi 6601 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6603 ac_cs_awk_cr='\\r' 6604 else 6605 ac_cs_awk_cr=$ac_cr 6606 fi 6607 6608 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 6609 _ACEOF 6610 6611 6612 { 6613 echo "cat >conf$$subs.awk <<_ACEOF" && 6614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6615 echo "_ACEOF" 6616 } >conf$$subs.sh || 6617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6618 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6619 ac_delim='%!_!# ' 6620 for ac_last_try in false false false false false :; do 6621 . ./conf$$subs.sh || 6622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6623 6624 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6625 if test $ac_delim_n = $ac_delim_num; then 6626 break 6627 elif $ac_last_try; then 6628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6629 else 6630 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6631 fi 6632 done 6633 rm -f conf$$subs.sh 6634 6635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6636 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6637 _ACEOF 6638 sed -n ' 6639 h 6640 s/^/S["/; s/!.*/"]=/ 6641 p 6642 g 6643 s/^[^!]*!// 6644 :repl 6645 t repl 6646 s/'"$ac_delim"'$// 6647 t delim 6648 :nl 6649 h 6650 s/\(.\{148\}\)..*/\1/ 6651 t more1 6652 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6653 p 6654 n 6655 b repl 6656 :more1 6657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6658 p 6659 g 6660 s/.\{148\}// 6661 t nl 6662 :delim 6663 h 6664 s/\(.\{148\}\)..*/\1/ 6665 t more2 6666 s/["\\]/\\&/g; s/^/"/; s/$/"/ 6667 p 6668 b 6669 :more2 6670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6671 p 6672 g 6673 s/.\{148\}// 6674 t delim 6675 ' <conf$$subs.awk | sed ' 6676 /^[^""]/{ 6677 N 6678 s/\n// 6679 } 6680 ' >>$CONFIG_STATUS || ac_write_fail=1 6681 rm -f conf$$subs.awk 6682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6683 _ACAWK 6684 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6685 for (key in S) S_is_set[key] = 1 6686 FS = "" 6687 6688 } 6689 { 6690 line = $ 0 6691 nfields = split(line, field, "@") 6692 substed = 0 6693 len = length(field[1]) 6694 for (i = 2; i < nfields; i++) { 6695 key = field[i] 6696 keylen = length(key) 6697 if (S_is_set[key]) { 6698 value = S[key] 6699 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6700 len += length(value) + length(field[++i]) 6701 substed = 1 6702 } else 6703 len += 1 + keylen 6704 } 6705 6706 print line 6707 } 6708 6709 _ACAWK 6710 _ACEOF 6711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6712 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6713 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6714 else 6715 cat 6716 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6717 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6718 _ACEOF 6719 6720 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6721 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6722 # trailing colons and then remove the whole line if VPATH becomes empty 6723 # (actually we leave an empty line to preserve line numbers). 6724 if test "x$srcdir" = x.; then 6725 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6726 h 6727 s/// 6728 s/^/:/ 6729 s/[ ]*$/:/ 6730 s/:\$(srcdir):/:/g 6731 s/:\${srcdir}:/:/g 6732 s/:@srcdir@:/:/g 6733 s/^:*// 6734 s/:*$// 6735 x 6736 s/\(=[ ]*\).*/\1/ 6737 G 6738 s/\n// 6739 s/^[^=]*=[ ]*$// 6740 }' 6741 fi 6742 6743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6744 fi # test -n "$CONFIG_FILES" 6745 6746 # Set up the scripts for CONFIG_HEADERS section. 6747 # No need to generate them if there are no CONFIG_HEADERS. 6748 # This happens for instance with `./config.status Makefile'. 6749 if test -n "$CONFIG_HEADERS"; then 6750 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 6751 BEGIN { 6752 _ACEOF 6753 6754 # Transform confdefs.h into an awk script `defines.awk', embedded as 6755 # here-document in config.status, that substitutes the proper values into 6756 # config.h.in to produce config.h. 6757 6758 # Create a delimiter string that does not exist in confdefs.h, to ease 6759 # handling of long lines. 6760 ac_delim='%!_!# ' 6761 for ac_last_try in false false :; do 6762 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6763 if test -z "$ac_tt"; then 6764 break 6765 elif $ac_last_try; then 6766 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6767 else 6768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6769 fi 6770 done 6771 6772 # For the awk script, D is an array of macro values keyed by name, 6773 # likewise P contains macro parameters if any. Preserve backslash 6774 # newline sequences. 6775 6776 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6777 sed -n ' 6778 s/.\{148\}/&'"$ac_delim"'/g 6779 t rset 6780 :rset 6781 s/^[ ]*#[ ]*define[ ][ ]*/ / 6782 t def 6783 d 6784 :def 6785 s/\\$// 6786 t bsnl 6787 s/["\\]/\\&/g 6788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6789 D["\1"]=" \3"/p 6790 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6791 d 6792 :bsnl 6793 s/["\\]/\\&/g 6794 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6795 D["\1"]=" \3\\\\\\n"\\/p 6796 t cont 6797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6798 t cont 6799 d 6800 :cont 6801 n 6802 s/.\{148\}/&'"$ac_delim"'/g 6803 t clear 6804 :clear 6805 s/\\$// 6806 t bsnlc 6807 s/["\\]/\\&/g; s/^/"/; s/$/"/p 6808 d 6809 :bsnlc 6810 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6811 b cont 6812 ' <confdefs.h | sed ' 6813 s/'"$ac_delim"'/"\\\ 6814 "/g' >>$CONFIG_STATUS || ac_write_fail=1 6815 6816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6817 for (key in D) D_is_set[key] = 1 6818 FS = "" 6819 } 6820 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6821 line = \$ 0 6822 split(line, arg, " ") 6823 if (arg[1] == "#") { 6824 defundef = arg[2] 6825 mac1 = arg[3] 6826 } else { 6827 defundef = substr(arg[1], 2) 6828 mac1 = arg[2] 6829 } 6830 split(mac1, mac2, "(") #) 6831 macro = mac2[1] 6832 prefix = substr(line, 1, index(line, defundef) - 1) 6833 if (D_is_set[macro]) { 6834 # Preserve the white space surrounding the "#". 6835 print prefix "define", macro P[macro] D[macro] 6836 next 6837 } else { 6838 # Replace #undef with comments. This is necessary, for example, 6839 # in the case of _POSIX_SOURCE, which is predefined and required 6840 # on some systems where configure will not decide to define it. 6841 if (defundef == "undef") { 6842 print "/*", prefix defundef, macro, "*/" 6843 next 6844 } 6845 } 6846 } 6847 { print } 6848 _ACAWK 6849 _ACEOF 6850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6851 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6852 fi # test -n "$CONFIG_HEADERS" 6853 6854 6855 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6856 shift 6857 for ac_tag 6858 do 6859 case $ac_tag in 6860 :[FHLC]) ac_mode=$ac_tag; continue;; 6861 esac 6862 case $ac_mode$ac_tag in 6863 :[FHL]*:*);; 6864 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6865 :[FH]-) ac_tag=-:-;; 6866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6867 esac 6868 ac_save_IFS=$IFS 6869 IFS=: 6870 set x $ac_tag 6871 IFS=$ac_save_IFS 6872 shift 6873 ac_file=$1 6874 shift 6875 6876 case $ac_mode in 6877 :L) ac_source=$1;; 6878 :[FH]) 6879 ac_file_inputs= 6880 for ac_f 6881 do 6882 case $ac_f in 6883 -) ac_f="$ac_tmp/stdin";; 6884 *) # Look for the file first in the build tree, then in the source tree 6885 # (if the path is not absolute). The absolute path cannot be DOS-style, 6886 # because $ac_f cannot contain `:'. 6887 test -f "$ac_f" || 6888 case $ac_f in 6889 [\\/$]*) false;; 6890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6891 esac || 6892 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6893 esac 6894 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6895 as_fn_append ac_file_inputs " '$ac_f'" 6896 done 6897 6898 # Let's still pretend it is `configure' which instantiates (i.e., don't 6899 # use $as_me), people would be surprised to read: 6900 # /* config.h. Generated by config.status. */ 6901 configure_input='Generated from '` 6902 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6903 `' by configure.' 6904 if test x"$ac_file" != x-; then 6905 configure_input="$ac_file. $configure_input" 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6907 $as_echo "$as_me: creating $ac_file" >&6;} 6908 fi 6909 # Neutralize special characters interpreted by sed in replacement strings. 6910 case $configure_input in #( 6911 *\&* | *\|* | *\\* ) 6912 ac_sed_conf_input=`$as_echo "$configure_input" | 6913 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6914 *) ac_sed_conf_input=$configure_input;; 6915 esac 6916 6917 case $ac_tag in 6918 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6920 esac 6921 ;; 6922 esac 6923 6924 ac_dir=`$as_dirname -- "$ac_file" || 6925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6926 X"$ac_file" : 'X\(//\)[^/]' \| \ 6927 X"$ac_file" : 'X\(//\)$' \| \ 6928 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6929 $as_echo X"$ac_file" | 6930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6931 s//\1/ 6932 q 6933 } 6934 /^X\(\/\/\)[^/].*/{ 6935 s//\1/ 6936 q 6937 } 6938 /^X\(\/\/\)$/{ 6939 s//\1/ 6940 q 6941 } 6942 /^X\(\/\).*/{ 6943 s//\1/ 6944 q 6945 } 6946 s/.*/./; q'` 6947 as_dir="$ac_dir"; as_fn_mkdir_p 6948 ac_builddir=. 6949 6950 case "$ac_dir" in 6951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6952 *) 6953 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6954 # A ".." for each directory in $ac_dir_suffix. 6955 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6956 case $ac_top_builddir_sub in 6957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6959 esac ;; 6960 esac 6961 ac_abs_top_builddir=$ac_pwd 6962 ac_abs_builddir=$ac_pwd$ac_dir_suffix 6963 # for backward compatibility: 6964 ac_top_builddir=$ac_top_build_prefix 6965 6966 case $srcdir in 6967 .) # We are building in place. 6968 ac_srcdir=. 6969 ac_top_srcdir=$ac_top_builddir_sub 6970 ac_abs_top_srcdir=$ac_pwd ;; 6971 [\\/]* | ?:[\\/]* ) # Absolute name. 6972 ac_srcdir=$srcdir$ac_dir_suffix; 6973 ac_top_srcdir=$srcdir 6974 ac_abs_top_srcdir=$srcdir ;; 6975 *) # Relative name. 6976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6977 ac_top_srcdir=$ac_top_build_prefix$srcdir 6978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6979 esac 6980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6981 6982 6983 case $ac_mode in 6984 :F) 6985 # 6986 # CONFIG_FILE 6987 # 6988 6989 case $INSTALL in 6990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6992 esac 6993 _ACEOF 6994 6995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6996 # If the template does not know about datarootdir, expand it. 6997 # FIXME: This hack should be removed a few years after 2.60. 6998 ac_datarootdir_hack=; ac_datarootdir_seen= 6999 ac_sed_dataroot=' 7000 /datarootdir/ { 7001 p 7002 q 7003 } 7004 /@datadir@/p 7005 /@docdir@/p 7006 /@infodir@/p 7007 /@localedir@/p 7008 /@mandir@/p' 7009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7010 *datarootdir*) ac_datarootdir_seen=yes;; 7011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7013 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7014 _ACEOF 7015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7016 ac_datarootdir_hack=' 7017 s&@datadir@&$datadir&g 7018 s&@docdir@&$docdir&g 7019 s&@infodir@&$infodir&g 7020 s&@localedir@&$localedir&g 7021 s&@mandir@&$mandir&g 7022 s&\\\${datarootdir}&$datarootdir&g' ;; 7023 esac 7024 _ACEOF 7025 7026 # Neutralize VPATH when `$srcdir' = `.'. 7027 # Shell code in configure.ac might set extrasub. 7028 # FIXME: do we really want to maintain this feature? 7029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7030 ac_sed_extra="$ac_vpsub 7031 $extrasub 7032 _ACEOF 7033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7034 :t 7035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7036 s|@configure_input@|$ac_sed_conf_input|;t t 7037 s&@top_builddir@&$ac_top_builddir_sub&;t t 7038 s&@top_build_prefix@&$ac_top_build_prefix&;t t 7039 s&@srcdir@&$ac_srcdir&;t t 7040 s&@abs_srcdir@&$ac_abs_srcdir&;t t 7041 s&@top_srcdir@&$ac_top_srcdir&;t t 7042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7043 s&@builddir@&$ac_builddir&;t t 7044 s&@abs_builddir@&$ac_abs_builddir&;t t 7045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7046 s&@INSTALL@&$ac_INSTALL&;t t 7047 $ac_datarootdir_hack 7048 " 7049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7051 7052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7055 "$ac_tmp/out"`; test -z "$ac_out"; } && 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7057 which seems to be undefined. Please make sure it is defined" >&5 7058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7059 which seems to be undefined. Please make sure it is defined" >&2;} 7060 7061 rm -f "$ac_tmp/stdin" 7062 case $ac_file in 7063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7065 esac \ 7066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7067 ;; 7068 :H) 7069 # 7070 # CONFIG_HEADER 7071 # 7072 if test x"$ac_file" != x-; then 7073 { 7074 $as_echo "/* $configure_input */" \ 7075 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 7076 } >"$ac_tmp/config.h" \ 7077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7078 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7080 $as_echo "$as_me: $ac_file is unchanged" >&6;} 7081 else 7082 rm -f "$ac_file" 7083 mv "$ac_tmp/config.h" "$ac_file" \ 7084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7085 fi 7086 else 7087 $as_echo "/* $configure_input */" \ 7088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 7089 || as_fn_error $? "could not create -" "$LINENO" 5 7090 fi 7091 ;; 7092 7093 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 7094 $as_echo "$as_me: executing $ac_file commands" >&6;} 7095 ;; 7096 esac 7097 7098 7099 case $ac_file$ac_mode in 7100 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 7101 if test -n "$CONFIG_FILES"; then 7102 # FIXME: We shouldn't need to set ac_file 7103 ac_file=Makefile 7104 . ${libgcc_topdir}/config-ml.in 7105 fi ;; 7106 7107 esac 7108 done # for ac_tag 7109 7110 7111 as_fn_exit 0 7112 _ACEOF 7113 ac_clean_files=$ac_clean_files_save 7114 7115 test $ac_write_fail = 0 || 7116 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7117 7118 7119 # configure is writing to config.log, and then calls config.status. 7120 # config.status does its own redirection, appending to config.log. 7121 # Unfortunately, on DOS this fails, as config.log is still kept open 7122 # by configure, so config.status won't be able to write to it; its 7123 # output is simply discarded. So we exec the FD to /dev/null, 7124 # effectively closing config.log, so it can be properly (re)opened and 7125 # appended to by config.status. When coming back to configure, we 7126 # need to make the FD available again. 7127 if test "$no_create" != yes; then 7128 ac_cs_success=: 7129 ac_config_status_args= 7130 test "$silent" = yes && 7131 ac_config_status_args="$ac_config_status_args --quiet" 7132 exec 5>/dev/null 7133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7134 exec 5>>config.log 7135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7136 # would make configure fail if this is the last instruction. 7137 $ac_cs_success || as_fn_exit 1 7138 fi 7139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7141 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7142 fi 7143 7144