1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for opcodes 2.45.50. 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 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 276 $0: including any error possibly output before this 277 $0: message. Then install a modern shell, or manually run 278 $0: the script under such a shell if you do have one." 279 fi 280 exit 1 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_fn_set_status () 306 { 307 return $1 308 } # as_fn_set_status 309 310 # as_fn_exit STATUS 311 # ----------------- 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313 as_fn_exit () 314 { 315 set +e 316 as_fn_set_status $1 317 exit $1 318 } # as_fn_exit 319 320 # as_fn_mkdir_p 321 # ------------- 322 # Create "$as_dir" as a directory, including parents if necessary. 323 as_fn_mkdir_p () 324 { 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 $as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366 } # as_fn_mkdir_p 367 368 # as_fn_executable_p FILE 369 # ----------------------- 370 # Test if FILE is an executable regular file. 371 as_fn_executable_p () 372 { 373 test -f "$1" && test -x "$1" 374 } # as_fn_executable_p 375 # as_fn_append VAR VALUE 376 # ---------------------- 377 # Append the text in VALUE to the end of the definition contained in VAR. Take 378 # advantage of any shell optimizations that allow amortized linear growth over 379 # repeated appends, instead of the typical quadratic growth present in naive 380 # implementations. 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # as_fn_append 392 393 # as_fn_arith ARG... 394 # ------------------ 395 # Perform arithmetic evaluation on the ARGs, and store the result in the 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415 # script with STATUS, using 1 if that was 0. 416 as_fn_error () 417 { 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425 } # as_fn_error 426 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_me=`$as_basename -- "$0" || 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450 $as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465 # Avoid depending upon Character Ranges. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506 } 507 508 ECHO_C= ECHO_N= ECHO_T= 509 case `echo -n x` in #((((( 510 -n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517 *) 518 ECHO_N='-n';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561 # Sed expression to map a string onto a valid variable name. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 6>&1 569 570 # Name of the host. 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572 # so uname gets run too. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='opcodes' 589 PACKAGE_TARNAME='opcodes' 590 PACKAGE_VERSION='2.45.50' 591 PACKAGE_STRING='opcodes 2.45.50' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 ac_unique_file="z8k-dis.c" 596 # Factoring default headers for most tests. 597 ac_includes_default="\ 598 #include <stdio.h> 599 #ifdef HAVE_SYS_TYPES_H 600 # include <sys/types.h> 601 #endif 602 #ifdef HAVE_SYS_STAT_H 603 # include <sys/stat.h> 604 #endif 605 #ifdef STDC_HEADERS 606 # include <stdlib.h> 607 # include <stddef.h> 608 #else 609 # ifdef HAVE_STDLIB_H 610 # include <stdlib.h> 611 # endif 612 #endif 613 #ifdef HAVE_STRING_H 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615 # include <memory.h> 616 # endif 617 # include <string.h> 618 #endif 619 #ifdef HAVE_STRINGS_H 620 # include <strings.h> 621 #endif 622 #ifdef HAVE_INTTYPES_H 623 # include <inttypes.h> 624 #endif 625 #ifdef HAVE_STDINT_H 626 # include <stdint.h> 627 #endif 628 #ifdef HAVE_UNISTD_H 629 # include <unistd.h> 630 #endif" 631 632 gt_needs= 633 ac_subst_vars='am__EXEEXT_FALSE 634 am__EXEEXT_TRUE 635 LTLIBOBJS 636 LIBOBJS 637 BFD_MACHINES 638 archdefs 639 SHARED_DEPENDENCIES 640 SHARED_LIBADD 641 SHARED_LDFLAGS 642 BUILD_LIB_DEPS 643 BUILD_LIBS 644 LIBM 645 cgendir 646 CGEN_MAINT_FALSE 647 CGEN_MAINT_TRUE 648 HDEFINES 649 EXEEXT_FOR_BUILD 650 CC_FOR_BUILD 651 CATOBJEXT 652 GENCAT 653 INSTOBJEXT 654 DATADIRNAME 655 CATALOGS 656 INCINTL 657 LIBINTL_DEP 658 POSUB 659 LTLIBINTL 660 LIBINTL 661 INTLLIBS 662 LTLIBICONV 663 LIBICONV 664 INTL_MACOSX_LIBS 665 MSGMERGE 666 XGETTEXT 667 GMSGFMT 668 MSGFMT 669 USE_NLS 670 MKINSTALLDIRS 671 bfdincludedir 672 bfdlibdir 673 target_noncanonical 674 host_noncanonical 675 INSTALL_LIBBFD_FALSE 676 INSTALL_LIBBFD_TRUE 677 MAINT 678 MAINTAINER_MODE_FALSE 679 MAINTAINER_MODE_TRUE 680 WARN_WRITE_STRINGS 681 NO_WERROR 682 WARN_CFLAGS_FOR_BUILD 683 WARN_CFLAGS 684 OTOOL64 685 OTOOL 686 LIPO 687 NMEDIT 688 DSYMUTIL 689 OBJDUMP 690 LN_S 691 NM 692 ac_ct_DUMPBIN 693 DUMPBIN 694 LD 695 FGREP 696 SED 697 LIBTOOL 698 RANLIB 699 AR 700 EGREP 701 GREP 702 CPP 703 am__fastdepCC_FALSE 704 am__fastdepCC_TRUE 705 CCDEPMODE 706 am__nodep 707 AMDEPBACKSLASH 708 AMDEP_FALSE 709 AMDEP_TRUE 710 am__quote 711 am__include 712 DEPDIR 713 OBJEXT 714 EXEEXT 715 ac_ct_CC 716 CPPFLAGS 717 LDFLAGS 718 CFLAGS 719 CC 720 AM_BACKSLASH 721 AM_DEFAULT_VERBOSITY 722 AM_DEFAULT_V 723 AM_V 724 am__untar 725 am__tar 726 AMTAR 727 am__leading_dot 728 SET_MAKE 729 AWK 730 mkdir_p 731 MKDIR_P 732 INSTALL_STRIP_PROGRAM 733 STRIP 734 install_sh 735 MAKEINFO 736 AUTOHEADER 737 AUTOMAKE 738 AUTOCONF 739 ACLOCAL 740 VERSION 741 PACKAGE 742 CYGPATH_W 743 am__isrc 744 INSTALL_DATA 745 INSTALL_SCRIPT 746 INSTALL_PROGRAM 747 target_os 748 target_vendor 749 target_cpu 750 target 751 host_os 752 host_vendor 753 host_cpu 754 host 755 build_os 756 build_vendor 757 build_cpu 758 build 759 target_alias 760 host_alias 761 build_alias 762 LIBS 763 ECHO_T 764 ECHO_N 765 ECHO_C 766 DEFS 767 mandir 768 localedir 769 libdir 770 psdir 771 pdfdir 772 dvidir 773 htmldir 774 infodir 775 docdir 776 oldincludedir 777 includedir 778 localstatedir 779 sharedstatedir 780 sysconfdir 781 datadir 782 datarootdir 783 libexecdir 784 sbindir 785 bindir 786 program_transform_name 787 prefix 788 exec_prefix 789 PACKAGE_URL 790 PACKAGE_BUGREPORT 791 PACKAGE_STRING 792 PACKAGE_VERSION 793 PACKAGE_TARNAME 794 PACKAGE_NAME 795 PATH_SEPARATOR 796 SHELL' 797 ac_subst_files='' 798 ac_user_opts=' 799 enable_option_checking 800 enable_silent_rules 801 enable_dependency_tracking 802 enable_shared 803 enable_static 804 with_pic 805 enable_fast_install 806 with_gnu_ld 807 enable_libtool_lock 808 enable_checking 809 enable_targets 810 enable_werror 811 enable_build_warnings 812 enable_maintainer_mode 813 enable_install_libbfd 814 enable_nls 815 enable_rpath 816 with_libiconv_prefix 817 with_libiconv_type 818 with_libintl_prefix 819 with_libintl_type 820 enable_cgen_maint 821 ' 822 ac_precious_vars='build_alias 823 host_alias 824 target_alias 825 CC 826 CFLAGS 827 LDFLAGS 828 LIBS 829 CPPFLAGS 830 CPP' 831 832 833 # Initialize some variables set by options. 834 ac_init_help= 835 ac_init_version=false 836 ac_unrecognized_opts= 837 ac_unrecognized_sep= 838 # The variables have the same names as the options, with 839 # dashes changed to underlines. 840 cache_file=/dev/null 841 exec_prefix=NONE 842 no_create= 843 no_recursion= 844 prefix=NONE 845 program_prefix=NONE 846 program_suffix=NONE 847 program_transform_name=s,x,x, 848 silent= 849 site= 850 srcdir= 851 verbose= 852 x_includes=NONE 853 x_libraries=NONE 854 855 # Installation directory options. 856 # These are left unexpanded so users can "make install exec_prefix=/foo" 857 # and all the variables that are supposed to be based on exec_prefix 858 # by default will actually change. 859 # Use braces instead of parens because sh, perl, etc. also accept them. 860 # (The list follows the same order as the GNU Coding Standards.) 861 bindir='${exec_prefix}/bin' 862 sbindir='${exec_prefix}/sbin' 863 libexecdir='${exec_prefix}/libexec' 864 datarootdir='${prefix}/share' 865 datadir='${datarootdir}' 866 sysconfdir='${prefix}/etc' 867 sharedstatedir='${prefix}/com' 868 localstatedir='${prefix}/var' 869 includedir='${prefix}/include' 870 oldincludedir='/usr/include' 871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 872 infodir='${datarootdir}/info' 873 htmldir='${docdir}' 874 dvidir='${docdir}' 875 pdfdir='${docdir}' 876 psdir='${docdir}' 877 libdir='${exec_prefix}/lib' 878 localedir='${datarootdir}/locale' 879 mandir='${datarootdir}/man' 880 881 ac_prev= 882 ac_dashdash= 883 for ac_option 884 do 885 # If the previous option needs an argument, assign it. 886 if test -n "$ac_prev"; then 887 eval $ac_prev=\$ac_option 888 ac_prev= 889 continue 890 fi 891 892 case $ac_option in 893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 894 *=) ac_optarg= ;; 895 *) ac_optarg=yes ;; 896 esac 897 898 # Accept the important Cygnus configure options, so we can diagnose typos. 899 900 case $ac_dashdash$ac_option in 901 --) 902 ac_dashdash=yes ;; 903 904 -bindir | --bindir | --bindi | --bind | --bin | --bi) 905 ac_prev=bindir ;; 906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 907 bindir=$ac_optarg ;; 908 909 -build | --build | --buil | --bui | --bu) 910 ac_prev=build_alias ;; 911 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 912 build_alias=$ac_optarg ;; 913 914 -cache-file | --cache-file | --cache-fil | --cache-fi \ 915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 916 ac_prev=cache_file ;; 917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 919 cache_file=$ac_optarg ;; 920 921 --config-cache | -C) 922 cache_file=config.cache ;; 923 924 -datadir | --datadir | --datadi | --datad) 925 ac_prev=datadir ;; 926 -datadir=* | --datadir=* | --datadi=* | --datad=*) 927 datadir=$ac_optarg ;; 928 929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 930 | --dataroo | --dataro | --datar) 931 ac_prev=datarootdir ;; 932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 934 datarootdir=$ac_optarg ;; 935 936 -disable-* | --disable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: $ac_useropt" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945 "enable_$ac_useropt" 946 "*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=no ;; 951 952 -docdir | --docdir | --docdi | --doc | --do) 953 ac_prev=docdir ;; 954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 955 docdir=$ac_optarg ;; 956 957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 958 ac_prev=dvidir ;; 959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 960 dvidir=$ac_optarg ;; 961 962 -enable-* | --enable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: $ac_useropt" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971 "enable_$ac_useropt" 972 "*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=\$ac_optarg ;; 977 978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 980 | --exec | --exe | --ex) 981 ac_prev=exec_prefix ;; 982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 984 | --exec=* | --exe=* | --ex=*) 985 exec_prefix=$ac_optarg ;; 986 987 -gas | --gas | --ga | --g) 988 # Obsolete; use --with-gas. 989 with_gas=yes ;; 990 991 -help | --help | --hel | --he | -h) 992 ac_init_help=long ;; 993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 994 ac_init_help=recursive ;; 995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 996 ac_init_help=short ;; 997 998 -host | --host | --hos | --ho) 999 ac_prev=host_alias ;; 1000 -host=* | --host=* | --hos=* | --ho=*) 1001 host_alias=$ac_optarg ;; 1002 1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1004 ac_prev=htmldir ;; 1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1006 | --ht=*) 1007 htmldir=$ac_optarg ;; 1008 1009 -includedir | --includedir | --includedi | --included | --include \ 1010 | --includ | --inclu | --incl | --inc) 1011 ac_prev=includedir ;; 1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1013 | --includ=* | --inclu=* | --incl=* | --inc=*) 1014 includedir=$ac_optarg ;; 1015 1016 -infodir | --infodir | --infodi | --infod | --info | --inf) 1017 ac_prev=infodir ;; 1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1019 infodir=$ac_optarg ;; 1020 1021 -libdir | --libdir | --libdi | --libd) 1022 ac_prev=libdir ;; 1023 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1024 libdir=$ac_optarg ;; 1025 1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1027 | --libexe | --libex | --libe) 1028 ac_prev=libexecdir ;; 1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1030 | --libexe=* | --libex=* | --libe=*) 1031 libexecdir=$ac_optarg ;; 1032 1033 -localedir | --localedir | --localedi | --localed | --locale) 1034 ac_prev=localedir ;; 1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1036 localedir=$ac_optarg ;; 1037 1038 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1039 | --localstate | --localstat | --localsta | --localst | --locals) 1040 ac_prev=localstatedir ;; 1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1043 localstatedir=$ac_optarg ;; 1044 1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1046 ac_prev=mandir ;; 1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1048 mandir=$ac_optarg ;; 1049 1050 -nfp | --nfp | --nf) 1051 # Obsolete; use --without-fp. 1052 with_fp=no ;; 1053 1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1055 | --no-cr | --no-c | -n) 1056 no_create=yes ;; 1057 1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1060 no_recursion=yes ;; 1061 1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1064 | --oldin | --oldi | --old | --ol | --o) 1065 ac_prev=oldincludedir ;; 1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1069 oldincludedir=$ac_optarg ;; 1070 1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1072 ac_prev=prefix ;; 1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1074 prefix=$ac_optarg ;; 1075 1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1077 | --program-pre | --program-pr | --program-p) 1078 ac_prev=program_prefix ;; 1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1081 program_prefix=$ac_optarg ;; 1082 1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1084 | --program-suf | --program-su | --program-s) 1085 ac_prev=program_suffix ;; 1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1088 program_suffix=$ac_optarg ;; 1089 1090 -program-transform-name | --program-transform-name \ 1091 | --program-transform-nam | --program-transform-na \ 1092 | --program-transform-n | --program-transform- \ 1093 | --program-transform | --program-transfor \ 1094 | --program-transfo | --program-transf \ 1095 | --program-trans | --program-tran \ 1096 | --progr-tra | --program-tr | --program-t) 1097 ac_prev=program_transform_name ;; 1098 -program-transform-name=* | --program-transform-name=* \ 1099 | --program-transform-nam=* | --program-transform-na=* \ 1100 | --program-transform-n=* | --program-transform-=* \ 1101 | --program-transform=* | --program-transfor=* \ 1102 | --program-transfo=* | --program-transf=* \ 1103 | --program-trans=* | --program-tran=* \ 1104 | --progr-tra=* | --program-tr=* | --program-t=*) 1105 program_transform_name=$ac_optarg ;; 1106 1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1108 ac_prev=pdfdir ;; 1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1110 pdfdir=$ac_optarg ;; 1111 1112 -psdir | --psdir | --psdi | --psd | --ps) 1113 ac_prev=psdir ;; 1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1115 psdir=$ac_optarg ;; 1116 1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1118 | -silent | --silent | --silen | --sile | --sil) 1119 silent=yes ;; 1120 1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1122 ac_prev=sbindir ;; 1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1124 | --sbi=* | --sb=*) 1125 sbindir=$ac_optarg ;; 1126 1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1129 | --sharedst | --shareds | --shared | --share | --shar \ 1130 | --sha | --sh) 1131 ac_prev=sharedstatedir ;; 1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1135 | --sha=* | --sh=*) 1136 sharedstatedir=$ac_optarg ;; 1137 1138 -site | --site | --sit) 1139 ac_prev=site ;; 1140 -site=* | --site=* | --sit=*) 1141 site=$ac_optarg ;; 1142 1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1144 ac_prev=srcdir ;; 1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1146 srcdir=$ac_optarg ;; 1147 1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1149 | --syscon | --sysco | --sysc | --sys | --sy) 1150 ac_prev=sysconfdir ;; 1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1153 sysconfdir=$ac_optarg ;; 1154 1155 -target | --target | --targe | --targ | --tar | --ta | --t) 1156 ac_prev=target_alias ;; 1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1158 target_alias=$ac_optarg ;; 1159 1160 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1161 verbose=yes ;; 1162 1163 -version | --version | --versio | --versi | --vers | -V) 1164 ac_init_version=: ;; 1165 1166 -with-* | --with-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175 "with_$ac_useropt" 1176 "*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=\$ac_optarg ;; 1181 1182 -without-* | --without-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: $ac_useropt" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=no ;; 1197 1198 --x) 1199 # Obsolete; use --with-x. 1200 with_x=yes ;; 1201 1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1203 | --x-incl | --x-inc | --x-in | --x-i) 1204 ac_prev=x_includes ;; 1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1207 x_includes=$ac_optarg ;; 1208 1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1211 ac_prev=x_libraries ;; 1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1214 x_libraries=$ac_optarg ;; 1215 1216 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1217 Try \`$0 --help' for more information" 1218 ;; 1219 1220 *=*) 1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1222 # Reject names that are not valid shell variable names. 1223 case $ac_envvar in #( 1224 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1226 esac 1227 eval $ac_envvar=\$ac_optarg 1228 export $ac_envvar ;; 1229 1230 *) 1231 # FIXME: should be removed in autoconf 3.0. 1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1236 ;; 1237 1238 esac 1239 done 1240 1241 if test -n "$ac_prev"; then 1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1243 as_fn_error $? "missing argument to $ac_option" 1244 fi 1245 1246 if test -n "$ac_unrecognized_opts"; then 1247 case $enable_option_checking in 1248 no) ;; 1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1251 esac 1252 fi 1253 1254 # Check all directory arguments for consistency. 1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1256 datadir sysconfdir sharedstatedir localstatedir includedir \ 1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1258 libdir localedir mandir 1259 do 1260 eval ac_val=\$$ac_var 1261 # Remove trailing slashes. 1262 case $ac_val in 1263 */ ) 1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1265 eval $ac_var=\$ac_val;; 1266 esac 1267 # Be sure to have absolute directory names. 1268 case $ac_val in 1269 [\\/$]* | ?:[\\/]* ) continue;; 1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1271 esac 1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1273 done 1274 1275 # There might be people who depend on the old broken behavior: `$host' 1276 # used to hold the argument of --host etc. 1277 # FIXME: To remove some day. 1278 build=$build_alias 1279 host=$host_alias 1280 target=$target_alias 1281 1282 # FIXME: To remove some day. 1283 if test "x$host_alias" != x; then 1284 if test "x$build_alias" = x; then 1285 cross_compiling=maybe 1286 elif test "x$build_alias" != "x$host_alias"; then 1287 cross_compiling=yes 1288 fi 1289 fi 1290 1291 ac_tool_prefix= 1292 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1293 1294 test "$silent" = yes && exec 6>/dev/null 1295 1296 1297 ac_pwd=`pwd` && test -n "$ac_pwd" && 1298 ac_ls_di=`ls -di .` && 1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1300 as_fn_error $? "working directory cannot be determined" 1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1302 as_fn_error $? "pwd does not report name of working directory" 1303 1304 1305 # Find the source files, if location was not specified. 1306 if test -z "$srcdir"; then 1307 ac_srcdir_defaulted=yes 1308 # Try the directory containing this script, then the parent directory. 1309 ac_confdir=`$as_dirname -- "$as_myself" || 1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1311 X"$as_myself" : 'X\(//\)[^/]' \| \ 1312 X"$as_myself" : 'X\(//\)$' \| \ 1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1314 $as_echo X"$as_myself" | 1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)[^/].*/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\).*/{ 1328 s//\1/ 1329 q 1330 } 1331 s/.*/./; q'` 1332 srcdir=$ac_confdir 1333 if test ! -r "$srcdir/$ac_unique_file"; then 1334 srcdir=.. 1335 fi 1336 else 1337 ac_srcdir_defaulted=no 1338 fi 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1342 fi 1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1344 ac_abs_confdir=`( 1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1346 pwd)` 1347 # When building in place, set srcdir=. 1348 if test "$ac_abs_confdir" = "$ac_pwd"; then 1349 srcdir=. 1350 fi 1351 # Remove unnecessary trailing slashes from srcdir. 1352 # Double slashes in file names in object file debugging info 1353 # mess up M-x gdb in Emacs. 1354 case $srcdir in 1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1356 esac 1357 for ac_var in $ac_precious_vars; do 1358 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_env_${ac_var}_value=\$${ac_var} 1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1362 done 1363 1364 # 1365 # Report the --help message. 1366 # 1367 if test "$ac_init_help" = "long"; then 1368 # Omit some internal or obsolete options to make the list less imposing. 1369 # This message is too long to be a string in the A/UX 3.1 sh. 1370 cat <<_ACEOF 1371 \`configure' configures opcodes 2.45.50 to adapt to many kinds of systems. 1372 1373 Usage: $0 [OPTION]... [VAR=VALUE]... 1374 1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1376 VAR=VALUE. See below for descriptions of some of the useful variables. 1377 1378 Defaults for the options are specified in brackets. 1379 1380 Configuration: 1381 -h, --help display this help and exit 1382 --help=short display options specific to this package 1383 --help=recursive display the short help of all the included packages 1384 -V, --version display version information and exit 1385 -q, --quiet, --silent do not print \`checking ...' messages 1386 --cache-file=FILE cache test results in FILE [disabled] 1387 -C, --config-cache alias for \`--cache-file=config.cache' 1388 -n, --no-create do not create output files 1389 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1390 1391 Installation directories: 1392 --prefix=PREFIX install architecture-independent files in PREFIX 1393 [$ac_default_prefix] 1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1395 [PREFIX] 1396 1397 By default, \`make install' will install all the files in 1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1400 for instance \`--prefix=\$HOME'. 1401 1402 For better control, use the options below. 1403 1404 Fine tuning of the installation directories: 1405 --bindir=DIR user executables [EPREFIX/bin] 1406 --sbindir=DIR system admin executables [EPREFIX/sbin] 1407 --libexecdir=DIR program executables [EPREFIX/libexec] 1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1411 --libdir=DIR object code libraries [EPREFIX/lib] 1412 --includedir=DIR C header files [PREFIX/include] 1413 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1416 --infodir=DIR info documentation [DATAROOTDIR/info] 1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1418 --mandir=DIR man documentation [DATAROOTDIR/man] 1419 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] 1420 --htmldir=DIR html documentation [DOCDIR] 1421 --dvidir=DIR dvi documentation [DOCDIR] 1422 --pdfdir=DIR pdf documentation [DOCDIR] 1423 --psdir=DIR ps documentation [DOCDIR] 1424 _ACEOF 1425 1426 cat <<\_ACEOF 1427 1428 Program names: 1429 --program-prefix=PREFIX prepend PREFIX to installed program names 1430 --program-suffix=SUFFIX append SUFFIX to installed program names 1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1432 1433 System types: 1434 --build=BUILD configure for building on BUILD [guessed] 1435 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1436 --target=TARGET configure for building compilers for TARGET [HOST] 1437 _ACEOF 1438 fi 1439 1440 if test -n "$ac_init_help"; then 1441 case $ac_init_help in 1442 short | recursive ) echo "Configuration of opcodes 2.45.50:";; 1443 esac 1444 cat <<\_ACEOF 1445 1446 Optional Features: 1447 --disable-option-checking ignore unrecognized --enable/--with options 1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --enable-shared[=PKGS] build shared libraries [default=no] 1457 --enable-static[=PKGS] build static libraries [default=yes] 1458 --enable-fast-install[=PKGS] 1459 optimize for fast installation [default=yes] 1460 --disable-libtool-lock avoid locking (might break parallel builds) 1461 --enable-checking enable run-time checks 1462 --enable-targets alternative target configurations 1463 --enable-werror treat compile warnings as errors 1464 --enable-build-warnings enable build-time compiler warnings 1465 --enable-maintainer-mode 1466 enable make rules and dependencies not useful (and 1467 sometimes confusing) to the casual installer 1468 --enable-install-libbfd controls installation of libbfd and related headers 1469 --disable-nls do not use Native Language Support 1470 --disable-rpath do not hardcode runtime library paths 1471 --enable-cgen-maint=dir build cgen generated files 1472 1473 Optional Packages: 1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1476 --with-pic try to use only PIC/non-PIC objects [default=use 1477 both] 1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1479 --with-gnu-ld assume the C compiler uses GNU ld default=no 1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1484 --without-libintl-prefix don't search for libintl in includedir and libdir 1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1486 1487 Some influential environment variables: 1488 CC C compiler command 1489 CFLAGS C compiler flags 1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1491 nonstandard directory <lib dir> 1492 LIBS libraries to pass to the linker, e.g. -l<library> 1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1494 you have headers in a nonstandard directory <include dir> 1495 CPP C preprocessor 1496 1497 Use these variables to override the choices made by `configure' or to help 1498 it to find libraries and programs with nonstandard names/locations. 1499 1500 Report bugs to the package provider. 1501 _ACEOF 1502 ac_status=$? 1503 fi 1504 1505 if test "$ac_init_help" = "recursive"; then 1506 # If there are subdirs, report their specific --help. 1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1508 test -d "$ac_dir" || 1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1510 continue 1511 ac_builddir=. 1512 1513 case "$ac_dir" in 1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) 1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1517 # A ".." for each directory in $ac_dir_suffix. 1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1519 case $ac_top_builddir_sub in 1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1522 esac ;; 1523 esac 1524 ac_abs_top_builddir=$ac_pwd 1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1526 # for backward compatibility: 1527 ac_top_builddir=$ac_top_build_prefix 1528 1529 case $srcdir in 1530 .) # We are building in place. 1531 ac_srcdir=. 1532 ac_top_srcdir=$ac_top_builddir_sub 1533 ac_abs_top_srcdir=$ac_pwd ;; 1534 [\\/]* | ?:[\\/]* ) # Absolute name. 1535 ac_srcdir=$srcdir$ac_dir_suffix; 1536 ac_top_srcdir=$srcdir 1537 ac_abs_top_srcdir=$srcdir ;; 1538 *) # Relative name. 1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1540 ac_top_srcdir=$ac_top_build_prefix$srcdir 1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1542 esac 1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1544 1545 cd "$ac_dir" || { ac_status=$?; continue; } 1546 # Check for guested configure. 1547 if test -f "$ac_srcdir/configure.gnu"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1550 elif test -f "$ac_srcdir/configure"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure" --help=recursive 1553 else 1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1555 fi || ac_status=$? 1556 cd "$ac_pwd" || { ac_status=$?; break; } 1557 done 1558 fi 1559 1560 test -n "$ac_init_help" && exit $ac_status 1561 if $ac_init_version; then 1562 cat <<\_ACEOF 1563 opcodes configure 2.45.50 1564 generated by GNU Autoconf 2.69 1565 1566 Copyright (C) 2012 Free Software Foundation, Inc. 1567 This configure script is free software; the Free Software Foundation 1568 gives unlimited permission to copy, distribute and modify it. 1569 _ACEOF 1570 exit 1571 fi 1572 1573 ## ------------------------ ## 1574 ## Autoconf initialization. ## 1575 ## ------------------------ ## 1576 1577 # ac_fn_c_try_compile LINENO 1578 # -------------------------- 1579 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1580 ac_fn_c_try_compile () 1581 { 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 rm -f conftest.$ac_objext 1584 if { { ac_try="$ac_compile" 1585 case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588 esac 1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590 $as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_compile") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { 1600 test -z "$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 } && test -s conftest.$ac_objext; then : 1603 ac_retval=0 1604 else 1605 $as_echo "$as_me: failed program was:" >&5 1606 sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609 fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613 } # ac_fn_c_try_compile 1614 1615 # ac_fn_c_try_cpp LINENO 1616 # ---------------------- 1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1618 ac_fn_c_try_cpp () 1619 { 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 if { { ac_try="$ac_cpp conftest.$ac_ext" 1622 case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625 esac 1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627 $as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } > conftest.i && { 1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 }; then : 1640 ac_retval=0 1641 else 1642 $as_echo "$as_me: failed program was:" >&5 1643 sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646 fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650 } # ac_fn_c_try_cpp 1651 1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1653 # ------------------------------------------------------- 1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1655 # the include files in INCLUDES and setting the cache variable VAR 1656 # accordingly. 1657 ac_fn_c_check_header_mongrel () 1658 { 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if eval \${$3+:} false; then : 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662 $as_echo_n "checking for $2... " >&6; } 1663 if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665 fi 1666 eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668 $as_echo "$ac_res" >&6; } 1669 else 1670 # Is the header compilable? 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1672 $as_echo_n "checking $2 usability... " >&6; } 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674 /* end confdefs.h. */ 1675 $4 1676 #include <$2> 1677 _ACEOF 1678 if ac_fn_c_try_compile "$LINENO"; then : 1679 ac_header_compiler=yes 1680 else 1681 ac_header_compiler=no 1682 fi 1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1685 $as_echo "$ac_header_compiler" >&6; } 1686 1687 # Is the header present? 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1689 $as_echo_n "checking $2 presence... " >&6; } 1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1691 /* end confdefs.h. */ 1692 #include <$2> 1693 _ACEOF 1694 if ac_fn_c_try_cpp "$LINENO"; then : 1695 ac_header_preproc=yes 1696 else 1697 ac_header_preproc=no 1698 fi 1699 rm -f conftest.err conftest.i conftest.$ac_ext 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1701 $as_echo "$ac_header_preproc" >&6; } 1702 1703 # So? What about this header? 1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1705 yes:no: ) 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1710 ;; 1711 no:yes:* ) 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1722 ;; 1723 esac 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725 $as_echo_n "checking for $2... " >&6; } 1726 if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728 else 1729 eval "$3=\$ac_header_compiler" 1730 fi 1731 eval ac_res=\$$3 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733 $as_echo "$ac_res" >&6; } 1734 fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 1737 } # ac_fn_c_check_header_mongrel 1738 1739 # ac_fn_c_try_run LINENO 1740 # ---------------------- 1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1742 # that executables *can* be run. 1743 ac_fn_c_try_run () 1744 { 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_link" 1747 case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750 esac 1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752 $as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_link") 2>&5 1754 ac_status=$? 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1757 { { case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760 esac 1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762 $as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_try") 2>&5 1764 ac_status=$? 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; }; }; then : 1767 ac_retval=0 1768 else 1769 $as_echo "$as_me: program exited with status $ac_status" >&5 1770 $as_echo "$as_me: failed program was:" >&5 1771 sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=$ac_status 1774 fi 1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 as_fn_set_status $ac_retval 1778 1779 } # ac_fn_c_try_run 1780 1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1782 # ------------------------------------------------------- 1783 # Tests whether HEADER exists and can be compiled using the include files in 1784 # INCLUDES, setting the cache variable VAR accordingly. 1785 ac_fn_c_check_header_compile () 1786 { 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789 $as_echo_n "checking for $2... " >&6; } 1790 if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792 else 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794 /* end confdefs.h. */ 1795 $4 1796 #include <$2> 1797 _ACEOF 1798 if ac_fn_c_try_compile "$LINENO"; then : 1799 eval "$3=yes" 1800 else 1801 eval "$3=no" 1802 fi 1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1804 fi 1805 eval ac_res=\$$3 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1807 $as_echo "$ac_res" >&6; } 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 1810 } # ac_fn_c_check_header_compile 1811 1812 # ac_fn_c_try_link LINENO 1813 # ----------------------- 1814 # Try to link conftest.$ac_ext, and return whether this succeeded. 1815 ac_fn_c_try_link () 1816 { 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 rm -f conftest.$ac_objext conftest$ac_exeext 1819 if { { ac_try="$ac_link" 1820 case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823 esac 1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825 $as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_link") 2>conftest.err 1827 ac_status=$? 1828 if test -s conftest.err; then 1829 grep -v '^ *+' conftest.err >conftest.er1 1830 cat conftest.er1 >&5 1831 mv -f conftest.er1 conftest.err 1832 fi 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; } && { 1835 test -z "$ac_c_werror_flag" || 1836 test ! -s conftest.err 1837 } && test -s conftest$ac_exeext && { 1838 test "$cross_compiling" = yes || 1839 test -x conftest$ac_exeext 1840 }; then : 1841 ac_retval=0 1842 else 1843 $as_echo "$as_me: failed program was:" >&5 1844 sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847 fi 1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1850 # interfere with the next link command; also delete a directory that is 1851 # left behind by Apple's compiler. We do this before executing the actions. 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856 } # ac_fn_c_try_link 1857 1858 # ac_fn_c_check_func LINENO FUNC VAR 1859 # ---------------------------------- 1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1861 ac_fn_c_check_func () 1862 { 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865 $as_echo_n "checking for $2... " >&6; } 1866 if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868 else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870 /* end confdefs.h. */ 1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873 #define $2 innocuous_$2 1874 1875 /* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. 1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1878 <limits.h> exists even on freestanding compilers. */ 1879 1880 #ifdef __STDC__ 1881 # include <limits.h> 1882 #else 1883 # include <assert.h> 1884 #endif 1885 1886 #undef $2 1887 1888 /* Override any GCC internal prototype to avoid an error. 1889 Use char because int might match the return type of a GCC 1890 builtin and then its argument prototype would still apply. */ 1891 #ifdef __cplusplus 1892 extern "C" 1893 #endif 1894 char $2 (); 1895 /* The GNU C library defines this for functions which it implements 1896 to always fail with ENOSYS. Some functions are actually named 1897 something starting with __ and the normal name is an alias. */ 1898 #if defined __stub_$2 || defined __stub___$2 1899 choke me 1900 #endif 1901 1902 int 1903 main () 1904 { 1905 return $2 (); 1906 ; 1907 return 0; 1908 } 1909 _ACEOF 1910 if ac_fn_c_try_link "$LINENO"; then : 1911 eval "$3=yes" 1912 else 1913 eval "$3=no" 1914 fi 1915 rm -f core conftest.err conftest.$ac_objext \ 1916 conftest$ac_exeext conftest.$ac_ext 1917 fi 1918 eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920 $as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923 } # ac_fn_c_check_func 1924 1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1926 # --------------------------------------------- 1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928 # accordingly. 1929 ac_fn_c_check_decl () 1930 { 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1936 if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938 else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940 /* end confdefs.h. */ 1941 $4 1942 int 1943 main () 1944 { 1945 #ifndef $as_decl_name 1946 #ifdef __cplusplus 1947 (void) $as_decl_use; 1948 #else 1949 (void) $as_decl_name; 1950 #endif 1951 #endif 1952 1953 ; 1954 return 0; 1955 } 1956 _ACEOF 1957 if ac_fn_c_try_compile "$LINENO"; then : 1958 eval "$3=yes" 1959 else 1960 eval "$3=no" 1961 fi 1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963 fi 1964 eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966 $as_echo "$ac_res" >&6; } 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 1969 } # ac_fn_c_check_decl 1970 cat >config.log <<_ACEOF 1971 This file contains any messages produced by compilers while 1972 running configure, to aid debugging if configure makes a mistake. 1973 1974 It was created by opcodes $as_me 2.45.50, which was 1975 generated by GNU Autoconf 2.69. Invocation command line was 1976 1977 $ $0 $@ 1978 1979 _ACEOF 1980 exec 5>>config.log 1981 { 1982 cat <<_ASUNAME 1983 ## --------- ## 1984 ## Platform. ## 1985 ## --------- ## 1986 1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1988 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1989 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1990 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1991 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1992 1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1995 1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2003 2004 _ASUNAME 2005 2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2007 for as_dir in $PATH 2008 do 2009 IFS=$as_save_IFS 2010 test -z "$as_dir" && as_dir=. 2011 $as_echo "PATH: $as_dir" 2012 done 2013 IFS=$as_save_IFS 2014 2015 } >&5 2016 2017 cat >&5 <<_ACEOF 2018 2019 2020 ## ----------- ## 2021 ## Core tests. ## 2022 ## ----------- ## 2023 2024 _ACEOF 2025 2026 2027 # Keep a trace of the command line. 2028 # Strip out --no-create and --no-recursion so they do not pile up. 2029 # Strip out --silent because we don't want to record it for future runs. 2030 # Also quote any args containing shell meta-characters. 2031 # Make two passes to allow for proper duplicate-argument suppression. 2032 ac_configure_args= 2033 ac_configure_args0= 2034 ac_configure_args1= 2035 ac_must_keep_next=false 2036 for ac_pass in 1 2 2037 do 2038 for ac_arg 2039 do 2040 case $ac_arg in 2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2043 | -silent | --silent | --silen | --sile | --sil) 2044 continue ;; 2045 *\'*) 2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2047 esac 2048 case $ac_pass in 2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2050 2) 2051 as_fn_append ac_configure_args1 " '$ac_arg'" 2052 if test $ac_must_keep_next = true; then 2053 ac_must_keep_next=false # Got value, back to normal. 2054 else 2055 case $ac_arg in 2056 *=* | --config-cache | -C | -disable-* | --disable-* \ 2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2059 | -with-* | --with-* | -without-* | --without-* | --x) 2060 case "$ac_configure_args0 " in 2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2062 esac 2063 ;; 2064 -* ) ac_must_keep_next=true ;; 2065 esac 2066 fi 2067 as_fn_append ac_configure_args " '$ac_arg'" 2068 ;; 2069 esac 2070 done 2071 done 2072 { ac_configure_args0=; unset ac_configure_args0;} 2073 { ac_configure_args1=; unset ac_configure_args1;} 2074 2075 # When interrupted or exit'd, cleanup temporary files, and complete 2076 # config.log. We remove comments because anyway the quotes in there 2077 # would cause problems or look ugly. 2078 # WARNING: Use '\'' to represent an apostrophe within the trap. 2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2080 trap 'exit_status=$? 2081 # Save into config.log some information that might help in debugging. 2082 { 2083 echo 2084 2085 $as_echo "## ---------------- ## 2086 ## Cache variables. ## 2087 ## ---------------- ##" 2088 echo 2089 # The following way of writing the cache mishandles newlines in values, 2090 ( 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in #( 2094 *${as_nl}*) 2095 case $ac_var in #( 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2098 esac 2099 case $ac_var in #( 2100 _ | IFS | as_nl) ;; #( 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2102 *) { eval $ac_var=; unset $ac_var;} ;; 2103 esac ;; 2104 esac 2105 done 2106 (set) 2>&1 | 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2108 *${as_nl}ac_space=\ *) 2109 sed -n \ 2110 "s/'\''/'\''\\\\'\'''\''/g; 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2112 ;; #( 2113 *) 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2115 ;; 2116 esac | 2117 sort 2118 ) 2119 echo 2120 2121 $as_echo "## ----------------- ## 2122 ## Output variables. ## 2123 ## ----------------- ##" 2124 echo 2125 for ac_var in $ac_subst_vars 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 $as_echo "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 2135 if test -n "$ac_subst_files"; then 2136 $as_echo "## ------------------- ## 2137 ## File substitutions. ## 2138 ## ------------------- ##" 2139 echo 2140 for ac_var in $ac_subst_files 2141 do 2142 eval ac_val=\$$ac_var 2143 case $ac_val in 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2145 esac 2146 $as_echo "$ac_var='\''$ac_val'\''" 2147 done | sort 2148 echo 2149 fi 2150 2151 if test -s confdefs.h; then 2152 $as_echo "## ----------- ## 2153 ## confdefs.h. ## 2154 ## ----------- ##" 2155 echo 2156 cat confdefs.h 2157 echo 2158 fi 2159 test "$ac_signal" != 0 && 2160 $as_echo "$as_me: caught signal $ac_signal" 2161 $as_echo "$as_me: exit $exit_status" 2162 } >&5 2163 rm -f core *.core core.conftest.* && 2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2165 exit $exit_status 2166 ' 0 2167 for ac_signal in 1 2 13 15; do 2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2169 done 2170 ac_signal=0 2171 2172 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2173 rm -f -r conftest* confdefs.h 2174 2175 $as_echo "/* confdefs.h */" > confdefs.h 2176 2177 # Predefined preprocessor variables. 2178 2179 cat >>confdefs.h <<_ACEOF 2180 #define PACKAGE_NAME "$PACKAGE_NAME" 2181 _ACEOF 2182 2183 cat >>confdefs.h <<_ACEOF 2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2185 _ACEOF 2186 2187 cat >>confdefs.h <<_ACEOF 2188 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2189 _ACEOF 2190 2191 cat >>confdefs.h <<_ACEOF 2192 #define PACKAGE_STRING "$PACKAGE_STRING" 2193 _ACEOF 2194 2195 cat >>confdefs.h <<_ACEOF 2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2197 _ACEOF 2198 2199 cat >>confdefs.h <<_ACEOF 2200 #define PACKAGE_URL "$PACKAGE_URL" 2201 _ACEOF 2202 2203 2204 # Let the site file select an alternate cache file if it wants to. 2205 # Prefer an explicitly selected file to automatically selected ones. 2206 ac_site_file1=NONE 2207 ac_site_file2=NONE 2208 if test -n "$CONFIG_SITE"; then 2209 # We do not want a PATH search for config.site. 2210 case $CONFIG_SITE in #(( 2211 -*) ac_site_file1=./$CONFIG_SITE;; 2212 */*) ac_site_file1=$CONFIG_SITE;; 2213 *) ac_site_file1=./$CONFIG_SITE;; 2214 esac 2215 elif test "x$prefix" != xNONE; then 2216 ac_site_file1=$prefix/share/config.site 2217 ac_site_file2=$prefix/etc/config.site 2218 else 2219 ac_site_file1=$ac_default_prefix/share/config.site 2220 ac_site_file2=$ac_default_prefix/etc/config.site 2221 fi 2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2223 do 2224 test "x$ac_site_file" = xNONE && continue 2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2228 sed 's/^/| /' "$ac_site_file" >&5 2229 . "$ac_site_file" \ 2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2232 as_fn_error $? "failed to load site script $ac_site_file 2233 See \`config.log' for more details" "$LINENO" 5; } 2234 fi 2235 done 2236 2237 if test -r "$cache_file"; then 2238 # Some versions of bash will fail to source /dev/null (special files 2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2242 $as_echo "$as_me: loading cache $cache_file" >&6;} 2243 case $cache_file in 2244 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2245 *) . "./$cache_file";; 2246 esac 2247 fi 2248 else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2250 $as_echo "$as_me: creating cache $cache_file" >&6;} 2251 >$cache_file 2252 fi 2253 2254 gt_needs="$gt_needs " 2255 # Check that the precious variables saved in the cache have kept the same 2256 # value. 2257 ac_cache_corrupted=false 2258 for ac_var in $ac_precious_vars; do 2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2260 eval ac_new_set=\$ac_env_${ac_var}_set 2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2262 eval ac_new_val=\$ac_env_${ac_var}_value 2263 case $ac_old_set,$ac_new_set in 2264 set,) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,set) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,);; 2273 *) 2274 if test "x$ac_old_val" != "x$ac_new_val"; then 2275 # differences in whitespace do not lead to failure. 2276 ac_old_val_w=`echo x $ac_old_val` 2277 ac_new_val_w=`echo x $ac_new_val` 2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2281 ac_cache_corrupted=: 2282 else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2285 eval $ac_var=\$ac_old_val 2286 fi 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2291 fi;; 2292 esac 2293 # Pass precious variables to config.status. 2294 if test "$ac_new_set" = set; then 2295 case $ac_new_val in 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 *) ac_arg=$ac_var=$ac_new_val ;; 2298 esac 2299 case " $ac_configure_args " in 2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2302 esac 2303 fi 2304 done 2305 if $ac_cache_corrupted; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2311 fi 2312 ## -------------------- ## 2313 ## Main body of script. ## 2314 ## -------------------- ## 2315 2316 ac_ext=c 2317 ac_cpp='$CPP $CPPFLAGS' 2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321 2322 2323 2324 2325 2326 2327 2328 ac_aux_dir= 2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2330 if test -f "$ac_dir/install-sh"; then 2331 ac_aux_dir=$ac_dir 2332 ac_install_sh="$ac_aux_dir/install-sh -c" 2333 break 2334 elif test -f "$ac_dir/install.sh"; then 2335 ac_aux_dir=$ac_dir 2336 ac_install_sh="$ac_aux_dir/install.sh -c" 2337 break 2338 elif test -f "$ac_dir/shtool"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/shtool install -c" 2341 break 2342 fi 2343 done 2344 if test -z "$ac_aux_dir"; then 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2346 fi 2347 2348 # These three variables are undocumented and unsupported, 2349 # and are intended to be withdrawn in a future Autoconf release. 2350 # They can cause serious problems if a builder's source tree is in a directory 2351 # whose full name contains unusual characters. 2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2355 2356 2357 # Make sure we can run config.sub. 2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2360 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2362 $as_echo_n "checking build system type... " >&6; } 2363 if ${ac_cv_build+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365 else 2366 ac_build_alias=$build_alias 2367 test "x$ac_build_alias" = x && 2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2369 test "x$ac_build_alias" = x && 2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2373 2374 fi 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2376 $as_echo "$ac_cv_build" >&6; } 2377 case $ac_cv_build in 2378 *-*-*) ;; 2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2380 esac 2381 build=$ac_cv_build 2382 ac_save_IFS=$IFS; IFS='-' 2383 set x $ac_cv_build 2384 shift 2385 build_cpu=$1 2386 build_vendor=$2 2387 shift; shift 2388 # Remember, the first character of IFS is used to create $*, 2389 # except with old shells: 2390 build_os=$* 2391 IFS=$ac_save_IFS 2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2393 2394 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2396 $as_echo_n "checking host system type... " >&6; } 2397 if ${ac_cv_host+:} false; then : 2398 $as_echo_n "(cached) " >&6 2399 else 2400 if test "x$host_alias" = x; then 2401 ac_cv_host=$ac_cv_build 2402 else 2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2405 fi 2406 2407 fi 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2409 $as_echo "$ac_cv_host" >&6; } 2410 case $ac_cv_host in 2411 *-*-*) ;; 2412 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2413 esac 2414 host=$ac_cv_host 2415 ac_save_IFS=$IFS; IFS='-' 2416 set x $ac_cv_host 2417 shift 2418 host_cpu=$1 2419 host_vendor=$2 2420 shift; shift 2421 # Remember, the first character of IFS is used to create $*, 2422 # except with old shells: 2423 host_os=$* 2424 IFS=$ac_save_IFS 2425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2426 2427 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2429 $as_echo_n "checking target system type... " >&6; } 2430 if ${ac_cv_target+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432 else 2433 if test "x$target_alias" = x; then 2434 ac_cv_target=$ac_cv_host 2435 else 2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2438 fi 2439 2440 fi 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2442 $as_echo "$ac_cv_target" >&6; } 2443 case $ac_cv_target in 2444 *-*-*) ;; 2445 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2446 esac 2447 target=$ac_cv_target 2448 ac_save_IFS=$IFS; IFS='-' 2449 set x $ac_cv_target 2450 shift 2451 target_cpu=$1 2452 target_vendor=$2 2453 shift; shift 2454 # Remember, the first character of IFS is used to create $*, 2455 # except with old shells: 2456 target_os=$* 2457 IFS=$ac_save_IFS 2458 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2459 2460 2461 # The aliases save the names the user supplied, while $host etc. 2462 # will get canonicalized. 2463 test -n "$target_alias" && 2464 test "$program_prefix$program_suffix$program_transform_name" = \ 2465 NONENONEs,x,x, && 2466 program_prefix=${target_alias}- 2467 2468 am__api_version='1.15' 2469 2470 # Find a good install program. We prefer a C program (faster), 2471 # so one script is as good as another. But avoid the broken or 2472 # incompatible versions: 2473 # SysV /etc/install, /usr/sbin/install 2474 # SunOS /usr/etc/install 2475 # IRIX /sbin/install 2476 # AIX /bin/install 2477 # AmigaOS /C/install, which installs bootblocks on floppy discs 2478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2481 # OS/2's system install, which has a completely different semantic 2482 # ./install, which can be erroneously created by make from ./install.sh. 2483 # Reject install programs that cannot install multiple files. 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2485 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2486 if test -z "$INSTALL"; then 2487 if ${ac_cv_path_install+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489 else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491 for as_dir in $PATH 2492 do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 # Account for people who put trailing slashes in PATH elements. 2496 case $as_dir/ in #(( 2497 ./ | .// | /[cC]/* | \ 2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2500 /usr/ucb/* ) ;; 2501 *) 2502 # OSF1 and SCO ODT 3.0 have their own names for install. 2503 # Don't use installbsd from OSF since it installs stuff as root 2504 # by default. 2505 for ac_prog in ginstall scoinst install; do 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2508 if test $ac_prog = install && 2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # AIX install. It has an incompatible calling convention. 2511 : 2512 elif test $ac_prog = install && 2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # program-specific install script used by HP pwplus--don't use. 2515 : 2516 else 2517 rm -rf conftest.one conftest.two conftest.dir 2518 echo one > conftest.one 2519 echo two > conftest.two 2520 mkdir conftest.dir 2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2522 test -s conftest.one && test -s conftest.two && 2523 test -s conftest.dir/conftest.one && 2524 test -s conftest.dir/conftest.two 2525 then 2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2527 break 3 2528 fi 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534 esac 2535 2536 done 2537 IFS=$as_save_IFS 2538 2539 rm -rf conftest.one conftest.two conftest.dir 2540 2541 fi 2542 if test "${ac_cv_path_install+set}" = set; then 2543 INSTALL=$ac_cv_path_install 2544 else 2545 # As a last resort, use the slow shell script. Don't cache a 2546 # value for INSTALL within a source directory, because that will 2547 # break other packages using the cache if that directory is 2548 # removed, or if the value is a relative name. 2549 INSTALL=$ac_install_sh 2550 fi 2551 fi 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2553 $as_echo "$INSTALL" >&6; } 2554 2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2556 # It thinks the first close brace ends the variable substitution. 2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2558 2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2560 2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2562 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2564 $as_echo_n "checking whether build environment is sane... " >&6; } 2565 # Reject unsafe characters in $srcdir or the absolute working directory 2566 # name. Accept space and tab only in the latter. 2567 am_lf=' 2568 ' 2569 case `pwd` in 2570 *[\\\"\#\$\&\'\`$am_lf]*) 2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2572 esac 2573 case $srcdir in 2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2575 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2576 esac 2577 2578 # Do 'set' in a subshell so we don't clobber the current shell's 2579 # arguments. Must try -L first in case configure is actually a 2580 # symlink; some systems play weird games with the mod time of symlinks 2581 # (eg FreeBSD returns the mod time of the symlink's containing 2582 # directory). 2583 if ( 2584 am_has_slept=no 2585 for am_try in 1 2; do 2586 echo "timestamp, slept: $am_has_slept" > conftest.file 2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2588 if test "$*" = "X"; then 2589 # -L didn't work. 2590 set X `ls -t "$srcdir/configure" conftest.file` 2591 fi 2592 if test "$*" != "X $srcdir/configure conftest.file" \ 2593 && test "$*" != "X conftest.file $srcdir/configure"; then 2594 2595 # If neither matched, then we have a broken ls. This can happen 2596 # if, for instance, CONFIG_SHELL is bash and it inherits a 2597 # broken ls alias from the environment. This has actually 2598 # happened. Such a system could not be considered "sane". 2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2600 alias in your environment" "$LINENO" 5 2601 fi 2602 if test "$2" = conftest.file || test $am_try -eq 2; then 2603 break 2604 fi 2605 # Just in case. 2606 sleep 1 2607 am_has_slept=yes 2608 done 2609 test "$2" = conftest.file 2610 ) 2611 then 2612 # Ok. 2613 : 2614 else 2615 as_fn_error $? "newly created file is older than distributed files! 2616 Check your system clock" "$LINENO" 5 2617 fi 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2619 $as_echo "yes" >&6; } 2620 # If we didn't sleep, we still need to ensure time stamps of config.status and 2621 # generated files are strictly newer. 2622 am_sleep_pid= 2623 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2624 ( sleep 1 ) & 2625 am_sleep_pid=$! 2626 fi 2627 2628 rm -f conftest.file 2629 2630 test "$program_prefix" != NONE && 2631 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2632 # Use a double $ so make ignores it. 2633 test "$program_suffix" != NONE && 2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2635 # Double any \ or $. 2636 # By default was `s,x,x', remove it if useless. 2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2639 2640 # Expand $ac_aux_dir to an absolute path. 2641 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2642 2643 if test x"${MISSING+set}" != xset; then 2644 case $am_aux_dir in 2645 *\ * | *\ *) 2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2647 *) 2648 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2649 esac 2650 fi 2651 # Use eval to expand $SHELL 2652 if eval "$MISSING --is-lightweight"; then 2653 am_missing_run="$MISSING " 2654 else 2655 am_missing_run= 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2657 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2658 fi 2659 2660 if test x"${install_sh+set}" != xset; then 2661 case $am_aux_dir in 2662 *\ * | *\ *) 2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2664 *) 2665 install_sh="\${SHELL} $am_aux_dir/install-sh" 2666 esac 2667 fi 2668 2669 # Installed binaries are usually stripped using 'strip' when the user 2670 # run "make install-strip". However 'strip' might not be the right 2671 # tool to use in cross-compilation environments, therefore Automake 2672 # will honor the 'STRIP' environment variable to overrule this program. 2673 if test "$cross_compiling" != no; then 2674 if test -n "$ac_tool_prefix"; then 2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2676 set dummy ${ac_tool_prefix}strip; ac_word=$2 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678 $as_echo_n "checking for $ac_word... " >&6; } 2679 if ${ac_cv_prog_STRIP+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681 else 2682 if test -n "$STRIP"; then 2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2684 else 2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686 for as_dir in $PATH 2687 do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696 done 2697 done 2698 IFS=$as_save_IFS 2699 2700 fi 2701 fi 2702 STRIP=$ac_cv_prog_STRIP 2703 if test -n "$STRIP"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2705 $as_echo "$STRIP" >&6; } 2706 else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708 $as_echo "no" >&6; } 2709 fi 2710 2711 2712 fi 2713 if test -z "$ac_cv_prog_STRIP"; then 2714 ac_ct_STRIP=$STRIP 2715 # Extract the first word of "strip", so it can be a program name with args. 2716 set dummy strip; ac_word=$2 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718 $as_echo_n "checking for $ac_word... " >&6; } 2719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721 else 2722 if test -n "$ac_ct_STRIP"; then 2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2724 else 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726 for as_dir in $PATH 2727 do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_ac_ct_STRIP="strip" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736 done 2737 done 2738 IFS=$as_save_IFS 2739 2740 fi 2741 fi 2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2743 if test -n "$ac_ct_STRIP"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2745 $as_echo "$ac_ct_STRIP" >&6; } 2746 else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748 $as_echo "no" >&6; } 2749 fi 2750 2751 if test "x$ac_ct_STRIP" = x; then 2752 STRIP=":" 2753 else 2754 case $cross_compiling:$ac_tool_warned in 2755 yes:) 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2758 ac_tool_warned=yes ;; 2759 esac 2760 STRIP=$ac_ct_STRIP 2761 fi 2762 else 2763 STRIP="$ac_cv_prog_STRIP" 2764 fi 2765 2766 fi 2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2768 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2771 if test -z "$MKDIR_P"; then 2772 if ${ac_cv_path_mkdir+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774 else 2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2777 do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_prog in mkdir gmkdir; do 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2784 'mkdir (GNU coreutils) '* | \ 2785 'mkdir (coreutils) '* | \ 2786 'mkdir (fileutils) '4.1*) 2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2788 break 3;; 2789 esac 2790 done 2791 done 2792 done 2793 IFS=$as_save_IFS 2794 2795 fi 2796 2797 test -d ./--version && rmdir ./--version 2798 if test "${ac_cv_path_mkdir+set}" = set; then 2799 MKDIR_P="$ac_cv_path_mkdir -p" 2800 else 2801 # As a last resort, use the slow shell script. Don't cache a 2802 # value for MKDIR_P within a source directory, because that will 2803 # break other packages using the cache if that directory is 2804 # removed, or if the value is a relative name. 2805 MKDIR_P="$ac_install_sh -d" 2806 fi 2807 fi 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2809 $as_echo "$MKDIR_P" >&6; } 2810 2811 for ac_prog in gawk mawk nawk awk 2812 do 2813 # Extract the first word of "$ac_prog", so it can be a program name with args. 2814 set dummy $ac_prog; ac_word=$2 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816 $as_echo_n "checking for $ac_word... " >&6; } 2817 if ${ac_cv_prog_AWK+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 if test -n "$AWK"; then 2821 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2822 else 2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824 for as_dir in $PATH 2825 do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_AWK="$ac_prog" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834 done 2835 done 2836 IFS=$as_save_IFS 2837 2838 fi 2839 fi 2840 AWK=$ac_cv_prog_AWK 2841 if test -n "$AWK"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2843 $as_echo "$AWK" >&6; } 2844 else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846 $as_echo "no" >&6; } 2847 fi 2848 2849 2850 test -n "$AWK" && break 2851 done 2852 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2854 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2855 set x ${MAKE-make} 2856 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2857 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859 else 2860 cat >conftest.make <<\_ACEOF 2861 SHELL = /bin/sh 2862 all: 2863 @echo '@@@%%%=$(MAKE)=@@@%%%' 2864 _ACEOF 2865 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2866 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2867 *@@@%%%=?*=@@@%%%*) 2868 eval ac_cv_prog_make_${ac_make}_set=yes;; 2869 *) 2870 eval ac_cv_prog_make_${ac_make}_set=no;; 2871 esac 2872 rm -f conftest.make 2873 fi 2874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2876 $as_echo "yes" >&6; } 2877 SET_MAKE= 2878 else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880 $as_echo "no" >&6; } 2881 SET_MAKE="MAKE=${MAKE-make}" 2882 fi 2883 2884 rm -rf .tst 2>/dev/null 2885 mkdir .tst 2>/dev/null 2886 if test -d .tst; then 2887 am__leading_dot=. 2888 else 2889 am__leading_dot=_ 2890 fi 2891 rmdir .tst 2>/dev/null 2892 2893 # Check whether --enable-silent-rules was given. 2894 if test "${enable_silent_rules+set}" = set; then : 2895 enableval=$enable_silent_rules; 2896 fi 2897 2898 case $enable_silent_rules in # ((( 2899 yes) AM_DEFAULT_VERBOSITY=0;; 2900 no) AM_DEFAULT_VERBOSITY=1;; 2901 *) AM_DEFAULT_VERBOSITY=1;; 2902 esac 2903 am_make=${MAKE-make} 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2905 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2906 if ${am_cv_make_support_nested_variables+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908 else 2909 if $as_echo 'TRUE=$(BAR$(V)) 2910 BAR0=false 2911 BAR1=true 2912 V=1 2913 am__doit: 2914 @$(TRUE) 2915 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2916 am_cv_make_support_nested_variables=yes 2917 else 2918 am_cv_make_support_nested_variables=no 2919 fi 2920 fi 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2922 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2923 if test $am_cv_make_support_nested_variables = yes; then 2924 AM_V='$(V)' 2925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2926 else 2927 AM_V=$AM_DEFAULT_VERBOSITY 2928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2929 fi 2930 AM_BACKSLASH='\' 2931 2932 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2934 # is not polluted with repeated "-I." 2935 am__isrc=' -I$(srcdir)' 2936 # test to see if srcdir already configured 2937 if test -f $srcdir/config.status; then 2938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2939 fi 2940 fi 2941 2942 # test whether we have cygpath 2943 if test -z "$CYGPATH_W"; then 2944 if (cygpath --version) >/dev/null 2>/dev/null; then 2945 CYGPATH_W='cygpath -w' 2946 else 2947 CYGPATH_W=echo 2948 fi 2949 fi 2950 2951 2952 # Define the identity of the package. 2953 PACKAGE='opcodes' 2954 VERSION='2.45.50' 2955 2956 2957 cat >>confdefs.h <<_ACEOF 2958 #define PACKAGE "$PACKAGE" 2959 _ACEOF 2960 2961 2962 cat >>confdefs.h <<_ACEOF 2963 #define VERSION "$VERSION" 2964 _ACEOF 2965 2966 # Some tools Automake needs. 2967 2968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2969 2970 2971 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2972 2973 2974 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2975 2976 2977 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2978 2979 2980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2981 2982 # For better backward compatibility. To be removed once Automake 1.9.x 2983 # dies out for good. For more background, see: 2984 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2986 mkdir_p='$(MKDIR_P)' 2987 2988 # We need awk for the "check" target (and possibly the TAP driver). The 2989 # system "awk" is bad on some platforms. 2990 # Always define AMTAR for backward compatibility. Yes, it's still used 2991 # in the wild :-( We should find a proper way to deprecate it ... 2992 AMTAR='$${TAR-tar}' 2993 2994 2995 # We'll loop over all known methods to create a tar archive until one works. 2996 _am_tools='gnutar pax cpio none' 2997 2998 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2999 3000 3001 3002 3003 3004 3005 # POSIX will say in a future version that running "rm -f" with no argument 3006 # is OK; and we want to be able to make that assumption in our Makefile 3007 # recipes. So use an aggressive probe to check that the usage we want is 3008 # actually supported "in the wild" to an acceptable degree. 3009 # See automake bug#10828. 3010 # To make any issue more visible, cause the running configure to be aborted 3011 # by default if the 'rm' program in use doesn't match our expectations; the 3012 # user can still override this though. 3013 if rm -f && rm -fr && rm -rf; then : OK; else 3014 cat >&2 <<'END' 3015 Oops! 3016 3017 Your 'rm' program seems unable to run without file operands specified 3018 on the command line, even when the '-f' option is present. This is contrary 3019 to the behaviour of most rm programs out there, and not conforming with 3020 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3021 3022 Please tell bug-automake@gnu.org about your system, including the value 3023 of your $PATH and any error possibly output before this message. This 3024 can help us improve future automake versions. 3025 3026 END 3027 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3028 echo 'Configuration will proceed anyway, since you have set the' >&2 3029 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3030 echo >&2 3031 else 3032 cat >&2 <<'END' 3033 Aborting the configuration process, to ensure you take notice of the issue. 3034 3035 You can download and install GNU coreutils to get an 'rm' implementation 3036 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3037 3038 If you want to complete the configuration process using your problematic 3039 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3040 to "yes", and re-run configure. 3041 3042 END 3043 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3044 fi 3045 fi 3046 3047 # Check whether --enable-silent-rules was given. 3048 if test "${enable_silent_rules+set}" = set; then : 3049 enableval=$enable_silent_rules; 3050 fi 3051 3052 case $enable_silent_rules in # ((( 3053 yes) AM_DEFAULT_VERBOSITY=0;; 3054 no) AM_DEFAULT_VERBOSITY=1;; 3055 *) AM_DEFAULT_VERBOSITY=0;; 3056 esac 3057 am_make=${MAKE-make} 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3059 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3060 if ${am_cv_make_support_nested_variables+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062 else 3063 if $as_echo 'TRUE=$(BAR$(V)) 3064 BAR0=false 3065 BAR1=true 3066 V=1 3067 am__doit: 3068 @$(TRUE) 3069 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3070 am_cv_make_support_nested_variables=yes 3071 else 3072 am_cv_make_support_nested_variables=no 3073 fi 3074 fi 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3076 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3077 if test $am_cv_make_support_nested_variables = yes; then 3078 AM_V='$(V)' 3079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3080 else 3081 AM_V=$AM_DEFAULT_VERBOSITY 3082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3083 fi 3084 AM_BACKSLASH='\' 3085 3086 3087 ac_ext=c 3088 ac_cpp='$CPP $CPPFLAGS' 3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3092 if test -n "$ac_tool_prefix"; then 3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096 $as_echo_n "checking for $ac_word... " >&6; } 3097 if ${ac_cv_prog_CC+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099 else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102 else 3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104 for as_dir in $PATH 3105 do 3106 IFS=$as_save_IFS 3107 test -z "$as_dir" && as_dir=. 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3110 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3112 break 2 3113 fi 3114 done 3115 done 3116 IFS=$as_save_IFS 3117 3118 fi 3119 fi 3120 CC=$ac_cv_prog_CC 3121 if test -n "$CC"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3123 $as_echo "$CC" >&6; } 3124 else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3126 $as_echo "no" >&6; } 3127 fi 3128 3129 3130 fi 3131 if test -z "$ac_cv_prog_CC"; then 3132 ac_ct_CC=$CC 3133 # Extract the first word of "gcc", so it can be a program name with args. 3134 set dummy gcc; ac_word=$2 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136 $as_echo_n "checking for $ac_word... " >&6; } 3137 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139 else 3140 if test -n "$ac_ct_CC"; then 3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3142 else 3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144 for as_dir in $PATH 3145 do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_ac_ct_CC="gcc" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154 done 3155 done 3156 IFS=$as_save_IFS 3157 3158 fi 3159 fi 3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3161 if test -n "$ac_ct_CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3163 $as_echo "$ac_ct_CC" >&6; } 3164 else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166 $as_echo "no" >&6; } 3167 fi 3168 3169 if test "x$ac_ct_CC" = x; then 3170 CC="" 3171 else 3172 case $cross_compiling:$ac_tool_warned in 3173 yes:) 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3176 ac_tool_warned=yes ;; 3177 esac 3178 CC=$ac_ct_CC 3179 fi 3180 else 3181 CC="$ac_cv_prog_CC" 3182 fi 3183 3184 if test -z "$CC"; then 3185 if test -n "$ac_tool_prefix"; then 3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3187 set dummy ${ac_tool_prefix}cc; ac_word=$2 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189 $as_echo_n "checking for $ac_word... " >&6; } 3190 if ${ac_cv_prog_CC+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192 else 3193 if test -n "$CC"; then 3194 ac_cv_prog_CC="$CC" # Let the user override the test. 3195 else 3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197 for as_dir in $PATH 3198 do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3203 ac_cv_prog_CC="${ac_tool_prefix}cc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207 done 3208 done 3209 IFS=$as_save_IFS 3210 3211 fi 3212 fi 3213 CC=$ac_cv_prog_CC 3214 if test -n "$CC"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3216 $as_echo "$CC" >&6; } 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219 $as_echo "no" >&6; } 3220 fi 3221 3222 3223 fi 3224 fi 3225 if test -z "$CC"; then 3226 # Extract the first word of "cc", so it can be a program name with args. 3227 set dummy cc; ac_word=$2 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3229 $as_echo_n "checking for $ac_word... " >&6; } 3230 if ${ac_cv_prog_CC+:} false; then : 3231 $as_echo_n "(cached) " >&6 3232 else 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235 else 3236 ac_prog_rejected=no 3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238 for as_dir in $PATH 3239 do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3245 ac_prog_rejected=yes 3246 continue 3247 fi 3248 ac_cv_prog_CC="cc" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252 done 3253 done 3254 IFS=$as_save_IFS 3255 3256 if test $ac_prog_rejected = yes; then 3257 # We found a bogon in the path, so make sure we never use it. 3258 set dummy $ac_cv_prog_CC 3259 shift 3260 if test $# != 0; then 3261 # We chose a different compiler from the bogus one. 3262 # However, it has the same basename, so the bogon will be chosen 3263 # first if we set CC to just the basename; use the full file name. 3264 shift 3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3266 fi 3267 fi 3268 fi 3269 fi 3270 CC=$ac_cv_prog_CC 3271 if test -n "$CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3273 $as_echo "$CC" >&6; } 3274 else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276 $as_echo "no" >&6; } 3277 fi 3278 3279 3280 fi 3281 if test -z "$CC"; then 3282 if test -n "$ac_tool_prefix"; then 3283 for ac_prog in cl.exe 3284 do 3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288 $as_echo_n "checking for $ac_word... " >&6; } 3289 if ${ac_cv_prog_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291 else 3292 if test -n "$CC"; then 3293 ac_cv_prog_CC="$CC" # Let the user override the test. 3294 else 3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296 for as_dir in $PATH 3297 do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306 done 3307 done 3308 IFS=$as_save_IFS 3309 3310 fi 3311 fi 3312 CC=$ac_cv_prog_CC 3313 if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315 $as_echo "$CC" >&6; } 3316 else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318 $as_echo "no" >&6; } 3319 fi 3320 3321 3322 test -n "$CC" && break 3323 done 3324 fi 3325 if test -z "$CC"; then 3326 ac_ct_CC=$CC 3327 for ac_prog in cl.exe 3328 do 3329 # Extract the first word of "$ac_prog", so it can be a program name with args. 3330 set dummy $ac_prog; ac_word=$2 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332 $as_echo_n "checking for $ac_word... " >&6; } 3333 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335 else 3336 if test -n "$ac_ct_CC"; then 3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3338 else 3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340 for as_dir in $PATH 3341 do 3342 IFS=$as_save_IFS 3343 test -z "$as_dir" && as_dir=. 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_ac_ct_CC="$ac_prog" 3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350 done 3351 done 3352 IFS=$as_save_IFS 3353 3354 fi 3355 fi 3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3357 if test -n "$ac_ct_CC"; then 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3359 $as_echo "$ac_ct_CC" >&6; } 3360 else 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362 $as_echo "no" >&6; } 3363 fi 3364 3365 3366 test -n "$ac_ct_CC" && break 3367 done 3368 3369 if test "x$ac_ct_CC" = x; then 3370 CC="" 3371 else 3372 case $cross_compiling:$ac_tool_warned in 3373 yes:) 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376 ac_tool_warned=yes ;; 3377 esac 3378 CC=$ac_ct_CC 3379 fi 3380 fi 3381 3382 fi 3383 3384 3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387 as_fn_error $? "no acceptable C compiler found in \$PATH 3388 See \`config.log' for more details" "$LINENO" 5; } 3389 3390 # Provide some information about the compiler. 3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3392 set X $ac_compile 3393 ac_compiler=$2 3394 for ac_option in --version -v -V -qversion; do 3395 { { ac_try="$ac_compiler $ac_option >&5" 3396 case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399 esac 3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401 $as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3403 ac_status=$? 3404 if test -s conftest.err; then 3405 sed '10a\ 3406 ... rest of stderr output deleted ... 3407 10q' conftest.err >conftest.er1 3408 cat conftest.er1 >&5 3409 fi 3410 rm -f conftest.er1 conftest.err 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; } 3413 done 3414 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 3418 int 3419 main () 3420 { 3421 3422 ; 3423 return 0; 3424 } 3425 _ACEOF 3426 ac_clean_files_save=$ac_clean_files 3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3428 # Try to create an executable without -o first, disregard a.out. 3429 # It will help us diagnose broken compilers, and finding out an intuition 3430 # of exeext. 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3432 $as_echo_n "checking whether the C compiler works... " >&6; } 3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3434 3435 # The possible output files: 3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3437 3438 ac_rmfiles= 3439 for ac_file in $ac_files 3440 do 3441 case $ac_file in 3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3444 esac 3445 done 3446 rm -f $ac_rmfiles 3447 3448 if { { ac_try="$ac_link_default" 3449 case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452 esac 3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3454 $as_echo "$ac_try_echo"; } >&5 3455 (eval "$ac_link_default") 2>&5 3456 ac_status=$? 3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3458 test $ac_status = 0; }; then : 3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3461 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3462 # so that the user can short-circuit this test for compilers unknown to 3463 # Autoconf. 3464 for ac_file in $ac_files '' 3465 do 3466 test -f "$ac_file" || continue 3467 case $ac_file in 3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3469 ;; 3470 [ab].out ) 3471 # We found the default executable, but exeext='' is most 3472 # certainly right. 3473 break;; 3474 *.* ) 3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3476 then :; else 3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3478 fi 3479 # We set ac_cv_exeext here because the later test for it is not 3480 # safe: cross compilers may not add the suffix if given an `-o' 3481 # argument, so we may need to know it at that point already. 3482 # Even if this section looks crufty: it has the advantage of 3483 # actually working. 3484 break;; 3485 * ) 3486 break;; 3487 esac 3488 done 3489 test "$ac_cv_exeext" = no && ac_cv_exeext= 3490 3491 else 3492 ac_file='' 3493 fi 3494 if test -z "$ac_file"; then : 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 $as_echo "$as_me: failed program was:" >&5 3498 sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502 as_fn_error 77 "C compiler cannot create executables 3503 See \`config.log' for more details" "$LINENO" 5; } 3504 else 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506 $as_echo "yes" >&6; } 3507 fi 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3509 $as_echo_n "checking for C compiler default output file name... " >&6; } 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3511 $as_echo "$ac_file" >&6; } 3512 ac_exeext=$ac_cv_exeext 3513 3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3515 ac_clean_files=$ac_clean_files_save 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3517 $as_echo_n "checking for suffix of executables... " >&6; } 3518 if { { ac_try="$ac_link" 3519 case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522 esac 3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524 $as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_link") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; then : 3529 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3531 # work properly (i.e., refer to `conftest.exe'), while it won't with 3532 # `rm'. 3533 for ac_file in conftest.exe conftest conftest.*; do 3534 test -f "$ac_file" || continue 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3538 break;; 3539 * ) break;; 3540 esac 3541 done 3542 else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3546 See \`config.log' for more details" "$LINENO" 5; } 3547 fi 3548 rm -f conftest conftest$ac_cv_exeext 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3550 $as_echo "$ac_cv_exeext" >&6; } 3551 3552 rm -f conftest.$ac_ext 3553 EXEEXT=$ac_cv_exeext 3554 ac_exeext=$EXEEXT 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 /* end confdefs.h. */ 3557 #include <stdio.h> 3558 int 3559 main () 3560 { 3561 FILE *f = fopen ("conftest.out", "w"); 3562 return ferror (f) || fclose (f) != 0; 3563 3564 ; 3565 return 0; 3566 } 3567 _ACEOF 3568 ac_clean_files="$ac_clean_files conftest.out" 3569 # Check that the compiler produces executables we can run. If not, either 3570 # the compiler is broken, or we cross compile. 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3572 $as_echo_n "checking whether we are cross compiling... " >&6; } 3573 if test "$cross_compiling" != yes; then 3574 { { ac_try="$ac_link" 3575 case "(($ac_try" in 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577 *) ac_try_echo=$ac_try;; 3578 esac 3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580 $as_echo "$ac_try_echo"; } >&5 3581 (eval "$ac_link") 2>&5 3582 ac_status=$? 3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584 test $ac_status = 0; } 3585 if { ac_try='./conftest$ac_cv_exeext' 3586 { { case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589 esac 3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591 $as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_try") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; }; }; then 3596 cross_compiling=no 3597 else 3598 if test "$cross_compiling" = maybe; then 3599 cross_compiling=yes 3600 else 3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603 as_fn_error $? "cannot run C compiled programs. 3604 If you meant to cross compile, use \`--host'. 3605 See \`config.log' for more details" "$LINENO" 5; } 3606 fi 3607 fi 3608 fi 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3610 $as_echo "$cross_compiling" >&6; } 3611 3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3613 ac_clean_files=$ac_clean_files_save 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3615 $as_echo_n "checking for suffix of object files... " >&6; } 3616 if ${ac_cv_objext+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618 else 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620 /* end confdefs.h. */ 3621 3622 int 3623 main () 3624 { 3625 3626 ; 3627 return 0; 3628 } 3629 _ACEOF 3630 rm -f conftest.o conftest.obj 3631 if { { ac_try="$ac_compile" 3632 case "(($ac_try" in 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3634 *) ac_try_echo=$ac_try;; 3635 esac 3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3637 $as_echo "$ac_try_echo"; } >&5 3638 (eval "$ac_compile") 2>&5 3639 ac_status=$? 3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3641 test $ac_status = 0; }; then : 3642 for ac_file in conftest.o conftest.obj conftest.*; do 3643 test -f "$ac_file" || continue; 3644 case $ac_file in 3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3647 break;; 3648 esac 3649 done 3650 else 3651 $as_echo "$as_me: failed program was:" >&5 3652 sed 's/^/| /' conftest.$ac_ext >&5 3653 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656 as_fn_error $? "cannot compute suffix of object files: cannot compile 3657 See \`config.log' for more details" "$LINENO" 5; } 3658 fi 3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3660 fi 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3662 $as_echo "$ac_cv_objext" >&6; } 3663 OBJEXT=$ac_cv_objext 3664 ac_objext=$OBJEXT 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3667 if ${ac_cv_c_compiler_gnu+:} false; then : 3668 $as_echo_n "(cached) " >&6 3669 else 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671 /* end confdefs.h. */ 3672 3673 int 3674 main () 3675 { 3676 #ifndef __GNUC__ 3677 choke me 3678 #endif 3679 3680 ; 3681 return 0; 3682 } 3683 _ACEOF 3684 if ac_fn_c_try_compile "$LINENO"; then : 3685 ac_compiler_gnu=yes 3686 else 3687 ac_compiler_gnu=no 3688 fi 3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3691 3692 fi 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3695 if test $ac_compiler_gnu = yes; then 3696 GCC=yes 3697 else 3698 GCC= 3699 fi 3700 ac_test_CFLAGS=${CFLAGS+set} 3701 ac_save_CFLAGS=$CFLAGS 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3703 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3704 if ${ac_cv_prog_cc_g+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706 else 3707 ac_save_c_werror_flag=$ac_c_werror_flag 3708 ac_c_werror_flag=yes 3709 ac_cv_prog_cc_g=no 3710 CFLAGS="-g" 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712 /* end confdefs.h. */ 3713 3714 int 3715 main () 3716 { 3717 3718 ; 3719 return 0; 3720 } 3721 _ACEOF 3722 if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_prog_cc_g=yes 3724 else 3725 CFLAGS="" 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727 /* end confdefs.h. */ 3728 3729 int 3730 main () 3731 { 3732 3733 ; 3734 return 0; 3735 } 3736 _ACEOF 3737 if ac_fn_c_try_compile "$LINENO"; then : 3738 3739 else 3740 ac_c_werror_flag=$ac_save_c_werror_flag 3741 CFLAGS="-g" 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743 /* end confdefs.h. */ 3744 3745 int 3746 main () 3747 { 3748 3749 ; 3750 return 0; 3751 } 3752 _ACEOF 3753 if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_prog_cc_g=yes 3755 fi 3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3757 fi 3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759 fi 3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761 ac_c_werror_flag=$ac_save_c_werror_flag 3762 fi 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3764 $as_echo "$ac_cv_prog_cc_g" >&6; } 3765 if test "$ac_test_CFLAGS" = set; then 3766 CFLAGS=$ac_save_CFLAGS 3767 elif test $ac_cv_prog_cc_g = yes; then 3768 if test "$GCC" = yes; then 3769 CFLAGS="-g -O2" 3770 else 3771 CFLAGS="-g" 3772 fi 3773 else 3774 if test "$GCC" = yes; then 3775 CFLAGS="-O2" 3776 else 3777 CFLAGS= 3778 fi 3779 fi 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3782 if ${ac_cv_prog_cc_c89+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784 else 3785 ac_cv_prog_cc_c89=no 3786 ac_save_CC=$CC 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788 /* end confdefs.h. */ 3789 #include <stdarg.h> 3790 #include <stdio.h> 3791 struct stat; 3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3793 struct buf { int x; }; 3794 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3795 static char *e (p, i) 3796 char **p; 3797 int i; 3798 { 3799 return p[i]; 3800 } 3801 static char *f (char * (*g) (char **, int), char **p, ...) 3802 { 3803 char *s; 3804 va_list v; 3805 va_start (v,p); 3806 s = g (p, va_arg (v,int)); 3807 va_end (v); 3808 return s; 3809 } 3810 3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3812 function prototypes and stuff, but not '\xHH' hex character constants. 3813 These don't provoke an error unfortunately, instead are silently treated 3814 as 'x'. The following induces an error, until -std is added to get 3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3816 array size at least. It's necessary to write '\x00'==0 to get something 3817 that's true only with -std. */ 3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3819 3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3821 inside strings and character constants. */ 3822 #define FOO(x) 'x' 3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3824 3825 int test (int i, double x); 3826 struct s1 {int (*f) (int a);}; 3827 struct s2 {int (*f) (double a);}; 3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3829 int argc; 3830 char **argv; 3831 int 3832 main () 3833 { 3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3835 ; 3836 return 0; 3837 } 3838 _ACEOF 3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3841 do 3842 CC="$ac_save_CC $ac_arg" 3843 if ac_fn_c_try_compile "$LINENO"; then : 3844 ac_cv_prog_cc_c89=$ac_arg 3845 fi 3846 rm -f core conftest.err conftest.$ac_objext 3847 test "x$ac_cv_prog_cc_c89" != "xno" && break 3848 done 3849 rm -f conftest.$ac_ext 3850 CC=$ac_save_CC 3851 3852 fi 3853 # AC_CACHE_VAL 3854 case "x$ac_cv_prog_cc_c89" in 3855 x) 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3857 $as_echo "none needed" >&6; } ;; 3858 xno) 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3860 $as_echo "unsupported" >&6; } ;; 3861 *) 3862 CC="$CC $ac_cv_prog_cc_c89" 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3865 esac 3866 if test "x$ac_cv_prog_cc_c89" != xno; then : 3867 3868 fi 3869 3870 ac_ext=c 3871 ac_cpp='$CPP $CPPFLAGS' 3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876 ac_ext=c 3877 ac_cpp='$CPP $CPPFLAGS' 3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3883 if ${am_cv_prog_cc_c_o+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885 else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887 /* end confdefs.h. */ 3888 3889 int 3890 main () 3891 { 3892 3893 ; 3894 return 0; 3895 } 3896 _ACEOF 3897 # Make sure it works both with $CC and with simple cc. 3898 # Following AC_PROG_CC_C_O, we do the test twice because some 3899 # compilers refuse to overwrite an existing .o file with -o, 3900 # though they will create one. 3901 am_cv_prog_cc_c_o=yes 3902 for am_i in 1 2; do 3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3905 ac_status=$? 3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3907 (exit $ac_status); } \ 3908 && test -f conftest2.$ac_objext; then 3909 : OK 3910 else 3911 am_cv_prog_cc_c_o=no 3912 break 3913 fi 3914 done 3915 rm -f core conftest* 3916 unset am_i 3917 fi 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3919 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3920 if test "$am_cv_prog_cc_c_o" != yes; then 3921 # Losing compiler, so override with the script. 3922 # FIXME: It is wrong to rewrite CC. 3923 # But if we don't then we get into trouble of one sort or another. 3924 # A longer-term fix would be to have automake use am__CC in this case, 3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3926 CC="$am_aux_dir/compile $CC" 3927 fi 3928 ac_ext=c 3929 ac_cpp='$CPP $CPPFLAGS' 3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3933 3934 DEPDIR="${am__leading_dot}deps" 3935 3936 ac_config_commands="$ac_config_commands depfiles" 3937 3938 3939 am_make=${MAKE-make} 3940 cat > confinc << 'END' 3941 am__doit: 3942 @echo this is the am__doit target 3943 .PHONY: am__doit 3944 END 3945 # If we don't find an include directive, just comment out the code. 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3947 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3948 am__include="#" 3949 am__quote= 3950 _am_result=none 3951 # First try GNU make style include. 3952 echo "include confinc" > confmf 3953 # Ignore all kinds of additional output from 'make'. 3954 case `$am_make -s -f confmf 2> /dev/null` in #( 3955 *the\ am__doit\ target*) 3956 am__include=include 3957 am__quote= 3958 _am_result=GNU 3959 ;; 3960 esac 3961 # Now try BSD make style include. 3962 if test "$am__include" = "#"; then 3963 echo '.include "confinc"' > confmf 3964 case `$am_make -s -f confmf 2> /dev/null` in #( 3965 *the\ am__doit\ target*) 3966 am__include=.include 3967 am__quote="\"" 3968 _am_result=BSD 3969 ;; 3970 esac 3971 fi 3972 3973 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3975 $as_echo "$_am_result" >&6; } 3976 rm -f confinc confmf 3977 3978 # Check whether --enable-dependency-tracking was given. 3979 if test "${enable_dependency_tracking+set}" = set; then : 3980 enableval=$enable_dependency_tracking; 3981 fi 3982 3983 if test "x$enable_dependency_tracking" != xno; then 3984 am_depcomp="$ac_aux_dir/depcomp" 3985 AMDEPBACKSLASH='\' 3986 am__nodep='_no' 3987 fi 3988 if test "x$enable_dependency_tracking" != xno; then 3989 AMDEP_TRUE= 3990 AMDEP_FALSE='#' 3991 else 3992 AMDEP_TRUE='#' 3993 AMDEP_FALSE= 3994 fi 3995 3996 3997 3998 depcc="$CC" am_compiler_list= 3999 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4001 $as_echo_n "checking dependency style of $depcc... " >&6; } 4002 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004 else 4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4006 # We make a subdir and do the tests there. Otherwise we can end up 4007 # making bogus files that we don't know about and never remove. For 4008 # instance it was reported that on HP-UX the gcc test will end up 4009 # making a dummy file named 'D' -- because '-MD' means "put the output 4010 # in D". 4011 rm -rf conftest.dir 4012 mkdir conftest.dir 4013 # Copy depcomp to subdir because otherwise we won't find it if we're 4014 # using a relative directory. 4015 cp "$am_depcomp" conftest.dir 4016 cd conftest.dir 4017 # We will build objects and dependencies in a subdirectory because 4018 # it helps to detect inapplicable dependency modes. For instance 4019 # both Tru64's cc and ICC support -MD to output dependencies as a 4020 # side effect of compilation, but ICC will put the dependencies in 4021 # the current directory while Tru64 will put them in the object 4022 # directory. 4023 mkdir sub 4024 4025 am_cv_CC_dependencies_compiler_type=none 4026 if test "$am_compiler_list" = ""; then 4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4028 fi 4029 am__universal=false 4030 case " $depcc " in #( 4031 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4032 esac 4033 4034 for depmode in $am_compiler_list; do 4035 # Setup a source with many dependencies, because some compilers 4036 # like to wrap large dependency lists on column 80 (with \), and 4037 # we should not choose a depcomp mode which is confused by this. 4038 # 4039 # We need to recreate these files for each test, as the compiler may 4040 # overwrite some of them when testing with obscure command lines. 4041 # This happens at least with the AIX C compiler. 4042 : > sub/conftest.c 4043 for i in 1 2 3 4 5 6; do 4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4046 # Solaris 10 /bin/sh. 4047 echo '/* dummy */' > sub/conftst$i.h 4048 done 4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4050 4051 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4052 # mode. It turns out that the SunPro C++ compiler does not properly 4053 # handle '-M -o', and we need to detect this. Also, some Intel 4054 # versions had trouble with output in subdirs. 4055 am__obj=sub/conftest.${OBJEXT-o} 4056 am__minus_obj="-o $am__obj" 4057 case $depmode in 4058 gcc) 4059 # This depmode causes a compiler race in universal mode. 4060 test "$am__universal" = false || continue 4061 ;; 4062 nosideeffect) 4063 # After this tag, mechanisms are not by side-effect, so they'll 4064 # only be used when explicitly requested. 4065 if test "x$enable_dependency_tracking" = xyes; then 4066 continue 4067 else 4068 break 4069 fi 4070 ;; 4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4072 # This compiler won't grok '-c -o', but also, the minuso test has 4073 # not run yet. These depmodes are late enough in the game, and 4074 # so weak that their functioning should not be impacted. 4075 am__obj=conftest.${OBJEXT-o} 4076 am__minus_obj= 4077 ;; 4078 none) break ;; 4079 esac 4080 if depmode=$depmode \ 4081 source=sub/conftest.c object=$am__obj \ 4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4084 >/dev/null 2>conftest.err && 4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4089 # icc doesn't choke on unknown options, it will just issue warnings 4090 # or remarks (even with -Werror). So we grep stderr for any message 4091 # that says an option was ignored or not supported. 4092 # When given -MP, icc 7.0 and 7.1 complain thusly: 4093 # icc: Command line warning: ignoring option '-M'; no argument required 4094 # The diagnosis changed in icc 8.0: 4095 # icc: Command line remark: option '-MP' not supported 4096 if (grep 'ignoring option' conftest.err || 4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4098 am_cv_CC_dependencies_compiler_type=$depmode 4099 break 4100 fi 4101 fi 4102 done 4103 4104 cd .. 4105 rm -rf conftest.dir 4106 else 4107 am_cv_CC_dependencies_compiler_type=none 4108 fi 4109 4110 fi 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4114 4115 if 4116 test "x$enable_dependency_tracking" != xno \ 4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4118 am__fastdepCC_TRUE= 4119 am__fastdepCC_FALSE='#' 4120 else 4121 am__fastdepCC_TRUE='#' 4122 am__fastdepCC_FALSE= 4123 fi 4124 4125 4126 4127 ac_ext=c 4128 ac_cpp='$CPP $CPPFLAGS' 4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4133 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4134 # On Suns, sometimes $CPP names a directory. 4135 if test -n "$CPP" && test -d "$CPP"; then 4136 CPP= 4137 fi 4138 if test -z "$CPP"; then 4139 if ${ac_cv_prog_CPP+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141 else 4142 # Double quotes because CPP needs to be expanded 4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4144 do 4145 ac_preproc_ok=false 4146 for ac_c_preproc_warn_flag in '' yes 4147 do 4148 # Use a header file that comes with gcc, so configuring glibc 4149 # with a fresh cross-compiler works. 4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4151 # <limits.h> exists even on freestanding compilers. 4152 # On the NeXT, cc -E runs the code through the compiler's parser, 4153 # not just through cpp. "Syntax error" is here to catch this case. 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155 /* end confdefs.h. */ 4156 #ifdef __STDC__ 4157 # include <limits.h> 4158 #else 4159 # include <assert.h> 4160 #endif 4161 Syntax error 4162 _ACEOF 4163 if ac_fn_c_try_cpp "$LINENO"; then : 4164 4165 else 4166 # Broken: fails on valid input. 4167 continue 4168 fi 4169 rm -f conftest.err conftest.i conftest.$ac_ext 4170 4171 # OK, works on sane cases. Now check whether nonexistent headers 4172 # can be detected and how. 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174 /* end confdefs.h. */ 4175 #include <ac_nonexistent.h> 4176 _ACEOF 4177 if ac_fn_c_try_cpp "$LINENO"; then : 4178 # Broken: success on invalid input. 4179 continue 4180 else 4181 # Passes both tests. 4182 ac_preproc_ok=: 4183 break 4184 fi 4185 rm -f conftest.err conftest.i conftest.$ac_ext 4186 4187 done 4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4189 rm -f conftest.i conftest.err conftest.$ac_ext 4190 if $ac_preproc_ok; then : 4191 break 4192 fi 4193 4194 done 4195 ac_cv_prog_CPP=$CPP 4196 4197 fi 4198 CPP=$ac_cv_prog_CPP 4199 else 4200 ac_cv_prog_CPP=$CPP 4201 fi 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4203 $as_echo "$CPP" >&6; } 4204 ac_preproc_ok=false 4205 for ac_c_preproc_warn_flag in '' yes 4206 do 4207 # Use a header file that comes with gcc, so configuring glibc 4208 # with a fresh cross-compiler works. 4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4210 # <limits.h> exists even on freestanding compilers. 4211 # On the NeXT, cc -E runs the code through the compiler's parser, 4212 # not just through cpp. "Syntax error" is here to catch this case. 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214 /* end confdefs.h. */ 4215 #ifdef __STDC__ 4216 # include <limits.h> 4217 #else 4218 # include <assert.h> 4219 #endif 4220 Syntax error 4221 _ACEOF 4222 if ac_fn_c_try_cpp "$LINENO"; then : 4223 4224 else 4225 # Broken: fails on valid input. 4226 continue 4227 fi 4228 rm -f conftest.err conftest.i conftest.$ac_ext 4229 4230 # OK, works on sane cases. Now check whether nonexistent headers 4231 # can be detected and how. 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 #include <ac_nonexistent.h> 4235 _ACEOF 4236 if ac_fn_c_try_cpp "$LINENO"; then : 4237 # Broken: success on invalid input. 4238 continue 4239 else 4240 # Passes both tests. 4241 ac_preproc_ok=: 4242 break 4243 fi 4244 rm -f conftest.err conftest.i conftest.$ac_ext 4245 4246 done 4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4248 rm -f conftest.i conftest.err conftest.$ac_ext 4249 if $ac_preproc_ok; then : 4250 4251 else 4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4255 See \`config.log' for more details" "$LINENO" 5; } 4256 fi 4257 4258 ac_ext=c 4259 ac_cpp='$CPP $CPPFLAGS' 4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4263 4264 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4267 if ${ac_cv_path_GREP+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269 else 4270 if test -z "$GREP"; then 4271 ac_path_GREP_found=false 4272 # Loop through the user's path and test for each of PROGNAME-LIST 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4275 do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_prog in grep ggrep; do 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4281 as_fn_executable_p "$ac_path_GREP" || continue 4282 # Check for GNU ac_path_GREP and select it if it is found. 4283 # Check for GNU $ac_path_GREP 4284 case `"$ac_path_GREP" --version 2>&1` in 4285 *GNU*) 4286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4287 *) 4288 ac_count=0 4289 $as_echo_n 0123456789 >"conftest.in" 4290 while : 4291 do 4292 cat "conftest.in" "conftest.in" >"conftest.tmp" 4293 mv "conftest.tmp" "conftest.in" 4294 cp "conftest.in" "conftest.nl" 4295 $as_echo 'GREP' >> "conftest.nl" 4296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4298 as_fn_arith $ac_count + 1 && ac_count=$as_val 4299 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4300 # Best one so far, save it but keep looking for a better one 4301 ac_cv_path_GREP="$ac_path_GREP" 4302 ac_path_GREP_max=$ac_count 4303 fi 4304 # 10*(2^10) chars as input seems more than enough 4305 test $ac_count -gt 10 && break 4306 done 4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4308 esac 4309 4310 $ac_path_GREP_found && break 3 4311 done 4312 done 4313 done 4314 IFS=$as_save_IFS 4315 if test -z "$ac_cv_path_GREP"; then 4316 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4317 fi 4318 else 4319 ac_cv_path_GREP=$GREP 4320 fi 4321 4322 fi 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4324 $as_echo "$ac_cv_path_GREP" >&6; } 4325 GREP="$ac_cv_path_GREP" 4326 4327 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4329 $as_echo_n "checking for egrep... " >&6; } 4330 if ${ac_cv_path_EGREP+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332 else 4333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4334 then ac_cv_path_EGREP="$GREP -E" 4335 else 4336 if test -z "$EGREP"; then 4337 ac_path_EGREP_found=false 4338 # Loop through the user's path and test for each of PROGNAME-LIST 4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4341 do 4342 IFS=$as_save_IFS 4343 test -z "$as_dir" && as_dir=. 4344 for ac_prog in egrep; do 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4347 as_fn_executable_p "$ac_path_EGREP" || continue 4348 # Check for GNU ac_path_EGREP and select it if it is found. 4349 # Check for GNU $ac_path_EGREP 4350 case `"$ac_path_EGREP" --version 2>&1` in 4351 *GNU*) 4352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4353 *) 4354 ac_count=0 4355 $as_echo_n 0123456789 >"conftest.in" 4356 while : 4357 do 4358 cat "conftest.in" "conftest.in" >"conftest.tmp" 4359 mv "conftest.tmp" "conftest.in" 4360 cp "conftest.in" "conftest.nl" 4361 $as_echo 'EGREP' >> "conftest.nl" 4362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4366 # Best one so far, save it but keep looking for a better one 4367 ac_cv_path_EGREP="$ac_path_EGREP" 4368 ac_path_EGREP_max=$ac_count 4369 fi 4370 # 10*(2^10) chars as input seems more than enough 4371 test $ac_count -gt 10 && break 4372 done 4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4374 esac 4375 4376 $ac_path_EGREP_found && break 3 4377 done 4378 done 4379 done 4380 IFS=$as_save_IFS 4381 if test -z "$ac_cv_path_EGREP"; then 4382 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4383 fi 4384 else 4385 ac_cv_path_EGREP=$EGREP 4386 fi 4387 4388 fi 4389 fi 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4391 $as_echo "$ac_cv_path_EGREP" >&6; } 4392 EGREP="$ac_cv_path_EGREP" 4393 4394 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4396 $as_echo_n "checking for ANSI C header files... " >&6; } 4397 if ${ac_cv_header_stdc+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399 else 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401 /* end confdefs.h. */ 4402 #include <stdlib.h> 4403 #include <stdarg.h> 4404 #include <string.h> 4405 #include <float.h> 4406 4407 int 4408 main () 4409 { 4410 4411 ; 4412 return 0; 4413 } 4414 _ACEOF 4415 if ac_fn_c_try_compile "$LINENO"; then : 4416 ac_cv_header_stdc=yes 4417 else 4418 ac_cv_header_stdc=no 4419 fi 4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4421 4422 if test $ac_cv_header_stdc = yes; then 4423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425 /* end confdefs.h. */ 4426 #include <string.h> 4427 4428 _ACEOF 4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4430 $EGREP "memchr" >/dev/null 2>&1; then : 4431 4432 else 4433 ac_cv_header_stdc=no 4434 fi 4435 rm -f conftest* 4436 4437 fi 4438 4439 if test $ac_cv_header_stdc = yes; then 4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442 /* end confdefs.h. */ 4443 #include <stdlib.h> 4444 4445 _ACEOF 4446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4447 $EGREP "free" >/dev/null 2>&1; then : 4448 4449 else 4450 ac_cv_header_stdc=no 4451 fi 4452 rm -f conftest* 4453 4454 fi 4455 4456 if test $ac_cv_header_stdc = yes; then 4457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4458 if test "$cross_compiling" = yes; then : 4459 : 4460 else 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462 /* end confdefs.h. */ 4463 #include <ctype.h> 4464 #include <stdlib.h> 4465 #if ((' ' & 0x0FF) == 0x020) 4466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4468 #else 4469 # define ISLOWER(c) \ 4470 (('a' <= (c) && (c) <= 'i') \ 4471 || ('j' <= (c) && (c) <= 'r') \ 4472 || ('s' <= (c) && (c) <= 'z')) 4473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4474 #endif 4475 4476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4477 int 4478 main () 4479 { 4480 int i; 4481 for (i = 0; i < 256; i++) 4482 if (XOR (islower (i), ISLOWER (i)) 4483 || toupper (i) != TOUPPER (i)) 4484 return 2; 4485 return 0; 4486 } 4487 _ACEOF 4488 if ac_fn_c_try_run "$LINENO"; then : 4489 4490 else 4491 ac_cv_header_stdc=no 4492 fi 4493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4494 conftest.$ac_objext conftest.beam conftest.$ac_ext 4495 fi 4496 4497 fi 4498 fi 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4500 $as_echo "$ac_cv_header_stdc" >&6; } 4501 if test $ac_cv_header_stdc = yes; then 4502 4503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4504 4505 fi 4506 4507 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4509 inttypes.h stdint.h unistd.h 4510 do : 4511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4513 " 4514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4515 cat >>confdefs.h <<_ACEOF 4516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4517 _ACEOF 4518 4519 fi 4520 4521 done 4522 4523 4524 4525 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4526 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4527 MINIX=yes 4528 else 4529 MINIX= 4530 fi 4531 4532 4533 if test "$MINIX" = yes; then 4534 4535 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4536 4537 4538 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4539 4540 4541 $as_echo "#define _MINIX 1" >>confdefs.h 4542 4543 fi 4544 4545 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4547 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4548 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550 else 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552 /* end confdefs.h. */ 4553 4554 # define __EXTENSIONS__ 1 4555 $ac_includes_default 4556 int 4557 main () 4558 { 4559 4560 ; 4561 return 0; 4562 } 4563 _ACEOF 4564 if ac_fn_c_try_compile "$LINENO"; then : 4565 ac_cv_safe_to_define___extensions__=yes 4566 else 4567 ac_cv_safe_to_define___extensions__=no 4568 fi 4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4570 fi 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4572 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4573 test $ac_cv_safe_to_define___extensions__ = yes && 4574 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4575 4576 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4577 4578 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4579 4580 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4581 4582 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4583 4584 4585 4586 if test -n "$ac_tool_prefix"; then 4587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4588 set dummy ${ac_tool_prefix}ar; ac_word=$2 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590 $as_echo_n "checking for $ac_word... " >&6; } 4591 if ${ac_cv_prog_AR+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593 else 4594 if test -n "$AR"; then 4595 ac_cv_prog_AR="$AR" # Let the user override the test. 4596 else 4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4598 for as_dir in $PATH 4599 do 4600 IFS=$as_save_IFS 4601 test -z "$as_dir" && as_dir=. 4602 for ac_exec_ext in '' $ac_executable_extensions; do 4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4604 ac_cv_prog_AR="${ac_tool_prefix}ar" 4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4606 break 2 4607 fi 4608 done 4609 done 4610 IFS=$as_save_IFS 4611 4612 fi 4613 fi 4614 AR=$ac_cv_prog_AR 4615 if test -n "$AR"; then 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4617 $as_echo "$AR" >&6; } 4618 else 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4620 $as_echo "no" >&6; } 4621 fi 4622 4623 4624 fi 4625 if test -z "$ac_cv_prog_AR"; then 4626 ac_ct_AR=$AR 4627 # Extract the first word of "ar", so it can be a program name with args. 4628 set dummy ar; ac_word=$2 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630 $as_echo_n "checking for $ac_word... " >&6; } 4631 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633 else 4634 if test -n "$ac_ct_AR"; then 4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4636 else 4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638 for as_dir in $PATH 4639 do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4644 ac_cv_prog_ac_ct_AR="ar" 4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648 done 4649 done 4650 IFS=$as_save_IFS 4651 4652 fi 4653 fi 4654 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4655 if test -n "$ac_ct_AR"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4657 $as_echo "$ac_ct_AR" >&6; } 4658 else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4660 $as_echo "no" >&6; } 4661 fi 4662 4663 if test "x$ac_ct_AR" = x; then 4664 AR="" 4665 else 4666 case $cross_compiling:$ac_tool_warned in 4667 yes:) 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4670 ac_tool_warned=yes ;; 4671 esac 4672 AR=$ac_ct_AR 4673 fi 4674 else 4675 AR="$ac_cv_prog_AR" 4676 fi 4677 4678 if test -n "$ac_tool_prefix"; then 4679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4682 $as_echo_n "checking for $ac_word... " >&6; } 4683 if ${ac_cv_prog_RANLIB+:} false; then : 4684 $as_echo_n "(cached) " >&6 4685 else 4686 if test -n "$RANLIB"; then 4687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4688 else 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4690 for as_dir in $PATH 4691 do 4692 IFS=$as_save_IFS 4693 test -z "$as_dir" && as_dir=. 4694 for ac_exec_ext in '' $ac_executable_extensions; do 4695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4698 break 2 4699 fi 4700 done 4701 done 4702 IFS=$as_save_IFS 4703 4704 fi 4705 fi 4706 RANLIB=$ac_cv_prog_RANLIB 4707 if test -n "$RANLIB"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4709 $as_echo "$RANLIB" >&6; } 4710 else 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4712 $as_echo "no" >&6; } 4713 fi 4714 4715 4716 fi 4717 if test -z "$ac_cv_prog_RANLIB"; then 4718 ac_ct_RANLIB=$RANLIB 4719 # Extract the first word of "ranlib", so it can be a program name with args. 4720 set dummy ranlib; ac_word=$2 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4722 $as_echo_n "checking for $ac_word... " >&6; } 4723 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725 else 4726 if test -n "$ac_ct_RANLIB"; then 4727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4728 else 4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4730 for as_dir in $PATH 4731 do 4732 IFS=$as_save_IFS 4733 test -z "$as_dir" && as_dir=. 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4736 ac_cv_prog_ac_ct_RANLIB="ranlib" 4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4738 break 2 4739 fi 4740 done 4741 done 4742 IFS=$as_save_IFS 4743 4744 fi 4745 fi 4746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4747 if test -n "$ac_ct_RANLIB"; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4749 $as_echo "$ac_ct_RANLIB" >&6; } 4750 else 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4752 $as_echo "no" >&6; } 4753 fi 4754 4755 if test "x$ac_ct_RANLIB" = x; then 4756 RANLIB=":" 4757 else 4758 case $cross_compiling:$ac_tool_warned in 4759 yes:) 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4762 ac_tool_warned=yes ;; 4763 esac 4764 RANLIB=$ac_ct_RANLIB 4765 fi 4766 else 4767 RANLIB="$ac_cv_prog_RANLIB" 4768 fi 4769 4770 4771 # Check whether --enable-shared was given. 4772 if test "${enable_shared+set}" = set; then : 4773 enableval=$enable_shared; p=${PACKAGE-default} 4774 case $enableval in 4775 yes) enable_shared=yes ;; 4776 no) enable_shared=no ;; 4777 *) 4778 enable_shared=no 4779 # Look at the argument we got. We use all the common list separators. 4780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4781 for pkg in $enableval; do 4782 IFS="$lt_save_ifs" 4783 if test "X$pkg" = "X$p"; then 4784 enable_shared=yes 4785 fi 4786 done 4787 IFS="$lt_save_ifs" 4788 ;; 4789 esac 4790 else 4791 enable_shared=no 4792 fi 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 case `pwd` in 4804 *\ * | *\ *) 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4806 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4807 esac 4808 4809 4810 4811 macro_version='2.2.7a' 4812 macro_revision='1.3134' 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 ltmain="$ac_aux_dir/ltmain.sh" 4827 4828 # Backslashify metacharacters that are still active within 4829 # double-quoted strings. 4830 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4831 4832 # Same as above, but do not quote variable references. 4833 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4834 4835 # Sed substitution to delay expansion of an escaped shell variable in a 4836 # double_quote_subst'ed string. 4837 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4838 4839 # Sed substitution to delay expansion of an escaped single quote. 4840 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4841 4842 # Sed substitution to avoid accidental globbing in evaled expressions 4843 no_glob_subst='s/\*/\\\*/g' 4844 4845 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4846 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4848 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4850 $as_echo_n "checking how to print strings... " >&6; } 4851 # Test print first, because it will be a builtin if present. 4852 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4853 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4854 ECHO='print -r --' 4855 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4856 ECHO='printf %s\n' 4857 else 4858 # Use this function as a fallback that always works. 4859 func_fallback_echo () 4860 { 4861 eval 'cat <<_LTECHO_EOF 4862 $1 4863 _LTECHO_EOF' 4864 } 4865 ECHO='func_fallback_echo' 4866 fi 4867 4868 # func_echo_all arg... 4869 # Invoke $ECHO with all args, space-separated. 4870 func_echo_all () 4871 { 4872 $ECHO "" 4873 } 4874 4875 case "$ECHO" in 4876 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4877 $as_echo "printf" >&6; } ;; 4878 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4879 $as_echo "print -r" >&6; } ;; 4880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4881 $as_echo "cat" >&6; } ;; 4882 esac 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4898 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4899 if ${ac_cv_path_SED+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901 else 4902 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4903 for ac_i in 1 2 3 4 5 6 7; do 4904 ac_script="$ac_script$as_nl$ac_script" 4905 done 4906 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4907 { ac_script=; unset ac_script;} 4908 if test -z "$SED"; then 4909 ac_path_SED_found=false 4910 # Loop through the user's path and test for each of PROGNAME-LIST 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912 for as_dir in $PATH 4913 do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_prog in sed gsed; do 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4919 as_fn_executable_p "$ac_path_SED" || continue 4920 # Check for GNU ac_path_SED and select it if it is found. 4921 # Check for GNU $ac_path_SED 4922 case `"$ac_path_SED" --version 2>&1` in 4923 *GNU*) 4924 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4925 *) 4926 ac_count=0 4927 $as_echo_n 0123456789 >"conftest.in" 4928 while : 4929 do 4930 cat "conftest.in" "conftest.in" >"conftest.tmp" 4931 mv "conftest.tmp" "conftest.in" 4932 cp "conftest.in" "conftest.nl" 4933 $as_echo '' >> "conftest.nl" 4934 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4936 as_fn_arith $ac_count + 1 && ac_count=$as_val 4937 if test $ac_count -gt ${ac_path_SED_max-0}; then 4938 # Best one so far, save it but keep looking for a better one 4939 ac_cv_path_SED="$ac_path_SED" 4940 ac_path_SED_max=$ac_count 4941 fi 4942 # 10*(2^10) chars as input seems more than enough 4943 test $ac_count -gt 10 && break 4944 done 4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4946 esac 4947 4948 $ac_path_SED_found && break 3 4949 done 4950 done 4951 done 4952 IFS=$as_save_IFS 4953 if test -z "$ac_cv_path_SED"; then 4954 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4955 fi 4956 else 4957 ac_cv_path_SED=$SED 4958 fi 4959 4960 fi 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4962 $as_echo "$ac_cv_path_SED" >&6; } 4963 SED="$ac_cv_path_SED" 4964 rm -f conftest.sed 4965 4966 test -z "$SED" && SED=sed 4967 Xsed="$SED -e 1s/^X//" 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4980 $as_echo_n "checking for fgrep... " >&6; } 4981 if ${ac_cv_path_FGREP+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983 else 4984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4985 then ac_cv_path_FGREP="$GREP -F" 4986 else 4987 if test -z "$FGREP"; then 4988 ac_path_FGREP_found=false 4989 # Loop through the user's path and test for each of PROGNAME-LIST 4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4992 do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for ac_prog in fgrep; do 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4998 as_fn_executable_p "$ac_path_FGREP" || continue 4999 # Check for GNU ac_path_FGREP and select it if it is found. 5000 # Check for GNU $ac_path_FGREP 5001 case `"$ac_path_FGREP" --version 2>&1` in 5002 *GNU*) 5003 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5004 *) 5005 ac_count=0 5006 $as_echo_n 0123456789 >"conftest.in" 5007 while : 5008 do 5009 cat "conftest.in" "conftest.in" >"conftest.tmp" 5010 mv "conftest.tmp" "conftest.in" 5011 cp "conftest.in" "conftest.nl" 5012 $as_echo 'FGREP' >> "conftest.nl" 5013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5015 as_fn_arith $ac_count + 1 && ac_count=$as_val 5016 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5017 # Best one so far, save it but keep looking for a better one 5018 ac_cv_path_FGREP="$ac_path_FGREP" 5019 ac_path_FGREP_max=$ac_count 5020 fi 5021 # 10*(2^10) chars as input seems more than enough 5022 test $ac_count -gt 10 && break 5023 done 5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5025 esac 5026 5027 $ac_path_FGREP_found && break 3 5028 done 5029 done 5030 done 5031 IFS=$as_save_IFS 5032 if test -z "$ac_cv_path_FGREP"; then 5033 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5034 fi 5035 else 5036 ac_cv_path_FGREP=$FGREP 5037 fi 5038 5039 fi 5040 fi 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5042 $as_echo "$ac_cv_path_FGREP" >&6; } 5043 FGREP="$ac_cv_path_FGREP" 5044 5045 5046 test -z "$GREP" && GREP=grep 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 # Check whether --with-gnu-ld was given. 5067 if test "${with_gnu_ld+set}" = set; then : 5068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5069 else 5070 with_gnu_ld=no 5071 fi 5072 5073 ac_prog=ld 5074 if test "$GCC" = yes; then 5075 # Check if gcc -print-prog-name=ld gives a path. 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5077 $as_echo_n "checking for ld used by $CC... " >&6; } 5078 case $host in 5079 *-*-mingw*) 5080 # gcc leaves a trailing carriage return which upsets mingw 5081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5082 *) 5083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5084 esac 5085 case $ac_prog in 5086 # Accept absolute paths. 5087 [\\/]* | ?:[\\/]*) 5088 re_direlt='/[^/][^/]*/\.\./' 5089 # Canonicalize the pathname of ld 5090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5093 done 5094 test -z "$LD" && LD="$ac_prog" 5095 ;; 5096 "") 5097 # If it fails, then pretend we aren't using GCC. 5098 ac_prog=ld 5099 ;; 5100 *) 5101 # If it is relative, then search for the first ld in PATH. 5102 with_gnu_ld=unknown 5103 ;; 5104 esac 5105 elif test "$with_gnu_ld" = yes; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5107 $as_echo_n "checking for GNU ld... " >&6; } 5108 else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5110 $as_echo_n "checking for non-GNU ld... " >&6; } 5111 fi 5112 if ${lt_cv_path_LD+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114 else 5115 if test -z "$LD"; then 5116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5117 for ac_dir in $PATH; do 5118 IFS="$lt_save_ifs" 5119 test -z "$ac_dir" && ac_dir=. 5120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5121 lt_cv_path_LD="$ac_dir/$ac_prog" 5122 # Check to see if the program is GNU ld. I'd rather use --version, 5123 # but apparently some variants of GNU ld only accept -v. 5124 # Break only if it was the GNU/non-GNU ld that we prefer. 5125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5126 *GNU* | *'with BFD'*) 5127 test "$with_gnu_ld" != no && break 5128 ;; 5129 *) 5130 test "$with_gnu_ld" != yes && break 5131 ;; 5132 esac 5133 fi 5134 done 5135 IFS="$lt_save_ifs" 5136 else 5137 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5138 fi 5139 fi 5140 5141 LD="$lt_cv_path_LD" 5142 if test -n "$LD"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5144 $as_echo "$LD" >&6; } 5145 else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147 $as_echo "no" >&6; } 5148 fi 5149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5152 if ${lt_cv_prog_gnu_ld+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154 else 5155 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5156 case `$LD -v 2>&1 </dev/null` in 5157 *GNU* | *'with BFD'*) 5158 lt_cv_prog_gnu_ld=yes 5159 ;; 5160 *) 5161 lt_cv_prog_gnu_ld=no 5162 ;; 5163 esac 5164 fi 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5166 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5167 with_gnu_ld=$lt_cv_prog_gnu_ld 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5178 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5179 if ${lt_cv_path_NM+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181 else 5182 if test -n "$NM"; then 5183 # Let the user override the nm to test. 5184 lt_nm_to_check="$NM" 5185 else 5186 lt_nm_to_check="${ac_tool_prefix}nm" 5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5188 lt_nm_to_check="$lt_nm_to_check nm" 5189 fi 5190 fi 5191 for lt_tmp_nm in "$lt_nm_to_check"; do 5192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5194 IFS="$lt_save_ifs" 5195 test -z "$ac_dir" && ac_dir=. 5196 # Strip out any user-provided options from the nm to test twice, 5197 # the first time to test to see if nm (rather than its options) has 5198 # an explicit path, the second time to yield a file which can be 5199 # nm'ed itself. 5200 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5201 case "$tmp_nm_path" in 5202 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5203 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5204 esac 5205 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5206 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5207 # Check to see if the nm accepts a BSD-compat flag. 5208 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5209 # nm: unknown option "B" ignored 5210 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5211 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5212 break 5213 ;; 5214 *) 5215 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5216 *$tmp_nm*) 5217 lt_cv_path_NM="$tmp_nm -p" 5218 break 5219 ;; 5220 *) 5221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5222 continue # so that we can try to find one that supports BSD flags 5223 ;; 5224 esac 5225 ;; 5226 esac 5227 fi 5228 done 5229 IFS="$lt_save_ifs" 5230 done 5231 : ${lt_cv_path_NM=no} 5232 fi 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5234 $as_echo "$lt_cv_path_NM" >&6; } 5235 if test "$lt_cv_path_NM" != "no"; then 5236 NM="$lt_cv_path_NM" 5237 else 5238 # Didn't find any BSD compatible name lister, look for dumpbin. 5239 if test -n "$DUMPBIN"; then : 5240 # Let the user override the test. 5241 else 5242 if test -n "$ac_tool_prefix"; then 5243 for ac_prog in dumpbin "link -dump" 5244 do 5245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248 $as_echo_n "checking for $ac_word... " >&6; } 5249 if ${ac_cv_prog_DUMPBIN+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251 else 5252 if test -n "$DUMPBIN"; then 5253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5254 else 5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256 for as_dir in $PATH 5257 do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266 done 5267 done 5268 IFS=$as_save_IFS 5269 5270 fi 5271 fi 5272 DUMPBIN=$ac_cv_prog_DUMPBIN 5273 if test -n "$DUMPBIN"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5275 $as_echo "$DUMPBIN" >&6; } 5276 else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278 $as_echo "no" >&6; } 5279 fi 5280 5281 5282 test -n "$DUMPBIN" && break 5283 done 5284 fi 5285 if test -z "$DUMPBIN"; then 5286 ac_ct_DUMPBIN=$DUMPBIN 5287 for ac_prog in dumpbin "link -dump" 5288 do 5289 # Extract the first word of "$ac_prog", so it can be a program name with args. 5290 set dummy $ac_prog; ac_word=$2 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5292 $as_echo_n "checking for $ac_word... " >&6; } 5293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295 else 5296 if test -n "$ac_ct_DUMPBIN"; then 5297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5298 else 5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5300 for as_dir in $PATH 5301 do 5302 IFS=$as_save_IFS 5303 test -z "$as_dir" && as_dir=. 5304 for ac_exec_ext in '' $ac_executable_extensions; do 5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5308 break 2 5309 fi 5310 done 5311 done 5312 IFS=$as_save_IFS 5313 5314 fi 5315 fi 5316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5317 if test -n "$ac_ct_DUMPBIN"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5319 $as_echo "$ac_ct_DUMPBIN" >&6; } 5320 else 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5322 $as_echo "no" >&6; } 5323 fi 5324 5325 5326 test -n "$ac_ct_DUMPBIN" && break 5327 done 5328 5329 if test "x$ac_ct_DUMPBIN" = x; then 5330 DUMPBIN=":" 5331 else 5332 case $cross_compiling:$ac_tool_warned in 5333 yes:) 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5336 ac_tool_warned=yes ;; 5337 esac 5338 DUMPBIN=$ac_ct_DUMPBIN 5339 fi 5340 fi 5341 5342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5343 *COFF*) 5344 DUMPBIN="$DUMPBIN -symbols" 5345 ;; 5346 *) 5347 DUMPBIN=: 5348 ;; 5349 esac 5350 fi 5351 5352 if test "$DUMPBIN" != ":"; then 5353 NM="$DUMPBIN" 5354 fi 5355 fi 5356 test -z "$NM" && NM=nm 5357 5358 5359 5360 5361 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5364 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5365 if ${lt_cv_nm_interface+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 lt_cv_nm_interface="BSD nm" 5369 echo "int some_variable = 0;" > conftest.$ac_ext 5370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5371 (eval "$ac_compile" 2>conftest.err) 5372 cat conftest.err >&5 5373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5375 cat conftest.err >&5 5376 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5377 cat conftest.out >&5 5378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5379 lt_cv_nm_interface="MS dumpbin" 5380 fi 5381 rm -f conftest* 5382 fi 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5384 $as_echo "$lt_cv_nm_interface" >&6; } 5385 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5387 $as_echo_n "checking whether ln -s works... " >&6; } 5388 LN_S=$as_ln_s 5389 if test "$LN_S" = "ln -s"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5391 $as_echo "yes" >&6; } 5392 else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5394 $as_echo "no, using $LN_S" >&6; } 5395 fi 5396 5397 # find the maximum length of command line arguments 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5399 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5400 if ${lt_cv_sys_max_cmd_len+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402 else 5403 i=0 5404 teststring="ABCD" 5405 5406 case $build_os in 5407 msdosdjgpp*) 5408 # On DJGPP, this test can blow up pretty badly due to problems in libc 5409 # (any single argument exceeding 2000 bytes causes a buffer overrun 5410 # during glob expansion). Even if it were fixed, the result of this 5411 # check would be larger than it should be. 5412 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5413 ;; 5414 5415 gnu*) 5416 # Under GNU Hurd, this test is not required because there is 5417 # no limit to the length of command line arguments. 5418 # Libtool will interpret -1 as no limit whatsoever 5419 lt_cv_sys_max_cmd_len=-1; 5420 ;; 5421 5422 cygwin* | mingw* | cegcc*) 5423 # On Win9x/ME, this test blows up -- it succeeds, but takes 5424 # about 5 minutes as the teststring grows exponentially. 5425 # Worse, since 9x/ME are not pre-emptively multitasking, 5426 # you end up with a "frozen" computer, even though with patience 5427 # the test eventually succeeds (with a max line length of 256k). 5428 # Instead, let's just punt: use the minimum linelength reported by 5429 # all of the supported platforms: 8192 (on NT/2K/XP). 5430 lt_cv_sys_max_cmd_len=8192; 5431 ;; 5432 5433 mint*) 5434 # On MiNT this can take a long time and run out of memory. 5435 lt_cv_sys_max_cmd_len=8192; 5436 ;; 5437 5438 amigaos*) 5439 # On AmigaOS with pdksh, this test takes hours, literally. 5440 # So we just punt and use a minimum line length of 8192. 5441 lt_cv_sys_max_cmd_len=8192; 5442 ;; 5443 5444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5445 # This has been around since 386BSD, at least. Likely further. 5446 if test -x /sbin/sysctl; then 5447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5448 elif test -x /usr/sbin/sysctl; then 5449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5450 else 5451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5452 fi 5453 # And add a safety zone 5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5456 ;; 5457 5458 interix*) 5459 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5460 lt_cv_sys_max_cmd_len=196608 5461 ;; 5462 5463 osf*) 5464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5466 # nice to cause kernel panics so lets avoid the loop below. 5467 # First set a reasonable default. 5468 lt_cv_sys_max_cmd_len=16384 5469 # 5470 if test -x /sbin/sysconfig; then 5471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5472 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5473 esac 5474 fi 5475 ;; 5476 sco3.2v5*) 5477 lt_cv_sys_max_cmd_len=102400 5478 ;; 5479 sysv5* | sco5v6* | sysv4.2uw2*) 5480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5481 if test -n "$kargmax"; then 5482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5483 else 5484 lt_cv_sys_max_cmd_len=32768 5485 fi 5486 ;; 5487 *) 5488 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5489 if test -n "$lt_cv_sys_max_cmd_len"; then 5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5492 else 5493 # Make teststring a little bigger before we do anything with it. 5494 # a 1K string should be a reasonable start. 5495 for i in 1 2 3 4 5 6 7 8 ; do 5496 teststring=$teststring$teststring 5497 done 5498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5499 # If test is not a shell built-in, we'll probably end up computing a 5500 # maximum length that is only half of the actual maximum length, but 5501 # we can't tell. 5502 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5503 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5504 test $i != 17 # 1/2 MB should be enough 5505 do 5506 i=`expr $i + 1` 5507 teststring=$teststring$teststring 5508 done 5509 # Only check the string length outside the loop. 5510 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5511 teststring= 5512 # Add a significant safety factor because C++ compilers can tack on 5513 # massive amounts of additional arguments before passing them to the 5514 # linker. It appears as though 1/2 is a usable value. 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5516 fi 5517 ;; 5518 esac 5519 5520 fi 5521 5522 if test -n $lt_cv_sys_max_cmd_len ; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5524 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5525 else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5527 $as_echo "none" >&6; } 5528 fi 5529 max_cmd_len=$lt_cv_sys_max_cmd_len 5530 5531 5532 5533 5534 5535 5536 : ${CP="cp -f"} 5537 : ${MV="mv -f"} 5538 : ${RM="rm -f"} 5539 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5541 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5542 # Try some XSI features 5543 xsi_shell=no 5544 ( _lt_dummy="a/b/c" 5545 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5546 = c,a/b,, \ 5547 && eval 'test $(( 1 + 1 )) -eq 2 \ 5548 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5549 && xsi_shell=yes 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5551 $as_echo "$xsi_shell" >&6; } 5552 5553 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5555 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5556 lt_shell_append=no 5557 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5558 >/dev/null 2>&1 \ 5559 && lt_shell_append=yes 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5561 $as_echo "$lt_shell_append" >&6; } 5562 5563 5564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5565 lt_unset=unset 5566 else 5567 lt_unset=false 5568 fi 5569 5570 5571 5572 5573 5574 # test EBCDIC or ASCII 5575 case `echo X|tr X '\101'` in 5576 A) # ASCII based system 5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5578 lt_SP2NL='tr \040 \012' 5579 lt_NL2SP='tr \015\012 \040\040' 5580 ;; 5581 *) # EBCDIC based system 5582 lt_SP2NL='tr \100 \n' 5583 lt_NL2SP='tr \r\n \100\100' 5584 ;; 5585 esac 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5596 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5597 if ${lt_cv_ld_reload_flag+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599 else 5600 lt_cv_ld_reload_flag='-r' 5601 fi 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5603 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5604 reload_flag=$lt_cv_ld_reload_flag 5605 case $reload_flag in 5606 "" | " "*) ;; 5607 *) reload_flag=" $reload_flag" ;; 5608 esac 5609 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5610 case $host_os in 5611 darwin*) 5612 if test "$GCC" = yes; then 5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5614 else 5615 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5616 fi 5617 ;; 5618 esac 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 if test -n "$ac_tool_prefix"; then 5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5630 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5632 $as_echo_n "checking for $ac_word... " >&6; } 5633 if ${ac_cv_prog_OBJDUMP+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635 else 5636 if test -n "$OBJDUMP"; then 5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5638 else 5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640 for as_dir in $PATH 5641 do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650 done 5651 done 5652 IFS=$as_save_IFS 5653 5654 fi 5655 fi 5656 OBJDUMP=$ac_cv_prog_OBJDUMP 5657 if test -n "$OBJDUMP"; then 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5659 $as_echo "$OBJDUMP" >&6; } 5660 else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662 $as_echo "no" >&6; } 5663 fi 5664 5665 5666 fi 5667 if test -z "$ac_cv_prog_OBJDUMP"; then 5668 ac_ct_OBJDUMP=$OBJDUMP 5669 # Extract the first word of "objdump", so it can be a program name with args. 5670 set dummy objdump; ac_word=$2 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5672 $as_echo_n "checking for $ac_word... " >&6; } 5673 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675 else 5676 if test -n "$ac_ct_OBJDUMP"; then 5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5678 else 5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5680 for as_dir in $PATH 5681 do 5682 IFS=$as_save_IFS 5683 test -z "$as_dir" && as_dir=. 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5686 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690 done 5691 done 5692 IFS=$as_save_IFS 5693 5694 fi 5695 fi 5696 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5697 if test -n "$ac_ct_OBJDUMP"; then 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5699 $as_echo "$ac_ct_OBJDUMP" >&6; } 5700 else 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702 $as_echo "no" >&6; } 5703 fi 5704 5705 if test "x$ac_ct_OBJDUMP" = x; then 5706 OBJDUMP="false" 5707 else 5708 case $cross_compiling:$ac_tool_warned in 5709 yes:) 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5712 ac_tool_warned=yes ;; 5713 esac 5714 OBJDUMP=$ac_ct_OBJDUMP 5715 fi 5716 else 5717 OBJDUMP="$ac_cv_prog_OBJDUMP" 5718 fi 5719 5720 test -z "$OBJDUMP" && OBJDUMP=objdump 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5731 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5732 if ${lt_cv_deplibs_check_method+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734 else 5735 lt_cv_file_magic_cmd='$MAGIC_CMD' 5736 lt_cv_file_magic_test_file= 5737 lt_cv_deplibs_check_method='unknown' 5738 # Need to set the preceding variable on all platforms that support 5739 # interlibrary dependencies. 5740 # 'none' -- dependencies not supported. 5741 # `unknown' -- same as none, but documents that we really don't know. 5742 # 'pass_all' -- all dependencies passed with no checks. 5743 # 'test_compile' -- check by making test program. 5744 # 'file_magic [[regex]]' -- check by looking for files in library path 5745 # which responds to the $file_magic_cmd with a given extended regex. 5746 # If you have `file' or equivalent on your system and you're not sure 5747 # whether `pass_all' will *always* work, you probably want this one. 5748 5749 case $host_os in 5750 aix[4-9]*) 5751 lt_cv_deplibs_check_method=pass_all 5752 ;; 5753 5754 beos*) 5755 lt_cv_deplibs_check_method=pass_all 5756 ;; 5757 5758 bsdi[45]*) 5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5760 lt_cv_file_magic_cmd='/usr/bin/file -L' 5761 lt_cv_file_magic_test_file=/shlib/libc.so 5762 ;; 5763 5764 cygwin*) 5765 # func_win32_libid is a shell function defined in ltmain.sh 5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5767 lt_cv_file_magic_cmd='func_win32_libid' 5768 ;; 5769 5770 mingw* | pw32*) 5771 # Base MSYS/MinGW do not provide the 'file' command needed by 5772 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5773 # unless we find 'file', for example because we are cross-compiling. 5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5777 lt_cv_file_magic_cmd='func_win32_libid' 5778 else 5779 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5780 lt_cv_file_magic_cmd='$OBJDUMP -f' 5781 fi 5782 ;; 5783 5784 cegcc*) 5785 # use the weaker test based on 'objdump'. See mingw*. 5786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5787 lt_cv_file_magic_cmd='$OBJDUMP -f' 5788 ;; 5789 5790 darwin* | rhapsody*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794 freebsd* | dragonfly*) 5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5796 case $host_cpu in 5797 i*86 ) 5798 # Not sure whether the presence of OpenBSD here was a mistake. 5799 # Let's accept both of them until this is cleared up. 5800 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5801 lt_cv_file_magic_cmd=/usr/bin/file 5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5803 ;; 5804 esac 5805 else 5806 lt_cv_deplibs_check_method=pass_all 5807 fi 5808 ;; 5809 5810 gnu*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814 haiku*) 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818 hpux10.20* | hpux11*) 5819 lt_cv_file_magic_cmd=/usr/bin/file 5820 case $host_cpu in 5821 ia64*) 5822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5823 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5824 ;; 5825 hppa*64*) 5826 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5827 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5828 ;; 5829 *) 5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5831 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5832 ;; 5833 esac 5834 ;; 5835 5836 interix[3-9]*) 5837 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5839 ;; 5840 5841 irix5* | irix6* | nonstopux*) 5842 case $LD in 5843 *-32|*"-32 ") libmagic=32-bit;; 5844 *-n32|*"-n32 ") libmagic=N32;; 5845 *-64|*"-64 ") libmagic=64-bit;; 5846 *) libmagic=never-match;; 5847 esac 5848 lt_cv_deplibs_check_method=pass_all 5849 ;; 5850 5851 # This must be Linux ELF. 5852 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856 netbsd*) 5857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5859 else 5860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5861 fi 5862 ;; 5863 5864 newos6*) 5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5866 lt_cv_file_magic_cmd=/usr/bin/file 5867 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5868 ;; 5869 5870 *nto* | *qnx*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874 openbsd*) 5875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5877 else 5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5879 fi 5880 ;; 5881 5882 osf3* | osf4* | osf5*) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 5886 rdos*) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 5890 solaris*) 5891 lt_cv_deplibs_check_method=pass_all 5892 ;; 5893 5894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897 5898 sysv4 | sysv4.3*) 5899 case $host_vendor in 5900 motorola) 5901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5903 ;; 5904 ncr) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907 sequent) 5908 lt_cv_file_magic_cmd='/bin/file' 5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5910 ;; 5911 sni) 5912 lt_cv_file_magic_cmd='/bin/file' 5913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5914 lt_cv_file_magic_test_file=/lib/libc.so 5915 ;; 5916 siemens) 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 pc) 5920 lt_cv_deplibs_check_method=pass_all 5921 ;; 5922 esac 5923 ;; 5924 5925 tpf*) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 vxworks*) 5929 # Assume VxWorks cross toolchains are built on Linux, possibly 5930 # as canadian for Windows hosts. 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933 esac 5934 5935 fi 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5937 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5938 file_magic_cmd=$lt_cv_file_magic_cmd 5939 deplibs_check_method=$lt_cv_deplibs_check_method 5940 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 plugin_option= 5954 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 5955 for plugin in $plugin_names; do 5956 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 5957 if test x$plugin_so = x$plugin; then 5958 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 5959 fi 5960 if test x$plugin_so != x$plugin; then 5961 plugin_option="--plugin $plugin_so" 5962 break 5963 fi 5964 done 5965 5966 if test -n "$ac_tool_prefix"; then 5967 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5968 set dummy ${ac_tool_prefix}ar; ac_word=$2 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5970 $as_echo_n "checking for $ac_word... " >&6; } 5971 if ${ac_cv_prog_AR+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973 else 5974 if test -n "$AR"; then 5975 ac_cv_prog_AR="$AR" # Let the user override the test. 5976 else 5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5978 for as_dir in $PATH 5979 do 5980 IFS=$as_save_IFS 5981 test -z "$as_dir" && as_dir=. 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5984 ac_cv_prog_AR="${ac_tool_prefix}ar" 5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988 done 5989 done 5990 IFS=$as_save_IFS 5991 5992 fi 5993 fi 5994 AR=$ac_cv_prog_AR 5995 if test -n "$AR"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5997 $as_echo "$AR" >&6; } 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000 $as_echo "no" >&6; } 6001 fi 6002 6003 6004 fi 6005 if test -z "$ac_cv_prog_AR"; then 6006 ac_ct_AR=$AR 6007 # Extract the first word of "ar", so it can be a program name with args. 6008 set dummy ar; ac_word=$2 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6010 $as_echo_n "checking for $ac_word... " >&6; } 6011 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013 else 6014 if test -n "$ac_ct_AR"; then 6015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6016 else 6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018 for as_dir in $PATH 6019 do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_prog_ac_ct_AR="ar" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028 done 6029 done 6030 IFS=$as_save_IFS 6031 6032 fi 6033 fi 6034 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6035 if test -n "$ac_ct_AR"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6037 $as_echo "$ac_ct_AR" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 if test "x$ac_ct_AR" = x; then 6044 AR="false" 6045 else 6046 case $cross_compiling:$ac_tool_warned in 6047 yes:) 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6050 ac_tool_warned=yes ;; 6051 esac 6052 AR=$ac_ct_AR 6053 fi 6054 else 6055 AR="$ac_cv_prog_AR" 6056 fi 6057 6058 test -z "$AR" && AR=ar 6059 if test -n "$plugin_option"; then 6060 if $AR --help 2>&1 | grep -q "\--plugin"; then 6061 touch conftest.c 6062 $AR $plugin_option rc conftest.a conftest.c 6063 if test "$?" != 0; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6065 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6066 else 6067 AR="$AR $plugin_option" 6068 fi 6069 rm -f conftest.* 6070 fi 6071 fi 6072 test -z "$AR_FLAGS" && AR_FLAGS=cru 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 if test -n "$ac_tool_prefix"; then 6085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6086 set dummy ${ac_tool_prefix}strip; ac_word=$2 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088 $as_echo_n "checking for $ac_word... " >&6; } 6089 if ${ac_cv_prog_STRIP+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091 else 6092 if test -n "$STRIP"; then 6093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6094 else 6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096 for as_dir in $PATH 6097 do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106 done 6107 done 6108 IFS=$as_save_IFS 6109 6110 fi 6111 fi 6112 STRIP=$ac_cv_prog_STRIP 6113 if test -n "$STRIP"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6115 $as_echo "$STRIP" >&6; } 6116 else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118 $as_echo "no" >&6; } 6119 fi 6120 6121 6122 fi 6123 if test -z "$ac_cv_prog_STRIP"; then 6124 ac_ct_STRIP=$STRIP 6125 # Extract the first word of "strip", so it can be a program name with args. 6126 set dummy strip; ac_word=$2 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128 $as_echo_n "checking for $ac_word... " >&6; } 6129 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131 else 6132 if test -n "$ac_ct_STRIP"; then 6133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6134 else 6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136 for as_dir in $PATH 6137 do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_ac_ct_STRIP="strip" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146 done 6147 done 6148 IFS=$as_save_IFS 6149 6150 fi 6151 fi 6152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6153 if test -n "$ac_ct_STRIP"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6155 $as_echo "$ac_ct_STRIP" >&6; } 6156 else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158 $as_echo "no" >&6; } 6159 fi 6160 6161 if test "x$ac_ct_STRIP" = x; then 6162 STRIP=":" 6163 else 6164 case $cross_compiling:$ac_tool_warned in 6165 yes:) 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6168 ac_tool_warned=yes ;; 6169 esac 6170 STRIP=$ac_ct_STRIP 6171 fi 6172 else 6173 STRIP="$ac_cv_prog_STRIP" 6174 fi 6175 6176 test -z "$STRIP" && STRIP=: 6177 6178 6179 6180 6181 6182 6183 if test -n "$ac_tool_prefix"; then 6184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 $as_echo_n "checking for $ac_word... " >&6; } 6188 if ${ac_cv_prog_RANLIB+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 if test -n "$RANLIB"; then 6192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6193 else 6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195 for as_dir in $PATH 6196 do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205 done 6206 done 6207 IFS=$as_save_IFS 6208 6209 fi 6210 fi 6211 RANLIB=$ac_cv_prog_RANLIB 6212 if test -n "$RANLIB"; then 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6214 $as_echo "$RANLIB" >&6; } 6215 else 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217 $as_echo "no" >&6; } 6218 fi 6219 6220 6221 fi 6222 if test -z "$ac_cv_prog_RANLIB"; then 6223 ac_ct_RANLIB=$RANLIB 6224 # Extract the first word of "ranlib", so it can be a program name with args. 6225 set dummy ranlib; ac_word=$2 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227 $as_echo_n "checking for $ac_word... " >&6; } 6228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230 else 6231 if test -n "$ac_ct_RANLIB"; then 6232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6233 else 6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235 for as_dir in $PATH 6236 do 6237 IFS=$as_save_IFS 6238 test -z "$as_dir" && as_dir=. 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6241 ac_cv_prog_ac_ct_RANLIB="ranlib" 6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6243 break 2 6244 fi 6245 done 6246 done 6247 IFS=$as_save_IFS 6248 6249 fi 6250 fi 6251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6252 if test -n "$ac_ct_RANLIB"; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6254 $as_echo "$ac_ct_RANLIB" >&6; } 6255 else 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257 $as_echo "no" >&6; } 6258 fi 6259 6260 if test "x$ac_ct_RANLIB" = x; then 6261 RANLIB=":" 6262 else 6263 case $cross_compiling:$ac_tool_warned in 6264 yes:) 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6267 ac_tool_warned=yes ;; 6268 esac 6269 RANLIB=$ac_ct_RANLIB 6270 fi 6271 else 6272 RANLIB="$ac_cv_prog_RANLIB" 6273 fi 6274 6275 test -z "$RANLIB" && RANLIB=: 6276 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6277 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6278 RANLIB="$RANLIB $plugin_option" 6279 fi 6280 fi 6281 6282 6283 6284 6285 6286 6287 # Determine commands to create old-style static archives. 6288 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6289 old_postinstall_cmds='chmod 644 $oldlib' 6290 old_postuninstall_cmds= 6291 6292 if test -n "$RANLIB"; then 6293 case $host_os in 6294 openbsd*) 6295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6296 ;; 6297 *) 6298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6299 ;; 6300 esac 6301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6302 fi 6303 6304 case $host_os in 6305 darwin*) 6306 lock_old_archive_extraction=yes ;; 6307 *) 6308 lock_old_archive_extraction=no ;; 6309 esac 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 # If no C compiler was specified, use CC. 6350 LTCC=${LTCC-"$CC"} 6351 6352 # If no C compiler flags were specified, use CFLAGS. 6353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6354 6355 # Allow CC to be a program name with arguments. 6356 compiler=$CC 6357 6358 6359 # Check for command to grab the raw symbol name followed by C symbol from nm. 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6361 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6362 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364 else 6365 6366 # These are sane defaults that work on at least a few old systems. 6367 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6368 6369 # Character class describing NM global symbol codes. 6370 symcode='[BCDEGRST]' 6371 6372 # Regexp to match symbols that can be accessed directly from C. 6373 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6374 6375 # Define system-specific variables. 6376 case $host_os in 6377 aix*) 6378 symcode='[BCDT]' 6379 ;; 6380 cygwin* | mingw* | pw32* | cegcc*) 6381 symcode='[ABCDGISTW]' 6382 ;; 6383 hpux*) 6384 if test "$host_cpu" = ia64; then 6385 symcode='[ABCDEGRST]' 6386 fi 6387 ;; 6388 irix* | nonstopux*) 6389 symcode='[BCDEGRST]' 6390 ;; 6391 osf*) 6392 symcode='[BCDEGQRST]' 6393 ;; 6394 solaris*) 6395 symcode='[BCDRT]' 6396 ;; 6397 sco3.2v5*) 6398 symcode='[DT]' 6399 ;; 6400 sysv4.2uw2*) 6401 symcode='[DT]' 6402 ;; 6403 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6404 symcode='[ABDT]' 6405 ;; 6406 sysv4) 6407 symcode='[DFNSTU]' 6408 ;; 6409 esac 6410 6411 # If we're using GNU nm, then use its standard symbol codes. 6412 case `$NM -V 2>&1` in 6413 *GNU* | *'with BFD'*) 6414 symcode='[ABCDGIRSTW]' ;; 6415 esac 6416 6417 # Transform an extracted symbol line into a proper C declaration. 6418 # Some systems (esp. on ia64) link data and code symbols differently, 6419 # so use this general approach. 6420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6421 6422 # Transform an extracted symbol line into symbol name and symbol address 6423 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6425 6426 # Handle CRLF in mingw tool chain 6427 opt_cr= 6428 case $build_os in 6429 mingw*) 6430 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6431 ;; 6432 esac 6433 6434 # Try without a prefix underscore, then with it. 6435 for ac_symprfx in "" "_"; do 6436 6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6438 symxfrm="\\1 $ac_symprfx\\2 \\2" 6439 6440 # Write the raw and C identifiers. 6441 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6442 # Fake it for dumpbin and say T for any non-static function 6443 # and D for any global variable. 6444 # Also find C++ and __fastcall symbols from MSVC++, 6445 # which start with @ or ?. 6446 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6447 " {last_section=section; section=\$ 3};"\ 6448 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6449 " \$ 0!~/External *\|/{next};"\ 6450 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6451 " {if(hide[section]) next};"\ 6452 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6453 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6454 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6455 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6456 " ' prfx=^$ac_symprfx" 6457 else 6458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6459 fi 6460 6461 # Check to see that the pipe works correctly. 6462 pipe_works=no 6463 6464 rm -f conftest* 6465 cat > conftest.$ac_ext <<_LT_EOF 6466 #ifdef __cplusplus 6467 extern "C" { 6468 #endif 6469 char nm_test_var; 6470 void nm_test_func(void); 6471 void nm_test_func(void){} 6472 #ifdef __cplusplus 6473 } 6474 #endif 6475 int main(){nm_test_var='a';nm_test_func();return(0);} 6476 _LT_EOF 6477 6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6479 (eval $ac_compile) 2>&5 6480 ac_status=$? 6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; }; then 6483 # Now try to grab the symbols. 6484 nlist=conftest.nm 6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6486 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6487 ac_status=$? 6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6489 test $ac_status = 0; } && test -s "$nlist"; then 6490 # Try sorting and uniquifying the output. 6491 if sort "$nlist" | uniq > "$nlist"T; then 6492 mv -f "$nlist"T "$nlist" 6493 else 6494 rm -f "$nlist"T 6495 fi 6496 6497 # Make sure that we snagged all the symbols we need. 6498 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6499 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6500 cat <<_LT_EOF > conftest.$ac_ext 6501 #ifdef __cplusplus 6502 extern "C" { 6503 #endif 6504 6505 _LT_EOF 6506 # Now generate the symbol file. 6507 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6508 6509 cat <<_LT_EOF >> conftest.$ac_ext 6510 6511 /* The mapping between symbol names and symbols. */ 6512 const struct { 6513 const char *name; 6514 void *address; 6515 } 6516 lt__PROGRAM__LTX_preloaded_symbols[] = 6517 { 6518 { "@PROGRAM@", (void *) 0 }, 6519 _LT_EOF 6520 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6521 cat <<\_LT_EOF >> conftest.$ac_ext 6522 {0, (void *) 0} 6523 }; 6524 6525 /* This works around a problem in FreeBSD linker */ 6526 #ifdef FREEBSD_WORKAROUND 6527 static const void *lt_preloaded_setup() { 6528 return lt__PROGRAM__LTX_preloaded_symbols; 6529 } 6530 #endif 6531 6532 #ifdef __cplusplus 6533 } 6534 #endif 6535 _LT_EOF 6536 # Now try linking the two files. 6537 mv conftest.$ac_objext conftstm.$ac_objext 6538 lt_save_LIBS="$LIBS" 6539 lt_save_CFLAGS="$CFLAGS" 6540 LIBS="conftstm.$ac_objext" 6541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6543 (eval $ac_link) 2>&5 6544 ac_status=$? 6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6546 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6547 pipe_works=yes 6548 fi 6549 LIBS="$lt_save_LIBS" 6550 CFLAGS="$lt_save_CFLAGS" 6551 else 6552 echo "cannot find nm_test_func in $nlist" >&5 6553 fi 6554 else 6555 echo "cannot find nm_test_var in $nlist" >&5 6556 fi 6557 else 6558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6559 fi 6560 else 6561 echo "$progname: failed program was:" >&5 6562 cat conftest.$ac_ext >&5 6563 fi 6564 rm -rf conftest* conftst* 6565 6566 # Do not use the global_symbol_pipe unless it works. 6567 if test "$pipe_works" = yes; then 6568 break 6569 else 6570 lt_cv_sys_global_symbol_pipe= 6571 fi 6572 done 6573 6574 fi 6575 6576 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6577 lt_cv_sys_global_symbol_to_cdecl= 6578 fi 6579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6581 $as_echo "failed" >&6; } 6582 else 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6584 $as_echo "ok" >&6; } 6585 fi 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 # Check whether --enable-libtool-lock was given. 6609 if test "${enable_libtool_lock+set}" = set; then : 6610 enableval=$enable_libtool_lock; 6611 fi 6612 6613 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6614 6615 # Some flags need to be propagated to the compiler or linker for good 6616 # libtool support. 6617 case $host in 6618 ia64-*-hpux*) 6619 # Find out which ABI we are using. 6620 echo 'int i;' > conftest.$ac_ext 6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6622 (eval $ac_compile) 2>&5 6623 ac_status=$? 6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6625 test $ac_status = 0; }; then 6626 case `/usr/bin/file conftest.$ac_objext` in 6627 *ELF-32*) 6628 HPUX_IA64_MODE="32" 6629 ;; 6630 *ELF-64*) 6631 HPUX_IA64_MODE="64" 6632 ;; 6633 esac 6634 fi 6635 rm -rf conftest* 6636 ;; 6637 *-*-irix6*) 6638 # Find out which ABI we are using. 6639 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6641 (eval $ac_compile) 2>&5 6642 ac_status=$? 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6644 test $ac_status = 0; }; then 6645 if test "$lt_cv_prog_gnu_ld" = yes; then 6646 case `/usr/bin/file conftest.$ac_objext` in 6647 *32-bit*) 6648 LD="${LD-ld} -melf32bsmip" 6649 ;; 6650 *N32*) 6651 LD="${LD-ld} -melf32bmipn32" 6652 ;; 6653 *64-bit*) 6654 LD="${LD-ld} -melf64bmip" 6655 ;; 6656 esac 6657 else 6658 case `/usr/bin/file conftest.$ac_objext` in 6659 *32-bit*) 6660 LD="${LD-ld} -32" 6661 ;; 6662 *N32*) 6663 LD="${LD-ld} -n32" 6664 ;; 6665 *64-bit*) 6666 LD="${LD-ld} -64" 6667 ;; 6668 esac 6669 fi 6670 fi 6671 rm -rf conftest* 6672 ;; 6673 6674 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6675 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6676 # Find out which ABI we are using. 6677 echo 'int i;' > conftest.$ac_ext 6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6679 (eval $ac_compile) 2>&5 6680 ac_status=$? 6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6682 test $ac_status = 0; }; then 6683 case `/usr/bin/file conftest.o` in 6684 *32-bit*) 6685 case $host in 6686 x86_64-*kfreebsd*-gnu) 6687 LD="${LD-ld} -m elf_i386_fbsd" 6688 ;; 6689 x86_64-*linux*) 6690 case `/usr/bin/file conftest.o` in 6691 *x86-64*) 6692 LD="${LD-ld} -m elf32_x86_64" 6693 ;; 6694 *) 6695 LD="${LD-ld} -m elf_i386" 6696 ;; 6697 esac 6698 ;; 6699 powerpc64le-*linux*) 6700 LD="${LD-ld} -m elf32lppclinux" 6701 ;; 6702 powerpc64-*linux*) 6703 LD="${LD-ld} -m elf32ppclinux" 6704 ;; 6705 s390x-*linux*) 6706 LD="${LD-ld} -m elf_s390" 6707 ;; 6708 sparc64-*linux*) 6709 LD="${LD-ld} -m elf32_sparc" 6710 ;; 6711 esac 6712 ;; 6713 *64-bit*) 6714 case $host in 6715 x86_64-*kfreebsd*-gnu) 6716 LD="${LD-ld} -m elf_x86_64_fbsd" 6717 ;; 6718 x86_64-*linux*) 6719 LD="${LD-ld} -m elf_x86_64" 6720 ;; 6721 powerpcle-*linux*) 6722 LD="${LD-ld} -m elf64lppc" 6723 ;; 6724 powerpc-*linux*) 6725 LD="${LD-ld} -m elf64ppc" 6726 ;; 6727 s390*-*linux*|s390*-*tpf*) 6728 LD="${LD-ld} -m elf64_s390" 6729 ;; 6730 sparc*-*linux*) 6731 LD="${LD-ld} -m elf64_sparc" 6732 ;; 6733 esac 6734 ;; 6735 esac 6736 fi 6737 rm -rf conftest* 6738 ;; 6739 6740 *-*-sco3.2v5*) 6741 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6742 SAVE_CFLAGS="$CFLAGS" 6743 CFLAGS="$CFLAGS -belf" 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6745 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6746 if ${lt_cv_cc_needs_belf+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748 else 6749 ac_ext=c 6750 ac_cpp='$CPP $CPPFLAGS' 6751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6753 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6754 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756 /* end confdefs.h. */ 6757 6758 int 6759 main () 6760 { 6761 6762 ; 6763 return 0; 6764 } 6765 _ACEOF 6766 if ac_fn_c_try_link "$LINENO"; then : 6767 lt_cv_cc_needs_belf=yes 6768 else 6769 lt_cv_cc_needs_belf=no 6770 fi 6771 rm -f core conftest.err conftest.$ac_objext \ 6772 conftest$ac_exeext conftest.$ac_ext 6773 ac_ext=c 6774 ac_cpp='$CPP $CPPFLAGS' 6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6778 6779 fi 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6781 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6782 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6784 CFLAGS="$SAVE_CFLAGS" 6785 fi 6786 ;; 6787 sparc*-*solaris*) 6788 # Find out which ABI we are using. 6789 echo 'int i;' > conftest.$ac_ext 6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6791 (eval $ac_compile) 2>&5 6792 ac_status=$? 6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6794 test $ac_status = 0; }; then 6795 case `/usr/bin/file conftest.o` in 6796 *64-bit*) 6797 case $lt_cv_prog_gnu_ld in 6798 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6799 *) 6800 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6801 LD="${LD-ld} -64" 6802 fi 6803 ;; 6804 esac 6805 ;; 6806 esac 6807 fi 6808 rm -rf conftest* 6809 ;; 6810 esac 6811 6812 need_locks="$enable_libtool_lock" 6813 6814 6815 case $host_os in 6816 rhapsody* | darwin*) 6817 if test -n "$ac_tool_prefix"; then 6818 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6819 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6821 $as_echo_n "checking for $ac_word... " >&6; } 6822 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824 else 6825 if test -n "$DSYMUTIL"; then 6826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6827 else 6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6829 for as_dir in $PATH 6830 do 6831 IFS=$as_save_IFS 6832 test -z "$as_dir" && as_dir=. 6833 for ac_exec_ext in '' $ac_executable_extensions; do 6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6835 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6837 break 2 6838 fi 6839 done 6840 done 6841 IFS=$as_save_IFS 6842 6843 fi 6844 fi 6845 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6846 if test -n "$DSYMUTIL"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6848 $as_echo "$DSYMUTIL" >&6; } 6849 else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851 $as_echo "no" >&6; } 6852 fi 6853 6854 6855 fi 6856 if test -z "$ac_cv_prog_DSYMUTIL"; then 6857 ac_ct_DSYMUTIL=$DSYMUTIL 6858 # Extract the first word of "dsymutil", so it can be a program name with args. 6859 set dummy dsymutil; ac_word=$2 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6861 $as_echo_n "checking for $ac_word... " >&6; } 6862 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864 else 6865 if test -n "$ac_ct_DSYMUTIL"; then 6866 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6867 else 6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869 for as_dir in $PATH 6870 do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6875 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879 done 6880 done 6881 IFS=$as_save_IFS 6882 6883 fi 6884 fi 6885 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6886 if test -n "$ac_ct_DSYMUTIL"; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6888 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6889 else 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6891 $as_echo "no" >&6; } 6892 fi 6893 6894 if test "x$ac_ct_DSYMUTIL" = x; then 6895 DSYMUTIL=":" 6896 else 6897 case $cross_compiling:$ac_tool_warned in 6898 yes:) 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6901 ac_tool_warned=yes ;; 6902 esac 6903 DSYMUTIL=$ac_ct_DSYMUTIL 6904 fi 6905 else 6906 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6907 fi 6908 6909 if test -n "$ac_tool_prefix"; then 6910 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6911 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6913 $as_echo_n "checking for $ac_word... " >&6; } 6914 if ${ac_cv_prog_NMEDIT+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916 else 6917 if test -n "$NMEDIT"; then 6918 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6919 else 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921 for as_dir in $PATH 6922 do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931 done 6932 done 6933 IFS=$as_save_IFS 6934 6935 fi 6936 fi 6937 NMEDIT=$ac_cv_prog_NMEDIT 6938 if test -n "$NMEDIT"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6940 $as_echo "$NMEDIT" >&6; } 6941 else 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943 $as_echo "no" >&6; } 6944 fi 6945 6946 6947 fi 6948 if test -z "$ac_cv_prog_NMEDIT"; then 6949 ac_ct_NMEDIT=$NMEDIT 6950 # Extract the first word of "nmedit", so it can be a program name with args. 6951 set dummy nmedit; ac_word=$2 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953 $as_echo_n "checking for $ac_word... " >&6; } 6954 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956 else 6957 if test -n "$ac_ct_NMEDIT"; then 6958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6959 else 6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961 for as_dir in $PATH 6962 do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971 done 6972 done 6973 IFS=$as_save_IFS 6974 6975 fi 6976 fi 6977 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6978 if test -n "$ac_ct_NMEDIT"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6980 $as_echo "$ac_ct_NMEDIT" >&6; } 6981 else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983 $as_echo "no" >&6; } 6984 fi 6985 6986 if test "x$ac_ct_NMEDIT" = x; then 6987 NMEDIT=":" 6988 else 6989 case $cross_compiling:$ac_tool_warned in 6990 yes:) 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6993 ac_tool_warned=yes ;; 6994 esac 6995 NMEDIT=$ac_ct_NMEDIT 6996 fi 6997 else 6998 NMEDIT="$ac_cv_prog_NMEDIT" 6999 fi 7000 7001 if test -n "$ac_tool_prefix"; then 7002 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7003 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005 $as_echo_n "checking for $ac_word... " >&6; } 7006 if ${ac_cv_prog_LIPO+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 if test -n "$LIPO"; then 7010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7011 else 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013 for as_dir in $PATH 7014 do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7019 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 fi 7028 fi 7029 LIPO=$ac_cv_prog_LIPO 7030 if test -n "$LIPO"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7032 $as_echo "$LIPO" >&6; } 7033 else 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035 $as_echo "no" >&6; } 7036 fi 7037 7038 7039 fi 7040 if test -z "$ac_cv_prog_LIPO"; then 7041 ac_ct_LIPO=$LIPO 7042 # Extract the first word of "lipo", so it can be a program name with args. 7043 set dummy lipo; ac_word=$2 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045 $as_echo_n "checking for $ac_word... " >&6; } 7046 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048 else 7049 if test -n "$ac_ct_LIPO"; then 7050 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7051 else 7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053 for as_dir in $PATH 7054 do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7059 ac_cv_prog_ac_ct_LIPO="lipo" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063 done 7064 done 7065 IFS=$as_save_IFS 7066 7067 fi 7068 fi 7069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7070 if test -n "$ac_ct_LIPO"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7072 $as_echo "$ac_ct_LIPO" >&6; } 7073 else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075 $as_echo "no" >&6; } 7076 fi 7077 7078 if test "x$ac_ct_LIPO" = x; then 7079 LIPO=":" 7080 else 7081 case $cross_compiling:$ac_tool_warned in 7082 yes:) 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7085 ac_tool_warned=yes ;; 7086 esac 7087 LIPO=$ac_ct_LIPO 7088 fi 7089 else 7090 LIPO="$ac_cv_prog_LIPO" 7091 fi 7092 7093 if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7095 set dummy ${ac_tool_prefix}otool; ac_word=$2 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097 $as_echo_n "checking for $ac_word... " >&6; } 7098 if ${ac_cv_prog_OTOOL+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100 else 7101 if test -n "$OTOOL"; then 7102 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7103 else 7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105 for as_dir in $PATH 7106 do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115 done 7116 done 7117 IFS=$as_save_IFS 7118 7119 fi 7120 fi 7121 OTOOL=$ac_cv_prog_OTOOL 7122 if test -n "$OTOOL"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7124 $as_echo "$OTOOL" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 fi 7132 if test -z "$ac_cv_prog_OTOOL"; then 7133 ac_ct_OTOOL=$OTOOL 7134 # Extract the first word of "otool", so it can be a program name with args. 7135 set dummy otool; ac_word=$2 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137 $as_echo_n "checking for $ac_word... " >&6; } 7138 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140 else 7141 if test -n "$ac_ct_OTOOL"; then 7142 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7143 else 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145 for as_dir in $PATH 7146 do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_prog_ac_ct_OTOOL="otool" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155 done 7156 done 7157 IFS=$as_save_IFS 7158 7159 fi 7160 fi 7161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7162 if test -n "$ac_ct_OTOOL"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7164 $as_echo "$ac_ct_OTOOL" >&6; } 7165 else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167 $as_echo "no" >&6; } 7168 fi 7169 7170 if test "x$ac_ct_OTOOL" = x; then 7171 OTOOL=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174 yes:) 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177 ac_tool_warned=yes ;; 7178 esac 7179 OTOOL=$ac_ct_OTOOL 7180 fi 7181 else 7182 OTOOL="$ac_cv_prog_OTOOL" 7183 fi 7184 7185 if test -n "$ac_tool_prefix"; then 7186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7187 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189 $as_echo_n "checking for $ac_word... " >&6; } 7190 if ${ac_cv_prog_OTOOL64+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192 else 7193 if test -n "$OTOOL64"; then 7194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7195 else 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197 for as_dir in $PATH 7198 do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207 done 7208 done 7209 IFS=$as_save_IFS 7210 7211 fi 7212 fi 7213 OTOOL64=$ac_cv_prog_OTOOL64 7214 if test -n "$OTOOL64"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7216 $as_echo "$OTOOL64" >&6; } 7217 else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219 $as_echo "no" >&6; } 7220 fi 7221 7222 7223 fi 7224 if test -z "$ac_cv_prog_OTOOL64"; then 7225 ac_ct_OTOOL64=$OTOOL64 7226 # Extract the first word of "otool64", so it can be a program name with args. 7227 set dummy otool64; ac_word=$2 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229 $as_echo_n "checking for $ac_word... " >&6; } 7230 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232 else 7233 if test -n "$ac_ct_OTOOL64"; then 7234 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7235 else 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237 for as_dir in $PATH 7238 do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_ac_ct_OTOOL64="otool64" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247 done 7248 done 7249 IFS=$as_save_IFS 7250 7251 fi 7252 fi 7253 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7254 if test -n "$ac_ct_OTOOL64"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7256 $as_echo "$ac_ct_OTOOL64" >&6; } 7257 else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259 $as_echo "no" >&6; } 7260 fi 7261 7262 if test "x$ac_ct_OTOOL64" = x; then 7263 OTOOL64=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266 yes:) 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269 ac_tool_warned=yes ;; 7270 esac 7271 OTOOL64=$ac_ct_OTOOL64 7272 fi 7273 else 7274 OTOOL64="$ac_cv_prog_OTOOL64" 7275 fi 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7304 $as_echo_n "checking for -single_module linker flag... " >&6; } 7305 if ${lt_cv_apple_cc_single_mod+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307 else 7308 lt_cv_apple_cc_single_mod=no 7309 if test -z "${LT_MULTI_MODULE}"; then 7310 # By default we will add the -single_module flag. You can override 7311 # by either setting the environment variable LT_MULTI_MODULE 7312 # non-empty at configure time, or by adding -multi_module to the 7313 # link flags. 7314 rm -rf libconftest.dylib* 7315 echo "int foo(void){return 1;}" > conftest.c 7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7317 -dynamiclib -Wl,-single_module conftest.c" >&5 7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7320 _lt_result=$? 7321 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7322 lt_cv_apple_cc_single_mod=yes 7323 else 7324 cat conftest.err >&5 7325 fi 7326 rm -rf libconftest.dylib* 7327 rm -f conftest.* 7328 fi 7329 fi 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7331 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7333 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7334 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336 else 7337 lt_cv_ld_exported_symbols_list=no 7338 save_LDFLAGS=$LDFLAGS 7339 echo "_main" > conftest.sym 7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342 /* end confdefs.h. */ 7343 7344 int 7345 main () 7346 { 7347 7348 ; 7349 return 0; 7350 } 7351 _ACEOF 7352 if ac_fn_c_try_link "$LINENO"; then : 7353 lt_cv_ld_exported_symbols_list=yes 7354 else 7355 lt_cv_ld_exported_symbols_list=no 7356 fi 7357 rm -f core conftest.err conftest.$ac_objext \ 7358 conftest$ac_exeext conftest.$ac_ext 7359 LDFLAGS="$save_LDFLAGS" 7360 7361 fi 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7363 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7365 $as_echo_n "checking for -force_load linker flag... " >&6; } 7366 if ${lt_cv_ld_force_load+:} false; then : 7367 $as_echo_n "(cached) " >&6 7368 else 7369 lt_cv_ld_force_load=no 7370 cat > conftest.c << _LT_EOF 7371 int forced_loaded() { return 2;} 7372 _LT_EOF 7373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7375 echo "$AR cru libconftest.a conftest.o" >&5 7376 $AR cru libconftest.a conftest.o 2>&5 7377 cat > conftest.c << _LT_EOF 7378 int main() { return 0;} 7379 _LT_EOF 7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7382 _lt_result=$? 7383 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7384 lt_cv_ld_force_load=yes 7385 else 7386 cat conftest.err >&5 7387 fi 7388 rm -f conftest.err libconftest.a conftest conftest.c 7389 rm -rf conftest.dSYM 7390 7391 fi 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7393 $as_echo "$lt_cv_ld_force_load" >&6; } 7394 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7395 # build without first building modern cctools / linker. 7396 case $host_cpu-$host_os in 7397 *-rhapsody* | *-darwin1.[012]) 7398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7399 *-darwin1.*) 7400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7401 *-darwin*) 7402 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7403 # deployment target is forced to an earlier version. 7404 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7405 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7406 ;; 7407 10.[012][,.]*) 7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7409 ;; 7410 *) 7411 ;; 7412 esac 7413 ;; 7414 esac 7415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7416 _lt_dar_single_mod='$single_module' 7417 fi 7418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7420 else 7421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7422 fi 7423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7424 _lt_dsymutil='~$DSYMUTIL $lib || :' 7425 else 7426 _lt_dsymutil= 7427 fi 7428 ;; 7429 esac 7430 7431 for ac_header in dlfcn.h 7432 do : 7433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7434 " 7435 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7436 cat >>confdefs.h <<_ACEOF 7437 #define HAVE_DLFCN_H 1 7438 _ACEOF 7439 7440 fi 7441 7442 done 7443 7444 7445 7446 7447 7448 # Set options 7449 7450 7451 7452 enable_dlopen=no 7453 7454 7455 enable_win32_dll=no 7456 7457 7458 7459 # Check whether --enable-static was given. 7460 if test "${enable_static+set}" = set; then : 7461 enableval=$enable_static; p=${PACKAGE-default} 7462 case $enableval in 7463 yes) enable_static=yes ;; 7464 no) enable_static=no ;; 7465 *) 7466 enable_static=no 7467 # Look at the argument we got. We use all the common list separators. 7468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7469 for pkg in $enableval; do 7470 IFS="$lt_save_ifs" 7471 if test "X$pkg" = "X$p"; then 7472 enable_static=yes 7473 fi 7474 done 7475 IFS="$lt_save_ifs" 7476 ;; 7477 esac 7478 else 7479 enable_static=yes 7480 fi 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 # Check whether --with-pic was given. 7492 if test "${with_pic+set}" = set; then : 7493 withval=$with_pic; pic_mode="$withval" 7494 else 7495 pic_mode=default 7496 fi 7497 7498 7499 test -z "$pic_mode" && pic_mode=default 7500 7501 7502 7503 7504 7505 7506 7507 # Check whether --enable-fast-install was given. 7508 if test "${enable_fast_install+set}" = set; then : 7509 enableval=$enable_fast_install; p=${PACKAGE-default} 7510 case $enableval in 7511 yes) enable_fast_install=yes ;; 7512 no) enable_fast_install=no ;; 7513 *) 7514 enable_fast_install=no 7515 # Look at the argument we got. We use all the common list separators. 7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7517 for pkg in $enableval; do 7518 IFS="$lt_save_ifs" 7519 if test "X$pkg" = "X$p"; then 7520 enable_fast_install=yes 7521 fi 7522 done 7523 IFS="$lt_save_ifs" 7524 ;; 7525 esac 7526 else 7527 enable_fast_install=yes 7528 fi 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 # This can be used to rebuild libtool when needed 7541 LIBTOOL_DEPS="$ltmain" 7542 7543 # Always use our own libtool. 7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 test -z "$LN_S" && LN_S="ln -s" 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 if test -n "${ZSH_VERSION+set}" ; then 7587 setopt NO_GLOB_SUBST 7588 fi 7589 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7591 $as_echo_n "checking for objdir... " >&6; } 7592 if ${lt_cv_objdir+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594 else 7595 rm -f .libs 2>/dev/null 7596 mkdir .libs 2>/dev/null 7597 if test -d .libs; then 7598 lt_cv_objdir=.libs 7599 else 7600 # MS-DOS does not allow filenames that begin with a dot. 7601 lt_cv_objdir=_libs 7602 fi 7603 rmdir .libs 2>/dev/null 7604 fi 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7606 $as_echo "$lt_cv_objdir" >&6; } 7607 objdir=$lt_cv_objdir 7608 7609 7610 7611 7612 7613 cat >>confdefs.h <<_ACEOF 7614 #define LT_OBJDIR "$lt_cv_objdir/" 7615 _ACEOF 7616 7617 7618 7619 7620 case $host_os in 7621 aix3*) 7622 # AIX sometimes has problems with the GCC collect2 program. For some 7623 # reason, if we set the COLLECT_NAMES environment variable, the problems 7624 # vanish in a puff of smoke. 7625 if test "X${COLLECT_NAMES+set}" != Xset; then 7626 COLLECT_NAMES= 7627 export COLLECT_NAMES 7628 fi 7629 ;; 7630 esac 7631 7632 # Global variables: 7633 ofile=libtool 7634 can_build_shared=yes 7635 7636 # All known linkers require a `.a' archive for static linking (except MSVC, 7637 # which needs '.lib'). 7638 libext=a 7639 7640 with_gnu_ld="$lt_cv_prog_gnu_ld" 7641 7642 old_CC="$CC" 7643 old_CFLAGS="$CFLAGS" 7644 7645 # Set sane defaults for various variables 7646 test -z "$CC" && CC=cc 7647 test -z "$LTCC" && LTCC=$CC 7648 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7649 test -z "$LD" && LD=ld 7650 test -z "$ac_objext" && ac_objext=o 7651 7652 for cc_temp in $compiler""; do 7653 case $cc_temp in 7654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7656 \-*) ;; 7657 *) break;; 7658 esac 7659 done 7660 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7661 7662 7663 # Only perform the check for file, if the check method requires it 7664 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7665 case $deplibs_check_method in 7666 file_magic*) 7667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7669 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7670 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672 else 7673 case $MAGIC_CMD in 7674 [\\/*] | ?:[\\/]*) 7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7676 ;; 7677 *) 7678 lt_save_MAGIC_CMD="$MAGIC_CMD" 7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7681 for ac_dir in $ac_dummy; do 7682 IFS="$lt_save_ifs" 7683 test -z "$ac_dir" && ac_dir=. 7684 if test -f $ac_dir/${ac_tool_prefix}file; then 7685 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7686 if test -n "$file_magic_test_file"; then 7687 case $deplibs_check_method in 7688 "file_magic "*) 7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7692 $EGREP "$file_magic_regex" > /dev/null; then 7693 : 7694 else 7695 cat <<_LT_EOF 1>&2 7696 7697 *** Warning: the command libtool uses to detect shared libraries, 7698 *** $file_magic_cmd, produces output that libtool cannot recognize. 7699 *** The result is that libtool may fail to recognize shared libraries 7700 *** as such. This will affect the creation of libtool libraries that 7701 *** depend on shared libraries, but programs linked with such libtool 7702 *** libraries will work regardless of this problem. Nevertheless, you 7703 *** may want to report the problem to your system manager and/or to 7704 *** bug-libtool@gnu.org 7705 7706 _LT_EOF 7707 fi ;; 7708 esac 7709 fi 7710 break 7711 fi 7712 done 7713 IFS="$lt_save_ifs" 7714 MAGIC_CMD="$lt_save_MAGIC_CMD" 7715 ;; 7716 esac 7717 fi 7718 7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7720 if test -n "$MAGIC_CMD"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7722 $as_echo "$MAGIC_CMD" >&6; } 7723 else 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725 $as_echo "no" >&6; } 7726 fi 7727 7728 7729 7730 7731 7732 if test -z "$lt_cv_path_MAGIC_CMD"; then 7733 if test -n "$ac_tool_prefix"; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7735 $as_echo_n "checking for file... " >&6; } 7736 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738 else 7739 case $MAGIC_CMD in 7740 [\\/*] | ?:[\\/]*) 7741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7742 ;; 7743 *) 7744 lt_save_MAGIC_CMD="$MAGIC_CMD" 7745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7747 for ac_dir in $ac_dummy; do 7748 IFS="$lt_save_ifs" 7749 test -z "$ac_dir" && ac_dir=. 7750 if test -f $ac_dir/file; then 7751 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7752 if test -n "$file_magic_test_file"; then 7753 case $deplibs_check_method in 7754 "file_magic "*) 7755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7758 $EGREP "$file_magic_regex" > /dev/null; then 7759 : 7760 else 7761 cat <<_LT_EOF 1>&2 7762 7763 *** Warning: the command libtool uses to detect shared libraries, 7764 *** $file_magic_cmd, produces output that libtool cannot recognize. 7765 *** The result is that libtool may fail to recognize shared libraries 7766 *** as such. This will affect the creation of libtool libraries that 7767 *** depend on shared libraries, but programs linked with such libtool 7768 *** libraries will work regardless of this problem. Nevertheless, you 7769 *** may want to report the problem to your system manager and/or to 7770 *** bug-libtool@gnu.org 7771 7772 _LT_EOF 7773 fi ;; 7774 esac 7775 fi 7776 break 7777 fi 7778 done 7779 IFS="$lt_save_ifs" 7780 MAGIC_CMD="$lt_save_MAGIC_CMD" 7781 ;; 7782 esac 7783 fi 7784 7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7786 if test -n "$MAGIC_CMD"; then 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7788 $as_echo "$MAGIC_CMD" >&6; } 7789 else 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791 $as_echo "no" >&6; } 7792 fi 7793 7794 7795 else 7796 MAGIC_CMD=: 7797 fi 7798 fi 7799 7800 fi 7801 ;; 7802 esac 7803 7804 # Use C for the default configuration in the libtool script 7805 7806 lt_save_CC="$CC" 7807 ac_ext=c 7808 ac_cpp='$CPP $CPPFLAGS' 7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7812 7813 7814 # Source file extension for C test sources. 7815 ac_ext=c 7816 7817 # Object file extension for compiled C test sources. 7818 objext=o 7819 objext=$objext 7820 7821 # Code to be used in simple compile tests 7822 lt_simple_compile_test_code="int some_variable = 0;" 7823 7824 # Code to be used in simple link tests 7825 lt_simple_link_test_code='int main(){return(0);}' 7826 7827 7828 7829 7830 7831 7832 7833 # If no C compiler was specified, use CC. 7834 LTCC=${LTCC-"$CC"} 7835 7836 # If no C compiler flags were specified, use CFLAGS. 7837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7838 7839 # Allow CC to be a program name with arguments. 7840 compiler=$CC 7841 7842 # Save the default compiler, since it gets overwritten when the other 7843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7844 compiler_DEFAULT=$CC 7845 7846 # save warnings/boilerplate of simple test code 7847 ac_outfile=conftest.$ac_objext 7848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7850 _lt_compiler_boilerplate=`cat conftest.err` 7851 $RM conftest* 7852 7853 ac_outfile=conftest.$ac_objext 7854 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7856 _lt_linker_boilerplate=`cat conftest.err` 7857 $RM -r conftest* 7858 7859 7860 ## CAVEAT EMPTOR: 7861 ## There is no encapsulation within the following macros, do not change 7862 ## the running order or otherwise move them around unless you know exactly 7863 ## what you are doing... 7864 if test -n "$compiler"; then 7865 7866 lt_prog_compiler_no_builtin_flag= 7867 7868 if test "$GCC" = yes; then 7869 case $cc_basename in 7870 nvcc*) 7871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7872 *) 7873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7874 esac 7875 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880 else 7881 lt_cv_prog_compiler_rtti_exceptions=no 7882 ac_outfile=conftest.$ac_objext 7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7884 lt_compiler_flag="-fno-rtti -fno-exceptions" 7885 # Insert the option either (1) after the last *FLAGS variable, or 7886 # (2) before a word containing "conftest.", or (3) at the end. 7887 # Note that $ac_compile itself does not contain backslashes and begins 7888 # with a dollar sign (not a hyphen), so the echo should work correctly. 7889 # The option is referenced via a variable to avoid confusing sed. 7890 lt_compile=`echo "$ac_compile" | $SED \ 7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7893 -e 's:$: $lt_compiler_flag:'` 7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7895 (eval "$lt_compile" 2>conftest.err) 7896 ac_status=$? 7897 cat conftest.err >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 if (exit $ac_status) && test -s "$ac_outfile"; then 7900 # The compiler can only warn and ignore the option if not recognized 7901 # So say no if there are warnings other than the usual output. 7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7905 lt_cv_prog_compiler_rtti_exceptions=yes 7906 fi 7907 fi 7908 $RM conftest* 7909 7910 fi 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7913 7914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7916 else 7917 : 7918 fi 7919 7920 fi 7921 7922 7923 7924 7925 7926 7927 lt_prog_compiler_wl= 7928 lt_prog_compiler_pic= 7929 lt_prog_compiler_static= 7930 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7933 7934 if test "$GCC" = yes; then 7935 lt_prog_compiler_wl='-Wl,' 7936 lt_prog_compiler_static='-static' 7937 7938 case $host_os in 7939 aix*) 7940 # All AIX code is PIC. 7941 if test "$host_cpu" = ia64; then 7942 # AIX 5 now supports IA64 processor 7943 lt_prog_compiler_static='-Bstatic' 7944 fi 7945 lt_prog_compiler_pic='-fPIC' 7946 ;; 7947 7948 amigaos*) 7949 case $host_cpu in 7950 powerpc) 7951 # see comment about AmigaOS4 .so support 7952 lt_prog_compiler_pic='-fPIC' 7953 ;; 7954 m68k) 7955 # FIXME: we need at least 68020 code to build shared libraries, but 7956 # adding the `-m68020' flag to GCC prevents building anything better, 7957 # like `-m68040'. 7958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7959 ;; 7960 esac 7961 ;; 7962 7963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7964 # PIC is the default for these OSes. 7965 ;; 7966 7967 mingw* | cygwin* | pw32* | os2* | cegcc*) 7968 # This hack is so that the source file can tell whether it is being 7969 # built for inclusion in a dll (and should export symbols for example). 7970 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7971 # (--disable-auto-import) libraries 7972 lt_prog_compiler_pic='-DDLL_EXPORT' 7973 ;; 7974 7975 darwin* | rhapsody*) 7976 # PIC is the default on this platform 7977 # Common symbols not allowed in MH_DYLIB files 7978 lt_prog_compiler_pic='-fno-common' 7979 ;; 7980 7981 haiku*) 7982 # PIC is the default for Haiku. 7983 # The "-static" flag exists, but is broken. 7984 lt_prog_compiler_static= 7985 ;; 7986 7987 hpux*) 7988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7990 # sets the default TLS model and affects inlining. 7991 case $host_cpu in 7992 hppa*64*) 7993 # +Z the default 7994 ;; 7995 *) 7996 lt_prog_compiler_pic='-fPIC' 7997 ;; 7998 esac 7999 ;; 8000 8001 interix[3-9]*) 8002 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8003 # Instead, we relocate shared libraries at runtime. 8004 ;; 8005 8006 msdosdjgpp*) 8007 # Just because we use GCC doesn't mean we suddenly get shared libraries 8008 # on systems that don't support them. 8009 lt_prog_compiler_can_build_shared=no 8010 enable_shared=no 8011 ;; 8012 8013 *nto* | *qnx*) 8014 # QNX uses GNU C++, but need to define -shared option too, otherwise 8015 # it will coredump. 8016 lt_prog_compiler_pic='-fPIC -shared' 8017 ;; 8018 8019 sysv4*MP*) 8020 if test -d /usr/nec; then 8021 lt_prog_compiler_pic=-Kconform_pic 8022 fi 8023 ;; 8024 8025 *) 8026 lt_prog_compiler_pic='-fPIC' 8027 ;; 8028 esac 8029 8030 case $cc_basename in 8031 nvcc*) # Cuda Compiler Driver 2.2 8032 lt_prog_compiler_wl='-Xlinker ' 8033 lt_prog_compiler_pic='-Xcompiler -fPIC' 8034 ;; 8035 esac 8036 else 8037 # PORTME Check for flag to pass linker flags through the system compiler. 8038 case $host_os in 8039 aix*) 8040 lt_prog_compiler_wl='-Wl,' 8041 if test "$host_cpu" = ia64; then 8042 # AIX 5 now supports IA64 processor 8043 lt_prog_compiler_static='-Bstatic' 8044 else 8045 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8046 fi 8047 ;; 8048 8049 mingw* | cygwin* | pw32* | os2* | cegcc*) 8050 # This hack is so that the source file can tell whether it is being 8051 # built for inclusion in a dll (and should export symbols for example). 8052 lt_prog_compiler_pic='-DDLL_EXPORT' 8053 ;; 8054 8055 hpux9* | hpux10* | hpux11*) 8056 lt_prog_compiler_wl='-Wl,' 8057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8058 # not for PA HP-UX. 8059 case $host_cpu in 8060 hppa*64*|ia64*) 8061 # +Z the default 8062 ;; 8063 *) 8064 lt_prog_compiler_pic='+Z' 8065 ;; 8066 esac 8067 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8068 lt_prog_compiler_static='${wl}-a ${wl}archive' 8069 ;; 8070 8071 irix5* | irix6* | nonstopux*) 8072 lt_prog_compiler_wl='-Wl,' 8073 # PIC (with -KPIC) is the default. 8074 lt_prog_compiler_static='-non_shared' 8075 ;; 8076 8077 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8078 case $cc_basename in 8079 # old Intel for x86_64 which still supported -KPIC. 8080 ecc*) 8081 lt_prog_compiler_wl='-Wl,' 8082 lt_prog_compiler_pic='-KPIC' 8083 lt_prog_compiler_static='-static' 8084 ;; 8085 # icc used to be incompatible with GCC. 8086 # ICC 10 doesn't accept -KPIC any more. 8087 icc* | ifort*) 8088 lt_prog_compiler_wl='-Wl,' 8089 lt_prog_compiler_pic='-fPIC' 8090 lt_prog_compiler_static='-static' 8091 ;; 8092 # Lahey Fortran 8.1. 8093 lf95*) 8094 lt_prog_compiler_wl='-Wl,' 8095 lt_prog_compiler_pic='--shared' 8096 lt_prog_compiler_static='--static' 8097 ;; 8098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8099 # Portland Group compilers (*not* the Pentium gcc compiler, 8100 # which looks to be a dead project) 8101 lt_prog_compiler_wl='-Wl,' 8102 lt_prog_compiler_pic='-fpic' 8103 lt_prog_compiler_static='-Bstatic' 8104 ;; 8105 ccc*) 8106 lt_prog_compiler_wl='-Wl,' 8107 # All Alpha code is PIC. 8108 lt_prog_compiler_static='-non_shared' 8109 ;; 8110 xl* | bgxl* | bgf* | mpixl*) 8111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8112 lt_prog_compiler_wl='-Wl,' 8113 lt_prog_compiler_pic='-qpic' 8114 lt_prog_compiler_static='-qstaticlink' 8115 ;; 8116 *) 8117 case `$CC -V 2>&1 | sed 5q` in 8118 *Sun\ F* | *Sun*Fortran*) 8119 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8120 lt_prog_compiler_pic='-KPIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 lt_prog_compiler_wl='' 8123 ;; 8124 *Sun\ C*) 8125 # Sun C 5.9 8126 lt_prog_compiler_pic='-KPIC' 8127 lt_prog_compiler_static='-Bstatic' 8128 lt_prog_compiler_wl='-Wl,' 8129 ;; 8130 esac 8131 ;; 8132 esac 8133 ;; 8134 8135 newsos6) 8136 lt_prog_compiler_pic='-KPIC' 8137 lt_prog_compiler_static='-Bstatic' 8138 ;; 8139 8140 *nto* | *qnx*) 8141 # QNX uses GNU C++, but need to define -shared option too, otherwise 8142 # it will coredump. 8143 lt_prog_compiler_pic='-fPIC -shared' 8144 ;; 8145 8146 osf3* | osf4* | osf5*) 8147 lt_prog_compiler_wl='-Wl,' 8148 # All OSF/1 code is PIC. 8149 lt_prog_compiler_static='-non_shared' 8150 ;; 8151 8152 rdos*) 8153 lt_prog_compiler_static='-non_shared' 8154 ;; 8155 8156 solaris*) 8157 lt_prog_compiler_pic='-KPIC' 8158 lt_prog_compiler_static='-Bstatic' 8159 case $cc_basename in 8160 f77* | f90* | f95*) 8161 lt_prog_compiler_wl='-Qoption ld ';; 8162 *) 8163 lt_prog_compiler_wl='-Wl,';; 8164 esac 8165 ;; 8166 8167 sunos4*) 8168 lt_prog_compiler_wl='-Qoption ld ' 8169 lt_prog_compiler_pic='-PIC' 8170 lt_prog_compiler_static='-Bstatic' 8171 ;; 8172 8173 sysv4 | sysv4.2uw2* | sysv4.3*) 8174 lt_prog_compiler_wl='-Wl,' 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-Bstatic' 8177 ;; 8178 8179 sysv4*MP*) 8180 if test -d /usr/nec ;then 8181 lt_prog_compiler_pic='-Kconform_pic' 8182 lt_prog_compiler_static='-Bstatic' 8183 fi 8184 ;; 8185 8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8187 lt_prog_compiler_wl='-Wl,' 8188 lt_prog_compiler_pic='-KPIC' 8189 lt_prog_compiler_static='-Bstatic' 8190 ;; 8191 8192 unicos*) 8193 lt_prog_compiler_wl='-Wl,' 8194 lt_prog_compiler_can_build_shared=no 8195 ;; 8196 8197 uts4*) 8198 lt_prog_compiler_pic='-pic' 8199 lt_prog_compiler_static='-Bstatic' 8200 ;; 8201 8202 *) 8203 lt_prog_compiler_can_build_shared=no 8204 ;; 8205 esac 8206 fi 8207 8208 case $host_os in 8209 # For platforms which do not support PIC, -DPIC is meaningless: 8210 *djgpp*) 8211 lt_prog_compiler_pic= 8212 ;; 8213 *) 8214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8215 ;; 8216 esac 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8218 $as_echo "$lt_prog_compiler_pic" >&6; } 8219 8220 8221 8222 8223 8224 8225 # 8226 # Check to make sure the PIC flag actually works. 8227 # 8228 if test -n "$lt_prog_compiler_pic"; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8230 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8231 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233 else 8234 lt_cv_prog_compiler_pic_works=no 8235 ac_outfile=conftest.$ac_objext 8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8238 # Insert the option either (1) after the last *FLAGS variable, or 8239 # (2) before a word containing "conftest.", or (3) at the end. 8240 # Note that $ac_compile itself does not contain backslashes and begins 8241 # with a dollar sign (not a hyphen), so the echo should work correctly. 8242 # The option is referenced via a variable to avoid confusing sed. 8243 lt_compile=`echo "$ac_compile" | $SED \ 8244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8246 -e 's:$: $lt_compiler_flag:'` 8247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8248 (eval "$lt_compile" 2>conftest.err) 8249 ac_status=$? 8250 cat conftest.err >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 if (exit $ac_status) && test -s "$ac_outfile"; then 8253 # The compiler can only warn and ignore the option if not recognized 8254 # So say no if there are warnings other than the usual output. 8255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8258 lt_cv_prog_compiler_pic_works=yes 8259 fi 8260 fi 8261 $RM conftest* 8262 8263 fi 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8265 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8266 8267 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8268 case $lt_prog_compiler_pic in 8269 "" | " "*) ;; 8270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8271 esac 8272 else 8273 lt_prog_compiler_pic= 8274 lt_prog_compiler_can_build_shared=no 8275 fi 8276 8277 fi 8278 8279 8280 8281 8282 8283 8284 # 8285 # Check to make sure the static flag actually works. 8286 # 8287 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8289 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8290 if ${lt_cv_prog_compiler_static_works+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292 else 8293 lt_cv_prog_compiler_static_works=no 8294 save_LDFLAGS="$LDFLAGS" 8295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8296 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8298 # The linker can only warn and ignore the option if not recognized 8299 # So say no if there are warnings 8300 if test -s conftest.err; then 8301 # Append any errors to the config.log. 8302 cat conftest.err 1>&5 8303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8305 if diff conftest.exp conftest.er2 >/dev/null; then 8306 lt_cv_prog_compiler_static_works=yes 8307 fi 8308 else 8309 lt_cv_prog_compiler_static_works=yes 8310 fi 8311 fi 8312 $RM -r conftest* 8313 LDFLAGS="$save_LDFLAGS" 8314 8315 fi 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8317 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8318 8319 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8320 : 8321 else 8322 lt_prog_compiler_static= 8323 fi 8324 8325 8326 8327 8328 8329 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8333 if ${lt_cv_prog_compiler_c_o+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335 else 8336 lt_cv_prog_compiler_c_o=no 8337 $RM -r conftest 2>/dev/null 8338 mkdir conftest 8339 cd conftest 8340 mkdir out 8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8342 8343 lt_compiler_flag="-o out/conftest2.$ac_objext" 8344 # Insert the option either (1) after the last *FLAGS variable, or 8345 # (2) before a word containing "conftest.", or (3) at the end. 8346 # Note that $ac_compile itself does not contain backslashes and begins 8347 # with a dollar sign (not a hyphen), so the echo should work correctly. 8348 lt_compile=`echo "$ac_compile" | $SED \ 8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8351 -e 's:$: $lt_compiler_flag:'` 8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8353 (eval "$lt_compile" 2>out/conftest.err) 8354 ac_status=$? 8355 cat out/conftest.err >&5 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8358 then 8359 # The compiler can only warn and ignore the option if not recognized 8360 # So say no if there are warnings 8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8364 lt_cv_prog_compiler_c_o=yes 8365 fi 8366 fi 8367 chmod u+w . 2>&5 8368 $RM conftest* 8369 # SGI C++ compiler will create directory out/ii_files/ for 8370 # template instantiation 8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8372 $RM out/* && rmdir out 8373 cd .. 8374 $RM -r conftest 8375 $RM conftest* 8376 8377 fi 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8380 8381 8382 8383 8384 8385 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8388 if ${lt_cv_prog_compiler_c_o+:} false; then : 8389 $as_echo_n "(cached) " >&6 8390 else 8391 lt_cv_prog_compiler_c_o=no 8392 $RM -r conftest 2>/dev/null 8393 mkdir conftest 8394 cd conftest 8395 mkdir out 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 8398 lt_compiler_flag="-o out/conftest2.$ac_objext" 8399 # Insert the option either (1) after the last *FLAGS variable, or 8400 # (2) before a word containing "conftest.", or (3) at the end. 8401 # Note that $ac_compile itself does not contain backslashes and begins 8402 # with a dollar sign (not a hyphen), so the echo should work correctly. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>out/conftest.err) 8409 ac_status=$? 8410 cat out/conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8413 then 8414 # The compiler can only warn and ignore the option if not recognized 8415 # So say no if there are warnings 8416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8419 lt_cv_prog_compiler_c_o=yes 8420 fi 8421 fi 8422 chmod u+w . 2>&5 8423 $RM conftest* 8424 # SGI C++ compiler will create directory out/ii_files/ for 8425 # template instantiation 8426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8427 $RM out/* && rmdir out 8428 cd .. 8429 $RM -r conftest 8430 $RM conftest* 8431 8432 fi 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8435 8436 8437 8438 8439 hard_links="nottested" 8440 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8441 # do not overwrite the value of need_locks provided by the user 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8443 $as_echo_n "checking if we can lock with hard links... " >&6; } 8444 hard_links=yes 8445 $RM conftest* 8446 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8447 touch conftest.a 8448 ln conftest.a conftest.b 2>&5 || hard_links=no 8449 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8451 $as_echo "$hard_links" >&6; } 8452 if test "$hard_links" = no; then 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8454 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8455 need_locks=warn 8456 fi 8457 else 8458 need_locks=no 8459 fi 8460 8461 8462 8463 8464 8465 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8468 8469 runpath_var= 8470 allow_undefined_flag= 8471 always_export_symbols=no 8472 archive_cmds= 8473 archive_expsym_cmds= 8474 compiler_needs_object=no 8475 enable_shared_with_static_runtimes=no 8476 export_dynamic_flag_spec= 8477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8478 hardcode_automatic=no 8479 hardcode_direct=no 8480 hardcode_direct_absolute=no 8481 hardcode_libdir_flag_spec= 8482 hardcode_libdir_flag_spec_ld= 8483 hardcode_libdir_separator= 8484 hardcode_minus_L=no 8485 hardcode_shlibpath_var=unsupported 8486 inherit_rpath=no 8487 link_all_deplibs=unknown 8488 module_cmds= 8489 module_expsym_cmds= 8490 old_archive_from_new_cmds= 8491 old_archive_from_expsyms_cmds= 8492 thread_safe_flag_spec= 8493 whole_archive_flag_spec= 8494 # include_expsyms should be a list of space-separated symbols to be *always* 8495 # included in the symbol list 8496 include_expsyms= 8497 # exclude_expsyms can be an extended regexp of symbols to exclude 8498 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8499 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8500 # as well as any symbol that contains `d'. 8501 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8502 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8503 # platforms (ab)use it in PIC code, but their linkers get confused if 8504 # the symbol is explicitly referenced. Since portable code cannot 8505 # rely on this symbol name, it's probably fine to never include it in 8506 # preloaded symbol tables. 8507 # Exclude shared library initialization/finalization symbols. 8508 extract_expsyms_cmds= 8509 8510 case $host_os in 8511 cygwin* | mingw* | pw32* | cegcc*) 8512 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8513 # When not using gcc, we currently assume that we are using 8514 # Microsoft Visual C++. 8515 if test "$GCC" != yes; then 8516 with_gnu_ld=no 8517 fi 8518 ;; 8519 interix*) 8520 # we just hope/assume this is gcc and not c89 (= MSVC++) 8521 with_gnu_ld=yes 8522 ;; 8523 openbsd*) 8524 with_gnu_ld=no 8525 ;; 8526 esac 8527 8528 ld_shlibs=yes 8529 8530 # On some targets, GNU ld is compatible enough with the native linker 8531 # that we're better off using the native interface for both. 8532 lt_use_gnu_ld_interface=no 8533 if test "$with_gnu_ld" = yes; then 8534 case $host_os in 8535 aix*) 8536 # The AIX port of GNU ld has always aspired to compatibility 8537 # with the native linker. However, as the warning in the GNU ld 8538 # block says, versions before 2.19.5* couldn't really create working 8539 # shared libraries, regardless of the interface used. 8540 case `$LD -v 2>&1` in 8541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8543 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8544 *) 8545 lt_use_gnu_ld_interface=yes 8546 ;; 8547 esac 8548 ;; 8549 *) 8550 lt_use_gnu_ld_interface=yes 8551 ;; 8552 esac 8553 fi 8554 8555 if test "$lt_use_gnu_ld_interface" = yes; then 8556 # If archive_cmds runs LD, not CC, wlarc should be empty 8557 wlarc='${wl}' 8558 8559 # Set some defaults for GNU ld with shared library support. These 8560 # are reset later if shared libraries are not supported. Putting them 8561 # here allows them to be overridden if necessary. 8562 runpath_var=LD_RUN_PATH 8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8564 export_dynamic_flag_spec='${wl}--export-dynamic' 8565 # ancient GNU ld didn't support --whole-archive et. al. 8566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8567 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8568 else 8569 whole_archive_flag_spec= 8570 fi 8571 supports_anon_versioning=no 8572 case `$LD -v 2>&1` in 8573 *GNU\ gold*) supports_anon_versioning=yes ;; 8574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8577 *\ 2.11.*) ;; # other 2.11 versions 8578 *) supports_anon_versioning=yes ;; 8579 esac 8580 8581 # See if GNU ld supports shared libraries. 8582 case $host_os in 8583 aix[3-9]*) 8584 # On AIX/PPC, the GNU linker is very broken 8585 if test "$host_cpu" != ia64; then 8586 ld_shlibs=no 8587 cat <<_LT_EOF 1>&2 8588 8589 *** Warning: the GNU linker, at least up to release 2.19, is reported 8590 *** to be unable to reliably create shared libraries on AIX. 8591 *** Therefore, libtool is disabling shared libraries support. If you 8592 *** really care for shared libraries, you may want to install binutils 8593 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8594 *** You will then need to restart the configuration process. 8595 8596 _LT_EOF 8597 fi 8598 ;; 8599 8600 amigaos*) 8601 case $host_cpu in 8602 powerpc) 8603 # see comment about AmigaOS4 .so support 8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8605 archive_expsym_cmds='' 8606 ;; 8607 m68k) 8608 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8609 hardcode_libdir_flag_spec='-L$libdir' 8610 hardcode_minus_L=yes 8611 ;; 8612 esac 8613 ;; 8614 8615 beos*) 8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8617 allow_undefined_flag=unsupported 8618 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8619 # support --undefined. This deserves some investigation. FIXME 8620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8621 else 8622 ld_shlibs=no 8623 fi 8624 ;; 8625 8626 cygwin* | mingw* | pw32* | cegcc*) 8627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8628 # as there is no search path for DLLs. 8629 hardcode_libdir_flag_spec='-L$libdir' 8630 export_dynamic_flag_spec='${wl}--export-all-symbols' 8631 allow_undefined_flag=unsupported 8632 always_export_symbols=no 8633 enable_shared_with_static_runtimes=yes 8634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8635 8636 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8638 # If the export-symbols file already is a .def file (1st line 8639 # is EXPORTS), use it as is; otherwise, prepend... 8640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8641 cp $export_symbols $output_objdir/$soname.def; 8642 else 8643 echo EXPORTS > $output_objdir/$soname.def; 8644 cat $export_symbols >> $output_objdir/$soname.def; 8645 fi~ 8646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8647 else 8648 ld_shlibs=no 8649 fi 8650 ;; 8651 8652 haiku*) 8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8654 link_all_deplibs=yes 8655 ;; 8656 8657 interix[3-9]*) 8658 hardcode_direct=no 8659 hardcode_shlibpath_var=no 8660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8661 export_dynamic_flag_spec='${wl}-E' 8662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8663 # Instead, shared libraries are loaded at an image base (0x10000000 by 8664 # default) and relocated if they conflict, which is a slow very memory 8665 # consuming and fragmenting process. To avoid this, we pick a random, 8666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8667 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8669 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8670 ;; 8671 8672 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8673 tmp_diet=no 8674 if test "$host_os" = linux-dietlibc; then 8675 case $cc_basename in 8676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8677 esac 8678 fi 8679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8680 && test "$tmp_diet" = no 8681 then 8682 tmp_addflag=' $pic_flag' 8683 tmp_sharedflag='-shared' 8684 case $cc_basename,$host_cpu in 8685 pgcc*) # Portland Group C compiler 8686 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8687 tmp_addflag=' $pic_flag' 8688 ;; 8689 pgf77* | pgf90* | pgf95* | pgfortran*) 8690 # Portland Group f77 and f90 compilers 8691 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8692 tmp_addflag=' $pic_flag -Mnomain' ;; 8693 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8694 tmp_addflag=' -i_dynamic' ;; 8695 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8696 tmp_addflag=' -i_dynamic -nofor_main' ;; 8697 ifc* | ifort*) # Intel Fortran compiler 8698 tmp_addflag=' -nofor_main' ;; 8699 lf95*) # Lahey Fortran 8.1 8700 whole_archive_flag_spec= 8701 tmp_sharedflag='--shared' ;; 8702 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8703 tmp_sharedflag='-qmkshrobj' 8704 tmp_addflag= ;; 8705 nvcc*) # Cuda Compiler Driver 2.2 8706 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8707 compiler_needs_object=yes 8708 ;; 8709 esac 8710 case `$CC -V 2>&1 | sed 5q` in 8711 *Sun\ C*) # Sun C 5.9 8712 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8713 compiler_needs_object=yes 8714 tmp_sharedflag='-G' ;; 8715 *Sun\ F*) # Sun Fortran 8.3 8716 tmp_sharedflag='-G' ;; 8717 esac 8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8719 8720 if test "x$supports_anon_versioning" = xyes; then 8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8723 echo "local: *; };" >> $output_objdir/$libname.ver~ 8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8725 fi 8726 8727 case $cc_basename in 8728 xlf* | bgf* | bgxlf* | mpixlf*) 8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8731 hardcode_libdir_flag_spec= 8732 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8733 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8734 if test "x$supports_anon_versioning" = xyes; then 8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8737 echo "local: *; };" >> $output_objdir/$libname.ver~ 8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8739 fi 8740 ;; 8741 esac 8742 else 8743 ld_shlibs=no 8744 fi 8745 ;; 8746 8747 netbsd*) 8748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8750 wlarc= 8751 else 8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8754 fi 8755 ;; 8756 8757 solaris*) 8758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8759 ld_shlibs=no 8760 cat <<_LT_EOF 1>&2 8761 8762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8763 *** create shared libraries on Solaris systems. Therefore, libtool 8764 *** is disabling shared libraries support. We urge you to upgrade GNU 8765 *** binutils to release 2.9.1 or newer. Another option is to modify 8766 *** your PATH or compiler configuration so that the native linker is 8767 *** used, and then restart. 8768 8769 _LT_EOF 8770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8773 else 8774 ld_shlibs=no 8775 fi 8776 ;; 8777 8778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8779 case `$LD -v 2>&1` in 8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8781 ld_shlibs=no 8782 cat <<_LT_EOF 1>&2 8783 8784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8785 *** reliably create shared libraries on SCO systems. Therefore, libtool 8786 *** is disabling shared libraries support. We urge you to upgrade GNU 8787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8788 *** your PATH or compiler configuration so that the native linker is 8789 *** used, and then restart. 8790 8791 _LT_EOF 8792 ;; 8793 *) 8794 # For security reasons, it is highly recommended that you always 8795 # use absolute paths for naming shared libraries, and exclude the 8796 # DT_RUNPATH tag from executables and libraries. But doing so 8797 # requires that you compile everything twice, which is a pain. 8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8802 else 8803 ld_shlibs=no 8804 fi 8805 ;; 8806 esac 8807 ;; 8808 8809 sunos4*) 8810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8811 wlarc= 8812 hardcode_direct=yes 8813 hardcode_shlibpath_var=no 8814 ;; 8815 8816 *) 8817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8820 else 8821 ld_shlibs=no 8822 fi 8823 ;; 8824 esac 8825 8826 if test "$ld_shlibs" = no; then 8827 runpath_var= 8828 hardcode_libdir_flag_spec= 8829 export_dynamic_flag_spec= 8830 whole_archive_flag_spec= 8831 fi 8832 else 8833 # PORTME fill in a description of your system's linker (not GNU ld) 8834 case $host_os in 8835 aix3*) 8836 allow_undefined_flag=unsupported 8837 always_export_symbols=yes 8838 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 8839 # Note: this linker hardcodes the directories in LIBPATH if there 8840 # are no directories specified by -L. 8841 hardcode_minus_L=yes 8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8843 # Neither direct hardcoding nor static linking is supported with a 8844 # broken collect2. 8845 hardcode_direct=unsupported 8846 fi 8847 ;; 8848 8849 aix[4-9]*) 8850 if test "$host_cpu" = ia64; then 8851 # On IA64, the linker does run time linking by default, so we don't 8852 # have to do anything special. 8853 aix_use_runtimelinking=no 8854 exp_sym_flag='-Bexport' 8855 no_entry_flag="" 8856 else 8857 # If we're using GNU nm, then we don't want the "-C" option. 8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8859 # Also, AIX nm treats weak defined symbols like other global 8860 # defined symbols, whereas GNU nm marks them as "W". 8861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8862 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8863 else 8864 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8865 fi 8866 aix_use_runtimelinking=no 8867 8868 # Test if we are trying to use run time linking or normal 8869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8870 # need to do runtime linking. 8871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8872 for ld_flag in $LDFLAGS; do 8873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8874 aix_use_runtimelinking=yes 8875 break 8876 fi 8877 done 8878 ;; 8879 esac 8880 8881 exp_sym_flag='-bexport' 8882 no_entry_flag='-bnoentry' 8883 fi 8884 8885 # When large executables or shared objects are built, AIX ld can 8886 # have problems creating the table of contents. If linking a library 8887 # or program results in "error TOC overflow" add -mminimal-toc to 8888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8890 8891 archive_cmds='' 8892 hardcode_direct=yes 8893 hardcode_direct_absolute=yes 8894 hardcode_libdir_separator=':' 8895 link_all_deplibs=yes 8896 file_list_spec='${wl}-f,' 8897 8898 if test "$GCC" = yes; then 8899 case $host_os in aix4.[012]|aix4.[012].*) 8900 # We only want to do this on AIX 4.2 and lower, the check 8901 # below for broken collect2 doesn't work under 4.3+ 8902 collect2name=`${CC} -print-prog-name=collect2` 8903 if test -f "$collect2name" && 8904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8905 then 8906 # We have reworked collect2 8907 : 8908 else 8909 # We have old collect2 8910 hardcode_direct=unsupported 8911 # It fails to find uninstalled libraries when the uninstalled 8912 # path is not listed in the libpath. Setting hardcode_minus_L 8913 # to unsupported forces relinking 8914 hardcode_minus_L=yes 8915 hardcode_libdir_flag_spec='-L$libdir' 8916 hardcode_libdir_separator= 8917 fi 8918 ;; 8919 esac 8920 shared_flag='-shared' 8921 if test "$aix_use_runtimelinking" = yes; then 8922 shared_flag="$shared_flag "'${wl}-G' 8923 fi 8924 else 8925 # not using gcc 8926 if test "$host_cpu" = ia64; then 8927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8928 # chokes on -Wl,-G. The following line is correct: 8929 shared_flag='-G' 8930 else 8931 if test "$aix_use_runtimelinking" = yes; then 8932 shared_flag='${wl}-G' 8933 else 8934 shared_flag='${wl}-bM:SRE' 8935 fi 8936 fi 8937 fi 8938 8939 export_dynamic_flag_spec='${wl}-bexpall' 8940 # It seems that -bexpall does not export symbols beginning with 8941 # underscore (_), so it is better to generate a list of symbols to export. 8942 always_export_symbols=yes 8943 if test "$aix_use_runtimelinking" = yes; then 8944 # Warning - without using the other runtime loading flags (-brtl), 8945 # -berok will link without error, but may produce a broken library. 8946 allow_undefined_flag='-berok' 8947 # Determine the default libpath from the value encoded in an 8948 # empty executable. 8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950 /* end confdefs.h. */ 8951 8952 int 8953 main () 8954 { 8955 8956 ; 8957 return 0; 8958 } 8959 _ACEOF 8960 if ac_fn_c_try_link "$LINENO"; then : 8961 8962 lt_aix_libpath_sed=' 8963 /Import File Strings/,/^$/ { 8964 /^0/ { 8965 s/^0 *\(.*\)$/\1/ 8966 p 8967 } 8968 }' 8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8970 # Check for a 64-bit object if we didn't find anything. 8971 if test -z "$aix_libpath"; then 8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8973 fi 8974 fi 8975 rm -f core conftest.err conftest.$ac_objext \ 8976 conftest$ac_exeext conftest.$ac_ext 8977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8978 8979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8980 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8981 else 8982 if test "$host_cpu" = ia64; then 8983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8984 allow_undefined_flag="-z nodefs" 8985 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8986 else 8987 # Determine the default libpath from the value encoded in an 8988 # empty executable. 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990 /* end confdefs.h. */ 8991 8992 int 8993 main () 8994 { 8995 8996 ; 8997 return 0; 8998 } 8999 _ACEOF 9000 if ac_fn_c_try_link "$LINENO"; then : 9001 9002 lt_aix_libpath_sed=' 9003 /Import File Strings/,/^$/ { 9004 /^0/ { 9005 s/^0 *\(.*\)$/\1/ 9006 p 9007 } 9008 }' 9009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9010 # Check for a 64-bit object if we didn't find anything. 9011 if test -z "$aix_libpath"; then 9012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9013 fi 9014 fi 9015 rm -f core conftest.err conftest.$ac_objext \ 9016 conftest$ac_exeext conftest.$ac_ext 9017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9018 9019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9020 # Warning - without using the other run time loading flags, 9021 # -berok will link without error, but may produce a broken library. 9022 no_undefined_flag=' ${wl}-bernotok' 9023 allow_undefined_flag=' ${wl}-berok' 9024 if test "$with_gnu_ld" = yes; then 9025 # We only use this code for GNU lds that support --whole-archive. 9026 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9027 else 9028 # Exported symbols can be pulled into shared objects from archives 9029 whole_archive_flag_spec='$convenience' 9030 fi 9031 archive_cmds_need_lc=yes 9032 # This is similar to how AIX traditionally builds its shared libraries. 9033 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9034 fi 9035 fi 9036 ;; 9037 9038 amigaos*) 9039 case $host_cpu in 9040 powerpc) 9041 # see comment about AmigaOS4 .so support 9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9043 archive_expsym_cmds='' 9044 ;; 9045 m68k) 9046 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9047 hardcode_libdir_flag_spec='-L$libdir' 9048 hardcode_minus_L=yes 9049 ;; 9050 esac 9051 ;; 9052 9053 bsdi[45]*) 9054 export_dynamic_flag_spec=-rdynamic 9055 ;; 9056 9057 cygwin* | mingw* | pw32* | cegcc*) 9058 # When not using gcc, we currently assume that we are using 9059 # Microsoft Visual C++. 9060 # hardcode_libdir_flag_spec is actually meaningless, as there is 9061 # no search path for DLLs. 9062 hardcode_libdir_flag_spec=' ' 9063 allow_undefined_flag=unsupported 9064 # Tell ltmain to make .lib files, not .a files. 9065 libext=lib 9066 # Tell ltmain to make .dll files, not .so files. 9067 shrext_cmds=".dll" 9068 # FIXME: Setting linknames here is a bad hack. 9069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9070 # The linker will automatically build a .lib file if we build a DLL. 9071 old_archive_from_new_cmds='true' 9072 # FIXME: Should let the user specify the lib program. 9073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9074 fix_srcfile_path='`cygpath -w "$srcfile"`' 9075 enable_shared_with_static_runtimes=yes 9076 ;; 9077 9078 darwin* | rhapsody*) 9079 9080 9081 archive_cmds_need_lc=no 9082 hardcode_direct=no 9083 hardcode_automatic=yes 9084 hardcode_shlibpath_var=unsupported 9085 if test "$lt_cv_ld_force_load" = "yes"; then 9086 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9087 else 9088 whole_archive_flag_spec='' 9089 fi 9090 link_all_deplibs=yes 9091 allow_undefined_flag="$_lt_dar_allow_undefined" 9092 case $cc_basename in 9093 ifort*) _lt_dar_can_shared=yes ;; 9094 *) _lt_dar_can_shared=$GCC ;; 9095 esac 9096 if test "$_lt_dar_can_shared" = "yes"; then 9097 output_verbose_link_cmd=func_echo_all 9098 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9099 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9100 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9101 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9102 9103 else 9104 ld_shlibs=no 9105 fi 9106 9107 ;; 9108 9109 dgux*) 9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 hardcode_shlibpath_var=no 9113 ;; 9114 9115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9116 # support. Future versions do this automatically, but an explicit c++rt0.o 9117 # does not break anything, and helps significantly (at the cost of a little 9118 # extra space). 9119 freebsd2.2*) 9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9121 hardcode_libdir_flag_spec='-R$libdir' 9122 hardcode_direct=yes 9123 hardcode_shlibpath_var=no 9124 ;; 9125 9126 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9127 freebsd2.*) 9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9129 hardcode_direct=yes 9130 hardcode_minus_L=yes 9131 hardcode_shlibpath_var=no 9132 ;; 9133 9134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9135 freebsd* | dragonfly*) 9136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9137 hardcode_libdir_flag_spec='-R$libdir' 9138 hardcode_direct=yes 9139 hardcode_shlibpath_var=no 9140 ;; 9141 9142 hpux9*) 9143 if test "$GCC" = yes; then 9144 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9145 else 9146 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9147 fi 9148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9149 hardcode_libdir_separator=: 9150 hardcode_direct=yes 9151 9152 # hardcode_minus_L: Not really in the search PATH, 9153 # but as the default location of the library. 9154 hardcode_minus_L=yes 9155 export_dynamic_flag_spec='${wl}-E' 9156 ;; 9157 9158 hpux10*) 9159 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9161 else 9162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9163 fi 9164 if test "$with_gnu_ld" = no; then 9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9166 hardcode_libdir_flag_spec_ld='+b $libdir' 9167 hardcode_libdir_separator=: 9168 hardcode_direct=yes 9169 hardcode_direct_absolute=yes 9170 export_dynamic_flag_spec='${wl}-E' 9171 # hardcode_minus_L: Not really in the search PATH, 9172 # but as the default location of the library. 9173 hardcode_minus_L=yes 9174 fi 9175 ;; 9176 9177 hpux11*) 9178 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9179 case $host_cpu in 9180 hppa*64*) 9181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9182 ;; 9183 ia64*) 9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9185 ;; 9186 *) 9187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9188 ;; 9189 esac 9190 else 9191 case $host_cpu in 9192 hppa*64*) 9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9194 ;; 9195 ia64*) 9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9197 ;; 9198 *) 9199 9200 # Older versions of the 11.00 compiler do not understand -b yet 9201 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9203 $as_echo_n "checking if $CC understands -b... " >&6; } 9204 if ${lt_cv_prog_compiler__b+:} false; then : 9205 $as_echo_n "(cached) " >&6 9206 else 9207 lt_cv_prog_compiler__b=no 9208 save_LDFLAGS="$LDFLAGS" 9209 LDFLAGS="$LDFLAGS -b" 9210 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9212 # The linker can only warn and ignore the option if not recognized 9213 # So say no if there are warnings 9214 if test -s conftest.err; then 9215 # Append any errors to the config.log. 9216 cat conftest.err 1>&5 9217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9219 if diff conftest.exp conftest.er2 >/dev/null; then 9220 lt_cv_prog_compiler__b=yes 9221 fi 9222 else 9223 lt_cv_prog_compiler__b=yes 9224 fi 9225 fi 9226 $RM -r conftest* 9227 LDFLAGS="$save_LDFLAGS" 9228 9229 fi 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9231 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9232 9233 if test x"$lt_cv_prog_compiler__b" = xyes; then 9234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9235 else 9236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9237 fi 9238 9239 ;; 9240 esac 9241 fi 9242 if test "$with_gnu_ld" = no; then 9243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9244 hardcode_libdir_separator=: 9245 9246 case $host_cpu in 9247 hppa*64*|ia64*) 9248 hardcode_direct=no 9249 hardcode_shlibpath_var=no 9250 ;; 9251 *) 9252 hardcode_direct=yes 9253 hardcode_direct_absolute=yes 9254 export_dynamic_flag_spec='${wl}-E' 9255 9256 # hardcode_minus_L: Not really in the search PATH, 9257 # but as the default location of the library. 9258 hardcode_minus_L=yes 9259 ;; 9260 esac 9261 fi 9262 ;; 9263 9264 irix5* | irix6* | nonstopux*) 9265 if test "$GCC" = yes; then 9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9267 # Try to use the -exported_symbol ld option, if it does not 9268 # work, assume that -exports_file does not work either and 9269 # implicitly export all symbols. 9270 save_LDFLAGS="$LDFLAGS" 9271 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273 /* end confdefs.h. */ 9274 int foo(void) {} 9275 _ACEOF 9276 if ac_fn_c_try_link "$LINENO"; then : 9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9278 9279 fi 9280 rm -f core conftest.err conftest.$ac_objext \ 9281 conftest$ac_exeext conftest.$ac_ext 9282 LDFLAGS="$save_LDFLAGS" 9283 else 9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9286 fi 9287 archive_cmds_need_lc='no' 9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9289 hardcode_libdir_separator=: 9290 inherit_rpath=yes 9291 link_all_deplibs=yes 9292 ;; 9293 9294 netbsd*) 9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9297 else 9298 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9299 fi 9300 hardcode_libdir_flag_spec='-R$libdir' 9301 hardcode_direct=yes 9302 hardcode_shlibpath_var=no 9303 ;; 9304 9305 newsos6) 9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9307 hardcode_direct=yes 9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9309 hardcode_libdir_separator=: 9310 hardcode_shlibpath_var=no 9311 ;; 9312 9313 *nto* | *qnx*) 9314 ;; 9315 9316 openbsd*) 9317 if test -f /usr/libexec/ld.so; then 9318 hardcode_direct=yes 9319 hardcode_shlibpath_var=no 9320 hardcode_direct_absolute=yes 9321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9325 export_dynamic_flag_spec='${wl}-E' 9326 else 9327 case $host_os in 9328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9330 hardcode_libdir_flag_spec='-R$libdir' 9331 ;; 9332 *) 9333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9335 ;; 9336 esac 9337 fi 9338 else 9339 ld_shlibs=no 9340 fi 9341 ;; 9342 9343 os2*) 9344 hardcode_libdir_flag_spec='-L$libdir' 9345 hardcode_minus_L=yes 9346 allow_undefined_flag=unsupported 9347 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9349 ;; 9350 9351 osf3*) 9352 if test "$GCC" = yes; then 9353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9354 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9355 else 9356 allow_undefined_flag=' -expect_unresolved \*' 9357 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9358 fi 9359 archive_cmds_need_lc='no' 9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9361 hardcode_libdir_separator=: 9362 ;; 9363 9364 osf4* | osf5*) # as osf3* with the addition of -msym flag 9365 if test "$GCC" = yes; then 9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9367 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9369 else 9370 allow_undefined_flag=' -expect_unresolved \*' 9371 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9372 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9373 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9374 9375 # Both c and cxx compiler support -rpath directly 9376 hardcode_libdir_flag_spec='-rpath $libdir' 9377 fi 9378 archive_cmds_need_lc='no' 9379 hardcode_libdir_separator=: 9380 ;; 9381 9382 solaris*) 9383 no_undefined_flag=' -z defs' 9384 if test "$GCC" = yes; then 9385 wlarc='${wl}' 9386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9389 else 9390 case `$CC -V 2>&1` in 9391 *"Compilers 5.0"*) 9392 wlarc='' 9393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9396 ;; 9397 *) 9398 wlarc='${wl}' 9399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9402 ;; 9403 esac 9404 fi 9405 hardcode_libdir_flag_spec='-R$libdir' 9406 hardcode_shlibpath_var=no 9407 case $host_os in 9408 solaris2.[0-5] | solaris2.[0-5].*) ;; 9409 *) 9410 # The compiler driver will combine and reorder linker options, 9411 # but understands `-z linker_flag'. GCC discards it without `$wl', 9412 # but is careful enough not to reorder. 9413 # Supported since Solaris 2.6 (maybe 2.5.1?) 9414 if test "$GCC" = yes; then 9415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9416 else 9417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9418 fi 9419 ;; 9420 esac 9421 link_all_deplibs=yes 9422 ;; 9423 9424 sunos4*) 9425 if test "x$host_vendor" = xsequent; then 9426 # Use $CC to link under sequent, because it throws in some extra .o 9427 # files that make .init and .fini sections work. 9428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9429 else 9430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9431 fi 9432 hardcode_libdir_flag_spec='-L$libdir' 9433 hardcode_direct=yes 9434 hardcode_minus_L=yes 9435 hardcode_shlibpath_var=no 9436 ;; 9437 9438 sysv4) 9439 case $host_vendor in 9440 sni) 9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9442 hardcode_direct=yes # is this really true??? 9443 ;; 9444 siemens) 9445 ## LD is ld it makes a PLAMLIB 9446 ## CC just makes a GrossModule. 9447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9448 reload_cmds='$CC -r -o $output$reload_objs' 9449 hardcode_direct=no 9450 ;; 9451 motorola) 9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9454 ;; 9455 esac 9456 runpath_var='LD_RUN_PATH' 9457 hardcode_shlibpath_var=no 9458 ;; 9459 9460 sysv4.3*) 9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9462 hardcode_shlibpath_var=no 9463 export_dynamic_flag_spec='-Bexport' 9464 ;; 9465 9466 sysv4*MP*) 9467 if test -d /usr/nec; then 9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9469 hardcode_shlibpath_var=no 9470 runpath_var=LD_RUN_PATH 9471 hardcode_runpath_var=yes 9472 ld_shlibs=yes 9473 fi 9474 ;; 9475 9476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9477 no_undefined_flag='${wl}-z,text' 9478 archive_cmds_need_lc=no 9479 hardcode_shlibpath_var=no 9480 runpath_var='LD_RUN_PATH' 9481 9482 if test "$GCC" = yes; then 9483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9485 else 9486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9488 fi 9489 ;; 9490 9491 sysv5* | sco3.2v5* | sco5v6*) 9492 # Note: We can NOT use -z defs as we might desire, because we do not 9493 # link with -lc, and that would cause any symbols used from libc to 9494 # always be unresolved, which means just about no library would 9495 # ever link correctly. If we're not using GNU ld we use -z text 9496 # though, which does catch some bad symbols but isn't as heavy-handed 9497 # as -z defs. 9498 no_undefined_flag='${wl}-z,text' 9499 allow_undefined_flag='${wl}-z,nodefs' 9500 archive_cmds_need_lc=no 9501 hardcode_shlibpath_var=no 9502 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9503 hardcode_libdir_separator=':' 9504 link_all_deplibs=yes 9505 export_dynamic_flag_spec='${wl}-Bexport' 9506 runpath_var='LD_RUN_PATH' 9507 9508 if test "$GCC" = yes; then 9509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9511 else 9512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 fi 9515 ;; 9516 9517 uts4*) 9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9519 hardcode_libdir_flag_spec='-L$libdir' 9520 hardcode_shlibpath_var=no 9521 ;; 9522 9523 *) 9524 ld_shlibs=no 9525 ;; 9526 esac 9527 9528 if test x$host_vendor = xsni; then 9529 case $host in 9530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9531 export_dynamic_flag_spec='${wl}-Blargedynsym' 9532 ;; 9533 esac 9534 fi 9535 fi 9536 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9538 $as_echo "$ld_shlibs" >&6; } 9539 test "$ld_shlibs" = no && can_build_shared=no 9540 9541 with_gnu_ld=$with_gnu_ld 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 # 9558 # Do we need to explicitly link libc? 9559 # 9560 case "x$archive_cmds_need_lc" in 9561 x|xyes) 9562 # Assume -lc should be added 9563 archive_cmds_need_lc=yes 9564 9565 if test "$enable_shared" = yes && test "$GCC" = yes; then 9566 case $archive_cmds in 9567 *'~'*) 9568 # FIXME: we may have to deal with multi-command sequences. 9569 ;; 9570 '$CC '*) 9571 # Test whether the compiler implicitly links with -lc since on some 9572 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9573 # to ld, don't add -lc before -lgcc. 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9576 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578 else 9579 $RM conftest* 9580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9581 9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9583 (eval $ac_compile) 2>&5 9584 ac_status=$? 9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9586 test $ac_status = 0; } 2>conftest.err; then 9587 soname=conftest 9588 lib=conftest 9589 libobjs=conftest.$ac_objext 9590 deplibs= 9591 wl=$lt_prog_compiler_wl 9592 pic_flag=$lt_prog_compiler_pic 9593 compiler_flags=-v 9594 linker_flags=-v 9595 verstring= 9596 output_objdir=. 9597 libname=conftest 9598 lt_save_allow_undefined_flag=$allow_undefined_flag 9599 allow_undefined_flag= 9600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9601 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9602 ac_status=$? 9603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9604 test $ac_status = 0; } 9605 then 9606 lt_cv_archive_cmds_need_lc=no 9607 else 9608 lt_cv_archive_cmds_need_lc=yes 9609 fi 9610 allow_undefined_flag=$lt_save_allow_undefined_flag 9611 else 9612 cat conftest.err 1>&5 9613 fi 9614 $RM conftest* 9615 9616 fi 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9618 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9619 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9620 ;; 9621 esac 9622 fi 9623 ;; 9624 esac 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9783 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9784 9785 if test "$GCC" = yes; then 9786 case $host_os in 9787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9788 *) lt_awk_arg="/^libraries:/" ;; 9789 esac 9790 case $host_os in 9791 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9792 *) lt_sed_strip_eq="s,=/,/,g" ;; 9793 esac 9794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9795 case $lt_search_path_spec in 9796 *\;*) 9797 # if the path contains ";" then we assume it to be the separator 9798 # otherwise default to the standard path separator (i.e. ":") - it is 9799 # assumed that no part of a normal pathname contains ";" but that should 9800 # okay in the real world where ";" in dirpaths is itself problematic. 9801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9802 ;; 9803 *) 9804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9805 ;; 9806 esac 9807 # Ok, now we have the path, separated by spaces, we can step through it 9808 # and add multilib dir if necessary. 9809 lt_tmp_lt_search_path_spec= 9810 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9811 for lt_sys_path in $lt_search_path_spec; do 9812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9814 else 9815 test -d "$lt_sys_path" && \ 9816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9817 fi 9818 done 9819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9820 BEGIN {RS=" "; FS="/|\n";} { 9821 lt_foo=""; 9822 lt_count=0; 9823 for (lt_i = NF; lt_i > 0; lt_i--) { 9824 if ($lt_i != "" && $lt_i != ".") { 9825 if ($lt_i == "..") { 9826 lt_count++; 9827 } else { 9828 if (lt_count == 0) { 9829 lt_foo="/" $lt_i lt_foo; 9830 } else { 9831 lt_count--; 9832 } 9833 } 9834 } 9835 } 9836 if (lt_foo != "") { lt_freq[lt_foo]++; } 9837 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9838 }'` 9839 # AWK program above erroneously prepends '/' to C:/dos/paths 9840 # for these hosts. 9841 case $host_os in 9842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9843 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9844 esac 9845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9846 else 9847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9848 fi 9849 library_names_spec= 9850 libname_spec='lib$name' 9851 soname_spec= 9852 shrext_cmds=".so" 9853 postinstall_cmds= 9854 postuninstall_cmds= 9855 finish_cmds= 9856 finish_eval= 9857 shlibpath_var= 9858 shlibpath_overrides_runpath=unknown 9859 version_type=none 9860 dynamic_linker="$host_os ld.so" 9861 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9862 need_lib_prefix=unknown 9863 hardcode_into_libs=no 9864 9865 # when you set need_version to no, make sure it does not cause -set_version 9866 # flags to be left without arguments 9867 need_version=unknown 9868 9869 case $host_os in 9870 aix3*) 9871 version_type=linux 9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9873 shlibpath_var=LIBPATH 9874 9875 # AIX 3 has no versioning support, so we append a major version to the name. 9876 soname_spec='${libname}${release}${shared_ext}$major' 9877 ;; 9878 9879 aix[4-9]*) 9880 version_type=linux 9881 need_lib_prefix=no 9882 need_version=no 9883 hardcode_into_libs=yes 9884 if test "$host_cpu" = ia64; then 9885 # AIX 5 supports IA64 9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9887 shlibpath_var=LD_LIBRARY_PATH 9888 else 9889 # With GCC up to 2.95.x, collect2 would create an import file 9890 # for dependence libraries. The import file would start with 9891 # the line `#! .'. This would cause the generated library to 9892 # depend on `.', always an invalid library. This was fixed in 9893 # development snapshots of GCC prior to 3.0. 9894 case $host_os in 9895 aix4 | aix4.[01] | aix4.[01].*) 9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9897 echo ' yes ' 9898 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9899 : 9900 else 9901 can_build_shared=no 9902 fi 9903 ;; 9904 esac 9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9906 # soname into executable. Probably we can add versioning support to 9907 # collect2, so additional links can be useful in future. 9908 if test "$aix_use_runtimelinking" = yes; then 9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9910 # instead of lib<name>.a to let people know that these are not 9911 # typical AIX shared libraries. 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9913 else 9914 # We preserve .a as extension for shared libraries through AIX4.2 9915 # and later when we are not doing run time linking. 9916 library_names_spec='${libname}${release}.a $libname.a' 9917 soname_spec='${libname}${release}${shared_ext}$major' 9918 fi 9919 shlibpath_var=LIBPATH 9920 fi 9921 ;; 9922 9923 amigaos*) 9924 case $host_cpu in 9925 powerpc) 9926 # Since July 2007 AmigaOS4 officially supports .so libraries. 9927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9929 ;; 9930 m68k) 9931 library_names_spec='$libname.ixlibrary $libname.a' 9932 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9933 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9934 ;; 9935 esac 9936 ;; 9937 9938 beos*) 9939 library_names_spec='${libname}${shared_ext}' 9940 dynamic_linker="$host_os ld.so" 9941 shlibpath_var=LIBRARY_PATH 9942 ;; 9943 9944 bsdi[45]*) 9945 version_type=linux 9946 need_version=no 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9950 shlibpath_var=LD_LIBRARY_PATH 9951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9953 # the default ld.so.conf also contains /usr/contrib/lib and 9954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9955 # libtool to hard-code these into programs 9956 ;; 9957 9958 cygwin* | mingw* | pw32* | cegcc*) 9959 version_type=windows 9960 shrext_cmds=".dll" 9961 need_version=no 9962 need_lib_prefix=no 9963 9964 case $GCC,$host_os in 9965 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9966 library_names_spec='$libname.dll.a' 9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9968 postinstall_cmds='base_file=`basename \${file}`~ 9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9970 dldir=$destdir/`dirname \$dlpath`~ 9971 test -d \$dldir || mkdir -p \$dldir~ 9972 $install_prog $dir/$dlname \$dldir/$dlname~ 9973 chmod a+x \$dldir/$dlname~ 9974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9976 fi' 9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9978 dlpath=$dir/\$dldll~ 9979 $RM \$dlpath' 9980 shlibpath_overrides_runpath=yes 9981 9982 case $host_os in 9983 cygwin*) 9984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9986 9987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9988 ;; 9989 mingw* | cegcc*) 9990 # MinGW DLLs use traditional 'lib' prefix 9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9992 ;; 9993 pw32*) 9994 # pw32 DLLs use 'pw' prefix rather than 'lib' 9995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9996 ;; 9997 esac 9998 ;; 9999 10000 *) 10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10002 ;; 10003 esac 10004 dynamic_linker='Win32 ld.exe' 10005 # FIXME: first we should search . and the directory the executable is in 10006 shlibpath_var=PATH 10007 ;; 10008 10009 darwin* | rhapsody*) 10010 dynamic_linker="$host_os dyld" 10011 version_type=darwin 10012 need_lib_prefix=no 10013 need_version=no 10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10015 soname_spec='${libname}${release}${major}$shared_ext' 10016 shlibpath_overrides_runpath=yes 10017 shlibpath_var=DYLD_LIBRARY_PATH 10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10019 10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10022 ;; 10023 10024 dgux*) 10025 version_type=linux 10026 need_lib_prefix=no 10027 need_version=no 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10029 soname_spec='${libname}${release}${shared_ext}$major' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 ;; 10032 10033 freebsd* | dragonfly*) 10034 # DragonFly does not have aout. When/if they implement a new 10035 # versioning mechanism, adjust this. 10036 if test -x /usr/bin/objformat; then 10037 objformat=`/usr/bin/objformat` 10038 else 10039 case $host_os in 10040 freebsd[23].*) objformat=aout ;; 10041 *) objformat=elf ;; 10042 esac 10043 fi 10044 version_type=freebsd-$objformat 10045 case $version_type in 10046 freebsd-elf*) 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10048 need_version=no 10049 need_lib_prefix=no 10050 ;; 10051 freebsd-*) 10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10053 need_version=yes 10054 ;; 10055 esac 10056 shlibpath_var=LD_LIBRARY_PATH 10057 case $host_os in 10058 freebsd2.*) 10059 shlibpath_overrides_runpath=yes 10060 ;; 10061 freebsd3.[01]* | freebsdelf3.[01]*) 10062 shlibpath_overrides_runpath=yes 10063 hardcode_into_libs=yes 10064 ;; 10065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10067 shlibpath_overrides_runpath=no 10068 hardcode_into_libs=yes 10069 ;; 10070 *) # from 4.6 on, and DragonFly 10071 shlibpath_overrides_runpath=yes 10072 hardcode_into_libs=yes 10073 ;; 10074 esac 10075 ;; 10076 10077 haiku*) 10078 version_type=linux 10079 need_lib_prefix=no 10080 need_version=no 10081 dynamic_linker="$host_os runtime_loader" 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 shlibpath_var=LIBRARY_PATH 10085 shlibpath_overrides_runpath=yes 10086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10087 hardcode_into_libs=yes 10088 ;; 10089 10090 hpux9* | hpux10* | hpux11*) 10091 # Give a soname corresponding to the major version so that dld.sl refuses to 10092 # link against other versions. 10093 version_type=sunos 10094 need_lib_prefix=no 10095 need_version=no 10096 case $host_cpu in 10097 ia64*) 10098 shrext_cmds='.so' 10099 hardcode_into_libs=yes 10100 dynamic_linker="$host_os dld.so" 10101 shlibpath_var=LD_LIBRARY_PATH 10102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 if test "X$HPUX_IA64_MODE" = X32; then 10106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10107 else 10108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10109 fi 10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10111 ;; 10112 hppa*64*) 10113 shrext_cmds='.sl' 10114 hardcode_into_libs=yes 10115 dynamic_linker="$host_os dld.sl" 10116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10119 soname_spec='${libname}${release}${shared_ext}$major' 10120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10122 ;; 10123 *) 10124 shrext_cmds='.sl' 10125 dynamic_linker="$host_os dld.sl" 10126 shlibpath_var=SHLIB_PATH 10127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10129 soname_spec='${libname}${release}${shared_ext}$major' 10130 ;; 10131 esac 10132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10133 postinstall_cmds='chmod 555 $lib' 10134 # or fails outright, so override atomically: 10135 install_override_mode=555 10136 ;; 10137 10138 interix[3-9]*) 10139 version_type=linux 10140 need_lib_prefix=no 10141 need_version=no 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10145 shlibpath_var=LD_LIBRARY_PATH 10146 shlibpath_overrides_runpath=no 10147 hardcode_into_libs=yes 10148 ;; 10149 10150 irix5* | irix6* | nonstopux*) 10151 case $host_os in 10152 nonstopux*) version_type=nonstopux ;; 10153 *) 10154 if test "$lt_cv_prog_gnu_ld" = yes; then 10155 version_type=linux 10156 else 10157 version_type=irix 10158 fi ;; 10159 esac 10160 need_lib_prefix=no 10161 need_version=no 10162 soname_spec='${libname}${release}${shared_ext}$major' 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10164 case $host_os in 10165 irix5* | nonstopux*) 10166 libsuff= shlibsuff= 10167 ;; 10168 *) 10169 case $LD in # libtool.m4 will add one of these switches to LD 10170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10171 libsuff= shlibsuff= libmagic=32-bit;; 10172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10173 libsuff=32 shlibsuff=N32 libmagic=N32;; 10174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10176 *) libsuff= shlibsuff= libmagic=never-match;; 10177 esac 10178 ;; 10179 esac 10180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10181 shlibpath_overrides_runpath=no 10182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10184 hardcode_into_libs=yes 10185 ;; 10186 10187 # No shared lib support for Linux oldld, aout, or coff. 10188 linux*oldld* | linux*aout* | linux*coff*) 10189 dynamic_linker=no 10190 ;; 10191 10192 # This must be Linux ELF. 10193 10194 # uclinux* changes (here and below) have been submitted to the libtool 10195 # project, but have not yet been accepted: they are GCC-local changes 10196 # for the time being. (See 10197 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10198 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10199 version_type=linux 10200 need_lib_prefix=no 10201 need_version=no 10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10203 soname_spec='${libname}${release}${shared_ext}$major' 10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10205 shlibpath_var=LD_LIBRARY_PATH 10206 shlibpath_overrides_runpath=no 10207 10208 # Some binutils ld are patched to set DT_RUNPATH 10209 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211 else 10212 lt_cv_shlibpath_overrides_runpath=no 10213 save_LDFLAGS=$LDFLAGS 10214 save_libdir=$libdir 10215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218 /* end confdefs.h. */ 10219 10220 int 10221 main () 10222 { 10223 10224 ; 10225 return 0; 10226 } 10227 _ACEOF 10228 if ac_fn_c_try_link "$LINENO"; then : 10229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10230 lt_cv_shlibpath_overrides_runpath=yes 10231 fi 10232 fi 10233 rm -f core conftest.err conftest.$ac_objext \ 10234 conftest$ac_exeext conftest.$ac_ext 10235 LDFLAGS=$save_LDFLAGS 10236 libdir=$save_libdir 10237 10238 fi 10239 10240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10241 10242 # This implies no fast_install, which is unacceptable. 10243 # Some rework will be needed to allow for fast_install 10244 # before this can be enabled. 10245 hardcode_into_libs=yes 10246 10247 # Append ld.so.conf contents to the search path 10248 if test -f /etc/ld.so.conf; then 10249 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10251 fi 10252 10253 # We used to test for /lib/ld.so.1 and disable shared libraries on 10254 # powerpc, because MkLinux only supported shared libraries with the 10255 # GNU dynamic linker. Since this was broken with cross compilers, 10256 # most powerpc-linux boxes support dynamic linking these days and 10257 # people can always --disable-shared, the test was removed, and we 10258 # assume the GNU/Linux dynamic linker is in use. 10259 dynamic_linker='GNU/Linux ld.so' 10260 ;; 10261 10262 netbsd*) 10263 version_type=sunos 10264 need_lib_prefix=no 10265 need_version=no 10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10269 dynamic_linker='NetBSD (a.out) ld.so' 10270 else 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 dynamic_linker='NetBSD ld.elf_so' 10274 fi 10275 shlibpath_var=LD_LIBRARY_PATH 10276 shlibpath_overrides_runpath=yes 10277 hardcode_into_libs=yes 10278 ;; 10279 10280 newsos6) 10281 version_type=linux 10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10283 shlibpath_var=LD_LIBRARY_PATH 10284 shlibpath_overrides_runpath=yes 10285 ;; 10286 10287 *nto* | *qnx*) 10288 version_type=qnx 10289 need_lib_prefix=no 10290 need_version=no 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 shlibpath_var=LD_LIBRARY_PATH 10294 shlibpath_overrides_runpath=no 10295 hardcode_into_libs=yes 10296 dynamic_linker='ldqnx.so' 10297 ;; 10298 10299 openbsd*) 10300 version_type=sunos 10301 sys_lib_dlsearch_path_spec="/usr/lib" 10302 need_lib_prefix=no 10303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10304 case $host_os in 10305 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10306 *) need_version=no ;; 10307 esac 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10310 shlibpath_var=LD_LIBRARY_PATH 10311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10312 case $host_os in 10313 openbsd2.[89] | openbsd2.[89].*) 10314 shlibpath_overrides_runpath=no 10315 ;; 10316 *) 10317 shlibpath_overrides_runpath=yes 10318 ;; 10319 esac 10320 else 10321 shlibpath_overrides_runpath=yes 10322 fi 10323 ;; 10324 10325 os2*) 10326 libname_spec='$name' 10327 shrext_cmds=".dll" 10328 need_lib_prefix=no 10329 library_names_spec='$libname${shared_ext} $libname.a' 10330 dynamic_linker='OS/2 ld.exe' 10331 shlibpath_var=LIBPATH 10332 ;; 10333 10334 osf3* | osf4* | osf5*) 10335 version_type=osf 10336 need_lib_prefix=no 10337 need_version=no 10338 soname_spec='${libname}${release}${shared_ext}$major' 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 shlibpath_var=LD_LIBRARY_PATH 10341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10343 ;; 10344 10345 rdos*) 10346 dynamic_linker=no 10347 ;; 10348 10349 solaris*) 10350 version_type=linux 10351 need_lib_prefix=no 10352 need_version=no 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 shlibpath_var=LD_LIBRARY_PATH 10356 shlibpath_overrides_runpath=yes 10357 hardcode_into_libs=yes 10358 # ldd complains unless libraries are executable 10359 postinstall_cmds='chmod +x $lib' 10360 ;; 10361 10362 sunos4*) 10363 version_type=sunos 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 shlibpath_overrides_runpath=yes 10368 if test "$with_gnu_ld" = yes; then 10369 need_lib_prefix=no 10370 fi 10371 need_version=yes 10372 ;; 10373 10374 sysv4 | sysv4.3*) 10375 version_type=linux 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 case $host_vendor in 10380 sni) 10381 shlibpath_overrides_runpath=no 10382 need_lib_prefix=no 10383 runpath_var=LD_RUN_PATH 10384 ;; 10385 siemens) 10386 need_lib_prefix=no 10387 ;; 10388 motorola) 10389 need_lib_prefix=no 10390 need_version=no 10391 shlibpath_overrides_runpath=no 10392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10393 ;; 10394 esac 10395 ;; 10396 10397 sysv4*MP*) 10398 if test -d /usr/nec ;then 10399 version_type=linux 10400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10401 soname_spec='$libname${shared_ext}.$major' 10402 shlibpath_var=LD_LIBRARY_PATH 10403 fi 10404 ;; 10405 10406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10407 version_type=freebsd-elf 10408 need_lib_prefix=no 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 shlibpath_var=LD_LIBRARY_PATH 10413 shlibpath_overrides_runpath=yes 10414 hardcode_into_libs=yes 10415 if test "$with_gnu_ld" = yes; then 10416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10417 else 10418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10419 case $host_os in 10420 sco3.2v5*) 10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10422 ;; 10423 esac 10424 fi 10425 sys_lib_dlsearch_path_spec='/usr/lib' 10426 ;; 10427 10428 tpf*) 10429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10430 version_type=linux 10431 need_lib_prefix=no 10432 need_version=no 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10434 shlibpath_var=LD_LIBRARY_PATH 10435 shlibpath_overrides_runpath=no 10436 hardcode_into_libs=yes 10437 ;; 10438 10439 uts4*) 10440 version_type=linux 10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10442 soname_spec='${libname}${release}${shared_ext}$major' 10443 shlibpath_var=LD_LIBRARY_PATH 10444 ;; 10445 10446 # Shared libraries for VwWorks, >= 7 only at this stage 10447 # and (fpic) still incompatible with "large" code models 10448 # in a few configurations. Only for RTP mode in any case, 10449 # and upon explicit request at configure time. 10450 vxworks7*) 10451 dynamic_linker=no 10452 case ${with_multisubdir}-${enable_shared} in 10453 *large*) 10454 ;; 10455 *mrtp*-yes) 10456 version_type=linux 10457 need_lib_prefix=no 10458 need_version=no 10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10460 soname_spec='${libname}${release}${shared_ext}$major' 10461 dynamic_linker="$host_os module_loader" 10462 ;; 10463 esac 10464 ;; 10465 *) 10466 dynamic_linker=no 10467 ;; 10468 esac 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10470 $as_echo "$dynamic_linker" >&6; } 10471 test "$dynamic_linker" = no && can_build_shared=no 10472 10473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10474 if test "$GCC" = yes; then 10475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10476 fi 10477 10478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10479 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10480 fi 10481 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10482 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10483 fi 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10577 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10578 hardcode_action= 10579 if test -n "$hardcode_libdir_flag_spec" || 10580 test -n "$runpath_var" || 10581 test "X$hardcode_automatic" = "Xyes" ; then 10582 10583 # We can hardcode non-existent directories. 10584 if test "$hardcode_direct" != no && 10585 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10586 # have to relink, otherwise we might link with an installed library 10587 # when we should be linking with a yet-to-be-installed one 10588 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10589 test "$hardcode_minus_L" != no; then 10590 # Linking always hardcodes the temporary library directory. 10591 hardcode_action=relink 10592 else 10593 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10594 hardcode_action=immediate 10595 fi 10596 else 10597 # We cannot hardcode anything, or else we can only hardcode existing 10598 # directories. 10599 hardcode_action=unsupported 10600 fi 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10602 $as_echo "$hardcode_action" >&6; } 10603 10604 if test "$hardcode_action" = relink || 10605 test "$inherit_rpath" = yes; then 10606 # Fast installation is not supported 10607 enable_fast_install=no 10608 elif test "$shlibpath_overrides_runpath" = yes || 10609 test "$enable_shared" = no; then 10610 # Fast installation is not necessary 10611 enable_fast_install=needless 10612 fi 10613 10614 10615 10616 10617 10618 10619 if test "x$enable_dlopen" != xyes; then 10620 enable_dlopen=unknown 10621 enable_dlopen_self=unknown 10622 enable_dlopen_self_static=unknown 10623 else 10624 lt_cv_dlopen=no 10625 lt_cv_dlopen_libs= 10626 10627 case $host_os in 10628 beos*) 10629 lt_cv_dlopen="load_add_on" 10630 lt_cv_dlopen_libs= 10631 lt_cv_dlopen_self=yes 10632 ;; 10633 10634 mingw* | pw32* | cegcc*) 10635 lt_cv_dlopen="LoadLibrary" 10636 lt_cv_dlopen_libs= 10637 ;; 10638 10639 cygwin*) 10640 lt_cv_dlopen="dlopen" 10641 lt_cv_dlopen_libs= 10642 ;; 10643 10644 darwin*) 10645 # if libdl is installed we need to link against it 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10647 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10648 if ${ac_cv_lib_dl_dlopen+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650 else 10651 ac_check_lib_save_LIBS=$LIBS 10652 LIBS="-ldl $LIBS" 10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10654 /* end confdefs.h. */ 10655 10656 /* Override any GCC internal prototype to avoid an error. 10657 Use char because int might match the return type of a GCC 10658 builtin and then its argument prototype would still apply. */ 10659 #ifdef __cplusplus 10660 extern "C" 10661 #endif 10662 char dlopen (); 10663 int 10664 main () 10665 { 10666 return dlopen (); 10667 ; 10668 return 0; 10669 } 10670 _ACEOF 10671 if ac_fn_c_try_link "$LINENO"; then : 10672 ac_cv_lib_dl_dlopen=yes 10673 else 10674 ac_cv_lib_dl_dlopen=no 10675 fi 10676 rm -f core conftest.err conftest.$ac_objext \ 10677 conftest$ac_exeext conftest.$ac_ext 10678 LIBS=$ac_check_lib_save_LIBS 10679 fi 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10682 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10684 else 10685 10686 lt_cv_dlopen="dyld" 10687 lt_cv_dlopen_libs= 10688 lt_cv_dlopen_self=yes 10689 10690 fi 10691 10692 ;; 10693 10694 *) 10695 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10696 if test "x$ac_cv_func_shl_load" = xyes; then : 10697 lt_cv_dlopen="shl_load" 10698 else 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10700 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10701 if ${ac_cv_lib_dld_shl_load+:} false; then : 10702 $as_echo_n "(cached) " >&6 10703 else 10704 ac_check_lib_save_LIBS=$LIBS 10705 LIBS="-ldld $LIBS" 10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10707 /* end confdefs.h. */ 10708 10709 /* Override any GCC internal prototype to avoid an error. 10710 Use char because int might match the return type of a GCC 10711 builtin and then its argument prototype would still apply. */ 10712 #ifdef __cplusplus 10713 extern "C" 10714 #endif 10715 char shl_load (); 10716 int 10717 main () 10718 { 10719 return shl_load (); 10720 ; 10721 return 0; 10722 } 10723 _ACEOF 10724 if ac_fn_c_try_link "$LINENO"; then : 10725 ac_cv_lib_dld_shl_load=yes 10726 else 10727 ac_cv_lib_dld_shl_load=no 10728 fi 10729 rm -f core conftest.err conftest.$ac_objext \ 10730 conftest$ac_exeext conftest.$ac_ext 10731 LIBS=$ac_check_lib_save_LIBS 10732 fi 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10734 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10735 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10736 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10737 else 10738 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10739 if test "x$ac_cv_func_dlopen" = xyes; then : 10740 lt_cv_dlopen="dlopen" 10741 else 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10743 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10744 if ${ac_cv_lib_dl_dlopen+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746 else 10747 ac_check_lib_save_LIBS=$LIBS 10748 LIBS="-ldl $LIBS" 10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750 /* end confdefs.h. */ 10751 10752 /* Override any GCC internal prototype to avoid an error. 10753 Use char because int might match the return type of a GCC 10754 builtin and then its argument prototype would still apply. */ 10755 #ifdef __cplusplus 10756 extern "C" 10757 #endif 10758 char dlopen (); 10759 int 10760 main () 10761 { 10762 return dlopen (); 10763 ; 10764 return 0; 10765 } 10766 _ACEOF 10767 if ac_fn_c_try_link "$LINENO"; then : 10768 ac_cv_lib_dl_dlopen=yes 10769 else 10770 ac_cv_lib_dl_dlopen=no 10771 fi 10772 rm -f core conftest.err conftest.$ac_objext \ 10773 conftest$ac_exeext conftest.$ac_ext 10774 LIBS=$ac_check_lib_save_LIBS 10775 fi 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10778 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10780 else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10782 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10783 if ${ac_cv_lib_svld_dlopen+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785 else 10786 ac_check_lib_save_LIBS=$LIBS 10787 LIBS="-lsvld $LIBS" 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789 /* end confdefs.h. */ 10790 10791 /* Override any GCC internal prototype to avoid an error. 10792 Use char because int might match the return type of a GCC 10793 builtin and then its argument prototype would still apply. */ 10794 #ifdef __cplusplus 10795 extern "C" 10796 #endif 10797 char dlopen (); 10798 int 10799 main () 10800 { 10801 return dlopen (); 10802 ; 10803 return 0; 10804 } 10805 _ACEOF 10806 if ac_fn_c_try_link "$LINENO"; then : 10807 ac_cv_lib_svld_dlopen=yes 10808 else 10809 ac_cv_lib_svld_dlopen=no 10810 fi 10811 rm -f core conftest.err conftest.$ac_objext \ 10812 conftest$ac_exeext conftest.$ac_ext 10813 LIBS=$ac_check_lib_save_LIBS 10814 fi 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10816 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10817 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10819 else 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10821 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10822 if ${ac_cv_lib_dld_dld_link+:} false; then : 10823 $as_echo_n "(cached) " >&6 10824 else 10825 ac_check_lib_save_LIBS=$LIBS 10826 LIBS="-ldld $LIBS" 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828 /* end confdefs.h. */ 10829 10830 /* Override any GCC internal prototype to avoid an error. 10831 Use char because int might match the return type of a GCC 10832 builtin and then its argument prototype would still apply. */ 10833 #ifdef __cplusplus 10834 extern "C" 10835 #endif 10836 char dld_link (); 10837 int 10838 main () 10839 { 10840 return dld_link (); 10841 ; 10842 return 0; 10843 } 10844 _ACEOF 10845 if ac_fn_c_try_link "$LINENO"; then : 10846 ac_cv_lib_dld_dld_link=yes 10847 else 10848 ac_cv_lib_dld_dld_link=no 10849 fi 10850 rm -f core conftest.err conftest.$ac_objext \ 10851 conftest$ac_exeext conftest.$ac_ext 10852 LIBS=$ac_check_lib_save_LIBS 10853 fi 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10855 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10856 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10858 fi 10859 10860 10861 fi 10862 10863 10864 fi 10865 10866 10867 fi 10868 10869 10870 fi 10871 10872 10873 fi 10874 10875 ;; 10876 esac 10877 10878 if test "x$lt_cv_dlopen" != xno; then 10879 enable_dlopen=yes 10880 else 10881 enable_dlopen=no 10882 fi 10883 10884 case $lt_cv_dlopen in 10885 dlopen) 10886 save_CPPFLAGS="$CPPFLAGS" 10887 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10888 10889 save_LDFLAGS="$LDFLAGS" 10890 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10891 10892 save_LIBS="$LIBS" 10893 LIBS="$lt_cv_dlopen_libs $LIBS" 10894 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10896 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10897 if ${lt_cv_dlopen_self+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899 else 10900 if test "$cross_compiling" = yes; then : 10901 lt_cv_dlopen_self=cross 10902 else 10903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10904 lt_status=$lt_dlunknown 10905 cat > conftest.$ac_ext <<_LT_EOF 10906 #line 10906 "configure" 10907 #include "confdefs.h" 10908 10909 #if HAVE_DLFCN_H 10910 #include <dlfcn.h> 10911 #endif 10912 10913 #include <stdio.h> 10914 10915 #ifdef RTLD_GLOBAL 10916 # define LT_DLGLOBAL RTLD_GLOBAL 10917 #else 10918 # ifdef DL_GLOBAL 10919 # define LT_DLGLOBAL DL_GLOBAL 10920 # else 10921 # define LT_DLGLOBAL 0 10922 # endif 10923 #endif 10924 10925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10926 find out it does not work in some platform. */ 10927 #ifndef LT_DLLAZY_OR_NOW 10928 # ifdef RTLD_LAZY 10929 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10930 # else 10931 # ifdef DL_LAZY 10932 # define LT_DLLAZY_OR_NOW DL_LAZY 10933 # else 10934 # ifdef RTLD_NOW 10935 # define LT_DLLAZY_OR_NOW RTLD_NOW 10936 # else 10937 # ifdef DL_NOW 10938 # define LT_DLLAZY_OR_NOW DL_NOW 10939 # else 10940 # define LT_DLLAZY_OR_NOW 0 10941 # endif 10942 # endif 10943 # endif 10944 # endif 10945 #endif 10946 10947 /* When -fvisbility=hidden is used, assume the code has been annotated 10948 correspondingly for the symbols needed. */ 10949 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10950 void fnord () __attribute__((visibility("default"))); 10951 #endif 10952 10953 void fnord () { int i=42; } 10954 int main () 10955 { 10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10957 int status = $lt_dlunknown; 10958 10959 if (self) 10960 { 10961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10962 else 10963 { 10964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10965 else puts (dlerror ()); 10966 } 10967 /* dlclose (self); */ 10968 } 10969 else 10970 puts (dlerror ()); 10971 10972 return status; 10973 } 10974 _LT_EOF 10975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10976 (eval $ac_link) 2>&5 10977 ac_status=$? 10978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10980 (./conftest; exit; ) >&5 2>/dev/null 10981 lt_status=$? 10982 case x$lt_status in 10983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10985 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10986 esac 10987 else : 10988 # compilation failed 10989 lt_cv_dlopen_self=no 10990 fi 10991 fi 10992 rm -fr conftest* 10993 10994 10995 fi 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10997 $as_echo "$lt_cv_dlopen_self" >&6; } 10998 10999 if test "x$lt_cv_dlopen_self" = xyes; then 11000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11002 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11003 if ${lt_cv_dlopen_self_static+:} false; then : 11004 $as_echo_n "(cached) " >&6 11005 else 11006 if test "$cross_compiling" = yes; then : 11007 lt_cv_dlopen_self_static=cross 11008 else 11009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11010 lt_status=$lt_dlunknown 11011 cat > conftest.$ac_ext <<_LT_EOF 11012 #line 11012 "configure" 11013 #include "confdefs.h" 11014 11015 #if HAVE_DLFCN_H 11016 #include <dlfcn.h> 11017 #endif 11018 11019 #include <stdio.h> 11020 11021 #ifdef RTLD_GLOBAL 11022 # define LT_DLGLOBAL RTLD_GLOBAL 11023 #else 11024 # ifdef DL_GLOBAL 11025 # define LT_DLGLOBAL DL_GLOBAL 11026 # else 11027 # define LT_DLGLOBAL 0 11028 # endif 11029 #endif 11030 11031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11032 find out it does not work in some platform. */ 11033 #ifndef LT_DLLAZY_OR_NOW 11034 # ifdef RTLD_LAZY 11035 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11036 # else 11037 # ifdef DL_LAZY 11038 # define LT_DLLAZY_OR_NOW DL_LAZY 11039 # else 11040 # ifdef RTLD_NOW 11041 # define LT_DLLAZY_OR_NOW RTLD_NOW 11042 # else 11043 # ifdef DL_NOW 11044 # define LT_DLLAZY_OR_NOW DL_NOW 11045 # else 11046 # define LT_DLLAZY_OR_NOW 0 11047 # endif 11048 # endif 11049 # endif 11050 # endif 11051 #endif 11052 11053 /* When -fvisbility=hidden is used, assume the code has been annotated 11054 correspondingly for the symbols needed. */ 11055 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11056 void fnord () __attribute__((visibility("default"))); 11057 #endif 11058 11059 void fnord () { int i=42; } 11060 int main () 11061 { 11062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11063 int status = $lt_dlunknown; 11064 11065 if (self) 11066 { 11067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11068 else 11069 { 11070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11071 else puts (dlerror ()); 11072 } 11073 /* dlclose (self); */ 11074 } 11075 else 11076 puts (dlerror ()); 11077 11078 return status; 11079 } 11080 _LT_EOF 11081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11082 (eval $ac_link) 2>&5 11083 ac_status=$? 11084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11085 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11086 (./conftest; exit; ) >&5 2>/dev/null 11087 lt_status=$? 11088 case x$lt_status in 11089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11091 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11092 esac 11093 else : 11094 # compilation failed 11095 lt_cv_dlopen_self_static=no 11096 fi 11097 fi 11098 rm -fr conftest* 11099 11100 11101 fi 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11103 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11104 fi 11105 11106 CPPFLAGS="$save_CPPFLAGS" 11107 LDFLAGS="$save_LDFLAGS" 11108 LIBS="$save_LIBS" 11109 ;; 11110 esac 11111 11112 case $lt_cv_dlopen_self in 11113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11114 *) enable_dlopen_self=unknown ;; 11115 esac 11116 11117 case $lt_cv_dlopen_self_static in 11118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11119 *) enable_dlopen_self_static=unknown ;; 11120 esac 11121 fi 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 striplib= 11140 old_striplib= 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11142 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11143 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11145 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11147 $as_echo "yes" >&6; } 11148 else 11149 # FIXME - insert some real tests, host_os isn't really good enough 11150 case $host_os in 11151 darwin*) 11152 if test -n "$STRIP" ; then 11153 striplib="$STRIP -x" 11154 old_striplib="$STRIP -S" 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11156 $as_echo "yes" >&6; } 11157 else 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11159 $as_echo "no" >&6; } 11160 fi 11161 ;; 11162 *) 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11164 $as_echo "no" >&6; } 11165 ;; 11166 esac 11167 fi 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 # Report which library types will actually be built 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11182 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11184 $as_echo "$can_build_shared" >&6; } 11185 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11187 $as_echo_n "checking whether to build shared libraries... " >&6; } 11188 test "$can_build_shared" = "no" && enable_shared=no 11189 11190 # On AIX, shared libraries and static libraries use the same namespace, and 11191 # are all built from PIC. 11192 case $host_os in 11193 aix3*) 11194 test "$enable_shared" = yes && enable_static=no 11195 if test -n "$RANLIB"; then 11196 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11197 postinstall_cmds='$RANLIB $lib' 11198 fi 11199 ;; 11200 11201 aix[4-9]*) 11202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11203 test "$enable_shared" = yes && enable_static=no 11204 fi 11205 ;; 11206 esac 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11208 $as_echo "$enable_shared" >&6; } 11209 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11211 $as_echo_n "checking whether to build static libraries... " >&6; } 11212 # Make sure either enable_shared or enable_static is yes. 11213 test "$enable_shared" = yes || enable_static=yes 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11215 $as_echo "$enable_static" >&6; } 11216 11217 11218 11219 11220 fi 11221 ac_ext=c 11222 ac_cpp='$CPP $CPPFLAGS' 11223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11225 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11226 11227 CC="$lt_save_CC" 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 ac_config_commands="$ac_config_commands libtool" 11242 11243 11244 11245 11246 # Only expand once: 11247 11248 11249 11250 ac_checking= 11251 . ${srcdir}/../bfd/development.sh 11252 test "$development" = true && ac_checking=yes 11253 # Check whether --enable-checking was given. 11254 if test "${enable_checking+set}" = set; then : 11255 enableval=$enable_checking; case "${enableval}" in 11256 no|none) ac_checking= ;; 11257 *) ac_checking=yes ;; 11258 esac 11259 fi 11260 if test x$ac_checking != x ; then 11261 11262 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11263 11264 fi 11265 11266 # Check whether --enable-targets was given. 11267 if test "${enable_targets+set}" = set; then : 11268 enableval=$enable_targets; case "${enableval}" in 11269 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11270 ;; 11271 no) enable_targets= ;; 11272 *) enable_targets=$enableval ;; 11273 esac 11274 fi 11275 11276 11277 # Set the 'development' global. 11278 . $srcdir/../bfd/development.sh 11279 11280 # Set acp_cpp_for_build variable 11281 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 11282 11283 # Default set of GCC warnings to enable. 11284 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11285 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11286 11287 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289 /* end confdefs.h. */ 11290 __GNUC__ 11291 _ACEOF 11292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11293 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11294 11295 else 11296 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 11297 fi 11298 rm -f conftest* 11299 11300 11301 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11303 /* end confdefs.h. */ 11304 __GNUC__ 11305 _ACEOF 11306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11307 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11308 11309 else 11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11311 /* end confdefs.h. */ 11312 __clang__ 11313 _ACEOF 11314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11315 $EGREP "^__clang__$" >/dev/null 2>&1; then : 11316 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 11317 fi 11318 rm -f conftest* 11319 11320 fi 11321 rm -f conftest* 11322 11323 11324 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 11325 WARN_WRITE_STRINGS="" 11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11327 /* end confdefs.h. */ 11328 __GNUC__ 11329 _ACEOF 11330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11331 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11332 11333 else 11334 WARN_WRITE_STRINGS="-Wwrite-strings" 11335 fi 11336 rm -f conftest* 11337 11338 11339 # Verify CC_FOR_BUILD to be compatible with warning flags 11340 11341 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11343 /* end confdefs.h. */ 11344 __GNUC__ 11345 _ACEOF 11346 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11347 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11348 11349 else 11350 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 11351 fi 11352 rm -f conftest* 11353 11354 11355 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357 /* end confdefs.h. */ 11358 __GNUC__ 11359 _ACEOF 11360 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11361 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11362 11363 else 11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11365 /* end confdefs.h. */ 11366 __clang__ 11367 _ACEOF 11368 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11369 $EGREP "^__clang__$" >/dev/null 2>&1; then : 11370 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 11371 fi 11372 rm -f conftest* 11373 11374 fi 11375 rm -f conftest* 11376 11377 11378 # Check whether --enable-werror was given. 11379 if test "${enable_werror+set}" = set; then : 11380 enableval=$enable_werror; case "${enableval}" in 11381 yes | y) ERROR_ON_WARNING="yes" ;; 11382 no | n) ERROR_ON_WARNING="no" ;; 11383 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 11384 esac 11385 fi 11386 11387 11388 # Disable -Wformat by default when using gcc on mingw 11389 case "${host}" in 11390 *-*-mingw32*) 11391 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 11392 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 11393 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 11394 fi 11395 ;; 11396 *) ;; 11397 esac 11398 11399 # Enable -Werror by default when using gcc. Turn it off for releases. 11400 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 11401 ERROR_ON_WARNING=yes 11402 fi 11403 11404 NO_WERROR= 11405 if test "${ERROR_ON_WARNING}" = yes ; then 11406 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 11407 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 11408 NO_WERROR="-Wno-error" 11409 fi 11410 11411 if test "${GCC}" = yes ; then 11412 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11413 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 11414 fi 11415 11416 # Check whether --enable-build-warnings was given. 11417 if test "${enable_build_warnings+set}" = set; then : 11418 enableval=$enable_build_warnings; case "${enableval}" in 11419 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11420 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 11421 no) if test "${GCC}" = yes ; then 11422 WARN_CFLAGS="-w" 11423 WARN_CFLAGS_FOR_BUILD="-w" 11424 fi;; 11425 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11426 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 11427 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 11428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 11430 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 11431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 11432 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 11433 esac 11434 fi 11435 11436 11437 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 11438 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 11439 fi 11440 11441 11442 11443 11444 11445 11446 11447 ac_config_headers="$ac_config_headers config.h:config.in" 11448 11449 11450 # PR 14072 11451 11452 11453 if test -z "$target" ; then 11454 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 11455 fi 11456 11457 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11459 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11460 # Check whether --enable-maintainer-mode was given. 11461 if test "${enable_maintainer_mode+set}" = set; then : 11462 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11463 else 11464 USE_MAINTAINER_MODE=no 11465 fi 11466 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11468 $as_echo "$USE_MAINTAINER_MODE" >&6; } 11469 if test $USE_MAINTAINER_MODE = yes; then 11470 MAINTAINER_MODE_TRUE= 11471 MAINTAINER_MODE_FALSE='#' 11472 else 11473 MAINTAINER_MODE_TRUE='#' 11474 MAINTAINER_MODE_FALSE= 11475 fi 11476 11477 MAINT=$MAINTAINER_MODE_TRUE 11478 11479 11480 case ${build_alias} in 11481 "") build_noncanonical=${build} ;; 11482 *) build_noncanonical=${build_alias} ;; 11483 esac 11484 11485 case ${host_alias} in 11486 "") host_noncanonical=${build_noncanonical} ;; 11487 *) host_noncanonical=${host_alias} ;; 11488 esac 11489 11490 case ${target_alias} in 11491 "") target_noncanonical=${host_noncanonical} ;; 11492 *) target_noncanonical=${target_alias} ;; 11493 esac 11494 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 11496 $as_echo_n "checking whether to install libbfd... " >&6; } 11497 # Check whether --enable-install-libbfd was given. 11498 if test "${enable_install_libbfd+set}" = set; then : 11499 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 11500 else 11501 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 11502 install_libbfd_p=yes 11503 else 11504 install_libbfd_p=no 11505 fi 11506 fi 11507 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 11509 $as_echo "$install_libbfd_p" >&6; } 11510 if test $install_libbfd_p = yes; then 11511 INSTALL_LIBBFD_TRUE= 11512 INSTALL_LIBBFD_FALSE='#' 11513 else 11514 INSTALL_LIBBFD_TRUE='#' 11515 INSTALL_LIBBFD_FALSE= 11516 fi 11517 11518 # Need _noncanonical variables for this. 11519 11520 11521 11522 11523 # libbfd.a is a host library containing target dependent code 11524 bfdlibdir='$(libdir)' 11525 bfdincludedir='$(includedir)' 11526 if test "${host}" != "${target}"; then 11527 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 11528 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 11529 fi 11530 11531 11532 11533 11534 11535 11536 11537 11538 # host-specific stuff: 11539 11540 ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" 11541 11542 MKINSTALLDIRS= 11543 if test -n "$ac_aux_dir"; then 11544 case "$ac_aux_dir" in 11545 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 11546 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 11547 esac 11548 fi 11549 if test -z "$MKINSTALLDIRS"; then 11550 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 11551 fi 11552 11553 11554 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11556 $as_echo_n "checking whether NLS is requested... " >&6; } 11557 # Check whether --enable-nls was given. 11558 if test "${enable_nls+set}" = set; then : 11559 enableval=$enable_nls; USE_NLS=$enableval 11560 else 11561 USE_NLS=yes 11562 fi 11563 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11565 $as_echo "$USE_NLS" >&6; } 11566 11567 11568 11569 11570 11571 11572 # Prepare PATH_SEPARATOR. 11573 # The user is always right. 11574 if test "${PATH_SEPARATOR+set}" != set; then 11575 echo "#! /bin/sh" >conf$$.sh 11576 echo "exit 0" >>conf$$.sh 11577 chmod +x conf$$.sh 11578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11579 PATH_SEPARATOR=';' 11580 else 11581 PATH_SEPARATOR=: 11582 fi 11583 rm -f conf$$.sh 11584 fi 11585 11586 # Find out how to test for executable files. Don't use a zero-byte file, 11587 # as systems may use methods other than mode bits to determine executability. 11588 cat >conf$$.file <<_ASEOF 11589 #! /bin/sh 11590 exit 0 11591 _ASEOF 11592 chmod +x conf$$.file 11593 if test -x conf$$.file >/dev/null 2>&1; then 11594 ac_executable_p="test -x" 11595 else 11596 ac_executable_p="test -f" 11597 fi 11598 rm -f conf$$.file 11599 11600 # Extract the first word of "msgfmt", so it can be a program name with args. 11601 set dummy msgfmt; ac_word=$2 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11603 $as_echo_n "checking for $ac_word... " >&6; } 11604 if ${ac_cv_path_MSGFMT+:} false; then : 11605 $as_echo_n "(cached) " >&6 11606 else 11607 case "$MSGFMT" in 11608 [\\/]* | ?:[\\/]*) 11609 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11610 ;; 11611 *) 11612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11613 for ac_dir in $PATH; do 11614 IFS="$ac_save_IFS" 11615 test -z "$ac_dir" && ac_dir=. 11616 for ac_exec_ext in '' $ac_executable_extensions; do 11617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11618 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 11619 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11620 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11621 break 2 11622 fi 11623 fi 11624 done 11625 done 11626 IFS="$ac_save_IFS" 11627 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11628 ;; 11629 esac 11630 fi 11631 MSGFMT="$ac_cv_path_MSGFMT" 11632 if test "$MSGFMT" != ":"; then 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11634 $as_echo "$MSGFMT" >&6; } 11635 else 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11637 $as_echo "no" >&6; } 11638 fi 11639 11640 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11641 set dummy gmsgfmt; ac_word=$2 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11643 $as_echo_n "checking for $ac_word... " >&6; } 11644 if ${ac_cv_path_GMSGFMT+:} false; then : 11645 $as_echo_n "(cached) " >&6 11646 else 11647 case $GMSGFMT in 11648 [\\/]* | ?:[\\/]*) 11649 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11650 ;; 11651 *) 11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11653 for as_dir in $PATH 11654 do 11655 IFS=$as_save_IFS 11656 test -z "$as_dir" && as_dir=. 11657 for ac_exec_ext in '' $ac_executable_extensions; do 11658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11659 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11661 break 2 11662 fi 11663 done 11664 done 11665 IFS=$as_save_IFS 11666 11667 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11668 ;; 11669 esac 11670 fi 11671 GMSGFMT=$ac_cv_path_GMSGFMT 11672 if test -n "$GMSGFMT"; then 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11674 $as_echo "$GMSGFMT" >&6; } 11675 else 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11677 $as_echo "no" >&6; } 11678 fi 11679 11680 11681 11682 11683 # Prepare PATH_SEPARATOR. 11684 # The user is always right. 11685 if test "${PATH_SEPARATOR+set}" != set; then 11686 echo "#! /bin/sh" >conf$$.sh 11687 echo "exit 0" >>conf$$.sh 11688 chmod +x conf$$.sh 11689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11690 PATH_SEPARATOR=';' 11691 else 11692 PATH_SEPARATOR=: 11693 fi 11694 rm -f conf$$.sh 11695 fi 11696 11697 # Find out how to test for executable files. Don't use a zero-byte file, 11698 # as systems may use methods other than mode bits to determine executability. 11699 cat >conf$$.file <<_ASEOF 11700 #! /bin/sh 11701 exit 0 11702 _ASEOF 11703 chmod +x conf$$.file 11704 if test -x conf$$.file >/dev/null 2>&1; then 11705 ac_executable_p="test -x" 11706 else 11707 ac_executable_p="test -f" 11708 fi 11709 rm -f conf$$.file 11710 11711 # Extract the first word of "xgettext", so it can be a program name with args. 11712 set dummy xgettext; ac_word=$2 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11714 $as_echo_n "checking for $ac_word... " >&6; } 11715 if ${ac_cv_path_XGETTEXT+:} false; then : 11716 $as_echo_n "(cached) " >&6 11717 else 11718 case "$XGETTEXT" in 11719 [\\/]* | ?:[\\/]*) 11720 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11721 ;; 11722 *) 11723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11724 for ac_dir in $PATH; do 11725 IFS="$ac_save_IFS" 11726 test -z "$ac_dir" && ac_dir=. 11727 for ac_exec_ext in '' $ac_executable_extensions; do 11728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11729 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11730 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11731 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11732 break 2 11733 fi 11734 fi 11735 done 11736 done 11737 IFS="$ac_save_IFS" 11738 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11739 ;; 11740 esac 11741 fi 11742 XGETTEXT="$ac_cv_path_XGETTEXT" 11743 if test "$XGETTEXT" != ":"; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11745 $as_echo "$XGETTEXT" >&6; } 11746 else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748 $as_echo "no" >&6; } 11749 fi 11750 11751 rm -f messages.po 11752 11753 11754 # Prepare PATH_SEPARATOR. 11755 # The user is always right. 11756 if test "${PATH_SEPARATOR+set}" != set; then 11757 echo "#! /bin/sh" >conf$$.sh 11758 echo "exit 0" >>conf$$.sh 11759 chmod +x conf$$.sh 11760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11761 PATH_SEPARATOR=';' 11762 else 11763 PATH_SEPARATOR=: 11764 fi 11765 rm -f conf$$.sh 11766 fi 11767 11768 # Find out how to test for executable files. Don't use a zero-byte file, 11769 # as systems may use methods other than mode bits to determine executability. 11770 cat >conf$$.file <<_ASEOF 11771 #! /bin/sh 11772 exit 0 11773 _ASEOF 11774 chmod +x conf$$.file 11775 if test -x conf$$.file >/dev/null 2>&1; then 11776 ac_executable_p="test -x" 11777 else 11778 ac_executable_p="test -f" 11779 fi 11780 rm -f conf$$.file 11781 11782 # Extract the first word of "msgmerge", so it can be a program name with args. 11783 set dummy msgmerge; ac_word=$2 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785 $as_echo_n "checking for $ac_word... " >&6; } 11786 if ${ac_cv_path_MSGMERGE+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788 else 11789 case "$MSGMERGE" in 11790 [\\/]* | ?:[\\/]*) 11791 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11792 ;; 11793 *) 11794 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11795 for ac_dir in $PATH; do 11796 IFS="$ac_save_IFS" 11797 test -z "$ac_dir" && ac_dir=. 11798 for ac_exec_ext in '' $ac_executable_extensions; do 11799 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11800 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 11801 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11802 break 2 11803 fi 11804 fi 11805 done 11806 done 11807 IFS="$ac_save_IFS" 11808 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11809 ;; 11810 esac 11811 fi 11812 MSGMERGE="$ac_cv_path_MSGMERGE" 11813 if test "$MSGMERGE" != ":"; then 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11815 $as_echo "$MSGMERGE" >&6; } 11816 else 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818 $as_echo "no" >&6; } 11819 fi 11820 11821 11822 if test "$GMSGFMT" != ":"; then 11823 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 11824 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11825 : ; 11826 else 11827 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 11829 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 11830 GMSGFMT=":" 11831 fi 11832 fi 11833 11834 if test "$XGETTEXT" != ":"; then 11835 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11836 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11837 : ; 11838 else 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 11840 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 11841 XGETTEXT=":" 11842 fi 11843 rm -f messages.po 11844 fi 11845 11846 ac_config_commands="$ac_config_commands default-1" 11847 11848 11849 11850 if test "X$prefix" = "XNONE"; then 11851 acl_final_prefix="$ac_default_prefix" 11852 else 11853 acl_final_prefix="$prefix" 11854 fi 11855 if test "X$exec_prefix" = "XNONE"; then 11856 acl_final_exec_prefix='${prefix}' 11857 else 11858 acl_final_exec_prefix="$exec_prefix" 11859 fi 11860 acl_save_prefix="$prefix" 11861 prefix="$acl_final_prefix" 11862 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11863 prefix="$acl_save_prefix" 11864 11865 11866 # Check whether --with-gnu-ld was given. 11867 if test "${with_gnu_ld+set}" = set; then : 11868 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11869 else 11870 with_gnu_ld=no 11871 fi 11872 11873 # Prepare PATH_SEPARATOR. 11874 # The user is always right. 11875 if test "${PATH_SEPARATOR+set}" != set; then 11876 echo "#! /bin/sh" >conf$$.sh 11877 echo "exit 0" >>conf$$.sh 11878 chmod +x conf$$.sh 11879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11880 PATH_SEPARATOR=';' 11881 else 11882 PATH_SEPARATOR=: 11883 fi 11884 rm -f conf$$.sh 11885 fi 11886 ac_prog=ld 11887 if test "$GCC" = yes; then 11888 # Check if gcc -print-prog-name=ld gives a path. 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 11890 $as_echo_n "checking for ld used by GCC... " >&6; } 11891 case $host in 11892 *-*-mingw*) 11893 # gcc leaves a trailing carriage return which upsets mingw 11894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11895 *) 11896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11897 esac 11898 case $ac_prog in 11899 # Accept absolute paths. 11900 [\\/]* | [A-Za-z]:[\\/]*) 11901 re_direlt='/[^/][^/]*/\.\./' 11902 # Canonicalize the path of ld 11903 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11904 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11905 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11906 done 11907 test -z "$LD" && LD="$ac_prog" 11908 ;; 11909 "") 11910 # If it fails, then pretend we aren't using GCC. 11911 ac_prog=ld 11912 ;; 11913 *) 11914 # If it is relative, then search for the first ld in PATH. 11915 with_gnu_ld=unknown 11916 ;; 11917 esac 11918 elif test "$with_gnu_ld" = yes; then 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11920 $as_echo_n "checking for GNU ld... " >&6; } 11921 else 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11923 $as_echo_n "checking for non-GNU ld... " >&6; } 11924 fi 11925 if ${acl_cv_path_LD+:} false; then : 11926 $as_echo_n "(cached) " >&6 11927 else 11928 if test -z "$LD"; then 11929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11930 for ac_dir in $PATH; do 11931 test -z "$ac_dir" && ac_dir=. 11932 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11933 acl_cv_path_LD="$ac_dir/$ac_prog" 11934 # Check to see if the program is GNU ld. I'd rather use --version, 11935 # but apparently some GNU ld's only accept -v. 11936 # Break only if it was the GNU/non-GNU ld that we prefer. 11937 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 11938 test "$with_gnu_ld" != no && break 11939 else 11940 test "$with_gnu_ld" != yes && break 11941 fi 11942 fi 11943 done 11944 IFS="$ac_save_ifs" 11945 else 11946 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11947 fi 11948 fi 11949 11950 LD="$acl_cv_path_LD" 11951 if test -n "$LD"; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11953 $as_echo "$LD" >&6; } 11954 else 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956 $as_echo "no" >&6; } 11957 fi 11958 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11961 if ${acl_cv_prog_gnu_ld+:} false; then : 11962 $as_echo_n "(cached) " >&6 11963 else 11964 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11965 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 11966 acl_cv_prog_gnu_ld=yes 11967 else 11968 acl_cv_prog_gnu_ld=no 11969 fi 11970 fi 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11972 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 11973 with_gnu_ld=$acl_cv_prog_gnu_ld 11974 11975 11976 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11978 $as_echo_n "checking for shared library run path origin... " >&6; } 11979 if ${acl_cv_rpath+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981 else 11982 11983 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11984 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11985 . ./conftest.sh 11986 rm -f ./conftest.sh 11987 acl_cv_rpath=done 11988 11989 fi 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11991 $as_echo "$acl_cv_rpath" >&6; } 11992 wl="$acl_cv_wl" 11993 libext="$acl_cv_libext" 11994 shlibext="$acl_cv_shlibext" 11995 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11996 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11997 hardcode_direct="$acl_cv_hardcode_direct" 11998 hardcode_minus_L="$acl_cv_hardcode_minus_L" 11999 # Check whether --enable-rpath was given. 12000 if test "${enable_rpath+set}" = set; then : 12001 enableval=$enable_rpath; : 12002 else 12003 enable_rpath=yes 12004 fi 12005 12006 12007 12008 12009 12010 12011 12012 12013 use_additional=yes 12014 12015 acl_save_prefix="$prefix" 12016 prefix="$acl_final_prefix" 12017 acl_save_exec_prefix="$exec_prefix" 12018 exec_prefix="$acl_final_exec_prefix" 12019 12020 eval additional_includedir=\"$includedir\" 12021 eval additional_libdir=\"$libdir\" 12022 12023 exec_prefix="$acl_save_exec_prefix" 12024 prefix="$acl_save_prefix" 12025 12026 12027 # Check whether --with-libiconv-prefix was given. 12028 if test "${with_libiconv_prefix+set}" = set; then : 12029 withval=$with_libiconv_prefix; 12030 if test "X$withval" = "Xno"; then 12031 use_additional=no 12032 else 12033 if test "X$withval" = "X"; then 12034 12035 acl_save_prefix="$prefix" 12036 prefix="$acl_final_prefix" 12037 acl_save_exec_prefix="$exec_prefix" 12038 exec_prefix="$acl_final_exec_prefix" 12039 12040 eval additional_includedir=\"$includedir\" 12041 eval additional_libdir=\"$libdir\" 12042 12043 exec_prefix="$acl_save_exec_prefix" 12044 prefix="$acl_save_prefix" 12045 12046 else 12047 additional_includedir="$withval/include" 12048 additional_libdir="$withval/lib" 12049 fi 12050 fi 12051 12052 fi 12053 12054 12055 # Check whether --with-libiconv-type was given. 12056 if test "${with_libiconv_type+set}" = set; then : 12057 withval=$with_libiconv_type; with_libiconv_type=$withval 12058 else 12059 with_libiconv_type=auto 12060 fi 12061 12062 lib_type=`eval echo \$with_libiconv_type` 12063 12064 LIBICONV= 12065 LTLIBICONV= 12066 INCICONV= 12067 rpathdirs= 12068 ltrpathdirs= 12069 names_already_handled= 12070 names_next_round='iconv ' 12071 while test -n "$names_next_round"; do 12072 names_this_round="$names_next_round" 12073 names_next_round= 12074 for name in $names_this_round; do 12075 already_handled= 12076 for n in $names_already_handled; do 12077 if test "$n" = "$name"; then 12078 already_handled=yes 12079 break 12080 fi 12081 done 12082 if test -z "$already_handled"; then 12083 names_already_handled="$names_already_handled $name" 12084 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12085 eval value=\"\$HAVE_LIB$uppername\" 12086 if test -n "$value"; then 12087 if test "$value" = yes; then 12088 eval value=\"\$LIB$uppername\" 12089 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12090 eval value=\"\$LTLIB$uppername\" 12091 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12092 else 12093 : 12094 fi 12095 else 12096 found_dir= 12097 found_la= 12098 found_so= 12099 found_a= 12100 if test $use_additional = yes; then 12101 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12102 found_dir="$additional_libdir" 12103 found_so="$additional_libdir/lib$name.$shlibext" 12104 if test -f "$additional_libdir/lib$name.la"; then 12105 found_la="$additional_libdir/lib$name.la" 12106 fi 12107 elif test x$lib_type != xshared; then 12108 if test -f "$additional_libdir/lib$name.$libext"; then 12109 found_dir="$additional_libdir" 12110 found_a="$additional_libdir/lib$name.$libext" 12111 if test -f "$additional_libdir/lib$name.la"; then 12112 found_la="$additional_libdir/lib$name.la" 12113 fi 12114 fi 12115 fi 12116 fi 12117 if test "X$found_dir" = "X"; then 12118 for x in $LDFLAGS $LTLIBICONV; do 12119 12120 acl_save_prefix="$prefix" 12121 prefix="$acl_final_prefix" 12122 acl_save_exec_prefix="$exec_prefix" 12123 exec_prefix="$acl_final_exec_prefix" 12124 eval x=\"$x\" 12125 exec_prefix="$acl_save_exec_prefix" 12126 prefix="$acl_save_prefix" 12127 12128 case "$x" in 12129 -L*) 12130 dir=`echo "X$x" | sed -e 's/^X-L//'` 12131 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12132 found_dir="$dir" 12133 found_so="$dir/lib$name.$shlibext" 12134 if test -f "$dir/lib$name.la"; then 12135 found_la="$dir/lib$name.la" 12136 fi 12137 elif test x$lib_type != xshared; then 12138 if test -f "$dir/lib$name.$libext"; then 12139 found_dir="$dir" 12140 found_a="$dir/lib$name.$libext" 12141 if test -f "$dir/lib$name.la"; then 12142 found_la="$dir/lib$name.la" 12143 fi 12144 fi 12145 fi 12146 ;; 12147 esac 12148 if test "X$found_dir" != "X"; then 12149 break 12150 fi 12151 done 12152 fi 12153 if test "X$found_dir" != "X"; then 12154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12155 if test "X$found_so" != "X"; then 12156 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12158 else 12159 haveit= 12160 for x in $ltrpathdirs; do 12161 if test "X$x" = "X$found_dir"; then 12162 haveit=yes 12163 break 12164 fi 12165 done 12166 if test -z "$haveit"; then 12167 ltrpathdirs="$ltrpathdirs $found_dir" 12168 fi 12169 if test "$hardcode_direct" = yes; then 12170 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12171 else 12172 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12174 haveit= 12175 for x in $rpathdirs; do 12176 if test "X$x" = "X$found_dir"; then 12177 haveit=yes 12178 break 12179 fi 12180 done 12181 if test -z "$haveit"; then 12182 rpathdirs="$rpathdirs $found_dir" 12183 fi 12184 else 12185 haveit= 12186 for x in $LDFLAGS $LIBICONV; do 12187 12188 acl_save_prefix="$prefix" 12189 prefix="$acl_final_prefix" 12190 acl_save_exec_prefix="$exec_prefix" 12191 exec_prefix="$acl_final_exec_prefix" 12192 eval x=\"$x\" 12193 exec_prefix="$acl_save_exec_prefix" 12194 prefix="$acl_save_prefix" 12195 12196 if test "X$x" = "X-L$found_dir"; then 12197 haveit=yes 12198 break 12199 fi 12200 done 12201 if test -z "$haveit"; then 12202 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12203 fi 12204 if test "$hardcode_minus_L" != no; then 12205 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12206 else 12207 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12208 fi 12209 fi 12210 fi 12211 fi 12212 else 12213 if test "X$found_a" != "X"; then 12214 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12215 else 12216 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12217 fi 12218 fi 12219 additional_includedir= 12220 case "$found_dir" in 12221 */lib | */lib/) 12222 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12223 additional_includedir="$basedir/include" 12224 ;; 12225 esac 12226 if test "X$additional_includedir" != "X"; then 12227 if test "X$additional_includedir" != "X/usr/include"; then 12228 haveit= 12229 if test "X$additional_includedir" = "X/usr/local/include"; then 12230 if test -n "$GCC"; then 12231 case $host_os in 12232 linux*) haveit=yes;; 12233 esac 12234 fi 12235 fi 12236 if test -z "$haveit"; then 12237 for x in $CPPFLAGS $INCICONV; do 12238 12239 acl_save_prefix="$prefix" 12240 prefix="$acl_final_prefix" 12241 acl_save_exec_prefix="$exec_prefix" 12242 exec_prefix="$acl_final_exec_prefix" 12243 eval x=\"$x\" 12244 exec_prefix="$acl_save_exec_prefix" 12245 prefix="$acl_save_prefix" 12246 12247 if test "X$x" = "X-I$additional_includedir"; then 12248 haveit=yes 12249 break 12250 fi 12251 done 12252 if test -z "$haveit"; then 12253 if test -d "$additional_includedir"; then 12254 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12255 fi 12256 fi 12257 fi 12258 fi 12259 fi 12260 if test -n "$found_la"; then 12261 save_libdir="$libdir" 12262 case "$found_la" in 12263 */* | *\\*) . "$found_la" ;; 12264 *) . "./$found_la" ;; 12265 esac 12266 libdir="$save_libdir" 12267 for dep in $dependency_libs; do 12268 case "$dep" in 12269 -L*) 12270 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12271 if test "X$additional_libdir" != "X/usr/lib"; then 12272 haveit= 12273 if test "X$additional_libdir" = "X/usr/local/lib"; then 12274 if test -n "$GCC"; then 12275 case $host_os in 12276 linux*) haveit=yes;; 12277 esac 12278 fi 12279 fi 12280 if test -z "$haveit"; then 12281 haveit= 12282 for x in $LDFLAGS $LIBICONV; do 12283 12284 acl_save_prefix="$prefix" 12285 prefix="$acl_final_prefix" 12286 acl_save_exec_prefix="$exec_prefix" 12287 exec_prefix="$acl_final_exec_prefix" 12288 eval x=\"$x\" 12289 exec_prefix="$acl_save_exec_prefix" 12290 prefix="$acl_save_prefix" 12291 12292 if test "X$x" = "X-L$additional_libdir"; then 12293 haveit=yes 12294 break 12295 fi 12296 done 12297 if test -z "$haveit"; then 12298 if test -d "$additional_libdir"; then 12299 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12300 fi 12301 fi 12302 haveit= 12303 for x in $LDFLAGS $LTLIBICONV; do 12304 12305 acl_save_prefix="$prefix" 12306 prefix="$acl_final_prefix" 12307 acl_save_exec_prefix="$exec_prefix" 12308 exec_prefix="$acl_final_exec_prefix" 12309 eval x=\"$x\" 12310 exec_prefix="$acl_save_exec_prefix" 12311 prefix="$acl_save_prefix" 12312 12313 if test "X$x" = "X-L$additional_libdir"; then 12314 haveit=yes 12315 break 12316 fi 12317 done 12318 if test -z "$haveit"; then 12319 if test -d "$additional_libdir"; then 12320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12321 fi 12322 fi 12323 fi 12324 fi 12325 ;; 12326 -R*) 12327 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12328 if test "$enable_rpath" != no; then 12329 haveit= 12330 for x in $rpathdirs; do 12331 if test "X$x" = "X$dir"; then 12332 haveit=yes 12333 break 12334 fi 12335 done 12336 if test -z "$haveit"; then 12337 rpathdirs="$rpathdirs $dir" 12338 fi 12339 haveit= 12340 for x in $ltrpathdirs; do 12341 if test "X$x" = "X$dir"; then 12342 haveit=yes 12343 break 12344 fi 12345 done 12346 if test -z "$haveit"; then 12347 ltrpathdirs="$ltrpathdirs $dir" 12348 fi 12349 fi 12350 ;; 12351 -l*) 12352 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12353 ;; 12354 *.la) 12355 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12356 ;; 12357 *) 12358 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12360 ;; 12361 esac 12362 done 12363 fi 12364 else 12365 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 12366 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12367 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12368 else 12369 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 12370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 12371 fi 12372 fi 12373 fi 12374 fi 12375 done 12376 done 12377 if test "X$rpathdirs" != "X"; then 12378 if test -n "$hardcode_libdir_separator"; then 12379 alldirs= 12380 for found_dir in $rpathdirs; do 12381 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12382 done 12383 acl_save_libdir="$libdir" 12384 libdir="$alldirs" 12385 eval flag=\"$hardcode_libdir_flag_spec\" 12386 libdir="$acl_save_libdir" 12387 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12388 else 12389 for found_dir in $rpathdirs; do 12390 acl_save_libdir="$libdir" 12391 libdir="$found_dir" 12392 eval flag=\"$hardcode_libdir_flag_spec\" 12393 libdir="$acl_save_libdir" 12394 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12395 done 12396 fi 12397 fi 12398 if test "X$ltrpathdirs" != "X"; then 12399 for found_dir in $ltrpathdirs; do 12400 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12401 done 12402 fi 12403 12404 12405 12406 12407 12408 if test -f ../gettext/uninstalled-config.sh; then 12409 relative_builddir='$(top_builddir)/../gettext' 12410 . ../gettext/uninstalled-config.sh 12411 else 12412 # The sister gettext directory doesn't exist and won't collect information on 12413 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12438 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12439 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441 else 12442 gt_save_LIBS="$LIBS" 12443 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12445 /* end confdefs.h. */ 12446 #include <CoreFoundation/CFPreferences.h> 12447 int 12448 main () 12449 { 12450 CFPreferencesCopyAppValue(NULL, NULL) 12451 ; 12452 return 0; 12453 } 12454 _ACEOF 12455 if ac_fn_c_try_link "$LINENO"; then : 12456 gt_cv_func_CFPreferencesCopyAppValue=yes 12457 else 12458 gt_cv_func_CFPreferencesCopyAppValue=no 12459 fi 12460 rm -f core conftest.err conftest.$ac_objext \ 12461 conftest$ac_exeext conftest.$ac_ext 12462 LIBS="$gt_save_LIBS" 12463 fi 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12465 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12466 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12467 12468 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12469 12470 fi 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 12472 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 12473 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475 else 12476 gt_save_LIBS="$LIBS" 12477 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479 /* end confdefs.h. */ 12480 #include <CoreFoundation/CFLocale.h> 12481 int 12482 main () 12483 { 12484 CFLocaleCopyPreferredLanguages(); 12485 ; 12486 return 0; 12487 } 12488 _ACEOF 12489 if ac_fn_c_try_link "$LINENO"; then : 12490 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 12491 else 12492 gt_cv_func_CFLocaleCopyPreferredLanguages=no 12493 fi 12494 rm -f core conftest.err conftest.$ac_objext \ 12495 conftest$ac_exeext conftest.$ac_ext 12496 LIBS="$gt_save_LIBS" 12497 fi 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 12499 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 12500 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12501 12502 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 12503 12504 fi 12505 INTL_MACOSX_LIBS= 12506 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 12507 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12508 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 12509 fi 12510 12511 12512 12513 12514 12515 12516 LIBINTL= 12517 LTLIBINTL= 12518 POSUB= 12519 12520 case " $gt_needs " in 12521 *" need-formatstring-macros "*) gt_api_version=3 ;; 12522 *" need-ngettext "*) gt_api_version=2 ;; 12523 *) gt_api_version=1 ;; 12524 esac 12525 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12526 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12527 12528 if test "$USE_NLS" = "yes"; then 12529 gt_use_preinstalled_gnugettext=no 12530 12531 12532 if test $gt_api_version -ge 3; then 12533 gt_revision_test_code=' 12534 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12535 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12536 #endif 12537 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12538 ' 12539 else 12540 gt_revision_test_code= 12541 fi 12542 if test $gt_api_version -ge 2; then 12543 gt_expression_test_code=' + * ngettext ("", "", 0)' 12544 else 12545 gt_expression_test_code= 12546 fi 12547 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12549 $as_echo_n "checking for GNU gettext in libc... " >&6; } 12550 if eval \${$gt_func_gnugettext_libc+:} false; then : 12551 $as_echo_n "(cached) " >&6 12552 else 12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12554 /* end confdefs.h. */ 12555 12556 #include <libintl.h> 12557 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12558 extern int _nl_msg_cat_cntr; 12559 extern int *_nl_domain_bindings; 12560 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 12561 #else 12562 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 12563 #endif 12564 $gt_revision_test_code 12565 12566 int 12567 main () 12568 { 12569 12570 bindtextdomain ("", ""); 12571 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 12572 12573 ; 12574 return 0; 12575 } 12576 _ACEOF 12577 if ac_fn_c_try_link "$LINENO"; then : 12578 eval "$gt_func_gnugettext_libc=yes" 12579 else 12580 eval "$gt_func_gnugettext_libc=no" 12581 fi 12582 rm -f core conftest.err conftest.$ac_objext \ 12583 conftest$ac_exeext conftest.$ac_ext 12584 fi 12585 eval ac_res=\$$gt_func_gnugettext_libc 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12587 $as_echo "$ac_res" >&6; } 12588 12589 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12590 12591 12592 12593 12594 12595 am_save_CPPFLAGS="$CPPFLAGS" 12596 12597 for element in $INCICONV; do 12598 haveit= 12599 for x in $CPPFLAGS; do 12600 12601 acl_save_prefix="$prefix" 12602 prefix="$acl_final_prefix" 12603 acl_save_exec_prefix="$exec_prefix" 12604 exec_prefix="$acl_final_exec_prefix" 12605 eval x=\"$x\" 12606 exec_prefix="$acl_save_exec_prefix" 12607 prefix="$acl_save_prefix" 12608 12609 if test "X$x" = "X$element"; then 12610 haveit=yes 12611 break 12612 fi 12613 done 12614 if test -z "$haveit"; then 12615 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12616 fi 12617 done 12618 12619 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12621 $as_echo_n "checking for iconv... " >&6; } 12622 if ${am_cv_func_iconv+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624 else 12625 12626 am_cv_func_iconv="no, consider installing GNU libiconv" 12627 am_cv_lib_iconv=no 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629 /* end confdefs.h. */ 12630 12631 #include <stdlib.h> 12632 #include <iconv.h> 12633 12634 int 12635 main () 12636 { 12637 iconv_t cd = iconv_open("",""); 12638 iconv(cd,NULL,NULL,NULL,NULL); 12639 iconv_close(cd); 12640 ; 12641 return 0; 12642 } 12643 _ACEOF 12644 if ac_fn_c_try_link "$LINENO"; then : 12645 am_cv_func_iconv=yes 12646 fi 12647 rm -f core conftest.err conftest.$ac_objext \ 12648 conftest$ac_exeext conftest.$ac_ext 12649 if test "$am_cv_func_iconv" != yes; then 12650 am_save_LIBS="$LIBS" 12651 LIBS="$LIBS $LIBICONV" 12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12653 /* end confdefs.h. */ 12654 12655 #include <stdlib.h> 12656 #include <iconv.h> 12657 12658 int 12659 main () 12660 { 12661 iconv_t cd = iconv_open("",""); 12662 iconv(cd,NULL,NULL,NULL,NULL); 12663 iconv_close(cd); 12664 ; 12665 return 0; 12666 } 12667 _ACEOF 12668 if ac_fn_c_try_link "$LINENO"; then : 12669 am_cv_lib_iconv=yes 12670 am_cv_func_iconv=yes 12671 fi 12672 rm -f core conftest.err conftest.$ac_objext \ 12673 conftest$ac_exeext conftest.$ac_ext 12674 LIBS="$am_save_LIBS" 12675 fi 12676 12677 fi 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 12679 $as_echo "$am_cv_func_iconv" >&6; } 12680 if test "$am_cv_func_iconv" = yes; then 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 12682 $as_echo_n "checking for working iconv... " >&6; } 12683 if ${am_cv_func_iconv_works+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685 else 12686 12687 am_save_LIBS="$LIBS" 12688 if test $am_cv_lib_iconv = yes; then 12689 LIBS="$LIBS $LIBICONV" 12690 fi 12691 am_cv_func_iconv_works=no 12692 for ac_iconv_const in '' 'const'; do 12693 if test "$cross_compiling" = yes; then : 12694 case "$host_os" in 12695 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12696 *) am_cv_func_iconv_works="guessing yes" ;; 12697 esac 12698 else 12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12700 /* end confdefs.h. */ 12701 12702 #include <iconv.h> 12703 #include <string.h> 12704 12705 #ifndef ICONV_CONST 12706 # define ICONV_CONST $ac_iconv_const 12707 #endif 12708 12709 int 12710 main () 12711 { 12712 int result = 0; 12713 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 12714 successful returns. This is even documented in 12715 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 12716 { 12717 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12718 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12719 { 12720 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 12721 char buf[10]; 12722 ICONV_CONST char *inptr = input; 12723 size_t inbytesleft = strlen (input); 12724 char *outptr = buf; 12725 size_t outbytesleft = sizeof (buf); 12726 size_t res = iconv (cd_utf8_to_88591, 12727 &inptr, &inbytesleft, 12728 &outptr, &outbytesleft); 12729 if (res == 0) 12730 result |= 1; 12731 iconv_close (cd_utf8_to_88591); 12732 } 12733 } 12734 /* Test against Solaris 10 bug: Failures are not distinguishable from 12735 successful returns. */ 12736 { 12737 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 12738 if (cd_ascii_to_88591 != (iconv_t)(-1)) 12739 { 12740 static ICONV_CONST char input[] = "\263"; 12741 char buf[10]; 12742 ICONV_CONST char *inptr = input; 12743 size_t inbytesleft = strlen (input); 12744 char *outptr = buf; 12745 size_t outbytesleft = sizeof (buf); 12746 size_t res = iconv (cd_ascii_to_88591, 12747 &inptr, &inbytesleft, 12748 &outptr, &outbytesleft); 12749 if (res == 0) 12750 result |= 2; 12751 iconv_close (cd_ascii_to_88591); 12752 } 12753 } 12754 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 12755 { 12756 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 12757 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12758 { 12759 static ICONV_CONST char input[] = "\304"; 12760 static char buf[2] = { (char)0xDE, (char)0xAD }; 12761 ICONV_CONST char *inptr = input; 12762 size_t inbytesleft = 1; 12763 char *outptr = buf; 12764 size_t outbytesleft = 1; 12765 size_t res = iconv (cd_88591_to_utf8, 12766 &inptr, &inbytesleft, 12767 &outptr, &outbytesleft); 12768 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 12769 result |= 4; 12770 iconv_close (cd_88591_to_utf8); 12771 } 12772 } 12773 #if 0 /* This bug could be worked around by the caller. */ 12774 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12775 { 12776 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12777 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12778 { 12779 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12780 char buf[50]; 12781 ICONV_CONST char *inptr = input; 12782 size_t inbytesleft = strlen (input); 12783 char *outptr = buf; 12784 size_t outbytesleft = sizeof (buf); 12785 size_t res = iconv (cd_88591_to_utf8, 12786 &inptr, &inbytesleft, 12787 &outptr, &outbytesleft); 12788 if ((int)res > 0) 12789 result |= 8; 12790 iconv_close (cd_88591_to_utf8); 12791 } 12792 } 12793 #endif 12794 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12795 provided. */ 12796 { 12797 /* Try standardized names. */ 12798 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 12799 /* Try IRIX, OSF/1 names. */ 12800 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 12801 /* Try AIX names. */ 12802 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 12803 /* Try HP-UX names. */ 12804 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 12805 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 12806 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 12807 result |= 16; 12808 if (cd1 != (iconv_t)(-1)) 12809 iconv_close (cd1); 12810 if (cd2 != (iconv_t)(-1)) 12811 iconv_close (cd2); 12812 if (cd3 != (iconv_t)(-1)) 12813 iconv_close (cd3); 12814 if (cd4 != (iconv_t)(-1)) 12815 iconv_close (cd4); 12816 } 12817 return result; 12818 12819 ; 12820 return 0; 12821 } 12822 _ACEOF 12823 if ac_fn_c_try_run "$LINENO"; then : 12824 am_cv_func_iconv_works=yes 12825 fi 12826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12827 conftest.$ac_objext conftest.beam conftest.$ac_ext 12828 fi 12829 12830 test "$am_cv_func_iconv_works" = no || break 12831 done 12832 LIBS="$am_save_LIBS" 12833 12834 fi 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 12836 $as_echo "$am_cv_func_iconv_works" >&6; } 12837 case "$am_cv_func_iconv_works" in 12838 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 12839 *) am_func_iconv=yes ;; 12840 esac 12841 else 12842 am_func_iconv=no am_cv_lib_iconv=no 12843 fi 12844 if test "$am_func_iconv" = yes; then 12845 12846 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12847 12848 fi 12849 if test "$am_cv_lib_iconv" = yes; then 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 12851 $as_echo_n "checking how to link with libiconv... " >&6; } 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 12853 $as_echo "$LIBICONV" >&6; } 12854 else 12855 CPPFLAGS="$am_save_CPPFLAGS" 12856 LIBICONV= 12857 LTLIBICONV= 12858 fi 12859 12860 12861 12862 12863 12864 12865 use_additional=yes 12866 12867 acl_save_prefix="$prefix" 12868 prefix="$acl_final_prefix" 12869 acl_save_exec_prefix="$exec_prefix" 12870 exec_prefix="$acl_final_exec_prefix" 12871 12872 eval additional_includedir=\"$includedir\" 12873 eval additional_libdir=\"$libdir\" 12874 12875 exec_prefix="$acl_save_exec_prefix" 12876 prefix="$acl_save_prefix" 12877 12878 12879 # Check whether --with-libintl-prefix was given. 12880 if test "${with_libintl_prefix+set}" = set; then : 12881 withval=$with_libintl_prefix; 12882 if test "X$withval" = "Xno"; then 12883 use_additional=no 12884 else 12885 if test "X$withval" = "X"; then 12886 12887 acl_save_prefix="$prefix" 12888 prefix="$acl_final_prefix" 12889 acl_save_exec_prefix="$exec_prefix" 12890 exec_prefix="$acl_final_exec_prefix" 12891 12892 eval additional_includedir=\"$includedir\" 12893 eval additional_libdir=\"$libdir\" 12894 12895 exec_prefix="$acl_save_exec_prefix" 12896 prefix="$acl_save_prefix" 12897 12898 else 12899 additional_includedir="$withval/include" 12900 additional_libdir="$withval/lib" 12901 fi 12902 fi 12903 12904 fi 12905 12906 12907 # Check whether --with-libintl-type was given. 12908 if test "${with_libintl_type+set}" = set; then : 12909 withval=$with_libintl_type; with_libintl_type=$withval 12910 else 12911 with_libintl_type=auto 12912 fi 12913 12914 lib_type=`eval echo \$with_libintl_type` 12915 12916 LIBINTL= 12917 LTLIBINTL= 12918 INCINTL= 12919 rpathdirs= 12920 ltrpathdirs= 12921 names_already_handled= 12922 names_next_round='intl ' 12923 while test -n "$names_next_round"; do 12924 names_this_round="$names_next_round" 12925 names_next_round= 12926 for name in $names_this_round; do 12927 already_handled= 12928 for n in $names_already_handled; do 12929 if test "$n" = "$name"; then 12930 already_handled=yes 12931 break 12932 fi 12933 done 12934 if test -z "$already_handled"; then 12935 names_already_handled="$names_already_handled $name" 12936 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12937 eval value=\"\$HAVE_LIB$uppername\" 12938 if test -n "$value"; then 12939 if test "$value" = yes; then 12940 eval value=\"\$LIB$uppername\" 12941 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12942 eval value=\"\$LTLIB$uppername\" 12943 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12944 else 12945 : 12946 fi 12947 else 12948 found_dir= 12949 found_la= 12950 found_so= 12951 found_a= 12952 if test $use_additional = yes; then 12953 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12954 found_dir="$additional_libdir" 12955 found_so="$additional_libdir/lib$name.$shlibext" 12956 if test -f "$additional_libdir/lib$name.la"; then 12957 found_la="$additional_libdir/lib$name.la" 12958 fi 12959 elif test x$lib_type != xshared; then 12960 if test -f "$additional_libdir/lib$name.$libext"; then 12961 found_dir="$additional_libdir" 12962 found_a="$additional_libdir/lib$name.$libext" 12963 if test -f "$additional_libdir/lib$name.la"; then 12964 found_la="$additional_libdir/lib$name.la" 12965 fi 12966 fi 12967 fi 12968 fi 12969 if test "X$found_dir" = "X"; then 12970 for x in $LDFLAGS $LTLIBINTL; do 12971 12972 acl_save_prefix="$prefix" 12973 prefix="$acl_final_prefix" 12974 acl_save_exec_prefix="$exec_prefix" 12975 exec_prefix="$acl_final_exec_prefix" 12976 eval x=\"$x\" 12977 exec_prefix="$acl_save_exec_prefix" 12978 prefix="$acl_save_prefix" 12979 12980 case "$x" in 12981 -L*) 12982 dir=`echo "X$x" | sed -e 's/^X-L//'` 12983 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12984 found_dir="$dir" 12985 found_so="$dir/lib$name.$shlibext" 12986 if test -f "$dir/lib$name.la"; then 12987 found_la="$dir/lib$name.la" 12988 fi 12989 elif test x$lib_type != xshared; then 12990 if test -f "$dir/lib$name.$libext"; then 12991 found_dir="$dir" 12992 found_a="$dir/lib$name.$libext" 12993 if test -f "$dir/lib$name.la"; then 12994 found_la="$dir/lib$name.la" 12995 fi 12996 fi 12997 fi 12998 ;; 12999 esac 13000 if test "X$found_dir" != "X"; then 13001 break 13002 fi 13003 done 13004 fi 13005 if test "X$found_dir" != "X"; then 13006 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13007 if test "X$found_so" != "X"; then 13008 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13010 else 13011 haveit= 13012 for x in $ltrpathdirs; do 13013 if test "X$x" = "X$found_dir"; then 13014 haveit=yes 13015 break 13016 fi 13017 done 13018 if test -z "$haveit"; then 13019 ltrpathdirs="$ltrpathdirs $found_dir" 13020 fi 13021 if test "$hardcode_direct" = yes; then 13022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13023 else 13024 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13026 haveit= 13027 for x in $rpathdirs; do 13028 if test "X$x" = "X$found_dir"; then 13029 haveit=yes 13030 break 13031 fi 13032 done 13033 if test -z "$haveit"; then 13034 rpathdirs="$rpathdirs $found_dir" 13035 fi 13036 else 13037 haveit= 13038 for x in $LDFLAGS $LIBINTL; do 13039 13040 acl_save_prefix="$prefix" 13041 prefix="$acl_final_prefix" 13042 acl_save_exec_prefix="$exec_prefix" 13043 exec_prefix="$acl_final_exec_prefix" 13044 eval x=\"$x\" 13045 exec_prefix="$acl_save_exec_prefix" 13046 prefix="$acl_save_prefix" 13047 13048 if test "X$x" = "X-L$found_dir"; then 13049 haveit=yes 13050 break 13051 fi 13052 done 13053 if test -z "$haveit"; then 13054 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13055 fi 13056 if test "$hardcode_minus_L" != no; then 13057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13058 else 13059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13060 fi 13061 fi 13062 fi 13063 fi 13064 else 13065 if test "X$found_a" != "X"; then 13066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13067 else 13068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13069 fi 13070 fi 13071 additional_includedir= 13072 case "$found_dir" in 13073 */lib | */lib/) 13074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13075 additional_includedir="$basedir/include" 13076 ;; 13077 esac 13078 if test "X$additional_includedir" != "X"; then 13079 if test "X$additional_includedir" != "X/usr/include"; then 13080 haveit= 13081 if test "X$additional_includedir" = "X/usr/local/include"; then 13082 if test -n "$GCC"; then 13083 case $host_os in 13084 linux*) haveit=yes;; 13085 esac 13086 fi 13087 fi 13088 if test -z "$haveit"; then 13089 for x in $CPPFLAGS $INCINTL; do 13090 13091 acl_save_prefix="$prefix" 13092 prefix="$acl_final_prefix" 13093 acl_save_exec_prefix="$exec_prefix" 13094 exec_prefix="$acl_final_exec_prefix" 13095 eval x=\"$x\" 13096 exec_prefix="$acl_save_exec_prefix" 13097 prefix="$acl_save_prefix" 13098 13099 if test "X$x" = "X-I$additional_includedir"; then 13100 haveit=yes 13101 break 13102 fi 13103 done 13104 if test -z "$haveit"; then 13105 if test -d "$additional_includedir"; then 13106 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13107 fi 13108 fi 13109 fi 13110 fi 13111 fi 13112 if test -n "$found_la"; then 13113 save_libdir="$libdir" 13114 case "$found_la" in 13115 */* | *\\*) . "$found_la" ;; 13116 *) . "./$found_la" ;; 13117 esac 13118 libdir="$save_libdir" 13119 for dep in $dependency_libs; do 13120 case "$dep" in 13121 -L*) 13122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13123 if test "X$additional_libdir" != "X/usr/lib"; then 13124 haveit= 13125 if test "X$additional_libdir" = "X/usr/local/lib"; then 13126 if test -n "$GCC"; then 13127 case $host_os in 13128 linux*) haveit=yes;; 13129 esac 13130 fi 13131 fi 13132 if test -z "$haveit"; then 13133 haveit= 13134 for x in $LDFLAGS $LIBINTL; do 13135 13136 acl_save_prefix="$prefix" 13137 prefix="$acl_final_prefix" 13138 acl_save_exec_prefix="$exec_prefix" 13139 exec_prefix="$acl_final_exec_prefix" 13140 eval x=\"$x\" 13141 exec_prefix="$acl_save_exec_prefix" 13142 prefix="$acl_save_prefix" 13143 13144 if test "X$x" = "X-L$additional_libdir"; then 13145 haveit=yes 13146 break 13147 fi 13148 done 13149 if test -z "$haveit"; then 13150 if test -d "$additional_libdir"; then 13151 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13152 fi 13153 fi 13154 haveit= 13155 for x in $LDFLAGS $LTLIBINTL; do 13156 13157 acl_save_prefix="$prefix" 13158 prefix="$acl_final_prefix" 13159 acl_save_exec_prefix="$exec_prefix" 13160 exec_prefix="$acl_final_exec_prefix" 13161 eval x=\"$x\" 13162 exec_prefix="$acl_save_exec_prefix" 13163 prefix="$acl_save_prefix" 13164 13165 if test "X$x" = "X-L$additional_libdir"; then 13166 haveit=yes 13167 break 13168 fi 13169 done 13170 if test -z "$haveit"; then 13171 if test -d "$additional_libdir"; then 13172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13173 fi 13174 fi 13175 fi 13176 fi 13177 ;; 13178 -R*) 13179 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13180 if test "$enable_rpath" != no; then 13181 haveit= 13182 for x in $rpathdirs; do 13183 if test "X$x" = "X$dir"; then 13184 haveit=yes 13185 break 13186 fi 13187 done 13188 if test -z "$haveit"; then 13189 rpathdirs="$rpathdirs $dir" 13190 fi 13191 haveit= 13192 for x in $ltrpathdirs; do 13193 if test "X$x" = "X$dir"; then 13194 haveit=yes 13195 break 13196 fi 13197 done 13198 if test -z "$haveit"; then 13199 ltrpathdirs="$ltrpathdirs $dir" 13200 fi 13201 fi 13202 ;; 13203 -l*) 13204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13205 ;; 13206 *.la) 13207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13208 ;; 13209 *) 13210 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13212 ;; 13213 esac 13214 done 13215 fi 13216 else 13217 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13218 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13219 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13220 else 13221 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 13222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 13223 fi 13224 fi 13225 fi 13226 fi 13227 done 13228 done 13229 if test "X$rpathdirs" != "X"; then 13230 if test -n "$hardcode_libdir_separator"; then 13231 alldirs= 13232 for found_dir in $rpathdirs; do 13233 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13234 done 13235 acl_save_libdir="$libdir" 13236 libdir="$alldirs" 13237 eval flag=\"$hardcode_libdir_flag_spec\" 13238 libdir="$acl_save_libdir" 13239 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13240 else 13241 for found_dir in $rpathdirs; do 13242 acl_save_libdir="$libdir" 13243 libdir="$found_dir" 13244 eval flag=\"$hardcode_libdir_flag_spec\" 13245 libdir="$acl_save_libdir" 13246 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13247 done 13248 fi 13249 fi 13250 if test "X$ltrpathdirs" != "X"; then 13251 for found_dir in $ltrpathdirs; do 13252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13253 done 13254 fi 13255 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13257 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 13258 if eval \${$gt_func_gnugettext_libintl+:} false; then : 13259 $as_echo_n "(cached) " >&6 13260 else 13261 gt_save_CPPFLAGS="$CPPFLAGS" 13262 CPPFLAGS="$CPPFLAGS $INCINTL" 13263 gt_save_LIBS="$LIBS" 13264 LIBS="$LIBS $LIBINTL" 13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266 /* end confdefs.h. */ 13267 13268 #include <libintl.h> 13269 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13270 extern int _nl_msg_cat_cntr; 13271 extern 13272 #ifdef __cplusplus 13273 "C" 13274 #endif 13275 const char *_nl_expand_alias (const char *); 13276 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13277 #else 13278 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13279 #endif 13280 $gt_revision_test_code 13281 13282 int 13283 main () 13284 { 13285 13286 bindtextdomain ("", ""); 13287 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13288 13289 ; 13290 return 0; 13291 } 13292 _ACEOF 13293 if ac_fn_c_try_link "$LINENO"; then : 13294 eval "$gt_func_gnugettext_libintl=yes" 13295 else 13296 eval "$gt_func_gnugettext_libintl=no" 13297 fi 13298 rm -f core conftest.err conftest.$ac_objext \ 13299 conftest$ac_exeext conftest.$ac_ext 13300 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13301 LIBS="$LIBS $LIBICONV" 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303 /* end confdefs.h. */ 13304 13305 #include <libintl.h> 13306 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13307 extern int _nl_msg_cat_cntr; 13308 extern 13309 #ifdef __cplusplus 13310 "C" 13311 #endif 13312 const char *_nl_expand_alias (const char *); 13313 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13314 #else 13315 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13316 #endif 13317 $gt_revision_test_code 13318 13319 int 13320 main () 13321 { 13322 13323 bindtextdomain ("", ""); 13324 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13325 13326 ; 13327 return 0; 13328 } 13329 _ACEOF 13330 if ac_fn_c_try_link "$LINENO"; then : 13331 LIBINTL="$LIBINTL $LIBICONV" 13332 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13333 eval "$gt_func_gnugettext_libintl=yes" 13334 13335 fi 13336 rm -f core conftest.err conftest.$ac_objext \ 13337 conftest$ac_exeext conftest.$ac_ext 13338 fi 13339 CPPFLAGS="$gt_save_CPPFLAGS" 13340 LIBS="$gt_save_LIBS" 13341 fi 13342 eval ac_res=\$$gt_func_gnugettext_libintl 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13344 $as_echo "$ac_res" >&6; } 13345 fi 13346 13347 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13348 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13349 && test "$PACKAGE" != gettext-runtime \ 13350 && test "$PACKAGE" != gettext-tools; }; then 13351 gt_use_preinstalled_gnugettext=yes 13352 else 13353 LIBINTL= 13354 LTLIBINTL= 13355 INCINTL= 13356 fi 13357 13358 13359 13360 if test -n "$INTL_MACOSX_LIBS"; then 13361 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13362 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13363 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13364 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13365 fi 13366 fi 13367 13368 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13369 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13370 13371 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13372 13373 else 13374 USE_NLS=no 13375 fi 13376 fi 13377 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13379 $as_echo_n "checking whether to use NLS... " >&6; } 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13381 $as_echo "$USE_NLS" >&6; } 13382 if test "$USE_NLS" = "yes"; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13384 $as_echo_n "checking where the gettext function comes from... " >&6; } 13385 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13386 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13387 gt_source="external libintl" 13388 else 13389 gt_source="libc" 13390 fi 13391 else 13392 gt_source="included intl directory" 13393 fi 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13395 $as_echo "$gt_source" >&6; } 13396 fi 13397 13398 if test "$USE_NLS" = "yes"; then 13399 13400 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13401 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13403 $as_echo_n "checking how to link with libintl... " >&6; } 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13405 $as_echo "$LIBINTL" >&6; } 13406 13407 for element in $INCINTL; do 13408 haveit= 13409 for x in $CPPFLAGS; do 13410 13411 acl_save_prefix="$prefix" 13412 prefix="$acl_final_prefix" 13413 acl_save_exec_prefix="$exec_prefix" 13414 exec_prefix="$acl_final_exec_prefix" 13415 eval x=\"$x\" 13416 exec_prefix="$acl_save_exec_prefix" 13417 prefix="$acl_save_prefix" 13418 13419 if test "X$x" = "X$element"; then 13420 haveit=yes 13421 break 13422 fi 13423 done 13424 if test -z "$haveit"; then 13425 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13426 fi 13427 done 13428 13429 fi 13430 13431 13432 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13433 13434 13435 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13436 13437 fi 13438 13439 POSUB=po 13440 fi 13441 13442 13443 13444 INTLLIBS="$LIBINTL" 13445 13446 13447 13448 13449 13450 13451 fi 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13464 $as_echo_n "checking whether NLS is requested... " >&6; } 13465 if test x"$USE_NLS" != xyes; then 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13467 $as_echo "no" >&6; } 13468 else 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13470 $as_echo "yes" >&6; } 13471 13472 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13473 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13476 $as_echo_n "checking for catalogs to be installed... " >&6; } 13477 # Look for .po and .gmo files in the source directory. 13478 CATALOGS= 13479 XLINGUAS= 13480 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13481 # If there aren't any .gmo files the shell will give us the 13482 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13483 # weeded out. 13484 case "$cat" in *\**) 13485 continue;; 13486 esac 13487 # The quadruple backslash is collapsed to a double backslash 13488 # by the backticks, then collapsed again by the double quotes, 13489 # leaving us with one backslash in the sed expression (right 13490 # before the dot that mustn't act as a wildcard). 13491 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13492 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13493 # The user is allowed to set LINGUAS to a list of languages to 13494 # install catalogs for. If it's empty that means "all of them." 13495 if test "x$LINGUAS" = x; then 13496 CATALOGS="$CATALOGS $cat" 13497 XLINGUAS="$XLINGUAS $lang" 13498 else 13499 case "$LINGUAS" in *$lang*) 13500 CATALOGS="$CATALOGS $cat" 13501 XLINGUAS="$XLINGUAS $lang" 13502 ;; 13503 esac 13504 fi 13505 done 13506 LINGUAS="$XLINGUAS" 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13508 $as_echo "$LINGUAS" >&6; } 13509 13510 13511 DATADIRNAME=share 13512 13513 INSTOBJEXT=.mo 13514 13515 GENCAT=gencat 13516 13517 CATOBJEXT=.gmo 13518 13519 fi 13520 13521 . ${srcdir}/../bfd/configure.host 13522 13523 # Put a plausible default for CC_FOR_BUILD in Makefile. 13524 if test -z "$CC_FOR_BUILD"; then 13525 if test "x$cross_compiling" = "xno"; then 13526 CC_FOR_BUILD='$(CC)' 13527 else 13528 CC_FOR_BUILD=gcc 13529 fi 13530 fi 13531 13532 # Also set EXEEXT_FOR_BUILD. 13533 if test "x$cross_compiling" = "xno"; then 13534 EXEEXT_FOR_BUILD='$(EXEEXT)' 13535 else 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 13537 $as_echo_n "checking for build system executable suffix... " >&6; } 13538 if ${bfd_cv_build_exeext+:} false; then : 13539 $as_echo_n "(cached) " >&6 13540 else 13541 rm -f conftest* 13542 echo 'int main () { return 0; }' > conftest.c 13543 bfd_cv_build_exeext= 13544 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 13545 for file in conftest.*; do 13546 case $file in 13547 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 13548 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 13549 esac 13550 done 13551 rm -f conftest* 13552 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 13553 fi 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 13555 $as_echo "$bfd_cv_build_exeext" >&6; } 13556 EXEEXT_FOR_BUILD="" 13557 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 13558 fi 13559 13560 # See whether 64-bit bfd lib has been enabled. 13561 OLD_CPPFLAGS=$CPPFLAGS 13562 # Put the old CPPFLAGS last, in case the user's CPPFLAGS point somewhere 13563 # with bfd, with -I/foo/include. We always want our bfd. 13564 CPPFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CPPFLAGS" 13565 # Note we cannot cache the result of this check because BFD64 may change 13566 # when a secondary target has been added or removed and we have no access 13567 # to this information here. 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BFD is 64-bit" >&5 13569 $as_echo_n "checking whether BFD is 64-bit... " >&6; } 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571 /* end confdefs.h. */ 13572 #include "bfd.h" 13573 int 13574 main () 13575 { 13576 #ifdef BFD64 13577 HAVE_BFD64 13578 #endif 13579 ; 13580 return 0; 13581 } 13582 _ACEOF 13583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13584 $EGREP "HAVE_BFD64" >/dev/null 2>&1; then : 13585 have_64_bit_bfd=yes 13586 else 13587 have_64_bit_bfd=no 13588 fi 13589 rm -f conftest* 13590 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_64_bit_bfd" >&5 13592 $as_echo "$have_64_bit_bfd" >&6; } 13593 CPPFLAGS=$OLD_CPPFLAGS 13594 13595 13596 13597 13598 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 13599 if test "x$ac_cv_have_decl_basename" = xyes; then : 13600 ac_have_decl=1 13601 else 13602 ac_have_decl=0 13603 fi 13604 13605 cat >>confdefs.h <<_ACEOF 13606 #define HAVE_DECL_BASENAME $ac_have_decl 13607 _ACEOF 13608 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 13609 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 13610 ac_have_decl=1 13611 else 13612 ac_have_decl=0 13613 fi 13614 13615 cat >>confdefs.h <<_ACEOF 13616 #define HAVE_DECL_STPCPY $ac_have_decl 13617 _ACEOF 13618 13619 13620 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do 13621 # since sigsetjmp might only be defined as a macro. 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 13623 $as_echo_n "checking for sigsetjmp... " >&6; } 13624 if ${gdb_cv_func_sigsetjmp+:} false; then : 13625 $as_echo_n "(cached) " >&6 13626 else 13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13628 /* end confdefs.h. */ 13629 13630 #include <setjmp.h> 13631 13632 int 13633 main () 13634 { 13635 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 13636 ; 13637 return 0; 13638 } 13639 _ACEOF 13640 if ac_fn_c_try_compile "$LINENO"; then : 13641 bfd_cv_func_sigsetjmp=yes 13642 else 13643 bfd_cv_func_sigsetjmp=no 13644 fi 13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13646 fi 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 13648 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } 13649 if test $bfd_cv_func_sigsetjmp = yes; then 13650 13651 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 13652 13653 fi 13654 13655 cgen_maint=no 13656 cgendir='$(srcdir)/../../cgen' 13657 if test -r ${srcdir}/../cgen/iformat.scm; then 13658 cgendir='$(srcdir)/../cgen' 13659 fi 13660 13661 # Check whether --enable-cgen-maint was given. 13662 if test "${enable_cgen_maint+set}" = set; then : 13663 enableval=$enable_cgen_maint; case "${enableval}" in 13664 yes) cgen_maint=yes ;; 13665 no) cgen_maint=no ;; 13666 *) 13667 # Argument is a directory where cgen can be found. In some 13668 # future world cgen could be installable, but right now this 13669 # is not the case. Instead we assume the directory is a path 13670 # to the cgen source tree. 13671 cgen_maint=yes 13672 if test -r ${enableval}/iformat.scm; then 13673 # This looks like a cgen source tree. 13674 cgendir=${enableval} 13675 else 13676 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 13677 fi 13678 ;; 13679 esac 13680 fi 13681 if test x${cgen_maint} = xyes; then 13682 CGEN_MAINT_TRUE= 13683 CGEN_MAINT_FALSE='#' 13684 else 13685 CGEN_MAINT_TRUE='#' 13686 CGEN_MAINT_FALSE= 13687 fi 13688 13689 13690 13691 using_cgen=no 13692 13693 # Check if linker supports --as-needed and --no-as-needed options 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13695 $as_echo_n "checking linker --as-needed support... " >&6; } 13696 if ${bfd_cv_ld_as_needed+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698 else 13699 bfd_cv_ld_as_needed=no 13700 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 13701 bfd_cv_ld_as_needed=yes 13702 fi 13703 13704 fi 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 13706 $as_echo "$bfd_cv_ld_as_needed" >&6; } 13707 13708 LIBM= 13709 case $host in 13710 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 13711 # These system don't have libm, or don't need it 13712 ;; 13713 *-ncr-sysv4.3*) 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 13715 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 13716 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718 else 13719 ac_check_lib_save_LIBS=$LIBS 13720 LIBS="-lmw $LIBS" 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722 /* end confdefs.h. */ 13723 13724 /* Override any GCC internal prototype to avoid an error. 13725 Use char because int might match the return type of a GCC 13726 builtin and then its argument prototype would still apply. */ 13727 #ifdef __cplusplus 13728 extern "C" 13729 #endif 13730 char _mwvalidcheckl (); 13731 int 13732 main () 13733 { 13734 return _mwvalidcheckl (); 13735 ; 13736 return 0; 13737 } 13738 _ACEOF 13739 if ac_fn_c_try_link "$LINENO"; then : 13740 ac_cv_lib_mw__mwvalidcheckl=yes 13741 else 13742 ac_cv_lib_mw__mwvalidcheckl=no 13743 fi 13744 rm -f core conftest.err conftest.$ac_objext \ 13745 conftest$ac_exeext conftest.$ac_ext 13746 LIBS=$ac_check_lib_save_LIBS 13747 fi 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 13749 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 13750 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 13751 LIBM="-lmw" 13752 fi 13753 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13755 $as_echo_n "checking for cos in -lm... " >&6; } 13756 if ${ac_cv_lib_m_cos+:} false; then : 13757 $as_echo_n "(cached) " >&6 13758 else 13759 ac_check_lib_save_LIBS=$LIBS 13760 LIBS="-lm $LIBS" 13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13762 /* end confdefs.h. */ 13763 13764 /* Override any GCC internal prototype to avoid an error. 13765 Use char because int might match the return type of a GCC 13766 builtin and then its argument prototype would still apply. */ 13767 #ifdef __cplusplus 13768 extern "C" 13769 #endif 13770 char cos (); 13771 int 13772 main () 13773 { 13774 return cos (); 13775 ; 13776 return 0; 13777 } 13778 _ACEOF 13779 if ac_fn_c_try_link "$LINENO"; then : 13780 ac_cv_lib_m_cos=yes 13781 else 13782 ac_cv_lib_m_cos=no 13783 fi 13784 rm -f core conftest.err conftest.$ac_objext \ 13785 conftest$ac_exeext conftest.$ac_ext 13786 LIBS=$ac_check_lib_save_LIBS 13787 fi 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13789 $as_echo "$ac_cv_lib_m_cos" >&6; } 13790 if test "x$ac_cv_lib_m_cos" = xyes; then : 13791 LIBM="$LIBM -lm" 13792 fi 13793 13794 ;; 13795 *) 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13797 $as_echo_n "checking for cos in -lm... " >&6; } 13798 if ${ac_cv_lib_m_cos+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800 else 13801 ac_check_lib_save_LIBS=$LIBS 13802 LIBS="-lm $LIBS" 13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13804 /* end confdefs.h. */ 13805 13806 /* Override any GCC internal prototype to avoid an error. 13807 Use char because int might match the return type of a GCC 13808 builtin and then its argument prototype would still apply. */ 13809 #ifdef __cplusplus 13810 extern "C" 13811 #endif 13812 char cos (); 13813 int 13814 main () 13815 { 13816 return cos (); 13817 ; 13818 return 0; 13819 } 13820 _ACEOF 13821 if ac_fn_c_try_link "$LINENO"; then : 13822 ac_cv_lib_m_cos=yes 13823 else 13824 ac_cv_lib_m_cos=no 13825 fi 13826 rm -f core conftest.err conftest.$ac_objext \ 13827 conftest$ac_exeext conftest.$ac_ext 13828 LIBS=$ac_check_lib_save_LIBS 13829 fi 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13831 $as_echo "$ac_cv_lib_m_cos" >&6; } 13832 if test "x$ac_cv_lib_m_cos" = xyes; then : 13833 LIBM="-lm" 13834 fi 13835 13836 ;; 13837 esac 13838 13839 13840 13841 #Libs for generator progs 13842 if test "x$cross_compiling" = "xno"; then 13843 BUILD_LIBS=../libiberty/libiberty.a 13844 BUILD_LIB_DEPS=$BUILD_LIBS 13845 else 13846 # if cross-compiling, assume that the system provides -liberty 13847 # and that the version is compatible with new headers. 13848 BUILD_LIBS=-liberty 13849 BUILD_LIB_DEPS= 13850 fi 13851 BUILD_LIBS="$BUILD_LIBS $LIBINTL" 13852 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" 13853 13854 13855 13856 13857 # Horrible hacks to build DLLs on Windows and a shared library elsewhere. 13858 SHARED_LDFLAGS= 13859 SHARED_LIBADD= 13860 SHARED_DEPENDENCIES= 13861 if test "$enable_shared" = "yes"; then 13862 # When building a shared libopcodes, link against the pic version of libiberty 13863 # so that apps that use libopcodes won't need libiberty just to satisfy any 13864 # libopcodes references. 13865 # We can't do that if a pic libiberty is unavailable since including non-pic 13866 # code would insert text relocations into libopcodes. 13867 # Note that linking against libbfd as we do here, which is itself linked 13868 # against libiberty, may not satisfy all the libopcodes libiberty references 13869 # since libbfd may not pull in the entirety of libiberty. 13870 # Also, jam libintl into the right place in all of this: after libiberty, 13871 # which uses it, but before -lcygwin, which it uses. 13872 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 13873 if test -n "$x"; then 13874 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 13875 fi 13876 fi 13877 13878 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 13879 13880 if test "$enable_shared" = "yes"; then 13881 case "${host}" in 13882 *-*-cygwin*) 13883 SHARED_LDFLAGS="-no-undefined" 13884 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" 13885 ;; 13886 *) 13887 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" 13888 SHARED_DEPENDENCIES="../bfd/libbfd.la" 13889 ;; 13890 esac 13891 13892 if test -n "$SHARED_LIBADD"; then 13893 if test -n "$LIBM"; then 13894 if test x"$bfd_cv_ld_as_needed" = xyes; then 13895 # Link against libm only when needed. Put -lc, -lm inside -Wl 13896 # to stop libtool reordering these options. 13897 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 13898 else 13899 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 13900 fi 13901 fi 13902 fi 13903 fi 13904 13905 13906 13907 13908 # target-specific stuff: 13909 13910 # Canonicalize the secondary target names. 13911 if test -n "$enable_targets" ; then 13912 for targ in `echo $enable_targets | sed 's/,/ /g'` 13913 do 13914 result=`$ac_config_sub $targ 2>/dev/null` 13915 if test -n "$result" ; then 13916 canon_targets="$canon_targets $result" 13917 else 13918 # Allow targets that config.sub doesn't recognize, like "all". 13919 canon_targets="$canon_targets $targ" 13920 fi 13921 done 13922 fi 13923 13924 all_targets=false 13925 selarchs= 13926 for targ in $target $canon_targets 13927 do 13928 if test "x$targ" = "xall" ; then 13929 all_targets=true 13930 else 13931 . $srcdir/../bfd/config.bfd 13932 selarchs="$selarchs $targ_archs" 13933 fi 13934 done 13935 13936 # Utility var, documents generic cgen support files. 13937 13938 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" 13939 13940 # We don't do any links based on the target system, just makefile config. 13941 13942 if test x${all_targets} = xfalse ; then 13943 13944 # Target architecture .o files. 13945 ta= 13946 13947 for arch in $selarchs 13948 do 13949 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 13950 archdefs="$archdefs -DARCH_$ad" 13951 case "$arch" in 13952 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;; 13953 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 13954 bfd_amdgcn_arch) ;; 13955 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 13956 bfd_arm_arch) ta="$ta arm-dis.lo" ;; 13957 bfd_avr_arch) ta="$ta avr-dis.lo" ;; 13958 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; 13959 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; 13960 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; 13961 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; 13962 bfd_csky_arch) ta="$ta csky-dis.lo" ;; 13963 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 13964 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 13965 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 13966 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 13967 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 13968 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; 13969 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; 13970 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 13971 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 13972 bfd_i386_arch|bfd_iamcu_arch) 13973 ta="$ta i386-dis.lo" ;; 13974 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 13975 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 13976 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; 13977 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 13978 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;; 13979 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; 13980 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; 13981 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; 13982 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13983 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13984 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13985 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13986 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; 13987 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 13988 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 13989 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; 13990 bfd_metag_arch) ta="$ta metag-dis.lo" ;; 13991 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; 13992 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; 13993 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 13994 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 13995 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 13996 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; 13997 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; 13998 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; 13999 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; 14000 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 14001 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; 14002 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 14003 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 14004 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14005 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14006 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; 14007 bfd_pyramid_arch) ;; 14008 bfd_romp_arch) ;; 14009 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14010 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14011 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; 14012 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; 14013 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 14014 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; 14015 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; 14016 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 14017 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; 14018 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 14019 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 14020 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 14021 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; 14022 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; 14023 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; 14024 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14025 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14026 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14027 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14028 bfd_vax_arch) ta="$ta vax-dis.lo" ;; 14029 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; 14030 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; 14031 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; 14032 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 14033 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 14034 bfd_z80_arch) ta="$ta z80-dis.lo" ;; 14035 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 14036 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;; 14037 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;; 14038 14039 "") ;; 14040 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; 14041 esac 14042 done 14043 14044 if test $using_cgen = yes ; then 14045 ta="$ta $cgen_files" 14046 fi 14047 14048 # Weed out duplicate .o files. 14049 f="" 14050 for i in $ta ; do 14051 case " $f " in 14052 *" $i "*) ;; 14053 *) f="$f $i" ;; 14054 esac 14055 done 14056 ta="$f" 14057 14058 # And duplicate -D flags. 14059 f="" 14060 for i in $archdefs ; do 14061 case " $f " in 14062 *" $i "*) ;; 14063 *) f="$f $i" ;; 14064 esac 14065 done 14066 archdefs="$f" 14067 14068 BFD_MACHINES="$ta" 14069 14070 else # all_targets is true 14071 archdefs=-DARCH_all 14072 if test "$have_64_bit_bfd" = "yes" ; then 14073 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' 14074 else 14075 BFD_MACHINES='$(ALL32_MACHINES)' 14076 fi 14077 fi 14078 14079 14080 14081 14082 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 14083 14084 cat >confcache <<\_ACEOF 14085 # This file is a shell script that caches the results of configure 14086 # tests run on this system so they can be shared between configure 14087 # scripts and configure runs, see configure's option --config-cache. 14088 # It is not useful on other systems. If it contains results you don't 14089 # want to keep, you may remove or edit it. 14090 # 14091 # config.status only pays attention to the cache file if you give it 14092 # the --recheck option to rerun configure. 14093 # 14094 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14095 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14096 # following values. 14097 14098 _ACEOF 14099 14100 # The following way of writing the cache mishandles newlines in values, 14101 # but we know of no workaround that is simple, portable, and efficient. 14102 # So, we kill variables containing newlines. 14103 # Ultrix sh set writes to stderr and can't be redirected directly, 14104 # and sets the high bit in the cache file unless we assign to the vars. 14105 ( 14106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14107 eval ac_val=\$$ac_var 14108 case $ac_val in #( 14109 *${as_nl}*) 14110 case $ac_var in #( 14111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14113 esac 14114 case $ac_var in #( 14115 _ | IFS | as_nl) ;; #( 14116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14117 *) { eval $ac_var=; unset $ac_var;} ;; 14118 esac ;; 14119 esac 14120 done 14121 14122 (set) 2>&1 | 14123 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14124 *${as_nl}ac_space=\ *) 14125 # `set' does not quote correctly, so add quotes: double-quote 14126 # substitution turns \\\\ into \\, and sed turns \\ into \. 14127 sed -n \ 14128 "s/'/'\\\\''/g; 14129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14130 ;; #( 14131 *) 14132 # `set' quotes correctly as required by POSIX, so do not add quotes. 14133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14134 ;; 14135 esac | 14136 sort 14137 ) | 14138 sed ' 14139 /^ac_cv_env_/b end 14140 t clear 14141 :clear 14142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14143 t end 14144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14145 :end' >>confcache 14146 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14147 if test -w "$cache_file"; then 14148 if test "x$cache_file" != "x/dev/null"; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14150 $as_echo "$as_me: updating cache $cache_file" >&6;} 14151 if test ! -f "$cache_file" || test -h "$cache_file"; then 14152 cat confcache >"$cache_file" 14153 else 14154 case $cache_file in #( 14155 */* | ?:*) 14156 mv -f confcache "$cache_file"$$ && 14157 mv -f "$cache_file"$$ "$cache_file" ;; #( 14158 *) 14159 mv -f confcache "$cache_file" ;; 14160 esac 14161 fi 14162 fi 14163 else 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14165 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14166 fi 14167 fi 14168 rm -f confcache 14169 14170 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14171 # Let make expand exec_prefix. 14172 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14173 14174 DEFS=-DHAVE_CONFIG_H 14175 14176 ac_libobjs= 14177 ac_ltlibobjs= 14178 U= 14179 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14180 # 1. Remove the extension, and $U if already installed. 14181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14182 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14184 # will be set to the directory where LIBOBJS objects are built. 14185 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14186 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14187 done 14188 LIBOBJS=$ac_libobjs 14189 14190 LTLIBOBJS=$ac_ltlibobjs 14191 14192 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14194 $as_echo_n "checking that generated files are newer than configure... " >&6; } 14195 if test -n "$am_sleep_pid"; then 14196 # Hide warnings about reused PIDs. 14197 wait $am_sleep_pid 2>/dev/null 14198 fi 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14200 $as_echo "done" >&6; } 14201 if test -n "$EXEEXT"; then 14202 am__EXEEXT_TRUE= 14203 am__EXEEXT_FALSE='#' 14204 else 14205 am__EXEEXT_TRUE='#' 14206 am__EXEEXT_FALSE= 14207 fi 14208 14209 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14210 as_fn_error $? "conditional \"AMDEP\" was never defined. 14211 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14212 fi 14213 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14214 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14215 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14216 fi 14217 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14218 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14219 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14220 fi 14221 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 14222 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 14223 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14224 fi 14225 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then 14226 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. 14227 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14228 fi 14229 14230 : "${CONFIG_STATUS=./config.status}" 14231 ac_write_fail=0 14232 ac_clean_files_save=$ac_clean_files 14233 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14235 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14236 as_write_fail=0 14237 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14238 #! $SHELL 14239 # Generated by $as_me. 14240 # Run this file to recreate the current configuration. 14241 # Compiler output produced by configure, useful for debugging 14242 # configure, is in config.log if it exists. 14243 14244 debug=false 14245 ac_cs_recheck=false 14246 ac_cs_silent=false 14247 14248 SHELL=\${CONFIG_SHELL-$SHELL} 14249 export SHELL 14250 _ASEOF 14251 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14252 ## -------------------- ## 14253 ## M4sh Initialization. ## 14254 ## -------------------- ## 14255 14256 # Be more Bourne compatible 14257 DUALCASE=1; export DUALCASE # for MKS sh 14258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14259 emulate sh 14260 NULLCMD=: 14261 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14262 # is contrary to our usage. Disable this feature. 14263 alias -g '${1+"$@"}'='"$@"' 14264 setopt NO_GLOB_SUBST 14265 else 14266 case `(set -o) 2>/dev/null` in #( 14267 *posix*) : 14268 set -o posix ;; #( 14269 *) : 14270 ;; 14271 esac 14272 fi 14273 14274 14275 as_nl=' 14276 ' 14277 export as_nl 14278 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14279 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14280 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14281 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14282 # Prefer a ksh shell builtin over an external printf program on Solaris, 14283 # but without wasting forks for bash or zsh. 14284 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14285 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14286 as_echo='print -r --' 14287 as_echo_n='print -rn --' 14288 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14289 as_echo='printf %s\n' 14290 as_echo_n='printf %s' 14291 else 14292 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14293 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14294 as_echo_n='/usr/ucb/echo -n' 14295 else 14296 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14297 as_echo_n_body='eval 14298 arg=$1; 14299 case $arg in #( 14300 *"$as_nl"*) 14301 expr "X$arg" : "X\\(.*\\)$as_nl"; 14302 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14303 esac; 14304 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14305 ' 14306 export as_echo_n_body 14307 as_echo_n='sh -c $as_echo_n_body as_echo' 14308 fi 14309 export as_echo_body 14310 as_echo='sh -c $as_echo_body as_echo' 14311 fi 14312 14313 # The user is always right. 14314 if test "${PATH_SEPARATOR+set}" != set; then 14315 PATH_SEPARATOR=: 14316 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14317 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14318 PATH_SEPARATOR=';' 14319 } 14320 fi 14321 14322 14323 # IFS 14324 # We need space, tab and new line, in precisely that order. Quoting is 14325 # there to prevent editors from complaining about space-tab. 14326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14327 # splitting by setting IFS to empty value.) 14328 IFS=" "" $as_nl" 14329 14330 # Find who we are. Look in the path if we contain no directory separator. 14331 as_myself= 14332 case $0 in #(( 14333 *[\\/]* ) as_myself=$0 ;; 14334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14335 for as_dir in $PATH 14336 do 14337 IFS=$as_save_IFS 14338 test -z "$as_dir" && as_dir=. 14339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14340 done 14341 IFS=$as_save_IFS 14342 14343 ;; 14344 esac 14345 # We did not find ourselves, most probably we were run as `sh COMMAND' 14346 # in which case we are not to be found in the path. 14347 if test "x$as_myself" = x; then 14348 as_myself=$0 14349 fi 14350 if test ! -f "$as_myself"; then 14351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14352 exit 1 14353 fi 14354 14355 # Unset variables that we do not need and which cause bugs (e.g. in 14356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14357 # suppresses any "Segmentation fault" message there. '((' could 14358 # trigger a bug in pdksh 5.2.14. 14359 for as_var in BASH_ENV ENV MAIL MAILPATH 14360 do eval test x\${$as_var+set} = xset \ 14361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14362 done 14363 PS1='$ ' 14364 PS2='> ' 14365 PS4='+ ' 14366 14367 # NLS nuisances. 14368 LC_ALL=C 14369 export LC_ALL 14370 LANGUAGE=C 14371 export LANGUAGE 14372 14373 # CDPATH. 14374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14375 14376 14377 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14378 # ---------------------------------------- 14379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14381 # script with STATUS, using 1 if that was 0. 14382 as_fn_error () 14383 { 14384 as_status=$1; test $as_status -eq 0 && as_status=1 14385 if test "$4"; then 14386 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14388 fi 14389 $as_echo "$as_me: error: $2" >&2 14390 as_fn_exit $as_status 14391 } # as_fn_error 14392 14393 14394 # as_fn_set_status STATUS 14395 # ----------------------- 14396 # Set $? to STATUS, without forking. 14397 as_fn_set_status () 14398 { 14399 return $1 14400 } # as_fn_set_status 14401 14402 # as_fn_exit STATUS 14403 # ----------------- 14404 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14405 as_fn_exit () 14406 { 14407 set +e 14408 as_fn_set_status $1 14409 exit $1 14410 } # as_fn_exit 14411 14412 # as_fn_unset VAR 14413 # --------------- 14414 # Portably unset VAR. 14415 as_fn_unset () 14416 { 14417 { eval $1=; unset $1;} 14418 } 14419 as_unset=as_fn_unset 14420 # as_fn_append VAR VALUE 14421 # ---------------------- 14422 # Append the text in VALUE to the end of the definition contained in VAR. Take 14423 # advantage of any shell optimizations that allow amortized linear growth over 14424 # repeated appends, instead of the typical quadratic growth present in naive 14425 # implementations. 14426 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14427 eval 'as_fn_append () 14428 { 14429 eval $1+=\$2 14430 }' 14431 else 14432 as_fn_append () 14433 { 14434 eval $1=\$$1\$2 14435 } 14436 fi # as_fn_append 14437 14438 # as_fn_arith ARG... 14439 # ------------------ 14440 # Perform arithmetic evaluation on the ARGs, and store the result in the 14441 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14442 # must be portable across $(()) and expr. 14443 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14444 eval 'as_fn_arith () 14445 { 14446 as_val=$(( $* )) 14447 }' 14448 else 14449 as_fn_arith () 14450 { 14451 as_val=`expr "$@" || test $? -eq 1` 14452 } 14453 fi # as_fn_arith 14454 14455 14456 if expr a : '\(a\)' >/dev/null 2>&1 && 14457 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14458 as_expr=expr 14459 else 14460 as_expr=false 14461 fi 14462 14463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14464 as_basename=basename 14465 else 14466 as_basename=false 14467 fi 14468 14469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14470 as_dirname=dirname 14471 else 14472 as_dirname=false 14473 fi 14474 14475 as_me=`$as_basename -- "$0" || 14476 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14477 X"$0" : 'X\(//\)$' \| \ 14478 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14479 $as_echo X/"$0" | 14480 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14481 s//\1/ 14482 q 14483 } 14484 /^X\/\(\/\/\)$/{ 14485 s//\1/ 14486 q 14487 } 14488 /^X\/\(\/\).*/{ 14489 s//\1/ 14490 q 14491 } 14492 s/.*/./; q'` 14493 14494 # Avoid depending upon Character Ranges. 14495 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14498 as_cr_digits='0123456789' 14499 as_cr_alnum=$as_cr_Letters$as_cr_digits 14500 14501 ECHO_C= ECHO_N= ECHO_T= 14502 case `echo -n x` in #((((( 14503 -n*) 14504 case `echo 'xy\c'` in 14505 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14506 xy) ECHO_C='\c';; 14507 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14508 ECHO_T=' ';; 14509 esac;; 14510 *) 14511 ECHO_N='-n';; 14512 esac 14513 14514 rm -f conf$$ conf$$.exe conf$$.file 14515 if test -d conf$$.dir; then 14516 rm -f conf$$.dir/conf$$.file 14517 else 14518 rm -f conf$$.dir 14519 mkdir conf$$.dir 2>/dev/null 14520 fi 14521 if (echo >conf$$.file) 2>/dev/null; then 14522 if ln -s conf$$.file conf$$ 2>/dev/null; then 14523 as_ln_s='ln -s' 14524 # ... but there are two gotchas: 14525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14527 # In both cases, we have to default to `cp -pR'. 14528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14529 as_ln_s='cp -pR' 14530 elif ln conf$$.file conf$$ 2>/dev/null; then 14531 as_ln_s=ln 14532 else 14533 as_ln_s='cp -pR' 14534 fi 14535 else 14536 as_ln_s='cp -pR' 14537 fi 14538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14539 rmdir conf$$.dir 2>/dev/null 14540 14541 14542 # as_fn_mkdir_p 14543 # ------------- 14544 # Create "$as_dir" as a directory, including parents if necessary. 14545 as_fn_mkdir_p () 14546 { 14547 14548 case $as_dir in #( 14549 -*) as_dir=./$as_dir;; 14550 esac 14551 test -d "$as_dir" || eval $as_mkdir_p || { 14552 as_dirs= 14553 while :; do 14554 case $as_dir in #( 14555 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14556 *) as_qdir=$as_dir;; 14557 esac 14558 as_dirs="'$as_qdir' $as_dirs" 14559 as_dir=`$as_dirname -- "$as_dir" || 14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14561 X"$as_dir" : 'X\(//\)[^/]' \| \ 14562 X"$as_dir" : 'X\(//\)$' \| \ 14563 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14564 $as_echo X"$as_dir" | 14565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14566 s//\1/ 14567 q 14568 } 14569 /^X\(\/\/\)[^/].*/{ 14570 s//\1/ 14571 q 14572 } 14573 /^X\(\/\/\)$/{ 14574 s//\1/ 14575 q 14576 } 14577 /^X\(\/\).*/{ 14578 s//\1/ 14579 q 14580 } 14581 s/.*/./; q'` 14582 test -d "$as_dir" && break 14583 done 14584 test -z "$as_dirs" || eval "mkdir $as_dirs" 14585 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14586 14587 14588 } # as_fn_mkdir_p 14589 if mkdir -p . 2>/dev/null; then 14590 as_mkdir_p='mkdir -p "$as_dir"' 14591 else 14592 test -d ./-p && rmdir ./-p 14593 as_mkdir_p=false 14594 fi 14595 14596 14597 # as_fn_executable_p FILE 14598 # ----------------------- 14599 # Test if FILE is an executable regular file. 14600 as_fn_executable_p () 14601 { 14602 test -f "$1" && test -x "$1" 14603 } # as_fn_executable_p 14604 as_test_x='test -x' 14605 as_executable_p=as_fn_executable_p 14606 14607 # Sed expression to map a string onto a valid CPP name. 14608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14609 14610 # Sed expression to map a string onto a valid variable name. 14611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14612 14613 14614 exec 6>&1 14615 ## ----------------------------------- ## 14616 ## Main body of $CONFIG_STATUS script. ## 14617 ## ----------------------------------- ## 14618 _ASEOF 14619 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14620 14621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14622 # Save the log message, to keep $0 and so on meaningful, and to 14623 # report actual input values of CONFIG_FILES etc. instead of their 14624 # values after options handling. 14625 ac_log=" 14626 This file was extended by opcodes $as_me 2.45.50, which was 14627 generated by GNU Autoconf 2.69. Invocation command line was 14628 14629 CONFIG_FILES = $CONFIG_FILES 14630 CONFIG_HEADERS = $CONFIG_HEADERS 14631 CONFIG_LINKS = $CONFIG_LINKS 14632 CONFIG_COMMANDS = $CONFIG_COMMANDS 14633 $ $0 $@ 14634 14635 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14636 " 14637 14638 _ACEOF 14639 14640 case $ac_config_files in *" 14641 "*) set x $ac_config_files; shift; ac_config_files=$*;; 14642 esac 14643 14644 case $ac_config_headers in *" 14645 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14646 esac 14647 14648 14649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14650 # Files that config.status was made for. 14651 config_files="$ac_config_files" 14652 config_headers="$ac_config_headers" 14653 config_commands="$ac_config_commands" 14654 14655 _ACEOF 14656 14657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14658 ac_cs_usage="\ 14659 \`$as_me' instantiates files and other configuration actions 14660 from templates according to the current configuration. Unless the files 14661 and actions are specified as TAGs, all are instantiated by default. 14662 14663 Usage: $0 [OPTION]... [TAG]... 14664 14665 -h, --help print this help, then exit 14666 -V, --version print version number and configuration settings, then exit 14667 --config print configuration, then exit 14668 -q, --quiet, --silent 14669 do not print progress messages 14670 -d, --debug don't remove temporary files 14671 --recheck update $as_me by reconfiguring in the same conditions 14672 --file=FILE[:TEMPLATE] 14673 instantiate the configuration file FILE 14674 --header=FILE[:TEMPLATE] 14675 instantiate the configuration header FILE 14676 14677 Configuration files: 14678 $config_files 14679 14680 Configuration headers: 14681 $config_headers 14682 14683 Configuration commands: 14684 $config_commands 14685 14686 Report bugs to the package provider." 14687 14688 _ACEOF 14689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14690 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14691 ac_cs_version="\\ 14692 opcodes config.status 2.45.50 14693 configured by $0, generated by GNU Autoconf 2.69, 14694 with options \\"\$ac_cs_config\\" 14695 14696 Copyright (C) 2012 Free Software Foundation, Inc. 14697 This config.status script is free software; the Free Software Foundation 14698 gives unlimited permission to copy, distribute and modify it." 14699 14700 ac_pwd='$ac_pwd' 14701 srcdir='$srcdir' 14702 INSTALL='$INSTALL' 14703 MKDIR_P='$MKDIR_P' 14704 AWK='$AWK' 14705 test -n "\$AWK" || AWK=awk 14706 _ACEOF 14707 14708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14709 # The default lists apply if the user does not specify any file. 14710 ac_need_defaults=: 14711 while test $# != 0 14712 do 14713 case $1 in 14714 --*=?*) 14715 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14716 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14717 ac_shift=: 14718 ;; 14719 --*=) 14720 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14721 ac_optarg= 14722 ac_shift=: 14723 ;; 14724 *) 14725 ac_option=$1 14726 ac_optarg=$2 14727 ac_shift=shift 14728 ;; 14729 esac 14730 14731 case $ac_option in 14732 # Handling of the options. 14733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14734 ac_cs_recheck=: ;; 14735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14736 $as_echo "$ac_cs_version"; exit ;; 14737 --config | --confi | --conf | --con | --co | --c ) 14738 $as_echo "$ac_cs_config"; exit ;; 14739 --debug | --debu | --deb | --de | --d | -d ) 14740 debug=: ;; 14741 --file | --fil | --fi | --f ) 14742 $ac_shift 14743 case $ac_optarg in 14744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14745 '') as_fn_error $? "missing file argument" ;; 14746 esac 14747 as_fn_append CONFIG_FILES " '$ac_optarg'" 14748 ac_need_defaults=false;; 14749 --header | --heade | --head | --hea ) 14750 $ac_shift 14751 case $ac_optarg in 14752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14753 esac 14754 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14755 ac_need_defaults=false;; 14756 --he | --h) 14757 # Conflict between --help and --header 14758 as_fn_error $? "ambiguous option: \`$1' 14759 Try \`$0 --help' for more information.";; 14760 --help | --hel | -h ) 14761 $as_echo "$ac_cs_usage"; exit ;; 14762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14763 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14764 ac_cs_silent=: ;; 14765 14766 # This is an error. 14767 -*) as_fn_error $? "unrecognized option: \`$1' 14768 Try \`$0 --help' for more information." ;; 14769 14770 *) as_fn_append ac_config_targets " $1" 14771 ac_need_defaults=false ;; 14772 14773 esac 14774 shift 14775 done 14776 14777 ac_configure_extra_args= 14778 14779 if $ac_cs_silent; then 14780 exec 6>/dev/null 14781 ac_configure_extra_args="$ac_configure_extra_args --silent" 14782 fi 14783 14784 _ACEOF 14785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14786 if \$ac_cs_recheck; then 14787 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14788 shift 14789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14790 CONFIG_SHELL='$SHELL' 14791 export CONFIG_SHELL 14792 exec "\$@" 14793 fi 14794 14795 _ACEOF 14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14797 exec 5>>config.log 14798 { 14799 echo 14800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14801 ## Running $as_me. ## 14802 _ASBOX 14803 $as_echo "$ac_log" 14804 } >&5 14805 14806 _ACEOF 14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14808 # 14809 # INIT-COMMANDS 14810 # 14811 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14812 14813 14814 # The HP-UX ksh and POSIX shell print the target directory to stdout 14815 # if CDPATH is set. 14816 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14817 14818 sed_quote_subst='$sed_quote_subst' 14819 double_quote_subst='$double_quote_subst' 14820 delay_variable_subst='$delay_variable_subst' 14821 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14822 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14823 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14824 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14825 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14826 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14827 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14828 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14829 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14830 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14831 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14832 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14833 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14834 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14835 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14836 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14837 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14838 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14839 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14840 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14841 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14842 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14843 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14844 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14845 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14846 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14847 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14848 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14849 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14850 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14851 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14852 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14853 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14856 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14857 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14858 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14859 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14860 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14861 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14862 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14863 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14864 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14865 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14866 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14867 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14868 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14869 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 14870 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14871 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14872 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14873 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14874 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14875 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14876 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14877 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14878 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14879 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14880 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14881 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14882 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14883 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14884 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14885 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14886 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14887 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14888 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14889 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14890 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14891 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14892 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14893 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14894 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14895 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14896 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14897 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14898 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14899 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14900 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14901 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14902 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14903 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14904 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14905 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14906 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14907 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14908 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14909 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14910 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 14911 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14912 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14913 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14914 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14915 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14916 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14917 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14918 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14919 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14920 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14921 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14922 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14923 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14924 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14925 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14926 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14927 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14928 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14929 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14930 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14931 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14932 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14933 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14934 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14935 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14936 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14937 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14938 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14939 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14940 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14941 14942 LTCC='$LTCC' 14943 LTCFLAGS='$LTCFLAGS' 14944 compiler='$compiler_DEFAULT' 14945 14946 # A function that is used when there is no print builtin or printf. 14947 func_fallback_echo () 14948 { 14949 eval 'cat <<_LTECHO_EOF 14950 \$1 14951 _LTECHO_EOF' 14952 } 14953 14954 # Quote evaled strings. 14955 for var in SHELL \ 14956 ECHO \ 14957 SED \ 14958 GREP \ 14959 EGREP \ 14960 FGREP \ 14961 LD \ 14962 NM \ 14963 LN_S \ 14964 lt_SP2NL \ 14965 lt_NL2SP \ 14966 reload_flag \ 14967 OBJDUMP \ 14968 deplibs_check_method \ 14969 file_magic_cmd \ 14970 AR \ 14971 AR_FLAGS \ 14972 STRIP \ 14973 RANLIB \ 14974 CC \ 14975 CFLAGS \ 14976 compiler \ 14977 lt_cv_sys_global_symbol_pipe \ 14978 lt_cv_sys_global_symbol_to_cdecl \ 14979 lt_cv_sys_global_symbol_to_c_name_address \ 14980 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14981 lt_prog_compiler_no_builtin_flag \ 14982 lt_prog_compiler_wl \ 14983 lt_prog_compiler_pic \ 14984 lt_prog_compiler_static \ 14985 lt_cv_prog_compiler_c_o \ 14986 need_locks \ 14987 DSYMUTIL \ 14988 NMEDIT \ 14989 LIPO \ 14990 OTOOL \ 14991 OTOOL64 \ 14992 shrext_cmds \ 14993 export_dynamic_flag_spec \ 14994 whole_archive_flag_spec \ 14995 compiler_needs_object \ 14996 with_gnu_ld \ 14997 allow_undefined_flag \ 14998 no_undefined_flag \ 14999 hardcode_libdir_flag_spec \ 15000 hardcode_libdir_flag_spec_ld \ 15001 hardcode_libdir_separator \ 15002 fix_srcfile_path \ 15003 exclude_expsyms \ 15004 include_expsyms \ 15005 file_list_spec \ 15006 variables_saved_for_relink \ 15007 libname_spec \ 15008 library_names_spec \ 15009 soname_spec \ 15010 install_override_mode \ 15011 finish_eval \ 15012 old_striplib \ 15013 striplib; do 15014 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15015 *[\\\\\\\`\\"\\\$]*) 15016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15017 ;; 15018 *) 15019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15020 ;; 15021 esac 15022 done 15023 15024 # Double-quote double-evaled strings. 15025 for var in reload_cmds \ 15026 old_postinstall_cmds \ 15027 old_postuninstall_cmds \ 15028 old_archive_cmds \ 15029 extract_expsyms_cmds \ 15030 old_archive_from_new_cmds \ 15031 old_archive_from_expsyms_cmds \ 15032 archive_cmds \ 15033 archive_expsym_cmds \ 15034 module_cmds \ 15035 module_expsym_cmds \ 15036 export_symbols_cmds \ 15037 prelink_cmds \ 15038 postinstall_cmds \ 15039 postuninstall_cmds \ 15040 finish_cmds \ 15041 sys_lib_search_path_spec \ 15042 sys_lib_dlsearch_path_spec; do 15043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15044 *[\\\\\\\`\\"\\\$]*) 15045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15046 ;; 15047 *) 15048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15049 ;; 15050 esac 15051 done 15052 15053 ac_aux_dir='$ac_aux_dir' 15054 xsi_shell='$xsi_shell' 15055 lt_shell_append='$lt_shell_append' 15056 15057 # See if we are running on zsh, and set the options which allow our 15058 # commands through without removal of \ escapes INIT. 15059 if test -n "\${ZSH_VERSION+set}" ; then 15060 setopt NO_GLOB_SUBST 15061 fi 15062 15063 15064 PACKAGE='$PACKAGE' 15065 VERSION='$VERSION' 15066 TIMESTAMP='$TIMESTAMP' 15067 RM='$RM' 15068 ofile='$ofile' 15069 15070 15071 15072 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 15073 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 15074 # from automake. 15075 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15076 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15077 LINGUAS="${LINGUAS-%UNSET%}" 15078 15079 15080 _ACEOF 15081 15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15083 15084 # Handling of arguments. 15085 for ac_config_target in $ac_config_targets 15086 do 15087 case $ac_config_target in 15088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15089 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15090 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15091 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15093 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 15094 15095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15096 esac 15097 done 15098 15099 15100 # If the user did not use the arguments to specify the items to instantiate, 15101 # then the envvar interface is used. Set only those that are not. 15102 # We use the long form for the default assignment because of an extremely 15103 # bizarre bug on SunOS 4.1.3. 15104 if $ac_need_defaults; then 15105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15108 fi 15109 15110 # Have a temporary directory for convenience. Make it in the build tree 15111 # simply because there is no reason against having it here, and in addition, 15112 # creating and moving files from /tmp can sometimes cause problems. 15113 # Hook for its removal unless debugging. 15114 # Note that there is a small window in which the directory will not be cleaned: 15115 # after its creation but before its name has been assigned to `$tmp'. 15116 $debug || 15117 { 15118 tmp= ac_tmp= 15119 trap 'exit_status=$? 15120 : "${ac_tmp:=$tmp}" 15121 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15122 ' 0 15123 trap 'as_fn_exit 1' 1 2 13 15 15124 } 15125 # Create a (secure) tmp directory for tmp files. 15126 15127 { 15128 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15129 test -d "$tmp" 15130 } || 15131 { 15132 tmp=./conf$$-$RANDOM 15133 (umask 077 && mkdir "$tmp") 15134 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15135 ac_tmp=$tmp 15136 15137 # Set up the scripts for CONFIG_FILES section. 15138 # No need to generate them if there are no CONFIG_FILES. 15139 # This happens for instance with `./config.status config.h'. 15140 if test -n "$CONFIG_FILES"; then 15141 15142 15143 ac_cr=`echo X | tr X '\015'` 15144 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15145 # But we know of no other shell where ac_cr would be empty at this 15146 # point, so we can use a bashism as a fallback. 15147 if test "x$ac_cr" = x; then 15148 eval ac_cr=\$\'\\r\' 15149 fi 15150 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15151 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15152 ac_cs_awk_cr='\\r' 15153 else 15154 ac_cs_awk_cr=$ac_cr 15155 fi 15156 15157 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15158 _ACEOF 15159 15160 15161 { 15162 echo "cat >conf$$subs.awk <<_ACEOF" && 15163 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15164 echo "_ACEOF" 15165 } >conf$$subs.sh || 15166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15167 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15168 ac_delim='%!_!# ' 15169 for ac_last_try in false false false false false :; do 15170 . ./conf$$subs.sh || 15171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15172 15173 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15174 if test $ac_delim_n = $ac_delim_num; then 15175 break 15176 elif $ac_last_try; then 15177 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15178 else 15179 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15180 fi 15181 done 15182 rm -f conf$$subs.sh 15183 15184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15185 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15186 _ACEOF 15187 sed -n ' 15188 h 15189 s/^/S["/; s/!.*/"]=/ 15190 p 15191 g 15192 s/^[^!]*!// 15193 :repl 15194 t repl 15195 s/'"$ac_delim"'$// 15196 t delim 15197 :nl 15198 h 15199 s/\(.\{148\}\)..*/\1/ 15200 t more1 15201 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15202 p 15203 n 15204 b repl 15205 :more1 15206 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15207 p 15208 g 15209 s/.\{148\}// 15210 t nl 15211 :delim 15212 h 15213 s/\(.\{148\}\)..*/\1/ 15214 t more2 15215 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15216 p 15217 b 15218 :more2 15219 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15220 p 15221 g 15222 s/.\{148\}// 15223 t delim 15224 ' <conf$$subs.awk | sed ' 15225 /^[^""]/{ 15226 N 15227 s/\n// 15228 } 15229 ' >>$CONFIG_STATUS || ac_write_fail=1 15230 rm -f conf$$subs.awk 15231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15232 _ACAWK 15233 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15234 for (key in S) S_is_set[key] = 1 15235 FS = "" 15236 15237 } 15238 { 15239 line = $ 0 15240 nfields = split(line, field, "@") 15241 substed = 0 15242 len = length(field[1]) 15243 for (i = 2; i < nfields; i++) { 15244 key = field[i] 15245 keylen = length(key) 15246 if (S_is_set[key]) { 15247 value = S[key] 15248 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15249 len += length(value) + length(field[++i]) 15250 substed = 1 15251 } else 15252 len += 1 + keylen 15253 } 15254 15255 print line 15256 } 15257 15258 _ACAWK 15259 _ACEOF 15260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15261 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15263 else 15264 cat 15265 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15266 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15267 _ACEOF 15268 15269 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15270 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15271 # trailing colons and then remove the whole line if VPATH becomes empty 15272 # (actually we leave an empty line to preserve line numbers). 15273 if test "x$srcdir" = x.; then 15274 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15275 h 15276 s/// 15277 s/^/:/ 15278 s/[ ]*$/:/ 15279 s/:\$(srcdir):/:/g 15280 s/:\${srcdir}:/:/g 15281 s/:@srcdir@:/:/g 15282 s/^:*// 15283 s/:*$// 15284 x 15285 s/\(=[ ]*\).*/\1/ 15286 G 15287 s/\n// 15288 s/^[^=]*=[ ]*$// 15289 }' 15290 fi 15291 15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15293 fi # test -n "$CONFIG_FILES" 15294 15295 # Set up the scripts for CONFIG_HEADERS section. 15296 # No need to generate them if there are no CONFIG_HEADERS. 15297 # This happens for instance with `./config.status Makefile'. 15298 if test -n "$CONFIG_HEADERS"; then 15299 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15300 BEGIN { 15301 _ACEOF 15302 15303 # Transform confdefs.h into an awk script `defines.awk', embedded as 15304 # here-document in config.status, that substitutes the proper values into 15305 # config.h.in to produce config.h. 15306 15307 # Create a delimiter string that does not exist in confdefs.h, to ease 15308 # handling of long lines. 15309 ac_delim='%!_!# ' 15310 for ac_last_try in false false :; do 15311 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15312 if test -z "$ac_tt"; then 15313 break 15314 elif $ac_last_try; then 15315 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15316 else 15317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15318 fi 15319 done 15320 15321 # For the awk script, D is an array of macro values keyed by name, 15322 # likewise P contains macro parameters if any. Preserve backslash 15323 # newline sequences. 15324 15325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15326 sed -n ' 15327 s/.\{148\}/&'"$ac_delim"'/g 15328 t rset 15329 :rset 15330 s/^[ ]*#[ ]*define[ ][ ]*/ / 15331 t def 15332 d 15333 :def 15334 s/\\$// 15335 t bsnl 15336 s/["\\]/\\&/g 15337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15338 D["\1"]=" \3"/p 15339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15340 d 15341 :bsnl 15342 s/["\\]/\\&/g 15343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15344 D["\1"]=" \3\\\\\\n"\\/p 15345 t cont 15346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15347 t cont 15348 d 15349 :cont 15350 n 15351 s/.\{148\}/&'"$ac_delim"'/g 15352 t clear 15353 :clear 15354 s/\\$// 15355 t bsnlc 15356 s/["\\]/\\&/g; s/^/"/; s/$/"/p 15357 d 15358 :bsnlc 15359 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15360 b cont 15361 ' <confdefs.h | sed ' 15362 s/'"$ac_delim"'/"\\\ 15363 "/g' >>$CONFIG_STATUS || ac_write_fail=1 15364 15365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15366 for (key in D) D_is_set[key] = 1 15367 FS = "" 15368 } 15369 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15370 line = \$ 0 15371 split(line, arg, " ") 15372 if (arg[1] == "#") { 15373 defundef = arg[2] 15374 mac1 = arg[3] 15375 } else { 15376 defundef = substr(arg[1], 2) 15377 mac1 = arg[2] 15378 } 15379 split(mac1, mac2, "(") #) 15380 macro = mac2[1] 15381 prefix = substr(line, 1, index(line, defundef) - 1) 15382 if (D_is_set[macro]) { 15383 # Preserve the white space surrounding the "#". 15384 print prefix "define", macro P[macro] D[macro] 15385 next 15386 } else { 15387 # Replace #undef with comments. This is necessary, for example, 15388 # in the case of _POSIX_SOURCE, which is predefined and required 15389 # on some systems where configure will not decide to define it. 15390 if (defundef == "undef") { 15391 print "/*", prefix defundef, macro, "*/" 15392 next 15393 } 15394 } 15395 } 15396 { print } 15397 _ACAWK 15398 _ACEOF 15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15400 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15401 fi # test -n "$CONFIG_HEADERS" 15402 15403 15404 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15405 shift 15406 for ac_tag 15407 do 15408 case $ac_tag in 15409 :[FHLC]) ac_mode=$ac_tag; continue;; 15410 esac 15411 case $ac_mode$ac_tag in 15412 :[FHL]*:*);; 15413 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15414 :[FH]-) ac_tag=-:-;; 15415 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15416 esac 15417 ac_save_IFS=$IFS 15418 IFS=: 15419 set x $ac_tag 15420 IFS=$ac_save_IFS 15421 shift 15422 ac_file=$1 15423 shift 15424 15425 case $ac_mode in 15426 :L) ac_source=$1;; 15427 :[FH]) 15428 ac_file_inputs= 15429 for ac_f 15430 do 15431 case $ac_f in 15432 -) ac_f="$ac_tmp/stdin";; 15433 *) # Look for the file first in the build tree, then in the source tree 15434 # (if the path is not absolute). The absolute path cannot be DOS-style, 15435 # because $ac_f cannot contain `:'. 15436 test -f "$ac_f" || 15437 case $ac_f in 15438 [\\/$]*) false;; 15439 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15440 esac || 15441 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15442 esac 15443 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15444 as_fn_append ac_file_inputs " '$ac_f'" 15445 done 15446 15447 # Let's still pretend it is `configure' which instantiates (i.e., don't 15448 # use $as_me), people would be surprised to read: 15449 # /* config.h. Generated by config.status. */ 15450 configure_input='Generated from '` 15451 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15452 `' by configure.' 15453 if test x"$ac_file" != x-; then 15454 configure_input="$ac_file. $configure_input" 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15456 $as_echo "$as_me: creating $ac_file" >&6;} 15457 fi 15458 # Neutralize special characters interpreted by sed in replacement strings. 15459 case $configure_input in #( 15460 *\&* | *\|* | *\\* ) 15461 ac_sed_conf_input=`$as_echo "$configure_input" | 15462 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15463 *) ac_sed_conf_input=$configure_input;; 15464 esac 15465 15466 case $ac_tag in 15467 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15469 esac 15470 ;; 15471 esac 15472 15473 ac_dir=`$as_dirname -- "$ac_file" || 15474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15475 X"$ac_file" : 'X\(//\)[^/]' \| \ 15476 X"$ac_file" : 'X\(//\)$' \| \ 15477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15478 $as_echo X"$ac_file" | 15479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15480 s//\1/ 15481 q 15482 } 15483 /^X\(\/\/\)[^/].*/{ 15484 s//\1/ 15485 q 15486 } 15487 /^X\(\/\/\)$/{ 15488 s//\1/ 15489 q 15490 } 15491 /^X\(\/\).*/{ 15492 s//\1/ 15493 q 15494 } 15495 s/.*/./; q'` 15496 as_dir="$ac_dir"; as_fn_mkdir_p 15497 ac_builddir=. 15498 15499 case "$ac_dir" in 15500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15501 *) 15502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15503 # A ".." for each directory in $ac_dir_suffix. 15504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15505 case $ac_top_builddir_sub in 15506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15508 esac ;; 15509 esac 15510 ac_abs_top_builddir=$ac_pwd 15511 ac_abs_builddir=$ac_pwd$ac_dir_suffix 15512 # for backward compatibility: 15513 ac_top_builddir=$ac_top_build_prefix 15514 15515 case $srcdir in 15516 .) # We are building in place. 15517 ac_srcdir=. 15518 ac_top_srcdir=$ac_top_builddir_sub 15519 ac_abs_top_srcdir=$ac_pwd ;; 15520 [\\/]* | ?:[\\/]* ) # Absolute name. 15521 ac_srcdir=$srcdir$ac_dir_suffix; 15522 ac_top_srcdir=$srcdir 15523 ac_abs_top_srcdir=$srcdir ;; 15524 *) # Relative name. 15525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15526 ac_top_srcdir=$ac_top_build_prefix$srcdir 15527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15528 esac 15529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15530 15531 15532 case $ac_mode in 15533 :F) 15534 # 15535 # CONFIG_FILE 15536 # 15537 15538 case $INSTALL in 15539 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15540 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15541 esac 15542 ac_MKDIR_P=$MKDIR_P 15543 case $MKDIR_P in 15544 [\\/$]* | ?:[\\/]* ) ;; 15545 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15546 esac 15547 _ACEOF 15548 15549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15550 # If the template does not know about datarootdir, expand it. 15551 # FIXME: This hack should be removed a few years after 2.60. 15552 ac_datarootdir_hack=; ac_datarootdir_seen= 15553 ac_sed_dataroot=' 15554 /datarootdir/ { 15555 p 15556 q 15557 } 15558 /@datadir@/p 15559 /@docdir@/p 15560 /@infodir@/p 15561 /@localedir@/p 15562 /@mandir@/p' 15563 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15564 *datarootdir*) ac_datarootdir_seen=yes;; 15565 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15567 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15568 _ACEOF 15569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15570 ac_datarootdir_hack=' 15571 s&@datadir@&$datadir&g 15572 s&@docdir@&$docdir&g 15573 s&@infodir@&$infodir&g 15574 s&@localedir@&$localedir&g 15575 s&@mandir@&$mandir&g 15576 s&\\\${datarootdir}&$datarootdir&g' ;; 15577 esac 15578 _ACEOF 15579 15580 # Neutralize VPATH when `$srcdir' = `.'. 15581 # Shell code in configure.ac might set extrasub. 15582 # FIXME: do we really want to maintain this feature? 15583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15584 ac_sed_extra="$ac_vpsub 15585 $extrasub 15586 _ACEOF 15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15588 :t 15589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15590 s|@configure_input@|$ac_sed_conf_input|;t t 15591 s&@top_builddir@&$ac_top_builddir_sub&;t t 15592 s&@top_build_prefix@&$ac_top_build_prefix&;t t 15593 s&@srcdir@&$ac_srcdir&;t t 15594 s&@abs_srcdir@&$ac_abs_srcdir&;t t 15595 s&@top_srcdir@&$ac_top_srcdir&;t t 15596 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15597 s&@builddir@&$ac_builddir&;t t 15598 s&@abs_builddir@&$ac_abs_builddir&;t t 15599 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15600 s&@INSTALL@&$ac_INSTALL&;t t 15601 s&@MKDIR_P@&$ac_MKDIR_P&;t t 15602 $ac_datarootdir_hack 15603 " 15604 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15605 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15606 15607 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15608 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15609 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15610 "$ac_tmp/out"`; test -z "$ac_out"; } && 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15612 which seems to be undefined. Please make sure it is defined" >&5 15613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15614 which seems to be undefined. Please make sure it is defined" >&2;} 15615 15616 rm -f "$ac_tmp/stdin" 15617 case $ac_file in 15618 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15619 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15620 esac \ 15621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15622 ;; 15623 :H) 15624 # 15625 # CONFIG_HEADER 15626 # 15627 if test x"$ac_file" != x-; then 15628 { 15629 $as_echo "/* $configure_input */" \ 15630 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15631 } >"$ac_tmp/config.h" \ 15632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15633 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15635 $as_echo "$as_me: $ac_file is unchanged" >&6;} 15636 else 15637 rm -f "$ac_file" 15638 mv "$ac_tmp/config.h" "$ac_file" \ 15639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15640 fi 15641 else 15642 $as_echo "/* $configure_input */" \ 15643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15644 || as_fn_error $? "could not create -" "$LINENO" 5 15645 fi 15646 # Compute "$ac_file"'s index in $config_headers. 15647 _am_arg="$ac_file" 15648 _am_stamp_count=1 15649 for _am_header in $config_headers :; do 15650 case $_am_header in 15651 $_am_arg | $_am_arg:* ) 15652 break ;; 15653 * ) 15654 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15655 esac 15656 done 15657 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15658 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15659 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15660 X"$_am_arg" : 'X\(//\)$' \| \ 15661 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15662 $as_echo X"$_am_arg" | 15663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15664 s//\1/ 15665 q 15666 } 15667 /^X\(\/\/\)[^/].*/{ 15668 s//\1/ 15669 q 15670 } 15671 /^X\(\/\/\)$/{ 15672 s//\1/ 15673 q 15674 } 15675 /^X\(\/\).*/{ 15676 s//\1/ 15677 q 15678 } 15679 s/.*/./; q'`/stamp-h$_am_stamp_count 15680 ;; 15681 15682 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15683 $as_echo "$as_me: executing $ac_file commands" >&6;} 15684 ;; 15685 esac 15686 15687 15688 case $ac_file$ac_mode in 15689 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15690 # Older Autoconf quotes --file arguments for eval, but not when files 15691 # are listed without --file. Let's play safe and only enable the eval 15692 # if we detect the quoting. 15693 case $CONFIG_FILES in 15694 *\'*) eval set x "$CONFIG_FILES" ;; 15695 *) set x $CONFIG_FILES ;; 15696 esac 15697 shift 15698 for mf 15699 do 15700 # Strip MF so we end up with the name of the file. 15701 mf=`echo "$mf" | sed -e 's/:.*$//'` 15702 # Check whether this is an Automake generated Makefile or not. 15703 # We used to match only the files named 'Makefile.in', but 15704 # some people rename them; so instead we look at the file content. 15705 # Grep'ing the first line is not enough: some people post-process 15706 # each Makefile.in and add a new line on top of each file to say so. 15707 # Grep'ing the whole file is not good either: AIX grep has a line 15708 # limit of 2048, but all sed's we know have understand at least 4000. 15709 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15710 dirpart=`$as_dirname -- "$mf" || 15711 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15712 X"$mf" : 'X\(//\)[^/]' \| \ 15713 X"$mf" : 'X\(//\)$' \| \ 15714 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15715 $as_echo X"$mf" | 15716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15717 s//\1/ 15718 q 15719 } 15720 /^X\(\/\/\)[^/].*/{ 15721 s//\1/ 15722 q 15723 } 15724 /^X\(\/\/\)$/{ 15725 s//\1/ 15726 q 15727 } 15728 /^X\(\/\).*/{ 15729 s//\1/ 15730 q 15731 } 15732 s/.*/./; q'` 15733 else 15734 continue 15735 fi 15736 # Extract the definition of DEPDIR, am__include, and am__quote 15737 # from the Makefile without running 'make'. 15738 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15739 test -z "$DEPDIR" && continue 15740 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15741 test -z "$am__include" && continue 15742 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15743 # Find all dependency output files, they are included files with 15744 # $(DEPDIR) in their names. We invoke sed twice because it is the 15745 # simplest approach to changing $(DEPDIR) to its actual value in the 15746 # expansion. 15747 for file in `sed -n " 15748 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15749 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15750 # Make sure the directory exists. 15751 test -f "$dirpart/$file" && continue 15752 fdir=`$as_dirname -- "$file" || 15753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15754 X"$file" : 'X\(//\)[^/]' \| \ 15755 X"$file" : 'X\(//\)$' \| \ 15756 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15757 $as_echo X"$file" | 15758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15759 s//\1/ 15760 q 15761 } 15762 /^X\(\/\/\)[^/].*/{ 15763 s//\1/ 15764 q 15765 } 15766 /^X\(\/\/\)$/{ 15767 s//\1/ 15768 q 15769 } 15770 /^X\(\/\).*/{ 15771 s//\1/ 15772 q 15773 } 15774 s/.*/./; q'` 15775 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15776 # echo "creating $dirpart/$file" 15777 echo '# dummy' > "$dirpart/$file" 15778 done 15779 done 15780 } 15781 ;; 15782 "libtool":C) 15783 15784 # See if we are running on zsh, and set the options which allow our 15785 # commands through without removal of \ escapes. 15786 if test -n "${ZSH_VERSION+set}" ; then 15787 setopt NO_GLOB_SUBST 15788 fi 15789 15790 cfgfile="${ofile}T" 15791 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15792 $RM "$cfgfile" 15793 15794 cat <<_LT_EOF >> "$cfgfile" 15795 #! $SHELL 15796 15797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15800 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 15801 # 15802 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15803 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 15804 # Written by Gordon Matzigkeit, 1996 15805 # 15806 # This file is part of GNU Libtool. 15807 # 15808 # GNU Libtool is free software; you can redistribute it and/or 15809 # modify it under the terms of the GNU General Public License as 15810 # published by the Free Software Foundation; either version 2 of 15811 # the License, or (at your option) any later version. 15812 # 15813 # As a special exception to the GNU General Public License, 15814 # if you distribute this file as part of a program or library that 15815 # is built using GNU Libtool, you may include this file under the 15816 # same distribution terms that you use for the rest of that program. 15817 # 15818 # GNU Libtool is distributed in the hope that it will be useful, 15819 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15820 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15821 # GNU General Public License for more details. 15822 # 15823 # You should have received a copy of the GNU General Public License 15824 # along with GNU Libtool; see the file COPYING. If not, a copy 15825 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15826 # obtained by writing to the Free Software Foundation, Inc., 15827 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15828 15829 15830 # The names of the tagged configurations supported by this script. 15831 available_tags="" 15832 15833 # ### BEGIN LIBTOOL CONFIG 15834 15835 # Whether or not to build shared libraries. 15836 build_libtool_libs=$enable_shared 15837 15838 # Which release of libtool.m4 was used? 15839 macro_version=$macro_version 15840 macro_revision=$macro_revision 15841 15842 # Whether or not to build static libraries. 15843 build_old_libs=$enable_static 15844 15845 # What type of objects to build. 15846 pic_mode=$pic_mode 15847 15848 # Whether or not to optimize for fast installation. 15849 fast_install=$enable_fast_install 15850 15851 # Shell to use when invoking shell scripts. 15852 SHELL=$lt_SHELL 15853 15854 # An echo program that protects backslashes. 15855 ECHO=$lt_ECHO 15856 15857 # The host system. 15858 host_alias=$host_alias 15859 host=$host 15860 host_os=$host_os 15861 15862 # The build system. 15863 build_alias=$build_alias 15864 build=$build 15865 build_os=$build_os 15866 15867 # A sed program that does not truncate output. 15868 SED=$lt_SED 15869 15870 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 15871 Xsed="\$SED -e 1s/^X//" 15872 15873 # A grep program that handles long lines. 15874 GREP=$lt_GREP 15875 15876 # An ERE matcher. 15877 EGREP=$lt_EGREP 15878 15879 # A literal string matcher. 15880 FGREP=$lt_FGREP 15881 15882 # A BSD- or MS-compatible name lister. 15883 NM=$lt_NM 15884 15885 # Whether we need soft or hard links. 15886 LN_S=$lt_LN_S 15887 15888 # What is the maximum length of a command? 15889 max_cmd_len=$max_cmd_len 15890 15891 # Object file suffix (normally "o"). 15892 objext=$ac_objext 15893 15894 # Executable file suffix (normally ""). 15895 exeext=$exeext 15896 15897 # whether the shell understands "unset". 15898 lt_unset=$lt_unset 15899 15900 # turn spaces into newlines. 15901 SP2NL=$lt_lt_SP2NL 15902 15903 # turn newlines into spaces. 15904 NL2SP=$lt_lt_NL2SP 15905 15906 # An object symbol dumper. 15907 OBJDUMP=$lt_OBJDUMP 15908 15909 # Method to check whether dependent libraries are shared objects. 15910 deplibs_check_method=$lt_deplibs_check_method 15911 15912 # Command to use when deplibs_check_method == "file_magic". 15913 file_magic_cmd=$lt_file_magic_cmd 15914 15915 # The archiver. 15916 AR=$lt_AR 15917 AR_FLAGS=$lt_AR_FLAGS 15918 15919 # A symbol stripping program. 15920 STRIP=$lt_STRIP 15921 15922 # Commands used to install an old-style archive. 15923 RANLIB=$lt_RANLIB 15924 old_postinstall_cmds=$lt_old_postinstall_cmds 15925 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15926 15927 # Whether to use a lock for old archive extraction. 15928 lock_old_archive_extraction=$lock_old_archive_extraction 15929 15930 # A C compiler. 15931 LTCC=$lt_CC 15932 15933 # LTCC compiler flags. 15934 LTCFLAGS=$lt_CFLAGS 15935 15936 # Take the output of nm and produce a listing of raw symbols and C names. 15937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15938 15939 # Transform the output of nm in a proper C declaration. 15940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15941 15942 # Transform the output of nm in a C name address pair. 15943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15944 15945 # Transform the output of nm in a C name address pair when lib prefix is needed. 15946 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15947 15948 # The name of the directory that contains temporary libtool files. 15949 objdir=$objdir 15950 15951 # Used to examine libraries when file_magic_cmd begins with "file". 15952 MAGIC_CMD=$MAGIC_CMD 15953 15954 # Must we lock files when doing compilation? 15955 need_locks=$lt_need_locks 15956 15957 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15958 DSYMUTIL=$lt_DSYMUTIL 15959 15960 # Tool to change global to local symbols on Mac OS X. 15961 NMEDIT=$lt_NMEDIT 15962 15963 # Tool to manipulate fat objects and archives on Mac OS X. 15964 LIPO=$lt_LIPO 15965 15966 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 15967 OTOOL=$lt_OTOOL 15968 15969 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15970 OTOOL64=$lt_OTOOL64 15971 15972 # Old archive suffix (normally "a"). 15973 libext=$libext 15974 15975 # Shared library suffix (normally ".so"). 15976 shrext_cmds=$lt_shrext_cmds 15977 15978 # The commands to extract the exported symbol list from a shared archive. 15979 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15980 15981 # Variables whose values should be saved in libtool wrapper scripts and 15982 # restored at link time. 15983 variables_saved_for_relink=$lt_variables_saved_for_relink 15984 15985 # Do we need the "lib" prefix for modules? 15986 need_lib_prefix=$need_lib_prefix 15987 15988 # Do we need a version for libraries? 15989 need_version=$need_version 15990 15991 # Library versioning type. 15992 version_type=$version_type 15993 15994 # Shared library runtime path variable. 15995 runpath_var=$runpath_var 15996 15997 # Shared library path variable. 15998 shlibpath_var=$shlibpath_var 15999 16000 # Is shlibpath searched before the hard-coded library search path? 16001 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16002 16003 # Format of library name prefix. 16004 libname_spec=$lt_libname_spec 16005 16006 # List of archive names. First name is the real one, the rest are links. 16007 # The last name is the one that the linker finds with -lNAME 16008 library_names_spec=$lt_library_names_spec 16009 16010 # The coded name of the library, if different from the real name. 16011 soname_spec=$lt_soname_spec 16012 16013 # Permission mode override for installation of shared libraries. 16014 install_override_mode=$lt_install_override_mode 16015 16016 # Command to use after installation of a shared archive. 16017 postinstall_cmds=$lt_postinstall_cmds 16018 16019 # Command to use after uninstallation of a shared archive. 16020 postuninstall_cmds=$lt_postuninstall_cmds 16021 16022 # Commands used to finish a libtool library installation in a directory. 16023 finish_cmds=$lt_finish_cmds 16024 16025 # As "finish_cmds", except a single script fragment to be evaled but 16026 # not shown. 16027 finish_eval=$lt_finish_eval 16028 16029 # Whether we should hardcode library paths into libraries. 16030 hardcode_into_libs=$hardcode_into_libs 16031 16032 # Compile-time system search path for libraries. 16033 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16034 16035 # Run-time system search path for libraries. 16036 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16037 16038 # Whether dlopen is supported. 16039 dlopen_support=$enable_dlopen 16040 16041 # Whether dlopen of programs is supported. 16042 dlopen_self=$enable_dlopen_self 16043 16044 # Whether dlopen of statically linked programs is supported. 16045 dlopen_self_static=$enable_dlopen_self_static 16046 16047 # Commands to strip libraries. 16048 old_striplib=$lt_old_striplib 16049 striplib=$lt_striplib 16050 16051 16052 # The linker used to build libraries. 16053 LD=$lt_LD 16054 16055 # How to create reloadable object files. 16056 reload_flag=$lt_reload_flag 16057 reload_cmds=$lt_reload_cmds 16058 16059 # Commands used to build an old-style archive. 16060 old_archive_cmds=$lt_old_archive_cmds 16061 16062 # A language specific compiler. 16063 CC=$lt_compiler 16064 16065 # Is the compiler the GNU compiler? 16066 with_gcc=$GCC 16067 16068 # Compiler flag to turn off builtin functions. 16069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16070 16071 # How to pass a linker flag through the compiler. 16072 wl=$lt_lt_prog_compiler_wl 16073 16074 # Additional compiler flags for building library objects. 16075 pic_flag=$lt_lt_prog_compiler_pic 16076 16077 # Compiler flag to prevent dynamic linking. 16078 link_static_flag=$lt_lt_prog_compiler_static 16079 16080 # Does compiler simultaneously support -c and -o options? 16081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16082 16083 # Whether or not to add -lc for building shared libraries. 16084 build_libtool_need_lc=$archive_cmds_need_lc 16085 16086 # Whether or not to disallow shared libs when runtime libs are static. 16087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16088 16089 # Compiler flag to allow reflexive dlopens. 16090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16091 16092 # Compiler flag to generate shared objects directly from archives. 16093 whole_archive_flag_spec=$lt_whole_archive_flag_spec 16094 16095 # Whether the compiler copes with passing no objects directly. 16096 compiler_needs_object=$lt_compiler_needs_object 16097 16098 # Create an old-style archive from a shared archive. 16099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16100 16101 # Create a temporary old-style archive to link instead of a shared archive. 16102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16103 16104 # Commands used to build a shared archive. 16105 archive_cmds=$lt_archive_cmds 16106 archive_expsym_cmds=$lt_archive_expsym_cmds 16107 16108 # Commands used to build a loadable module if different from building 16109 # a shared archive. 16110 module_cmds=$lt_module_cmds 16111 module_expsym_cmds=$lt_module_expsym_cmds 16112 16113 # Whether we are building with GNU ld or not. 16114 with_gnu_ld=$lt_with_gnu_ld 16115 16116 # Flag that allows shared libraries with undefined symbols to be built. 16117 allow_undefined_flag=$lt_allow_undefined_flag 16118 16119 # Flag that enforces no undefined symbols. 16120 no_undefined_flag=$lt_no_undefined_flag 16121 16122 # Flag to hardcode \$libdir into a binary during linking. 16123 # This must work even if \$libdir does not exist 16124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16125 16126 # If ld is used when linking, flag to hardcode \$libdir into a binary 16127 # during linking. This must work even if \$libdir does not exist. 16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16129 16130 # Whether we need a single "-rpath" flag with a separated argument. 16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator 16132 16133 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16134 # DIR into the resulting binary. 16135 hardcode_direct=$hardcode_direct 16136 16137 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16138 # DIR into the resulting binary and the resulting library dependency is 16139 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16140 # library is relocated. 16141 hardcode_direct_absolute=$hardcode_direct_absolute 16142 16143 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16144 # into the resulting binary. 16145 hardcode_minus_L=$hardcode_minus_L 16146 16147 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16148 # into the resulting binary. 16149 hardcode_shlibpath_var=$hardcode_shlibpath_var 16150 16151 # Set to "yes" if building a shared library automatically hardcodes DIR 16152 # into the library and all subsequent libraries and executables linked 16153 # against it. 16154 hardcode_automatic=$hardcode_automatic 16155 16156 # Set to yes if linker adds runtime paths of dependent libraries 16157 # to runtime path list. 16158 inherit_rpath=$inherit_rpath 16159 16160 # Whether libtool must link a program against all its dependency libraries. 16161 link_all_deplibs=$link_all_deplibs 16162 16163 # Fix the shell variable \$srcfile for the compiler. 16164 fix_srcfile_path=$lt_fix_srcfile_path 16165 16166 # Set to "yes" if exported symbols are required. 16167 always_export_symbols=$always_export_symbols 16168 16169 # The commands to list exported symbols. 16170 export_symbols_cmds=$lt_export_symbols_cmds 16171 16172 # Symbols that should not be listed in the preloaded symbols. 16173 exclude_expsyms=$lt_exclude_expsyms 16174 16175 # Symbols that must always be exported. 16176 include_expsyms=$lt_include_expsyms 16177 16178 # Commands necessary for linking programs (against libraries) with templates. 16179 prelink_cmds=$lt_prelink_cmds 16180 16181 # Specify filename containing input files. 16182 file_list_spec=$lt_file_list_spec 16183 16184 # How to hardcode a shared library path into an executable. 16185 hardcode_action=$hardcode_action 16186 16187 # ### END LIBTOOL CONFIG 16188 16189 _LT_EOF 16190 16191 case $host_os in 16192 aix3*) 16193 cat <<\_LT_EOF >> "$cfgfile" 16194 # AIX sometimes has problems with the GCC collect2 program. For some 16195 # reason, if we set the COLLECT_NAMES environment variable, the problems 16196 # vanish in a puff of smoke. 16197 if test "X${COLLECT_NAMES+set}" != Xset; then 16198 COLLECT_NAMES= 16199 export COLLECT_NAMES 16200 fi 16201 _LT_EOF 16202 ;; 16203 esac 16204 16205 16206 ltmain="$ac_aux_dir/ltmain.sh" 16207 16208 16209 # We use sed instead of cat because bash on DJGPP gets confused if 16210 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16211 # text mode, it properly converts lines to CR/LF. This bash problem 16212 # is reportedly fixed, but why not run on old versions too? 16213 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16214 || (rm -f "$cfgfile"; exit 1) 16215 16216 case $xsi_shell in 16217 yes) 16218 cat << \_LT_EOF >> "$cfgfile" 16219 16220 # func_dirname file append nondir_replacement 16221 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16222 # otherwise set result to NONDIR_REPLACEMENT. 16223 func_dirname () 16224 { 16225 case ${1} in 16226 */*) func_dirname_result="${1%/*}${2}" ;; 16227 * ) func_dirname_result="${3}" ;; 16228 esac 16229 } 16230 16231 # func_basename file 16232 func_basename () 16233 { 16234 func_basename_result="${1##*/}" 16235 } 16236 16237 # func_dirname_and_basename file append nondir_replacement 16238 # perform func_basename and func_dirname in a single function 16239 # call: 16240 # dirname: Compute the dirname of FILE. If nonempty, 16241 # add APPEND to the result, otherwise set result 16242 # to NONDIR_REPLACEMENT. 16243 # value returned in "$func_dirname_result" 16244 # basename: Compute filename of FILE. 16245 # value retuned in "$func_basename_result" 16246 # Implementation must be kept synchronized with func_dirname 16247 # and func_basename. For efficiency, we do not delegate to 16248 # those functions but instead duplicate the functionality here. 16249 func_dirname_and_basename () 16250 { 16251 case ${1} in 16252 */*) func_dirname_result="${1%/*}${2}" ;; 16253 * ) func_dirname_result="${3}" ;; 16254 esac 16255 func_basename_result="${1##*/}" 16256 } 16257 16258 # func_stripname prefix suffix name 16259 # strip PREFIX and SUFFIX off of NAME. 16260 # PREFIX and SUFFIX must not contain globbing or regex special 16261 # characters, hashes, percent signs, but SUFFIX may contain a leading 16262 # dot (in which case that matches only a dot). 16263 func_stripname () 16264 { 16265 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16266 # positional parameters, so assign one to ordinary parameter first. 16267 func_stripname_result=${3} 16268 func_stripname_result=${func_stripname_result#"${1}"} 16269 func_stripname_result=${func_stripname_result%"${2}"} 16270 } 16271 16272 # func_opt_split 16273 func_opt_split () 16274 { 16275 func_opt_split_opt=${1%%=*} 16276 func_opt_split_arg=${1#*=} 16277 } 16278 16279 # func_lo2o object 16280 func_lo2o () 16281 { 16282 case ${1} in 16283 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16284 *) func_lo2o_result=${1} ;; 16285 esac 16286 } 16287 16288 # func_xform libobj-or-source 16289 func_xform () 16290 { 16291 func_xform_result=${1%.*}.lo 16292 } 16293 16294 # func_arith arithmetic-term... 16295 func_arith () 16296 { 16297 func_arith_result=$(( $* )) 16298 } 16299 16300 # func_len string 16301 # STRING may not start with a hyphen. 16302 func_len () 16303 { 16304 func_len_result=${#1} 16305 } 16306 16307 _LT_EOF 16308 ;; 16309 *) # Bourne compatible functions. 16310 cat << \_LT_EOF >> "$cfgfile" 16311 16312 # func_dirname file append nondir_replacement 16313 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16314 # otherwise set result to NONDIR_REPLACEMENT. 16315 func_dirname () 16316 { 16317 # Extract subdirectory from the argument. 16318 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16319 if test "X$func_dirname_result" = "X${1}"; then 16320 func_dirname_result="${3}" 16321 else 16322 func_dirname_result="$func_dirname_result${2}" 16323 fi 16324 } 16325 16326 # func_basename file 16327 func_basename () 16328 { 16329 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16330 } 16331 16332 16333 # func_stripname prefix suffix name 16334 # strip PREFIX and SUFFIX off of NAME. 16335 # PREFIX and SUFFIX must not contain globbing or regex special 16336 # characters, hashes, percent signs, but SUFFIX may contain a leading 16337 # dot (in which case that matches only a dot). 16338 # func_strip_suffix prefix name 16339 func_stripname () 16340 { 16341 case ${2} in 16342 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16343 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16344 esac 16345 } 16346 16347 # sed scripts: 16348 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16349 my_sed_long_arg='1s/^-[^=]*=//' 16350 16351 # func_opt_split 16352 func_opt_split () 16353 { 16354 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16355 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16356 } 16357 16358 # func_lo2o object 16359 func_lo2o () 16360 { 16361 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16362 } 16363 16364 # func_xform libobj-or-source 16365 func_xform () 16366 { 16367 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16368 } 16369 16370 # func_arith arithmetic-term... 16371 func_arith () 16372 { 16373 func_arith_result=`expr "$@"` 16374 } 16375 16376 # func_len string 16377 # STRING may not start with a hyphen. 16378 func_len () 16379 { 16380 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16381 } 16382 16383 _LT_EOF 16384 esac 16385 16386 case $lt_shell_append in 16387 yes) 16388 cat << \_LT_EOF >> "$cfgfile" 16389 16390 # func_append var value 16391 # Append VALUE to the end of shell variable VAR. 16392 func_append () 16393 { 16394 eval "$1+=\$2" 16395 } 16396 _LT_EOF 16397 ;; 16398 *) 16399 cat << \_LT_EOF >> "$cfgfile" 16400 16401 # func_append var value 16402 # Append VALUE to the end of shell variable VAR. 16403 func_append () 16404 { 16405 eval "$1=\$$1\$2" 16406 } 16407 16408 _LT_EOF 16409 ;; 16410 esac 16411 16412 16413 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16414 || (rm -f "$cfgfile"; exit 1) 16415 16416 mv -f "$cfgfile" "$ofile" || 16417 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16418 chmod +x "$ofile" 16419 16420 ;; 16421 "default-1":C) 16422 for ac_file in $CONFIG_FILES; do 16423 # Support "outfile[:infile[:infile...]]" 16424 case "$ac_file" in 16425 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16426 esac 16427 # PO directories have a Makefile.in generated from Makefile.in.in. 16428 case "$ac_file" in */Makefile.in) 16429 # Adjust a relative srcdir. 16430 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16431 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16432 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16433 # In autoconf-2.13 it is called $ac_given_srcdir. 16434 # In autoconf-2.50 it is called $srcdir. 16435 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16436 case "$ac_given_srcdir" in 16437 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16438 /*) top_srcdir="$ac_given_srcdir" ;; 16439 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16440 esac 16441 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16442 rm -f "$ac_dir/POTFILES" 16443 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16444 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16445 POMAKEFILEDEPS="POTFILES.in" 16446 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 16447 # on $ac_dir but don't depend on user-specified configuration 16448 # parameters. 16449 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16450 # The LINGUAS file contains the set of available languages. 16451 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16452 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 16453 fi 16454 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16455 # Hide the ALL_LINGUAS assigment from automake. 16456 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16457 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16458 else 16459 # The set of available languages was given in configure.ac. 16460 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16461 fi 16462 case "$ac_given_srcdir" in 16463 .) srcdirpre= ;; 16464 *) srcdirpre='$(srcdir)/' ;; 16465 esac 16466 POFILES= 16467 GMOFILES= 16468 UPDATEPOFILES= 16469 DUMMYPOFILES= 16470 for lang in $ALL_LINGUAS; do 16471 POFILES="$POFILES $srcdirpre$lang.po" 16472 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16473 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16474 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16475 done 16476 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16477 # environment variable. 16478 INST_LINGUAS= 16479 if test -n "$ALL_LINGUAS"; then 16480 for presentlang in $ALL_LINGUAS; do 16481 useit=no 16482 if test "%UNSET%" != "$LINGUAS"; then 16483 desiredlanguages="$LINGUAS" 16484 else 16485 desiredlanguages="$ALL_LINGUAS" 16486 fi 16487 for desiredlang in $desiredlanguages; do 16488 # Use the presentlang catalog if desiredlang is 16489 # a. equal to presentlang, or 16490 # b. a variant of presentlang (because in this case, 16491 # presentlang can be used as a fallback for messages 16492 # which are not translated in the desiredlang catalog). 16493 case "$desiredlang" in 16494 "$presentlang"*) useit=yes;; 16495 esac 16496 done 16497 if test $useit = yes; then 16498 INST_LINGUAS="$INST_LINGUAS $presentlang" 16499 fi 16500 done 16501 fi 16502 CATALOGS= 16503 if test -n "$INST_LINGUAS"; then 16504 for lang in $INST_LINGUAS; do 16505 CATALOGS="$CATALOGS $lang.gmo" 16506 done 16507 fi 16508 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16509 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 16510 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16511 if test -f "$f"; then 16512 case "$f" in 16513 *.orig | *.bak | *~) ;; 16514 *) cat "$f" >> "$ac_dir/Makefile" ;; 16515 esac 16516 fi 16517 done 16518 fi 16519 ;; 16520 esac 16521 done ;; 16522 16523 esac 16524 done # for ac_tag 16525 16526 16527 as_fn_exit 0 16528 _ACEOF 16529 ac_clean_files=$ac_clean_files_save 16530 16531 test $ac_write_fail = 0 || 16532 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16533 16534 16535 # configure is writing to config.log, and then calls config.status. 16536 # config.status does its own redirection, appending to config.log. 16537 # Unfortunately, on DOS this fails, as config.log is still kept open 16538 # by configure, so config.status won't be able to write to it; its 16539 # output is simply discarded. So we exec the FD to /dev/null, 16540 # effectively closing config.log, so it can be properly (re)opened and 16541 # appended to by config.status. When coming back to configure, we 16542 # need to make the FD available again. 16543 if test "$no_create" != yes; then 16544 ac_cs_success=: 16545 ac_config_status_args= 16546 test "$silent" = yes && 16547 ac_config_status_args="$ac_config_status_args --quiet" 16548 exec 5>/dev/null 16549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16550 exec 5>>config.log 16551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16552 # would make configure fail if this is the last instruction. 16553 $ac_cs_success || as_fn_exit 1 16554 fi 16555 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16557 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16558 fi 16559 16560 16561 16562 touch config.status.tmp 16563 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 16564 sed '/as_fn_exit 0/i \ 16565 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 16566 touch --reference=Makefile Makefile.tmp \ 16567 mv Makefile.tmp Makefile \ 16568 ' config.status > config.status.tmp 16569 touch --reference=config.status config.status.tmp 16570 mv config.status.tmp config.status 16571 chmod +x config.status 16572 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 16573 touch --reference=Makefile Makefile.tmp 16574 mv Makefile.tmp Makefile 16575 else 16576 rm -f config.status.tmp 16577 fi 16578