1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for opcodes 2.46.0. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1 200 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.46.0' 591 PACKAGE_STRING='opcodes 2.46.0' 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 LLVM_CONFIG 690 OBJDUMP 691 LN_S 692 NM 693 ac_ct_DUMPBIN 694 DUMPBIN 695 LD 696 FGREP 697 SED 698 LIBTOOL 699 RANLIB 700 AR 701 EGREP 702 GREP 703 CPP 704 am__fastdepCC_FALSE 705 am__fastdepCC_TRUE 706 CCDEPMODE 707 am__nodep 708 AMDEPBACKSLASH 709 AMDEP_FALSE 710 AMDEP_TRUE 711 am__quote 712 am__include 713 DEPDIR 714 OBJEXT 715 EXEEXT 716 ac_ct_CC 717 CPPFLAGS 718 LDFLAGS 719 CFLAGS 720 CC 721 AM_BACKSLASH 722 AM_DEFAULT_VERBOSITY 723 AM_DEFAULT_V 724 AM_V 725 am__untar 726 am__tar 727 AMTAR 728 am__leading_dot 729 SET_MAKE 730 AWK 731 mkdir_p 732 MKDIR_P 733 INSTALL_STRIP_PROGRAM 734 STRIP 735 install_sh 736 MAKEINFO 737 AUTOHEADER 738 AUTOMAKE 739 AUTOCONF 740 ACLOCAL 741 VERSION 742 PACKAGE 743 CYGPATH_W 744 am__isrc 745 INSTALL_DATA 746 INSTALL_SCRIPT 747 INSTALL_PROGRAM 748 target_os 749 target_vendor 750 target_cpu 751 target 752 host_os 753 host_vendor 754 host_cpu 755 host 756 build_os 757 build_vendor 758 build_cpu 759 build 760 target_alias 761 host_alias 762 build_alias 763 LIBS 764 ECHO_T 765 ECHO_N 766 ECHO_C 767 DEFS 768 mandir 769 localedir 770 libdir 771 psdir 772 pdfdir 773 dvidir 774 htmldir 775 infodir 776 docdir 777 oldincludedir 778 includedir 779 localstatedir 780 sharedstatedir 781 sysconfdir 782 datadir 783 datarootdir 784 libexecdir 785 sbindir 786 bindir 787 program_transform_name 788 prefix 789 exec_prefix 790 PACKAGE_URL 791 PACKAGE_BUGREPORT 792 PACKAGE_STRING 793 PACKAGE_VERSION 794 PACKAGE_TARNAME 795 PACKAGE_NAME 796 PATH_SEPARATOR 797 SHELL' 798 ac_subst_files='' 799 ac_user_opts=' 800 enable_option_checking 801 enable_silent_rules 802 enable_dependency_tracking 803 enable_shared 804 enable_static 805 with_pic 806 enable_fast_install 807 with_gnu_ld 808 enable_libtool_lock 809 enable_checking 810 enable_targets 811 enable_werror 812 enable_build_warnings 813 enable_maintainer_mode 814 enable_install_libbfd 815 enable_nls 816 enable_rpath 817 with_libiconv_prefix 818 with_libiconv_type 819 with_libintl_prefix 820 with_libintl_type 821 enable_cgen_maint 822 ' 823 ac_precious_vars='build_alias 824 host_alias 825 target_alias 826 CC 827 CFLAGS 828 LDFLAGS 829 LIBS 830 CPPFLAGS 831 CPP' 832 833 834 # Initialize some variables set by options. 835 ac_init_help= 836 ac_init_version=false 837 ac_unrecognized_opts= 838 ac_unrecognized_sep= 839 # The variables have the same names as the options, with 840 # dashes changed to underlines. 841 cache_file=/dev/null 842 exec_prefix=NONE 843 no_create= 844 no_recursion= 845 prefix=NONE 846 program_prefix=NONE 847 program_suffix=NONE 848 program_transform_name=s,x,x, 849 silent= 850 site= 851 srcdir= 852 verbose= 853 x_includes=NONE 854 x_libraries=NONE 855 856 # Installation directory options. 857 # These are left unexpanded so users can "make install exec_prefix=/foo" 858 # and all the variables that are supposed to be based on exec_prefix 859 # by default will actually change. 860 # Use braces instead of parens because sh, perl, etc. also accept them. 861 # (The list follows the same order as the GNU Coding Standards.) 862 bindir='${exec_prefix}/bin' 863 sbindir='${exec_prefix}/sbin' 864 libexecdir='${exec_prefix}/libexec' 865 datarootdir='${prefix}/share' 866 datadir='${datarootdir}' 867 sysconfdir='${prefix}/etc' 868 sharedstatedir='${prefix}/com' 869 localstatedir='${prefix}/var' 870 includedir='${prefix}/include' 871 oldincludedir='/usr/include' 872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 873 infodir='${datarootdir}/info' 874 htmldir='${docdir}' 875 dvidir='${docdir}' 876 pdfdir='${docdir}' 877 psdir='${docdir}' 878 libdir='${exec_prefix}/lib' 879 localedir='${datarootdir}/locale' 880 mandir='${datarootdir}/man' 881 882 ac_prev= 883 ac_dashdash= 884 for ac_option 885 do 886 # If the previous option needs an argument, assign it. 887 if test -n "$ac_prev"; then 888 eval $ac_prev=\$ac_option 889 ac_prev= 890 continue 891 fi 892 893 case $ac_option in 894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 895 *=) ac_optarg= ;; 896 *) ac_optarg=yes ;; 897 esac 898 899 # Accept the important Cygnus configure options, so we can diagnose typos. 900 901 case $ac_dashdash$ac_option in 902 --) 903 ac_dashdash=yes ;; 904 905 -bindir | --bindir | --bindi | --bind | --bin | --bi) 906 ac_prev=bindir ;; 907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 908 bindir=$ac_optarg ;; 909 910 -build | --build | --buil | --bui | --bu) 911 ac_prev=build_alias ;; 912 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 913 build_alias=$ac_optarg ;; 914 915 -cache-file | --cache-file | --cache-fil | --cache-fi \ 916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 917 ac_prev=cache_file ;; 918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 920 cache_file=$ac_optarg ;; 921 922 --config-cache | -C) 923 cache_file=config.cache ;; 924 925 -datadir | --datadir | --datadi | --datad) 926 ac_prev=datadir ;; 927 -datadir=* | --datadir=* | --datadi=* | --datad=*) 928 datadir=$ac_optarg ;; 929 930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 931 | --dataroo | --dataro | --datar) 932 ac_prev=datarootdir ;; 933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 935 datarootdir=$ac_optarg ;; 936 937 -disable-* | --disable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: $ac_useropt" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946 "enable_$ac_useropt" 947 "*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=no ;; 952 953 -docdir | --docdir | --docdi | --doc | --do) 954 ac_prev=docdir ;; 955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 956 docdir=$ac_optarg ;; 957 958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 959 ac_prev=dvidir ;; 960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 961 dvidir=$ac_optarg ;; 962 963 -enable-* | --enable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: $ac_useropt" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972 "enable_$ac_useropt" 973 "*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=\$ac_optarg ;; 978 979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 981 | --exec | --exe | --ex) 982 ac_prev=exec_prefix ;; 983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 985 | --exec=* | --exe=* | --ex=*) 986 exec_prefix=$ac_optarg ;; 987 988 -gas | --gas | --ga | --g) 989 # Obsolete; use --with-gas. 990 with_gas=yes ;; 991 992 -help | --help | --hel | --he | -h) 993 ac_init_help=long ;; 994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 995 ac_init_help=recursive ;; 996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 997 ac_init_help=short ;; 998 999 -host | --host | --hos | --ho) 1000 ac_prev=host_alias ;; 1001 -host=* | --host=* | --hos=* | --ho=*) 1002 host_alias=$ac_optarg ;; 1003 1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1005 ac_prev=htmldir ;; 1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1007 | --ht=*) 1008 htmldir=$ac_optarg ;; 1009 1010 -includedir | --includedir | --includedi | --included | --include \ 1011 | --includ | --inclu | --incl | --inc) 1012 ac_prev=includedir ;; 1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1014 | --includ=* | --inclu=* | --incl=* | --inc=*) 1015 includedir=$ac_optarg ;; 1016 1017 -infodir | --infodir | --infodi | --infod | --info | --inf) 1018 ac_prev=infodir ;; 1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1020 infodir=$ac_optarg ;; 1021 1022 -libdir | --libdir | --libdi | --libd) 1023 ac_prev=libdir ;; 1024 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1025 libdir=$ac_optarg ;; 1026 1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1028 | --libexe | --libex | --libe) 1029 ac_prev=libexecdir ;; 1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1031 | --libexe=* | --libex=* | --libe=*) 1032 libexecdir=$ac_optarg ;; 1033 1034 -localedir | --localedir | --localedi | --localed | --locale) 1035 ac_prev=localedir ;; 1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1037 localedir=$ac_optarg ;; 1038 1039 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1040 | --localstate | --localstat | --localsta | --localst | --locals) 1041 ac_prev=localstatedir ;; 1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1044 localstatedir=$ac_optarg ;; 1045 1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1047 ac_prev=mandir ;; 1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1049 mandir=$ac_optarg ;; 1050 1051 -nfp | --nfp | --nf) 1052 # Obsolete; use --without-fp. 1053 with_fp=no ;; 1054 1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1056 | --no-cr | --no-c | -n) 1057 no_create=yes ;; 1058 1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1061 no_recursion=yes ;; 1062 1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1065 | --oldin | --oldi | --old | --ol | --o) 1066 ac_prev=oldincludedir ;; 1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1070 oldincludedir=$ac_optarg ;; 1071 1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1073 ac_prev=prefix ;; 1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1075 prefix=$ac_optarg ;; 1076 1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1078 | --program-pre | --program-pr | --program-p) 1079 ac_prev=program_prefix ;; 1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1082 program_prefix=$ac_optarg ;; 1083 1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1085 | --program-suf | --program-su | --program-s) 1086 ac_prev=program_suffix ;; 1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1089 program_suffix=$ac_optarg ;; 1090 1091 -program-transform-name | --program-transform-name \ 1092 | --program-transform-nam | --program-transform-na \ 1093 | --program-transform-n | --program-transform- \ 1094 | --program-transform | --program-transfor \ 1095 | --program-transfo | --program-transf \ 1096 | --program-trans | --program-tran \ 1097 | --progr-tra | --program-tr | --program-t) 1098 ac_prev=program_transform_name ;; 1099 -program-transform-name=* | --program-transform-name=* \ 1100 | --program-transform-nam=* | --program-transform-na=* \ 1101 | --program-transform-n=* | --program-transform-=* \ 1102 | --program-transform=* | --program-transfor=* \ 1103 | --program-transfo=* | --program-transf=* \ 1104 | --program-trans=* | --program-tran=* \ 1105 | --progr-tra=* | --program-tr=* | --program-t=*) 1106 program_transform_name=$ac_optarg ;; 1107 1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1109 ac_prev=pdfdir ;; 1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1111 pdfdir=$ac_optarg ;; 1112 1113 -psdir | --psdir | --psdi | --psd | --ps) 1114 ac_prev=psdir ;; 1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1116 psdir=$ac_optarg ;; 1117 1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1119 | -silent | --silent | --silen | --sile | --sil) 1120 silent=yes ;; 1121 1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1123 ac_prev=sbindir ;; 1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1125 | --sbi=* | --sb=*) 1126 sbindir=$ac_optarg ;; 1127 1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1130 | --sharedst | --shareds | --shared | --share | --shar \ 1131 | --sha | --sh) 1132 ac_prev=sharedstatedir ;; 1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1136 | --sha=* | --sh=*) 1137 sharedstatedir=$ac_optarg ;; 1138 1139 -site | --site | --sit) 1140 ac_prev=site ;; 1141 -site=* | --site=* | --sit=*) 1142 site=$ac_optarg ;; 1143 1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1145 ac_prev=srcdir ;; 1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1147 srcdir=$ac_optarg ;; 1148 1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1150 | --syscon | --sysco | --sysc | --sys | --sy) 1151 ac_prev=sysconfdir ;; 1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1154 sysconfdir=$ac_optarg ;; 1155 1156 -target | --target | --targe | --targ | --tar | --ta | --t) 1157 ac_prev=target_alias ;; 1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1159 target_alias=$ac_optarg ;; 1160 1161 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1162 verbose=yes ;; 1163 1164 -version | --version | --versio | --versi | --vers | -V) 1165 ac_init_version=: ;; 1166 1167 -with-* | --with-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176 "with_$ac_useropt" 1177 "*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=\$ac_optarg ;; 1182 1183 -without-* | --without-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192 "with_$ac_useropt" 1193 "*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=no ;; 1198 1199 --x) 1200 # Obsolete; use --with-x. 1201 with_x=yes ;; 1202 1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1204 | --x-incl | --x-inc | --x-in | --x-i) 1205 ac_prev=x_includes ;; 1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1208 x_includes=$ac_optarg ;; 1209 1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1212 ac_prev=x_libraries ;; 1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1215 x_libraries=$ac_optarg ;; 1216 1217 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1218 Try \`$0 --help' for more information" 1219 ;; 1220 1221 *=*) 1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1223 # Reject names that are not valid shell variable names. 1224 case $ac_envvar in #( 1225 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1227 esac 1228 eval $ac_envvar=\$ac_optarg 1229 export $ac_envvar ;; 1230 1231 *) 1232 # FIXME: should be removed in autoconf 3.0. 1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1237 ;; 1238 1239 esac 1240 done 1241 1242 if test -n "$ac_prev"; then 1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1244 as_fn_error $? "missing argument to $ac_option" 1245 fi 1246 1247 if test -n "$ac_unrecognized_opts"; then 1248 case $enable_option_checking in 1249 no) ;; 1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1252 esac 1253 fi 1254 1255 # Check all directory arguments for consistency. 1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1257 datadir sysconfdir sharedstatedir localstatedir includedir \ 1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1259 libdir localedir mandir 1260 do 1261 eval ac_val=\$$ac_var 1262 # Remove trailing slashes. 1263 case $ac_val in 1264 */ ) 1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1266 eval $ac_var=\$ac_val;; 1267 esac 1268 # Be sure to have absolute directory names. 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1274 done 1275 1276 # There might be people who depend on the old broken behavior: `$host' 1277 # used to hold the argument of --host etc. 1278 # FIXME: To remove some day. 1279 build=$build_alias 1280 host=$host_alias 1281 target=$target_alias 1282 1283 # FIXME: To remove some day. 1284 if test "x$host_alias" != x; then 1285 if test "x$build_alias" = x; then 1286 cross_compiling=maybe 1287 elif test "x$build_alias" != "x$host_alias"; then 1288 cross_compiling=yes 1289 fi 1290 fi 1291 1292 ac_tool_prefix= 1293 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1294 1295 test "$silent" = yes && exec 6>/dev/null 1296 1297 1298 ac_pwd=`pwd` && test -n "$ac_pwd" && 1299 ac_ls_di=`ls -di .` && 1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1301 as_fn_error $? "working directory cannot be determined" 1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1303 as_fn_error $? "pwd does not report name of working directory" 1304 1305 1306 # Find the source files, if location was not specified. 1307 if test -z "$srcdir"; then 1308 ac_srcdir_defaulted=yes 1309 # Try the directory containing this script, then the parent directory. 1310 ac_confdir=`$as_dirname -- "$as_myself" || 1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1312 X"$as_myself" : 'X\(//\)[^/]' \| \ 1313 X"$as_myself" : 'X\(//\)$' \| \ 1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1315 $as_echo X"$as_myself" | 1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)[^/].*/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)$/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\).*/{ 1329 s//\1/ 1330 q 1331 } 1332 s/.*/./; q'` 1333 srcdir=$ac_confdir 1334 if test ! -r "$srcdir/$ac_unique_file"; then 1335 srcdir=.. 1336 fi 1337 else 1338 ac_srcdir_defaulted=no 1339 fi 1340 if test ! -r "$srcdir/$ac_unique_file"; then 1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1343 fi 1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1345 ac_abs_confdir=`( 1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1347 pwd)` 1348 # When building in place, set srcdir=. 1349 if test "$ac_abs_confdir" = "$ac_pwd"; then 1350 srcdir=. 1351 fi 1352 # Remove unnecessary trailing slashes from srcdir. 1353 # Double slashes in file names in object file debugging info 1354 # mess up M-x gdb in Emacs. 1355 case $srcdir in 1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1357 esac 1358 for ac_var in $ac_precious_vars; do 1359 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_env_${ac_var}_value=\$${ac_var} 1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1363 done 1364 1365 # 1366 # Report the --help message. 1367 # 1368 if test "$ac_init_help" = "long"; then 1369 # Omit some internal or obsolete options to make the list less imposing. 1370 # This message is too long to be a string in the A/UX 3.1 sh. 1371 cat <<_ACEOF 1372 \`configure' configures opcodes 2.46.0 to adapt to many kinds of systems. 1373 1374 Usage: $0 [OPTION]... [VAR=VALUE]... 1375 1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1377 VAR=VALUE. See below for descriptions of some of the useful variables. 1378 1379 Defaults for the options are specified in brackets. 1380 1381 Configuration: 1382 -h, --help display this help and exit 1383 --help=short display options specific to this package 1384 --help=recursive display the short help of all the included packages 1385 -V, --version display version information and exit 1386 -q, --quiet, --silent do not print \`checking ...' messages 1387 --cache-file=FILE cache test results in FILE [disabled] 1388 -C, --config-cache alias for \`--cache-file=config.cache' 1389 -n, --no-create do not create output files 1390 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1391 1392 Installation directories: 1393 --prefix=PREFIX install architecture-independent files in PREFIX 1394 [$ac_default_prefix] 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1396 [PREFIX] 1397 1398 By default, \`make install' will install all the files in 1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1401 for instance \`--prefix=\$HOME'. 1402 1403 For better control, use the options below. 1404 1405 Fine tuning of the installation directories: 1406 --bindir=DIR user executables [EPREFIX/bin] 1407 --sbindir=DIR system admin executables [EPREFIX/sbin] 1408 --libexecdir=DIR program executables [EPREFIX/libexec] 1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1412 --libdir=DIR object code libraries [EPREFIX/lib] 1413 --includedir=DIR C header files [PREFIX/include] 1414 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1417 --infodir=DIR info documentation [DATAROOTDIR/info] 1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1419 --mandir=DIR man documentation [DATAROOTDIR/man] 1420 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] 1421 --htmldir=DIR html documentation [DOCDIR] 1422 --dvidir=DIR dvi documentation [DOCDIR] 1423 --pdfdir=DIR pdf documentation [DOCDIR] 1424 --psdir=DIR ps documentation [DOCDIR] 1425 _ACEOF 1426 1427 cat <<\_ACEOF 1428 1429 Program names: 1430 --program-prefix=PREFIX prepend PREFIX to installed program names 1431 --program-suffix=SUFFIX append SUFFIX to installed program names 1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1433 1434 System types: 1435 --build=BUILD configure for building on BUILD [guessed] 1436 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1437 --target=TARGET configure for building compilers for TARGET [HOST] 1438 _ACEOF 1439 fi 1440 1441 if test -n "$ac_init_help"; then 1442 case $ac_init_help in 1443 short | recursive ) echo "Configuration of opcodes 2.46.0:";; 1444 esac 1445 cat <<\_ACEOF 1446 1447 Optional Features: 1448 --disable-option-checking ignore unrecognized --enable/--with options 1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1451 --enable-silent-rules less verbose build output (undo: "make V=1") 1452 --disable-silent-rules verbose build output (undo: "make V=0") 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --enable-shared[=PKGS] build shared libraries [default=no] 1458 --enable-static[=PKGS] build static libraries [default=yes] 1459 --enable-fast-install[=PKGS] 1460 optimize for fast installation [default=yes] 1461 --disable-libtool-lock avoid locking (might break parallel builds) 1462 --enable-checking enable run-time checks 1463 --enable-targets alternative target configurations 1464 --enable-werror treat compile warnings as errors 1465 --enable-build-warnings enable build-time compiler warnings 1466 --enable-maintainer-mode 1467 enable make rules and dependencies not useful (and 1468 sometimes confusing) to the casual installer 1469 --enable-install-libbfd controls installation of libbfd and related headers 1470 --disable-nls do not use Native Language Support 1471 --disable-rpath do not hardcode runtime library paths 1472 --enable-cgen-maint=dir build cgen generated files 1473 1474 Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-pic try to use only PIC/non-PIC objects [default=use 1478 both] 1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1480 --with-gnu-ld assume the C compiler uses GNU ld default=no 1481 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1482 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1483 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1484 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1485 --without-libintl-prefix don't search for libintl in includedir and libdir 1486 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1487 1488 Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 1498 Use these variables to override the choices made by `configure' or to help 1499 it to find libraries and programs with nonstandard names/locations. 1500 1501 Report bugs to the package provider. 1502 _ACEOF 1503 ac_status=$? 1504 fi 1505 1506 if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514 case "$ac_dir" in 1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516 *) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524 esac 1525 ac_abs_top_builddir=$ac_pwd 1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527 # for backward compatibility: 1528 ac_top_builddir=$ac_top_build_prefix 1529 1530 case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543 esac 1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559 fi 1560 1561 test -n "$ac_init_help" && exit $ac_status 1562 if $ac_init_version; then 1563 cat <<\_ACEOF 1564 opcodes configure 2.46.0 1565 generated by GNU Autoconf 2.69 1566 1567 Copyright (C) 2012 Free Software Foundation, Inc. 1568 This configure script is free software; the Free Software Foundation 1569 gives unlimited permission to copy, distribute and modify it. 1570 _ACEOF 1571 exit 1572 fi 1573 1574 ## ------------------------ ## 1575 ## Autoconf initialization. ## 1576 ## ------------------------ ## 1577 1578 # ac_fn_c_try_compile LINENO 1579 # -------------------------- 1580 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1581 ac_fn_c_try_compile () 1582 { 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586 case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589 esac 1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591 $as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605 else 1606 $as_echo "$as_me: failed program was:" >&5 1607 sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610 fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614 } # ac_fn_c_try_compile 1615 1616 # ac_fn_c_try_cpp LINENO 1617 # ---------------------- 1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1619 ac_fn_c_try_cpp () 1620 { 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_cpp conftest.$ac_ext" 1623 case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626 esac 1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628 $as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } > conftest.i && { 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 }; then : 1641 ac_retval=0 1642 else 1643 $as_echo "$as_me: failed program was:" >&5 1644 sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647 fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651 } # ac_fn_c_try_cpp 1652 1653 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1654 # ------------------------------------------------------- 1655 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1656 # the include files in INCLUDES and setting the cache variable VAR 1657 # accordingly. 1658 ac_fn_c_check_header_mongrel () 1659 { 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if eval \${$3+:} false; then : 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663 $as_echo_n "checking for $2... " >&6; } 1664 if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666 fi 1667 eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669 $as_echo "$ac_res" >&6; } 1670 else 1671 # Is the header compilable? 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1673 $as_echo_n "checking $2 usability... " >&6; } 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675 /* end confdefs.h. */ 1676 $4 1677 #include <$2> 1678 _ACEOF 1679 if ac_fn_c_try_compile "$LINENO"; then : 1680 ac_header_compiler=yes 1681 else 1682 ac_header_compiler=no 1683 fi 1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1686 $as_echo "$ac_header_compiler" >&6; } 1687 1688 # Is the header present? 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1690 $as_echo_n "checking $2 presence... " >&6; } 1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692 /* end confdefs.h. */ 1693 #include <$2> 1694 _ACEOF 1695 if ac_fn_c_try_cpp "$LINENO"; then : 1696 ac_header_preproc=yes 1697 else 1698 ac_header_preproc=no 1699 fi 1700 rm -f conftest.err conftest.i conftest.$ac_ext 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1702 $as_echo "$ac_header_preproc" >&6; } 1703 1704 # So? What about this header? 1705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1706 yes:no: ) 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1708 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1711 ;; 1712 no:yes:* ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1714 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1716 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1718 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1720 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1723 ;; 1724 esac 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726 $as_echo_n "checking for $2... " >&6; } 1727 if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729 else 1730 eval "$3=\$ac_header_compiler" 1731 fi 1732 eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734 $as_echo "$ac_res" >&6; } 1735 fi 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 1738 } # ac_fn_c_check_header_mongrel 1739 1740 # ac_fn_c_try_run LINENO 1741 # ---------------------- 1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1743 # that executables *can* be run. 1744 ac_fn_c_try_run () 1745 { 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 if { { ac_try="$ac_link" 1748 case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751 esac 1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753 $as_echo "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>&5 1755 ac_status=$? 1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1758 { { case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761 esac 1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763 $as_echo "$ac_try_echo"; } >&5 1764 (eval "$ac_try") 2>&5 1765 ac_status=$? 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; }; }; then : 1768 ac_retval=0 1769 else 1770 $as_echo "$as_me: program exited with status $ac_status" >&5 1771 $as_echo "$as_me: failed program was:" >&5 1772 sed 's/^/| /' conftest.$ac_ext >&5 1773 1774 ac_retval=$ac_status 1775 fi 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780 } # ac_fn_c_try_run 1781 1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1783 # ------------------------------------------------------- 1784 # Tests whether HEADER exists and can be compiled using the include files in 1785 # INCLUDES, setting the cache variable VAR accordingly. 1786 ac_fn_c_check_header_compile () 1787 { 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790 $as_echo_n "checking for $2... " >&6; } 1791 if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793 else 1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795 /* end confdefs.h. */ 1796 $4 1797 #include <$2> 1798 _ACEOF 1799 if ac_fn_c_try_compile "$LINENO"; then : 1800 eval "$3=yes" 1801 else 1802 eval "$3=no" 1803 fi 1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1805 fi 1806 eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808 $as_echo "$ac_res" >&6; } 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 1811 } # ac_fn_c_check_header_compile 1812 1813 # ac_fn_c_try_link LINENO 1814 # ----------------------- 1815 # Try to link conftest.$ac_ext, and return whether this succeeded. 1816 ac_fn_c_try_link () 1817 { 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext conftest$ac_exeext 1820 if { { ac_try="$ac_link" 1821 case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824 esac 1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826 $as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_link") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest$ac_exeext && { 1839 test "$cross_compiling" = yes || 1840 test -x conftest$ac_exeext 1841 }; then : 1842 ac_retval=0 1843 else 1844 $as_echo "$as_me: failed program was:" >&5 1845 sed 's/^/| /' conftest.$ac_ext >&5 1846 1847 ac_retval=1 1848 fi 1849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1851 # interfere with the next link command; also delete a directory that is 1852 # left behind by Apple's compiler. We do this before executing the actions. 1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 as_fn_set_status $ac_retval 1856 1857 } # ac_fn_c_try_link 1858 1859 # ac_fn_c_check_func LINENO FUNC VAR 1860 # ---------------------------------- 1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1862 ac_fn_c_check_func () 1863 { 1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1866 $as_echo_n "checking for $2... " >&6; } 1867 if eval \${$3+:} false; then : 1868 $as_echo_n "(cached) " >&6 1869 else 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871 /* end confdefs.h. */ 1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1874 #define $2 innocuous_$2 1875 1876 /* System header to define __stub macros and hopefully few prototypes, 1877 which can conflict with char $2 (); below. 1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1879 <limits.h> exists even on freestanding compilers. */ 1880 1881 #ifdef __STDC__ 1882 # include <limits.h> 1883 #else 1884 # include <assert.h> 1885 #endif 1886 1887 #undef $2 1888 1889 /* Override any GCC internal prototype to avoid an error. 1890 Use char because int might match the return type of a GCC 1891 builtin and then its argument prototype would still apply. */ 1892 #ifdef __cplusplus 1893 extern "C" 1894 #endif 1895 char $2 (); 1896 /* The GNU C library defines this for functions which it implements 1897 to always fail with ENOSYS. Some functions are actually named 1898 something starting with __ and the normal name is an alias. */ 1899 #if defined __stub_$2 || defined __stub___$2 1900 choke me 1901 #endif 1902 1903 int 1904 main () 1905 { 1906 return $2 (); 1907 ; 1908 return 0; 1909 } 1910 _ACEOF 1911 if ac_fn_c_try_link "$LINENO"; then : 1912 eval "$3=yes" 1913 else 1914 eval "$3=no" 1915 fi 1916 rm -f core conftest.err conftest.$ac_objext \ 1917 conftest$ac_exeext conftest.$ac_ext 1918 fi 1919 eval ac_res=\$$3 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1921 $as_echo "$ac_res" >&6; } 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 1924 } # ac_fn_c_check_func 1925 1926 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1927 # --------------------------------------------- 1928 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1929 # accordingly. 1930 ac_fn_c_check_decl () 1931 { 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 as_decl_name=`echo $2|sed 's/ *(.*//'` 1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1936 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1937 if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939 else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941 /* end confdefs.h. */ 1942 $4 1943 int 1944 main () 1945 { 1946 #ifndef $as_decl_name 1947 #ifdef __cplusplus 1948 (void) $as_decl_use; 1949 #else 1950 (void) $as_decl_name; 1951 #endif 1952 #endif 1953 1954 ; 1955 return 0; 1956 } 1957 _ACEOF 1958 if ac_fn_c_try_compile "$LINENO"; then : 1959 eval "$3=yes" 1960 else 1961 eval "$3=no" 1962 fi 1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964 fi 1965 eval ac_res=\$$3 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967 $as_echo "$ac_res" >&6; } 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970 } # ac_fn_c_check_decl 1971 cat >config.log <<_ACEOF 1972 This file contains any messages produced by compilers while 1973 running configure, to aid debugging if configure makes a mistake. 1974 1975 It was created by opcodes $as_me 2.46.0, which was 1976 generated by GNU Autoconf 2.69. Invocation command line was 1977 1978 $ $0 $@ 1979 1980 _ACEOF 1981 exec 5>>config.log 1982 { 1983 cat <<_ASUNAME 1984 ## --------- ## 1985 ## Platform. ## 1986 ## --------- ## 1987 1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1989 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1990 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1991 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1992 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1993 1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1996 1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2004 2005 _ASUNAME 2006 2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2008 for as_dir in $PATH 2009 do 2010 IFS=$as_save_IFS 2011 test -z "$as_dir" && as_dir=. 2012 $as_echo "PATH: $as_dir" 2013 done 2014 IFS=$as_save_IFS 2015 2016 } >&5 2017 2018 cat >&5 <<_ACEOF 2019 2020 2021 ## ----------- ## 2022 ## Core tests. ## 2023 ## ----------- ## 2024 2025 _ACEOF 2026 2027 2028 # Keep a trace of the command line. 2029 # Strip out --no-create and --no-recursion so they do not pile up. 2030 # Strip out --silent because we don't want to record it for future runs. 2031 # Also quote any args containing shell meta-characters. 2032 # Make two passes to allow for proper duplicate-argument suppression. 2033 ac_configure_args= 2034 ac_configure_args0= 2035 ac_configure_args1= 2036 ac_must_keep_next=false 2037 for ac_pass in 1 2 2038 do 2039 for ac_arg 2040 do 2041 case $ac_arg in 2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2044 | -silent | --silent | --silen | --sile | --sil) 2045 continue ;; 2046 *\'*) 2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2048 esac 2049 case $ac_pass in 2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2051 2) 2052 as_fn_append ac_configure_args1 " '$ac_arg'" 2053 if test $ac_must_keep_next = true; then 2054 ac_must_keep_next=false # Got value, back to normal. 2055 else 2056 case $ac_arg in 2057 *=* | --config-cache | -C | -disable-* | --disable-* \ 2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2060 | -with-* | --with-* | -without-* | --without-* | --x) 2061 case "$ac_configure_args0 " in 2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2063 esac 2064 ;; 2065 -* ) ac_must_keep_next=true ;; 2066 esac 2067 fi 2068 as_fn_append ac_configure_args " '$ac_arg'" 2069 ;; 2070 esac 2071 done 2072 done 2073 { ac_configure_args0=; unset ac_configure_args0;} 2074 { ac_configure_args1=; unset ac_configure_args1;} 2075 2076 # When interrupted or exit'd, cleanup temporary files, and complete 2077 # config.log. We remove comments because anyway the quotes in there 2078 # would cause problems or look ugly. 2079 # WARNING: Use '\'' to represent an apostrophe within the trap. 2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2081 trap 'exit_status=$? 2082 # Save into config.log some information that might help in debugging. 2083 { 2084 echo 2085 2086 $as_echo "## ---------------- ## 2087 ## Cache variables. ## 2088 ## ---------------- ##" 2089 echo 2090 # The following way of writing the cache mishandles newlines in values, 2091 ( 2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in #( 2095 *${as_nl}*) 2096 case $ac_var in #( 2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2099 esac 2100 case $ac_var in #( 2101 _ | IFS | as_nl) ;; #( 2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2103 *) { eval $ac_var=; unset $ac_var;} ;; 2104 esac ;; 2105 esac 2106 done 2107 (set) 2>&1 | 2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2109 *${as_nl}ac_space=\ *) 2110 sed -n \ 2111 "s/'\''/'\''\\\\'\'''\''/g; 2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2113 ;; #( 2114 *) 2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2116 ;; 2117 esac | 2118 sort 2119 ) 2120 echo 2121 2122 $as_echo "## ----------------- ## 2123 ## Output variables. ## 2124 ## ----------------- ##" 2125 echo 2126 for ac_var in $ac_subst_vars 2127 do 2128 eval ac_val=\$$ac_var 2129 case $ac_val in 2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2131 esac 2132 $as_echo "$ac_var='\''$ac_val'\''" 2133 done | sort 2134 echo 2135 2136 if test -n "$ac_subst_files"; then 2137 $as_echo "## ------------------- ## 2138 ## File substitutions. ## 2139 ## ------------------- ##" 2140 echo 2141 for ac_var in $ac_subst_files 2142 do 2143 eval ac_val=\$$ac_var 2144 case $ac_val in 2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2146 esac 2147 $as_echo "$ac_var='\''$ac_val'\''" 2148 done | sort 2149 echo 2150 fi 2151 2152 if test -s confdefs.h; then 2153 $as_echo "## ----------- ## 2154 ## confdefs.h. ## 2155 ## ----------- ##" 2156 echo 2157 cat confdefs.h 2158 echo 2159 fi 2160 test "$ac_signal" != 0 && 2161 $as_echo "$as_me: caught signal $ac_signal" 2162 $as_echo "$as_me: exit $exit_status" 2163 } >&5 2164 rm -f core *.core core.conftest.* && 2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2166 exit $exit_status 2167 ' 0 2168 for ac_signal in 1 2 13 15; do 2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2170 done 2171 ac_signal=0 2172 2173 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2174 rm -f -r conftest* confdefs.h 2175 2176 $as_echo "/* confdefs.h */" > confdefs.h 2177 2178 # Predefined preprocessor variables. 2179 2180 cat >>confdefs.h <<_ACEOF 2181 #define PACKAGE_NAME "$PACKAGE_NAME" 2182 _ACEOF 2183 2184 cat >>confdefs.h <<_ACEOF 2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2186 _ACEOF 2187 2188 cat >>confdefs.h <<_ACEOF 2189 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2190 _ACEOF 2191 2192 cat >>confdefs.h <<_ACEOF 2193 #define PACKAGE_STRING "$PACKAGE_STRING" 2194 _ACEOF 2195 2196 cat >>confdefs.h <<_ACEOF 2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2198 _ACEOF 2199 2200 cat >>confdefs.h <<_ACEOF 2201 #define PACKAGE_URL "$PACKAGE_URL" 2202 _ACEOF 2203 2204 2205 # Let the site file select an alternate cache file if it wants to. 2206 # Prefer an explicitly selected file to automatically selected ones. 2207 ac_site_file1=NONE 2208 ac_site_file2=NONE 2209 if test -n "$CONFIG_SITE"; then 2210 # We do not want a PATH search for config.site. 2211 case $CONFIG_SITE in #(( 2212 -*) ac_site_file1=./$CONFIG_SITE;; 2213 */*) ac_site_file1=$CONFIG_SITE;; 2214 *) ac_site_file1=./$CONFIG_SITE;; 2215 esac 2216 elif test "x$prefix" != xNONE; then 2217 ac_site_file1=$prefix/share/config.site 2218 ac_site_file2=$prefix/etc/config.site 2219 else 2220 ac_site_file1=$ac_default_prefix/share/config.site 2221 ac_site_file2=$ac_default_prefix/etc/config.site 2222 fi 2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2224 do 2225 test "x$ac_site_file" = xNONE && continue 2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2229 sed 's/^/| /' "$ac_site_file" >&5 2230 . "$ac_site_file" \ 2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2233 as_fn_error $? "failed to load site script $ac_site_file 2234 See \`config.log' for more details" "$LINENO" 5; } 2235 fi 2236 done 2237 2238 if test -r "$cache_file"; then 2239 # Some versions of bash will fail to source /dev/null (special files 2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2243 $as_echo "$as_me: loading cache $cache_file" >&6;} 2244 case $cache_file in 2245 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2246 *) . "./$cache_file";; 2247 esac 2248 fi 2249 else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2251 $as_echo "$as_me: creating cache $cache_file" >&6;} 2252 >$cache_file 2253 fi 2254 2255 gt_needs="$gt_needs " 2256 # Check that the precious variables saved in the cache have kept the same 2257 # value. 2258 ac_cache_corrupted=false 2259 for ac_var in $ac_precious_vars; do 2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2261 eval ac_new_set=\$ac_env_${ac_var}_set 2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2263 eval ac_new_val=\$ac_env_${ac_var}_value 2264 case $ac_old_set,$ac_new_set in 2265 set,) 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2268 ac_cache_corrupted=: ;; 2269 ,set) 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2272 ac_cache_corrupted=: ;; 2273 ,);; 2274 *) 2275 if test "x$ac_old_val" != "x$ac_new_val"; then 2276 # differences in whitespace do not lead to failure. 2277 ac_old_val_w=`echo x $ac_old_val` 2278 ac_new_val_w=`echo x $ac_new_val` 2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2282 ac_cache_corrupted=: 2283 else 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2286 eval $ac_var=\$ac_old_val 2287 fi 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2292 fi;; 2293 esac 2294 # Pass precious variables to config.status. 2295 if test "$ac_new_set" = set; then 2296 case $ac_new_val in 2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 *) ac_arg=$ac_var=$ac_new_val ;; 2299 esac 2300 case " $ac_configure_args " in 2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2303 esac 2304 fi 2305 done 2306 if $ac_cache_corrupted; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2312 fi 2313 ## -------------------- ## 2314 ## Main body of script. ## 2315 ## -------------------- ## 2316 2317 ac_ext=c 2318 ac_cpp='$CPP $CPPFLAGS' 2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2322 2323 2324 2325 2326 2327 2328 2329 ac_aux_dir= 2330 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2331 if test -f "$ac_dir/install-sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install-sh -c" 2334 break 2335 elif test -f "$ac_dir/install.sh"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/install.sh -c" 2338 break 2339 elif test -f "$ac_dir/shtool"; then 2340 ac_aux_dir=$ac_dir 2341 ac_install_sh="$ac_aux_dir/shtool install -c" 2342 break 2343 fi 2344 done 2345 if test -z "$ac_aux_dir"; then 2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2347 fi 2348 2349 # These three variables are undocumented and unsupported, 2350 # and are intended to be withdrawn in a future Autoconf release. 2351 # They can cause serious problems if a builder's source tree is in a directory 2352 # whose full name contains unusual characters. 2353 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2354 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2355 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2356 2357 2358 # Make sure we can run config.sub. 2359 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2360 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2361 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2363 $as_echo_n "checking build system type... " >&6; } 2364 if ${ac_cv_build+:} false; then : 2365 $as_echo_n "(cached) " >&6 2366 else 2367 ac_build_alias=$build_alias 2368 test "x$ac_build_alias" = x && 2369 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2370 test "x$ac_build_alias" = x && 2371 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2372 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2374 2375 fi 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2377 $as_echo "$ac_cv_build" >&6; } 2378 case $ac_cv_build in 2379 *-*-*) ;; 2380 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2381 esac 2382 build=$ac_cv_build 2383 ac_save_IFS=$IFS; IFS='-' 2384 set x $ac_cv_build 2385 shift 2386 build_cpu=$1 2387 build_vendor=$2 2388 shift; shift 2389 # Remember, the first character of IFS is used to create $*, 2390 # except with old shells: 2391 build_os=$* 2392 IFS=$ac_save_IFS 2393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2394 2395 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2397 $as_echo_n "checking host system type... " >&6; } 2398 if ${ac_cv_host+:} false; then : 2399 $as_echo_n "(cached) " >&6 2400 else 2401 if test "x$host_alias" = x; then 2402 ac_cv_host=$ac_cv_build 2403 else 2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2406 fi 2407 2408 fi 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2410 $as_echo "$ac_cv_host" >&6; } 2411 case $ac_cv_host in 2412 *-*-*) ;; 2413 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2414 esac 2415 host=$ac_cv_host 2416 ac_save_IFS=$IFS; IFS='-' 2417 set x $ac_cv_host 2418 shift 2419 host_cpu=$1 2420 host_vendor=$2 2421 shift; shift 2422 # Remember, the first character of IFS is used to create $*, 2423 # except with old shells: 2424 host_os=$* 2425 IFS=$ac_save_IFS 2426 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2427 2428 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2430 $as_echo_n "checking target system type... " >&6; } 2431 if ${ac_cv_target+:} false; then : 2432 $as_echo_n "(cached) " >&6 2433 else 2434 if test "x$target_alias" = x; then 2435 ac_cv_target=$ac_cv_host 2436 else 2437 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2439 fi 2440 2441 fi 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2443 $as_echo "$ac_cv_target" >&6; } 2444 case $ac_cv_target in 2445 *-*-*) ;; 2446 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2447 esac 2448 target=$ac_cv_target 2449 ac_save_IFS=$IFS; IFS='-' 2450 set x $ac_cv_target 2451 shift 2452 target_cpu=$1 2453 target_vendor=$2 2454 shift; shift 2455 # Remember, the first character of IFS is used to create $*, 2456 # except with old shells: 2457 target_os=$* 2458 IFS=$ac_save_IFS 2459 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2460 2461 2462 # The aliases save the names the user supplied, while $host etc. 2463 # will get canonicalized. 2464 test -n "$target_alias" && 2465 test "$program_prefix$program_suffix$program_transform_name" = \ 2466 NONENONEs,x,x, && 2467 program_prefix=${target_alias}- 2468 2469 am__api_version='1.15' 2470 2471 # Find a good install program. We prefer a C program (faster), 2472 # so one script is as good as another. But avoid the broken or 2473 # incompatible versions: 2474 # SysV /etc/install, /usr/sbin/install 2475 # SunOS /usr/etc/install 2476 # IRIX /sbin/install 2477 # AIX /bin/install 2478 # AmigaOS /C/install, which installs bootblocks on floppy discs 2479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2482 # OS/2's system install, which has a completely different semantic 2483 # ./install, which can be erroneously created by make from ./install.sh. 2484 # Reject install programs that cannot install multiple files. 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2486 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2487 if test -z "$INSTALL"; then 2488 if ${ac_cv_path_install+:} false; then : 2489 $as_echo_n "(cached) " >&6 2490 else 2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492 for as_dir in $PATH 2493 do 2494 IFS=$as_save_IFS 2495 test -z "$as_dir" && as_dir=. 2496 # Account for people who put trailing slashes in PATH elements. 2497 case $as_dir/ in #(( 2498 ./ | .// | /[cC]/* | \ 2499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2500 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2501 /usr/ucb/* ) ;; 2502 *) 2503 # OSF1 and SCO ODT 3.0 have their own names for install. 2504 # Don't use installbsd from OSF since it installs stuff as root 2505 # by default. 2506 for ac_prog in ginstall scoinst install; do 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2509 if test $ac_prog = install && 2510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2511 # AIX install. It has an incompatible calling convention. 2512 : 2513 elif test $ac_prog = install && 2514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2515 # program-specific install script used by HP pwplus--don't use. 2516 : 2517 else 2518 rm -rf conftest.one conftest.two conftest.dir 2519 echo one > conftest.one 2520 echo two > conftest.two 2521 mkdir conftest.dir 2522 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2523 test -s conftest.one && test -s conftest.two && 2524 test -s conftest.dir/conftest.one && 2525 test -s conftest.dir/conftest.two 2526 then 2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2528 break 3 2529 fi 2530 fi 2531 fi 2532 done 2533 done 2534 ;; 2535 esac 2536 2537 done 2538 IFS=$as_save_IFS 2539 2540 rm -rf conftest.one conftest.two conftest.dir 2541 2542 fi 2543 if test "${ac_cv_path_install+set}" = set; then 2544 INSTALL=$ac_cv_path_install 2545 else 2546 # As a last resort, use the slow shell script. Don't cache a 2547 # value for INSTALL within a source directory, because that will 2548 # break other packages using the cache if that directory is 2549 # removed, or if the value is a relative name. 2550 INSTALL=$ac_install_sh 2551 fi 2552 fi 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2554 $as_echo "$INSTALL" >&6; } 2555 2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2557 # It thinks the first close brace ends the variable substitution. 2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2559 2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2561 2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2563 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2565 $as_echo_n "checking whether build environment is sane... " >&6; } 2566 # Reject unsafe characters in $srcdir or the absolute working directory 2567 # name. Accept space and tab only in the latter. 2568 am_lf=' 2569 ' 2570 case `pwd` in 2571 *[\\\"\#\$\&\'\`$am_lf]*) 2572 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2573 esac 2574 case $srcdir in 2575 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2576 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2577 esac 2578 2579 # Do 'set' in a subshell so we don't clobber the current shell's 2580 # arguments. Must try -L first in case configure is actually a 2581 # symlink; some systems play weird games with the mod time of symlinks 2582 # (eg FreeBSD returns the mod time of the symlink's containing 2583 # directory). 2584 if ( 2585 am_has_slept=no 2586 for am_try in 1 2; do 2587 echo "timestamp, slept: $am_has_slept" > conftest.file 2588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2589 if test "$*" = "X"; then 2590 # -L didn't work. 2591 set X `ls -t "$srcdir/configure" conftest.file` 2592 fi 2593 if test "$*" != "X $srcdir/configure conftest.file" \ 2594 && test "$*" != "X conftest.file $srcdir/configure"; then 2595 2596 # If neither matched, then we have a broken ls. This can happen 2597 # if, for instance, CONFIG_SHELL is bash and it inherits a 2598 # broken ls alias from the environment. This has actually 2599 # happened. Such a system could not be considered "sane". 2600 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2601 alias in your environment" "$LINENO" 5 2602 fi 2603 if test "$2" = conftest.file || test $am_try -eq 2; then 2604 break 2605 fi 2606 # Just in case. 2607 sleep 1 2608 am_has_slept=yes 2609 done 2610 test "$2" = conftest.file 2611 ) 2612 then 2613 # Ok. 2614 : 2615 else 2616 as_fn_error $? "newly created file is older than distributed files! 2617 Check your system clock" "$LINENO" 5 2618 fi 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2620 $as_echo "yes" >&6; } 2621 # If we didn't sleep, we still need to ensure time stamps of config.status and 2622 # generated files are strictly newer. 2623 am_sleep_pid= 2624 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2625 ( sleep 1 ) & 2626 am_sleep_pid=$! 2627 fi 2628 2629 rm -f conftest.file 2630 2631 test "$program_prefix" != NONE && 2632 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2633 # Use a double $ so make ignores it. 2634 test "$program_suffix" != NONE && 2635 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2636 # Double any \ or $. 2637 # By default was `s,x,x', remove it if useless. 2638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2640 2641 # Expand $ac_aux_dir to an absolute path. 2642 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2643 2644 if test x"${MISSING+set}" != xset; then 2645 case $am_aux_dir in 2646 *\ * | *\ *) 2647 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2648 *) 2649 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2650 esac 2651 fi 2652 # Use eval to expand $SHELL 2653 if eval "$MISSING --is-lightweight"; then 2654 am_missing_run="$MISSING " 2655 else 2656 am_missing_run= 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2658 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2659 fi 2660 2661 if test x"${install_sh+set}" != xset; then 2662 case $am_aux_dir in 2663 *\ * | *\ *) 2664 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2665 *) 2666 install_sh="\${SHELL} $am_aux_dir/install-sh" 2667 esac 2668 fi 2669 2670 # Installed binaries are usually stripped using 'strip' when the user 2671 # run "make install-strip". However 'strip' might not be the right 2672 # tool to use in cross-compilation environments, therefore Automake 2673 # will honor the 'STRIP' environment variable to overrule this program. 2674 if test "$cross_compiling" != no; then 2675 if test -n "$ac_tool_prefix"; then 2676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2677 set dummy ${ac_tool_prefix}strip; ac_word=$2 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679 $as_echo_n "checking for $ac_word... " >&6; } 2680 if ${ac_cv_prog_STRIP+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682 else 2683 if test -n "$STRIP"; then 2684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2685 else 2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687 for as_dir in $PATH 2688 do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2693 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697 done 2698 done 2699 IFS=$as_save_IFS 2700 2701 fi 2702 fi 2703 STRIP=$ac_cv_prog_STRIP 2704 if test -n "$STRIP"; then 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2706 $as_echo "$STRIP" >&6; } 2707 else 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2709 $as_echo "no" >&6; } 2710 fi 2711 2712 2713 fi 2714 if test -z "$ac_cv_prog_STRIP"; then 2715 ac_ct_STRIP=$STRIP 2716 # Extract the first word of "strip", so it can be a program name with args. 2717 set dummy strip; ac_word=$2 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719 $as_echo_n "checking for $ac_word... " >&6; } 2720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722 else 2723 if test -n "$ac_ct_STRIP"; then 2724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2725 else 2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727 for as_dir in $PATH 2728 do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_ac_ct_STRIP="strip" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737 done 2738 done 2739 IFS=$as_save_IFS 2740 2741 fi 2742 fi 2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2744 if test -n "$ac_ct_STRIP"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2746 $as_echo "$ac_ct_STRIP" >&6; } 2747 else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749 $as_echo "no" >&6; } 2750 fi 2751 2752 if test "x$ac_ct_STRIP" = x; then 2753 STRIP=":" 2754 else 2755 case $cross_compiling:$ac_tool_warned in 2756 yes:) 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2759 ac_tool_warned=yes ;; 2760 esac 2761 STRIP=$ac_ct_STRIP 2762 fi 2763 else 2764 STRIP="$ac_cv_prog_STRIP" 2765 fi 2766 2767 fi 2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2769 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2772 if test -z "$MKDIR_P"; then 2773 if ${ac_cv_path_mkdir+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775 else 2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2778 do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_prog in mkdir gmkdir; do 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2784 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2785 'mkdir (GNU coreutils) '* | \ 2786 'mkdir (coreutils) '* | \ 2787 'mkdir (fileutils) '4.1*) 2788 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2789 break 3;; 2790 esac 2791 done 2792 done 2793 done 2794 IFS=$as_save_IFS 2795 2796 fi 2797 2798 test -d ./--version && rmdir ./--version 2799 if test "${ac_cv_path_mkdir+set}" = set; then 2800 MKDIR_P="$ac_cv_path_mkdir -p" 2801 else 2802 # As a last resort, use the slow shell script. Don't cache a 2803 # value for MKDIR_P within a source directory, because that will 2804 # break other packages using the cache if that directory is 2805 # removed, or if the value is a relative name. 2806 MKDIR_P="$ac_install_sh -d" 2807 fi 2808 fi 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2810 $as_echo "$MKDIR_P" >&6; } 2811 2812 for ac_prog in gawk mawk nawk awk 2813 do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815 set dummy $ac_prog; ac_word=$2 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817 $as_echo_n "checking for $ac_word... " >&6; } 2818 if ${ac_cv_prog_AWK+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820 else 2821 if test -n "$AWK"; then 2822 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2823 else 2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825 for as_dir in $PATH 2826 do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2831 ac_cv_prog_AWK="$ac_prog" 2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835 done 2836 done 2837 IFS=$as_save_IFS 2838 2839 fi 2840 fi 2841 AWK=$ac_cv_prog_AWK 2842 if test -n "$AWK"; then 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2844 $as_echo "$AWK" >&6; } 2845 else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847 $as_echo "no" >&6; } 2848 fi 2849 2850 2851 test -n "$AWK" && break 2852 done 2853 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2855 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2856 set x ${MAKE-make} 2857 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2858 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860 else 2861 cat >conftest.make <<\_ACEOF 2862 SHELL = /bin/sh 2863 all: 2864 @echo '@@@%%%=$(MAKE)=@@@%%%' 2865 _ACEOF 2866 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2867 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2868 *@@@%%%=?*=@@@%%%*) 2869 eval ac_cv_prog_make_${ac_make}_set=yes;; 2870 *) 2871 eval ac_cv_prog_make_${ac_make}_set=no;; 2872 esac 2873 rm -f conftest.make 2874 fi 2875 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2877 $as_echo "yes" >&6; } 2878 SET_MAKE= 2879 else 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2881 $as_echo "no" >&6; } 2882 SET_MAKE="MAKE=${MAKE-make}" 2883 fi 2884 2885 rm -rf .tst 2>/dev/null 2886 mkdir .tst 2>/dev/null 2887 if test -d .tst; then 2888 am__leading_dot=. 2889 else 2890 am__leading_dot=_ 2891 fi 2892 rmdir .tst 2>/dev/null 2893 2894 # Check whether --enable-silent-rules was given. 2895 if test "${enable_silent_rules+set}" = set; then : 2896 enableval=$enable_silent_rules; 2897 fi 2898 2899 case $enable_silent_rules in # ((( 2900 yes) AM_DEFAULT_VERBOSITY=0;; 2901 no) AM_DEFAULT_VERBOSITY=1;; 2902 *) AM_DEFAULT_VERBOSITY=1;; 2903 esac 2904 am_make=${MAKE-make} 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2906 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2907 if ${am_cv_make_support_nested_variables+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909 else 2910 if $as_echo 'TRUE=$(BAR$(V)) 2911 BAR0=false 2912 BAR1=true 2913 V=1 2914 am__doit: 2915 @$(TRUE) 2916 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2917 am_cv_make_support_nested_variables=yes 2918 else 2919 am_cv_make_support_nested_variables=no 2920 fi 2921 fi 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2923 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2924 if test $am_cv_make_support_nested_variables = yes; then 2925 AM_V='$(V)' 2926 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2927 else 2928 AM_V=$AM_DEFAULT_VERBOSITY 2929 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2930 fi 2931 AM_BACKSLASH='\' 2932 2933 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2934 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2935 # is not polluted with repeated "-I." 2936 am__isrc=' -I$(srcdir)' 2937 # test to see if srcdir already configured 2938 if test -f $srcdir/config.status; then 2939 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2940 fi 2941 fi 2942 2943 # test whether we have cygpath 2944 if test -z "$CYGPATH_W"; then 2945 if (cygpath --version) >/dev/null 2>/dev/null; then 2946 CYGPATH_W='cygpath -w' 2947 else 2948 CYGPATH_W=echo 2949 fi 2950 fi 2951 2952 2953 # Define the identity of the package. 2954 PACKAGE='opcodes' 2955 VERSION='2.46.0' 2956 2957 2958 cat >>confdefs.h <<_ACEOF 2959 #define PACKAGE "$PACKAGE" 2960 _ACEOF 2961 2962 2963 cat >>confdefs.h <<_ACEOF 2964 #define VERSION "$VERSION" 2965 _ACEOF 2966 2967 # Some tools Automake needs. 2968 2969 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2970 2971 2972 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2973 2974 2975 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2976 2977 2978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2979 2980 2981 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2982 2983 # For better backward compatibility. To be removed once Automake 1.9.x 2984 # dies out for good. For more background, see: 2985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2986 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2987 mkdir_p='$(MKDIR_P)' 2988 2989 # We need awk for the "check" target (and possibly the TAP driver). The 2990 # system "awk" is bad on some platforms. 2991 # Always define AMTAR for backward compatibility. Yes, it's still used 2992 # in the wild :-( We should find a proper way to deprecate it ... 2993 AMTAR='$${TAR-tar}' 2994 2995 2996 # We'll loop over all known methods to create a tar archive until one works. 2997 _am_tools='gnutar pax cpio none' 2998 2999 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3000 3001 3002 3003 3004 3005 3006 # POSIX will say in a future version that running "rm -f" with no argument 3007 # is OK; and we want to be able to make that assumption in our Makefile 3008 # recipes. So use an aggressive probe to check that the usage we want is 3009 # actually supported "in the wild" to an acceptable degree. 3010 # See automake bug#10828. 3011 # To make any issue more visible, cause the running configure to be aborted 3012 # by default if the 'rm' program in use doesn't match our expectations; the 3013 # user can still override this though. 3014 if rm -f && rm -fr && rm -rf; then : OK; else 3015 cat >&2 <<'END' 3016 Oops! 3017 3018 Your 'rm' program seems unable to run without file operands specified 3019 on the command line, even when the '-f' option is present. This is contrary 3020 to the behaviour of most rm programs out there, and not conforming with 3021 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3022 3023 Please tell bug-automake@gnu.org about your system, including the value 3024 of your $PATH and any error possibly output before this message. This 3025 can help us improve future automake versions. 3026 3027 END 3028 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3029 echo 'Configuration will proceed anyway, since you have set the' >&2 3030 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3031 echo >&2 3032 else 3033 cat >&2 <<'END' 3034 Aborting the configuration process, to ensure you take notice of the issue. 3035 3036 You can download and install GNU coreutils to get an 'rm' implementation 3037 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3038 3039 If you want to complete the configuration process using your problematic 3040 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3041 to "yes", and re-run configure. 3042 3043 END 3044 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3045 fi 3046 fi 3047 3048 # Check whether --enable-silent-rules was given. 3049 if test "${enable_silent_rules+set}" = set; then : 3050 enableval=$enable_silent_rules; 3051 fi 3052 3053 case $enable_silent_rules in # ((( 3054 yes) AM_DEFAULT_VERBOSITY=0;; 3055 no) AM_DEFAULT_VERBOSITY=1;; 3056 *) AM_DEFAULT_VERBOSITY=0;; 3057 esac 3058 am_make=${MAKE-make} 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3060 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3061 if ${am_cv_make_support_nested_variables+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063 else 3064 if $as_echo 'TRUE=$(BAR$(V)) 3065 BAR0=false 3066 BAR1=true 3067 V=1 3068 am__doit: 3069 @$(TRUE) 3070 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3071 am_cv_make_support_nested_variables=yes 3072 else 3073 am_cv_make_support_nested_variables=no 3074 fi 3075 fi 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3077 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3078 if test $am_cv_make_support_nested_variables = yes; then 3079 AM_V='$(V)' 3080 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3081 else 3082 AM_V=$AM_DEFAULT_VERBOSITY 3083 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3084 fi 3085 AM_BACKSLASH='\' 3086 3087 3088 ac_ext=c 3089 ac_cpp='$CPP $CPPFLAGS' 3090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3092 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3093 if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3095 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097 $as_echo_n "checking for $ac_word... " >&6; } 3098 if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100 else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103 else 3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105 for as_dir in $PATH 3106 do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115 done 3116 done 3117 IFS=$as_save_IFS 3118 3119 fi 3120 fi 3121 CC=$ac_cv_prog_CC 3122 if test -n "$CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3124 $as_echo "$CC" >&6; } 3125 else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127 $as_echo "no" >&6; } 3128 fi 3129 3130 3131 fi 3132 if test -z "$ac_cv_prog_CC"; then 3133 ac_ct_CC=$CC 3134 # Extract the first word of "gcc", so it can be a program name with args. 3135 set dummy gcc; ac_word=$2 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137 $as_echo_n "checking for $ac_word... " >&6; } 3138 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140 else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143 else 3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145 for as_dir in $PATH 3146 do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_CC="gcc" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155 done 3156 done 3157 IFS=$as_save_IFS 3158 3159 fi 3160 fi 3161 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162 if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164 $as_echo "$ac_ct_CC" >&6; } 3165 else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167 $as_echo "no" >&6; } 3168 fi 3169 3170 if test "x$ac_ct_CC" = x; then 3171 CC="" 3172 else 3173 case $cross_compiling:$ac_tool_warned in 3174 yes:) 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3177 ac_tool_warned=yes ;; 3178 esac 3179 CC=$ac_ct_CC 3180 fi 3181 else 3182 CC="$ac_cv_prog_CC" 3183 fi 3184 3185 if test -z "$CC"; then 3186 if test -n "$ac_tool_prefix"; then 3187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3188 set dummy ${ac_tool_prefix}cc; ac_word=$2 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190 $as_echo_n "checking for $ac_word... " >&6; } 3191 if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193 else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196 else 3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198 for as_dir in $PATH 3199 do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_CC="${ac_tool_prefix}cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208 done 3209 done 3210 IFS=$as_save_IFS 3211 3212 fi 3213 fi 3214 CC=$ac_cv_prog_CC 3215 if test -n "$CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3217 $as_echo "$CC" >&6; } 3218 else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220 $as_echo "no" >&6; } 3221 fi 3222 3223 3224 fi 3225 fi 3226 if test -z "$CC"; then 3227 # Extract the first word of "cc", so it can be a program name with args. 3228 set dummy cc; ac_word=$2 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3230 $as_echo_n "checking for $ac_word... " >&6; } 3231 if ${ac_cv_prog_CC+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233 else 3234 if test -n "$CC"; then 3235 ac_cv_prog_CC="$CC" # Let the user override the test. 3236 else 3237 ac_prog_rejected=no 3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239 for as_dir in $PATH 3240 do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3246 ac_prog_rejected=yes 3247 continue 3248 fi 3249 ac_cv_prog_CC="cc" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253 done 3254 done 3255 IFS=$as_save_IFS 3256 3257 if test $ac_prog_rejected = yes; then 3258 # We found a bogon in the path, so make sure we never use it. 3259 set dummy $ac_cv_prog_CC 3260 shift 3261 if test $# != 0; then 3262 # We chose a different compiler from the bogus one. 3263 # However, it has the same basename, so the bogon will be chosen 3264 # first if we set CC to just the basename; use the full file name. 3265 shift 3266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3267 fi 3268 fi 3269 fi 3270 fi 3271 CC=$ac_cv_prog_CC 3272 if test -n "$CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3274 $as_echo "$CC" >&6; } 3275 else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277 $as_echo "no" >&6; } 3278 fi 3279 3280 3281 fi 3282 if test -z "$CC"; then 3283 if test -n "$ac_tool_prefix"; then 3284 for ac_prog in cl.exe 3285 do 3286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289 $as_echo_n "checking for $ac_word... " >&6; } 3290 if ${ac_cv_prog_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292 else 3293 if test -n "$CC"; then 3294 ac_cv_prog_CC="$CC" # Let the user override the test. 3295 else 3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297 for as_dir in $PATH 3298 do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307 done 3308 done 3309 IFS=$as_save_IFS 3310 3311 fi 3312 fi 3313 CC=$ac_cv_prog_CC 3314 if test -n "$CC"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3316 $as_echo "$CC" >&6; } 3317 else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319 $as_echo "no" >&6; } 3320 fi 3321 3322 3323 test -n "$CC" && break 3324 done 3325 fi 3326 if test -z "$CC"; then 3327 ac_ct_CC=$CC 3328 for ac_prog in cl.exe 3329 do 3330 # Extract the first word of "$ac_prog", so it can be a program name with args. 3331 set dummy $ac_prog; ac_word=$2 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333 $as_echo_n "checking for $ac_word... " >&6; } 3334 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336 else 3337 if test -n "$ac_ct_CC"; then 3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3339 else 3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341 for as_dir in $PATH 3342 do 3343 IFS=$as_save_IFS 3344 test -z "$as_dir" && as_dir=. 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_ac_ct_CC="$ac_prog" 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351 done 3352 done 3353 IFS=$as_save_IFS 3354 3355 fi 3356 fi 3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3358 if test -n "$ac_ct_CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3360 $as_echo "$ac_ct_CC" >&6; } 3361 else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363 $as_echo "no" >&6; } 3364 fi 3365 3366 3367 test -n "$ac_ct_CC" && break 3368 done 3369 3370 if test "x$ac_ct_CC" = x; then 3371 CC="" 3372 else 3373 case $cross_compiling:$ac_tool_warned in 3374 yes:) 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3377 ac_tool_warned=yes ;; 3378 esac 3379 CC=$ac_ct_CC 3380 fi 3381 fi 3382 3383 fi 3384 3385 3386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3388 as_fn_error $? "no acceptable C compiler found in \$PATH 3389 See \`config.log' for more details" "$LINENO" 5; } 3390 3391 # Provide some information about the compiler. 3392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3393 set X $ac_compile 3394 ac_compiler=$2 3395 for ac_option in --version -v -V -qversion; do 3396 { { ac_try="$ac_compiler $ac_option >&5" 3397 case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400 esac 3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402 $as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3404 ac_status=$? 3405 if test -s conftest.err; then 3406 sed '10a\ 3407 ... rest of stderr output deleted ... 3408 10q' conftest.err >conftest.er1 3409 cat conftest.er1 >&5 3410 fi 3411 rm -f conftest.er1 conftest.err 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; } 3414 done 3415 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417 /* end confdefs.h. */ 3418 3419 int 3420 main () 3421 { 3422 3423 ; 3424 return 0; 3425 } 3426 _ACEOF 3427 ac_clean_files_save=$ac_clean_files 3428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3429 # Try to create an executable without -o first, disregard a.out. 3430 # It will help us diagnose broken compilers, and finding out an intuition 3431 # of exeext. 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3433 $as_echo_n "checking whether the C compiler works... " >&6; } 3434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3435 3436 # The possible output files: 3437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3438 3439 ac_rmfiles= 3440 for ac_file in $ac_files 3441 do 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3444 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3445 esac 3446 done 3447 rm -f $ac_rmfiles 3448 3449 if { { ac_try="$ac_link_default" 3450 case "(($ac_try" in 3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3452 *) ac_try_echo=$ac_try;; 3453 esac 3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3455 $as_echo "$ac_try_echo"; } >&5 3456 (eval "$ac_link_default") 2>&5 3457 ac_status=$? 3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3459 test $ac_status = 0; }; then : 3460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3462 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3463 # so that the user can short-circuit this test for compilers unknown to 3464 # Autoconf. 3465 for ac_file in $ac_files '' 3466 do 3467 test -f "$ac_file" || continue 3468 case $ac_file in 3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3470 ;; 3471 [ab].out ) 3472 # We found the default executable, but exeext='' is most 3473 # certainly right. 3474 break;; 3475 *.* ) 3476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3477 then :; else 3478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3479 fi 3480 # We set ac_cv_exeext here because the later test for it is not 3481 # safe: cross compilers may not add the suffix if given an `-o' 3482 # argument, so we may need to know it at that point already. 3483 # Even if this section looks crufty: it has the advantage of 3484 # actually working. 3485 break;; 3486 * ) 3487 break;; 3488 esac 3489 done 3490 test "$ac_cv_exeext" = no && ac_cv_exeext= 3491 3492 else 3493 ac_file='' 3494 fi 3495 if test -z "$ac_file"; then : 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497 $as_echo "no" >&6; } 3498 $as_echo "$as_me: failed program was:" >&5 3499 sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3503 as_fn_error 77 "C compiler cannot create executables 3504 See \`config.log' for more details" "$LINENO" 5; } 3505 else 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3507 $as_echo "yes" >&6; } 3508 fi 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3510 $as_echo_n "checking for C compiler default output file name... " >&6; } 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3512 $as_echo "$ac_file" >&6; } 3513 ac_exeext=$ac_cv_exeext 3514 3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3516 ac_clean_files=$ac_clean_files_save 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518 $as_echo_n "checking for suffix of executables... " >&6; } 3519 if { { ac_try="$ac_link" 3520 case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523 esac 3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525 $as_echo "$ac_try_echo"; } >&5 3526 (eval "$ac_link") 2>&5 3527 ac_status=$? 3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 test $ac_status = 0; }; then : 3530 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532 # work properly (i.e., refer to `conftest.exe'), while it won't with 3533 # `rm'. 3534 for ac_file in conftest.exe conftest conftest.*; do 3535 test -f "$ac_file" || continue 3536 case $ac_file in 3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539 break;; 3540 * ) break;; 3541 esac 3542 done 3543 else 3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3547 See \`config.log' for more details" "$LINENO" 5; } 3548 fi 3549 rm -f conftest conftest$ac_cv_exeext 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3551 $as_echo "$ac_cv_exeext" >&6; } 3552 3553 rm -f conftest.$ac_ext 3554 EXEEXT=$ac_cv_exeext 3555 ac_exeext=$EXEEXT 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557 /* end confdefs.h. */ 3558 #include <stdio.h> 3559 int 3560 main () 3561 { 3562 FILE *f = fopen ("conftest.out", "w"); 3563 return ferror (f) || fclose (f) != 0; 3564 3565 ; 3566 return 0; 3567 } 3568 _ACEOF 3569 ac_clean_files="$ac_clean_files conftest.out" 3570 # Check that the compiler produces executables we can run. If not, either 3571 # the compiler is broken, or we cross compile. 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3573 $as_echo_n "checking whether we are cross compiling... " >&6; } 3574 if test "$cross_compiling" != yes; then 3575 { { ac_try="$ac_link" 3576 case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579 esac 3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3581 $as_echo "$ac_try_echo"; } >&5 3582 (eval "$ac_link") 2>&5 3583 ac_status=$? 3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3585 test $ac_status = 0; } 3586 if { ac_try='./conftest$ac_cv_exeext' 3587 { { case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590 esac 3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592 $as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_try") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; }; then 3597 cross_compiling=no 3598 else 3599 if test "$cross_compiling" = maybe; then 3600 cross_compiling=yes 3601 else 3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3604 as_fn_error $? "cannot run C compiled programs. 3605 If you meant to cross compile, use \`--host'. 3606 See \`config.log' for more details" "$LINENO" 5; } 3607 fi 3608 fi 3609 fi 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3611 $as_echo "$cross_compiling" >&6; } 3612 3613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3614 ac_clean_files=$ac_clean_files_save 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3616 $as_echo_n "checking for suffix of object files... " >&6; } 3617 if ${ac_cv_objext+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619 else 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621 /* end confdefs.h. */ 3622 3623 int 3624 main () 3625 { 3626 3627 ; 3628 return 0; 3629 } 3630 _ACEOF 3631 rm -f conftest.o conftest.obj 3632 if { { ac_try="$ac_compile" 3633 case "(($ac_try" in 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3635 *) ac_try_echo=$ac_try;; 3636 esac 3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3638 $as_echo "$ac_try_echo"; } >&5 3639 (eval "$ac_compile") 2>&5 3640 ac_status=$? 3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3642 test $ac_status = 0; }; then : 3643 for ac_file in conftest.o conftest.obj conftest.*; do 3644 test -f "$ac_file" || continue; 3645 case $ac_file in 3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3648 break;; 3649 esac 3650 done 3651 else 3652 $as_echo "$as_me: failed program was:" >&5 3653 sed 's/^/| /' conftest.$ac_ext >&5 3654 3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3657 as_fn_error $? "cannot compute suffix of object files: cannot compile 3658 See \`config.log' for more details" "$LINENO" 5; } 3659 fi 3660 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3661 fi 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3663 $as_echo "$ac_cv_objext" >&6; } 3664 OBJEXT=$ac_cv_objext 3665 ac_objext=$OBJEXT 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3668 if ${ac_cv_c_compiler_gnu+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670 else 3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672 /* end confdefs.h. */ 3673 3674 int 3675 main () 3676 { 3677 #ifndef __GNUC__ 3678 choke me 3679 #endif 3680 3681 ; 3682 return 0; 3683 } 3684 _ACEOF 3685 if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_compiler_gnu=yes 3687 else 3688 ac_compiler_gnu=no 3689 fi 3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3692 3693 fi 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3696 if test $ac_compiler_gnu = yes; then 3697 GCC=yes 3698 else 3699 GCC= 3700 fi 3701 ac_test_CFLAGS=${CFLAGS+set} 3702 ac_save_CFLAGS=$CFLAGS 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3704 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3705 if ${ac_cv_prog_cc_g+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707 else 3708 ac_save_c_werror_flag=$ac_c_werror_flag 3709 ac_c_werror_flag=yes 3710 ac_cv_prog_cc_g=no 3711 CFLAGS="-g" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713 /* end confdefs.h. */ 3714 3715 int 3716 main () 3717 { 3718 3719 ; 3720 return 0; 3721 } 3722 _ACEOF 3723 if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_cv_prog_cc_g=yes 3725 else 3726 CFLAGS="" 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728 /* end confdefs.h. */ 3729 3730 int 3731 main () 3732 { 3733 3734 ; 3735 return 0; 3736 } 3737 _ACEOF 3738 if ac_fn_c_try_compile "$LINENO"; then : 3739 3740 else 3741 ac_c_werror_flag=$ac_save_c_werror_flag 3742 CFLAGS="-g" 3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744 /* end confdefs.h. */ 3745 3746 int 3747 main () 3748 { 3749 3750 ; 3751 return 0; 3752 } 3753 _ACEOF 3754 if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_cv_prog_cc_g=yes 3756 fi 3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3758 fi 3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760 fi 3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3762 ac_c_werror_flag=$ac_save_c_werror_flag 3763 fi 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3765 $as_echo "$ac_cv_prog_cc_g" >&6; } 3766 if test "$ac_test_CFLAGS" = set; then 3767 CFLAGS=$ac_save_CFLAGS 3768 elif test $ac_cv_prog_cc_g = yes; then 3769 if test "$GCC" = yes; then 3770 CFLAGS="-g -O2" 3771 else 3772 CFLAGS="-g" 3773 fi 3774 else 3775 if test "$GCC" = yes; then 3776 CFLAGS="-O2" 3777 else 3778 CFLAGS= 3779 fi 3780 fi 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3783 if ${ac_cv_prog_cc_c89+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785 else 3786 ac_cv_prog_cc_c89=no 3787 ac_save_CC=$CC 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789 /* end confdefs.h. */ 3790 #include <stdarg.h> 3791 #include <stdio.h> 3792 struct stat; 3793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3794 struct buf { int x; }; 3795 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3796 static char *e (p, i) 3797 char **p; 3798 int i; 3799 { 3800 return p[i]; 3801 } 3802 static char *f (char * (*g) (char **, int), char **p, ...) 3803 { 3804 char *s; 3805 va_list v; 3806 va_start (v,p); 3807 s = g (p, va_arg (v,int)); 3808 va_end (v); 3809 return s; 3810 } 3811 3812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3813 function prototypes and stuff, but not '\xHH' hex character constants. 3814 These don't provoke an error unfortunately, instead are silently treated 3815 as 'x'. The following induces an error, until -std is added to get 3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3817 array size at least. It's necessary to write '\x00'==0 to get something 3818 that's true only with -std. */ 3819 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3820 3821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3822 inside strings and character constants. */ 3823 #define FOO(x) 'x' 3824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3825 3826 int test (int i, double x); 3827 struct s1 {int (*f) (int a);}; 3828 struct s2 {int (*f) (double a);}; 3829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3830 int argc; 3831 char **argv; 3832 int 3833 main () 3834 { 3835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3836 ; 3837 return 0; 3838 } 3839 _ACEOF 3840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3842 do 3843 CC="$ac_save_CC $ac_arg" 3844 if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_cv_prog_cc_c89=$ac_arg 3846 fi 3847 rm -f core conftest.err conftest.$ac_objext 3848 test "x$ac_cv_prog_cc_c89" != "xno" && break 3849 done 3850 rm -f conftest.$ac_ext 3851 CC=$ac_save_CC 3852 3853 fi 3854 # AC_CACHE_VAL 3855 case "x$ac_cv_prog_cc_c89" in 3856 x) 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3858 $as_echo "none needed" >&6; } ;; 3859 xno) 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3861 $as_echo "unsupported" >&6; } ;; 3862 *) 3863 CC="$CC $ac_cv_prog_cc_c89" 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3866 esac 3867 if test "x$ac_cv_prog_cc_c89" != xno; then : 3868 3869 fi 3870 3871 ac_ext=c 3872 ac_cpp='$CPP $CPPFLAGS' 3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3876 3877 ac_ext=c 3878 ac_cpp='$CPP $CPPFLAGS' 3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3884 if ${am_cv_prog_cc_c_o+:} false; then : 3885 $as_echo_n "(cached) " >&6 3886 else 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888 /* end confdefs.h. */ 3889 3890 int 3891 main () 3892 { 3893 3894 ; 3895 return 0; 3896 } 3897 _ACEOF 3898 # Make sure it works both with $CC and with simple cc. 3899 # Following AC_PROG_CC_C_O, we do the test twice because some 3900 # compilers refuse to overwrite an existing .o file with -o, 3901 # though they will create one. 3902 am_cv_prog_cc_c_o=yes 3903 for am_i in 1 2; do 3904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3906 ac_status=$? 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } \ 3909 && test -f conftest2.$ac_objext; then 3910 : OK 3911 else 3912 am_cv_prog_cc_c_o=no 3913 break 3914 fi 3915 done 3916 rm -f core conftest* 3917 unset am_i 3918 fi 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3920 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3921 if test "$am_cv_prog_cc_c_o" != yes; then 3922 # Losing compiler, so override with the script. 3923 # FIXME: It is wrong to rewrite CC. 3924 # But if we don't then we get into trouble of one sort or another. 3925 # A longer-term fix would be to have automake use am__CC in this case, 3926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3927 CC="$am_aux_dir/compile $CC" 3928 fi 3929 ac_ext=c 3930 ac_cpp='$CPP $CPPFLAGS' 3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934 3935 DEPDIR="${am__leading_dot}deps" 3936 3937 ac_config_commands="$ac_config_commands depfiles" 3938 3939 3940 am_make=${MAKE-make} 3941 cat > confinc << 'END' 3942 am__doit: 3943 @echo this is the am__doit target 3944 .PHONY: am__doit 3945 END 3946 # If we don't find an include directive, just comment out the code. 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3948 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3949 am__include="#" 3950 am__quote= 3951 _am_result=none 3952 # First try GNU make style include. 3953 echo "include confinc" > confmf 3954 # Ignore all kinds of additional output from 'make'. 3955 case `$am_make -s -f confmf 2> /dev/null` in #( 3956 *the\ am__doit\ target*) 3957 am__include=include 3958 am__quote= 3959 _am_result=GNU 3960 ;; 3961 esac 3962 # Now try BSD make style include. 3963 if test "$am__include" = "#"; then 3964 echo '.include "confinc"' > confmf 3965 case `$am_make -s -f confmf 2> /dev/null` in #( 3966 *the\ am__doit\ target*) 3967 am__include=.include 3968 am__quote="\"" 3969 _am_result=BSD 3970 ;; 3971 esac 3972 fi 3973 3974 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3976 $as_echo "$_am_result" >&6; } 3977 rm -f confinc confmf 3978 3979 # Check whether --enable-dependency-tracking was given. 3980 if test "${enable_dependency_tracking+set}" = set; then : 3981 enableval=$enable_dependency_tracking; 3982 fi 3983 3984 if test "x$enable_dependency_tracking" != xno; then 3985 am_depcomp="$ac_aux_dir/depcomp" 3986 AMDEPBACKSLASH='\' 3987 am__nodep='_no' 3988 fi 3989 if test "x$enable_dependency_tracking" != xno; then 3990 AMDEP_TRUE= 3991 AMDEP_FALSE='#' 3992 else 3993 AMDEP_TRUE='#' 3994 AMDEP_FALSE= 3995 fi 3996 3997 3998 3999 depcc="$CC" am_compiler_list= 4000 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4002 $as_echo_n "checking dependency style of $depcc... " >&6; } 4003 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4004 $as_echo_n "(cached) " >&6 4005 else 4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4007 # We make a subdir and do the tests there. Otherwise we can end up 4008 # making bogus files that we don't know about and never remove. For 4009 # instance it was reported that on HP-UX the gcc test will end up 4010 # making a dummy file named 'D' -- because '-MD' means "put the output 4011 # in D". 4012 rm -rf conftest.dir 4013 mkdir conftest.dir 4014 # Copy depcomp to subdir because otherwise we won't find it if we're 4015 # using a relative directory. 4016 cp "$am_depcomp" conftest.dir 4017 cd conftest.dir 4018 # We will build objects and dependencies in a subdirectory because 4019 # it helps to detect inapplicable dependency modes. For instance 4020 # both Tru64's cc and ICC support -MD to output dependencies as a 4021 # side effect of compilation, but ICC will put the dependencies in 4022 # the current directory while Tru64 will put them in the object 4023 # directory. 4024 mkdir sub 4025 4026 am_cv_CC_dependencies_compiler_type=none 4027 if test "$am_compiler_list" = ""; then 4028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4029 fi 4030 am__universal=false 4031 case " $depcc " in #( 4032 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4033 esac 4034 4035 for depmode in $am_compiler_list; do 4036 # Setup a source with many dependencies, because some compilers 4037 # like to wrap large dependency lists on column 80 (with \), and 4038 # we should not choose a depcomp mode which is confused by this. 4039 # 4040 # We need to recreate these files for each test, as the compiler may 4041 # overwrite some of them when testing with obscure command lines. 4042 # This happens at least with the AIX C compiler. 4043 : > sub/conftest.c 4044 for i in 1 2 3 4 5 6; do 4045 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4046 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4047 # Solaris 10 /bin/sh. 4048 echo '/* dummy */' > sub/conftst$i.h 4049 done 4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4051 4052 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4053 # mode. It turns out that the SunPro C++ compiler does not properly 4054 # handle '-M -o', and we need to detect this. Also, some Intel 4055 # versions had trouble with output in subdirs. 4056 am__obj=sub/conftest.${OBJEXT-o} 4057 am__minus_obj="-o $am__obj" 4058 case $depmode in 4059 gcc) 4060 # This depmode causes a compiler race in universal mode. 4061 test "$am__universal" = false || continue 4062 ;; 4063 nosideeffect) 4064 # After this tag, mechanisms are not by side-effect, so they'll 4065 # only be used when explicitly requested. 4066 if test "x$enable_dependency_tracking" = xyes; then 4067 continue 4068 else 4069 break 4070 fi 4071 ;; 4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4073 # This compiler won't grok '-c -o', but also, the minuso test has 4074 # not run yet. These depmodes are late enough in the game, and 4075 # so weak that their functioning should not be impacted. 4076 am__obj=conftest.${OBJEXT-o} 4077 am__minus_obj= 4078 ;; 4079 none) break ;; 4080 esac 4081 if depmode=$depmode \ 4082 source=sub/conftest.c object=$am__obj \ 4083 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4084 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4085 >/dev/null 2>conftest.err && 4086 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4087 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4088 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4089 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4090 # icc doesn't choke on unknown options, it will just issue warnings 4091 # or remarks (even with -Werror). So we grep stderr for any message 4092 # that says an option was ignored or not supported. 4093 # When given -MP, icc 7.0 and 7.1 complain thusly: 4094 # icc: Command line warning: ignoring option '-M'; no argument required 4095 # The diagnosis changed in icc 8.0: 4096 # icc: Command line remark: option '-MP' not supported 4097 if (grep 'ignoring option' conftest.err || 4098 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4099 am_cv_CC_dependencies_compiler_type=$depmode 4100 break 4101 fi 4102 fi 4103 done 4104 4105 cd .. 4106 rm -rf conftest.dir 4107 else 4108 am_cv_CC_dependencies_compiler_type=none 4109 fi 4110 4111 fi 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4113 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4114 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4115 4116 if 4117 test "x$enable_dependency_tracking" != xno \ 4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4119 am__fastdepCC_TRUE= 4120 am__fastdepCC_FALSE='#' 4121 else 4122 am__fastdepCC_TRUE='#' 4123 am__fastdepCC_FALSE= 4124 fi 4125 4126 4127 4128 ac_ext=c 4129 ac_cpp='$CPP $CPPFLAGS' 4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4134 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4135 # On Suns, sometimes $CPP names a directory. 4136 if test -n "$CPP" && test -d "$CPP"; then 4137 CPP= 4138 fi 4139 if test -z "$CPP"; then 4140 if ${ac_cv_prog_CPP+:} false; then : 4141 $as_echo_n "(cached) " >&6 4142 else 4143 # Double quotes because CPP needs to be expanded 4144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4145 do 4146 ac_preproc_ok=false 4147 for ac_c_preproc_warn_flag in '' yes 4148 do 4149 # Use a header file that comes with gcc, so configuring glibc 4150 # with a fresh cross-compiler works. 4151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4152 # <limits.h> exists even on freestanding compilers. 4153 # On the NeXT, cc -E runs the code through the compiler's parser, 4154 # not just through cpp. "Syntax error" is here to catch this case. 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156 /* end confdefs.h. */ 4157 #ifdef __STDC__ 4158 # include <limits.h> 4159 #else 4160 # include <assert.h> 4161 #endif 4162 Syntax error 4163 _ACEOF 4164 if ac_fn_c_try_cpp "$LINENO"; then : 4165 4166 else 4167 # Broken: fails on valid input. 4168 continue 4169 fi 4170 rm -f conftest.err conftest.i conftest.$ac_ext 4171 4172 # OK, works on sane cases. Now check whether nonexistent headers 4173 # can be detected and how. 4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175 /* end confdefs.h. */ 4176 #include <ac_nonexistent.h> 4177 _ACEOF 4178 if ac_fn_c_try_cpp "$LINENO"; then : 4179 # Broken: success on invalid input. 4180 continue 4181 else 4182 # Passes both tests. 4183 ac_preproc_ok=: 4184 break 4185 fi 4186 rm -f conftest.err conftest.i conftest.$ac_ext 4187 4188 done 4189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4190 rm -f conftest.i conftest.err conftest.$ac_ext 4191 if $ac_preproc_ok; then : 4192 break 4193 fi 4194 4195 done 4196 ac_cv_prog_CPP=$CPP 4197 4198 fi 4199 CPP=$ac_cv_prog_CPP 4200 else 4201 ac_cv_prog_CPP=$CPP 4202 fi 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4204 $as_echo "$CPP" >&6; } 4205 ac_preproc_ok=false 4206 for ac_c_preproc_warn_flag in '' yes 4207 do 4208 # Use a header file that comes with gcc, so configuring glibc 4209 # with a fresh cross-compiler works. 4210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4211 # <limits.h> exists even on freestanding compilers. 4212 # On the NeXT, cc -E runs the code through the compiler's parser, 4213 # not just through cpp. "Syntax error" is here to catch this case. 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215 /* end confdefs.h. */ 4216 #ifdef __STDC__ 4217 # include <limits.h> 4218 #else 4219 # include <assert.h> 4220 #endif 4221 Syntax error 4222 _ACEOF 4223 if ac_fn_c_try_cpp "$LINENO"; then : 4224 4225 else 4226 # Broken: fails on valid input. 4227 continue 4228 fi 4229 rm -f conftest.err conftest.i conftest.$ac_ext 4230 4231 # OK, works on sane cases. Now check whether nonexistent headers 4232 # can be detected and how. 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234 /* end confdefs.h. */ 4235 #include <ac_nonexistent.h> 4236 _ACEOF 4237 if ac_fn_c_try_cpp "$LINENO"; then : 4238 # Broken: success on invalid input. 4239 continue 4240 else 4241 # Passes both tests. 4242 ac_preproc_ok=: 4243 break 4244 fi 4245 rm -f conftest.err conftest.i conftest.$ac_ext 4246 4247 done 4248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4249 rm -f conftest.i conftest.err conftest.$ac_ext 4250 if $ac_preproc_ok; then : 4251 4252 else 4253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4255 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4256 See \`config.log' for more details" "$LINENO" 5; } 4257 fi 4258 4259 ac_ext=c 4260 ac_cpp='$CPP $CPPFLAGS' 4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4264 4265 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4268 if ${ac_cv_path_GREP+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270 else 4271 if test -z "$GREP"; then 4272 ac_path_GREP_found=false 4273 # Loop through the user's path and test for each of PROGNAME-LIST 4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4276 do 4277 IFS=$as_save_IFS 4278 test -z "$as_dir" && as_dir=. 4279 for ac_prog in grep ggrep; do 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4282 as_fn_executable_p "$ac_path_GREP" || continue 4283 # Check for GNU ac_path_GREP and select it if it is found. 4284 # Check for GNU $ac_path_GREP 4285 case `"$ac_path_GREP" --version 2>&1` in 4286 *GNU*) 4287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4288 *) 4289 ac_count=0 4290 $as_echo_n 0123456789 >"conftest.in" 4291 while : 4292 do 4293 cat "conftest.in" "conftest.in" >"conftest.tmp" 4294 mv "conftest.tmp" "conftest.in" 4295 cp "conftest.in" "conftest.nl" 4296 $as_echo 'GREP' >> "conftest.nl" 4297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4299 as_fn_arith $ac_count + 1 && ac_count=$as_val 4300 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4301 # Best one so far, save it but keep looking for a better one 4302 ac_cv_path_GREP="$ac_path_GREP" 4303 ac_path_GREP_max=$ac_count 4304 fi 4305 # 10*(2^10) chars as input seems more than enough 4306 test $ac_count -gt 10 && break 4307 done 4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4309 esac 4310 4311 $ac_path_GREP_found && break 3 4312 done 4313 done 4314 done 4315 IFS=$as_save_IFS 4316 if test -z "$ac_cv_path_GREP"; then 4317 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4318 fi 4319 else 4320 ac_cv_path_GREP=$GREP 4321 fi 4322 4323 fi 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4325 $as_echo "$ac_cv_path_GREP" >&6; } 4326 GREP="$ac_cv_path_GREP" 4327 4328 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4330 $as_echo_n "checking for egrep... " >&6; } 4331 if ${ac_cv_path_EGREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333 else 4334 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4335 then ac_cv_path_EGREP="$GREP -E" 4336 else 4337 if test -z "$EGREP"; then 4338 ac_path_EGREP_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4342 do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in egrep; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4348 as_fn_executable_p "$ac_path_EGREP" || continue 4349 # Check for GNU ac_path_EGREP and select it if it is found. 4350 # Check for GNU $ac_path_EGREP 4351 case `"$ac_path_EGREP" --version 2>&1` in 4352 *GNU*) 4353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4354 *) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo 'EGREP' >> "conftest.nl" 4363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 as_fn_arith $ac_count + 1 && ac_count=$as_val 4366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_EGREP="$ac_path_EGREP" 4369 ac_path_EGREP_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375 esac 4376 4377 $ac_path_EGREP_found && break 3 4378 done 4379 done 4380 done 4381 IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_EGREP"; then 4383 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4384 fi 4385 else 4386 ac_cv_path_EGREP=$EGREP 4387 fi 4388 4389 fi 4390 fi 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4392 $as_echo "$ac_cv_path_EGREP" >&6; } 4393 EGREP="$ac_cv_path_EGREP" 4394 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4397 $as_echo_n "checking for ANSI C header files... " >&6; } 4398 if ${ac_cv_header_stdc+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400 else 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402 /* end confdefs.h. */ 4403 #include <stdlib.h> 4404 #include <stdarg.h> 4405 #include <string.h> 4406 #include <float.h> 4407 4408 int 4409 main () 4410 { 4411 4412 ; 4413 return 0; 4414 } 4415 _ACEOF 4416 if ac_fn_c_try_compile "$LINENO"; then : 4417 ac_cv_header_stdc=yes 4418 else 4419 ac_cv_header_stdc=no 4420 fi 4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4422 4423 if test $ac_cv_header_stdc = yes; then 4424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426 /* end confdefs.h. */ 4427 #include <string.h> 4428 4429 _ACEOF 4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4431 $EGREP "memchr" >/dev/null 2>&1; then : 4432 4433 else 4434 ac_cv_header_stdc=no 4435 fi 4436 rm -f conftest* 4437 4438 fi 4439 4440 if test $ac_cv_header_stdc = yes; then 4441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4443 /* end confdefs.h. */ 4444 #include <stdlib.h> 4445 4446 _ACEOF 4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4448 $EGREP "free" >/dev/null 2>&1; then : 4449 4450 else 4451 ac_cv_header_stdc=no 4452 fi 4453 rm -f conftest* 4454 4455 fi 4456 4457 if test $ac_cv_header_stdc = yes; then 4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4459 if test "$cross_compiling" = yes; then : 4460 : 4461 else 4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463 /* end confdefs.h. */ 4464 #include <ctype.h> 4465 #include <stdlib.h> 4466 #if ((' ' & 0x0FF) == 0x020) 4467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4469 #else 4470 # define ISLOWER(c) \ 4471 (('a' <= (c) && (c) <= 'i') \ 4472 || ('j' <= (c) && (c) <= 'r') \ 4473 || ('s' <= (c) && (c) <= 'z')) 4474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4475 #endif 4476 4477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4478 int 4479 main () 4480 { 4481 int i; 4482 for (i = 0; i < 256; i++) 4483 if (XOR (islower (i), ISLOWER (i)) 4484 || toupper (i) != TOUPPER (i)) 4485 return 2; 4486 return 0; 4487 } 4488 _ACEOF 4489 if ac_fn_c_try_run "$LINENO"; then : 4490 4491 else 4492 ac_cv_header_stdc=no 4493 fi 4494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4495 conftest.$ac_objext conftest.beam conftest.$ac_ext 4496 fi 4497 4498 fi 4499 fi 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4501 $as_echo "$ac_cv_header_stdc" >&6; } 4502 if test $ac_cv_header_stdc = yes; then 4503 4504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4505 4506 fi 4507 4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4510 inttypes.h stdint.h unistd.h 4511 do : 4512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4513 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4514 " 4515 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4516 cat >>confdefs.h <<_ACEOF 4517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4518 _ACEOF 4519 4520 fi 4521 4522 done 4523 4524 4525 4526 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4527 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4528 MINIX=yes 4529 else 4530 MINIX= 4531 fi 4532 4533 4534 if test "$MINIX" = yes; then 4535 4536 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4537 4538 4539 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4540 4541 4542 $as_echo "#define _MINIX 1" >>confdefs.h 4543 4544 fi 4545 4546 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4548 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4549 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551 else 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553 /* end confdefs.h. */ 4554 4555 # define __EXTENSIONS__ 1 4556 $ac_includes_default 4557 int 4558 main () 4559 { 4560 4561 ; 4562 return 0; 4563 } 4564 _ACEOF 4565 if ac_fn_c_try_compile "$LINENO"; then : 4566 ac_cv_safe_to_define___extensions__=yes 4567 else 4568 ac_cv_safe_to_define___extensions__=no 4569 fi 4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4571 fi 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4573 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4574 test $ac_cv_safe_to_define___extensions__ = yes && 4575 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4576 4577 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4578 4579 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4580 4581 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4582 4583 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4584 4585 4586 4587 if test -n "$ac_tool_prefix"; then 4588 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4589 set dummy ${ac_tool_prefix}ar; ac_word=$2 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4591 $as_echo_n "checking for $ac_word... " >&6; } 4592 if ${ac_cv_prog_AR+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594 else 4595 if test -n "$AR"; then 4596 ac_cv_prog_AR="$AR" # Let the user override the test. 4597 else 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599 for as_dir in $PATH 4600 do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4605 ac_cv_prog_AR="${ac_tool_prefix}ar" 4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609 done 4610 done 4611 IFS=$as_save_IFS 4612 4613 fi 4614 fi 4615 AR=$ac_cv_prog_AR 4616 if test -n "$AR"; then 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4618 $as_echo "$AR" >&6; } 4619 else 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4621 $as_echo "no" >&6; } 4622 fi 4623 4624 4625 fi 4626 if test -z "$ac_cv_prog_AR"; then 4627 ac_ct_AR=$AR 4628 # Extract the first word of "ar", so it can be a program name with args. 4629 set dummy ar; ac_word=$2 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631 $as_echo_n "checking for $ac_word... " >&6; } 4632 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634 else 4635 if test -n "$ac_ct_AR"; then 4636 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4637 else 4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639 for as_dir in $PATH 4640 do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4645 ac_cv_prog_ac_ct_AR="ar" 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4647 break 2 4648 fi 4649 done 4650 done 4651 IFS=$as_save_IFS 4652 4653 fi 4654 fi 4655 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4656 if test -n "$ac_ct_AR"; then 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4658 $as_echo "$ac_ct_AR" >&6; } 4659 else 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4661 $as_echo "no" >&6; } 4662 fi 4663 4664 if test "x$ac_ct_AR" = x; then 4665 AR="" 4666 else 4667 case $cross_compiling:$ac_tool_warned in 4668 yes:) 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4671 ac_tool_warned=yes ;; 4672 esac 4673 AR=$ac_ct_AR 4674 fi 4675 else 4676 AR="$ac_cv_prog_AR" 4677 fi 4678 4679 if test -n "$ac_tool_prefix"; then 4680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4683 $as_echo_n "checking for $ac_word... " >&6; } 4684 if ${ac_cv_prog_RANLIB+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686 else 4687 if test -n "$RANLIB"; then 4688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4689 else 4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4691 for as_dir in $PATH 4692 do 4693 IFS=$as_save_IFS 4694 test -z "$as_dir" && as_dir=. 4695 for ac_exec_ext in '' $ac_executable_extensions; do 4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4699 break 2 4700 fi 4701 done 4702 done 4703 IFS=$as_save_IFS 4704 4705 fi 4706 fi 4707 RANLIB=$ac_cv_prog_RANLIB 4708 if test -n "$RANLIB"; then 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4710 $as_echo "$RANLIB" >&6; } 4711 else 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4713 $as_echo "no" >&6; } 4714 fi 4715 4716 4717 fi 4718 if test -z "$ac_cv_prog_RANLIB"; then 4719 ac_ct_RANLIB=$RANLIB 4720 # Extract the first word of "ranlib", so it can be a program name with args. 4721 set dummy ranlib; ac_word=$2 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4723 $as_echo_n "checking for $ac_word... " >&6; } 4724 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4725 $as_echo_n "(cached) " >&6 4726 else 4727 if test -n "$ac_ct_RANLIB"; then 4728 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4729 else 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731 for as_dir in $PATH 4732 do 4733 IFS=$as_save_IFS 4734 test -z "$as_dir" && as_dir=. 4735 for ac_exec_ext in '' $ac_executable_extensions; do 4736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4737 ac_cv_prog_ac_ct_RANLIB="ranlib" 4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4739 break 2 4740 fi 4741 done 4742 done 4743 IFS=$as_save_IFS 4744 4745 fi 4746 fi 4747 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4748 if test -n "$ac_ct_RANLIB"; then 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4750 $as_echo "$ac_ct_RANLIB" >&6; } 4751 else 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4753 $as_echo "no" >&6; } 4754 fi 4755 4756 if test "x$ac_ct_RANLIB" = x; then 4757 RANLIB=":" 4758 else 4759 case $cross_compiling:$ac_tool_warned in 4760 yes:) 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4763 ac_tool_warned=yes ;; 4764 esac 4765 RANLIB=$ac_ct_RANLIB 4766 fi 4767 else 4768 RANLIB="$ac_cv_prog_RANLIB" 4769 fi 4770 4771 4772 # Check whether --enable-shared was given. 4773 if test "${enable_shared+set}" = set; then : 4774 enableval=$enable_shared; p=${PACKAGE-default} 4775 case $enableval in 4776 yes) enable_shared=yes ;; 4777 no) enable_shared=no ;; 4778 *) 4779 enable_shared=no 4780 # Look at the argument we got. We use all the common list separators. 4781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4782 for pkg in $enableval; do 4783 IFS="$lt_save_ifs" 4784 if test "X$pkg" = "X$p"; then 4785 enable_shared=yes 4786 fi 4787 done 4788 IFS="$lt_save_ifs" 4789 ;; 4790 esac 4791 else 4792 enable_shared=no 4793 fi 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 case `pwd` in 4805 *\ * | *\ *) 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4807 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4808 esac 4809 4810 4811 4812 macro_version='2.2.7a' 4813 macro_revision='1.3134' 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 ltmain="$ac_aux_dir/ltmain.sh" 4828 4829 # Backslashify metacharacters that are still active within 4830 # double-quoted strings. 4831 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4832 4833 # Same as above, but do not quote variable references. 4834 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4835 4836 # Sed substitution to delay expansion of an escaped shell variable in a 4837 # double_quote_subst'ed string. 4838 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4839 4840 # Sed substitution to delay expansion of an escaped single quote. 4841 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4842 4843 # Sed substitution to avoid accidental globbing in evaled expressions 4844 no_glob_subst='s/\*/\\\*/g' 4845 4846 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4848 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4849 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4851 $as_echo_n "checking how to print strings... " >&6; } 4852 # Test print first, because it will be a builtin if present. 4853 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4855 ECHO='print -r --' 4856 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4857 ECHO='printf %s\n' 4858 else 4859 # Use this function as a fallback that always works. 4860 func_fallback_echo () 4861 { 4862 eval 'cat <<_LTECHO_EOF 4863 $1 4864 _LTECHO_EOF' 4865 } 4866 ECHO='func_fallback_echo' 4867 fi 4868 4869 # func_echo_all arg... 4870 # Invoke $ECHO with all args, space-separated. 4871 func_echo_all () 4872 { 4873 $ECHO "" 4874 } 4875 4876 case "$ECHO" in 4877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4878 $as_echo "printf" >&6; } ;; 4879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4880 $as_echo "print -r" >&6; } ;; 4881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4882 $as_echo "cat" >&6; } ;; 4883 esac 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4899 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4900 if ${ac_cv_path_SED+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902 else 4903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4904 for ac_i in 1 2 3 4 5 6 7; do 4905 ac_script="$ac_script$as_nl$ac_script" 4906 done 4907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4908 { ac_script=; unset ac_script;} 4909 if test -z "$SED"; then 4910 ac_path_SED_found=false 4911 # Loop through the user's path and test for each of PROGNAME-LIST 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913 for as_dir in $PATH 4914 do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_prog in sed gsed; do 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4920 as_fn_executable_p "$ac_path_SED" || continue 4921 # Check for GNU ac_path_SED and select it if it is found. 4922 # Check for GNU $ac_path_SED 4923 case `"$ac_path_SED" --version 2>&1` in 4924 *GNU*) 4925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4926 *) 4927 ac_count=0 4928 $as_echo_n 0123456789 >"conftest.in" 4929 while : 4930 do 4931 cat "conftest.in" "conftest.in" >"conftest.tmp" 4932 mv "conftest.tmp" "conftest.in" 4933 cp "conftest.in" "conftest.nl" 4934 $as_echo '' >> "conftest.nl" 4935 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4937 as_fn_arith $ac_count + 1 && ac_count=$as_val 4938 if test $ac_count -gt ${ac_path_SED_max-0}; then 4939 # Best one so far, save it but keep looking for a better one 4940 ac_cv_path_SED="$ac_path_SED" 4941 ac_path_SED_max=$ac_count 4942 fi 4943 # 10*(2^10) chars as input seems more than enough 4944 test $ac_count -gt 10 && break 4945 done 4946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4947 esac 4948 4949 $ac_path_SED_found && break 3 4950 done 4951 done 4952 done 4953 IFS=$as_save_IFS 4954 if test -z "$ac_cv_path_SED"; then 4955 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4956 fi 4957 else 4958 ac_cv_path_SED=$SED 4959 fi 4960 4961 fi 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4963 $as_echo "$ac_cv_path_SED" >&6; } 4964 SED="$ac_cv_path_SED" 4965 rm -f conftest.sed 4966 4967 test -z "$SED" && SED=sed 4968 Xsed="$SED -e 1s/^X//" 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4981 $as_echo_n "checking for fgrep... " >&6; } 4982 if ${ac_cv_path_FGREP+:} false; then : 4983 $as_echo_n "(cached) " >&6 4984 else 4985 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4986 then ac_cv_path_FGREP="$GREP -F" 4987 else 4988 if test -z "$FGREP"; then 4989 ac_path_FGREP_found=false 4990 # Loop through the user's path and test for each of PROGNAME-LIST 4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4993 do 4994 IFS=$as_save_IFS 4995 test -z "$as_dir" && as_dir=. 4996 for ac_prog in fgrep; do 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4999 as_fn_executable_p "$ac_path_FGREP" || continue 5000 # Check for GNU ac_path_FGREP and select it if it is found. 5001 # Check for GNU $ac_path_FGREP 5002 case `"$ac_path_FGREP" --version 2>&1` in 5003 *GNU*) 5004 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5005 *) 5006 ac_count=0 5007 $as_echo_n 0123456789 >"conftest.in" 5008 while : 5009 do 5010 cat "conftest.in" "conftest.in" >"conftest.tmp" 5011 mv "conftest.tmp" "conftest.in" 5012 cp "conftest.in" "conftest.nl" 5013 $as_echo 'FGREP' >> "conftest.nl" 5014 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5016 as_fn_arith $ac_count + 1 && ac_count=$as_val 5017 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5018 # Best one so far, save it but keep looking for a better one 5019 ac_cv_path_FGREP="$ac_path_FGREP" 5020 ac_path_FGREP_max=$ac_count 5021 fi 5022 # 10*(2^10) chars as input seems more than enough 5023 test $ac_count -gt 10 && break 5024 done 5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5026 esac 5027 5028 $ac_path_FGREP_found && break 3 5029 done 5030 done 5031 done 5032 IFS=$as_save_IFS 5033 if test -z "$ac_cv_path_FGREP"; then 5034 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5035 fi 5036 else 5037 ac_cv_path_FGREP=$FGREP 5038 fi 5039 5040 fi 5041 fi 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5043 $as_echo "$ac_cv_path_FGREP" >&6; } 5044 FGREP="$ac_cv_path_FGREP" 5045 5046 5047 test -z "$GREP" && GREP=grep 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 # Check whether --with-gnu-ld was given. 5068 if test "${with_gnu_ld+set}" = set; then : 5069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5070 else 5071 with_gnu_ld=no 5072 fi 5073 5074 ac_prog=ld 5075 if test "$GCC" = yes; then 5076 # Check if gcc -print-prog-name=ld gives a path. 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5078 $as_echo_n "checking for ld used by $CC... " >&6; } 5079 case $host in 5080 *-*-mingw*) 5081 # gcc leaves a trailing carriage return which upsets mingw 5082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5083 *) 5084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5085 esac 5086 case $ac_prog in 5087 # Accept absolute paths. 5088 [\\/]* | ?:[\\/]*) 5089 re_direlt='/[^/][^/]*/\.\./' 5090 # Canonicalize the pathname of ld 5091 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5092 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5093 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5094 done 5095 test -z "$LD" && LD="$ac_prog" 5096 ;; 5097 "") 5098 # If it fails, then pretend we aren't using GCC. 5099 ac_prog=ld 5100 ;; 5101 *) 5102 # If it is relative, then search for the first ld in PATH. 5103 with_gnu_ld=unknown 5104 ;; 5105 esac 5106 elif test "$with_gnu_ld" = yes; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5108 $as_echo_n "checking for GNU ld... " >&6; } 5109 else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5111 $as_echo_n "checking for non-GNU ld... " >&6; } 5112 fi 5113 if ${lt_cv_path_LD+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115 else 5116 if test -z "$LD"; then 5117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5118 for ac_dir in $PATH; do 5119 IFS="$lt_save_ifs" 5120 test -z "$ac_dir" && ac_dir=. 5121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5122 lt_cv_path_LD="$ac_dir/$ac_prog" 5123 # Check to see if the program is GNU ld. I'd rather use --version, 5124 # but apparently some variants of GNU ld only accept -v. 5125 # Break only if it was the GNU/non-GNU ld that we prefer. 5126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5127 *GNU* | *'with BFD'*) 5128 test "$with_gnu_ld" != no && break 5129 ;; 5130 *) 5131 test "$with_gnu_ld" != yes && break 5132 ;; 5133 esac 5134 fi 5135 done 5136 IFS="$lt_save_ifs" 5137 else 5138 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5139 fi 5140 fi 5141 5142 LD="$lt_cv_path_LD" 5143 if test -n "$LD"; then 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5145 $as_echo "$LD" >&6; } 5146 else 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148 $as_echo "no" >&6; } 5149 fi 5150 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5153 if ${lt_cv_prog_gnu_ld+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155 else 5156 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5157 case `$LD -v 2>&1 </dev/null` in 5158 *GNU* | *'with BFD'*) 5159 lt_cv_prog_gnu_ld=yes 5160 ;; 5161 *) 5162 lt_cv_prog_gnu_ld=no 5163 ;; 5164 esac 5165 fi 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5167 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5168 with_gnu_ld=$lt_cv_prog_gnu_ld 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5179 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5180 if ${lt_cv_path_NM+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182 else 5183 if test -n "$NM"; then 5184 # Let the user override the nm to test. 5185 lt_nm_to_check="$NM" 5186 else 5187 lt_nm_to_check="${ac_tool_prefix}nm" 5188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5189 lt_nm_to_check="$lt_nm_to_check nm" 5190 fi 5191 fi 5192 for lt_tmp_nm in "$lt_nm_to_check"; do 5193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5195 IFS="$lt_save_ifs" 5196 test -z "$ac_dir" && ac_dir=. 5197 # Strip out any user-provided options from the nm to test twice, 5198 # the first time to test to see if nm (rather than its options) has 5199 # an explicit path, the second time to yield a file which can be 5200 # nm'ed itself. 5201 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5202 case "$tmp_nm_path" in 5203 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5204 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5205 esac 5206 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5207 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5208 # Check to see if the nm accepts a BSD-compat flag. 5209 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5210 # nm: unknown option "B" ignored 5211 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5212 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5213 break 5214 ;; 5215 *) 5216 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5217 *$tmp_nm*) 5218 lt_cv_path_NM="$tmp_nm -p" 5219 break 5220 ;; 5221 *) 5222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5223 continue # so that we can try to find one that supports BSD flags 5224 ;; 5225 esac 5226 ;; 5227 esac 5228 fi 5229 done 5230 IFS="$lt_save_ifs" 5231 done 5232 : ${lt_cv_path_NM=no} 5233 fi 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5235 $as_echo "$lt_cv_path_NM" >&6; } 5236 if test "$lt_cv_path_NM" != "no"; then 5237 NM="$lt_cv_path_NM" 5238 else 5239 # Didn't find any BSD compatible name lister, look for dumpbin. 5240 if test -n "$DUMPBIN"; then : 5241 # Let the user override the test. 5242 else 5243 if test -n "$ac_tool_prefix"; then 5244 for ac_prog in dumpbin "link -dump" 5245 do 5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5249 $as_echo_n "checking for $ac_word... " >&6; } 5250 if ${ac_cv_prog_DUMPBIN+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252 else 5253 if test -n "$DUMPBIN"; then 5254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5255 else 5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257 for as_dir in $PATH 5258 do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267 done 5268 done 5269 IFS=$as_save_IFS 5270 5271 fi 5272 fi 5273 DUMPBIN=$ac_cv_prog_DUMPBIN 5274 if test -n "$DUMPBIN"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5276 $as_echo "$DUMPBIN" >&6; } 5277 else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279 $as_echo "no" >&6; } 5280 fi 5281 5282 5283 test -n "$DUMPBIN" && break 5284 done 5285 fi 5286 if test -z "$DUMPBIN"; then 5287 ac_ct_DUMPBIN=$DUMPBIN 5288 for ac_prog in dumpbin "link -dump" 5289 do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291 set dummy $ac_prog; ac_word=$2 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293 $as_echo_n "checking for $ac_word... " >&6; } 5294 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296 else 5297 if test -n "$ac_ct_DUMPBIN"; then 5298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5299 else 5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301 for as_dir in $PATH 5302 do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311 done 5312 done 5313 IFS=$as_save_IFS 5314 5315 fi 5316 fi 5317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5318 if test -n "$ac_ct_DUMPBIN"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5320 $as_echo "$ac_ct_DUMPBIN" >&6; } 5321 else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323 $as_echo "no" >&6; } 5324 fi 5325 5326 5327 test -n "$ac_ct_DUMPBIN" && break 5328 done 5329 5330 if test "x$ac_ct_DUMPBIN" = x; then 5331 DUMPBIN=":" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334 yes:) 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5337 ac_tool_warned=yes ;; 5338 esac 5339 DUMPBIN=$ac_ct_DUMPBIN 5340 fi 5341 fi 5342 5343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5344 *COFF*) 5345 DUMPBIN="$DUMPBIN -symbols" 5346 ;; 5347 *) 5348 DUMPBIN=: 5349 ;; 5350 esac 5351 fi 5352 5353 if test "$DUMPBIN" != ":"; then 5354 NM="$DUMPBIN" 5355 fi 5356 fi 5357 test -z "$NM" && NM=nm 5358 5359 5360 5361 5362 5363 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5365 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5366 if ${lt_cv_nm_interface+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368 else 5369 lt_cv_nm_interface="BSD nm" 5370 echo "int some_variable = 0;" > conftest.$ac_ext 5371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5372 (eval "$ac_compile" 2>conftest.err) 5373 cat conftest.err >&5 5374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5376 cat conftest.err >&5 5377 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5378 cat conftest.out >&5 5379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5380 lt_cv_nm_interface="MS dumpbin" 5381 fi 5382 rm -f conftest* 5383 fi 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5385 $as_echo "$lt_cv_nm_interface" >&6; } 5386 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5388 $as_echo_n "checking whether ln -s works... " >&6; } 5389 LN_S=$as_ln_s 5390 if test "$LN_S" = "ln -s"; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5392 $as_echo "yes" >&6; } 5393 else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5395 $as_echo "no, using $LN_S" >&6; } 5396 fi 5397 5398 # find the maximum length of command line arguments 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5400 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5401 if ${lt_cv_sys_max_cmd_len+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403 else 5404 i=0 5405 teststring="ABCD" 5406 5407 case $build_os in 5408 msdosdjgpp*) 5409 # On DJGPP, this test can blow up pretty badly due to problems in libc 5410 # (any single argument exceeding 2000 bytes causes a buffer overrun 5411 # during glob expansion). Even if it were fixed, the result of this 5412 # check would be larger than it should be. 5413 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5414 ;; 5415 5416 gnu*) 5417 # Under GNU Hurd, this test is not required because there is 5418 # no limit to the length of command line arguments. 5419 # Libtool will interpret -1 as no limit whatsoever 5420 lt_cv_sys_max_cmd_len=-1; 5421 ;; 5422 5423 cygwin* | mingw* | cegcc*) 5424 # On Win9x/ME, this test blows up -- it succeeds, but takes 5425 # about 5 minutes as the teststring grows exponentially. 5426 # Worse, since 9x/ME are not pre-emptively multitasking, 5427 # you end up with a "frozen" computer, even though with patience 5428 # the test eventually succeeds (with a max line length of 256k). 5429 # Instead, let's just punt: use the minimum linelength reported by 5430 # all of the supported platforms: 8192 (on NT/2K/XP). 5431 lt_cv_sys_max_cmd_len=8192; 5432 ;; 5433 5434 mint*) 5435 # On MiNT this can take a long time and run out of memory. 5436 lt_cv_sys_max_cmd_len=8192; 5437 ;; 5438 5439 amigaos*) 5440 # On AmigaOS with pdksh, this test takes hours, literally. 5441 # So we just punt and use a minimum line length of 8192. 5442 lt_cv_sys_max_cmd_len=8192; 5443 ;; 5444 5445 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5446 # This has been around since 386BSD, at least. Likely further. 5447 if test -x /sbin/sysctl; then 5448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5449 elif test -x /usr/sbin/sysctl; then 5450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5451 else 5452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5453 fi 5454 # And add a safety zone 5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5457 ;; 5458 5459 interix*) 5460 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5461 lt_cv_sys_max_cmd_len=196608 5462 ;; 5463 5464 osf*) 5465 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5466 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5467 # nice to cause kernel panics so lets avoid the loop below. 5468 # First set a reasonable default. 5469 lt_cv_sys_max_cmd_len=16384 5470 # 5471 if test -x /sbin/sysconfig; then 5472 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5473 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5474 esac 5475 fi 5476 ;; 5477 sco3.2v5*) 5478 lt_cv_sys_max_cmd_len=102400 5479 ;; 5480 sysv5* | sco5v6* | sysv4.2uw2*) 5481 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5482 if test -n "$kargmax"; then 5483 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5484 else 5485 lt_cv_sys_max_cmd_len=32768 5486 fi 5487 ;; 5488 *) 5489 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5490 if test -n "$lt_cv_sys_max_cmd_len"; then 5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5493 else 5494 # Make teststring a little bigger before we do anything with it. 5495 # a 1K string should be a reasonable start. 5496 for i in 1 2 3 4 5 6 7 8 ; do 5497 teststring=$teststring$teststring 5498 done 5499 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5500 # If test is not a shell built-in, we'll probably end up computing a 5501 # maximum length that is only half of the actual maximum length, but 5502 # we can't tell. 5503 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5504 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5505 test $i != 17 # 1/2 MB should be enough 5506 do 5507 i=`expr $i + 1` 5508 teststring=$teststring$teststring 5509 done 5510 # Only check the string length outside the loop. 5511 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5512 teststring= 5513 # Add a significant safety factor because C++ compilers can tack on 5514 # massive amounts of additional arguments before passing them to the 5515 # linker. It appears as though 1/2 is a usable value. 5516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5517 fi 5518 ;; 5519 esac 5520 5521 fi 5522 5523 if test -n $lt_cv_sys_max_cmd_len ; then 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5525 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5526 else 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5528 $as_echo "none" >&6; } 5529 fi 5530 max_cmd_len=$lt_cv_sys_max_cmd_len 5531 5532 5533 5534 5535 5536 5537 : ${CP="cp -f"} 5538 : ${MV="mv -f"} 5539 : ${RM="rm -f"} 5540 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5542 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5543 # Try some XSI features 5544 xsi_shell=no 5545 ( _lt_dummy="a/b/c" 5546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5547 = c,a/b,, \ 5548 && eval 'test $(( 1 + 1 )) -eq 2 \ 5549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5550 && xsi_shell=yes 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5552 $as_echo "$xsi_shell" >&6; } 5553 5554 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5556 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5557 lt_shell_append=no 5558 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5559 >/dev/null 2>&1 \ 5560 && lt_shell_append=yes 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5562 $as_echo "$lt_shell_append" >&6; } 5563 5564 5565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5566 lt_unset=unset 5567 else 5568 lt_unset=false 5569 fi 5570 5571 5572 5573 5574 5575 # test EBCDIC or ASCII 5576 case `echo X|tr X '\101'` in 5577 A) # ASCII based system 5578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5579 lt_SP2NL='tr \040 \012' 5580 lt_NL2SP='tr \015\012 \040\040' 5581 ;; 5582 *) # EBCDIC based system 5583 lt_SP2NL='tr \100 \n' 5584 lt_NL2SP='tr \r\n \100\100' 5585 ;; 5586 esac 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5597 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5598 if ${lt_cv_ld_reload_flag+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600 else 5601 lt_cv_ld_reload_flag='-r' 5602 fi 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5604 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5605 reload_flag=$lt_cv_ld_reload_flag 5606 case $reload_flag in 5607 "" | " "*) ;; 5608 *) reload_flag=" $reload_flag" ;; 5609 esac 5610 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5611 case $host_os in 5612 darwin*) 5613 if test "$GCC" = yes; then 5614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5615 else 5616 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5617 fi 5618 ;; 5619 esac 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 if test -n "$ac_tool_prefix"; then 5630 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5631 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633 $as_echo_n "checking for $ac_word... " >&6; } 5634 if ${ac_cv_prog_OBJDUMP+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636 else 5637 if test -n "$OBJDUMP"; then 5638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5639 else 5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641 for as_dir in $PATH 5642 do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651 done 5652 done 5653 IFS=$as_save_IFS 5654 5655 fi 5656 fi 5657 OBJDUMP=$ac_cv_prog_OBJDUMP 5658 if test -n "$OBJDUMP"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5660 $as_echo "$OBJDUMP" >&6; } 5661 else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663 $as_echo "no" >&6; } 5664 fi 5665 5666 5667 fi 5668 if test -z "$ac_cv_prog_OBJDUMP"; then 5669 ac_ct_OBJDUMP=$OBJDUMP 5670 # Extract the first word of "objdump", so it can be a program name with args. 5671 set dummy objdump; ac_word=$2 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5673 $as_echo_n "checking for $ac_word... " >&6; } 5674 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676 else 5677 if test -n "$ac_ct_OBJDUMP"; then 5678 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5679 else 5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5681 for as_dir in $PATH 5682 do 5683 IFS=$as_save_IFS 5684 test -z "$as_dir" && as_dir=. 5685 for ac_exec_ext in '' $ac_executable_extensions; do 5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5687 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5689 break 2 5690 fi 5691 done 5692 done 5693 IFS=$as_save_IFS 5694 5695 fi 5696 fi 5697 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5698 if test -n "$ac_ct_OBJDUMP"; then 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5700 $as_echo "$ac_ct_OBJDUMP" >&6; } 5701 else 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5703 $as_echo "no" >&6; } 5704 fi 5705 5706 if test "x$ac_ct_OBJDUMP" = x; then 5707 OBJDUMP="false" 5708 else 5709 case $cross_compiling:$ac_tool_warned in 5710 yes:) 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5713 ac_tool_warned=yes ;; 5714 esac 5715 OBJDUMP=$ac_ct_OBJDUMP 5716 fi 5717 else 5718 OBJDUMP="$ac_cv_prog_OBJDUMP" 5719 fi 5720 5721 test -z "$OBJDUMP" && OBJDUMP=objdump 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5732 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5733 if ${lt_cv_deplibs_check_method+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735 else 5736 lt_cv_file_magic_cmd='$MAGIC_CMD' 5737 lt_cv_file_magic_test_file= 5738 lt_cv_deplibs_check_method='unknown' 5739 # Need to set the preceding variable on all platforms that support 5740 # interlibrary dependencies. 5741 # 'none' -- dependencies not supported. 5742 # `unknown' -- same as none, but documents that we really don't know. 5743 # 'pass_all' -- all dependencies passed with no checks. 5744 # 'test_compile' -- check by making test program. 5745 # 'file_magic [[regex]]' -- check by looking for files in library path 5746 # which responds to the $file_magic_cmd with a given extended regex. 5747 # If you have `file' or equivalent on your system and you're not sure 5748 # whether `pass_all' will *always* work, you probably want this one. 5749 5750 case $host_os in 5751 aix[4-9]*) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 5755 beos*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759 bsdi[45]*) 5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5761 lt_cv_file_magic_cmd='/usr/bin/file -L' 5762 lt_cv_file_magic_test_file=/shlib/libc.so 5763 ;; 5764 5765 cygwin*) 5766 # func_win32_libid is a shell function defined in ltmain.sh 5767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5768 lt_cv_file_magic_cmd='func_win32_libid' 5769 ;; 5770 5771 mingw* | pw32*) 5772 # Base MSYS/MinGW do not provide the 'file' command needed by 5773 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5774 # unless we find 'file', for example because we are cross-compiling. 5775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5776 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5778 lt_cv_file_magic_cmd='func_win32_libid' 5779 else 5780 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5781 lt_cv_file_magic_cmd='$OBJDUMP -f' 5782 fi 5783 ;; 5784 5785 cegcc*) 5786 # use the weaker test based on 'objdump'. See mingw*. 5787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5788 lt_cv_file_magic_cmd='$OBJDUMP -f' 5789 ;; 5790 5791 darwin* | rhapsody*) 5792 lt_cv_deplibs_check_method=pass_all 5793 ;; 5794 5795 freebsd* | dragonfly*) 5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5797 case $host_cpu in 5798 i*86 ) 5799 # Not sure whether the presence of OpenBSD here was a mistake. 5800 # Let's accept both of them until this is cleared up. 5801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5802 lt_cv_file_magic_cmd=/usr/bin/file 5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5804 ;; 5805 esac 5806 else 5807 lt_cv_deplibs_check_method=pass_all 5808 fi 5809 ;; 5810 5811 gnu*) 5812 lt_cv_deplibs_check_method=pass_all 5813 ;; 5814 5815 haiku*) 5816 lt_cv_deplibs_check_method=pass_all 5817 ;; 5818 5819 hpux10.20* | hpux11*) 5820 lt_cv_file_magic_cmd=/usr/bin/file 5821 case $host_cpu in 5822 ia64*) 5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5825 ;; 5826 hppa*64*) 5827 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]' 5828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5829 ;; 5830 *) 5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5832 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5833 ;; 5834 esac 5835 ;; 5836 5837 interix[3-9]*) 5838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5840 ;; 5841 5842 irix5* | irix6* | nonstopux*) 5843 case $LD in 5844 *-32|*"-32 ") libmagic=32-bit;; 5845 *-n32|*"-n32 ") libmagic=N32;; 5846 *-64|*"-64 ") libmagic=64-bit;; 5847 *) libmagic=never-match;; 5848 esac 5849 lt_cv_deplibs_check_method=pass_all 5850 ;; 5851 5852 # This must be Linux ELF. 5853 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 5857 netbsd*) 5858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5860 else 5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5862 fi 5863 ;; 5864 5865 newos6*) 5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5867 lt_cv_file_magic_cmd=/usr/bin/file 5868 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5869 ;; 5870 5871 *nto* | *qnx*) 5872 lt_cv_deplibs_check_method=pass_all 5873 ;; 5874 5875 openbsd*) 5876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5878 else 5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5880 fi 5881 ;; 5882 5883 osf3* | osf4* | osf5*) 5884 lt_cv_deplibs_check_method=pass_all 5885 ;; 5886 5887 rdos*) 5888 lt_cv_deplibs_check_method=pass_all 5889 ;; 5890 5891 solaris*) 5892 lt_cv_deplibs_check_method=pass_all 5893 ;; 5894 5895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5896 lt_cv_deplibs_check_method=pass_all 5897 ;; 5898 5899 sysv4 | sysv4.3*) 5900 case $host_vendor in 5901 motorola) 5902 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]' 5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5904 ;; 5905 ncr) 5906 lt_cv_deplibs_check_method=pass_all 5907 ;; 5908 sequent) 5909 lt_cv_file_magic_cmd='/bin/file' 5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5911 ;; 5912 sni) 5913 lt_cv_file_magic_cmd='/bin/file' 5914 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5915 lt_cv_file_magic_test_file=/lib/libc.so 5916 ;; 5917 siemens) 5918 lt_cv_deplibs_check_method=pass_all 5919 ;; 5920 pc) 5921 lt_cv_deplibs_check_method=pass_all 5922 ;; 5923 esac 5924 ;; 5925 5926 tpf*) 5927 lt_cv_deplibs_check_method=pass_all 5928 ;; 5929 vxworks*) 5930 # Assume VxWorks cross toolchains are built on Linux, possibly 5931 # as canadian for Windows hosts. 5932 lt_cv_deplibs_check_method=pass_all 5933 ;; 5934 esac 5935 5936 fi 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5938 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5939 file_magic_cmd=$lt_cv_file_magic_cmd 5940 deplibs_check_method=$lt_cv_deplibs_check_method 5941 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the 5956 # wrong plugin_option with clang. 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5 5958 $as_echo_n "checking for clang... " >&6; } 5959 if ${clang_cv_is_clang+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961 else 5962 5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964 /* end confdefs.h. */ 5965 5966 #ifdef __clang__ 5967 yes 5968 #endif 5969 5970 _ACEOF 5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5972 $EGREP "yes" >/dev/null 2>&1; then : 5973 clang_cv_is_clang=yes 5974 else 5975 clang_cv_is_clang=no 5976 fi 5977 rm -f conftest* 5978 5979 fi 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5 5981 $as_echo "$clang_cv_is_clang" >&6; } 5982 if test -n "$ac_tool_prefix"; then 5983 # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args. 5984 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5986 $as_echo_n "checking for $ac_word... " >&6; } 5987 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989 else 5990 if test -n "$LLVM_CONFIG"; then 5991 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 5992 else 5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994 for as_dir in $PATH 5995 do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 for ac_exec_ext in '' $ac_executable_extensions; do 5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6000 ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config" 6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6002 break 2 6003 fi 6004 done 6005 done 6006 IFS=$as_save_IFS 6007 6008 fi 6009 fi 6010 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 6011 if test -n "$LLVM_CONFIG"; then 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 6013 $as_echo "$LLVM_CONFIG" >&6; } 6014 else 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6016 $as_echo "no" >&6; } 6017 fi 6018 6019 6020 fi 6021 if test -z "$ac_cv_prog_LLVM_CONFIG"; then 6022 ac_ct_LLVM_CONFIG=$LLVM_CONFIG 6023 # Extract the first word of "llvm-config", so it can be a program name with args. 6024 set dummy llvm-config; ac_word=$2 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026 $as_echo_n "checking for $ac_word... " >&6; } 6027 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029 else 6030 if test -n "$ac_ct_LLVM_CONFIG"; then 6031 ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test. 6032 else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 fi 6049 fi 6050 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG 6051 if test -n "$ac_ct_LLVM_CONFIG"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5 6053 $as_echo "$ac_ct_LLVM_CONFIG" >&6; } 6054 else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056 $as_echo "no" >&6; } 6057 fi 6058 6059 if test "x$ac_ct_LLVM_CONFIG" = x; then 6060 LLVM_CONFIG="" 6061 else 6062 case $cross_compiling:$ac_tool_warned in 6063 yes:) 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6066 ac_tool_warned=yes ;; 6067 esac 6068 LLVM_CONFIG=$ac_ct_LLVM_CONFIG 6069 fi 6070 else 6071 LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG" 6072 fi 6073 6074 plugin_file= 6075 if test $clang_cv_is_clang = yes; then 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5 6077 $as_echo_n "checking for clang plugin file... " >&6; } 6078 plugin_names="LLVMgold.so" 6079 for plugin in $plugin_names; do 6080 plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin` 6081 if test "$plugin_file" != "$plugin"; then 6082 break; 6083 fi 6084 if test -n "${LLVM_CONFIG}"; then 6085 plugin_file=`${LLVM_CONFIG} --libdir`/$plugin 6086 if test -f "$plugin_file"; then 6087 break; 6088 fi 6089 fi 6090 plugin_file= 6091 done 6092 if test -z "$plugin_file"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6094 $as_echo "no" >&6; } 6095 else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5 6097 $as_echo "$plugin_file" >&6; } 6098 if test -n "$ac_tool_prefix"; then 6099 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6100 set dummy ${ac_tool_prefix}ar; ac_word=$2 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6102 $as_echo_n "checking for $ac_word... " >&6; } 6103 if ${ac_cv_prog_AR+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105 else 6106 if test -n "$AR"; then 6107 ac_cv_prog_AR="$AR" # Let the user override the test. 6108 else 6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110 for as_dir in $PATH 6111 do 6112 IFS=$as_save_IFS 6113 test -z "$as_dir" && as_dir=. 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6116 ac_cv_prog_AR="${ac_tool_prefix}ar" 6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6118 break 2 6119 fi 6120 done 6121 done 6122 IFS=$as_save_IFS 6123 6124 fi 6125 fi 6126 AR=$ac_cv_prog_AR 6127 if test -n "$AR"; then 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6129 $as_echo "$AR" >&6; } 6130 else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132 $as_echo "no" >&6; } 6133 fi 6134 6135 6136 fi 6137 if test -z "$ac_cv_prog_AR"; then 6138 ac_ct_AR=$AR 6139 # Extract the first word of "ar", so it can be a program name with args. 6140 set dummy ar; ac_word=$2 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142 $as_echo_n "checking for $ac_word... " >&6; } 6143 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145 else 6146 if test -n "$ac_ct_AR"; then 6147 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6148 else 6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150 for as_dir in $PATH 6151 do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6156 ac_cv_prog_ac_ct_AR="ar" 6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160 done 6161 done 6162 IFS=$as_save_IFS 6163 6164 fi 6165 fi 6166 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6167 if test -n "$ac_ct_AR"; then 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6169 $as_echo "$ac_ct_AR" >&6; } 6170 else 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6172 $as_echo "no" >&6; } 6173 fi 6174 6175 if test "x$ac_ct_AR" = x; then 6176 AR="" 6177 else 6178 case $cross_compiling:$ac_tool_warned in 6179 yes:) 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6182 ac_tool_warned=yes ;; 6183 esac 6184 AR=$ac_ct_AR 6185 fi 6186 else 6187 AR="$ac_cv_prog_AR" 6188 fi 6189 6190 if test -z "${AR}"; then 6191 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 6192 fi 6193 plugin_option="--plugin $plugin_file" 6194 touch conftest.c 6195 ${AR} $plugin_option rc conftest.a conftest.c 6196 if test "$?" != 0; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6198 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6199 plugin_file= 6200 fi 6201 rm -f conftest.* 6202 fi 6203 fi 6204 plugin_file="$plugin_file" 6205 6206 if test -n "$plugin_file"; then 6207 plugin_option="--plugin $plugin_file" 6208 else 6209 if test -n "$ac_tool_prefix"; then 6210 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6211 set dummy ${ac_tool_prefix}ar; ac_word=$2 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6213 $as_echo_n "checking for $ac_word... " >&6; } 6214 if ${ac_cv_prog_AR+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216 else 6217 if test -n "$AR"; then 6218 ac_cv_prog_AR="$AR" # Let the user override the test. 6219 else 6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6221 for as_dir in $PATH 6222 do 6223 IFS=$as_save_IFS 6224 test -z "$as_dir" && as_dir=. 6225 for ac_exec_ext in '' $ac_executable_extensions; do 6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6227 ac_cv_prog_AR="${ac_tool_prefix}ar" 6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6229 break 2 6230 fi 6231 done 6232 done 6233 IFS=$as_save_IFS 6234 6235 fi 6236 fi 6237 AR=$ac_cv_prog_AR 6238 if test -n "$AR"; then 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6240 $as_echo "$AR" >&6; } 6241 else 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6243 $as_echo "no" >&6; } 6244 fi 6245 6246 6247 fi 6248 if test -z "$ac_cv_prog_AR"; then 6249 ac_ct_AR=$AR 6250 # Extract the first word of "ar", so it can be a program name with args. 6251 set dummy ar; ac_word=$2 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253 $as_echo_n "checking for $ac_word... " >&6; } 6254 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6255 $as_echo_n "(cached) " >&6 6256 else 6257 if test -n "$ac_ct_AR"; then 6258 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6259 else 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261 for as_dir in $PATH 6262 do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6267 ac_cv_prog_ac_ct_AR="ar" 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271 done 6272 done 6273 IFS=$as_save_IFS 6274 6275 fi 6276 fi 6277 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6278 if test -n "$ac_ct_AR"; then 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6280 $as_echo "$ac_ct_AR" >&6; } 6281 else 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283 $as_echo "no" >&6; } 6284 fi 6285 6286 if test "x$ac_ct_AR" = x; then 6287 AR="" 6288 else 6289 case $cross_compiling:$ac_tool_warned in 6290 yes:) 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6293 ac_tool_warned=yes ;; 6294 esac 6295 AR=$ac_ct_AR 6296 fi 6297 else 6298 AR="$ac_cv_prog_AR" 6299 fi 6300 6301 if test -z "${AR}"; then 6302 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 6303 fi 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 6305 $as_echo_n "checking for -plugin option... " >&6; } 6306 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6307 plugin_option= 6308 for plugin in $plugin_names; do 6309 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6310 if test x$plugin_so = x$plugin; then 6311 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6312 fi 6313 if test x$plugin_so != x$plugin; then 6314 plugin_option="--plugin $plugin_so" 6315 break 6316 fi 6317 done 6318 if test -z "$plugin_option"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320 $as_echo "no" >&6; } 6321 else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 6323 $as_echo "$plugin_option" >&6; } 6324 touch conftest.c 6325 ${AR} $plugin_option rc conftest.a conftest.c 6326 if test "$?" != 0; then 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6328 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6329 plugin_option= 6330 fi 6331 rm -f conftest.* 6332 fi 6333 plugin_option="$plugin_option" 6334 6335 fi 6336 if test -n "$ac_tool_prefix"; then 6337 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6338 set dummy ${ac_tool_prefix}ar; ac_word=$2 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340 $as_echo_n "checking for $ac_word... " >&6; } 6341 if ${ac_cv_prog_AR+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343 else 6344 if test -n "$AR"; then 6345 ac_cv_prog_AR="$AR" # Let the user override the test. 6346 else 6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348 for as_dir in $PATH 6349 do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6354 ac_cv_prog_AR="${ac_tool_prefix}ar" 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358 done 6359 done 6360 IFS=$as_save_IFS 6361 6362 fi 6363 fi 6364 AR=$ac_cv_prog_AR 6365 if test -n "$AR"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6367 $as_echo "$AR" >&6; } 6368 else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370 $as_echo "no" >&6; } 6371 fi 6372 6373 6374 fi 6375 if test -z "$ac_cv_prog_AR"; then 6376 ac_ct_AR=$AR 6377 # Extract the first word of "ar", so it can be a program name with args. 6378 set dummy ar; ac_word=$2 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380 $as_echo_n "checking for $ac_word... " >&6; } 6381 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383 else 6384 if test -n "$ac_ct_AR"; then 6385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6386 else 6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388 for as_dir in $PATH 6389 do 6390 IFS=$as_save_IFS 6391 test -z "$as_dir" && as_dir=. 6392 for ac_exec_ext in '' $ac_executable_extensions; do 6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6394 ac_cv_prog_ac_ct_AR="ar" 6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6396 break 2 6397 fi 6398 done 6399 done 6400 IFS=$as_save_IFS 6401 6402 fi 6403 fi 6404 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6405 if test -n "$ac_ct_AR"; then 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6407 $as_echo "$ac_ct_AR" >&6; } 6408 else 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6410 $as_echo "no" >&6; } 6411 fi 6412 6413 if test "x$ac_ct_AR" = x; then 6414 AR="false" 6415 else 6416 case $cross_compiling:$ac_tool_warned in 6417 yes:) 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6420 ac_tool_warned=yes ;; 6421 esac 6422 AR=$ac_ct_AR 6423 fi 6424 else 6425 AR="$ac_cv_prog_AR" 6426 fi 6427 6428 test -z "$AR" && AR=ar 6429 if test -n "$plugin_option"; then 6430 case "$AR" in 6431 *"$plugin_option"*) 6432 ;; 6433 *) 6434 if $AR --help 2>&1 | grep -q "\--plugin"; then 6435 AR="$AR $plugin_option" 6436 fi 6437 ;; 6438 esac 6439 fi 6440 test -z "$AR_FLAGS" && AR_FLAGS=cru 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 if test -n "$ac_tool_prefix"; then 6453 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6454 set dummy ${ac_tool_prefix}strip; ac_word=$2 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6456 $as_echo_n "checking for $ac_word... " >&6; } 6457 if ${ac_cv_prog_STRIP+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459 else 6460 if test -n "$STRIP"; then 6461 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6462 else 6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6464 for as_dir in $PATH 6465 do 6466 IFS=$as_save_IFS 6467 test -z "$as_dir" && as_dir=. 6468 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6470 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6472 break 2 6473 fi 6474 done 6475 done 6476 IFS=$as_save_IFS 6477 6478 fi 6479 fi 6480 STRIP=$ac_cv_prog_STRIP 6481 if test -n "$STRIP"; then 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6483 $as_echo "$STRIP" >&6; } 6484 else 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6486 $as_echo "no" >&6; } 6487 fi 6488 6489 6490 fi 6491 if test -z "$ac_cv_prog_STRIP"; then 6492 ac_ct_STRIP=$STRIP 6493 # Extract the first word of "strip", so it can be a program name with args. 6494 set dummy strip; ac_word=$2 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6496 $as_echo_n "checking for $ac_word... " >&6; } 6497 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499 else 6500 if test -n "$ac_ct_STRIP"; then 6501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6502 else 6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504 for as_dir in $PATH 6505 do 6506 IFS=$as_save_IFS 6507 test -z "$as_dir" && as_dir=. 6508 for ac_exec_ext in '' $ac_executable_extensions; do 6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6510 ac_cv_prog_ac_ct_STRIP="strip" 6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6512 break 2 6513 fi 6514 done 6515 done 6516 IFS=$as_save_IFS 6517 6518 fi 6519 fi 6520 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6521 if test -n "$ac_ct_STRIP"; then 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6523 $as_echo "$ac_ct_STRIP" >&6; } 6524 else 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6526 $as_echo "no" >&6; } 6527 fi 6528 6529 if test "x$ac_ct_STRIP" = x; then 6530 STRIP=":" 6531 else 6532 case $cross_compiling:$ac_tool_warned in 6533 yes:) 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6536 ac_tool_warned=yes ;; 6537 esac 6538 STRIP=$ac_ct_STRIP 6539 fi 6540 else 6541 STRIP="$ac_cv_prog_STRIP" 6542 fi 6543 6544 test -z "$STRIP" && STRIP=: 6545 6546 6547 6548 6549 6550 6551 if test -n "$ac_tool_prefix"; then 6552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555 $as_echo_n "checking for $ac_word... " >&6; } 6556 if ${ac_cv_prog_RANLIB+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558 else 6559 if test -n "$RANLIB"; then 6560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6561 else 6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563 for as_dir in $PATH 6564 do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573 done 6574 done 6575 IFS=$as_save_IFS 6576 6577 fi 6578 fi 6579 RANLIB=$ac_cv_prog_RANLIB 6580 if test -n "$RANLIB"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6582 $as_echo "$RANLIB" >&6; } 6583 else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585 $as_echo "no" >&6; } 6586 fi 6587 6588 6589 fi 6590 if test -z "$ac_cv_prog_RANLIB"; then 6591 ac_ct_RANLIB=$RANLIB 6592 # Extract the first word of "ranlib", so it can be a program name with args. 6593 set dummy ranlib; ac_word=$2 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595 $as_echo_n "checking for $ac_word... " >&6; } 6596 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598 else 6599 if test -n "$ac_ct_RANLIB"; then 6600 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6601 else 6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6603 for as_dir in $PATH 6604 do 6605 IFS=$as_save_IFS 6606 test -z "$as_dir" && as_dir=. 6607 for ac_exec_ext in '' $ac_executable_extensions; do 6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6609 ac_cv_prog_ac_ct_RANLIB="ranlib" 6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6611 break 2 6612 fi 6613 done 6614 done 6615 IFS=$as_save_IFS 6616 6617 fi 6618 fi 6619 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6620 if test -n "$ac_ct_RANLIB"; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6622 $as_echo "$ac_ct_RANLIB" >&6; } 6623 else 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6625 $as_echo "no" >&6; } 6626 fi 6627 6628 if test "x$ac_ct_RANLIB" = x; then 6629 RANLIB=":" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632 yes:) 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635 ac_tool_warned=yes ;; 6636 esac 6637 RANLIB=$ac_ct_RANLIB 6638 fi 6639 else 6640 RANLIB="$ac_cv_prog_RANLIB" 6641 fi 6642 6643 test -z "$RANLIB" && RANLIB=: 6644 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6645 case "$RANLIB" in 6646 *"$plugin_option"*) 6647 ;; 6648 *) 6649 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6650 RANLIB="$RANLIB $plugin_option" 6651 fi 6652 ;; 6653 esac 6654 fi 6655 6656 6657 6658 6659 6660 6661 # Determine commands to create old-style static archives. 6662 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6663 old_postinstall_cmds='chmod 644 $oldlib' 6664 old_postuninstall_cmds= 6665 6666 if test -n "$RANLIB"; then 6667 case $host_os in 6668 openbsd*) 6669 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6670 ;; 6671 *) 6672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6673 ;; 6674 esac 6675 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6676 fi 6677 6678 case $host_os in 6679 darwin*) 6680 lock_old_archive_extraction=yes ;; 6681 *) 6682 lock_old_archive_extraction=no ;; 6683 esac 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 # If no C compiler was specified, use CC. 6724 LTCC=${LTCC-"$CC"} 6725 6726 # If no C compiler flags were specified, use CFLAGS. 6727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6728 6729 # Allow CC to be a program name with arguments. 6730 compiler=$CC 6731 6732 6733 # Check for command to grab the raw symbol name followed by C symbol from nm. 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6735 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6736 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738 else 6739 6740 # These are sane defaults that work on at least a few old systems. 6741 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6742 6743 # Character class describing NM global symbol codes. 6744 symcode='[BCDEGRST]' 6745 6746 # Regexp to match symbols that can be accessed directly from C. 6747 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6748 6749 # Define system-specific variables. 6750 case $host_os in 6751 aix*) 6752 symcode='[BCDT]' 6753 ;; 6754 cygwin* | mingw* | pw32* | cegcc*) 6755 symcode='[ABCDGISTW]' 6756 ;; 6757 hpux*) 6758 if test "$host_cpu" = ia64; then 6759 symcode='[ABCDEGRST]' 6760 fi 6761 ;; 6762 irix* | nonstopux*) 6763 symcode='[BCDEGRST]' 6764 ;; 6765 osf*) 6766 symcode='[BCDEGQRST]' 6767 ;; 6768 solaris*) 6769 symcode='[BCDRT]' 6770 ;; 6771 sco3.2v5*) 6772 symcode='[DT]' 6773 ;; 6774 sysv4.2uw2*) 6775 symcode='[DT]' 6776 ;; 6777 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6778 symcode='[ABDT]' 6779 ;; 6780 sysv4) 6781 symcode='[DFNSTU]' 6782 ;; 6783 esac 6784 6785 # If we're using GNU nm, then use its standard symbol codes. 6786 case `$NM -V 2>&1` in 6787 *GNU* | *'with BFD'*) 6788 symcode='[ABCDGIRSTW]' ;; 6789 esac 6790 6791 # Transform an extracted symbol line into a proper C declaration. 6792 # Some systems (esp. on ia64) link data and code symbols differently, 6793 # so use this general approach. 6794 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6795 6796 # Transform an extracted symbol line into symbol name and symbol address 6797 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6798 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'" 6799 6800 # Handle CRLF in mingw tool chain 6801 opt_cr= 6802 case $build_os in 6803 mingw*) 6804 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6805 ;; 6806 esac 6807 6808 # Try without a prefix underscore, then with it. 6809 for ac_symprfx in "" "_"; do 6810 6811 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6812 symxfrm="\\1 $ac_symprfx\\2 \\2" 6813 6814 # Write the raw and C identifiers. 6815 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6816 # Fake it for dumpbin and say T for any non-static function 6817 # and D for any global variable. 6818 # Also find C++ and __fastcall symbols from MSVC++, 6819 # which start with @ or ?. 6820 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6821 " {last_section=section; section=\$ 3};"\ 6822 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6823 " \$ 0!~/External *\|/{next};"\ 6824 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6825 " {if(hide[section]) next};"\ 6826 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6827 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6828 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6829 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6830 " ' prfx=^$ac_symprfx" 6831 else 6832 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6833 fi 6834 6835 # Check to see that the pipe works correctly. 6836 pipe_works=no 6837 6838 rm -f conftest* 6839 cat > conftest.$ac_ext <<_LT_EOF 6840 #ifdef __cplusplus 6841 extern "C" { 6842 #endif 6843 char nm_test_var; 6844 void nm_test_func(void); 6845 void nm_test_func(void){} 6846 #ifdef __cplusplus 6847 } 6848 #endif 6849 int main(){nm_test_var='a';nm_test_func();return(0);} 6850 _LT_EOF 6851 6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6853 (eval $ac_compile) 2>&5 6854 ac_status=$? 6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6856 test $ac_status = 0; }; then 6857 # Now try to grab the symbols. 6858 nlist=conftest.nm 6859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6860 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6861 ac_status=$? 6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6863 test $ac_status = 0; } && test -s "$nlist"; then 6864 # Try sorting and uniquifying the output. 6865 if sort "$nlist" | uniq > "$nlist"T; then 6866 mv -f "$nlist"T "$nlist" 6867 else 6868 rm -f "$nlist"T 6869 fi 6870 6871 # Make sure that we snagged all the symbols we need. 6872 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6873 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6874 cat <<_LT_EOF > conftest.$ac_ext 6875 #ifdef __cplusplus 6876 extern "C" { 6877 #endif 6878 6879 _LT_EOF 6880 # Now generate the symbol file. 6881 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6882 6883 cat <<_LT_EOF >> conftest.$ac_ext 6884 6885 /* The mapping between symbol names and symbols. */ 6886 const struct { 6887 const char *name; 6888 void *address; 6889 } 6890 lt__PROGRAM__LTX_preloaded_symbols[] = 6891 { 6892 { "@PROGRAM@", (void *) 0 }, 6893 _LT_EOF 6894 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6895 cat <<\_LT_EOF >> conftest.$ac_ext 6896 {0, (void *) 0} 6897 }; 6898 6899 /* This works around a problem in FreeBSD linker */ 6900 #ifdef FREEBSD_WORKAROUND 6901 static const void *lt_preloaded_setup() { 6902 return lt__PROGRAM__LTX_preloaded_symbols; 6903 } 6904 #endif 6905 6906 #ifdef __cplusplus 6907 } 6908 #endif 6909 _LT_EOF 6910 # Now try linking the two files. 6911 mv conftest.$ac_objext conftstm.$ac_objext 6912 lt_save_LIBS="$LIBS" 6913 lt_save_CFLAGS="$CFLAGS" 6914 LIBS="conftstm.$ac_objext" 6915 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6917 (eval $ac_link) 2>&5 6918 ac_status=$? 6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6920 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6921 pipe_works=yes 6922 fi 6923 LIBS="$lt_save_LIBS" 6924 CFLAGS="$lt_save_CFLAGS" 6925 else 6926 echo "cannot find nm_test_func in $nlist" >&5 6927 fi 6928 else 6929 echo "cannot find nm_test_var in $nlist" >&5 6930 fi 6931 else 6932 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6933 fi 6934 else 6935 echo "$progname: failed program was:" >&5 6936 cat conftest.$ac_ext >&5 6937 fi 6938 rm -rf conftest* conftst* 6939 6940 # Do not use the global_symbol_pipe unless it works. 6941 if test "$pipe_works" = yes; then 6942 break 6943 else 6944 lt_cv_sys_global_symbol_pipe= 6945 fi 6946 done 6947 6948 fi 6949 6950 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6951 lt_cv_sys_global_symbol_to_cdecl= 6952 fi 6953 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6955 $as_echo "failed" >&6; } 6956 else 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6958 $as_echo "ok" >&6; } 6959 fi 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 # Check whether --enable-libtool-lock was given. 6983 if test "${enable_libtool_lock+set}" = set; then : 6984 enableval=$enable_libtool_lock; 6985 fi 6986 6987 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6988 6989 # Some flags need to be propagated to the compiler or linker for good 6990 # libtool support. 6991 case $host in 6992 ia64-*-hpux*) 6993 # Find out which ABI we are using. 6994 echo 'int i;' > conftest.$ac_ext 6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6996 (eval $ac_compile) 2>&5 6997 ac_status=$? 6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6999 test $ac_status = 0; }; then 7000 case `/usr/bin/file conftest.$ac_objext` in 7001 *ELF-32*) 7002 HPUX_IA64_MODE="32" 7003 ;; 7004 *ELF-64*) 7005 HPUX_IA64_MODE="64" 7006 ;; 7007 esac 7008 fi 7009 rm -rf conftest* 7010 ;; 7011 *-*-irix6*) 7012 # Find out which ABI we are using. 7013 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7015 (eval $ac_compile) 2>&5 7016 ac_status=$? 7017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7018 test $ac_status = 0; }; then 7019 if test "$lt_cv_prog_gnu_ld" = yes; then 7020 case `/usr/bin/file conftest.$ac_objext` in 7021 *32-bit*) 7022 LD="${LD-ld} -melf32bsmip" 7023 ;; 7024 *N32*) 7025 LD="${LD-ld} -melf32bmipn32" 7026 ;; 7027 *64-bit*) 7028 LD="${LD-ld} -melf64bmip" 7029 ;; 7030 esac 7031 else 7032 case `/usr/bin/file conftest.$ac_objext` in 7033 *32-bit*) 7034 LD="${LD-ld} -32" 7035 ;; 7036 *N32*) 7037 LD="${LD-ld} -n32" 7038 ;; 7039 *64-bit*) 7040 LD="${LD-ld} -64" 7041 ;; 7042 esac 7043 fi 7044 fi 7045 rm -rf conftest* 7046 ;; 7047 7048 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7049 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7050 # Find out which ABI we are using. 7051 echo 'int i;' > conftest.$ac_ext 7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7053 (eval $ac_compile) 2>&5 7054 ac_status=$? 7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7056 test $ac_status = 0; }; then 7057 case `/usr/bin/file conftest.o` in 7058 *32-bit*) 7059 case $host in 7060 x86_64-*kfreebsd*-gnu) 7061 LD="${LD-ld} -m elf_i386_fbsd" 7062 ;; 7063 x86_64-*linux*) 7064 case `/usr/bin/file conftest.o` in 7065 *x86-64*) 7066 LD="${LD-ld} -m elf32_x86_64" 7067 ;; 7068 *) 7069 LD="${LD-ld} -m elf_i386" 7070 ;; 7071 esac 7072 ;; 7073 powerpc64le-*linux*) 7074 LD="${LD-ld} -m elf32lppclinux" 7075 ;; 7076 powerpc64-*linux*) 7077 LD="${LD-ld} -m elf32ppclinux" 7078 ;; 7079 s390x-*linux*) 7080 LD="${LD-ld} -m elf_s390" 7081 ;; 7082 sparc64-*linux*) 7083 LD="${LD-ld} -m elf32_sparc" 7084 ;; 7085 esac 7086 ;; 7087 *64-bit*) 7088 case $host in 7089 x86_64-*kfreebsd*-gnu) 7090 LD="${LD-ld} -m elf_x86_64_fbsd" 7091 ;; 7092 x86_64-*linux*) 7093 LD="${LD-ld} -m elf_x86_64" 7094 ;; 7095 powerpcle-*linux*) 7096 LD="${LD-ld} -m elf64lppc" 7097 ;; 7098 powerpc-*linux*) 7099 LD="${LD-ld} -m elf64ppc" 7100 ;; 7101 s390*-*linux*|s390*-*tpf*) 7102 LD="${LD-ld} -m elf64_s390" 7103 ;; 7104 sparc*-*linux*) 7105 LD="${LD-ld} -m elf64_sparc" 7106 ;; 7107 esac 7108 ;; 7109 esac 7110 fi 7111 rm -rf conftest* 7112 ;; 7113 7114 *-*-sco3.2v5*) 7115 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7116 SAVE_CFLAGS="$CFLAGS" 7117 CFLAGS="$CFLAGS -belf" 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7119 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7120 if ${lt_cv_cc_needs_belf+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122 else 7123 ac_ext=c 7124 ac_cpp='$CPP $CPPFLAGS' 7125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7127 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7128 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130 /* end confdefs.h. */ 7131 7132 int 7133 main () 7134 { 7135 7136 ; 7137 return 0; 7138 } 7139 _ACEOF 7140 if ac_fn_c_try_link "$LINENO"; then : 7141 lt_cv_cc_needs_belf=yes 7142 else 7143 lt_cv_cc_needs_belf=no 7144 fi 7145 rm -f core conftest.err conftest.$ac_objext \ 7146 conftest$ac_exeext conftest.$ac_ext 7147 ac_ext=c 7148 ac_cpp='$CPP $CPPFLAGS' 7149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7151 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7152 7153 fi 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7155 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7156 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7158 CFLAGS="$SAVE_CFLAGS" 7159 fi 7160 ;; 7161 sparc*-*solaris*) 7162 # Find out which ABI we are using. 7163 echo 'int i;' > conftest.$ac_ext 7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7165 (eval $ac_compile) 2>&5 7166 ac_status=$? 7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7168 test $ac_status = 0; }; then 7169 case `/usr/bin/file conftest.o` in 7170 *64-bit*) 7171 case $lt_cv_prog_gnu_ld in 7172 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7173 *) 7174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7175 LD="${LD-ld} -64" 7176 fi 7177 ;; 7178 esac 7179 ;; 7180 esac 7181 fi 7182 rm -rf conftest* 7183 ;; 7184 esac 7185 7186 need_locks="$enable_libtool_lock" 7187 7188 7189 case $host_os in 7190 rhapsody* | darwin*) 7191 if test -n "$ac_tool_prefix"; then 7192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195 $as_echo_n "checking for $ac_word... " >&6; } 7196 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198 else 7199 if test -n "$DSYMUTIL"; then 7200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7201 else 7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203 for as_dir in $PATH 7204 do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213 done 7214 done 7215 IFS=$as_save_IFS 7216 7217 fi 7218 fi 7219 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7220 if test -n "$DSYMUTIL"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7222 $as_echo "$DSYMUTIL" >&6; } 7223 else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225 $as_echo "no" >&6; } 7226 fi 7227 7228 7229 fi 7230 if test -z "$ac_cv_prog_DSYMUTIL"; then 7231 ac_ct_DSYMUTIL=$DSYMUTIL 7232 # Extract the first word of "dsymutil", so it can be a program name with args. 7233 set dummy dsymutil; ac_word=$2 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7235 $as_echo_n "checking for $ac_word... " >&6; } 7236 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238 else 7239 if test -n "$ac_ct_DSYMUTIL"; then 7240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7241 else 7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7243 for as_dir in $PATH 7244 do 7245 IFS=$as_save_IFS 7246 test -z "$as_dir" && as_dir=. 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253 done 7254 done 7255 IFS=$as_save_IFS 7256 7257 fi 7258 fi 7259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7260 if test -n "$ac_ct_DSYMUTIL"; then 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7262 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7263 else 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7265 $as_echo "no" >&6; } 7266 fi 7267 7268 if test "x$ac_ct_DSYMUTIL" = x; then 7269 DSYMUTIL=":" 7270 else 7271 case $cross_compiling:$ac_tool_warned in 7272 yes:) 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7275 ac_tool_warned=yes ;; 7276 esac 7277 DSYMUTIL=$ac_ct_DSYMUTIL 7278 fi 7279 else 7280 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7281 fi 7282 7283 if test -n "$ac_tool_prefix"; then 7284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287 $as_echo_n "checking for $ac_word... " >&6; } 7288 if ${ac_cv_prog_NMEDIT+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290 else 7291 if test -n "$NMEDIT"; then 7292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7293 else 7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295 for as_dir in $PATH 7296 do 7297 IFS=$as_save_IFS 7298 test -z "$as_dir" && as_dir=. 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7303 break 2 7304 fi 7305 done 7306 done 7307 IFS=$as_save_IFS 7308 7309 fi 7310 fi 7311 NMEDIT=$ac_cv_prog_NMEDIT 7312 if test -n "$NMEDIT"; then 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7314 $as_echo "$NMEDIT" >&6; } 7315 else 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317 $as_echo "no" >&6; } 7318 fi 7319 7320 7321 fi 7322 if test -z "$ac_cv_prog_NMEDIT"; then 7323 ac_ct_NMEDIT=$NMEDIT 7324 # Extract the first word of "nmedit", so it can be a program name with args. 7325 set dummy nmedit; ac_word=$2 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327 $as_echo_n "checking for $ac_word... " >&6; } 7328 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330 else 7331 if test -n "$ac_ct_NMEDIT"; then 7332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7333 else 7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335 for as_dir in $PATH 7336 do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7341 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345 done 7346 done 7347 IFS=$as_save_IFS 7348 7349 fi 7350 fi 7351 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7352 if test -n "$ac_ct_NMEDIT"; then 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7354 $as_echo "$ac_ct_NMEDIT" >&6; } 7355 else 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7357 $as_echo "no" >&6; } 7358 fi 7359 7360 if test "x$ac_ct_NMEDIT" = x; then 7361 NMEDIT=":" 7362 else 7363 case $cross_compiling:$ac_tool_warned in 7364 yes:) 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7367 ac_tool_warned=yes ;; 7368 esac 7369 NMEDIT=$ac_ct_NMEDIT 7370 fi 7371 else 7372 NMEDIT="$ac_cv_prog_NMEDIT" 7373 fi 7374 7375 if test -n "$ac_tool_prefix"; then 7376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7377 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7379 $as_echo_n "checking for $ac_word... " >&6; } 7380 if ${ac_cv_prog_LIPO+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382 else 7383 if test -n "$LIPO"; then 7384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7385 else 7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387 for as_dir in $PATH 7388 do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397 done 7398 done 7399 IFS=$as_save_IFS 7400 7401 fi 7402 fi 7403 LIPO=$ac_cv_prog_LIPO 7404 if test -n "$LIPO"; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7406 $as_echo "$LIPO" >&6; } 7407 else 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409 $as_echo "no" >&6; } 7410 fi 7411 7412 7413 fi 7414 if test -z "$ac_cv_prog_LIPO"; then 7415 ac_ct_LIPO=$LIPO 7416 # Extract the first word of "lipo", so it can be a program name with args. 7417 set dummy lipo; ac_word=$2 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419 $as_echo_n "checking for $ac_word... " >&6; } 7420 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7421 $as_echo_n "(cached) " >&6 7422 else 7423 if test -n "$ac_ct_LIPO"; then 7424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7425 else 7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427 for as_dir in $PATH 7428 do 7429 IFS=$as_save_IFS 7430 test -z "$as_dir" && as_dir=. 7431 for ac_exec_ext in '' $ac_executable_extensions; do 7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7433 ac_cv_prog_ac_ct_LIPO="lipo" 7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7435 break 2 7436 fi 7437 done 7438 done 7439 IFS=$as_save_IFS 7440 7441 fi 7442 fi 7443 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7444 if test -n "$ac_ct_LIPO"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7446 $as_echo "$ac_ct_LIPO" >&6; } 7447 else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449 $as_echo "no" >&6; } 7450 fi 7451 7452 if test "x$ac_ct_LIPO" = x; then 7453 LIPO=":" 7454 else 7455 case $cross_compiling:$ac_tool_warned in 7456 yes:) 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7459 ac_tool_warned=yes ;; 7460 esac 7461 LIPO=$ac_ct_LIPO 7462 fi 7463 else 7464 LIPO="$ac_cv_prog_LIPO" 7465 fi 7466 7467 if test -n "$ac_tool_prefix"; then 7468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7469 set dummy ${ac_tool_prefix}otool; ac_word=$2 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471 $as_echo_n "checking for $ac_word... " >&6; } 7472 if ${ac_cv_prog_OTOOL+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474 else 7475 if test -n "$OTOOL"; then 7476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7477 else 7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479 for as_dir in $PATH 7480 do 7481 IFS=$as_save_IFS 7482 test -z "$as_dir" && as_dir=. 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489 done 7490 done 7491 IFS=$as_save_IFS 7492 7493 fi 7494 fi 7495 OTOOL=$ac_cv_prog_OTOOL 7496 if test -n "$OTOOL"; then 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7498 $as_echo "$OTOOL" >&6; } 7499 else 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7501 $as_echo "no" >&6; } 7502 fi 7503 7504 7505 fi 7506 if test -z "$ac_cv_prog_OTOOL"; then 7507 ac_ct_OTOOL=$OTOOL 7508 # Extract the first word of "otool", so it can be a program name with args. 7509 set dummy otool; ac_word=$2 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7511 $as_echo_n "checking for $ac_word... " >&6; } 7512 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514 else 7515 if test -n "$ac_ct_OTOOL"; then 7516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7517 else 7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519 for as_dir in $PATH 7520 do 7521 IFS=$as_save_IFS 7522 test -z "$as_dir" && as_dir=. 7523 for ac_exec_ext in '' $ac_executable_extensions; do 7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7525 ac_cv_prog_ac_ct_OTOOL="otool" 7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7527 break 2 7528 fi 7529 done 7530 done 7531 IFS=$as_save_IFS 7532 7533 fi 7534 fi 7535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7536 if test -n "$ac_ct_OTOOL"; then 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7538 $as_echo "$ac_ct_OTOOL" >&6; } 7539 else 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7541 $as_echo "no" >&6; } 7542 fi 7543 7544 if test "x$ac_ct_OTOOL" = x; then 7545 OTOOL=":" 7546 else 7547 case $cross_compiling:$ac_tool_warned in 7548 yes:) 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7551 ac_tool_warned=yes ;; 7552 esac 7553 OTOOL=$ac_ct_OTOOL 7554 fi 7555 else 7556 OTOOL="$ac_cv_prog_OTOOL" 7557 fi 7558 7559 if test -n "$ac_tool_prefix"; then 7560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7561 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7563 $as_echo_n "checking for $ac_word... " >&6; } 7564 if ${ac_cv_prog_OTOOL64+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566 else 7567 if test -n "$OTOOL64"; then 7568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7569 else 7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571 for as_dir in $PATH 7572 do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581 done 7582 done 7583 IFS=$as_save_IFS 7584 7585 fi 7586 fi 7587 OTOOL64=$ac_cv_prog_OTOOL64 7588 if test -n "$OTOOL64"; then 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7590 $as_echo "$OTOOL64" >&6; } 7591 else 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7593 $as_echo "no" >&6; } 7594 fi 7595 7596 7597 fi 7598 if test -z "$ac_cv_prog_OTOOL64"; then 7599 ac_ct_OTOOL64=$OTOOL64 7600 # Extract the first word of "otool64", so it can be a program name with args. 7601 set dummy otool64; ac_word=$2 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603 $as_echo_n "checking for $ac_word... " >&6; } 7604 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606 else 7607 if test -n "$ac_ct_OTOOL64"; then 7608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7609 else 7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611 for as_dir in $PATH 7612 do 7613 IFS=$as_save_IFS 7614 test -z "$as_dir" && as_dir=. 7615 for ac_exec_ext in '' $ac_executable_extensions; do 7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7617 ac_cv_prog_ac_ct_OTOOL64="otool64" 7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 break 2 7620 fi 7621 done 7622 done 7623 IFS=$as_save_IFS 7624 7625 fi 7626 fi 7627 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7628 if test -n "$ac_ct_OTOOL64"; then 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7630 $as_echo "$ac_ct_OTOOL64" >&6; } 7631 else 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7633 $as_echo "no" >&6; } 7634 fi 7635 7636 if test "x$ac_ct_OTOOL64" = x; then 7637 OTOOL64=":" 7638 else 7639 case $cross_compiling:$ac_tool_warned in 7640 yes:) 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7643 ac_tool_warned=yes ;; 7644 esac 7645 OTOOL64=$ac_ct_OTOOL64 7646 fi 7647 else 7648 OTOOL64="$ac_cv_prog_OTOOL64" 7649 fi 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7678 $as_echo_n "checking for -single_module linker flag... " >&6; } 7679 if ${lt_cv_apple_cc_single_mod+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681 else 7682 lt_cv_apple_cc_single_mod=no 7683 if test -z "${LT_MULTI_MODULE}"; then 7684 # By default we will add the -single_module flag. You can override 7685 # by either setting the environment variable LT_MULTI_MODULE 7686 # non-empty at configure time, or by adding -multi_module to the 7687 # link flags. 7688 rm -rf libconftest.dylib* 7689 echo "int foo(void){return 1;}" > conftest.c 7690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7691 -dynamiclib -Wl,-single_module conftest.c" >&5 7692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7694 _lt_result=$? 7695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7696 lt_cv_apple_cc_single_mod=yes 7697 else 7698 cat conftest.err >&5 7699 fi 7700 rm -rf libconftest.dylib* 7701 rm -f conftest.* 7702 fi 7703 fi 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7705 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7708 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710 else 7711 lt_cv_ld_exported_symbols_list=no 7712 save_LDFLAGS=$LDFLAGS 7713 echo "_main" > conftest.sym 7714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716 /* end confdefs.h. */ 7717 7718 int 7719 main () 7720 { 7721 7722 ; 7723 return 0; 7724 } 7725 _ACEOF 7726 if ac_fn_c_try_link "$LINENO"; then : 7727 lt_cv_ld_exported_symbols_list=yes 7728 else 7729 lt_cv_ld_exported_symbols_list=no 7730 fi 7731 rm -f core conftest.err conftest.$ac_objext \ 7732 conftest$ac_exeext conftest.$ac_ext 7733 LDFLAGS="$save_LDFLAGS" 7734 7735 fi 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7737 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7739 $as_echo_n "checking for -force_load linker flag... " >&6; } 7740 if ${lt_cv_ld_force_load+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742 else 7743 lt_cv_ld_force_load=no 7744 cat > conftest.c << _LT_EOF 7745 int forced_loaded() { return 2;} 7746 _LT_EOF 7747 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7748 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7749 echo "$AR cru libconftest.a conftest.o" >&5 7750 $AR cru libconftest.a conftest.o 2>&5 7751 cat > conftest.c << _LT_EOF 7752 int main() { return 0;} 7753 _LT_EOF 7754 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7755 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7756 _lt_result=$? 7757 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7758 lt_cv_ld_force_load=yes 7759 else 7760 cat conftest.err >&5 7761 fi 7762 rm -f conftest.err libconftest.a conftest conftest.c 7763 rm -rf conftest.dSYM 7764 7765 fi 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7767 $as_echo "$lt_cv_ld_force_load" >&6; } 7768 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7769 # build without first building modern cctools / linker. 7770 case $host_cpu-$host_os in 7771 *-rhapsody* | *-darwin1.[012]) 7772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7773 *-darwin1.*) 7774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7775 *-darwin*) 7776 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7777 # deployment target is forced to an earlier version. 7778 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7779 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7780 ;; 7781 10.[012][,.]*) 7782 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7783 ;; 7784 *) 7785 ;; 7786 esac 7787 ;; 7788 esac 7789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7790 _lt_dar_single_mod='$single_module' 7791 fi 7792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7794 else 7795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7796 fi 7797 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7798 _lt_dsymutil='~$DSYMUTIL $lib || :' 7799 else 7800 _lt_dsymutil= 7801 fi 7802 ;; 7803 esac 7804 7805 for ac_header in dlfcn.h 7806 do : 7807 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7808 " 7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7810 cat >>confdefs.h <<_ACEOF 7811 #define HAVE_DLFCN_H 1 7812 _ACEOF 7813 7814 fi 7815 7816 done 7817 7818 7819 7820 7821 7822 # Set options 7823 7824 7825 7826 enable_dlopen=no 7827 7828 7829 enable_win32_dll=no 7830 7831 7832 7833 # Check whether --enable-static was given. 7834 if test "${enable_static+set}" = set; then : 7835 enableval=$enable_static; p=${PACKAGE-default} 7836 case $enableval in 7837 yes) enable_static=yes ;; 7838 no) enable_static=no ;; 7839 *) 7840 enable_static=no 7841 # Look at the argument we got. We use all the common list separators. 7842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7843 for pkg in $enableval; do 7844 IFS="$lt_save_ifs" 7845 if test "X$pkg" = "X$p"; then 7846 enable_static=yes 7847 fi 7848 done 7849 IFS="$lt_save_ifs" 7850 ;; 7851 esac 7852 else 7853 enable_static=yes 7854 fi 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 # Check whether --with-pic was given. 7866 if test "${with_pic+set}" = set; then : 7867 withval=$with_pic; pic_mode="$withval" 7868 else 7869 pic_mode=default 7870 fi 7871 7872 7873 test -z "$pic_mode" && pic_mode=default 7874 7875 7876 7877 7878 7879 7880 7881 # Check whether --enable-fast-install was given. 7882 if test "${enable_fast_install+set}" = set; then : 7883 enableval=$enable_fast_install; p=${PACKAGE-default} 7884 case $enableval in 7885 yes) enable_fast_install=yes ;; 7886 no) enable_fast_install=no ;; 7887 *) 7888 enable_fast_install=no 7889 # Look at the argument we got. We use all the common list separators. 7890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7891 for pkg in $enableval; do 7892 IFS="$lt_save_ifs" 7893 if test "X$pkg" = "X$p"; then 7894 enable_fast_install=yes 7895 fi 7896 done 7897 IFS="$lt_save_ifs" 7898 ;; 7899 esac 7900 else 7901 enable_fast_install=yes 7902 fi 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 # This can be used to rebuild libtool when needed 7915 LIBTOOL_DEPS="$ltmain" 7916 7917 # Always use our own libtool. 7918 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 test -z "$LN_S" && LN_S="ln -s" 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 if test -n "${ZSH_VERSION+set}" ; then 7961 setopt NO_GLOB_SUBST 7962 fi 7963 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7965 $as_echo_n "checking for objdir... " >&6; } 7966 if ${lt_cv_objdir+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968 else 7969 rm -f .libs 2>/dev/null 7970 mkdir .libs 2>/dev/null 7971 if test -d .libs; then 7972 lt_cv_objdir=.libs 7973 else 7974 # MS-DOS does not allow filenames that begin with a dot. 7975 lt_cv_objdir=_libs 7976 fi 7977 rmdir .libs 2>/dev/null 7978 fi 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7980 $as_echo "$lt_cv_objdir" >&6; } 7981 objdir=$lt_cv_objdir 7982 7983 7984 7985 7986 7987 cat >>confdefs.h <<_ACEOF 7988 #define LT_OBJDIR "$lt_cv_objdir/" 7989 _ACEOF 7990 7991 7992 7993 7994 case $host_os in 7995 aix3*) 7996 # AIX sometimes has problems with the GCC collect2 program. For some 7997 # reason, if we set the COLLECT_NAMES environment variable, the problems 7998 # vanish in a puff of smoke. 7999 if test "X${COLLECT_NAMES+set}" != Xset; then 8000 COLLECT_NAMES= 8001 export COLLECT_NAMES 8002 fi 8003 ;; 8004 esac 8005 8006 # Global variables: 8007 ofile=libtool 8008 can_build_shared=yes 8009 8010 # All known linkers require a `.a' archive for static linking (except MSVC, 8011 # which needs '.lib'). 8012 libext=a 8013 8014 with_gnu_ld="$lt_cv_prog_gnu_ld" 8015 8016 old_CC="$CC" 8017 old_CFLAGS="$CFLAGS" 8018 8019 # Set sane defaults for various variables 8020 test -z "$CC" && CC=cc 8021 test -z "$LTCC" && LTCC=$CC 8022 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8023 test -z "$LD" && LD=ld 8024 test -z "$ac_objext" && ac_objext=o 8025 8026 for cc_temp in $compiler""; do 8027 case $cc_temp in 8028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8030 \-*) ;; 8031 *) break;; 8032 esac 8033 done 8034 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8035 8036 8037 # Only perform the check for file, if the check method requires it 8038 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8039 case $deplibs_check_method in 8040 file_magic*) 8041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8043 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8044 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046 else 8047 case $MAGIC_CMD in 8048 [\\/*] | ?:[\\/]*) 8049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8050 ;; 8051 *) 8052 lt_save_MAGIC_CMD="$MAGIC_CMD" 8053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8055 for ac_dir in $ac_dummy; do 8056 IFS="$lt_save_ifs" 8057 test -z "$ac_dir" && ac_dir=. 8058 if test -f $ac_dir/${ac_tool_prefix}file; then 8059 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8060 if test -n "$file_magic_test_file"; then 8061 case $deplibs_check_method in 8062 "file_magic "*) 8063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8066 $EGREP "$file_magic_regex" > /dev/null; then 8067 : 8068 else 8069 cat <<_LT_EOF 1>&2 8070 8071 *** Warning: the command libtool uses to detect shared libraries, 8072 *** $file_magic_cmd, produces output that libtool cannot recognize. 8073 *** The result is that libtool may fail to recognize shared libraries 8074 *** as such. This will affect the creation of libtool libraries that 8075 *** depend on shared libraries, but programs linked with such libtool 8076 *** libraries will work regardless of this problem. Nevertheless, you 8077 *** may want to report the problem to your system manager and/or to 8078 *** bug-libtool@gnu.org 8079 8080 _LT_EOF 8081 fi ;; 8082 esac 8083 fi 8084 break 8085 fi 8086 done 8087 IFS="$lt_save_ifs" 8088 MAGIC_CMD="$lt_save_MAGIC_CMD" 8089 ;; 8090 esac 8091 fi 8092 8093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8094 if test -n "$MAGIC_CMD"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8096 $as_echo "$MAGIC_CMD" >&6; } 8097 else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099 $as_echo "no" >&6; } 8100 fi 8101 8102 8103 8104 8105 8106 if test -z "$lt_cv_path_MAGIC_CMD"; then 8107 if test -n "$ac_tool_prefix"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8109 $as_echo_n "checking for file... " >&6; } 8110 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112 else 8113 case $MAGIC_CMD in 8114 [\\/*] | ?:[\\/]*) 8115 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8116 ;; 8117 *) 8118 lt_save_MAGIC_CMD="$MAGIC_CMD" 8119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8121 for ac_dir in $ac_dummy; do 8122 IFS="$lt_save_ifs" 8123 test -z "$ac_dir" && ac_dir=. 8124 if test -f $ac_dir/file; then 8125 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8126 if test -n "$file_magic_test_file"; then 8127 case $deplibs_check_method in 8128 "file_magic "*) 8129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8132 $EGREP "$file_magic_regex" > /dev/null; then 8133 : 8134 else 8135 cat <<_LT_EOF 1>&2 8136 8137 *** Warning: the command libtool uses to detect shared libraries, 8138 *** $file_magic_cmd, produces output that libtool cannot recognize. 8139 *** The result is that libtool may fail to recognize shared libraries 8140 *** as such. This will affect the creation of libtool libraries that 8141 *** depend on shared libraries, but programs linked with such libtool 8142 *** libraries will work regardless of this problem. Nevertheless, you 8143 *** may want to report the problem to your system manager and/or to 8144 *** bug-libtool@gnu.org 8145 8146 _LT_EOF 8147 fi ;; 8148 esac 8149 fi 8150 break 8151 fi 8152 done 8153 IFS="$lt_save_ifs" 8154 MAGIC_CMD="$lt_save_MAGIC_CMD" 8155 ;; 8156 esac 8157 fi 8158 8159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8160 if test -n "$MAGIC_CMD"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8162 $as_echo "$MAGIC_CMD" >&6; } 8163 else 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8165 $as_echo "no" >&6; } 8166 fi 8167 8168 8169 else 8170 MAGIC_CMD=: 8171 fi 8172 fi 8173 8174 fi 8175 ;; 8176 esac 8177 8178 # Use C for the default configuration in the libtool script 8179 8180 lt_save_CC="$CC" 8181 ac_ext=c 8182 ac_cpp='$CPP $CPPFLAGS' 8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8186 8187 8188 # Source file extension for C test sources. 8189 ac_ext=c 8190 8191 # Object file extension for compiled C test sources. 8192 objext=o 8193 objext=$objext 8194 8195 # Code to be used in simple compile tests 8196 lt_simple_compile_test_code="int some_variable = 0;" 8197 8198 # Code to be used in simple link tests 8199 lt_simple_link_test_code='int main(){return(0);}' 8200 8201 8202 8203 8204 8205 8206 8207 # If no C compiler was specified, use CC. 8208 LTCC=${LTCC-"$CC"} 8209 8210 # If no C compiler flags were specified, use CFLAGS. 8211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8212 8213 # Allow CC to be a program name with arguments. 8214 compiler=$CC 8215 8216 # Save the default compiler, since it gets overwritten when the other 8217 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8218 compiler_DEFAULT=$CC 8219 8220 # save warnings/boilerplate of simple test code 8221 ac_outfile=conftest.$ac_objext 8222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8224 _lt_compiler_boilerplate=`cat conftest.err` 8225 $RM conftest* 8226 8227 ac_outfile=conftest.$ac_objext 8228 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8230 _lt_linker_boilerplate=`cat conftest.err` 8231 $RM -r conftest* 8232 8233 8234 ## CAVEAT EMPTOR: 8235 ## There is no encapsulation within the following macros, do not change 8236 ## the running order or otherwise move them around unless you know exactly 8237 ## what you are doing... 8238 if test -n "$compiler"; then 8239 8240 lt_prog_compiler_no_builtin_flag= 8241 8242 if test "$GCC" = yes; then 8243 case $cc_basename in 8244 nvcc*) 8245 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8246 *) 8247 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8248 esac 8249 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8251 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8252 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254 else 8255 lt_cv_prog_compiler_rtti_exceptions=no 8256 ac_outfile=conftest.$ac_objext 8257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8258 lt_compiler_flag="-fno-rtti -fno-exceptions" 8259 # Insert the option either (1) after the last *FLAGS variable, or 8260 # (2) before a word containing "conftest.", or (3) at the end. 8261 # Note that $ac_compile itself does not contain backslashes and begins 8262 # with a dollar sign (not a hyphen), so the echo should work correctly. 8263 # The option is referenced via a variable to avoid confusing sed. 8264 lt_compile=`echo "$ac_compile" | $SED \ 8265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8267 -e 's:$: $lt_compiler_flag:'` 8268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8269 (eval "$lt_compile" 2>conftest.err) 8270 ac_status=$? 8271 cat conftest.err >&5 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 if (exit $ac_status) && test -s "$ac_outfile"; then 8274 # The compiler can only warn and ignore the option if not recognized 8275 # So say no if there are warnings other than the usual output. 8276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8279 lt_cv_prog_compiler_rtti_exceptions=yes 8280 fi 8281 fi 8282 $RM conftest* 8283 8284 fi 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8286 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8287 8288 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8289 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8290 else 8291 : 8292 fi 8293 8294 fi 8295 8296 8297 8298 8299 8300 8301 lt_prog_compiler_wl= 8302 lt_prog_compiler_pic= 8303 lt_prog_compiler_static= 8304 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8306 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8307 8308 if test "$GCC" = yes; then 8309 lt_prog_compiler_wl='-Wl,' 8310 lt_prog_compiler_static='-static' 8311 8312 case $host_os in 8313 aix*) 8314 # All AIX code is PIC. 8315 if test "$host_cpu" = ia64; then 8316 # AIX 5 now supports IA64 processor 8317 lt_prog_compiler_static='-Bstatic' 8318 fi 8319 lt_prog_compiler_pic='-fPIC' 8320 ;; 8321 8322 amigaos*) 8323 case $host_cpu in 8324 powerpc) 8325 # see comment about AmigaOS4 .so support 8326 lt_prog_compiler_pic='-fPIC' 8327 ;; 8328 m68k) 8329 # FIXME: we need at least 68020 code to build shared libraries, but 8330 # adding the `-m68020' flag to GCC prevents building anything better, 8331 # like `-m68040'. 8332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8333 ;; 8334 esac 8335 ;; 8336 8337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8338 # PIC is the default for these OSes. 8339 ;; 8340 8341 mingw* | cygwin* | pw32* | os2* | cegcc*) 8342 # This hack is so that the source file can tell whether it is being 8343 # built for inclusion in a dll (and should export symbols for example). 8344 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8345 # (--disable-auto-import) libraries 8346 lt_prog_compiler_pic='-DDLL_EXPORT' 8347 ;; 8348 8349 darwin* | rhapsody*) 8350 # PIC is the default on this platform 8351 # Common symbols not allowed in MH_DYLIB files 8352 lt_prog_compiler_pic='-fno-common' 8353 ;; 8354 8355 haiku*) 8356 # PIC is the default for Haiku. 8357 # The "-static" flag exists, but is broken. 8358 lt_prog_compiler_static= 8359 ;; 8360 8361 hpux*) 8362 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8363 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8364 # sets the default TLS model and affects inlining. 8365 case $host_cpu in 8366 hppa*64*) 8367 # +Z the default 8368 ;; 8369 *) 8370 lt_prog_compiler_pic='-fPIC' 8371 ;; 8372 esac 8373 ;; 8374 8375 interix[3-9]*) 8376 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8377 # Instead, we relocate shared libraries at runtime. 8378 ;; 8379 8380 msdosdjgpp*) 8381 # Just because we use GCC doesn't mean we suddenly get shared libraries 8382 # on systems that don't support them. 8383 lt_prog_compiler_can_build_shared=no 8384 enable_shared=no 8385 ;; 8386 8387 *nto* | *qnx*) 8388 # QNX uses GNU C++, but need to define -shared option too, otherwise 8389 # it will coredump. 8390 lt_prog_compiler_pic='-fPIC -shared' 8391 ;; 8392 8393 sysv4*MP*) 8394 if test -d /usr/nec; then 8395 lt_prog_compiler_pic=-Kconform_pic 8396 fi 8397 ;; 8398 8399 *) 8400 lt_prog_compiler_pic='-fPIC' 8401 ;; 8402 esac 8403 8404 case $cc_basename in 8405 nvcc*) # Cuda Compiler Driver 2.2 8406 lt_prog_compiler_wl='-Xlinker ' 8407 lt_prog_compiler_pic='-Xcompiler -fPIC' 8408 ;; 8409 esac 8410 else 8411 # PORTME Check for flag to pass linker flags through the system compiler. 8412 case $host_os in 8413 aix*) 8414 lt_prog_compiler_wl='-Wl,' 8415 if test "$host_cpu" = ia64; then 8416 # AIX 5 now supports IA64 processor 8417 lt_prog_compiler_static='-Bstatic' 8418 else 8419 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8420 fi 8421 ;; 8422 8423 mingw* | cygwin* | pw32* | os2* | cegcc*) 8424 # This hack is so that the source file can tell whether it is being 8425 # built for inclusion in a dll (and should export symbols for example). 8426 lt_prog_compiler_pic='-DDLL_EXPORT' 8427 ;; 8428 8429 hpux9* | hpux10* | hpux11*) 8430 lt_prog_compiler_wl='-Wl,' 8431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8432 # not for PA HP-UX. 8433 case $host_cpu in 8434 hppa*64*|ia64*) 8435 # +Z the default 8436 ;; 8437 *) 8438 lt_prog_compiler_pic='+Z' 8439 ;; 8440 esac 8441 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8442 lt_prog_compiler_static='${wl}-a ${wl}archive' 8443 ;; 8444 8445 irix5* | irix6* | nonstopux*) 8446 lt_prog_compiler_wl='-Wl,' 8447 # PIC (with -KPIC) is the default. 8448 lt_prog_compiler_static='-non_shared' 8449 ;; 8450 8451 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8452 case $cc_basename in 8453 # old Intel for x86_64 which still supported -KPIC. 8454 ecc*) 8455 lt_prog_compiler_wl='-Wl,' 8456 lt_prog_compiler_pic='-KPIC' 8457 lt_prog_compiler_static='-static' 8458 ;; 8459 # icc used to be incompatible with GCC. 8460 # ICC 10 doesn't accept -KPIC any more. 8461 icc* | ifort*) 8462 lt_prog_compiler_wl='-Wl,' 8463 lt_prog_compiler_pic='-fPIC' 8464 lt_prog_compiler_static='-static' 8465 ;; 8466 # Lahey Fortran 8.1. 8467 lf95*) 8468 lt_prog_compiler_wl='-Wl,' 8469 lt_prog_compiler_pic='--shared' 8470 lt_prog_compiler_static='--static' 8471 ;; 8472 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8473 # Portland Group compilers (*not* the Pentium gcc compiler, 8474 # which looks to be a dead project) 8475 lt_prog_compiler_wl='-Wl,' 8476 lt_prog_compiler_pic='-fpic' 8477 lt_prog_compiler_static='-Bstatic' 8478 ;; 8479 ccc*) 8480 lt_prog_compiler_wl='-Wl,' 8481 # All Alpha code is PIC. 8482 lt_prog_compiler_static='-non_shared' 8483 ;; 8484 xl* | bgxl* | bgf* | mpixl*) 8485 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8486 lt_prog_compiler_wl='-Wl,' 8487 lt_prog_compiler_pic='-qpic' 8488 lt_prog_compiler_static='-qstaticlink' 8489 ;; 8490 *) 8491 case `$CC -V 2>&1 | sed 5q` in 8492 *Sun\ F* | *Sun*Fortran*) 8493 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8494 lt_prog_compiler_pic='-KPIC' 8495 lt_prog_compiler_static='-Bstatic' 8496 lt_prog_compiler_wl='' 8497 ;; 8498 *Sun\ C*) 8499 # Sun C 5.9 8500 lt_prog_compiler_pic='-KPIC' 8501 lt_prog_compiler_static='-Bstatic' 8502 lt_prog_compiler_wl='-Wl,' 8503 ;; 8504 esac 8505 ;; 8506 esac 8507 ;; 8508 8509 newsos6) 8510 lt_prog_compiler_pic='-KPIC' 8511 lt_prog_compiler_static='-Bstatic' 8512 ;; 8513 8514 *nto* | *qnx*) 8515 # QNX uses GNU C++, but need to define -shared option too, otherwise 8516 # it will coredump. 8517 lt_prog_compiler_pic='-fPIC -shared' 8518 ;; 8519 8520 osf3* | osf4* | osf5*) 8521 lt_prog_compiler_wl='-Wl,' 8522 # All OSF/1 code is PIC. 8523 lt_prog_compiler_static='-non_shared' 8524 ;; 8525 8526 rdos*) 8527 lt_prog_compiler_static='-non_shared' 8528 ;; 8529 8530 solaris*) 8531 lt_prog_compiler_pic='-KPIC' 8532 lt_prog_compiler_static='-Bstatic' 8533 case $cc_basename in 8534 f77* | f90* | f95*) 8535 lt_prog_compiler_wl='-Qoption ld ';; 8536 *) 8537 lt_prog_compiler_wl='-Wl,';; 8538 esac 8539 ;; 8540 8541 sunos4*) 8542 lt_prog_compiler_wl='-Qoption ld ' 8543 lt_prog_compiler_pic='-PIC' 8544 lt_prog_compiler_static='-Bstatic' 8545 ;; 8546 8547 sysv4 | sysv4.2uw2* | sysv4.3*) 8548 lt_prog_compiler_wl='-Wl,' 8549 lt_prog_compiler_pic='-KPIC' 8550 lt_prog_compiler_static='-Bstatic' 8551 ;; 8552 8553 sysv4*MP*) 8554 if test -d /usr/nec ;then 8555 lt_prog_compiler_pic='-Kconform_pic' 8556 lt_prog_compiler_static='-Bstatic' 8557 fi 8558 ;; 8559 8560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8561 lt_prog_compiler_wl='-Wl,' 8562 lt_prog_compiler_pic='-KPIC' 8563 lt_prog_compiler_static='-Bstatic' 8564 ;; 8565 8566 unicos*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_can_build_shared=no 8569 ;; 8570 8571 uts4*) 8572 lt_prog_compiler_pic='-pic' 8573 lt_prog_compiler_static='-Bstatic' 8574 ;; 8575 8576 *) 8577 lt_prog_compiler_can_build_shared=no 8578 ;; 8579 esac 8580 fi 8581 8582 case $host_os in 8583 # For platforms which do not support PIC, -DPIC is meaningless: 8584 *djgpp*) 8585 lt_prog_compiler_pic= 8586 ;; 8587 *) 8588 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8589 ;; 8590 esac 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8592 $as_echo "$lt_prog_compiler_pic" >&6; } 8593 8594 8595 8596 8597 8598 8599 # 8600 # Check to make sure the PIC flag actually works. 8601 # 8602 if test -n "$lt_prog_compiler_pic"; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8604 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8605 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607 else 8608 lt_cv_prog_compiler_pic_works=no 8609 ac_outfile=conftest.$ac_objext 8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8611 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8612 # Insert the option either (1) after the last *FLAGS variable, or 8613 # (2) before a word containing "conftest.", or (3) at the end. 8614 # Note that $ac_compile itself does not contain backslashes and begins 8615 # with a dollar sign (not a hyphen), so the echo should work correctly. 8616 # The option is referenced via a variable to avoid confusing sed. 8617 lt_compile=`echo "$ac_compile" | $SED \ 8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8620 -e 's:$: $lt_compiler_flag:'` 8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8622 (eval "$lt_compile" 2>conftest.err) 8623 ac_status=$? 8624 cat conftest.err >&5 8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 if (exit $ac_status) && test -s "$ac_outfile"; then 8627 # The compiler can only warn and ignore the option if not recognized 8628 # So say no if there are warnings other than the usual output. 8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8632 lt_cv_prog_compiler_pic_works=yes 8633 fi 8634 fi 8635 $RM conftest* 8636 8637 fi 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8639 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8640 8641 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8642 case $lt_prog_compiler_pic in 8643 "" | " "*) ;; 8644 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8645 esac 8646 else 8647 lt_prog_compiler_pic= 8648 lt_prog_compiler_can_build_shared=no 8649 fi 8650 8651 fi 8652 8653 8654 8655 8656 8657 8658 # 8659 # Check to make sure the static flag actually works. 8660 # 8661 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8663 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8664 if ${lt_cv_prog_compiler_static_works+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666 else 8667 lt_cv_prog_compiler_static_works=no 8668 save_LDFLAGS="$LDFLAGS" 8669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8670 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8672 # The linker can only warn and ignore the option if not recognized 8673 # So say no if there are warnings 8674 if test -s conftest.err; then 8675 # Append any errors to the config.log. 8676 cat conftest.err 1>&5 8677 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8679 if diff conftest.exp conftest.er2 >/dev/null; then 8680 lt_cv_prog_compiler_static_works=yes 8681 fi 8682 else 8683 lt_cv_prog_compiler_static_works=yes 8684 fi 8685 fi 8686 $RM -r conftest* 8687 LDFLAGS="$save_LDFLAGS" 8688 8689 fi 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8691 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8692 8693 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8694 : 8695 else 8696 lt_prog_compiler_static= 8697 fi 8698 8699 8700 8701 8702 8703 8704 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8707 if ${lt_cv_prog_compiler_c_o+:} false; then : 8708 $as_echo_n "(cached) " >&6 8709 else 8710 lt_cv_prog_compiler_c_o=no 8711 $RM -r conftest 2>/dev/null 8712 mkdir conftest 8713 cd conftest 8714 mkdir out 8715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8716 8717 lt_compiler_flag="-o out/conftest2.$ac_objext" 8718 # Insert the option either (1) after the last *FLAGS variable, or 8719 # (2) before a word containing "conftest.", or (3) at the end. 8720 # Note that $ac_compile itself does not contain backslashes and begins 8721 # with a dollar sign (not a hyphen), so the echo should work correctly. 8722 lt_compile=`echo "$ac_compile" | $SED \ 8723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8725 -e 's:$: $lt_compiler_flag:'` 8726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8727 (eval "$lt_compile" 2>out/conftest.err) 8728 ac_status=$? 8729 cat out/conftest.err >&5 8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8731 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8732 then 8733 # The compiler can only warn and ignore the option if not recognized 8734 # So say no if there are warnings 8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8738 lt_cv_prog_compiler_c_o=yes 8739 fi 8740 fi 8741 chmod u+w . 2>&5 8742 $RM conftest* 8743 # SGI C++ compiler will create directory out/ii_files/ for 8744 # template instantiation 8745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8746 $RM out/* && rmdir out 8747 cd .. 8748 $RM -r conftest 8749 $RM conftest* 8750 8751 fi 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8753 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8754 8755 8756 8757 8758 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8761 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8762 if ${lt_cv_prog_compiler_c_o+:} false; then : 8763 $as_echo_n "(cached) " >&6 8764 else 8765 lt_cv_prog_compiler_c_o=no 8766 $RM -r conftest 2>/dev/null 8767 mkdir conftest 8768 cd conftest 8769 mkdir out 8770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8771 8772 lt_compiler_flag="-o out/conftest2.$ac_objext" 8773 # Insert the option either (1) after the last *FLAGS variable, or 8774 # (2) before a word containing "conftest.", or (3) at the end. 8775 # Note that $ac_compile itself does not contain backslashes and begins 8776 # with a dollar sign (not a hyphen), so the echo should work correctly. 8777 lt_compile=`echo "$ac_compile" | $SED \ 8778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8780 -e 's:$: $lt_compiler_flag:'` 8781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8782 (eval "$lt_compile" 2>out/conftest.err) 8783 ac_status=$? 8784 cat out/conftest.err >&5 8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8787 then 8788 # The compiler can only warn and ignore the option if not recognized 8789 # So say no if there are warnings 8790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8793 lt_cv_prog_compiler_c_o=yes 8794 fi 8795 fi 8796 chmod u+w . 2>&5 8797 $RM conftest* 8798 # SGI C++ compiler will create directory out/ii_files/ for 8799 # template instantiation 8800 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8801 $RM out/* && rmdir out 8802 cd .. 8803 $RM -r conftest 8804 $RM conftest* 8805 8806 fi 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8808 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8809 8810 8811 8812 8813 hard_links="nottested" 8814 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8815 # do not overwrite the value of need_locks provided by the user 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8817 $as_echo_n "checking if we can lock with hard links... " >&6; } 8818 hard_links=yes 8819 $RM conftest* 8820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8821 touch conftest.a 8822 ln conftest.a conftest.b 2>&5 || hard_links=no 8823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8825 $as_echo "$hard_links" >&6; } 8826 if test "$hard_links" = no; then 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8828 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8829 need_locks=warn 8830 fi 8831 else 8832 need_locks=no 8833 fi 8834 8835 8836 8837 8838 8839 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8841 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8842 8843 runpath_var= 8844 allow_undefined_flag= 8845 always_export_symbols=no 8846 archive_cmds= 8847 archive_expsym_cmds= 8848 compiler_needs_object=no 8849 enable_shared_with_static_runtimes=no 8850 export_dynamic_flag_spec= 8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8852 hardcode_automatic=no 8853 hardcode_direct=no 8854 hardcode_direct_absolute=no 8855 hardcode_libdir_flag_spec= 8856 hardcode_libdir_flag_spec_ld= 8857 hardcode_libdir_separator= 8858 hardcode_minus_L=no 8859 hardcode_shlibpath_var=unsupported 8860 inherit_rpath=no 8861 link_all_deplibs=unknown 8862 module_cmds= 8863 module_expsym_cmds= 8864 old_archive_from_new_cmds= 8865 old_archive_from_expsyms_cmds= 8866 thread_safe_flag_spec= 8867 whole_archive_flag_spec= 8868 # include_expsyms should be a list of space-separated symbols to be *always* 8869 # included in the symbol list 8870 include_expsyms= 8871 # exclude_expsyms can be an extended regexp of symbols to exclude 8872 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8873 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8874 # as well as any symbol that contains `d'. 8875 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8876 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8877 # platforms (ab)use it in PIC code, but their linkers get confused if 8878 # the symbol is explicitly referenced. Since portable code cannot 8879 # rely on this symbol name, it's probably fine to never include it in 8880 # preloaded symbol tables. 8881 # Exclude shared library initialization/finalization symbols. 8882 extract_expsyms_cmds= 8883 8884 case $host_os in 8885 cygwin* | mingw* | pw32* | cegcc*) 8886 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8887 # When not using gcc, we currently assume that we are using 8888 # Microsoft Visual C++. 8889 if test "$GCC" != yes; then 8890 with_gnu_ld=no 8891 fi 8892 ;; 8893 interix*) 8894 # we just hope/assume this is gcc and not c89 (= MSVC++) 8895 with_gnu_ld=yes 8896 ;; 8897 openbsd*) 8898 with_gnu_ld=no 8899 ;; 8900 esac 8901 8902 ld_shlibs=yes 8903 8904 # On some targets, GNU ld is compatible enough with the native linker 8905 # that we're better off using the native interface for both. 8906 lt_use_gnu_ld_interface=no 8907 if test "$with_gnu_ld" = yes; then 8908 case $host_os in 8909 aix*) 8910 # The AIX port of GNU ld has always aspired to compatibility 8911 # with the native linker. However, as the warning in the GNU ld 8912 # block says, versions before 2.19.5* couldn't really create working 8913 # shared libraries, regardless of the interface used. 8914 case `$LD -v 2>&1` in 8915 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8916 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8917 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8918 *) 8919 lt_use_gnu_ld_interface=yes 8920 ;; 8921 esac 8922 ;; 8923 *) 8924 lt_use_gnu_ld_interface=yes 8925 ;; 8926 esac 8927 fi 8928 8929 if test "$lt_use_gnu_ld_interface" = yes; then 8930 # If archive_cmds runs LD, not CC, wlarc should be empty 8931 wlarc='${wl}' 8932 8933 # Set some defaults for GNU ld with shared library support. These 8934 # are reset later if shared libraries are not supported. Putting them 8935 # here allows them to be overridden if necessary. 8936 runpath_var=LD_RUN_PATH 8937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8938 export_dynamic_flag_spec='${wl}--export-dynamic' 8939 # ancient GNU ld didn't support --whole-archive et. al. 8940 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8941 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8942 else 8943 whole_archive_flag_spec= 8944 fi 8945 supports_anon_versioning=no 8946 case `$LD -v 2>&1` in 8947 *GNU\ gold*) supports_anon_versioning=yes ;; 8948 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8949 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8950 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8951 *\ 2.11.*) ;; # other 2.11 versions 8952 *) supports_anon_versioning=yes ;; 8953 esac 8954 8955 # See if GNU ld supports shared libraries. 8956 case $host_os in 8957 aix[3-9]*) 8958 # On AIX/PPC, the GNU linker is very broken 8959 if test "$host_cpu" != ia64; then 8960 ld_shlibs=no 8961 cat <<_LT_EOF 1>&2 8962 8963 *** Warning: the GNU linker, at least up to release 2.19, is reported 8964 *** to be unable to reliably create shared libraries on AIX. 8965 *** Therefore, libtool is disabling shared libraries support. If you 8966 *** really care for shared libraries, you may want to install binutils 8967 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8968 *** You will then need to restart the configuration process. 8969 8970 _LT_EOF 8971 fi 8972 ;; 8973 8974 amigaos*) 8975 case $host_cpu in 8976 powerpc) 8977 # see comment about AmigaOS4 .so support 8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8979 archive_expsym_cmds='' 8980 ;; 8981 m68k) 8982 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)' 8983 hardcode_libdir_flag_spec='-L$libdir' 8984 hardcode_minus_L=yes 8985 ;; 8986 esac 8987 ;; 8988 8989 beos*) 8990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8991 allow_undefined_flag=unsupported 8992 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8993 # support --undefined. This deserves some investigation. FIXME 8994 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8995 else 8996 ld_shlibs=no 8997 fi 8998 ;; 8999 9000 cygwin* | mingw* | pw32* | cegcc*) 9001 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9002 # as there is no search path for DLLs. 9003 hardcode_libdir_flag_spec='-L$libdir' 9004 export_dynamic_flag_spec='${wl}--export-all-symbols' 9005 allow_undefined_flag=unsupported 9006 always_export_symbols=no 9007 enable_shared_with_static_runtimes=yes 9008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9009 9010 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9012 # If the export-symbols file already is a .def file (1st line 9013 # is EXPORTS), use it as is; otherwise, prepend... 9014 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9015 cp $export_symbols $output_objdir/$soname.def; 9016 else 9017 echo EXPORTS > $output_objdir/$soname.def; 9018 cat $export_symbols >> $output_objdir/$soname.def; 9019 fi~ 9020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9021 else 9022 ld_shlibs=no 9023 fi 9024 ;; 9025 9026 haiku*) 9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9028 link_all_deplibs=yes 9029 ;; 9030 9031 interix[3-9]*) 9032 hardcode_direct=no 9033 hardcode_shlibpath_var=no 9034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9035 export_dynamic_flag_spec='${wl}-E' 9036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9037 # Instead, shared libraries are loaded at an image base (0x10000000 by 9038 # default) and relocated if they conflict, which is a slow very memory 9039 # consuming and fragmenting process. To avoid this, we pick a random, 9040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9041 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9043 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' 9044 ;; 9045 9046 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 9047 tmp_diet=no 9048 if test "$host_os" = linux-dietlibc; then 9049 case $cc_basename in 9050 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9051 esac 9052 fi 9053 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9054 && test "$tmp_diet" = no 9055 then 9056 tmp_addflag=' $pic_flag' 9057 tmp_sharedflag='-shared' 9058 case $cc_basename,$host_cpu in 9059 pgcc*) # Portland Group C compiler 9060 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' 9061 tmp_addflag=' $pic_flag' 9062 ;; 9063 pgf77* | pgf90* | pgf95* | pgfortran*) 9064 # Portland Group f77 and f90 compilers 9065 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' 9066 tmp_addflag=' $pic_flag -Mnomain' ;; 9067 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9068 tmp_addflag=' -i_dynamic' ;; 9069 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9070 tmp_addflag=' -i_dynamic -nofor_main' ;; 9071 ifc* | ifort*) # Intel Fortran compiler 9072 tmp_addflag=' -nofor_main' ;; 9073 lf95*) # Lahey Fortran 8.1 9074 whole_archive_flag_spec= 9075 tmp_sharedflag='--shared' ;; 9076 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9077 tmp_sharedflag='-qmkshrobj' 9078 tmp_addflag= ;; 9079 nvcc*) # Cuda Compiler Driver 2.2 9080 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' 9081 compiler_needs_object=yes 9082 ;; 9083 esac 9084 case `$CC -V 2>&1 | sed 5q` in 9085 *Sun\ C*) # Sun C 5.9 9086 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' 9087 compiler_needs_object=yes 9088 tmp_sharedflag='-G' ;; 9089 *Sun\ F*) # Sun Fortran 8.3 9090 tmp_sharedflag='-G' ;; 9091 esac 9092 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9093 9094 if test "x$supports_anon_versioning" = xyes; then 9095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9097 echo "local: *; };" >> $output_objdir/$libname.ver~ 9098 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9099 fi 9100 9101 case $cc_basename in 9102 xlf* | bgf* | bgxlf* | mpixlf*) 9103 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9104 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9105 hardcode_libdir_flag_spec= 9106 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9107 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9108 if test "x$supports_anon_versioning" = xyes; then 9109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9111 echo "local: *; };" >> $output_objdir/$libname.ver~ 9112 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9113 fi 9114 ;; 9115 esac 9116 else 9117 ld_shlibs=no 9118 fi 9119 ;; 9120 9121 netbsd*) 9122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9124 wlarc= 9125 else 9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9128 fi 9129 ;; 9130 9131 solaris*) 9132 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9133 ld_shlibs=no 9134 cat <<_LT_EOF 1>&2 9135 9136 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9137 *** create shared libraries on Solaris systems. Therefore, libtool 9138 *** is disabling shared libraries support. We urge you to upgrade GNU 9139 *** binutils to release 2.9.1 or newer. Another option is to modify 9140 *** your PATH or compiler configuration so that the native linker is 9141 *** used, and then restart. 9142 9143 _LT_EOF 9144 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9147 else 9148 ld_shlibs=no 9149 fi 9150 ;; 9151 9152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9153 case `$LD -v 2>&1` in 9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9155 ld_shlibs=no 9156 cat <<_LT_EOF 1>&2 9157 9158 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9159 *** reliably create shared libraries on SCO systems. Therefore, libtool 9160 *** is disabling shared libraries support. We urge you to upgrade GNU 9161 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9162 *** your PATH or compiler configuration so that the native linker is 9163 *** used, and then restart. 9164 9165 _LT_EOF 9166 ;; 9167 *) 9168 # For security reasons, it is highly recommended that you always 9169 # use absolute paths for naming shared libraries, and exclude the 9170 # DT_RUNPATH tag from executables and libraries. But doing so 9171 # requires that you compile everything twice, which is a pain. 9172 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9176 else 9177 ld_shlibs=no 9178 fi 9179 ;; 9180 esac 9181 ;; 9182 9183 sunos4*) 9184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9185 wlarc= 9186 hardcode_direct=yes 9187 hardcode_shlibpath_var=no 9188 ;; 9189 9190 *) 9191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9194 else 9195 ld_shlibs=no 9196 fi 9197 ;; 9198 esac 9199 9200 if test "$ld_shlibs" = no; then 9201 runpath_var= 9202 hardcode_libdir_flag_spec= 9203 export_dynamic_flag_spec= 9204 whole_archive_flag_spec= 9205 fi 9206 else 9207 # PORTME fill in a description of your system's linker (not GNU ld) 9208 case $host_os in 9209 aix3*) 9210 allow_undefined_flag=unsupported 9211 always_export_symbols=yes 9212 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' 9213 # Note: this linker hardcodes the directories in LIBPATH if there 9214 # are no directories specified by -L. 9215 hardcode_minus_L=yes 9216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9217 # Neither direct hardcoding nor static linking is supported with a 9218 # broken collect2. 9219 hardcode_direct=unsupported 9220 fi 9221 ;; 9222 9223 aix[4-9]*) 9224 if test "$host_cpu" = ia64; then 9225 # On IA64, the linker does run time linking by default, so we don't 9226 # have to do anything special. 9227 aix_use_runtimelinking=no 9228 exp_sym_flag='-Bexport' 9229 no_entry_flag="" 9230 else 9231 # If we're using GNU nm, then we don't want the "-C" option. 9232 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9233 # Also, AIX nm treats weak defined symbols like other global 9234 # defined symbols, whereas GNU nm marks them as "W". 9235 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9236 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' 9237 else 9238 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' 9239 fi 9240 aix_use_runtimelinking=no 9241 9242 # Test if we are trying to use run time linking or normal 9243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9244 # need to do runtime linking. 9245 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9246 for ld_flag in $LDFLAGS; do 9247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9248 aix_use_runtimelinking=yes 9249 break 9250 fi 9251 done 9252 ;; 9253 esac 9254 9255 exp_sym_flag='-bexport' 9256 no_entry_flag='-bnoentry' 9257 fi 9258 9259 # When large executables or shared objects are built, AIX ld can 9260 # have problems creating the table of contents. If linking a library 9261 # or program results in "error TOC overflow" add -mminimal-toc to 9262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9264 9265 archive_cmds='' 9266 hardcode_direct=yes 9267 hardcode_direct_absolute=yes 9268 hardcode_libdir_separator=':' 9269 link_all_deplibs=yes 9270 file_list_spec='${wl}-f,' 9271 9272 if test "$GCC" = yes; then 9273 case $host_os in aix4.[012]|aix4.[012].*) 9274 # We only want to do this on AIX 4.2 and lower, the check 9275 # below for broken collect2 doesn't work under 4.3+ 9276 collect2name=`${CC} -print-prog-name=collect2` 9277 if test -f "$collect2name" && 9278 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9279 then 9280 # We have reworked collect2 9281 : 9282 else 9283 # We have old collect2 9284 hardcode_direct=unsupported 9285 # It fails to find uninstalled libraries when the uninstalled 9286 # path is not listed in the libpath. Setting hardcode_minus_L 9287 # to unsupported forces relinking 9288 hardcode_minus_L=yes 9289 hardcode_libdir_flag_spec='-L$libdir' 9290 hardcode_libdir_separator= 9291 fi 9292 ;; 9293 esac 9294 shared_flag='-shared' 9295 if test "$aix_use_runtimelinking" = yes; then 9296 shared_flag="$shared_flag "'${wl}-G' 9297 fi 9298 else 9299 # not using gcc 9300 if test "$host_cpu" = ia64; then 9301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9302 # chokes on -Wl,-G. The following line is correct: 9303 shared_flag='-G' 9304 else 9305 if test "$aix_use_runtimelinking" = yes; then 9306 shared_flag='${wl}-G' 9307 else 9308 shared_flag='${wl}-bM:SRE' 9309 fi 9310 fi 9311 fi 9312 9313 export_dynamic_flag_spec='${wl}-bexpall' 9314 # It seems that -bexpall does not export symbols beginning with 9315 # underscore (_), so it is better to generate a list of symbols to export. 9316 always_export_symbols=yes 9317 if test "$aix_use_runtimelinking" = yes; then 9318 # Warning - without using the other runtime loading flags (-brtl), 9319 # -berok will link without error, but may produce a broken library. 9320 allow_undefined_flag='-berok' 9321 # Determine the default libpath from the value encoded in an 9322 # empty executable. 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324 /* end confdefs.h. */ 9325 9326 int 9327 main () 9328 { 9329 9330 ; 9331 return 0; 9332 } 9333 _ACEOF 9334 if ac_fn_c_try_link "$LINENO"; then : 9335 9336 lt_aix_libpath_sed=' 9337 /Import File Strings/,/^$/ { 9338 /^0/ { 9339 s/^0 *\(.*\)$/\1/ 9340 p 9341 } 9342 }' 9343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9344 # Check for a 64-bit object if we didn't find anything. 9345 if test -z "$aix_libpath"; then 9346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9347 fi 9348 fi 9349 rm -f core conftest.err conftest.$ac_objext \ 9350 conftest$ac_exeext conftest.$ac_ext 9351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9352 9353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9354 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" 9355 else 9356 if test "$host_cpu" = ia64; then 9357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9358 allow_undefined_flag="-z nodefs" 9359 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" 9360 else 9361 # Determine the default libpath from the value encoded in an 9362 # empty executable. 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364 /* end confdefs.h. */ 9365 9366 int 9367 main () 9368 { 9369 9370 ; 9371 return 0; 9372 } 9373 _ACEOF 9374 if ac_fn_c_try_link "$LINENO"; then : 9375 9376 lt_aix_libpath_sed=' 9377 /Import File Strings/,/^$/ { 9378 /^0/ { 9379 s/^0 *\(.*\)$/\1/ 9380 p 9381 } 9382 }' 9383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9384 # Check for a 64-bit object if we didn't find anything. 9385 if test -z "$aix_libpath"; then 9386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9387 fi 9388 fi 9389 rm -f core conftest.err conftest.$ac_objext \ 9390 conftest$ac_exeext conftest.$ac_ext 9391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9392 9393 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9394 # Warning - without using the other run time loading flags, 9395 # -berok will link without error, but may produce a broken library. 9396 no_undefined_flag=' ${wl}-bernotok' 9397 allow_undefined_flag=' ${wl}-berok' 9398 if test "$with_gnu_ld" = yes; then 9399 # We only use this code for GNU lds that support --whole-archive. 9400 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9401 else 9402 # Exported symbols can be pulled into shared objects from archives 9403 whole_archive_flag_spec='$convenience' 9404 fi 9405 archive_cmds_need_lc=yes 9406 # This is similar to how AIX traditionally builds its shared libraries. 9407 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' 9408 fi 9409 fi 9410 ;; 9411 9412 amigaos*) 9413 case $host_cpu in 9414 powerpc) 9415 # see comment about AmigaOS4 .so support 9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9417 archive_expsym_cmds='' 9418 ;; 9419 m68k) 9420 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)' 9421 hardcode_libdir_flag_spec='-L$libdir' 9422 hardcode_minus_L=yes 9423 ;; 9424 esac 9425 ;; 9426 9427 bsdi[45]*) 9428 export_dynamic_flag_spec=-rdynamic 9429 ;; 9430 9431 cygwin* | mingw* | pw32* | cegcc*) 9432 # When not using gcc, we currently assume that we are using 9433 # Microsoft Visual C++. 9434 # hardcode_libdir_flag_spec is actually meaningless, as there is 9435 # no search path for DLLs. 9436 hardcode_libdir_flag_spec=' ' 9437 allow_undefined_flag=unsupported 9438 # Tell ltmain to make .lib files, not .a files. 9439 libext=lib 9440 # Tell ltmain to make .dll files, not .so files. 9441 shrext_cmds=".dll" 9442 # FIXME: Setting linknames here is a bad hack. 9443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9444 # The linker will automatically build a .lib file if we build a DLL. 9445 old_archive_from_new_cmds='true' 9446 # FIXME: Should let the user specify the lib program. 9447 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9448 fix_srcfile_path='`cygpath -w "$srcfile"`' 9449 enable_shared_with_static_runtimes=yes 9450 ;; 9451 9452 darwin* | rhapsody*) 9453 9454 9455 archive_cmds_need_lc=no 9456 hardcode_direct=no 9457 hardcode_automatic=yes 9458 hardcode_shlibpath_var=unsupported 9459 if test "$lt_cv_ld_force_load" = "yes"; then 9460 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\"`' 9461 else 9462 whole_archive_flag_spec='' 9463 fi 9464 link_all_deplibs=yes 9465 allow_undefined_flag="$_lt_dar_allow_undefined" 9466 case $cc_basename in 9467 ifort*) _lt_dar_can_shared=yes ;; 9468 *) _lt_dar_can_shared=$GCC ;; 9469 esac 9470 if test "$_lt_dar_can_shared" = "yes"; then 9471 output_verbose_link_cmd=func_echo_all 9472 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9473 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9474 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}" 9475 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}" 9476 9477 else 9478 ld_shlibs=no 9479 fi 9480 9481 ;; 9482 9483 dgux*) 9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9485 hardcode_libdir_flag_spec='-L$libdir' 9486 hardcode_shlibpath_var=no 9487 ;; 9488 9489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9490 # support. Future versions do this automatically, but an explicit c++rt0.o 9491 # does not break anything, and helps significantly (at the cost of a little 9492 # extra space). 9493 freebsd2.2*) 9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9495 hardcode_libdir_flag_spec='-R$libdir' 9496 hardcode_direct=yes 9497 hardcode_shlibpath_var=no 9498 ;; 9499 9500 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9501 freebsd2.*) 9502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9503 hardcode_direct=yes 9504 hardcode_minus_L=yes 9505 hardcode_shlibpath_var=no 9506 ;; 9507 9508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9509 freebsd* | dragonfly*) 9510 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9511 hardcode_libdir_flag_spec='-R$libdir' 9512 hardcode_direct=yes 9513 hardcode_shlibpath_var=no 9514 ;; 9515 9516 hpux9*) 9517 if test "$GCC" = yes; then 9518 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' 9519 else 9520 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' 9521 fi 9522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9523 hardcode_libdir_separator=: 9524 hardcode_direct=yes 9525 9526 # hardcode_minus_L: Not really in the search PATH, 9527 # but as the default location of the library. 9528 hardcode_minus_L=yes 9529 export_dynamic_flag_spec='${wl}-E' 9530 ;; 9531 9532 hpux10*) 9533 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9535 else 9536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9537 fi 9538 if test "$with_gnu_ld" = no; then 9539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9540 hardcode_libdir_flag_spec_ld='+b $libdir' 9541 hardcode_libdir_separator=: 9542 hardcode_direct=yes 9543 hardcode_direct_absolute=yes 9544 export_dynamic_flag_spec='${wl}-E' 9545 # hardcode_minus_L: Not really in the search PATH, 9546 # but as the default location of the library. 9547 hardcode_minus_L=yes 9548 fi 9549 ;; 9550 9551 hpux11*) 9552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9553 case $host_cpu in 9554 hppa*64*) 9555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9556 ;; 9557 ia64*) 9558 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9559 ;; 9560 *) 9561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9562 ;; 9563 esac 9564 else 9565 case $host_cpu in 9566 hppa*64*) 9567 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9568 ;; 9569 ia64*) 9570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9571 ;; 9572 *) 9573 9574 # Older versions of the 11.00 compiler do not understand -b yet 9575 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9577 $as_echo_n "checking if $CC understands -b... " >&6; } 9578 if ${lt_cv_prog_compiler__b+:} false; then : 9579 $as_echo_n "(cached) " >&6 9580 else 9581 lt_cv_prog_compiler__b=no 9582 save_LDFLAGS="$LDFLAGS" 9583 LDFLAGS="$LDFLAGS -b" 9584 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9586 # The linker can only warn and ignore the option if not recognized 9587 # So say no if there are warnings 9588 if test -s conftest.err; then 9589 # Append any errors to the config.log. 9590 cat conftest.err 1>&5 9591 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9593 if diff conftest.exp conftest.er2 >/dev/null; then 9594 lt_cv_prog_compiler__b=yes 9595 fi 9596 else 9597 lt_cv_prog_compiler__b=yes 9598 fi 9599 fi 9600 $RM -r conftest* 9601 LDFLAGS="$save_LDFLAGS" 9602 9603 fi 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9605 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9606 9607 if test x"$lt_cv_prog_compiler__b" = xyes; then 9608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9609 else 9610 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9611 fi 9612 9613 ;; 9614 esac 9615 fi 9616 if test "$with_gnu_ld" = no; then 9617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9618 hardcode_libdir_separator=: 9619 9620 case $host_cpu in 9621 hppa*64*|ia64*) 9622 hardcode_direct=no 9623 hardcode_shlibpath_var=no 9624 ;; 9625 *) 9626 hardcode_direct=yes 9627 hardcode_direct_absolute=yes 9628 export_dynamic_flag_spec='${wl}-E' 9629 9630 # hardcode_minus_L: Not really in the search PATH, 9631 # but as the default location of the library. 9632 hardcode_minus_L=yes 9633 ;; 9634 esac 9635 fi 9636 ;; 9637 9638 irix5* | irix6* | nonstopux*) 9639 if test "$GCC" = yes; then 9640 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' 9641 # Try to use the -exported_symbol ld option, if it does not 9642 # work, assume that -exports_file does not work either and 9643 # implicitly export all symbols. 9644 save_LDFLAGS="$LDFLAGS" 9645 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647 /* end confdefs.h. */ 9648 int foo(void) {} 9649 _ACEOF 9650 if ac_fn_c_try_link "$LINENO"; then : 9651 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' 9652 9653 fi 9654 rm -f core conftest.err conftest.$ac_objext \ 9655 conftest$ac_exeext conftest.$ac_ext 9656 LDFLAGS="$save_LDFLAGS" 9657 else 9658 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' 9659 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' 9660 fi 9661 archive_cmds_need_lc='no' 9662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9663 hardcode_libdir_separator=: 9664 inherit_rpath=yes 9665 link_all_deplibs=yes 9666 ;; 9667 9668 netbsd*) 9669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9671 else 9672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9673 fi 9674 hardcode_libdir_flag_spec='-R$libdir' 9675 hardcode_direct=yes 9676 hardcode_shlibpath_var=no 9677 ;; 9678 9679 newsos6) 9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9681 hardcode_direct=yes 9682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9683 hardcode_libdir_separator=: 9684 hardcode_shlibpath_var=no 9685 ;; 9686 9687 *nto* | *qnx*) 9688 ;; 9689 9690 openbsd*) 9691 if test -f /usr/libexec/ld.so; then 9692 hardcode_direct=yes 9693 hardcode_shlibpath_var=no 9694 hardcode_direct_absolute=yes 9695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9698 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9699 export_dynamic_flag_spec='${wl}-E' 9700 else 9701 case $host_os in 9702 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9704 hardcode_libdir_flag_spec='-R$libdir' 9705 ;; 9706 *) 9707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9709 ;; 9710 esac 9711 fi 9712 else 9713 ld_shlibs=no 9714 fi 9715 ;; 9716 9717 os2*) 9718 hardcode_libdir_flag_spec='-L$libdir' 9719 hardcode_minus_L=yes 9720 allow_undefined_flag=unsupported 9721 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' 9722 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9723 ;; 9724 9725 osf3*) 9726 if test "$GCC" = yes; then 9727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9728 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' 9729 else 9730 allow_undefined_flag=' -expect_unresolved \*' 9731 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' 9732 fi 9733 archive_cmds_need_lc='no' 9734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9735 hardcode_libdir_separator=: 9736 ;; 9737 9738 osf4* | osf5*) # as osf3* with the addition of -msym flag 9739 if test "$GCC" = yes; then 9740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9741 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' 9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9743 else 9744 allow_undefined_flag=' -expect_unresolved \*' 9745 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' 9746 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~ 9747 $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' 9748 9749 # Both c and cxx compiler support -rpath directly 9750 hardcode_libdir_flag_spec='-rpath $libdir' 9751 fi 9752 archive_cmds_need_lc='no' 9753 hardcode_libdir_separator=: 9754 ;; 9755 9756 solaris*) 9757 no_undefined_flag=' -z defs' 9758 if test "$GCC" = yes; then 9759 wlarc='${wl}' 9760 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9762 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9763 else 9764 case `$CC -V 2>&1` in 9765 *"Compilers 5.0"*) 9766 wlarc='' 9767 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9769 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9770 ;; 9771 *) 9772 wlarc='${wl}' 9773 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9775 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9776 ;; 9777 esac 9778 fi 9779 hardcode_libdir_flag_spec='-R$libdir' 9780 hardcode_shlibpath_var=no 9781 case $host_os in 9782 solaris2.[0-5] | solaris2.[0-5].*) ;; 9783 *) 9784 # The compiler driver will combine and reorder linker options, 9785 # but understands `-z linker_flag'. GCC discards it without `$wl', 9786 # but is careful enough not to reorder. 9787 # Supported since Solaris 2.6 (maybe 2.5.1?) 9788 if test "$GCC" = yes; then 9789 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9790 else 9791 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9792 fi 9793 ;; 9794 esac 9795 link_all_deplibs=yes 9796 ;; 9797 9798 sunos4*) 9799 if test "x$host_vendor" = xsequent; then 9800 # Use $CC to link under sequent, because it throws in some extra .o 9801 # files that make .init and .fini sections work. 9802 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9803 else 9804 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9805 fi 9806 hardcode_libdir_flag_spec='-L$libdir' 9807 hardcode_direct=yes 9808 hardcode_minus_L=yes 9809 hardcode_shlibpath_var=no 9810 ;; 9811 9812 sysv4) 9813 case $host_vendor in 9814 sni) 9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9816 hardcode_direct=yes # is this really true??? 9817 ;; 9818 siemens) 9819 ## LD is ld it makes a PLAMLIB 9820 ## CC just makes a GrossModule. 9821 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9822 reload_cmds='$CC -r -o $output$reload_objs' 9823 hardcode_direct=no 9824 ;; 9825 motorola) 9826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9827 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9828 ;; 9829 esac 9830 runpath_var='LD_RUN_PATH' 9831 hardcode_shlibpath_var=no 9832 ;; 9833 9834 sysv4.3*) 9835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9836 hardcode_shlibpath_var=no 9837 export_dynamic_flag_spec='-Bexport' 9838 ;; 9839 9840 sysv4*MP*) 9841 if test -d /usr/nec; then 9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9843 hardcode_shlibpath_var=no 9844 runpath_var=LD_RUN_PATH 9845 hardcode_runpath_var=yes 9846 ld_shlibs=yes 9847 fi 9848 ;; 9849 9850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9851 no_undefined_flag='${wl}-z,text' 9852 archive_cmds_need_lc=no 9853 hardcode_shlibpath_var=no 9854 runpath_var='LD_RUN_PATH' 9855 9856 if test "$GCC" = yes; then 9857 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9858 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9859 else 9860 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9861 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9862 fi 9863 ;; 9864 9865 sysv5* | sco3.2v5* | sco5v6*) 9866 # Note: We can NOT use -z defs as we might desire, because we do not 9867 # link with -lc, and that would cause any symbols used from libc to 9868 # always be unresolved, which means just about no library would 9869 # ever link correctly. If we're not using GNU ld we use -z text 9870 # though, which does catch some bad symbols but isn't as heavy-handed 9871 # as -z defs. 9872 no_undefined_flag='${wl}-z,text' 9873 allow_undefined_flag='${wl}-z,nodefs' 9874 archive_cmds_need_lc=no 9875 hardcode_shlibpath_var=no 9876 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9877 hardcode_libdir_separator=':' 9878 link_all_deplibs=yes 9879 export_dynamic_flag_spec='${wl}-Bexport' 9880 runpath_var='LD_RUN_PATH' 9881 9882 if test "$GCC" = yes; then 9883 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9885 else 9886 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9888 fi 9889 ;; 9890 9891 uts4*) 9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 hardcode_shlibpath_var=no 9895 ;; 9896 9897 *) 9898 ld_shlibs=no 9899 ;; 9900 esac 9901 9902 if test x$host_vendor = xsni; then 9903 case $host in 9904 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9905 export_dynamic_flag_spec='${wl}-Blargedynsym' 9906 ;; 9907 esac 9908 fi 9909 fi 9910 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9912 $as_echo "$ld_shlibs" >&6; } 9913 test "$ld_shlibs" = no && can_build_shared=no 9914 9915 with_gnu_ld=$with_gnu_ld 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 # 9932 # Do we need to explicitly link libc? 9933 # 9934 case "x$archive_cmds_need_lc" in 9935 x|xyes) 9936 # Assume -lc should be added 9937 archive_cmds_need_lc=yes 9938 9939 if test "$enable_shared" = yes && test "$GCC" = yes; then 9940 case $archive_cmds in 9941 *'~'*) 9942 # FIXME: we may have to deal with multi-command sequences. 9943 ;; 9944 '$CC '*) 9945 # Test whether the compiler implicitly links with -lc since on some 9946 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9947 # to ld, don't add -lc before -lgcc. 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9949 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9950 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9951 $as_echo_n "(cached) " >&6 9952 else 9953 $RM conftest* 9954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9955 9956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9957 (eval $ac_compile) 2>&5 9958 ac_status=$? 9959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9960 test $ac_status = 0; } 2>conftest.err; then 9961 soname=conftest 9962 lib=conftest 9963 libobjs=conftest.$ac_objext 9964 deplibs= 9965 wl=$lt_prog_compiler_wl 9966 pic_flag=$lt_prog_compiler_pic 9967 compiler_flags=-v 9968 linker_flags=-v 9969 verstring= 9970 output_objdir=. 9971 libname=conftest 9972 lt_save_allow_undefined_flag=$allow_undefined_flag 9973 allow_undefined_flag= 9974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9975 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9976 ac_status=$? 9977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9978 test $ac_status = 0; } 9979 then 9980 lt_cv_archive_cmds_need_lc=no 9981 else 9982 lt_cv_archive_cmds_need_lc=yes 9983 fi 9984 allow_undefined_flag=$lt_save_allow_undefined_flag 9985 else 9986 cat conftest.err 1>&5 9987 fi 9988 $RM conftest* 9989 9990 fi 9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9992 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9993 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9994 ;; 9995 esac 9996 fi 9997 ;; 9998 esac 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10157 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10158 10159 if test "$GCC" = yes; then 10160 case $host_os in 10161 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10162 *) lt_awk_arg="/^libraries:/" ;; 10163 esac 10164 case $host_os in 10165 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10166 *) lt_sed_strip_eq="s,=/,/,g" ;; 10167 esac 10168 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10169 case $lt_search_path_spec in 10170 *\;*) 10171 # if the path contains ";" then we assume it to be the separator 10172 # otherwise default to the standard path separator (i.e. ":") - it is 10173 # assumed that no part of a normal pathname contains ";" but that should 10174 # okay in the real world where ";" in dirpaths is itself problematic. 10175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10176 ;; 10177 *) 10178 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10179 ;; 10180 esac 10181 # Ok, now we have the path, separated by spaces, we can step through it 10182 # and add multilib dir if necessary. 10183 lt_tmp_lt_search_path_spec= 10184 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10185 for lt_sys_path in $lt_search_path_spec; do 10186 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10188 else 10189 test -d "$lt_sys_path" && \ 10190 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10191 fi 10192 done 10193 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10194 BEGIN {RS=" "; FS="/|\n";} { 10195 lt_foo=""; 10196 lt_count=0; 10197 for (lt_i = NF; lt_i > 0; lt_i--) { 10198 if ($lt_i != "" && $lt_i != ".") { 10199 if ($lt_i == "..") { 10200 lt_count++; 10201 } else { 10202 if (lt_count == 0) { 10203 lt_foo="/" $lt_i lt_foo; 10204 } else { 10205 lt_count--; 10206 } 10207 } 10208 } 10209 } 10210 if (lt_foo != "") { lt_freq[lt_foo]++; } 10211 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10212 }'` 10213 # AWK program above erroneously prepends '/' to C:/dos/paths 10214 # for these hosts. 10215 case $host_os in 10216 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10217 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10218 esac 10219 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10220 else 10221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10222 fi 10223 library_names_spec= 10224 libname_spec='lib$name' 10225 soname_spec= 10226 shrext_cmds=".so" 10227 postinstall_cmds= 10228 postuninstall_cmds= 10229 finish_cmds= 10230 finish_eval= 10231 shlibpath_var= 10232 shlibpath_overrides_runpath=unknown 10233 version_type=none 10234 dynamic_linker="$host_os ld.so" 10235 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10236 need_lib_prefix=unknown 10237 hardcode_into_libs=no 10238 10239 # when you set need_version to no, make sure it does not cause -set_version 10240 # flags to be left without arguments 10241 need_version=unknown 10242 10243 case $host_os in 10244 aix3*) 10245 version_type=linux 10246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10247 shlibpath_var=LIBPATH 10248 10249 # AIX 3 has no versioning support, so we append a major version to the name. 10250 soname_spec='${libname}${release}${shared_ext}$major' 10251 ;; 10252 10253 aix[4-9]*) 10254 version_type=linux 10255 need_lib_prefix=no 10256 need_version=no 10257 hardcode_into_libs=yes 10258 if test "$host_cpu" = ia64; then 10259 # AIX 5 supports IA64 10260 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10261 shlibpath_var=LD_LIBRARY_PATH 10262 else 10263 # With GCC up to 2.95.x, collect2 would create an import file 10264 # for dependence libraries. The import file would start with 10265 # the line `#! .'. This would cause the generated library to 10266 # depend on `.', always an invalid library. This was fixed in 10267 # development snapshots of GCC prior to 3.0. 10268 case $host_os in 10269 aix4 | aix4.[01] | aix4.[01].*) 10270 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10271 echo ' yes ' 10272 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10273 : 10274 else 10275 can_build_shared=no 10276 fi 10277 ;; 10278 esac 10279 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10280 # soname into executable. Probably we can add versioning support to 10281 # collect2, so additional links can be useful in future. 10282 if test "$aix_use_runtimelinking" = yes; then 10283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10284 # instead of lib<name>.a to let people know that these are not 10285 # typical AIX shared libraries. 10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10287 else 10288 # We preserve .a as extension for shared libraries through AIX4.2 10289 # and later when we are not doing run time linking. 10290 library_names_spec='${libname}${release}.a $libname.a' 10291 soname_spec='${libname}${release}${shared_ext}$major' 10292 fi 10293 shlibpath_var=LIBPATH 10294 fi 10295 ;; 10296 10297 amigaos*) 10298 case $host_cpu in 10299 powerpc) 10300 # Since July 2007 AmigaOS4 officially supports .so libraries. 10301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10303 ;; 10304 m68k) 10305 library_names_spec='$libname.ixlibrary $libname.a' 10306 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10307 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' 10308 ;; 10309 esac 10310 ;; 10311 10312 beos*) 10313 library_names_spec='${libname}${shared_ext}' 10314 dynamic_linker="$host_os ld.so" 10315 shlibpath_var=LIBRARY_PATH 10316 ;; 10317 10318 bsdi[45]*) 10319 version_type=linux 10320 need_version=no 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10322 soname_spec='${libname}${release}${shared_ext}$major' 10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10324 shlibpath_var=LD_LIBRARY_PATH 10325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10327 # the default ld.so.conf also contains /usr/contrib/lib and 10328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10329 # libtool to hard-code these into programs 10330 ;; 10331 10332 cygwin* | mingw* | pw32* | cegcc*) 10333 version_type=windows 10334 shrext_cmds=".dll" 10335 need_version=no 10336 need_lib_prefix=no 10337 10338 case $GCC,$host_os in 10339 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10340 library_names_spec='$libname.dll.a' 10341 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10342 postinstall_cmds='base_file=`basename \${file}`~ 10343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10344 dldir=$destdir/`dirname \$dlpath`~ 10345 test -d \$dldir || mkdir -p \$dldir~ 10346 $install_prog $dir/$dlname \$dldir/$dlname~ 10347 chmod a+x \$dldir/$dlname~ 10348 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10349 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10350 fi' 10351 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10352 dlpath=$dir/\$dldll~ 10353 $RM \$dlpath' 10354 shlibpath_overrides_runpath=yes 10355 10356 case $host_os in 10357 cygwin*) 10358 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10359 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10360 10361 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10362 ;; 10363 mingw* | cegcc*) 10364 # MinGW DLLs use traditional 'lib' prefix 10365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10366 ;; 10367 pw32*) 10368 # pw32 DLLs use 'pw' prefix rather than 'lib' 10369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10370 ;; 10371 esac 10372 ;; 10373 10374 *) 10375 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10376 ;; 10377 esac 10378 dynamic_linker='Win32 ld.exe' 10379 # FIXME: first we should search . and the directory the executable is in 10380 shlibpath_var=PATH 10381 ;; 10382 10383 darwin* | rhapsody*) 10384 dynamic_linker="$host_os dyld" 10385 version_type=darwin 10386 need_lib_prefix=no 10387 need_version=no 10388 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10389 soname_spec='${libname}${release}${major}$shared_ext' 10390 shlibpath_overrides_runpath=yes 10391 shlibpath_var=DYLD_LIBRARY_PATH 10392 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10393 10394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10396 ;; 10397 10398 dgux*) 10399 version_type=linux 10400 need_lib_prefix=no 10401 need_version=no 10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10403 soname_spec='${libname}${release}${shared_ext}$major' 10404 shlibpath_var=LD_LIBRARY_PATH 10405 ;; 10406 10407 freebsd* | dragonfly*) 10408 # DragonFly does not have aout. When/if they implement a new 10409 # versioning mechanism, adjust this. 10410 if test -x /usr/bin/objformat; then 10411 objformat=`/usr/bin/objformat` 10412 else 10413 case $host_os in 10414 freebsd[23].*) objformat=aout ;; 10415 *) objformat=elf ;; 10416 esac 10417 fi 10418 version_type=freebsd-$objformat 10419 case $version_type in 10420 freebsd-elf*) 10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10422 need_version=no 10423 need_lib_prefix=no 10424 ;; 10425 freebsd-*) 10426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10427 need_version=yes 10428 ;; 10429 esac 10430 shlibpath_var=LD_LIBRARY_PATH 10431 case $host_os in 10432 freebsd2.*) 10433 shlibpath_overrides_runpath=yes 10434 ;; 10435 freebsd3.[01]* | freebsdelf3.[01]*) 10436 shlibpath_overrides_runpath=yes 10437 hardcode_into_libs=yes 10438 ;; 10439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10441 shlibpath_overrides_runpath=no 10442 hardcode_into_libs=yes 10443 ;; 10444 *) # from 4.6 on, and DragonFly 10445 shlibpath_overrides_runpath=yes 10446 hardcode_into_libs=yes 10447 ;; 10448 esac 10449 ;; 10450 10451 haiku*) 10452 version_type=linux 10453 need_lib_prefix=no 10454 need_version=no 10455 dynamic_linker="$host_os runtime_loader" 10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10457 soname_spec='${libname}${release}${shared_ext}$major' 10458 shlibpath_var=LIBRARY_PATH 10459 shlibpath_overrides_runpath=yes 10460 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10461 hardcode_into_libs=yes 10462 ;; 10463 10464 hpux9* | hpux10* | hpux11*) 10465 # Give a soname corresponding to the major version so that dld.sl refuses to 10466 # link against other versions. 10467 version_type=sunos 10468 need_lib_prefix=no 10469 need_version=no 10470 case $host_cpu in 10471 ia64*) 10472 shrext_cmds='.so' 10473 hardcode_into_libs=yes 10474 dynamic_linker="$host_os dld.so" 10475 shlibpath_var=LD_LIBRARY_PATH 10476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10478 soname_spec='${libname}${release}${shared_ext}$major' 10479 if test "X$HPUX_IA64_MODE" = X32; then 10480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10481 else 10482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10483 fi 10484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10485 ;; 10486 hppa*64*) 10487 shrext_cmds='.sl' 10488 hardcode_into_libs=yes 10489 dynamic_linker="$host_os dld.sl" 10490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10496 ;; 10497 *) 10498 shrext_cmds='.sl' 10499 dynamic_linker="$host_os dld.sl" 10500 shlibpath_var=SHLIB_PATH 10501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10503 soname_spec='${libname}${release}${shared_ext}$major' 10504 ;; 10505 esac 10506 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10507 postinstall_cmds='chmod 555 $lib' 10508 # or fails outright, so override atomically: 10509 install_override_mode=555 10510 ;; 10511 10512 interix[3-9]*) 10513 version_type=linux 10514 need_lib_prefix=no 10515 need_version=no 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10517 soname_spec='${libname}${release}${shared_ext}$major' 10518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10519 shlibpath_var=LD_LIBRARY_PATH 10520 shlibpath_overrides_runpath=no 10521 hardcode_into_libs=yes 10522 ;; 10523 10524 irix5* | irix6* | nonstopux*) 10525 case $host_os in 10526 nonstopux*) version_type=nonstopux ;; 10527 *) 10528 if test "$lt_cv_prog_gnu_ld" = yes; then 10529 version_type=linux 10530 else 10531 version_type=irix 10532 fi ;; 10533 esac 10534 need_lib_prefix=no 10535 need_version=no 10536 soname_spec='${libname}${release}${shared_ext}$major' 10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10538 case $host_os in 10539 irix5* | nonstopux*) 10540 libsuff= shlibsuff= 10541 ;; 10542 *) 10543 case $LD in # libtool.m4 will add one of these switches to LD 10544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10545 libsuff= shlibsuff= libmagic=32-bit;; 10546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10547 libsuff=32 shlibsuff=N32 libmagic=N32;; 10548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10549 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10550 *) libsuff= shlibsuff= libmagic=never-match;; 10551 esac 10552 ;; 10553 esac 10554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10555 shlibpath_overrides_runpath=no 10556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10558 hardcode_into_libs=yes 10559 ;; 10560 10561 # No shared lib support for Linux oldld, aout, or coff. 10562 linux*oldld* | linux*aout* | linux*coff*) 10563 dynamic_linker=no 10564 ;; 10565 10566 # This must be Linux ELF. 10567 10568 # uclinux* changes (here and below) have been submitted to the libtool 10569 # project, but have not yet been accepted: they are GCC-local changes 10570 # for the time being. (See 10571 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10572 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10573 version_type=linux 10574 need_lib_prefix=no 10575 need_version=no 10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10577 soname_spec='${libname}${release}${shared_ext}$major' 10578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10579 shlibpath_var=LD_LIBRARY_PATH 10580 shlibpath_overrides_runpath=no 10581 10582 # Some binutils ld are patched to set DT_RUNPATH 10583 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585 else 10586 lt_cv_shlibpath_overrides_runpath=no 10587 save_LDFLAGS=$LDFLAGS 10588 save_libdir=$libdir 10589 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10590 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10592 /* end confdefs.h. */ 10593 10594 int 10595 main () 10596 { 10597 10598 ; 10599 return 0; 10600 } 10601 _ACEOF 10602 if ac_fn_c_try_link "$LINENO"; then : 10603 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10604 lt_cv_shlibpath_overrides_runpath=yes 10605 fi 10606 fi 10607 rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609 LDFLAGS=$save_LDFLAGS 10610 libdir=$save_libdir 10611 10612 fi 10613 10614 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10615 10616 # This implies no fast_install, which is unacceptable. 10617 # Some rework will be needed to allow for fast_install 10618 # before this can be enabled. 10619 hardcode_into_libs=yes 10620 10621 # Append ld.so.conf contents to the search path 10622 if test -f /etc/ld.so.conf; then 10623 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' ' '` 10624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10625 fi 10626 10627 # We used to test for /lib/ld.so.1 and disable shared libraries on 10628 # powerpc, because MkLinux only supported shared libraries with the 10629 # GNU dynamic linker. Since this was broken with cross compilers, 10630 # most powerpc-linux boxes support dynamic linking these days and 10631 # people can always --disable-shared, the test was removed, and we 10632 # assume the GNU/Linux dynamic linker is in use. 10633 dynamic_linker='GNU/Linux ld.so' 10634 ;; 10635 10636 netbsd*) 10637 version_type=sunos 10638 need_lib_prefix=no 10639 need_version=no 10640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10643 dynamic_linker='NetBSD (a.out) ld.so' 10644 else 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10646 soname_spec='${libname}${release}${shared_ext}$major' 10647 dynamic_linker='NetBSD ld.elf_so' 10648 fi 10649 shlibpath_var=LD_LIBRARY_PATH 10650 shlibpath_overrides_runpath=yes 10651 hardcode_into_libs=yes 10652 ;; 10653 10654 newsos6) 10655 version_type=linux 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10657 shlibpath_var=LD_LIBRARY_PATH 10658 shlibpath_overrides_runpath=yes 10659 ;; 10660 10661 *nto* | *qnx*) 10662 version_type=qnx 10663 need_lib_prefix=no 10664 need_version=no 10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10666 soname_spec='${libname}${release}${shared_ext}$major' 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=no 10669 hardcode_into_libs=yes 10670 dynamic_linker='ldqnx.so' 10671 ;; 10672 10673 openbsd*) 10674 version_type=sunos 10675 sys_lib_dlsearch_path_spec="/usr/lib" 10676 need_lib_prefix=no 10677 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10678 case $host_os in 10679 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10680 *) need_version=no ;; 10681 esac 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10684 shlibpath_var=LD_LIBRARY_PATH 10685 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10686 case $host_os in 10687 openbsd2.[89] | openbsd2.[89].*) 10688 shlibpath_overrides_runpath=no 10689 ;; 10690 *) 10691 shlibpath_overrides_runpath=yes 10692 ;; 10693 esac 10694 else 10695 shlibpath_overrides_runpath=yes 10696 fi 10697 ;; 10698 10699 os2*) 10700 libname_spec='$name' 10701 shrext_cmds=".dll" 10702 need_lib_prefix=no 10703 library_names_spec='$libname${shared_ext} $libname.a' 10704 dynamic_linker='OS/2 ld.exe' 10705 shlibpath_var=LIBPATH 10706 ;; 10707 10708 osf3* | osf4* | osf5*) 10709 version_type=osf 10710 need_lib_prefix=no 10711 need_version=no 10712 soname_spec='${libname}${release}${shared_ext}$major' 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10714 shlibpath_var=LD_LIBRARY_PATH 10715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10716 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10717 ;; 10718 10719 rdos*) 10720 dynamic_linker=no 10721 ;; 10722 10723 solaris*) 10724 version_type=linux 10725 need_lib_prefix=no 10726 need_version=no 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10728 soname_spec='${libname}${release}${shared_ext}$major' 10729 shlibpath_var=LD_LIBRARY_PATH 10730 shlibpath_overrides_runpath=yes 10731 hardcode_into_libs=yes 10732 # ldd complains unless libraries are executable 10733 postinstall_cmds='chmod +x $lib' 10734 ;; 10735 10736 sunos4*) 10737 version_type=sunos 10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10740 shlibpath_var=LD_LIBRARY_PATH 10741 shlibpath_overrides_runpath=yes 10742 if test "$with_gnu_ld" = yes; then 10743 need_lib_prefix=no 10744 fi 10745 need_version=yes 10746 ;; 10747 10748 sysv4 | sysv4.3*) 10749 version_type=linux 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10751 soname_spec='${libname}${release}${shared_ext}$major' 10752 shlibpath_var=LD_LIBRARY_PATH 10753 case $host_vendor in 10754 sni) 10755 shlibpath_overrides_runpath=no 10756 need_lib_prefix=no 10757 runpath_var=LD_RUN_PATH 10758 ;; 10759 siemens) 10760 need_lib_prefix=no 10761 ;; 10762 motorola) 10763 need_lib_prefix=no 10764 need_version=no 10765 shlibpath_overrides_runpath=no 10766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10767 ;; 10768 esac 10769 ;; 10770 10771 sysv4*MP*) 10772 if test -d /usr/nec ;then 10773 version_type=linux 10774 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10775 soname_spec='$libname${shared_ext}.$major' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 fi 10778 ;; 10779 10780 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10781 version_type=freebsd-elf 10782 need_lib_prefix=no 10783 need_version=no 10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10785 soname_spec='${libname}${release}${shared_ext}$major' 10786 shlibpath_var=LD_LIBRARY_PATH 10787 shlibpath_overrides_runpath=yes 10788 hardcode_into_libs=yes 10789 if test "$with_gnu_ld" = yes; then 10790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10791 else 10792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10793 case $host_os in 10794 sco3.2v5*) 10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10796 ;; 10797 esac 10798 fi 10799 sys_lib_dlsearch_path_spec='/usr/lib' 10800 ;; 10801 10802 tpf*) 10803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10804 version_type=linux 10805 need_lib_prefix=no 10806 need_version=no 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10808 shlibpath_var=LD_LIBRARY_PATH 10809 shlibpath_overrides_runpath=no 10810 hardcode_into_libs=yes 10811 ;; 10812 10813 uts4*) 10814 version_type=linux 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 shlibpath_var=LD_LIBRARY_PATH 10818 ;; 10819 10820 # Shared libraries for VwWorks, >= 7 only at this stage 10821 # and (fpic) still incompatible with "large" code models 10822 # in a few configurations. Only for RTP mode in any case, 10823 # and upon explicit request at configure time. 10824 vxworks7*) 10825 dynamic_linker=no 10826 case ${with_multisubdir}-${enable_shared} in 10827 *large*) 10828 ;; 10829 *mrtp*-yes) 10830 version_type=linux 10831 need_lib_prefix=no 10832 need_version=no 10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10834 soname_spec='${libname}${release}${shared_ext}$major' 10835 dynamic_linker="$host_os module_loader" 10836 ;; 10837 esac 10838 ;; 10839 *) 10840 dynamic_linker=no 10841 ;; 10842 esac 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10844 $as_echo "$dynamic_linker" >&6; } 10845 test "$dynamic_linker" = no && can_build_shared=no 10846 10847 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10848 if test "$GCC" = yes; then 10849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10850 fi 10851 10852 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10853 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10854 fi 10855 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10856 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10857 fi 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10951 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10952 hardcode_action= 10953 if test -n "$hardcode_libdir_flag_spec" || 10954 test -n "$runpath_var" || 10955 test "X$hardcode_automatic" = "Xyes" ; then 10956 10957 # We can hardcode non-existent directories. 10958 if test "$hardcode_direct" != no && 10959 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10960 # have to relink, otherwise we might link with an installed library 10961 # when we should be linking with a yet-to-be-installed one 10962 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10963 test "$hardcode_minus_L" != no; then 10964 # Linking always hardcodes the temporary library directory. 10965 hardcode_action=relink 10966 else 10967 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10968 hardcode_action=immediate 10969 fi 10970 else 10971 # We cannot hardcode anything, or else we can only hardcode existing 10972 # directories. 10973 hardcode_action=unsupported 10974 fi 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10976 $as_echo "$hardcode_action" >&6; } 10977 10978 if test "$hardcode_action" = relink || 10979 test "$inherit_rpath" = yes; then 10980 # Fast installation is not supported 10981 enable_fast_install=no 10982 elif test "$shlibpath_overrides_runpath" = yes || 10983 test "$enable_shared" = no; then 10984 # Fast installation is not necessary 10985 enable_fast_install=needless 10986 fi 10987 10988 10989 10990 10991 10992 10993 if test "x$enable_dlopen" != xyes; then 10994 enable_dlopen=unknown 10995 enable_dlopen_self=unknown 10996 enable_dlopen_self_static=unknown 10997 else 10998 lt_cv_dlopen=no 10999 lt_cv_dlopen_libs= 11000 11001 case $host_os in 11002 beos*) 11003 lt_cv_dlopen="load_add_on" 11004 lt_cv_dlopen_libs= 11005 lt_cv_dlopen_self=yes 11006 ;; 11007 11008 mingw* | pw32* | cegcc*) 11009 lt_cv_dlopen="LoadLibrary" 11010 lt_cv_dlopen_libs= 11011 ;; 11012 11013 cygwin*) 11014 lt_cv_dlopen="dlopen" 11015 lt_cv_dlopen_libs= 11016 ;; 11017 11018 darwin*) 11019 # if libdl is installed we need to link against it 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11021 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11022 if ${ac_cv_lib_dl_dlopen+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024 else 11025 ac_check_lib_save_LIBS=$LIBS 11026 LIBS="-ldl $LIBS" 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028 /* end confdefs.h. */ 11029 11030 /* Override any GCC internal prototype to avoid an error. 11031 Use char because int might match the return type of a GCC 11032 builtin and then its argument prototype would still apply. */ 11033 #ifdef __cplusplus 11034 extern "C" 11035 #endif 11036 char dlopen (); 11037 int 11038 main () 11039 { 11040 return dlopen (); 11041 ; 11042 return 0; 11043 } 11044 _ACEOF 11045 if ac_fn_c_try_link "$LINENO"; then : 11046 ac_cv_lib_dl_dlopen=yes 11047 else 11048 ac_cv_lib_dl_dlopen=no 11049 fi 11050 rm -f core conftest.err conftest.$ac_objext \ 11051 conftest$ac_exeext conftest.$ac_ext 11052 LIBS=$ac_check_lib_save_LIBS 11053 fi 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11055 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11056 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11058 else 11059 11060 lt_cv_dlopen="dyld" 11061 lt_cv_dlopen_libs= 11062 lt_cv_dlopen_self=yes 11063 11064 fi 11065 11066 ;; 11067 11068 *) 11069 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11070 if test "x$ac_cv_func_shl_load" = xyes; then : 11071 lt_cv_dlopen="shl_load" 11072 else 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11074 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11075 if ${ac_cv_lib_dld_shl_load+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077 else 11078 ac_check_lib_save_LIBS=$LIBS 11079 LIBS="-ldld $LIBS" 11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11081 /* end confdefs.h. */ 11082 11083 /* Override any GCC internal prototype to avoid an error. 11084 Use char because int might match the return type of a GCC 11085 builtin and then its argument prototype would still apply. */ 11086 #ifdef __cplusplus 11087 extern "C" 11088 #endif 11089 char shl_load (); 11090 int 11091 main () 11092 { 11093 return shl_load (); 11094 ; 11095 return 0; 11096 } 11097 _ACEOF 11098 if ac_fn_c_try_link "$LINENO"; then : 11099 ac_cv_lib_dld_shl_load=yes 11100 else 11101 ac_cv_lib_dld_shl_load=no 11102 fi 11103 rm -f core conftest.err conftest.$ac_objext \ 11104 conftest$ac_exeext conftest.$ac_ext 11105 LIBS=$ac_check_lib_save_LIBS 11106 fi 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11110 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11111 else 11112 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11113 if test "x$ac_cv_func_dlopen" = xyes; then : 11114 lt_cv_dlopen="dlopen" 11115 else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11117 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11118 if ${ac_cv_lib_dl_dlopen+:} false; then : 11119 $as_echo_n "(cached) " >&6 11120 else 11121 ac_check_lib_save_LIBS=$LIBS 11122 LIBS="-ldl $LIBS" 11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124 /* end confdefs.h. */ 11125 11126 /* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129 #ifdef __cplusplus 11130 extern "C" 11131 #endif 11132 char dlopen (); 11133 int 11134 main () 11135 { 11136 return dlopen (); 11137 ; 11138 return 0; 11139 } 11140 _ACEOF 11141 if ac_fn_c_try_link "$LINENO"; then : 11142 ac_cv_lib_dl_dlopen=yes 11143 else 11144 ac_cv_lib_dl_dlopen=no 11145 fi 11146 rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext conftest.$ac_ext 11148 LIBS=$ac_check_lib_save_LIBS 11149 fi 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11151 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11152 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11154 else 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11156 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11157 if ${ac_cv_lib_svld_dlopen+:} false; then : 11158 $as_echo_n "(cached) " >&6 11159 else 11160 ac_check_lib_save_LIBS=$LIBS 11161 LIBS="-lsvld $LIBS" 11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11163 /* end confdefs.h. */ 11164 11165 /* Override any GCC internal prototype to avoid an error. 11166 Use char because int might match the return type of a GCC 11167 builtin and then its argument prototype would still apply. */ 11168 #ifdef __cplusplus 11169 extern "C" 11170 #endif 11171 char dlopen (); 11172 int 11173 main () 11174 { 11175 return dlopen (); 11176 ; 11177 return 0; 11178 } 11179 _ACEOF 11180 if ac_fn_c_try_link "$LINENO"; then : 11181 ac_cv_lib_svld_dlopen=yes 11182 else 11183 ac_cv_lib_svld_dlopen=no 11184 fi 11185 rm -f core conftest.err conftest.$ac_objext \ 11186 conftest$ac_exeext conftest.$ac_ext 11187 LIBS=$ac_check_lib_save_LIBS 11188 fi 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11193 else 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11195 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11196 if ${ac_cv_lib_dld_dld_link+:} false; then : 11197 $as_echo_n "(cached) " >&6 11198 else 11199 ac_check_lib_save_LIBS=$LIBS 11200 LIBS="-ldld $LIBS" 11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202 /* end confdefs.h. */ 11203 11204 /* Override any GCC internal prototype to avoid an error. 11205 Use char because int might match the return type of a GCC 11206 builtin and then its argument prototype would still apply. */ 11207 #ifdef __cplusplus 11208 extern "C" 11209 #endif 11210 char dld_link (); 11211 int 11212 main () 11213 { 11214 return dld_link (); 11215 ; 11216 return 0; 11217 } 11218 _ACEOF 11219 if ac_fn_c_try_link "$LINENO"; then : 11220 ac_cv_lib_dld_dld_link=yes 11221 else 11222 ac_cv_lib_dld_dld_link=no 11223 fi 11224 rm -f core conftest.err conftest.$ac_objext \ 11225 conftest$ac_exeext conftest.$ac_ext 11226 LIBS=$ac_check_lib_save_LIBS 11227 fi 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11229 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11230 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11231 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11232 fi 11233 11234 11235 fi 11236 11237 11238 fi 11239 11240 11241 fi 11242 11243 11244 fi 11245 11246 11247 fi 11248 11249 ;; 11250 esac 11251 11252 if test "x$lt_cv_dlopen" != xno; then 11253 enable_dlopen=yes 11254 else 11255 enable_dlopen=no 11256 fi 11257 11258 case $lt_cv_dlopen in 11259 dlopen) 11260 save_CPPFLAGS="$CPPFLAGS" 11261 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11262 11263 save_LDFLAGS="$LDFLAGS" 11264 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11265 11266 save_LIBS="$LIBS" 11267 LIBS="$lt_cv_dlopen_libs $LIBS" 11268 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11270 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11271 if ${lt_cv_dlopen_self+:} false; then : 11272 $as_echo_n "(cached) " >&6 11273 else 11274 if test "$cross_compiling" = yes; then : 11275 lt_cv_dlopen_self=cross 11276 else 11277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11278 lt_status=$lt_dlunknown 11279 cat > conftest.$ac_ext <<_LT_EOF 11280 #line 11280 "configure" 11281 #include "confdefs.h" 11282 11283 #if HAVE_DLFCN_H 11284 #include <dlfcn.h> 11285 #endif 11286 11287 #include <stdio.h> 11288 11289 #ifdef RTLD_GLOBAL 11290 # define LT_DLGLOBAL RTLD_GLOBAL 11291 #else 11292 # ifdef DL_GLOBAL 11293 # define LT_DLGLOBAL DL_GLOBAL 11294 # else 11295 # define LT_DLGLOBAL 0 11296 # endif 11297 #endif 11298 11299 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11300 find out it does not work in some platform. */ 11301 #ifndef LT_DLLAZY_OR_NOW 11302 # ifdef RTLD_LAZY 11303 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11304 # else 11305 # ifdef DL_LAZY 11306 # define LT_DLLAZY_OR_NOW DL_LAZY 11307 # else 11308 # ifdef RTLD_NOW 11309 # define LT_DLLAZY_OR_NOW RTLD_NOW 11310 # else 11311 # ifdef DL_NOW 11312 # define LT_DLLAZY_OR_NOW DL_NOW 11313 # else 11314 # define LT_DLLAZY_OR_NOW 0 11315 # endif 11316 # endif 11317 # endif 11318 # endif 11319 #endif 11320 11321 /* When -fvisbility=hidden is used, assume the code has been annotated 11322 correspondingly for the symbols needed. */ 11323 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11324 void fnord () __attribute__((visibility("default"))); 11325 #endif 11326 11327 void fnord () { int i=42; } 11328 int main () 11329 { 11330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11331 int status = $lt_dlunknown; 11332 11333 if (self) 11334 { 11335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11336 else 11337 { 11338 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11339 else puts (dlerror ()); 11340 } 11341 /* dlclose (self); */ 11342 } 11343 else 11344 puts (dlerror ()); 11345 11346 return status; 11347 } 11348 _LT_EOF 11349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11350 (eval $ac_link) 2>&5 11351 ac_status=$? 11352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11353 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11354 (./conftest; exit; ) >&5 2>/dev/null 11355 lt_status=$? 11356 case x$lt_status in 11357 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11358 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11359 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11360 esac 11361 else : 11362 # compilation failed 11363 lt_cv_dlopen_self=no 11364 fi 11365 fi 11366 rm -fr conftest* 11367 11368 11369 fi 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11371 $as_echo "$lt_cv_dlopen_self" >&6; } 11372 11373 if test "x$lt_cv_dlopen_self" = xyes; then 11374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11376 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11377 if ${lt_cv_dlopen_self_static+:} false; then : 11378 $as_echo_n "(cached) " >&6 11379 else 11380 if test "$cross_compiling" = yes; then : 11381 lt_cv_dlopen_self_static=cross 11382 else 11383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11384 lt_status=$lt_dlunknown 11385 cat > conftest.$ac_ext <<_LT_EOF 11386 #line 11386 "configure" 11387 #include "confdefs.h" 11388 11389 #if HAVE_DLFCN_H 11390 #include <dlfcn.h> 11391 #endif 11392 11393 #include <stdio.h> 11394 11395 #ifdef RTLD_GLOBAL 11396 # define LT_DLGLOBAL RTLD_GLOBAL 11397 #else 11398 # ifdef DL_GLOBAL 11399 # define LT_DLGLOBAL DL_GLOBAL 11400 # else 11401 # define LT_DLGLOBAL 0 11402 # endif 11403 #endif 11404 11405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11406 find out it does not work in some platform. */ 11407 #ifndef LT_DLLAZY_OR_NOW 11408 # ifdef RTLD_LAZY 11409 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11410 # else 11411 # ifdef DL_LAZY 11412 # define LT_DLLAZY_OR_NOW DL_LAZY 11413 # else 11414 # ifdef RTLD_NOW 11415 # define LT_DLLAZY_OR_NOW RTLD_NOW 11416 # else 11417 # ifdef DL_NOW 11418 # define LT_DLLAZY_OR_NOW DL_NOW 11419 # else 11420 # define LT_DLLAZY_OR_NOW 0 11421 # endif 11422 # endif 11423 # endif 11424 # endif 11425 #endif 11426 11427 /* When -fvisbility=hidden is used, assume the code has been annotated 11428 correspondingly for the symbols needed. */ 11429 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11430 void fnord () __attribute__((visibility("default"))); 11431 #endif 11432 11433 void fnord () { int i=42; } 11434 int main () 11435 { 11436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11437 int status = $lt_dlunknown; 11438 11439 if (self) 11440 { 11441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11442 else 11443 { 11444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11445 else puts (dlerror ()); 11446 } 11447 /* dlclose (self); */ 11448 } 11449 else 11450 puts (dlerror ()); 11451 11452 return status; 11453 } 11454 _LT_EOF 11455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11456 (eval $ac_link) 2>&5 11457 ac_status=$? 11458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11460 (./conftest; exit; ) >&5 2>/dev/null 11461 lt_status=$? 11462 case x$lt_status in 11463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11465 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11466 esac 11467 else : 11468 # compilation failed 11469 lt_cv_dlopen_self_static=no 11470 fi 11471 fi 11472 rm -fr conftest* 11473 11474 11475 fi 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11477 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11478 fi 11479 11480 CPPFLAGS="$save_CPPFLAGS" 11481 LDFLAGS="$save_LDFLAGS" 11482 LIBS="$save_LIBS" 11483 ;; 11484 esac 11485 11486 case $lt_cv_dlopen_self in 11487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11488 *) enable_dlopen_self=unknown ;; 11489 esac 11490 11491 case $lt_cv_dlopen_self_static in 11492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11493 *) enable_dlopen_self_static=unknown ;; 11494 esac 11495 fi 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 striplib= 11514 old_striplib= 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11516 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11517 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11518 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11519 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11521 $as_echo "yes" >&6; } 11522 else 11523 # FIXME - insert some real tests, host_os isn't really good enough 11524 case $host_os in 11525 darwin*) 11526 if test -n "$STRIP" ; then 11527 striplib="$STRIP -x" 11528 old_striplib="$STRIP -S" 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11530 $as_echo "yes" >&6; } 11531 else 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11533 $as_echo "no" >&6; } 11534 fi 11535 ;; 11536 *) 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11538 $as_echo "no" >&6; } 11539 ;; 11540 esac 11541 fi 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 # Report which library types will actually be built 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11556 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11558 $as_echo "$can_build_shared" >&6; } 11559 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11561 $as_echo_n "checking whether to build shared libraries... " >&6; } 11562 test "$can_build_shared" = "no" && enable_shared=no 11563 11564 # On AIX, shared libraries and static libraries use the same namespace, and 11565 # are all built from PIC. 11566 case $host_os in 11567 aix3*) 11568 test "$enable_shared" = yes && enable_static=no 11569 if test -n "$RANLIB"; then 11570 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11571 postinstall_cmds='$RANLIB $lib' 11572 fi 11573 ;; 11574 11575 aix[4-9]*) 11576 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11577 test "$enable_shared" = yes && enable_static=no 11578 fi 11579 ;; 11580 esac 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11582 $as_echo "$enable_shared" >&6; } 11583 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11585 $as_echo_n "checking whether to build static libraries... " >&6; } 11586 # Make sure either enable_shared or enable_static is yes. 11587 test "$enable_shared" = yes || enable_static=yes 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11589 $as_echo "$enable_static" >&6; } 11590 11591 11592 11593 11594 fi 11595 ac_ext=c 11596 ac_cpp='$CPP $CPPFLAGS' 11597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11600 11601 CC="$lt_save_CC" 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 ac_config_commands="$ac_config_commands libtool" 11616 11617 11618 11619 11620 # Only expand once: 11621 11622 11623 11624 ac_checking= 11625 . ${srcdir}/../bfd/development.sh 11626 test "$development" = true && ac_checking=yes 11627 # Check whether --enable-checking was given. 11628 if test "${enable_checking+set}" = set; then : 11629 enableval=$enable_checking; case "${enableval}" in 11630 no|none) ac_checking= ;; 11631 *) ac_checking=yes ;; 11632 esac 11633 fi 11634 if test x$ac_checking != x ; then 11635 11636 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11637 11638 fi 11639 11640 # Check whether --enable-targets was given. 11641 if test "${enable_targets+set}" = set; then : 11642 enableval=$enable_targets; case "${enableval}" in 11643 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11644 ;; 11645 no) enable_targets= ;; 11646 *) enable_targets=$enableval ;; 11647 esac 11648 fi 11649 11650 11651 # Set the 'development' global. 11652 . $srcdir/../bfd/development.sh 11653 11654 # Set acp_cpp_for_build variable 11655 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 11656 11657 # Default set of GCC warnings to enable. 11658 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11659 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11660 11661 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663 /* end confdefs.h. */ 11664 __GNUC__ 11665 _ACEOF 11666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11667 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11668 11669 else 11670 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 11671 fi 11672 rm -f conftest* 11673 11674 11675 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11676 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11677 #/* end confdefs.h. */ 11678 #__GNUC__ 11679 #_ACEOF 11680 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11681 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11682 # 11683 #else 11684 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685 #/* end confdefs.h. */ 11686 #__clang__ 11687 #_ACEOF 11688 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11689 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 11690 # GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 11691 #fi 11692 #rm -f conftest* 11693 11694 11695 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 11696 WARN_WRITE_STRINGS="" 11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11698 /* end confdefs.h. */ 11699 __GNUC__ 11700 _ACEOF 11701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11702 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11703 11704 else 11705 WARN_WRITE_STRINGS="-Wwrite-strings" 11706 fi 11707 rm -f conftest* 11708 11709 11710 # Verify CC_FOR_BUILD to be compatible with warning flags 11711 11712 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11714 /* end confdefs.h. */ 11715 __GNUC__ 11716 _ACEOF 11717 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11718 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11719 11720 else 11721 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 11722 fi 11723 rm -f conftest* 11724 11725 11726 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11727 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728 #/* end confdefs.h. */ 11729 #__GNUC__ 11730 #_ACEOF 11731 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11732 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11733 # 11734 #else 11735 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736 #/* end confdefs.h. */ 11737 #__clang__ 11738 #_ACEOF 11739 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11740 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 11741 # GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 11742 #fi 11743 #rm -f conftest* 11744 11745 11746 # Check whether --enable-werror was given. 11747 if test "${enable_werror+set}" = set; then : 11748 enableval=$enable_werror; case "${enableval}" in 11749 yes | y) ERROR_ON_WARNING="yes" ;; 11750 no | n) ERROR_ON_WARNING="no" ;; 11751 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 11752 esac 11753 fi 11754 11755 11756 # Disable -Wformat by default when using gcc on mingw 11757 case "${host}" in 11758 *-*-mingw32*) 11759 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 11760 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 11761 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 11762 fi 11763 ;; 11764 *) ;; 11765 esac 11766 11767 # Enable -Werror by default when using gcc. Turn it off for releases. 11768 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 11769 ERROR_ON_WARNING=yes 11770 fi 11771 11772 NO_WERROR= 11773 if test "${ERROR_ON_WARNING}" = yes ; then 11774 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 11775 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 11776 NO_WERROR="-Wno-error" 11777 fi 11778 11779 if test "${GCC}" = yes ; then 11780 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11781 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 11782 fi 11783 11784 # Check whether --enable-build-warnings was given. 11785 if test "${enable_build_warnings+set}" = set; then : 11786 enableval=$enable_build_warnings; case "${enableval}" in 11787 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11788 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 11789 no) if test "${GCC}" = yes ; then 11790 WARN_CFLAGS="-w" 11791 WARN_CFLAGS_FOR_BUILD="-w" 11792 fi;; 11793 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11794 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 11795 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 11796 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11797 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 11798 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 11799 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 11800 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 11801 esac 11802 fi 11803 11804 11805 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 11806 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 11807 fi 11808 11809 11810 11811 11812 11813 11814 11815 ac_config_headers="$ac_config_headers config.h:config.in" 11816 11817 11818 # PR 14072 11819 11820 11821 if test -z "$target" ; then 11822 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 11823 fi 11824 11825 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11827 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11828 # Check whether --enable-maintainer-mode was given. 11829 if test "${enable_maintainer_mode+set}" = set; then : 11830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11831 else 11832 USE_MAINTAINER_MODE=no 11833 fi 11834 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11836 $as_echo "$USE_MAINTAINER_MODE" >&6; } 11837 if test $USE_MAINTAINER_MODE = yes; then 11838 MAINTAINER_MODE_TRUE= 11839 MAINTAINER_MODE_FALSE='#' 11840 else 11841 MAINTAINER_MODE_TRUE='#' 11842 MAINTAINER_MODE_FALSE= 11843 fi 11844 11845 MAINT=$MAINTAINER_MODE_TRUE 11846 11847 11848 case ${build_alias} in 11849 "") build_noncanonical=${build} ;; 11850 *) build_noncanonical=${build_alias} ;; 11851 esac 11852 11853 case ${host_alias} in 11854 "") host_noncanonical=${build_noncanonical} ;; 11855 *) host_noncanonical=${host_alias} ;; 11856 esac 11857 11858 case ${target_alias} in 11859 "") target_noncanonical=${host_noncanonical} ;; 11860 *) target_noncanonical=${target_alias} ;; 11861 esac 11862 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 11864 $as_echo_n "checking whether to install libbfd... " >&6; } 11865 # Check whether --enable-install-libbfd was given. 11866 if test "${enable_install_libbfd+set}" = set; then : 11867 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 11868 else 11869 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 11870 install_libbfd_p=yes 11871 else 11872 install_libbfd_p=no 11873 fi 11874 fi 11875 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 11877 $as_echo "$install_libbfd_p" >&6; } 11878 if test $install_libbfd_p = yes; then 11879 INSTALL_LIBBFD_TRUE= 11880 INSTALL_LIBBFD_FALSE='#' 11881 else 11882 INSTALL_LIBBFD_TRUE='#' 11883 INSTALL_LIBBFD_FALSE= 11884 fi 11885 11886 # Need _noncanonical variables for this. 11887 11888 11889 11890 11891 # libbfd.a is a host library containing target dependent code 11892 bfdlibdir='$(libdir)' 11893 bfdincludedir='$(includedir)' 11894 if test "${host}" != "${target}"; then 11895 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 11896 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 11897 fi 11898 11899 11900 11901 11902 11903 11904 11905 11906 # host-specific stuff: 11907 11908 ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" 11909 11910 MKINSTALLDIRS= 11911 if test -n "$ac_aux_dir"; then 11912 case "$ac_aux_dir" in 11913 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 11914 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 11915 esac 11916 fi 11917 if test -z "$MKINSTALLDIRS"; then 11918 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 11919 fi 11920 11921 11922 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11924 $as_echo_n "checking whether NLS is requested... " >&6; } 11925 # Check whether --enable-nls was given. 11926 if test "${enable_nls+set}" = set; then : 11927 enableval=$enable_nls; USE_NLS=$enableval 11928 else 11929 USE_NLS=yes 11930 fi 11931 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11933 $as_echo "$USE_NLS" >&6; } 11934 11935 11936 11937 11938 11939 11940 # Prepare PATH_SEPARATOR. 11941 # The user is always right. 11942 if test "${PATH_SEPARATOR+set}" != set; then 11943 echo "#! /bin/sh" >conf$$.sh 11944 echo "exit 0" >>conf$$.sh 11945 chmod +x conf$$.sh 11946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11947 PATH_SEPARATOR=';' 11948 else 11949 PATH_SEPARATOR=: 11950 fi 11951 rm -f conf$$.sh 11952 fi 11953 11954 # Find out how to test for executable files. Don't use a zero-byte file, 11955 # as systems may use methods other than mode bits to determine executability. 11956 cat >conf$$.file <<_ASEOF 11957 #! /bin/sh 11958 exit 0 11959 _ASEOF 11960 chmod +x conf$$.file 11961 if test -x conf$$.file >/dev/null 2>&1; then 11962 ac_executable_p="test -x" 11963 else 11964 ac_executable_p="test -f" 11965 fi 11966 rm -f conf$$.file 11967 11968 # Extract the first word of "msgfmt", so it can be a program name with args. 11969 set dummy msgfmt; ac_word=$2 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11971 $as_echo_n "checking for $ac_word... " >&6; } 11972 if ${ac_cv_path_MSGFMT+:} false; then : 11973 $as_echo_n "(cached) " >&6 11974 else 11975 case "$MSGFMT" in 11976 [\\/]* | ?:[\\/]*) 11977 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11978 ;; 11979 *) 11980 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11981 for ac_dir in $PATH; do 11982 IFS="$ac_save_IFS" 11983 test -z "$ac_dir" && ac_dir=. 11984 for ac_exec_ext in '' $ac_executable_extensions; do 11985 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11986 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 11987 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11988 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11989 break 2 11990 fi 11991 fi 11992 done 11993 done 11994 IFS="$ac_save_IFS" 11995 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11996 ;; 11997 esac 11998 fi 11999 MSGFMT="$ac_cv_path_MSGFMT" 12000 if test "$MSGFMT" != ":"; then 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12002 $as_echo "$MSGFMT" >&6; } 12003 else 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12005 $as_echo "no" >&6; } 12006 fi 12007 12008 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12009 set dummy gmsgfmt; ac_word=$2 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12011 $as_echo_n "checking for $ac_word... " >&6; } 12012 if ${ac_cv_path_GMSGFMT+:} false; then : 12013 $as_echo_n "(cached) " >&6 12014 else 12015 case $GMSGFMT in 12016 [\\/]* | ?:[\\/]*) 12017 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12018 ;; 12019 *) 12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12021 for as_dir in $PATH 12022 do 12023 IFS=$as_save_IFS 12024 test -z "$as_dir" && as_dir=. 12025 for ac_exec_ext in '' $ac_executable_extensions; do 12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12027 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12029 break 2 12030 fi 12031 done 12032 done 12033 IFS=$as_save_IFS 12034 12035 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12036 ;; 12037 esac 12038 fi 12039 GMSGFMT=$ac_cv_path_GMSGFMT 12040 if test -n "$GMSGFMT"; then 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12042 $as_echo "$GMSGFMT" >&6; } 12043 else 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12045 $as_echo "no" >&6; } 12046 fi 12047 12048 12049 12050 12051 # Prepare PATH_SEPARATOR. 12052 # The user is always right. 12053 if test "${PATH_SEPARATOR+set}" != set; then 12054 echo "#! /bin/sh" >conf$$.sh 12055 echo "exit 0" >>conf$$.sh 12056 chmod +x conf$$.sh 12057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12058 PATH_SEPARATOR=';' 12059 else 12060 PATH_SEPARATOR=: 12061 fi 12062 rm -f conf$$.sh 12063 fi 12064 12065 # Find out how to test for executable files. Don't use a zero-byte file, 12066 # as systems may use methods other than mode bits to determine executability. 12067 cat >conf$$.file <<_ASEOF 12068 #! /bin/sh 12069 exit 0 12070 _ASEOF 12071 chmod +x conf$$.file 12072 if test -x conf$$.file >/dev/null 2>&1; then 12073 ac_executable_p="test -x" 12074 else 12075 ac_executable_p="test -f" 12076 fi 12077 rm -f conf$$.file 12078 12079 # Extract the first word of "xgettext", so it can be a program name with args. 12080 set dummy xgettext; ac_word=$2 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12082 $as_echo_n "checking for $ac_word... " >&6; } 12083 if ${ac_cv_path_XGETTEXT+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085 else 12086 case "$XGETTEXT" in 12087 [\\/]* | ?:[\\/]*) 12088 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12089 ;; 12090 *) 12091 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12092 for ac_dir in $PATH; do 12093 IFS="$ac_save_IFS" 12094 test -z "$ac_dir" && ac_dir=. 12095 for ac_exec_ext in '' $ac_executable_extensions; do 12096 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12097 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12098 (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 12099 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12100 break 2 12101 fi 12102 fi 12103 done 12104 done 12105 IFS="$ac_save_IFS" 12106 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12107 ;; 12108 esac 12109 fi 12110 XGETTEXT="$ac_cv_path_XGETTEXT" 12111 if test "$XGETTEXT" != ":"; then 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12113 $as_echo "$XGETTEXT" >&6; } 12114 else 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12116 $as_echo "no" >&6; } 12117 fi 12118 12119 rm -f messages.po 12120 12121 12122 # Prepare PATH_SEPARATOR. 12123 # The user is always right. 12124 if test "${PATH_SEPARATOR+set}" != set; then 12125 echo "#! /bin/sh" >conf$$.sh 12126 echo "exit 0" >>conf$$.sh 12127 chmod +x conf$$.sh 12128 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12129 PATH_SEPARATOR=';' 12130 else 12131 PATH_SEPARATOR=: 12132 fi 12133 rm -f conf$$.sh 12134 fi 12135 12136 # Find out how to test for executable files. Don't use a zero-byte file, 12137 # as systems may use methods other than mode bits to determine executability. 12138 cat >conf$$.file <<_ASEOF 12139 #! /bin/sh 12140 exit 0 12141 _ASEOF 12142 chmod +x conf$$.file 12143 if test -x conf$$.file >/dev/null 2>&1; then 12144 ac_executable_p="test -x" 12145 else 12146 ac_executable_p="test -f" 12147 fi 12148 rm -f conf$$.file 12149 12150 # Extract the first word of "msgmerge", so it can be a program name with args. 12151 set dummy msgmerge; ac_word=$2 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12153 $as_echo_n "checking for $ac_word... " >&6; } 12154 if ${ac_cv_path_MSGMERGE+:} false; then : 12155 $as_echo_n "(cached) " >&6 12156 else 12157 case "$MSGMERGE" in 12158 [\\/]* | ?:[\\/]*) 12159 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12160 ;; 12161 *) 12162 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12163 for ac_dir in $PATH; do 12164 IFS="$ac_save_IFS" 12165 test -z "$ac_dir" && ac_dir=. 12166 for ac_exec_ext in '' $ac_executable_extensions; do 12167 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12168 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12169 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12170 break 2 12171 fi 12172 fi 12173 done 12174 done 12175 IFS="$ac_save_IFS" 12176 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12177 ;; 12178 esac 12179 fi 12180 MSGMERGE="$ac_cv_path_MSGMERGE" 12181 if test "$MSGMERGE" != ":"; then 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12183 $as_echo "$MSGMERGE" >&6; } 12184 else 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12186 $as_echo "no" >&6; } 12187 fi 12188 12189 12190 if test "$GMSGFMT" != ":"; then 12191 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12192 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12193 : ; 12194 else 12195 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12197 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12198 GMSGFMT=":" 12199 fi 12200 fi 12201 12202 if test "$XGETTEXT" != ":"; then 12203 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12204 (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 12205 : ; 12206 else 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12208 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12209 XGETTEXT=":" 12210 fi 12211 rm -f messages.po 12212 fi 12213 12214 ac_config_commands="$ac_config_commands default-1" 12215 12216 12217 12218 if test "X$prefix" = "XNONE"; then 12219 acl_final_prefix="$ac_default_prefix" 12220 else 12221 acl_final_prefix="$prefix" 12222 fi 12223 if test "X$exec_prefix" = "XNONE"; then 12224 acl_final_exec_prefix='${prefix}' 12225 else 12226 acl_final_exec_prefix="$exec_prefix" 12227 fi 12228 acl_save_prefix="$prefix" 12229 prefix="$acl_final_prefix" 12230 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12231 prefix="$acl_save_prefix" 12232 12233 12234 # Check whether --with-gnu-ld was given. 12235 if test "${with_gnu_ld+set}" = set; then : 12236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12237 else 12238 with_gnu_ld=no 12239 fi 12240 12241 # Prepare PATH_SEPARATOR. 12242 # The user is always right. 12243 if test "${PATH_SEPARATOR+set}" != set; then 12244 echo "#! /bin/sh" >conf$$.sh 12245 echo "exit 0" >>conf$$.sh 12246 chmod +x conf$$.sh 12247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12248 PATH_SEPARATOR=';' 12249 else 12250 PATH_SEPARATOR=: 12251 fi 12252 rm -f conf$$.sh 12253 fi 12254 ac_prog=ld 12255 if test "$GCC" = yes; then 12256 # Check if gcc -print-prog-name=ld gives a path. 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 12258 $as_echo_n "checking for ld used by GCC... " >&6; } 12259 case $host in 12260 *-*-mingw*) 12261 # gcc leaves a trailing carriage return which upsets mingw 12262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12263 *) 12264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12265 esac 12266 case $ac_prog in 12267 # Accept absolute paths. 12268 [\\/]* | [A-Za-z]:[\\/]*) 12269 re_direlt='/[^/][^/]*/\.\./' 12270 # Canonicalize the path of ld 12271 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 12272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12273 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12274 done 12275 test -z "$LD" && LD="$ac_prog" 12276 ;; 12277 "") 12278 # If it fails, then pretend we aren't using GCC. 12279 ac_prog=ld 12280 ;; 12281 *) 12282 # If it is relative, then search for the first ld in PATH. 12283 with_gnu_ld=unknown 12284 ;; 12285 esac 12286 elif test "$with_gnu_ld" = yes; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12288 $as_echo_n "checking for GNU ld... " >&6; } 12289 else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12291 $as_echo_n "checking for non-GNU ld... " >&6; } 12292 fi 12293 if ${acl_cv_path_LD+:} false; then : 12294 $as_echo_n "(cached) " >&6 12295 else 12296 if test -z "$LD"; then 12297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 12298 for ac_dir in $PATH; do 12299 test -z "$ac_dir" && ac_dir=. 12300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12301 acl_cv_path_LD="$ac_dir/$ac_prog" 12302 # Check to see if the program is GNU ld. I'd rather use --version, 12303 # but apparently some GNU ld's only accept -v. 12304 # Break only if it was the GNU/non-GNU ld that we prefer. 12305 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 12306 test "$with_gnu_ld" != no && break 12307 else 12308 test "$with_gnu_ld" != yes && break 12309 fi 12310 fi 12311 done 12312 IFS="$ac_save_ifs" 12313 else 12314 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12315 fi 12316 fi 12317 12318 LD="$acl_cv_path_LD" 12319 if test -n "$LD"; then 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12321 $as_echo "$LD" >&6; } 12322 else 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12324 $as_echo "no" >&6; } 12325 fi 12326 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12328 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12329 if ${acl_cv_prog_gnu_ld+:} false; then : 12330 $as_echo_n "(cached) " >&6 12331 else 12332 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12333 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 12334 acl_cv_prog_gnu_ld=yes 12335 else 12336 acl_cv_prog_gnu_ld=no 12337 fi 12338 fi 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 12340 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 12341 with_gnu_ld=$acl_cv_prog_gnu_ld 12342 12343 12344 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 12346 $as_echo_n "checking for shared library run path origin... " >&6; } 12347 if ${acl_cv_rpath+:} false; then : 12348 $as_echo_n "(cached) " >&6 12349 else 12350 12351 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 12352 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 12353 . ./conftest.sh 12354 rm -f ./conftest.sh 12355 acl_cv_rpath=done 12356 12357 fi 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 12359 $as_echo "$acl_cv_rpath" >&6; } 12360 wl="$acl_cv_wl" 12361 libext="$acl_cv_libext" 12362 shlibext="$acl_cv_shlibext" 12363 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 12364 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 12365 hardcode_direct="$acl_cv_hardcode_direct" 12366 hardcode_minus_L="$acl_cv_hardcode_minus_L" 12367 # Check whether --enable-rpath was given. 12368 if test "${enable_rpath+set}" = set; then : 12369 enableval=$enable_rpath; : 12370 else 12371 enable_rpath=yes 12372 fi 12373 12374 12375 12376 12377 12378 12379 12380 12381 use_additional=yes 12382 12383 acl_save_prefix="$prefix" 12384 prefix="$acl_final_prefix" 12385 acl_save_exec_prefix="$exec_prefix" 12386 exec_prefix="$acl_final_exec_prefix" 12387 12388 eval additional_includedir=\"$includedir\" 12389 eval additional_libdir=\"$libdir\" 12390 12391 exec_prefix="$acl_save_exec_prefix" 12392 prefix="$acl_save_prefix" 12393 12394 12395 # Check whether --with-libiconv-prefix was given. 12396 if test "${with_libiconv_prefix+set}" = set; then : 12397 withval=$with_libiconv_prefix; 12398 if test "X$withval" = "Xno"; then 12399 use_additional=no 12400 else 12401 if test "X$withval" = "X"; then 12402 12403 acl_save_prefix="$prefix" 12404 prefix="$acl_final_prefix" 12405 acl_save_exec_prefix="$exec_prefix" 12406 exec_prefix="$acl_final_exec_prefix" 12407 12408 eval additional_includedir=\"$includedir\" 12409 eval additional_libdir=\"$libdir\" 12410 12411 exec_prefix="$acl_save_exec_prefix" 12412 prefix="$acl_save_prefix" 12413 12414 else 12415 additional_includedir="$withval/include" 12416 additional_libdir="$withval/lib" 12417 fi 12418 fi 12419 12420 fi 12421 12422 12423 # Check whether --with-libiconv-type was given. 12424 if test "${with_libiconv_type+set}" = set; then : 12425 withval=$with_libiconv_type; with_libiconv_type=$withval 12426 else 12427 with_libiconv_type=auto 12428 fi 12429 12430 lib_type=`eval echo \$with_libiconv_type` 12431 12432 LIBICONV= 12433 LTLIBICONV= 12434 INCICONV= 12435 rpathdirs= 12436 ltrpathdirs= 12437 names_already_handled= 12438 names_next_round='iconv ' 12439 while test -n "$names_next_round"; do 12440 names_this_round="$names_next_round" 12441 names_next_round= 12442 for name in $names_this_round; do 12443 already_handled= 12444 for n in $names_already_handled; do 12445 if test "$n" = "$name"; then 12446 already_handled=yes 12447 break 12448 fi 12449 done 12450 if test -z "$already_handled"; then 12451 names_already_handled="$names_already_handled $name" 12452 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12453 eval value=\"\$HAVE_LIB$uppername\" 12454 if test -n "$value"; then 12455 if test "$value" = yes; then 12456 eval value=\"\$LIB$uppername\" 12457 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12458 eval value=\"\$LTLIB$uppername\" 12459 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12460 else 12461 : 12462 fi 12463 else 12464 found_dir= 12465 found_la= 12466 found_so= 12467 found_a= 12468 if test $use_additional = yes; then 12469 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12470 found_dir="$additional_libdir" 12471 found_so="$additional_libdir/lib$name.$shlibext" 12472 if test -f "$additional_libdir/lib$name.la"; then 12473 found_la="$additional_libdir/lib$name.la" 12474 fi 12475 elif test x$lib_type != xshared; then 12476 if test -f "$additional_libdir/lib$name.$libext"; then 12477 found_dir="$additional_libdir" 12478 found_a="$additional_libdir/lib$name.$libext" 12479 if test -f "$additional_libdir/lib$name.la"; then 12480 found_la="$additional_libdir/lib$name.la" 12481 fi 12482 fi 12483 fi 12484 fi 12485 if test "X$found_dir" = "X"; then 12486 for x in $LDFLAGS $LTLIBICONV; do 12487 12488 acl_save_prefix="$prefix" 12489 prefix="$acl_final_prefix" 12490 acl_save_exec_prefix="$exec_prefix" 12491 exec_prefix="$acl_final_exec_prefix" 12492 eval x=\"$x\" 12493 exec_prefix="$acl_save_exec_prefix" 12494 prefix="$acl_save_prefix" 12495 12496 case "$x" in 12497 -L*) 12498 dir=`echo "X$x" | sed -e 's/^X-L//'` 12499 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12500 found_dir="$dir" 12501 found_so="$dir/lib$name.$shlibext" 12502 if test -f "$dir/lib$name.la"; then 12503 found_la="$dir/lib$name.la" 12504 fi 12505 elif test x$lib_type != xshared; then 12506 if test -f "$dir/lib$name.$libext"; then 12507 found_dir="$dir" 12508 found_a="$dir/lib$name.$libext" 12509 if test -f "$dir/lib$name.la"; then 12510 found_la="$dir/lib$name.la" 12511 fi 12512 fi 12513 fi 12514 ;; 12515 esac 12516 if test "X$found_dir" != "X"; then 12517 break 12518 fi 12519 done 12520 fi 12521 if test "X$found_dir" != "X"; then 12522 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12523 if test "X$found_so" != "X"; then 12524 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12526 else 12527 haveit= 12528 for x in $ltrpathdirs; do 12529 if test "X$x" = "X$found_dir"; then 12530 haveit=yes 12531 break 12532 fi 12533 done 12534 if test -z "$haveit"; then 12535 ltrpathdirs="$ltrpathdirs $found_dir" 12536 fi 12537 if test "$hardcode_direct" = yes; then 12538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12539 else 12540 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12541 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12542 haveit= 12543 for x in $rpathdirs; do 12544 if test "X$x" = "X$found_dir"; then 12545 haveit=yes 12546 break 12547 fi 12548 done 12549 if test -z "$haveit"; then 12550 rpathdirs="$rpathdirs $found_dir" 12551 fi 12552 else 12553 haveit= 12554 for x in $LDFLAGS $LIBICONV; do 12555 12556 acl_save_prefix="$prefix" 12557 prefix="$acl_final_prefix" 12558 acl_save_exec_prefix="$exec_prefix" 12559 exec_prefix="$acl_final_exec_prefix" 12560 eval x=\"$x\" 12561 exec_prefix="$acl_save_exec_prefix" 12562 prefix="$acl_save_prefix" 12563 12564 if test "X$x" = "X-L$found_dir"; then 12565 haveit=yes 12566 break 12567 fi 12568 done 12569 if test -z "$haveit"; then 12570 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12571 fi 12572 if test "$hardcode_minus_L" != no; then 12573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12574 else 12575 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12576 fi 12577 fi 12578 fi 12579 fi 12580 else 12581 if test "X$found_a" != "X"; then 12582 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12583 else 12584 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12585 fi 12586 fi 12587 additional_includedir= 12588 case "$found_dir" in 12589 */lib | */lib/) 12590 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12591 additional_includedir="$basedir/include" 12592 ;; 12593 esac 12594 if test "X$additional_includedir" != "X"; then 12595 if test "X$additional_includedir" != "X/usr/include"; then 12596 haveit= 12597 if test "X$additional_includedir" = "X/usr/local/include"; then 12598 if test -n "$GCC"; then 12599 case $host_os in 12600 linux*) haveit=yes;; 12601 esac 12602 fi 12603 fi 12604 if test -z "$haveit"; then 12605 for x in $CPPFLAGS $INCICONV; do 12606 12607 acl_save_prefix="$prefix" 12608 prefix="$acl_final_prefix" 12609 acl_save_exec_prefix="$exec_prefix" 12610 exec_prefix="$acl_final_exec_prefix" 12611 eval x=\"$x\" 12612 exec_prefix="$acl_save_exec_prefix" 12613 prefix="$acl_save_prefix" 12614 12615 if test "X$x" = "X-I$additional_includedir"; then 12616 haveit=yes 12617 break 12618 fi 12619 done 12620 if test -z "$haveit"; then 12621 if test -d "$additional_includedir"; then 12622 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12623 fi 12624 fi 12625 fi 12626 fi 12627 fi 12628 if test -n "$found_la"; then 12629 save_libdir="$libdir" 12630 case "$found_la" in 12631 */* | *\\*) . "$found_la" ;; 12632 *) . "./$found_la" ;; 12633 esac 12634 libdir="$save_libdir" 12635 for dep in $dependency_libs; do 12636 case "$dep" in 12637 -L*) 12638 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12639 if test "X$additional_libdir" != "X/usr/lib"; then 12640 haveit= 12641 if test "X$additional_libdir" = "X/usr/local/lib"; then 12642 if test -n "$GCC"; then 12643 case $host_os in 12644 linux*) haveit=yes;; 12645 esac 12646 fi 12647 fi 12648 if test -z "$haveit"; then 12649 haveit= 12650 for x in $LDFLAGS $LIBICONV; do 12651 12652 acl_save_prefix="$prefix" 12653 prefix="$acl_final_prefix" 12654 acl_save_exec_prefix="$exec_prefix" 12655 exec_prefix="$acl_final_exec_prefix" 12656 eval x=\"$x\" 12657 exec_prefix="$acl_save_exec_prefix" 12658 prefix="$acl_save_prefix" 12659 12660 if test "X$x" = "X-L$additional_libdir"; then 12661 haveit=yes 12662 break 12663 fi 12664 done 12665 if test -z "$haveit"; then 12666 if test -d "$additional_libdir"; then 12667 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12668 fi 12669 fi 12670 haveit= 12671 for x in $LDFLAGS $LTLIBICONV; do 12672 12673 acl_save_prefix="$prefix" 12674 prefix="$acl_final_prefix" 12675 acl_save_exec_prefix="$exec_prefix" 12676 exec_prefix="$acl_final_exec_prefix" 12677 eval x=\"$x\" 12678 exec_prefix="$acl_save_exec_prefix" 12679 prefix="$acl_save_prefix" 12680 12681 if test "X$x" = "X-L$additional_libdir"; then 12682 haveit=yes 12683 break 12684 fi 12685 done 12686 if test -z "$haveit"; then 12687 if test -d "$additional_libdir"; then 12688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12689 fi 12690 fi 12691 fi 12692 fi 12693 ;; 12694 -R*) 12695 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12696 if test "$enable_rpath" != no; then 12697 haveit= 12698 for x in $rpathdirs; do 12699 if test "X$x" = "X$dir"; then 12700 haveit=yes 12701 break 12702 fi 12703 done 12704 if test -z "$haveit"; then 12705 rpathdirs="$rpathdirs $dir" 12706 fi 12707 haveit= 12708 for x in $ltrpathdirs; do 12709 if test "X$x" = "X$dir"; then 12710 haveit=yes 12711 break 12712 fi 12713 done 12714 if test -z "$haveit"; then 12715 ltrpathdirs="$ltrpathdirs $dir" 12716 fi 12717 fi 12718 ;; 12719 -l*) 12720 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12721 ;; 12722 *.la) 12723 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12724 ;; 12725 *) 12726 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12728 ;; 12729 esac 12730 done 12731 fi 12732 else 12733 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 12734 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12736 else 12737 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 12738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 12739 fi 12740 fi 12741 fi 12742 fi 12743 done 12744 done 12745 if test "X$rpathdirs" != "X"; then 12746 if test -n "$hardcode_libdir_separator"; then 12747 alldirs= 12748 for found_dir in $rpathdirs; do 12749 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12750 done 12751 acl_save_libdir="$libdir" 12752 libdir="$alldirs" 12753 eval flag=\"$hardcode_libdir_flag_spec\" 12754 libdir="$acl_save_libdir" 12755 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12756 else 12757 for found_dir in $rpathdirs; do 12758 acl_save_libdir="$libdir" 12759 libdir="$found_dir" 12760 eval flag=\"$hardcode_libdir_flag_spec\" 12761 libdir="$acl_save_libdir" 12762 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12763 done 12764 fi 12765 fi 12766 if test "X$ltrpathdirs" != "X"; then 12767 for found_dir in $ltrpathdirs; do 12768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12769 done 12770 fi 12771 12772 12773 12774 12775 12776 if test -f ../gettext/uninstalled-config.sh; then 12777 relative_builddir='$(top_builddir)/../gettext' 12778 . ../gettext/uninstalled-config.sh 12779 else 12780 # The sister gettext directory doesn't exist and won't collect information on 12781 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12806 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12807 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809 else 12810 gt_save_LIBS="$LIBS" 12811 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12813 /* end confdefs.h. */ 12814 #include <CoreFoundation/CFPreferences.h> 12815 int 12816 main () 12817 { 12818 CFPreferencesCopyAppValue(NULL, NULL) 12819 ; 12820 return 0; 12821 } 12822 _ACEOF 12823 if ac_fn_c_try_link "$LINENO"; then : 12824 gt_cv_func_CFPreferencesCopyAppValue=yes 12825 else 12826 gt_cv_func_CFPreferencesCopyAppValue=no 12827 fi 12828 rm -f core conftest.err conftest.$ac_objext \ 12829 conftest$ac_exeext conftest.$ac_ext 12830 LIBS="$gt_save_LIBS" 12831 fi 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12833 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12834 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12835 12836 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12837 12838 fi 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 12840 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 12841 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 12842 $as_echo_n "(cached) " >&6 12843 else 12844 gt_save_LIBS="$LIBS" 12845 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12847 /* end confdefs.h. */ 12848 #include <CoreFoundation/CFLocale.h> 12849 int 12850 main () 12851 { 12852 CFLocaleCopyPreferredLanguages(); 12853 ; 12854 return 0; 12855 } 12856 _ACEOF 12857 if ac_fn_c_try_link "$LINENO"; then : 12858 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 12859 else 12860 gt_cv_func_CFLocaleCopyPreferredLanguages=no 12861 fi 12862 rm -f core conftest.err conftest.$ac_objext \ 12863 conftest$ac_exeext conftest.$ac_ext 12864 LIBS="$gt_save_LIBS" 12865 fi 12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 12867 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 12868 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12869 12870 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 12871 12872 fi 12873 INTL_MACOSX_LIBS= 12874 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 12875 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12876 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 12877 fi 12878 12879 12880 12881 12882 12883 12884 LIBINTL= 12885 LTLIBINTL= 12886 POSUB= 12887 12888 case " $gt_needs " in 12889 *" need-formatstring-macros "*) gt_api_version=3 ;; 12890 *" need-ngettext "*) gt_api_version=2 ;; 12891 *) gt_api_version=1 ;; 12892 esac 12893 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12894 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12895 12896 if test "$USE_NLS" = "yes"; then 12897 gt_use_preinstalled_gnugettext=no 12898 12899 12900 if test $gt_api_version -ge 3; then 12901 gt_revision_test_code=' 12902 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12903 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12904 #endif 12905 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12906 ' 12907 else 12908 gt_revision_test_code= 12909 fi 12910 if test $gt_api_version -ge 2; then 12911 gt_expression_test_code=' + * ngettext ("", "", 0)' 12912 else 12913 gt_expression_test_code= 12914 fi 12915 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12917 $as_echo_n "checking for GNU gettext in libc... " >&6; } 12918 if eval \${$gt_func_gnugettext_libc+:} false; then : 12919 $as_echo_n "(cached) " >&6 12920 else 12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12922 /* end confdefs.h. */ 12923 12924 #include <libintl.h> 12925 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12926 extern int _nl_msg_cat_cntr; 12927 extern int *_nl_domain_bindings; 12928 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 12929 #else 12930 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 12931 #endif 12932 $gt_revision_test_code 12933 12934 int 12935 main () 12936 { 12937 12938 bindtextdomain ("", ""); 12939 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 12940 12941 ; 12942 return 0; 12943 } 12944 _ACEOF 12945 if ac_fn_c_try_link "$LINENO"; then : 12946 eval "$gt_func_gnugettext_libc=yes" 12947 else 12948 eval "$gt_func_gnugettext_libc=no" 12949 fi 12950 rm -f core conftest.err conftest.$ac_objext \ 12951 conftest$ac_exeext conftest.$ac_ext 12952 fi 12953 eval ac_res=\$$gt_func_gnugettext_libc 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12955 $as_echo "$ac_res" >&6; } 12956 12957 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12958 12959 12960 12961 12962 12963 am_save_CPPFLAGS="$CPPFLAGS" 12964 12965 for element in $INCICONV; do 12966 haveit= 12967 for x in $CPPFLAGS; do 12968 12969 acl_save_prefix="$prefix" 12970 prefix="$acl_final_prefix" 12971 acl_save_exec_prefix="$exec_prefix" 12972 exec_prefix="$acl_final_exec_prefix" 12973 eval x=\"$x\" 12974 exec_prefix="$acl_save_exec_prefix" 12975 prefix="$acl_save_prefix" 12976 12977 if test "X$x" = "X$element"; then 12978 haveit=yes 12979 break 12980 fi 12981 done 12982 if test -z "$haveit"; then 12983 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12984 fi 12985 done 12986 12987 12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12989 $as_echo_n "checking for iconv... " >&6; } 12990 if ${am_cv_func_iconv+:} false; then : 12991 $as_echo_n "(cached) " >&6 12992 else 12993 12994 am_cv_func_iconv="no, consider installing GNU libiconv" 12995 am_cv_lib_iconv=no 12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12997 /* end confdefs.h. */ 12998 12999 #include <stdlib.h> 13000 #include <iconv.h> 13001 13002 int 13003 main () 13004 { 13005 iconv_t cd = iconv_open("",""); 13006 iconv(cd,NULL,NULL,NULL,NULL); 13007 iconv_close(cd); 13008 ; 13009 return 0; 13010 } 13011 _ACEOF 13012 if ac_fn_c_try_link "$LINENO"; then : 13013 am_cv_func_iconv=yes 13014 fi 13015 rm -f core conftest.err conftest.$ac_objext \ 13016 conftest$ac_exeext conftest.$ac_ext 13017 if test "$am_cv_func_iconv" != yes; then 13018 am_save_LIBS="$LIBS" 13019 LIBS="$LIBS $LIBICONV" 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021 /* end confdefs.h. */ 13022 13023 #include <stdlib.h> 13024 #include <iconv.h> 13025 13026 int 13027 main () 13028 { 13029 iconv_t cd = iconv_open("",""); 13030 iconv(cd,NULL,NULL,NULL,NULL); 13031 iconv_close(cd); 13032 ; 13033 return 0; 13034 } 13035 _ACEOF 13036 if ac_fn_c_try_link "$LINENO"; then : 13037 am_cv_lib_iconv=yes 13038 am_cv_func_iconv=yes 13039 fi 13040 rm -f core conftest.err conftest.$ac_objext \ 13041 conftest$ac_exeext conftest.$ac_ext 13042 LIBS="$am_save_LIBS" 13043 fi 13044 13045 fi 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13047 $as_echo "$am_cv_func_iconv" >&6; } 13048 if test "$am_cv_func_iconv" = yes; then 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13050 $as_echo_n "checking for working iconv... " >&6; } 13051 if ${am_cv_func_iconv_works+:} false; then : 13052 $as_echo_n "(cached) " >&6 13053 else 13054 13055 am_save_LIBS="$LIBS" 13056 if test $am_cv_lib_iconv = yes; then 13057 LIBS="$LIBS $LIBICONV" 13058 fi 13059 am_cv_func_iconv_works=no 13060 for ac_iconv_const in '' 'const'; do 13061 if test "$cross_compiling" = yes; then : 13062 case "$host_os" in 13063 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13064 *) am_cv_func_iconv_works="guessing yes" ;; 13065 esac 13066 else 13067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13068 /* end confdefs.h. */ 13069 13070 #include <iconv.h> 13071 #include <string.h> 13072 13073 #ifndef ICONV_CONST 13074 # define ICONV_CONST $ac_iconv_const 13075 #endif 13076 13077 int 13078 main () 13079 { 13080 int result = 0; 13081 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 13082 successful returns. This is even documented in 13083 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 13084 { 13085 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13086 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13087 { 13088 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 13089 char buf[10]; 13090 ICONV_CONST char *inptr = input; 13091 size_t inbytesleft = strlen (input); 13092 char *outptr = buf; 13093 size_t outbytesleft = sizeof (buf); 13094 size_t res = iconv (cd_utf8_to_88591, 13095 &inptr, &inbytesleft, 13096 &outptr, &outbytesleft); 13097 if (res == 0) 13098 result |= 1; 13099 iconv_close (cd_utf8_to_88591); 13100 } 13101 } 13102 /* Test against Solaris 10 bug: Failures are not distinguishable from 13103 successful returns. */ 13104 { 13105 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13106 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13107 { 13108 static ICONV_CONST char input[] = "\263"; 13109 char buf[10]; 13110 ICONV_CONST char *inptr = input; 13111 size_t inbytesleft = strlen (input); 13112 char *outptr = buf; 13113 size_t outbytesleft = sizeof (buf); 13114 size_t res = iconv (cd_ascii_to_88591, 13115 &inptr, &inbytesleft, 13116 &outptr, &outbytesleft); 13117 if (res == 0) 13118 result |= 2; 13119 iconv_close (cd_ascii_to_88591); 13120 } 13121 } 13122 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13123 { 13124 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13125 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13126 { 13127 static ICONV_CONST char input[] = "\304"; 13128 static char buf[2] = { (char)0xDE, (char)0xAD }; 13129 ICONV_CONST char *inptr = input; 13130 size_t inbytesleft = 1; 13131 char *outptr = buf; 13132 size_t outbytesleft = 1; 13133 size_t res = iconv (cd_88591_to_utf8, 13134 &inptr, &inbytesleft, 13135 &outptr, &outbytesleft); 13136 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13137 result |= 4; 13138 iconv_close (cd_88591_to_utf8); 13139 } 13140 } 13141 #if 0 /* This bug could be worked around by the caller. */ 13142 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 13143 { 13144 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 13145 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13146 { 13147 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 13148 char buf[50]; 13149 ICONV_CONST char *inptr = input; 13150 size_t inbytesleft = strlen (input); 13151 char *outptr = buf; 13152 size_t outbytesleft = sizeof (buf); 13153 size_t res = iconv (cd_88591_to_utf8, 13154 &inptr, &inbytesleft, 13155 &outptr, &outbytesleft); 13156 if ((int)res > 0) 13157 result |= 8; 13158 iconv_close (cd_88591_to_utf8); 13159 } 13160 } 13161 #endif 13162 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 13163 provided. */ 13164 { 13165 /* Try standardized names. */ 13166 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 13167 /* Try IRIX, OSF/1 names. */ 13168 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 13169 /* Try AIX names. */ 13170 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 13171 /* Try HP-UX names. */ 13172 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 13173 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 13174 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 13175 result |= 16; 13176 if (cd1 != (iconv_t)(-1)) 13177 iconv_close (cd1); 13178 if (cd2 != (iconv_t)(-1)) 13179 iconv_close (cd2); 13180 if (cd3 != (iconv_t)(-1)) 13181 iconv_close (cd3); 13182 if (cd4 != (iconv_t)(-1)) 13183 iconv_close (cd4); 13184 } 13185 return result; 13186 13187 ; 13188 return 0; 13189 } 13190 _ACEOF 13191 if ac_fn_c_try_run "$LINENO"; then : 13192 am_cv_func_iconv_works=yes 13193 fi 13194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13195 conftest.$ac_objext conftest.beam conftest.$ac_ext 13196 fi 13197 13198 test "$am_cv_func_iconv_works" = no || break 13199 done 13200 LIBS="$am_save_LIBS" 13201 13202 fi 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13204 $as_echo "$am_cv_func_iconv_works" >&6; } 13205 case "$am_cv_func_iconv_works" in 13206 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13207 *) am_func_iconv=yes ;; 13208 esac 13209 else 13210 am_func_iconv=no am_cv_lib_iconv=no 13211 fi 13212 if test "$am_func_iconv" = yes; then 13213 13214 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 13215 13216 fi 13217 if test "$am_cv_lib_iconv" = yes; then 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13219 $as_echo_n "checking how to link with libiconv... " >&6; } 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13221 $as_echo "$LIBICONV" >&6; } 13222 else 13223 CPPFLAGS="$am_save_CPPFLAGS" 13224 LIBICONV= 13225 LTLIBICONV= 13226 fi 13227 13228 13229 13230 13231 13232 13233 use_additional=yes 13234 13235 acl_save_prefix="$prefix" 13236 prefix="$acl_final_prefix" 13237 acl_save_exec_prefix="$exec_prefix" 13238 exec_prefix="$acl_final_exec_prefix" 13239 13240 eval additional_includedir=\"$includedir\" 13241 eval additional_libdir=\"$libdir\" 13242 13243 exec_prefix="$acl_save_exec_prefix" 13244 prefix="$acl_save_prefix" 13245 13246 13247 # Check whether --with-libintl-prefix was given. 13248 if test "${with_libintl_prefix+set}" = set; then : 13249 withval=$with_libintl_prefix; 13250 if test "X$withval" = "Xno"; then 13251 use_additional=no 13252 else 13253 if test "X$withval" = "X"; then 13254 13255 acl_save_prefix="$prefix" 13256 prefix="$acl_final_prefix" 13257 acl_save_exec_prefix="$exec_prefix" 13258 exec_prefix="$acl_final_exec_prefix" 13259 13260 eval additional_includedir=\"$includedir\" 13261 eval additional_libdir=\"$libdir\" 13262 13263 exec_prefix="$acl_save_exec_prefix" 13264 prefix="$acl_save_prefix" 13265 13266 else 13267 additional_includedir="$withval/include" 13268 additional_libdir="$withval/lib" 13269 fi 13270 fi 13271 13272 fi 13273 13274 13275 # Check whether --with-libintl-type was given. 13276 if test "${with_libintl_type+set}" = set; then : 13277 withval=$with_libintl_type; with_libintl_type=$withval 13278 else 13279 with_libintl_type=auto 13280 fi 13281 13282 lib_type=`eval echo \$with_libintl_type` 13283 13284 LIBINTL= 13285 LTLIBINTL= 13286 INCINTL= 13287 rpathdirs= 13288 ltrpathdirs= 13289 names_already_handled= 13290 names_next_round='intl ' 13291 while test -n "$names_next_round"; do 13292 names_this_round="$names_next_round" 13293 names_next_round= 13294 for name in $names_this_round; do 13295 already_handled= 13296 for n in $names_already_handled; do 13297 if test "$n" = "$name"; then 13298 already_handled=yes 13299 break 13300 fi 13301 done 13302 if test -z "$already_handled"; then 13303 names_already_handled="$names_already_handled $name" 13304 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13305 eval value=\"\$HAVE_LIB$uppername\" 13306 if test -n "$value"; then 13307 if test "$value" = yes; then 13308 eval value=\"\$LIB$uppername\" 13309 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13310 eval value=\"\$LTLIB$uppername\" 13311 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13312 else 13313 : 13314 fi 13315 else 13316 found_dir= 13317 found_la= 13318 found_so= 13319 found_a= 13320 if test $use_additional = yes; then 13321 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13322 found_dir="$additional_libdir" 13323 found_so="$additional_libdir/lib$name.$shlibext" 13324 if test -f "$additional_libdir/lib$name.la"; then 13325 found_la="$additional_libdir/lib$name.la" 13326 fi 13327 elif test x$lib_type != xshared; then 13328 if test -f "$additional_libdir/lib$name.$libext"; then 13329 found_dir="$additional_libdir" 13330 found_a="$additional_libdir/lib$name.$libext" 13331 if test -f "$additional_libdir/lib$name.la"; then 13332 found_la="$additional_libdir/lib$name.la" 13333 fi 13334 fi 13335 fi 13336 fi 13337 if test "X$found_dir" = "X"; then 13338 for x in $LDFLAGS $LTLIBINTL; do 13339 13340 acl_save_prefix="$prefix" 13341 prefix="$acl_final_prefix" 13342 acl_save_exec_prefix="$exec_prefix" 13343 exec_prefix="$acl_final_exec_prefix" 13344 eval x=\"$x\" 13345 exec_prefix="$acl_save_exec_prefix" 13346 prefix="$acl_save_prefix" 13347 13348 case "$x" in 13349 -L*) 13350 dir=`echo "X$x" | sed -e 's/^X-L//'` 13351 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13352 found_dir="$dir" 13353 found_so="$dir/lib$name.$shlibext" 13354 if test -f "$dir/lib$name.la"; then 13355 found_la="$dir/lib$name.la" 13356 fi 13357 elif test x$lib_type != xshared; then 13358 if test -f "$dir/lib$name.$libext"; then 13359 found_dir="$dir" 13360 found_a="$dir/lib$name.$libext" 13361 if test -f "$dir/lib$name.la"; then 13362 found_la="$dir/lib$name.la" 13363 fi 13364 fi 13365 fi 13366 ;; 13367 esac 13368 if test "X$found_dir" != "X"; then 13369 break 13370 fi 13371 done 13372 fi 13373 if test "X$found_dir" != "X"; then 13374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13375 if test "X$found_so" != "X"; then 13376 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13377 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13378 else 13379 haveit= 13380 for x in $ltrpathdirs; do 13381 if test "X$x" = "X$found_dir"; then 13382 haveit=yes 13383 break 13384 fi 13385 done 13386 if test -z "$haveit"; then 13387 ltrpathdirs="$ltrpathdirs $found_dir" 13388 fi 13389 if test "$hardcode_direct" = yes; then 13390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13391 else 13392 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13393 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13394 haveit= 13395 for x in $rpathdirs; do 13396 if test "X$x" = "X$found_dir"; then 13397 haveit=yes 13398 break 13399 fi 13400 done 13401 if test -z "$haveit"; then 13402 rpathdirs="$rpathdirs $found_dir" 13403 fi 13404 else 13405 haveit= 13406 for x in $LDFLAGS $LIBINTL; do 13407 13408 acl_save_prefix="$prefix" 13409 prefix="$acl_final_prefix" 13410 acl_save_exec_prefix="$exec_prefix" 13411 exec_prefix="$acl_final_exec_prefix" 13412 eval x=\"$x\" 13413 exec_prefix="$acl_save_exec_prefix" 13414 prefix="$acl_save_prefix" 13415 13416 if test "X$x" = "X-L$found_dir"; then 13417 haveit=yes 13418 break 13419 fi 13420 done 13421 if test -z "$haveit"; then 13422 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13423 fi 13424 if test "$hardcode_minus_L" != no; then 13425 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13426 else 13427 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13428 fi 13429 fi 13430 fi 13431 fi 13432 else 13433 if test "X$found_a" != "X"; then 13434 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13435 else 13436 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13437 fi 13438 fi 13439 additional_includedir= 13440 case "$found_dir" in 13441 */lib | */lib/) 13442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13443 additional_includedir="$basedir/include" 13444 ;; 13445 esac 13446 if test "X$additional_includedir" != "X"; then 13447 if test "X$additional_includedir" != "X/usr/include"; then 13448 haveit= 13449 if test "X$additional_includedir" = "X/usr/local/include"; then 13450 if test -n "$GCC"; then 13451 case $host_os in 13452 linux*) haveit=yes;; 13453 esac 13454 fi 13455 fi 13456 if test -z "$haveit"; then 13457 for x in $CPPFLAGS $INCINTL; do 13458 13459 acl_save_prefix="$prefix" 13460 prefix="$acl_final_prefix" 13461 acl_save_exec_prefix="$exec_prefix" 13462 exec_prefix="$acl_final_exec_prefix" 13463 eval x=\"$x\" 13464 exec_prefix="$acl_save_exec_prefix" 13465 prefix="$acl_save_prefix" 13466 13467 if test "X$x" = "X-I$additional_includedir"; then 13468 haveit=yes 13469 break 13470 fi 13471 done 13472 if test -z "$haveit"; then 13473 if test -d "$additional_includedir"; then 13474 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13475 fi 13476 fi 13477 fi 13478 fi 13479 fi 13480 if test -n "$found_la"; then 13481 save_libdir="$libdir" 13482 case "$found_la" in 13483 */* | *\\*) . "$found_la" ;; 13484 *) . "./$found_la" ;; 13485 esac 13486 libdir="$save_libdir" 13487 for dep in $dependency_libs; do 13488 case "$dep" in 13489 -L*) 13490 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13491 if test "X$additional_libdir" != "X/usr/lib"; then 13492 haveit= 13493 if test "X$additional_libdir" = "X/usr/local/lib"; then 13494 if test -n "$GCC"; then 13495 case $host_os in 13496 linux*) haveit=yes;; 13497 esac 13498 fi 13499 fi 13500 if test -z "$haveit"; then 13501 haveit= 13502 for x in $LDFLAGS $LIBINTL; do 13503 13504 acl_save_prefix="$prefix" 13505 prefix="$acl_final_prefix" 13506 acl_save_exec_prefix="$exec_prefix" 13507 exec_prefix="$acl_final_exec_prefix" 13508 eval x=\"$x\" 13509 exec_prefix="$acl_save_exec_prefix" 13510 prefix="$acl_save_prefix" 13511 13512 if test "X$x" = "X-L$additional_libdir"; then 13513 haveit=yes 13514 break 13515 fi 13516 done 13517 if test -z "$haveit"; then 13518 if test -d "$additional_libdir"; then 13519 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13520 fi 13521 fi 13522 haveit= 13523 for x in $LDFLAGS $LTLIBINTL; do 13524 13525 acl_save_prefix="$prefix" 13526 prefix="$acl_final_prefix" 13527 acl_save_exec_prefix="$exec_prefix" 13528 exec_prefix="$acl_final_exec_prefix" 13529 eval x=\"$x\" 13530 exec_prefix="$acl_save_exec_prefix" 13531 prefix="$acl_save_prefix" 13532 13533 if test "X$x" = "X-L$additional_libdir"; then 13534 haveit=yes 13535 break 13536 fi 13537 done 13538 if test -z "$haveit"; then 13539 if test -d "$additional_libdir"; then 13540 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13541 fi 13542 fi 13543 fi 13544 fi 13545 ;; 13546 -R*) 13547 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13548 if test "$enable_rpath" != no; then 13549 haveit= 13550 for x in $rpathdirs; do 13551 if test "X$x" = "X$dir"; then 13552 haveit=yes 13553 break 13554 fi 13555 done 13556 if test -z "$haveit"; then 13557 rpathdirs="$rpathdirs $dir" 13558 fi 13559 haveit= 13560 for x in $ltrpathdirs; do 13561 if test "X$x" = "X$dir"; then 13562 haveit=yes 13563 break 13564 fi 13565 done 13566 if test -z "$haveit"; then 13567 ltrpathdirs="$ltrpathdirs $dir" 13568 fi 13569 fi 13570 ;; 13571 -l*) 13572 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13573 ;; 13574 *.la) 13575 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13576 ;; 13577 *) 13578 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13579 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13580 ;; 13581 esac 13582 done 13583 fi 13584 else 13585 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13586 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13587 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13588 else 13589 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 13590 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 13591 fi 13592 fi 13593 fi 13594 fi 13595 done 13596 done 13597 if test "X$rpathdirs" != "X"; then 13598 if test -n "$hardcode_libdir_separator"; then 13599 alldirs= 13600 for found_dir in $rpathdirs; do 13601 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13602 done 13603 acl_save_libdir="$libdir" 13604 libdir="$alldirs" 13605 eval flag=\"$hardcode_libdir_flag_spec\" 13606 libdir="$acl_save_libdir" 13607 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13608 else 13609 for found_dir in $rpathdirs; do 13610 acl_save_libdir="$libdir" 13611 libdir="$found_dir" 13612 eval flag=\"$hardcode_libdir_flag_spec\" 13613 libdir="$acl_save_libdir" 13614 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13615 done 13616 fi 13617 fi 13618 if test "X$ltrpathdirs" != "X"; then 13619 for found_dir in $ltrpathdirs; do 13620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13621 done 13622 fi 13623 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13625 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 13626 if eval \${$gt_func_gnugettext_libintl+:} false; then : 13627 $as_echo_n "(cached) " >&6 13628 else 13629 gt_save_CPPFLAGS="$CPPFLAGS" 13630 CPPFLAGS="$CPPFLAGS $INCINTL" 13631 gt_save_LIBS="$LIBS" 13632 LIBS="$LIBS $LIBINTL" 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13634 /* end confdefs.h. */ 13635 13636 #include <libintl.h> 13637 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13638 extern int _nl_msg_cat_cntr; 13639 extern 13640 #ifdef __cplusplus 13641 "C" 13642 #endif 13643 const char *_nl_expand_alias (const char *); 13644 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13645 #else 13646 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13647 #endif 13648 $gt_revision_test_code 13649 13650 int 13651 main () 13652 { 13653 13654 bindtextdomain ("", ""); 13655 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13656 13657 ; 13658 return 0; 13659 } 13660 _ACEOF 13661 if ac_fn_c_try_link "$LINENO"; then : 13662 eval "$gt_func_gnugettext_libintl=yes" 13663 else 13664 eval "$gt_func_gnugettext_libintl=no" 13665 fi 13666 rm -f core conftest.err conftest.$ac_objext \ 13667 conftest$ac_exeext conftest.$ac_ext 13668 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13669 LIBS="$LIBS $LIBICONV" 13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13671 /* end confdefs.h. */ 13672 13673 #include <libintl.h> 13674 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13675 extern int _nl_msg_cat_cntr; 13676 extern 13677 #ifdef __cplusplus 13678 "C" 13679 #endif 13680 const char *_nl_expand_alias (const char *); 13681 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13682 #else 13683 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13684 #endif 13685 $gt_revision_test_code 13686 13687 int 13688 main () 13689 { 13690 13691 bindtextdomain ("", ""); 13692 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13693 13694 ; 13695 return 0; 13696 } 13697 _ACEOF 13698 if ac_fn_c_try_link "$LINENO"; then : 13699 LIBINTL="$LIBINTL $LIBICONV" 13700 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13701 eval "$gt_func_gnugettext_libintl=yes" 13702 13703 fi 13704 rm -f core conftest.err conftest.$ac_objext \ 13705 conftest$ac_exeext conftest.$ac_ext 13706 fi 13707 CPPFLAGS="$gt_save_CPPFLAGS" 13708 LIBS="$gt_save_LIBS" 13709 fi 13710 eval ac_res=\$$gt_func_gnugettext_libintl 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13712 $as_echo "$ac_res" >&6; } 13713 fi 13714 13715 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13716 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13717 && test "$PACKAGE" != gettext-runtime \ 13718 && test "$PACKAGE" != gettext-tools; }; then 13719 gt_use_preinstalled_gnugettext=yes 13720 else 13721 LIBINTL= 13722 LTLIBINTL= 13723 INCINTL= 13724 fi 13725 13726 13727 13728 if test -n "$INTL_MACOSX_LIBS"; then 13729 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13730 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13731 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13732 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13733 fi 13734 fi 13735 13736 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13737 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13738 13739 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13740 13741 else 13742 USE_NLS=no 13743 fi 13744 fi 13745 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13747 $as_echo_n "checking whether to use NLS... " >&6; } 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13749 $as_echo "$USE_NLS" >&6; } 13750 if test "$USE_NLS" = "yes"; then 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13752 $as_echo_n "checking where the gettext function comes from... " >&6; } 13753 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13754 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13755 gt_source="external libintl" 13756 else 13757 gt_source="libc" 13758 fi 13759 else 13760 gt_source="included intl directory" 13761 fi 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13763 $as_echo "$gt_source" >&6; } 13764 fi 13765 13766 if test "$USE_NLS" = "yes"; then 13767 13768 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13769 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13771 $as_echo_n "checking how to link with libintl... " >&6; } 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13773 $as_echo "$LIBINTL" >&6; } 13774 13775 for element in $INCINTL; do 13776 haveit= 13777 for x in $CPPFLAGS; do 13778 13779 acl_save_prefix="$prefix" 13780 prefix="$acl_final_prefix" 13781 acl_save_exec_prefix="$exec_prefix" 13782 exec_prefix="$acl_final_exec_prefix" 13783 eval x=\"$x\" 13784 exec_prefix="$acl_save_exec_prefix" 13785 prefix="$acl_save_prefix" 13786 13787 if test "X$x" = "X$element"; then 13788 haveit=yes 13789 break 13790 fi 13791 done 13792 if test -z "$haveit"; then 13793 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13794 fi 13795 done 13796 13797 fi 13798 13799 13800 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13801 13802 13803 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13804 13805 fi 13806 13807 POSUB=po 13808 fi 13809 13810 13811 13812 INTLLIBS="$LIBINTL" 13813 13814 13815 13816 13817 13818 13819 fi 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13832 $as_echo_n "checking whether NLS is requested... " >&6; } 13833 if test x"$USE_NLS" != xyes; then 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835 $as_echo "no" >&6; } 13836 else 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13838 $as_echo "yes" >&6; } 13839 13840 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13841 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13844 $as_echo_n "checking for catalogs to be installed... " >&6; } 13845 # Look for .po and .gmo files in the source directory. 13846 CATALOGS= 13847 XLINGUAS= 13848 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13849 # If there aren't any .gmo files the shell will give us the 13850 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13851 # weeded out. 13852 case "$cat" in *\**) 13853 continue;; 13854 esac 13855 # The quadruple backslash is collapsed to a double backslash 13856 # by the backticks, then collapsed again by the double quotes, 13857 # leaving us with one backslash in the sed expression (right 13858 # before the dot that mustn't act as a wildcard). 13859 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13860 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13861 # The user is allowed to set LINGUAS to a list of languages to 13862 # install catalogs for. If it's empty that means "all of them." 13863 if test "x$LINGUAS" = x; then 13864 CATALOGS="$CATALOGS $cat" 13865 XLINGUAS="$XLINGUAS $lang" 13866 else 13867 case "$LINGUAS" in *$lang*) 13868 CATALOGS="$CATALOGS $cat" 13869 XLINGUAS="$XLINGUAS $lang" 13870 ;; 13871 esac 13872 fi 13873 done 13874 LINGUAS="$XLINGUAS" 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13876 $as_echo "$LINGUAS" >&6; } 13877 13878 13879 DATADIRNAME=share 13880 13881 INSTOBJEXT=.mo 13882 13883 GENCAT=gencat 13884 13885 CATOBJEXT=.gmo 13886 13887 fi 13888 13889 . ${srcdir}/../bfd/configure.host 13890 13891 # Put a plausible default for CC_FOR_BUILD in Makefile. 13892 if test -z "$CC_FOR_BUILD"; then 13893 if test "x$cross_compiling" = "xno"; then 13894 CC_FOR_BUILD='$(CC)' 13895 else 13896 CC_FOR_BUILD=gcc 13897 fi 13898 fi 13899 13900 # Also set EXEEXT_FOR_BUILD. 13901 if test "x$cross_compiling" = "xno"; then 13902 EXEEXT_FOR_BUILD='$(EXEEXT)' 13903 else 13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 13905 $as_echo_n "checking for build system executable suffix... " >&6; } 13906 if ${bfd_cv_build_exeext+:} false; then : 13907 $as_echo_n "(cached) " >&6 13908 else 13909 rm -f conftest* 13910 echo 'int main () { return 0; }' > conftest.c 13911 bfd_cv_build_exeext= 13912 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 13913 for file in conftest.*; do 13914 case $file in 13915 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 13916 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 13917 esac 13918 done 13919 rm -f conftest* 13920 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 13921 fi 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 13923 $as_echo "$bfd_cv_build_exeext" >&6; } 13924 EXEEXT_FOR_BUILD="" 13925 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 13926 fi 13927 13928 # See whether 64-bit bfd lib has been enabled. 13929 OLD_CPPFLAGS=$CPPFLAGS 13930 # Put the old CPPFLAGS last, in case the user's CPPFLAGS point somewhere 13931 # with bfd, with -I/foo/include. We always want our bfd. 13932 CPPFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CPPFLAGS" 13933 # Note we cannot cache the result of this check because BFD64 may change 13934 # when a secondary target has been added or removed and we have no access 13935 # to this information here. 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BFD is 64-bit" >&5 13937 $as_echo_n "checking whether BFD is 64-bit... " >&6; } 13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13939 /* end confdefs.h. */ 13940 #include "bfd.h" 13941 int 13942 main () 13943 { 13944 #ifdef BFD64 13945 HAVE_BFD64 13946 #endif 13947 ; 13948 return 0; 13949 } 13950 _ACEOF 13951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13952 $EGREP "HAVE_BFD64" >/dev/null 2>&1; then : 13953 have_64_bit_bfd=yes 13954 else 13955 have_64_bit_bfd=no 13956 fi 13957 rm -f conftest* 13958 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_64_bit_bfd" >&5 13960 $as_echo "$have_64_bit_bfd" >&6; } 13961 CPPFLAGS=$OLD_CPPFLAGS 13962 13963 13964 13965 13966 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 13967 if test "x$ac_cv_have_decl_basename" = xyes; then : 13968 ac_have_decl=1 13969 else 13970 ac_have_decl=0 13971 fi 13972 13973 cat >>confdefs.h <<_ACEOF 13974 #define HAVE_DECL_BASENAME $ac_have_decl 13975 _ACEOF 13976 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 13977 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 13978 ac_have_decl=1 13979 else 13980 ac_have_decl=0 13981 fi 13982 13983 cat >>confdefs.h <<_ACEOF 13984 #define HAVE_DECL_STPCPY $ac_have_decl 13985 _ACEOF 13986 13987 13988 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do 13989 # since sigsetjmp might only be defined as a macro. 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 13991 $as_echo_n "checking for sigsetjmp... " >&6; } 13992 if ${gdb_cv_func_sigsetjmp+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994 else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996 /* end confdefs.h. */ 13997 13998 #include <setjmp.h> 13999 14000 int 14001 main () 14002 { 14003 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 14004 ; 14005 return 0; 14006 } 14007 _ACEOF 14008 if ac_fn_c_try_compile "$LINENO"; then : 14009 bfd_cv_func_sigsetjmp=yes 14010 else 14011 bfd_cv_func_sigsetjmp=no 14012 fi 14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14014 fi 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 14016 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } 14017 if test $bfd_cv_func_sigsetjmp = yes; then 14018 14019 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 14020 14021 fi 14022 14023 cgen_maint=no 14024 cgendir='$(srcdir)/../../cgen' 14025 if test -r ${srcdir}/../cgen/iformat.scm; then 14026 cgendir='$(srcdir)/../cgen' 14027 fi 14028 14029 # Check whether --enable-cgen-maint was given. 14030 if test "${enable_cgen_maint+set}" = set; then : 14031 enableval=$enable_cgen_maint; case "${enableval}" in 14032 yes) cgen_maint=yes ;; 14033 no) cgen_maint=no ;; 14034 *) 14035 # Argument is a directory where cgen can be found. In some 14036 # future world cgen could be installable, but right now this 14037 # is not the case. Instead we assume the directory is a path 14038 # to the cgen source tree. 14039 cgen_maint=yes 14040 if test -r ${enableval}/iformat.scm; then 14041 # This looks like a cgen source tree. 14042 cgendir=${enableval} 14043 else 14044 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 14045 fi 14046 ;; 14047 esac 14048 fi 14049 if test x${cgen_maint} = xyes; then 14050 CGEN_MAINT_TRUE= 14051 CGEN_MAINT_FALSE='#' 14052 else 14053 CGEN_MAINT_TRUE='#' 14054 CGEN_MAINT_FALSE= 14055 fi 14056 14057 14058 14059 using_cgen=no 14060 14061 # Check if linker supports --as-needed and --no-as-needed options 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14063 $as_echo_n "checking linker --as-needed support... " >&6; } 14064 if ${bfd_cv_ld_as_needed+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066 else 14067 bfd_cv_ld_as_needed=no 14068 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 14069 bfd_cv_ld_as_needed=yes 14070 fi 14071 14072 fi 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 14074 $as_echo "$bfd_cv_ld_as_needed" >&6; } 14075 14076 LIBM= 14077 case $host in 14078 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 14079 # These system don't have libm, or don't need it 14080 ;; 14081 *-ncr-sysv4.3*) 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 14083 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 14084 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086 else 14087 ac_check_lib_save_LIBS=$LIBS 14088 LIBS="-lmw $LIBS" 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090 /* end confdefs.h. */ 14091 14092 /* Override any GCC internal prototype to avoid an error. 14093 Use char because int might match the return type of a GCC 14094 builtin and then its argument prototype would still apply. */ 14095 #ifdef __cplusplus 14096 extern "C" 14097 #endif 14098 char _mwvalidcheckl (); 14099 int 14100 main () 14101 { 14102 return _mwvalidcheckl (); 14103 ; 14104 return 0; 14105 } 14106 _ACEOF 14107 if ac_fn_c_try_link "$LINENO"; then : 14108 ac_cv_lib_mw__mwvalidcheckl=yes 14109 else 14110 ac_cv_lib_mw__mwvalidcheckl=no 14111 fi 14112 rm -f core conftest.err conftest.$ac_objext \ 14113 conftest$ac_exeext conftest.$ac_ext 14114 LIBS=$ac_check_lib_save_LIBS 14115 fi 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 14117 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 14118 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 14119 LIBM="-lmw" 14120 fi 14121 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 14123 $as_echo_n "checking for cos in -lm... " >&6; } 14124 if ${ac_cv_lib_m_cos+:} false; then : 14125 $as_echo_n "(cached) " >&6 14126 else 14127 ac_check_lib_save_LIBS=$LIBS 14128 LIBS="-lm $LIBS" 14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14130 /* end confdefs.h. */ 14131 14132 /* Override any GCC internal prototype to avoid an error. 14133 Use char because int might match the return type of a GCC 14134 builtin and then its argument prototype would still apply. */ 14135 #ifdef __cplusplus 14136 extern "C" 14137 #endif 14138 char cos (); 14139 int 14140 main () 14141 { 14142 return cos (); 14143 ; 14144 return 0; 14145 } 14146 _ACEOF 14147 if ac_fn_c_try_link "$LINENO"; then : 14148 ac_cv_lib_m_cos=yes 14149 else 14150 ac_cv_lib_m_cos=no 14151 fi 14152 rm -f core conftest.err conftest.$ac_objext \ 14153 conftest$ac_exeext conftest.$ac_ext 14154 LIBS=$ac_check_lib_save_LIBS 14155 fi 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 14157 $as_echo "$ac_cv_lib_m_cos" >&6; } 14158 if test "x$ac_cv_lib_m_cos" = xyes; then : 14159 LIBM="$LIBM -lm" 14160 fi 14161 14162 ;; 14163 *) 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 14165 $as_echo_n "checking for cos in -lm... " >&6; } 14166 if ${ac_cv_lib_m_cos+:} false; then : 14167 $as_echo_n "(cached) " >&6 14168 else 14169 ac_check_lib_save_LIBS=$LIBS 14170 LIBS="-lm $LIBS" 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172 /* end confdefs.h. */ 14173 14174 /* Override any GCC internal prototype to avoid an error. 14175 Use char because int might match the return type of a GCC 14176 builtin and then its argument prototype would still apply. */ 14177 #ifdef __cplusplus 14178 extern "C" 14179 #endif 14180 char cos (); 14181 int 14182 main () 14183 { 14184 return cos (); 14185 ; 14186 return 0; 14187 } 14188 _ACEOF 14189 if ac_fn_c_try_link "$LINENO"; then : 14190 ac_cv_lib_m_cos=yes 14191 else 14192 ac_cv_lib_m_cos=no 14193 fi 14194 rm -f core conftest.err conftest.$ac_objext \ 14195 conftest$ac_exeext conftest.$ac_ext 14196 LIBS=$ac_check_lib_save_LIBS 14197 fi 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 14199 $as_echo "$ac_cv_lib_m_cos" >&6; } 14200 if test "x$ac_cv_lib_m_cos" = xyes; then : 14201 LIBM="-lm" 14202 fi 14203 14204 ;; 14205 esac 14206 14207 14208 14209 #Libs for generator progs 14210 if test "x$cross_compiling" = "xno"; then 14211 BUILD_LIBS=../libiberty/libiberty.a 14212 BUILD_LIB_DEPS=$BUILD_LIBS 14213 else 14214 # if cross-compiling, assume that the system provides -liberty 14215 # and that the version is compatible with new headers. 14216 BUILD_LIBS=-liberty 14217 BUILD_LIB_DEPS= 14218 fi 14219 BUILD_LIBS="$BUILD_LIBS $LIBINTL" 14220 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" 14221 14222 14223 14224 14225 # Horrible hacks to build DLLs on Windows and a shared library elsewhere. 14226 SHARED_LDFLAGS= 14227 SHARED_LIBADD= 14228 SHARED_DEPENDENCIES= 14229 if test "$enable_shared" = "yes"; then 14230 # When building a shared libopcodes, link against the pic version of libiberty 14231 # so that apps that use libopcodes won't need libiberty just to satisfy any 14232 # libopcodes references. 14233 # We can't do that if a pic libiberty is unavailable since including non-pic 14234 # code would insert text relocations into libopcodes. 14235 # Note that linking against libbfd as we do here, which is itself linked 14236 # against libiberty, may not satisfy all the libopcodes libiberty references 14237 # since libbfd may not pull in the entirety of libiberty. 14238 # Also, jam libintl into the right place in all of this: after libiberty, 14239 # which uses it, but before -lcygwin, which it uses. 14240 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 14241 if test -n "$x"; then 14242 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 14243 fi 14244 fi 14245 14246 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 14247 14248 if test "$enable_shared" = "yes"; then 14249 case "${host}" in 14250 *-*-cygwin*) 14251 SHARED_LDFLAGS="-no-undefined" 14252 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" 14253 ;; 14254 *) 14255 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" 14256 SHARED_DEPENDENCIES="../bfd/libbfd.la" 14257 ;; 14258 esac 14259 14260 if test -n "$SHARED_LIBADD"; then 14261 if test -n "$LIBM"; then 14262 if test x"$bfd_cv_ld_as_needed" = xyes; then 14263 # Link against libm only when needed. Put -lc, -lm inside -Wl 14264 # to stop libtool reordering these options. 14265 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 14266 else 14267 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 14268 fi 14269 fi 14270 fi 14271 fi 14272 14273 14274 14275 14276 # target-specific stuff: 14277 14278 # Canonicalize the secondary target names. 14279 if test -n "$enable_targets" ; then 14280 for targ in `echo $enable_targets | sed 's/,/ /g'` 14281 do 14282 result=`$ac_config_sub $targ 2>/dev/null` 14283 if test -n "$result" ; then 14284 canon_targets="$canon_targets $result" 14285 else 14286 # Allow targets that config.sub doesn't recognize, like "all". 14287 canon_targets="$canon_targets $targ" 14288 fi 14289 done 14290 fi 14291 14292 all_targets=false 14293 selarchs= 14294 for targ in $target $canon_targets 14295 do 14296 if test "x$targ" = "xall" ; then 14297 all_targets=true 14298 else 14299 . $srcdir/../bfd/config.bfd 14300 selarchs="$selarchs $targ_archs" 14301 fi 14302 done 14303 14304 # Utility var, documents generic cgen support files. 14305 14306 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" 14307 14308 # We don't do any links based on the target system, just makefile config. 14309 14310 if test x${all_targets} = xfalse ; then 14311 14312 # Target architecture .o files. 14313 ta= 14314 14315 for arch in $selarchs 14316 do 14317 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 14318 archdefs="$archdefs -DARCH_$ad" 14319 case "$arch" in 14320 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" ;; 14321 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 14322 bfd_amdgcn_arch) ;; 14323 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 14324 bfd_arm_arch) ta="$ta arm-dis.lo" ;; 14325 bfd_avr_arch) ta="$ta avr-dis.lo" ;; 14326 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; 14327 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; 14328 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; 14329 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; 14330 bfd_csky_arch) ta="$ta csky-dis.lo" ;; 14331 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 14332 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 14333 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 14334 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 14335 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 14336 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; 14337 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; 14338 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 14339 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 14340 bfd_i386_arch|bfd_iamcu_arch) 14341 ta="$ta i386-dis.lo" ;; 14342 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 14343 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 14344 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; 14345 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 14346 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;; 14347 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 ;; 14348 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; 14349 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 ;; 14350 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14351 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14352 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14353 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14354 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; 14355 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 14356 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 14357 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; 14358 bfd_metag_arch) ta="$ta metag-dis.lo" ;; 14359 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; 14360 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; 14361 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 14362 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 14363 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 14364 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; 14365 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; 14366 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; 14367 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; 14368 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 14369 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; 14370 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 14371 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 14372 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14373 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14374 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; 14375 bfd_pyramid_arch) ;; 14376 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14377 bfd_romp_arch) ;; 14378 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14379 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14380 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; 14381 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; 14382 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 14383 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; 14384 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; 14385 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 14386 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; 14387 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 14388 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 14389 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 14390 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; 14391 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; 14392 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; 14393 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14394 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14395 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14396 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14397 bfd_vax_arch) ta="$ta vax-dis.lo" ;; 14398 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; 14399 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; 14400 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; 14401 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 14402 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 14403 bfd_z80_arch) ta="$ta z80-dis.lo" ;; 14404 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 14405 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;; 14406 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;; 14407 14408 "") ;; 14409 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; 14410 esac 14411 done 14412 14413 if test $using_cgen = yes ; then 14414 ta="$ta $cgen_files" 14415 fi 14416 14417 # Weed out duplicate .o files. 14418 f="" 14419 for i in $ta ; do 14420 case " $f " in 14421 *" $i "*) ;; 14422 *) f="$f $i" ;; 14423 esac 14424 done 14425 ta="$f" 14426 14427 # And duplicate -D flags. 14428 f="" 14429 for i in $archdefs ; do 14430 case " $f " in 14431 *" $i "*) ;; 14432 *) f="$f $i" ;; 14433 esac 14434 done 14435 archdefs="$f" 14436 14437 BFD_MACHINES="$ta" 14438 14439 else # all_targets is true 14440 archdefs=-DARCH_all 14441 if test "$have_64_bit_bfd" = "yes" ; then 14442 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' 14443 else 14444 BFD_MACHINES='$(ALL32_MACHINES)' 14445 fi 14446 fi 14447 14448 14449 14450 14451 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 14452 14453 cat >confcache <<\_ACEOF 14454 # This file is a shell script that caches the results of configure 14455 # tests run on this system so they can be shared between configure 14456 # scripts and configure runs, see configure's option --config-cache. 14457 # It is not useful on other systems. If it contains results you don't 14458 # want to keep, you may remove or edit it. 14459 # 14460 # config.status only pays attention to the cache file if you give it 14461 # the --recheck option to rerun configure. 14462 # 14463 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14464 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14465 # following values. 14466 14467 _ACEOF 14468 14469 # The following way of writing the cache mishandles newlines in values, 14470 # but we know of no workaround that is simple, portable, and efficient. 14471 # So, we kill variables containing newlines. 14472 # Ultrix sh set writes to stderr and can't be redirected directly, 14473 # and sets the high bit in the cache file unless we assign to the vars. 14474 ( 14475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14476 eval ac_val=\$$ac_var 14477 case $ac_val in #( 14478 *${as_nl}*) 14479 case $ac_var in #( 14480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14482 esac 14483 case $ac_var in #( 14484 _ | IFS | as_nl) ;; #( 14485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14486 *) { eval $ac_var=; unset $ac_var;} ;; 14487 esac ;; 14488 esac 14489 done 14490 14491 (set) 2>&1 | 14492 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14493 *${as_nl}ac_space=\ *) 14494 # `set' does not quote correctly, so add quotes: double-quote 14495 # substitution turns \\\\ into \\, and sed turns \\ into \. 14496 sed -n \ 14497 "s/'/'\\\\''/g; 14498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14499 ;; #( 14500 *) 14501 # `set' quotes correctly as required by POSIX, so do not add quotes. 14502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14503 ;; 14504 esac | 14505 sort 14506 ) | 14507 sed ' 14508 /^ac_cv_env_/b end 14509 t clear 14510 :clear 14511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14512 t end 14513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14514 :end' >>confcache 14515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14516 if test -w "$cache_file"; then 14517 if test "x$cache_file" != "x/dev/null"; then 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14519 $as_echo "$as_me: updating cache $cache_file" >&6;} 14520 if test ! -f "$cache_file" || test -h "$cache_file"; then 14521 cat confcache >"$cache_file" 14522 else 14523 case $cache_file in #( 14524 */* | ?:*) 14525 mv -f confcache "$cache_file"$$ && 14526 mv -f "$cache_file"$$ "$cache_file" ;; #( 14527 *) 14528 mv -f confcache "$cache_file" ;; 14529 esac 14530 fi 14531 fi 14532 else 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14535 fi 14536 fi 14537 rm -f confcache 14538 14539 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14540 # Let make expand exec_prefix. 14541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14542 14543 DEFS=-DHAVE_CONFIG_H 14544 14545 ac_libobjs= 14546 ac_ltlibobjs= 14547 U= 14548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14549 # 1. Remove the extension, and $U if already installed. 14550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14551 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14553 # will be set to the directory where LIBOBJS objects are built. 14554 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14555 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14556 done 14557 LIBOBJS=$ac_libobjs 14558 14559 LTLIBOBJS=$ac_ltlibobjs 14560 14561 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14563 $as_echo_n "checking that generated files are newer than configure... " >&6; } 14564 if test -n "$am_sleep_pid"; then 14565 # Hide warnings about reused PIDs. 14566 wait $am_sleep_pid 2>/dev/null 14567 fi 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14569 $as_echo "done" >&6; } 14570 if test -n "$EXEEXT"; then 14571 am__EXEEXT_TRUE= 14572 am__EXEEXT_FALSE='#' 14573 else 14574 am__EXEEXT_TRUE='#' 14575 am__EXEEXT_FALSE= 14576 fi 14577 14578 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14579 as_fn_error $? "conditional \"AMDEP\" was never defined. 14580 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14581 fi 14582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14583 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14584 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14585 fi 14586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14587 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14588 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14589 fi 14590 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 14591 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 14592 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14593 fi 14594 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then 14595 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. 14596 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14597 fi 14598 14599 : "${CONFIG_STATUS=./config.status}" 14600 ac_write_fail=0 14601 ac_clean_files_save=$ac_clean_files 14602 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14604 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14605 as_write_fail=0 14606 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14607 #! $SHELL 14608 # Generated by $as_me. 14609 # Run this file to recreate the current configuration. 14610 # Compiler output produced by configure, useful for debugging 14611 # configure, is in config.log if it exists. 14612 14613 debug=false 14614 ac_cs_recheck=false 14615 ac_cs_silent=false 14616 14617 SHELL=\${CONFIG_SHELL-$SHELL} 14618 export SHELL 14619 _ASEOF 14620 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14621 ## -------------------- ## 14622 ## M4sh Initialization. ## 14623 ## -------------------- ## 14624 14625 # Be more Bourne compatible 14626 DUALCASE=1; export DUALCASE # for MKS sh 14627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14628 emulate sh 14629 NULLCMD=: 14630 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14631 # is contrary to our usage. Disable this feature. 14632 alias -g '${1+"$@"}'='"$@"' 14633 setopt NO_GLOB_SUBST 14634 else 14635 case `(set -o) 2>/dev/null` in #( 14636 *posix*) : 14637 set -o posix ;; #( 14638 *) : 14639 ;; 14640 esac 14641 fi 14642 14643 14644 as_nl=' 14645 ' 14646 export as_nl 14647 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14648 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14649 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14651 # Prefer a ksh shell builtin over an external printf program on Solaris, 14652 # but without wasting forks for bash or zsh. 14653 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14654 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14655 as_echo='print -r --' 14656 as_echo_n='print -rn --' 14657 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14658 as_echo='printf %s\n' 14659 as_echo_n='printf %s' 14660 else 14661 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14662 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14663 as_echo_n='/usr/ucb/echo -n' 14664 else 14665 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14666 as_echo_n_body='eval 14667 arg=$1; 14668 case $arg in #( 14669 *"$as_nl"*) 14670 expr "X$arg" : "X\\(.*\\)$as_nl"; 14671 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14672 esac; 14673 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14674 ' 14675 export as_echo_n_body 14676 as_echo_n='sh -c $as_echo_n_body as_echo' 14677 fi 14678 export as_echo_body 14679 as_echo='sh -c $as_echo_body as_echo' 14680 fi 14681 14682 # The user is always right. 14683 if test "${PATH_SEPARATOR+set}" != set; then 14684 PATH_SEPARATOR=: 14685 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14686 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14687 PATH_SEPARATOR=';' 14688 } 14689 fi 14690 14691 14692 # IFS 14693 # We need space, tab and new line, in precisely that order. Quoting is 14694 # there to prevent editors from complaining about space-tab. 14695 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14696 # splitting by setting IFS to empty value.) 14697 IFS=" "" $as_nl" 14698 14699 # Find who we are. Look in the path if we contain no directory separator. 14700 as_myself= 14701 case $0 in #(( 14702 *[\\/]* ) as_myself=$0 ;; 14703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704 for as_dir in $PATH 14705 do 14706 IFS=$as_save_IFS 14707 test -z "$as_dir" && as_dir=. 14708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14709 done 14710 IFS=$as_save_IFS 14711 14712 ;; 14713 esac 14714 # We did not find ourselves, most probably we were run as `sh COMMAND' 14715 # in which case we are not to be found in the path. 14716 if test "x$as_myself" = x; then 14717 as_myself=$0 14718 fi 14719 if test ! -f "$as_myself"; then 14720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14721 exit 1 14722 fi 14723 14724 # Unset variables that we do not need and which cause bugs (e.g. in 14725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14726 # suppresses any "Segmentation fault" message there. '((' could 14727 # trigger a bug in pdksh 5.2.14. 14728 for as_var in BASH_ENV ENV MAIL MAILPATH 14729 do eval test x\${$as_var+set} = xset \ 14730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14731 done 14732 PS1='$ ' 14733 PS2='> ' 14734 PS4='+ ' 14735 14736 # NLS nuisances. 14737 LC_ALL=C 14738 export LC_ALL 14739 LANGUAGE=C 14740 export LANGUAGE 14741 14742 # CDPATH. 14743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14744 14745 14746 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14747 # ---------------------------------------- 14748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14750 # script with STATUS, using 1 if that was 0. 14751 as_fn_error () 14752 { 14753 as_status=$1; test $as_status -eq 0 && as_status=1 14754 if test "$4"; then 14755 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14757 fi 14758 $as_echo "$as_me: error: $2" >&2 14759 as_fn_exit $as_status 14760 } # as_fn_error 14761 14762 14763 # as_fn_set_status STATUS 14764 # ----------------------- 14765 # Set $? to STATUS, without forking. 14766 as_fn_set_status () 14767 { 14768 return $1 14769 } # as_fn_set_status 14770 14771 # as_fn_exit STATUS 14772 # ----------------- 14773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14774 as_fn_exit () 14775 { 14776 set +e 14777 as_fn_set_status $1 14778 exit $1 14779 } # as_fn_exit 14780 14781 # as_fn_unset VAR 14782 # --------------- 14783 # Portably unset VAR. 14784 as_fn_unset () 14785 { 14786 { eval $1=; unset $1;} 14787 } 14788 as_unset=as_fn_unset 14789 # as_fn_append VAR VALUE 14790 # ---------------------- 14791 # Append the text in VALUE to the end of the definition contained in VAR. Take 14792 # advantage of any shell optimizations that allow amortized linear growth over 14793 # repeated appends, instead of the typical quadratic growth present in naive 14794 # implementations. 14795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14796 eval 'as_fn_append () 14797 { 14798 eval $1+=\$2 14799 }' 14800 else 14801 as_fn_append () 14802 { 14803 eval $1=\$$1\$2 14804 } 14805 fi # as_fn_append 14806 14807 # as_fn_arith ARG... 14808 # ------------------ 14809 # Perform arithmetic evaluation on the ARGs, and store the result in the 14810 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14811 # must be portable across $(()) and expr. 14812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14813 eval 'as_fn_arith () 14814 { 14815 as_val=$(( $* )) 14816 }' 14817 else 14818 as_fn_arith () 14819 { 14820 as_val=`expr "$@" || test $? -eq 1` 14821 } 14822 fi # as_fn_arith 14823 14824 14825 if expr a : '\(a\)' >/dev/null 2>&1 && 14826 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14827 as_expr=expr 14828 else 14829 as_expr=false 14830 fi 14831 14832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14833 as_basename=basename 14834 else 14835 as_basename=false 14836 fi 14837 14838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14839 as_dirname=dirname 14840 else 14841 as_dirname=false 14842 fi 14843 14844 as_me=`$as_basename -- "$0" || 14845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14846 X"$0" : 'X\(//\)$' \| \ 14847 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14848 $as_echo X/"$0" | 14849 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14850 s//\1/ 14851 q 14852 } 14853 /^X\/\(\/\/\)$/{ 14854 s//\1/ 14855 q 14856 } 14857 /^X\/\(\/\).*/{ 14858 s//\1/ 14859 q 14860 } 14861 s/.*/./; q'` 14862 14863 # Avoid depending upon Character Ranges. 14864 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14867 as_cr_digits='0123456789' 14868 as_cr_alnum=$as_cr_Letters$as_cr_digits 14869 14870 ECHO_C= ECHO_N= ECHO_T= 14871 case `echo -n x` in #((((( 14872 -n*) 14873 case `echo 'xy\c'` in 14874 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14875 xy) ECHO_C='\c';; 14876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14877 ECHO_T=' ';; 14878 esac;; 14879 *) 14880 ECHO_N='-n';; 14881 esac 14882 14883 rm -f conf$$ conf$$.exe conf$$.file 14884 if test -d conf$$.dir; then 14885 rm -f conf$$.dir/conf$$.file 14886 else 14887 rm -f conf$$.dir 14888 mkdir conf$$.dir 2>/dev/null 14889 fi 14890 if (echo >conf$$.file) 2>/dev/null; then 14891 if ln -s conf$$.file conf$$ 2>/dev/null; then 14892 as_ln_s='ln -s' 14893 # ... but there are two gotchas: 14894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14896 # In both cases, we have to default to `cp -pR'. 14897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14898 as_ln_s='cp -pR' 14899 elif ln conf$$.file conf$$ 2>/dev/null; then 14900 as_ln_s=ln 14901 else 14902 as_ln_s='cp -pR' 14903 fi 14904 else 14905 as_ln_s='cp -pR' 14906 fi 14907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14908 rmdir conf$$.dir 2>/dev/null 14909 14910 14911 # as_fn_mkdir_p 14912 # ------------- 14913 # Create "$as_dir" as a directory, including parents if necessary. 14914 as_fn_mkdir_p () 14915 { 14916 14917 case $as_dir in #( 14918 -*) as_dir=./$as_dir;; 14919 esac 14920 test -d "$as_dir" || eval $as_mkdir_p || { 14921 as_dirs= 14922 while :; do 14923 case $as_dir in #( 14924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14925 *) as_qdir=$as_dir;; 14926 esac 14927 as_dirs="'$as_qdir' $as_dirs" 14928 as_dir=`$as_dirname -- "$as_dir" || 14929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14930 X"$as_dir" : 'X\(//\)[^/]' \| \ 14931 X"$as_dir" : 'X\(//\)$' \| \ 14932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14933 $as_echo X"$as_dir" | 14934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14935 s//\1/ 14936 q 14937 } 14938 /^X\(\/\/\)[^/].*/{ 14939 s//\1/ 14940 q 14941 } 14942 /^X\(\/\/\)$/{ 14943 s//\1/ 14944 q 14945 } 14946 /^X\(\/\).*/{ 14947 s//\1/ 14948 q 14949 } 14950 s/.*/./; q'` 14951 test -d "$as_dir" && break 14952 done 14953 test -z "$as_dirs" || eval "mkdir $as_dirs" 14954 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14955 14956 14957 } # as_fn_mkdir_p 14958 if mkdir -p . 2>/dev/null; then 14959 as_mkdir_p='mkdir -p "$as_dir"' 14960 else 14961 test -d ./-p && rmdir ./-p 14962 as_mkdir_p=false 14963 fi 14964 14965 14966 # as_fn_executable_p FILE 14967 # ----------------------- 14968 # Test if FILE is an executable regular file. 14969 as_fn_executable_p () 14970 { 14971 test -f "$1" && test -x "$1" 14972 } # as_fn_executable_p 14973 as_test_x='test -x' 14974 as_executable_p=as_fn_executable_p 14975 14976 # Sed expression to map a string onto a valid CPP name. 14977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14978 14979 # Sed expression to map a string onto a valid variable name. 14980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14981 14982 14983 exec 6>&1 14984 ## ----------------------------------- ## 14985 ## Main body of $CONFIG_STATUS script. ## 14986 ## ----------------------------------- ## 14987 _ASEOF 14988 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14989 14990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14991 # Save the log message, to keep $0 and so on meaningful, and to 14992 # report actual input values of CONFIG_FILES etc. instead of their 14993 # values after options handling. 14994 ac_log=" 14995 This file was extended by opcodes $as_me 2.46.0, which was 14996 generated by GNU Autoconf 2.69. Invocation command line was 14997 14998 CONFIG_FILES = $CONFIG_FILES 14999 CONFIG_HEADERS = $CONFIG_HEADERS 15000 CONFIG_LINKS = $CONFIG_LINKS 15001 CONFIG_COMMANDS = $CONFIG_COMMANDS 15002 $ $0 $@ 15003 15004 on `(hostname || uname -n) 2>/dev/null | sed 1q` 15005 " 15006 15007 _ACEOF 15008 15009 case $ac_config_files in *" 15010 "*) set x $ac_config_files; shift; ac_config_files=$*;; 15011 esac 15012 15013 case $ac_config_headers in *" 15014 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15015 esac 15016 15017 15018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15019 # Files that config.status was made for. 15020 config_files="$ac_config_files" 15021 config_headers="$ac_config_headers" 15022 config_commands="$ac_config_commands" 15023 15024 _ACEOF 15025 15026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15027 ac_cs_usage="\ 15028 \`$as_me' instantiates files and other configuration actions 15029 from templates according to the current configuration. Unless the files 15030 and actions are specified as TAGs, all are instantiated by default. 15031 15032 Usage: $0 [OPTION]... [TAG]... 15033 15034 -h, --help print this help, then exit 15035 -V, --version print version number and configuration settings, then exit 15036 --config print configuration, then exit 15037 -q, --quiet, --silent 15038 do not print progress messages 15039 -d, --debug don't remove temporary files 15040 --recheck update $as_me by reconfiguring in the same conditions 15041 --file=FILE[:TEMPLATE] 15042 instantiate the configuration file FILE 15043 --header=FILE[:TEMPLATE] 15044 instantiate the configuration header FILE 15045 15046 Configuration files: 15047 $config_files 15048 15049 Configuration headers: 15050 $config_headers 15051 15052 Configuration commands: 15053 $config_commands 15054 15055 Report bugs to the package provider." 15056 15057 _ACEOF 15058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15059 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15060 ac_cs_version="\\ 15061 opcodes config.status 2.46.0 15062 configured by $0, generated by GNU Autoconf 2.69, 15063 with options \\"\$ac_cs_config\\" 15064 15065 Copyright (C) 2012 Free Software Foundation, Inc. 15066 This config.status script is free software; the Free Software Foundation 15067 gives unlimited permission to copy, distribute and modify it." 15068 15069 ac_pwd='$ac_pwd' 15070 srcdir='$srcdir' 15071 INSTALL='$INSTALL' 15072 MKDIR_P='$MKDIR_P' 15073 AWK='$AWK' 15074 test -n "\$AWK" || AWK=awk 15075 _ACEOF 15076 15077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15078 # The default lists apply if the user does not specify any file. 15079 ac_need_defaults=: 15080 while test $# != 0 15081 do 15082 case $1 in 15083 --*=?*) 15084 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15086 ac_shift=: 15087 ;; 15088 --*=) 15089 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15090 ac_optarg= 15091 ac_shift=: 15092 ;; 15093 *) 15094 ac_option=$1 15095 ac_optarg=$2 15096 ac_shift=shift 15097 ;; 15098 esac 15099 15100 case $ac_option in 15101 # Handling of the options. 15102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15103 ac_cs_recheck=: ;; 15104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15105 $as_echo "$ac_cs_version"; exit ;; 15106 --config | --confi | --conf | --con | --co | --c ) 15107 $as_echo "$ac_cs_config"; exit ;; 15108 --debug | --debu | --deb | --de | --d | -d ) 15109 debug=: ;; 15110 --file | --fil | --fi | --f ) 15111 $ac_shift 15112 case $ac_optarg in 15113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15114 '') as_fn_error $? "missing file argument" ;; 15115 esac 15116 as_fn_append CONFIG_FILES " '$ac_optarg'" 15117 ac_need_defaults=false;; 15118 --header | --heade | --head | --hea ) 15119 $ac_shift 15120 case $ac_optarg in 15121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15122 esac 15123 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15124 ac_need_defaults=false;; 15125 --he | --h) 15126 # Conflict between --help and --header 15127 as_fn_error $? "ambiguous option: \`$1' 15128 Try \`$0 --help' for more information.";; 15129 --help | --hel | -h ) 15130 $as_echo "$ac_cs_usage"; exit ;; 15131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15132 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15133 ac_cs_silent=: ;; 15134 15135 # This is an error. 15136 -*) as_fn_error $? "unrecognized option: \`$1' 15137 Try \`$0 --help' for more information." ;; 15138 15139 *) as_fn_append ac_config_targets " $1" 15140 ac_need_defaults=false ;; 15141 15142 esac 15143 shift 15144 done 15145 15146 ac_configure_extra_args= 15147 15148 if $ac_cs_silent; then 15149 exec 6>/dev/null 15150 ac_configure_extra_args="$ac_configure_extra_args --silent" 15151 fi 15152 15153 _ACEOF 15154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15155 if \$ac_cs_recheck; then 15156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15157 shift 15158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15159 CONFIG_SHELL='$SHELL' 15160 export CONFIG_SHELL 15161 exec "\$@" 15162 fi 15163 15164 _ACEOF 15165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15166 exec 5>>config.log 15167 { 15168 echo 15169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15170 ## Running $as_me. ## 15171 _ASBOX 15172 $as_echo "$ac_log" 15173 } >&5 15174 15175 _ACEOF 15176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15177 # 15178 # INIT-COMMANDS 15179 # 15180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15181 15182 15183 # The HP-UX ksh and POSIX shell print the target directory to stdout 15184 # if CDPATH is set. 15185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15186 15187 sed_quote_subst='$sed_quote_subst' 15188 double_quote_subst='$double_quote_subst' 15189 delay_variable_subst='$delay_variable_subst' 15190 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15191 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15192 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15193 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15194 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15195 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15196 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15197 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15198 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15199 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15200 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15201 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15202 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15203 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15204 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15205 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15206 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15207 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15208 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15209 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15210 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15211 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15212 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15213 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15214 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15215 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15216 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15217 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15218 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15219 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15220 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15221 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15222 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15223 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15224 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15225 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15226 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15227 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15228 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15229 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15230 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15231 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15232 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15233 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15234 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15235 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15236 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15237 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15238 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"`' 15239 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15240 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15241 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15242 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15243 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15244 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15245 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15246 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15247 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15248 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15249 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15250 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15251 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15252 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15253 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15254 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15255 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15256 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15257 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15258 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15259 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15260 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15261 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15262 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15263 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15264 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15265 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15266 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15267 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15268 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15269 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15270 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15271 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15272 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15273 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15274 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15275 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15276 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15277 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15278 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15279 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15280 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15281 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15282 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15283 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15284 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15285 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15286 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15287 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15288 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15289 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15290 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15291 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15292 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15293 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15294 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15295 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15296 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15297 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15298 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15299 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15300 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15301 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15302 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15303 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15304 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15305 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15306 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15307 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15308 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15309 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15310 15311 LTCC='$LTCC' 15312 LTCFLAGS='$LTCFLAGS' 15313 compiler='$compiler_DEFAULT' 15314 15315 # A function that is used when there is no print builtin or printf. 15316 func_fallback_echo () 15317 { 15318 eval 'cat <<_LTECHO_EOF 15319 \$1 15320 _LTECHO_EOF' 15321 } 15322 15323 # Quote evaled strings. 15324 for var in SHELL \ 15325 ECHO \ 15326 SED \ 15327 GREP \ 15328 EGREP \ 15329 FGREP \ 15330 LD \ 15331 NM \ 15332 LN_S \ 15333 lt_SP2NL \ 15334 lt_NL2SP \ 15335 reload_flag \ 15336 OBJDUMP \ 15337 deplibs_check_method \ 15338 file_magic_cmd \ 15339 AR \ 15340 AR_FLAGS \ 15341 STRIP \ 15342 RANLIB \ 15343 CC \ 15344 CFLAGS \ 15345 compiler \ 15346 lt_cv_sys_global_symbol_pipe \ 15347 lt_cv_sys_global_symbol_to_cdecl \ 15348 lt_cv_sys_global_symbol_to_c_name_address \ 15349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15350 lt_prog_compiler_no_builtin_flag \ 15351 lt_prog_compiler_wl \ 15352 lt_prog_compiler_pic \ 15353 lt_prog_compiler_static \ 15354 lt_cv_prog_compiler_c_o \ 15355 need_locks \ 15356 DSYMUTIL \ 15357 NMEDIT \ 15358 LIPO \ 15359 OTOOL \ 15360 OTOOL64 \ 15361 shrext_cmds \ 15362 export_dynamic_flag_spec \ 15363 whole_archive_flag_spec \ 15364 compiler_needs_object \ 15365 with_gnu_ld \ 15366 allow_undefined_flag \ 15367 no_undefined_flag \ 15368 hardcode_libdir_flag_spec \ 15369 hardcode_libdir_flag_spec_ld \ 15370 hardcode_libdir_separator \ 15371 fix_srcfile_path \ 15372 exclude_expsyms \ 15373 include_expsyms \ 15374 file_list_spec \ 15375 variables_saved_for_relink \ 15376 libname_spec \ 15377 library_names_spec \ 15378 soname_spec \ 15379 install_override_mode \ 15380 finish_eval \ 15381 old_striplib \ 15382 striplib; do 15383 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15384 *[\\\\\\\`\\"\\\$]*) 15385 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15386 ;; 15387 *) 15388 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15389 ;; 15390 esac 15391 done 15392 15393 # Double-quote double-evaled strings. 15394 for var in reload_cmds \ 15395 old_postinstall_cmds \ 15396 old_postuninstall_cmds \ 15397 old_archive_cmds \ 15398 extract_expsyms_cmds \ 15399 old_archive_from_new_cmds \ 15400 old_archive_from_expsyms_cmds \ 15401 archive_cmds \ 15402 archive_expsym_cmds \ 15403 module_cmds \ 15404 module_expsym_cmds \ 15405 export_symbols_cmds \ 15406 prelink_cmds \ 15407 postinstall_cmds \ 15408 postuninstall_cmds \ 15409 finish_cmds \ 15410 sys_lib_search_path_spec \ 15411 sys_lib_dlsearch_path_spec; do 15412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15413 *[\\\\\\\`\\"\\\$]*) 15414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15415 ;; 15416 *) 15417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15418 ;; 15419 esac 15420 done 15421 15422 ac_aux_dir='$ac_aux_dir' 15423 xsi_shell='$xsi_shell' 15424 lt_shell_append='$lt_shell_append' 15425 15426 # See if we are running on zsh, and set the options which allow our 15427 # commands through without removal of \ escapes INIT. 15428 if test -n "\${ZSH_VERSION+set}" ; then 15429 setopt NO_GLOB_SUBST 15430 fi 15431 15432 15433 PACKAGE='$PACKAGE' 15434 VERSION='$VERSION' 15435 TIMESTAMP='$TIMESTAMP' 15436 RM='$RM' 15437 ofile='$ofile' 15438 15439 15440 15441 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 15442 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 15443 # from automake. 15444 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15445 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15446 LINGUAS="${LINGUAS-%UNSET%}" 15447 15448 15449 _ACEOF 15450 15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15452 15453 # Handling of arguments. 15454 for ac_config_target in $ac_config_targets 15455 do 15456 case $ac_config_target in 15457 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15458 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15459 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15460 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15462 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 15463 15464 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15465 esac 15466 done 15467 15468 15469 # If the user did not use the arguments to specify the items to instantiate, 15470 # then the envvar interface is used. Set only those that are not. 15471 # We use the long form for the default assignment because of an extremely 15472 # bizarre bug on SunOS 4.1.3. 15473 if $ac_need_defaults; then 15474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15475 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15476 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15477 fi 15478 15479 # Have a temporary directory for convenience. Make it in the build tree 15480 # simply because there is no reason against having it here, and in addition, 15481 # creating and moving files from /tmp can sometimes cause problems. 15482 # Hook for its removal unless debugging. 15483 # Note that there is a small window in which the directory will not be cleaned: 15484 # after its creation but before its name has been assigned to `$tmp'. 15485 $debug || 15486 { 15487 tmp= ac_tmp= 15488 trap 'exit_status=$? 15489 : "${ac_tmp:=$tmp}" 15490 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15491 ' 0 15492 trap 'as_fn_exit 1' 1 2 13 15 15493 } 15494 # Create a (secure) tmp directory for tmp files. 15495 15496 { 15497 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15498 test -d "$tmp" 15499 } || 15500 { 15501 tmp=./conf$$-$RANDOM 15502 (umask 077 && mkdir "$tmp") 15503 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15504 ac_tmp=$tmp 15505 15506 # Set up the scripts for CONFIG_FILES section. 15507 # No need to generate them if there are no CONFIG_FILES. 15508 # This happens for instance with `./config.status config.h'. 15509 if test -n "$CONFIG_FILES"; then 15510 15511 15512 ac_cr=`echo X | tr X '\015'` 15513 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15514 # But we know of no other shell where ac_cr would be empty at this 15515 # point, so we can use a bashism as a fallback. 15516 if test "x$ac_cr" = x; then 15517 eval ac_cr=\$\'\\r\' 15518 fi 15519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15521 ac_cs_awk_cr='\\r' 15522 else 15523 ac_cs_awk_cr=$ac_cr 15524 fi 15525 15526 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15527 _ACEOF 15528 15529 15530 { 15531 echo "cat >conf$$subs.awk <<_ACEOF" && 15532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15533 echo "_ACEOF" 15534 } >conf$$subs.sh || 15535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15536 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15537 ac_delim='%!_!# ' 15538 for ac_last_try in false false false false false :; do 15539 . ./conf$$subs.sh || 15540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15541 15542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15543 if test $ac_delim_n = $ac_delim_num; then 15544 break 15545 elif $ac_last_try; then 15546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15547 else 15548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15549 fi 15550 done 15551 rm -f conf$$subs.sh 15552 15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15554 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15555 _ACEOF 15556 sed -n ' 15557 h 15558 s/^/S["/; s/!.*/"]=/ 15559 p 15560 g 15561 s/^[^!]*!// 15562 :repl 15563 t repl 15564 s/'"$ac_delim"'$// 15565 t delim 15566 :nl 15567 h 15568 s/\(.\{148\}\)..*/\1/ 15569 t more1 15570 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15571 p 15572 n 15573 b repl 15574 :more1 15575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15576 p 15577 g 15578 s/.\{148\}// 15579 t nl 15580 :delim 15581 h 15582 s/\(.\{148\}\)..*/\1/ 15583 t more2 15584 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15585 p 15586 b 15587 :more2 15588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15589 p 15590 g 15591 s/.\{148\}// 15592 t delim 15593 ' <conf$$subs.awk | sed ' 15594 /^[^""]/{ 15595 N 15596 s/\n// 15597 } 15598 ' >>$CONFIG_STATUS || ac_write_fail=1 15599 rm -f conf$$subs.awk 15600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15601 _ACAWK 15602 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15603 for (key in S) S_is_set[key] = 1 15604 FS = "" 15605 15606 } 15607 { 15608 line = $ 0 15609 nfields = split(line, field, "@") 15610 substed = 0 15611 len = length(field[1]) 15612 for (i = 2; i < nfields; i++) { 15613 key = field[i] 15614 keylen = length(key) 15615 if (S_is_set[key]) { 15616 value = S[key] 15617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15618 len += length(value) + length(field[++i]) 15619 substed = 1 15620 } else 15621 len += 1 + keylen 15622 } 15623 15624 print line 15625 } 15626 15627 _ACAWK 15628 _ACEOF 15629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15632 else 15633 cat 15634 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15636 _ACEOF 15637 15638 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15639 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15640 # trailing colons and then remove the whole line if VPATH becomes empty 15641 # (actually we leave an empty line to preserve line numbers). 15642 if test "x$srcdir" = x.; then 15643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15644 h 15645 s/// 15646 s/^/:/ 15647 s/[ ]*$/:/ 15648 s/:\$(srcdir):/:/g 15649 s/:\${srcdir}:/:/g 15650 s/:@srcdir@:/:/g 15651 s/^:*// 15652 s/:*$// 15653 x 15654 s/\(=[ ]*\).*/\1/ 15655 G 15656 s/\n// 15657 s/^[^=]*=[ ]*$// 15658 }' 15659 fi 15660 15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15662 fi # test -n "$CONFIG_FILES" 15663 15664 # Set up the scripts for CONFIG_HEADERS section. 15665 # No need to generate them if there are no CONFIG_HEADERS. 15666 # This happens for instance with `./config.status Makefile'. 15667 if test -n "$CONFIG_HEADERS"; then 15668 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15669 BEGIN { 15670 _ACEOF 15671 15672 # Transform confdefs.h into an awk script `defines.awk', embedded as 15673 # here-document in config.status, that substitutes the proper values into 15674 # config.h.in to produce config.h. 15675 15676 # Create a delimiter string that does not exist in confdefs.h, to ease 15677 # handling of long lines. 15678 ac_delim='%!_!# ' 15679 for ac_last_try in false false :; do 15680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15681 if test -z "$ac_tt"; then 15682 break 15683 elif $ac_last_try; then 15684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15685 else 15686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15687 fi 15688 done 15689 15690 # For the awk script, D is an array of macro values keyed by name, 15691 # likewise P contains macro parameters if any. Preserve backslash 15692 # newline sequences. 15693 15694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15695 sed -n ' 15696 s/.\{148\}/&'"$ac_delim"'/g 15697 t rset 15698 :rset 15699 s/^[ ]*#[ ]*define[ ][ ]*/ / 15700 t def 15701 d 15702 :def 15703 s/\\$// 15704 t bsnl 15705 s/["\\]/\\&/g 15706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15707 D["\1"]=" \3"/p 15708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15709 d 15710 :bsnl 15711 s/["\\]/\\&/g 15712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15713 D["\1"]=" \3\\\\\\n"\\/p 15714 t cont 15715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15716 t cont 15717 d 15718 :cont 15719 n 15720 s/.\{148\}/&'"$ac_delim"'/g 15721 t clear 15722 :clear 15723 s/\\$// 15724 t bsnlc 15725 s/["\\]/\\&/g; s/^/"/; s/$/"/p 15726 d 15727 :bsnlc 15728 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15729 b cont 15730 ' <confdefs.h | sed ' 15731 s/'"$ac_delim"'/"\\\ 15732 "/g' >>$CONFIG_STATUS || ac_write_fail=1 15733 15734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15735 for (key in D) D_is_set[key] = 1 15736 FS = "" 15737 } 15738 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15739 line = \$ 0 15740 split(line, arg, " ") 15741 if (arg[1] == "#") { 15742 defundef = arg[2] 15743 mac1 = arg[3] 15744 } else { 15745 defundef = substr(arg[1], 2) 15746 mac1 = arg[2] 15747 } 15748 split(mac1, mac2, "(") #) 15749 macro = mac2[1] 15750 prefix = substr(line, 1, index(line, defundef) - 1) 15751 if (D_is_set[macro]) { 15752 # Preserve the white space surrounding the "#". 15753 print prefix "define", macro P[macro] D[macro] 15754 next 15755 } else { 15756 # Replace #undef with comments. This is necessary, for example, 15757 # in the case of _POSIX_SOURCE, which is predefined and required 15758 # on some systems where configure will not decide to define it. 15759 if (defundef == "undef") { 15760 print "/*", prefix defundef, macro, "*/" 15761 next 15762 } 15763 } 15764 } 15765 { print } 15766 _ACAWK 15767 _ACEOF 15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15770 fi # test -n "$CONFIG_HEADERS" 15771 15772 15773 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15774 shift 15775 for ac_tag 15776 do 15777 case $ac_tag in 15778 :[FHLC]) ac_mode=$ac_tag; continue;; 15779 esac 15780 case $ac_mode$ac_tag in 15781 :[FHL]*:*);; 15782 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15783 :[FH]-) ac_tag=-:-;; 15784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15785 esac 15786 ac_save_IFS=$IFS 15787 IFS=: 15788 set x $ac_tag 15789 IFS=$ac_save_IFS 15790 shift 15791 ac_file=$1 15792 shift 15793 15794 case $ac_mode in 15795 :L) ac_source=$1;; 15796 :[FH]) 15797 ac_file_inputs= 15798 for ac_f 15799 do 15800 case $ac_f in 15801 -) ac_f="$ac_tmp/stdin";; 15802 *) # Look for the file first in the build tree, then in the source tree 15803 # (if the path is not absolute). The absolute path cannot be DOS-style, 15804 # because $ac_f cannot contain `:'. 15805 test -f "$ac_f" || 15806 case $ac_f in 15807 [\\/$]*) false;; 15808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15809 esac || 15810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15811 esac 15812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15813 as_fn_append ac_file_inputs " '$ac_f'" 15814 done 15815 15816 # Let's still pretend it is `configure' which instantiates (i.e., don't 15817 # use $as_me), people would be surprised to read: 15818 # /* config.h. Generated by config.status. */ 15819 configure_input='Generated from '` 15820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15821 `' by configure.' 15822 if test x"$ac_file" != x-; then 15823 configure_input="$ac_file. $configure_input" 15824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15825 $as_echo "$as_me: creating $ac_file" >&6;} 15826 fi 15827 # Neutralize special characters interpreted by sed in replacement strings. 15828 case $configure_input in #( 15829 *\&* | *\|* | *\\* ) 15830 ac_sed_conf_input=`$as_echo "$configure_input" | 15831 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15832 *) ac_sed_conf_input=$configure_input;; 15833 esac 15834 15835 case $ac_tag in 15836 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15838 esac 15839 ;; 15840 esac 15841 15842 ac_dir=`$as_dirname -- "$ac_file" || 15843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15844 X"$ac_file" : 'X\(//\)[^/]' \| \ 15845 X"$ac_file" : 'X\(//\)$' \| \ 15846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15847 $as_echo X"$ac_file" | 15848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15849 s//\1/ 15850 q 15851 } 15852 /^X\(\/\/\)[^/].*/{ 15853 s//\1/ 15854 q 15855 } 15856 /^X\(\/\/\)$/{ 15857 s//\1/ 15858 q 15859 } 15860 /^X\(\/\).*/{ 15861 s//\1/ 15862 q 15863 } 15864 s/.*/./; q'` 15865 as_dir="$ac_dir"; as_fn_mkdir_p 15866 ac_builddir=. 15867 15868 case "$ac_dir" in 15869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15870 *) 15871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15872 # A ".." for each directory in $ac_dir_suffix. 15873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15874 case $ac_top_builddir_sub in 15875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15877 esac ;; 15878 esac 15879 ac_abs_top_builddir=$ac_pwd 15880 ac_abs_builddir=$ac_pwd$ac_dir_suffix 15881 # for backward compatibility: 15882 ac_top_builddir=$ac_top_build_prefix 15883 15884 case $srcdir in 15885 .) # We are building in place. 15886 ac_srcdir=. 15887 ac_top_srcdir=$ac_top_builddir_sub 15888 ac_abs_top_srcdir=$ac_pwd ;; 15889 [\\/]* | ?:[\\/]* ) # Absolute name. 15890 ac_srcdir=$srcdir$ac_dir_suffix; 15891 ac_top_srcdir=$srcdir 15892 ac_abs_top_srcdir=$srcdir ;; 15893 *) # Relative name. 15894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15895 ac_top_srcdir=$ac_top_build_prefix$srcdir 15896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15897 esac 15898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15899 15900 15901 case $ac_mode in 15902 :F) 15903 # 15904 # CONFIG_FILE 15905 # 15906 15907 case $INSTALL in 15908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15910 esac 15911 ac_MKDIR_P=$MKDIR_P 15912 case $MKDIR_P in 15913 [\\/$]* | ?:[\\/]* ) ;; 15914 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15915 esac 15916 _ACEOF 15917 15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15919 # If the template does not know about datarootdir, expand it. 15920 # FIXME: This hack should be removed a few years after 2.60. 15921 ac_datarootdir_hack=; ac_datarootdir_seen= 15922 ac_sed_dataroot=' 15923 /datarootdir/ { 15924 p 15925 q 15926 } 15927 /@datadir@/p 15928 /@docdir@/p 15929 /@infodir@/p 15930 /@localedir@/p 15931 /@mandir@/p' 15932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15933 *datarootdir*) ac_datarootdir_seen=yes;; 15934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15936 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15937 _ACEOF 15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15939 ac_datarootdir_hack=' 15940 s&@datadir@&$datadir&g 15941 s&@docdir@&$docdir&g 15942 s&@infodir@&$infodir&g 15943 s&@localedir@&$localedir&g 15944 s&@mandir@&$mandir&g 15945 s&\\\${datarootdir}&$datarootdir&g' ;; 15946 esac 15947 _ACEOF 15948 15949 # Neutralize VPATH when `$srcdir' = `.'. 15950 # Shell code in configure.ac might set extrasub. 15951 # FIXME: do we really want to maintain this feature? 15952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15953 ac_sed_extra="$ac_vpsub 15954 $extrasub 15955 _ACEOF 15956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15957 :t 15958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15959 s|@configure_input@|$ac_sed_conf_input|;t t 15960 s&@top_builddir@&$ac_top_builddir_sub&;t t 15961 s&@top_build_prefix@&$ac_top_build_prefix&;t t 15962 s&@srcdir@&$ac_srcdir&;t t 15963 s&@abs_srcdir@&$ac_abs_srcdir&;t t 15964 s&@top_srcdir@&$ac_top_srcdir&;t t 15965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15966 s&@builddir@&$ac_builddir&;t t 15967 s&@abs_builddir@&$ac_abs_builddir&;t t 15968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15969 s&@INSTALL@&$ac_INSTALL&;t t 15970 s&@MKDIR_P@&$ac_MKDIR_P&;t t 15971 $ac_datarootdir_hack 15972 " 15973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15975 15976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15979 "$ac_tmp/out"`; test -z "$ac_out"; } && 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15981 which seems to be undefined. Please make sure it is defined" >&5 15982 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15983 which seems to be undefined. Please make sure it is defined" >&2;} 15984 15985 rm -f "$ac_tmp/stdin" 15986 case $ac_file in 15987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15989 esac \ 15990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15991 ;; 15992 :H) 15993 # 15994 # CONFIG_HEADER 15995 # 15996 if test x"$ac_file" != x-; then 15997 { 15998 $as_echo "/* $configure_input */" \ 15999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16000 } >"$ac_tmp/config.h" \ 16001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16003 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16004 $as_echo "$as_me: $ac_file is unchanged" >&6;} 16005 else 16006 rm -f "$ac_file" 16007 mv "$ac_tmp/config.h" "$ac_file" \ 16008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16009 fi 16010 else 16011 $as_echo "/* $configure_input */" \ 16012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16013 || as_fn_error $? "could not create -" "$LINENO" 5 16014 fi 16015 # Compute "$ac_file"'s index in $config_headers. 16016 _am_arg="$ac_file" 16017 _am_stamp_count=1 16018 for _am_header in $config_headers :; do 16019 case $_am_header in 16020 $_am_arg | $_am_arg:* ) 16021 break ;; 16022 * ) 16023 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16024 esac 16025 done 16026 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16027 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16028 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16029 X"$_am_arg" : 'X\(//\)$' \| \ 16030 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16031 $as_echo X"$_am_arg" | 16032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16033 s//\1/ 16034 q 16035 } 16036 /^X\(\/\/\)[^/].*/{ 16037 s//\1/ 16038 q 16039 } 16040 /^X\(\/\/\)$/{ 16041 s//\1/ 16042 q 16043 } 16044 /^X\(\/\).*/{ 16045 s//\1/ 16046 q 16047 } 16048 s/.*/./; q'`/stamp-h$_am_stamp_count 16049 ;; 16050 16051 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16052 $as_echo "$as_me: executing $ac_file commands" >&6;} 16053 ;; 16054 esac 16055 16056 16057 case $ac_file$ac_mode in 16058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16059 # Older Autoconf quotes --file arguments for eval, but not when files 16060 # are listed without --file. Let's play safe and only enable the eval 16061 # if we detect the quoting. 16062 case $CONFIG_FILES in 16063 *\'*) eval set x "$CONFIG_FILES" ;; 16064 *) set x $CONFIG_FILES ;; 16065 esac 16066 shift 16067 for mf 16068 do 16069 # Strip MF so we end up with the name of the file. 16070 mf=`echo "$mf" | sed -e 's/:.*$//'` 16071 # Check whether this is an Automake generated Makefile or not. 16072 # We used to match only the files named 'Makefile.in', but 16073 # some people rename them; so instead we look at the file content. 16074 # Grep'ing the first line is not enough: some people post-process 16075 # each Makefile.in and add a new line on top of each file to say so. 16076 # Grep'ing the whole file is not good either: AIX grep has a line 16077 # limit of 2048, but all sed's we know have understand at least 4000. 16078 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16079 dirpart=`$as_dirname -- "$mf" || 16080 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16081 X"$mf" : 'X\(//\)[^/]' \| \ 16082 X"$mf" : 'X\(//\)$' \| \ 16083 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16084 $as_echo X"$mf" | 16085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16086 s//\1/ 16087 q 16088 } 16089 /^X\(\/\/\)[^/].*/{ 16090 s//\1/ 16091 q 16092 } 16093 /^X\(\/\/\)$/{ 16094 s//\1/ 16095 q 16096 } 16097 /^X\(\/\).*/{ 16098 s//\1/ 16099 q 16100 } 16101 s/.*/./; q'` 16102 else 16103 continue 16104 fi 16105 # Extract the definition of DEPDIR, am__include, and am__quote 16106 # from the Makefile without running 'make'. 16107 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16108 test -z "$DEPDIR" && continue 16109 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16110 test -z "$am__include" && continue 16111 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16112 # Find all dependency output files, they are included files with 16113 # $(DEPDIR) in their names. We invoke sed twice because it is the 16114 # simplest approach to changing $(DEPDIR) to its actual value in the 16115 # expansion. 16116 for file in `sed -n " 16117 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16118 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16119 # Make sure the directory exists. 16120 test -f "$dirpart/$file" && continue 16121 fdir=`$as_dirname -- "$file" || 16122 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16123 X"$file" : 'X\(//\)[^/]' \| \ 16124 X"$file" : 'X\(//\)$' \| \ 16125 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16126 $as_echo X"$file" | 16127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16128 s//\1/ 16129 q 16130 } 16131 /^X\(\/\/\)[^/].*/{ 16132 s//\1/ 16133 q 16134 } 16135 /^X\(\/\/\)$/{ 16136 s//\1/ 16137 q 16138 } 16139 /^X\(\/\).*/{ 16140 s//\1/ 16141 q 16142 } 16143 s/.*/./; q'` 16144 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16145 # echo "creating $dirpart/$file" 16146 echo '# dummy' > "$dirpart/$file" 16147 done 16148 done 16149 } 16150 ;; 16151 "libtool":C) 16152 16153 # See if we are running on zsh, and set the options which allow our 16154 # commands through without removal of \ escapes. 16155 if test -n "${ZSH_VERSION+set}" ; then 16156 setopt NO_GLOB_SUBST 16157 fi 16158 16159 cfgfile="${ofile}T" 16160 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16161 $RM "$cfgfile" 16162 16163 cat <<_LT_EOF >> "$cfgfile" 16164 #! $SHELL 16165 16166 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16167 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16169 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 16170 # 16171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16172 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16173 # Written by Gordon Matzigkeit, 1996 16174 # 16175 # This file is part of GNU Libtool. 16176 # 16177 # GNU Libtool is free software; you can redistribute it and/or 16178 # modify it under the terms of the GNU General Public License as 16179 # published by the Free Software Foundation; either version 2 of 16180 # the License, or (at your option) any later version. 16181 # 16182 # As a special exception to the GNU General Public License, 16183 # if you distribute this file as part of a program or library that 16184 # is built using GNU Libtool, you may include this file under the 16185 # same distribution terms that you use for the rest of that program. 16186 # 16187 # GNU Libtool is distributed in the hope that it will be useful, 16188 # but WITHOUT ANY WARRANTY; without even the implied warranty of 16189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16190 # GNU General Public License for more details. 16191 # 16192 # You should have received a copy of the GNU General Public License 16193 # along with GNU Libtool; see the file COPYING. If not, a copy 16194 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16195 # obtained by writing to the Free Software Foundation, Inc., 16196 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16197 16198 16199 # The names of the tagged configurations supported by this script. 16200 available_tags="" 16201 16202 # ### BEGIN LIBTOOL CONFIG 16203 16204 # Whether or not to build shared libraries. 16205 build_libtool_libs=$enable_shared 16206 16207 # Which release of libtool.m4 was used? 16208 macro_version=$macro_version 16209 macro_revision=$macro_revision 16210 16211 # Whether or not to build static libraries. 16212 build_old_libs=$enable_static 16213 16214 # What type of objects to build. 16215 pic_mode=$pic_mode 16216 16217 # Whether or not to optimize for fast installation. 16218 fast_install=$enable_fast_install 16219 16220 # Shell to use when invoking shell scripts. 16221 SHELL=$lt_SHELL 16222 16223 # An echo program that protects backslashes. 16224 ECHO=$lt_ECHO 16225 16226 # The host system. 16227 host_alias=$host_alias 16228 host=$host 16229 host_os=$host_os 16230 16231 # The build system. 16232 build_alias=$build_alias 16233 build=$build 16234 build_os=$build_os 16235 16236 # A sed program that does not truncate output. 16237 SED=$lt_SED 16238 16239 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 16240 Xsed="\$SED -e 1s/^X//" 16241 16242 # A grep program that handles long lines. 16243 GREP=$lt_GREP 16244 16245 # An ERE matcher. 16246 EGREP=$lt_EGREP 16247 16248 # A literal string matcher. 16249 FGREP=$lt_FGREP 16250 16251 # A BSD- or MS-compatible name lister. 16252 NM=$lt_NM 16253 16254 # Whether we need soft or hard links. 16255 LN_S=$lt_LN_S 16256 16257 # What is the maximum length of a command? 16258 max_cmd_len=$max_cmd_len 16259 16260 # Object file suffix (normally "o"). 16261 objext=$ac_objext 16262 16263 # Executable file suffix (normally ""). 16264 exeext=$exeext 16265 16266 # whether the shell understands "unset". 16267 lt_unset=$lt_unset 16268 16269 # turn spaces into newlines. 16270 SP2NL=$lt_lt_SP2NL 16271 16272 # turn newlines into spaces. 16273 NL2SP=$lt_lt_NL2SP 16274 16275 # An object symbol dumper. 16276 OBJDUMP=$lt_OBJDUMP 16277 16278 # Method to check whether dependent libraries are shared objects. 16279 deplibs_check_method=$lt_deplibs_check_method 16280 16281 # Command to use when deplibs_check_method == "file_magic". 16282 file_magic_cmd=$lt_file_magic_cmd 16283 16284 # The archiver. 16285 AR=$lt_AR 16286 AR_FLAGS=$lt_AR_FLAGS 16287 16288 # A symbol stripping program. 16289 STRIP=$lt_STRIP 16290 16291 # Commands used to install an old-style archive. 16292 RANLIB=$lt_RANLIB 16293 old_postinstall_cmds=$lt_old_postinstall_cmds 16294 old_postuninstall_cmds=$lt_old_postuninstall_cmds 16295 16296 # Whether to use a lock for old archive extraction. 16297 lock_old_archive_extraction=$lock_old_archive_extraction 16298 16299 # A C compiler. 16300 LTCC=$lt_CC 16301 16302 # LTCC compiler flags. 16303 LTCFLAGS=$lt_CFLAGS 16304 16305 # Take the output of nm and produce a listing of raw symbols and C names. 16306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16307 16308 # Transform the output of nm in a proper C declaration. 16309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16310 16311 # Transform the output of nm in a C name address pair. 16312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16313 16314 # Transform the output of nm in a C name address pair when lib prefix is needed. 16315 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16316 16317 # The name of the directory that contains temporary libtool files. 16318 objdir=$objdir 16319 16320 # Used to examine libraries when file_magic_cmd begins with "file". 16321 MAGIC_CMD=$MAGIC_CMD 16322 16323 # Must we lock files when doing compilation? 16324 need_locks=$lt_need_locks 16325 16326 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16327 DSYMUTIL=$lt_DSYMUTIL 16328 16329 # Tool to change global to local symbols on Mac OS X. 16330 NMEDIT=$lt_NMEDIT 16331 16332 # Tool to manipulate fat objects and archives on Mac OS X. 16333 LIPO=$lt_LIPO 16334 16335 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 16336 OTOOL=$lt_OTOOL 16337 16338 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16339 OTOOL64=$lt_OTOOL64 16340 16341 # Old archive suffix (normally "a"). 16342 libext=$libext 16343 16344 # Shared library suffix (normally ".so"). 16345 shrext_cmds=$lt_shrext_cmds 16346 16347 # The commands to extract the exported symbol list from a shared archive. 16348 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16349 16350 # Variables whose values should be saved in libtool wrapper scripts and 16351 # restored at link time. 16352 variables_saved_for_relink=$lt_variables_saved_for_relink 16353 16354 # Do we need the "lib" prefix for modules? 16355 need_lib_prefix=$need_lib_prefix 16356 16357 # Do we need a version for libraries? 16358 need_version=$need_version 16359 16360 # Library versioning type. 16361 version_type=$version_type 16362 16363 # Shared library runtime path variable. 16364 runpath_var=$runpath_var 16365 16366 # Shared library path variable. 16367 shlibpath_var=$shlibpath_var 16368 16369 # Is shlibpath searched before the hard-coded library search path? 16370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16371 16372 # Format of library name prefix. 16373 libname_spec=$lt_libname_spec 16374 16375 # List of archive names. First name is the real one, the rest are links. 16376 # The last name is the one that the linker finds with -lNAME 16377 library_names_spec=$lt_library_names_spec 16378 16379 # The coded name of the library, if different from the real name. 16380 soname_spec=$lt_soname_spec 16381 16382 # Permission mode override for installation of shared libraries. 16383 install_override_mode=$lt_install_override_mode 16384 16385 # Command to use after installation of a shared archive. 16386 postinstall_cmds=$lt_postinstall_cmds 16387 16388 # Command to use after uninstallation of a shared archive. 16389 postuninstall_cmds=$lt_postuninstall_cmds 16390 16391 # Commands used to finish a libtool library installation in a directory. 16392 finish_cmds=$lt_finish_cmds 16393 16394 # As "finish_cmds", except a single script fragment to be evaled but 16395 # not shown. 16396 finish_eval=$lt_finish_eval 16397 16398 # Whether we should hardcode library paths into libraries. 16399 hardcode_into_libs=$hardcode_into_libs 16400 16401 # Compile-time system search path for libraries. 16402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16403 16404 # Run-time system search path for libraries. 16405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16406 16407 # Whether dlopen is supported. 16408 dlopen_support=$enable_dlopen 16409 16410 # Whether dlopen of programs is supported. 16411 dlopen_self=$enable_dlopen_self 16412 16413 # Whether dlopen of statically linked programs is supported. 16414 dlopen_self_static=$enable_dlopen_self_static 16415 16416 # Commands to strip libraries. 16417 old_striplib=$lt_old_striplib 16418 striplib=$lt_striplib 16419 16420 16421 # The linker used to build libraries. 16422 LD=$lt_LD 16423 16424 # How to create reloadable object files. 16425 reload_flag=$lt_reload_flag 16426 reload_cmds=$lt_reload_cmds 16427 16428 # Commands used to build an old-style archive. 16429 old_archive_cmds=$lt_old_archive_cmds 16430 16431 # A language specific compiler. 16432 CC=$lt_compiler 16433 16434 # Is the compiler the GNU compiler? 16435 with_gcc=$GCC 16436 16437 # Compiler flag to turn off builtin functions. 16438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16439 16440 # How to pass a linker flag through the compiler. 16441 wl=$lt_lt_prog_compiler_wl 16442 16443 # Additional compiler flags for building library objects. 16444 pic_flag=$lt_lt_prog_compiler_pic 16445 16446 # Compiler flag to prevent dynamic linking. 16447 link_static_flag=$lt_lt_prog_compiler_static 16448 16449 # Does compiler simultaneously support -c and -o options? 16450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16451 16452 # Whether or not to add -lc for building shared libraries. 16453 build_libtool_need_lc=$archive_cmds_need_lc 16454 16455 # Whether or not to disallow shared libs when runtime libs are static. 16456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16457 16458 # Compiler flag to allow reflexive dlopens. 16459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16460 16461 # Compiler flag to generate shared objects directly from archives. 16462 whole_archive_flag_spec=$lt_whole_archive_flag_spec 16463 16464 # Whether the compiler copes with passing no objects directly. 16465 compiler_needs_object=$lt_compiler_needs_object 16466 16467 # Create an old-style archive from a shared archive. 16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16469 16470 # Create a temporary old-style archive to link instead of a shared archive. 16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16472 16473 # Commands used to build a shared archive. 16474 archive_cmds=$lt_archive_cmds 16475 archive_expsym_cmds=$lt_archive_expsym_cmds 16476 16477 # Commands used to build a loadable module if different from building 16478 # a shared archive. 16479 module_cmds=$lt_module_cmds 16480 module_expsym_cmds=$lt_module_expsym_cmds 16481 16482 # Whether we are building with GNU ld or not. 16483 with_gnu_ld=$lt_with_gnu_ld 16484 16485 # Flag that allows shared libraries with undefined symbols to be built. 16486 allow_undefined_flag=$lt_allow_undefined_flag 16487 16488 # Flag that enforces no undefined symbols. 16489 no_undefined_flag=$lt_no_undefined_flag 16490 16491 # Flag to hardcode \$libdir into a binary during linking. 16492 # This must work even if \$libdir does not exist 16493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16494 16495 # If ld is used when linking, flag to hardcode \$libdir into a binary 16496 # during linking. This must work even if \$libdir does not exist. 16497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16498 16499 # Whether we need a single "-rpath" flag with a separated argument. 16500 hardcode_libdir_separator=$lt_hardcode_libdir_separator 16501 16502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16503 # DIR into the resulting binary. 16504 hardcode_direct=$hardcode_direct 16505 16506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16507 # DIR into the resulting binary and the resulting library dependency is 16508 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16509 # library is relocated. 16510 hardcode_direct_absolute=$hardcode_direct_absolute 16511 16512 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16513 # into the resulting binary. 16514 hardcode_minus_L=$hardcode_minus_L 16515 16516 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16517 # into the resulting binary. 16518 hardcode_shlibpath_var=$hardcode_shlibpath_var 16519 16520 # Set to "yes" if building a shared library automatically hardcodes DIR 16521 # into the library and all subsequent libraries and executables linked 16522 # against it. 16523 hardcode_automatic=$hardcode_automatic 16524 16525 # Set to yes if linker adds runtime paths of dependent libraries 16526 # to runtime path list. 16527 inherit_rpath=$inherit_rpath 16528 16529 # Whether libtool must link a program against all its dependency libraries. 16530 link_all_deplibs=$link_all_deplibs 16531 16532 # Fix the shell variable \$srcfile for the compiler. 16533 fix_srcfile_path=$lt_fix_srcfile_path 16534 16535 # Set to "yes" if exported symbols are required. 16536 always_export_symbols=$always_export_symbols 16537 16538 # The commands to list exported symbols. 16539 export_symbols_cmds=$lt_export_symbols_cmds 16540 16541 # Symbols that should not be listed in the preloaded symbols. 16542 exclude_expsyms=$lt_exclude_expsyms 16543 16544 # Symbols that must always be exported. 16545 include_expsyms=$lt_include_expsyms 16546 16547 # Commands necessary for linking programs (against libraries) with templates. 16548 prelink_cmds=$lt_prelink_cmds 16549 16550 # Specify filename containing input files. 16551 file_list_spec=$lt_file_list_spec 16552 16553 # How to hardcode a shared library path into an executable. 16554 hardcode_action=$hardcode_action 16555 16556 # ### END LIBTOOL CONFIG 16557 16558 _LT_EOF 16559 16560 case $host_os in 16561 aix3*) 16562 cat <<\_LT_EOF >> "$cfgfile" 16563 # AIX sometimes has problems with the GCC collect2 program. For some 16564 # reason, if we set the COLLECT_NAMES environment variable, the problems 16565 # vanish in a puff of smoke. 16566 if test "X${COLLECT_NAMES+set}" != Xset; then 16567 COLLECT_NAMES= 16568 export COLLECT_NAMES 16569 fi 16570 _LT_EOF 16571 ;; 16572 esac 16573 16574 16575 ltmain="$ac_aux_dir/ltmain.sh" 16576 16577 16578 # We use sed instead of cat because bash on DJGPP gets confused if 16579 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16580 # text mode, it properly converts lines to CR/LF. This bash problem 16581 # is reportedly fixed, but why not run on old versions too? 16582 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16583 || (rm -f "$cfgfile"; exit 1) 16584 16585 case $xsi_shell in 16586 yes) 16587 cat << \_LT_EOF >> "$cfgfile" 16588 16589 # func_dirname file append nondir_replacement 16590 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16591 # otherwise set result to NONDIR_REPLACEMENT. 16592 func_dirname () 16593 { 16594 case ${1} in 16595 */*) func_dirname_result="${1%/*}${2}" ;; 16596 * ) func_dirname_result="${3}" ;; 16597 esac 16598 } 16599 16600 # func_basename file 16601 func_basename () 16602 { 16603 func_basename_result="${1##*/}" 16604 } 16605 16606 # func_dirname_and_basename file append nondir_replacement 16607 # perform func_basename and func_dirname in a single function 16608 # call: 16609 # dirname: Compute the dirname of FILE. If nonempty, 16610 # add APPEND to the result, otherwise set result 16611 # to NONDIR_REPLACEMENT. 16612 # value returned in "$func_dirname_result" 16613 # basename: Compute filename of FILE. 16614 # value retuned in "$func_basename_result" 16615 # Implementation must be kept synchronized with func_dirname 16616 # and func_basename. For efficiency, we do not delegate to 16617 # those functions but instead duplicate the functionality here. 16618 func_dirname_and_basename () 16619 { 16620 case ${1} in 16621 */*) func_dirname_result="${1%/*}${2}" ;; 16622 * ) func_dirname_result="${3}" ;; 16623 esac 16624 func_basename_result="${1##*/}" 16625 } 16626 16627 # func_stripname prefix suffix name 16628 # strip PREFIX and SUFFIX off of NAME. 16629 # PREFIX and SUFFIX must not contain globbing or regex special 16630 # characters, hashes, percent signs, but SUFFIX may contain a leading 16631 # dot (in which case that matches only a dot). 16632 func_stripname () 16633 { 16634 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16635 # positional parameters, so assign one to ordinary parameter first. 16636 func_stripname_result=${3} 16637 func_stripname_result=${func_stripname_result#"${1}"} 16638 func_stripname_result=${func_stripname_result%"${2}"} 16639 } 16640 16641 # func_opt_split 16642 func_opt_split () 16643 { 16644 func_opt_split_opt=${1%%=*} 16645 func_opt_split_arg=${1#*=} 16646 } 16647 16648 # func_lo2o object 16649 func_lo2o () 16650 { 16651 case ${1} in 16652 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16653 *) func_lo2o_result=${1} ;; 16654 esac 16655 } 16656 16657 # func_xform libobj-or-source 16658 func_xform () 16659 { 16660 func_xform_result=${1%.*}.lo 16661 } 16662 16663 # func_arith arithmetic-term... 16664 func_arith () 16665 { 16666 func_arith_result=$(( $* )) 16667 } 16668 16669 # func_len string 16670 # STRING may not start with a hyphen. 16671 func_len () 16672 { 16673 func_len_result=${#1} 16674 } 16675 16676 _LT_EOF 16677 ;; 16678 *) # Bourne compatible functions. 16679 cat << \_LT_EOF >> "$cfgfile" 16680 16681 # func_dirname file append nondir_replacement 16682 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16683 # otherwise set result to NONDIR_REPLACEMENT. 16684 func_dirname () 16685 { 16686 # Extract subdirectory from the argument. 16687 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16688 if test "X$func_dirname_result" = "X${1}"; then 16689 func_dirname_result="${3}" 16690 else 16691 func_dirname_result="$func_dirname_result${2}" 16692 fi 16693 } 16694 16695 # func_basename file 16696 func_basename () 16697 { 16698 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16699 } 16700 16701 16702 # func_stripname prefix suffix name 16703 # strip PREFIX and SUFFIX off of NAME. 16704 # PREFIX and SUFFIX must not contain globbing or regex special 16705 # characters, hashes, percent signs, but SUFFIX may contain a leading 16706 # dot (in which case that matches only a dot). 16707 # func_strip_suffix prefix name 16708 func_stripname () 16709 { 16710 case ${2} in 16711 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16712 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16713 esac 16714 } 16715 16716 # sed scripts: 16717 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16718 my_sed_long_arg='1s/^-[^=]*=//' 16719 16720 # func_opt_split 16721 func_opt_split () 16722 { 16723 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16724 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16725 } 16726 16727 # func_lo2o object 16728 func_lo2o () 16729 { 16730 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16731 } 16732 16733 # func_xform libobj-or-source 16734 func_xform () 16735 { 16736 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16737 } 16738 16739 # func_arith arithmetic-term... 16740 func_arith () 16741 { 16742 func_arith_result=`expr "$@"` 16743 } 16744 16745 # func_len string 16746 # STRING may not start with a hyphen. 16747 func_len () 16748 { 16749 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16750 } 16751 16752 _LT_EOF 16753 esac 16754 16755 case $lt_shell_append in 16756 yes) 16757 cat << \_LT_EOF >> "$cfgfile" 16758 16759 # func_append var value 16760 # Append VALUE to the end of shell variable VAR. 16761 func_append () 16762 { 16763 eval "$1+=\$2" 16764 } 16765 _LT_EOF 16766 ;; 16767 *) 16768 cat << \_LT_EOF >> "$cfgfile" 16769 16770 # func_append var value 16771 # Append VALUE to the end of shell variable VAR. 16772 func_append () 16773 { 16774 eval "$1=\$$1\$2" 16775 } 16776 16777 _LT_EOF 16778 ;; 16779 esac 16780 16781 16782 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16783 || (rm -f "$cfgfile"; exit 1) 16784 16785 mv -f "$cfgfile" "$ofile" || 16786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16787 chmod +x "$ofile" 16788 16789 ;; 16790 "default-1":C) 16791 for ac_file in $CONFIG_FILES; do 16792 # Support "outfile[:infile[:infile...]]" 16793 case "$ac_file" in 16794 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16795 esac 16796 # PO directories have a Makefile.in generated from Makefile.in.in. 16797 case "$ac_file" in */Makefile.in) 16798 # Adjust a relative srcdir. 16799 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16800 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16801 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16802 # In autoconf-2.13 it is called $ac_given_srcdir. 16803 # In autoconf-2.50 it is called $srcdir. 16804 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16805 case "$ac_given_srcdir" in 16806 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16807 /*) top_srcdir="$ac_given_srcdir" ;; 16808 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16809 esac 16810 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16811 rm -f "$ac_dir/POTFILES" 16812 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16813 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16814 POMAKEFILEDEPS="POTFILES.in" 16815 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 16816 # on $ac_dir but don't depend on user-specified configuration 16817 # parameters. 16818 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16819 # The LINGUAS file contains the set of available languages. 16820 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16821 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 16822 fi 16823 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16824 # Hide the ALL_LINGUAS assigment from automake. 16825 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16826 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16827 else 16828 # The set of available languages was given in configure.ac. 16829 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16830 fi 16831 case "$ac_given_srcdir" in 16832 .) srcdirpre= ;; 16833 *) srcdirpre='$(srcdir)/' ;; 16834 esac 16835 POFILES= 16836 GMOFILES= 16837 UPDATEPOFILES= 16838 DUMMYPOFILES= 16839 for lang in $ALL_LINGUAS; do 16840 POFILES="$POFILES $srcdirpre$lang.po" 16841 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16842 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16843 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16844 done 16845 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16846 # environment variable. 16847 INST_LINGUAS= 16848 if test -n "$ALL_LINGUAS"; then 16849 for presentlang in $ALL_LINGUAS; do 16850 useit=no 16851 if test "%UNSET%" != "$LINGUAS"; then 16852 desiredlanguages="$LINGUAS" 16853 else 16854 desiredlanguages="$ALL_LINGUAS" 16855 fi 16856 for desiredlang in $desiredlanguages; do 16857 # Use the presentlang catalog if desiredlang is 16858 # a. equal to presentlang, or 16859 # b. a variant of presentlang (because in this case, 16860 # presentlang can be used as a fallback for messages 16861 # which are not translated in the desiredlang catalog). 16862 case "$desiredlang" in 16863 "$presentlang"*) useit=yes;; 16864 esac 16865 done 16866 if test $useit = yes; then 16867 INST_LINGUAS="$INST_LINGUAS $presentlang" 16868 fi 16869 done 16870 fi 16871 CATALOGS= 16872 if test -n "$INST_LINGUAS"; then 16873 for lang in $INST_LINGUAS; do 16874 CATALOGS="$CATALOGS $lang.gmo" 16875 done 16876 fi 16877 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16878 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" 16879 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16880 if test -f "$f"; then 16881 case "$f" in 16882 *.orig | *.bak | *~) ;; 16883 *) cat "$f" >> "$ac_dir/Makefile" ;; 16884 esac 16885 fi 16886 done 16887 fi 16888 ;; 16889 esac 16890 done ;; 16891 16892 esac 16893 done # for ac_tag 16894 16895 16896 as_fn_exit 0 16897 _ACEOF 16898 ac_clean_files=$ac_clean_files_save 16899 16900 test $ac_write_fail = 0 || 16901 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16902 16903 16904 # configure is writing to config.log, and then calls config.status. 16905 # config.status does its own redirection, appending to config.log. 16906 # Unfortunately, on DOS this fails, as config.log is still kept open 16907 # by configure, so config.status won't be able to write to it; its 16908 # output is simply discarded. So we exec the FD to /dev/null, 16909 # effectively closing config.log, so it can be properly (re)opened and 16910 # appended to by config.status. When coming back to configure, we 16911 # need to make the FD available again. 16912 if test "$no_create" != yes; then 16913 ac_cs_success=: 16914 ac_config_status_args= 16915 test "$silent" = yes && 16916 ac_config_status_args="$ac_config_status_args --quiet" 16917 exec 5>/dev/null 16918 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16919 exec 5>>config.log 16920 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16921 # would make configure fail if this is the last instruction. 16922 $ac_cs_success || as_fn_exit 1 16923 fi 16924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16927 fi 16928 16929 16930 16931 touch config.status.tmp 16932 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 16933 sed '/as_fn_exit 0/i \ 16934 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 16935 touch --reference=Makefile Makefile.tmp \ 16936 mv Makefile.tmp Makefile \ 16937 ' config.status > config.status.tmp 16938 touch --reference=config.status config.status.tmp 16939 mv config.status.tmp config.status 16940 chmod +x config.status 16941 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 16942 touch --reference=Makefile Makefile.tmp 16943 mv Makefile.tmp Makefile 16944 else 16945 rm -f config.status.tmp 16946 fi 16947