1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.65 for open-vcdiff 0.8.3. 4 # 5 # Report bugs to <opensource (at] google.com>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10 # Inc. 11 # 12 # 13 # This configure script is free software; the Free Software Foundation 14 # gives unlimited permission to copy, distribute and modify it. 15 ## -------------------- ## 16 ## M4sh Initialization. ## 17 ## -------------------- ## 18 19 # Be more Bourne compatible 20 DUALCASE=1; export DUALCASE # for MKS sh 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac 35 fi 36 37 38 as_nl=' 39 ' 40 export as_nl 41 # Printing a long string crashes Solaris 7 /usr/bin/printf. 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45 # Prefer a ksh shell builtin over an external printf program on Solaris, 46 # but without wasting forks for bash or zsh. 47 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54 else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74 fi 75 76 # The user is always right. 77 if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83 fi 84 85 86 # IFS 87 # We need space, tab and new line, in precisely that order. Quoting is 88 # there to prevent editors from complaining about space-tab. 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 90 # splitting by setting IFS to empty value.) 91 IFS=" "" $as_nl" 92 93 # Find who we are. Look in the path if we contain no directory separator. 94 case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97 for as_dir in $PATH 98 do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103 IFS=$as_save_IFS 104 105 ;; 106 esac 107 # We did not find ourselves, most probably we were run as `sh COMMAND' 108 # in which case we are not to be found in the path. 109 if test "x$as_myself" = x; then 110 as_myself=$0 111 fi 112 if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115 fi 116 117 # Unset variables that we do not need and which cause bugs (e.g. in 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119 # suppresses any "Segmentation fault" message there. '((' could 120 # trigger a bug in pdksh 5.2.14. 121 for as_var in BASH_ENV ENV MAIL MAILPATH 122 do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124 done 125 PS1='$ ' 126 PS2='> ' 127 PS4='+ ' 128 129 # NLS nuisances. 130 LC_ALL=C 131 export LC_ALL 132 LANGUAGE=C 133 export LANGUAGE 134 135 # CDPATH. 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138 if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146 else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152 esac 153 fi 154 " 155 as_required="as_fn_return () { (exit \$1); } 156 as_fn_success () { as_fn_return 0; } 157 as_fn_failure () { as_fn_return 1; } 158 as_fn_ret_success () { return 0; } 159 as_fn_ret_failure () { return 1; } 160 161 exitcode=0 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168 else 169 exitcode=1; echo positional parameters were not saved. 170 fi 171 test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176 test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179 else 180 as_have_required=no 181 fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184 else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186 as_found=false 187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188 do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202 fi 203 fi 204 done;; 205 esac 206 as_found=false 207 done 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211 fi; } 212 IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224 fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 234 $0: opensource (at] google.com about your system, including any 235 $0: error possibly output before this message. Then install 236 $0: a modern shell, or manually run the script under such a 237 $0: shell if you do have one." 238 fi 239 exit 1 240 fi 241 fi 242 fi 243 SHELL=${CONFIG_SHELL-/bin/sh} 244 export SHELL 245 # Unset more variables known to interfere with behavior of common tools. 246 CLICOLOR_FORCE= GREP_OPTIONS= 247 unset CLICOLOR_FORCE GREP_OPTIONS 248 249 ## --------------------- ## 250 ## M4sh Shell Functions. ## 251 ## --------------------- ## 252 # as_fn_unset VAR 253 # --------------- 254 # Portably unset VAR. 255 as_fn_unset () 256 { 257 { eval $1=; unset $1;} 258 } 259 as_unset=as_fn_unset 260 261 # as_fn_set_status STATUS 262 # ----------------------- 263 # Set $? to STATUS, without forking. 264 as_fn_set_status () 265 { 266 return $1 267 } # as_fn_set_status 268 269 # as_fn_exit STATUS 270 # ----------------- 271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272 as_fn_exit () 273 { 274 set +e 275 as_fn_set_status $1 276 exit $1 277 } # as_fn_exit 278 279 # as_fn_mkdir_p 280 # ------------- 281 # Create "$as_dir" as a directory, including parents if necessary. 282 as_fn_mkdir_p () 283 { 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301 $as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325 } # as_fn_mkdir_p 326 # as_fn_append VAR VALUE 327 # ---------------------- 328 # Append the text in VALUE to the end of the definition contained in VAR. Take 329 # advantage of any shell optimizations that allow amortized linear growth over 330 # repeated appends, instead of the typical quadratic growth present in naive 331 # implementations. 332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337 else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342 fi # as_fn_append 343 344 # as_fn_arith ARG... 345 # ------------------ 346 # Perform arithmetic evaluation on the ARGs, and store the result in the 347 # global $as_val. Take advantage of shells that can avoid forks. The arguments 348 # must be portable across $(()) and expr. 349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354 else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359 fi # as_fn_arith 360 361 362 # as_fn_error ERROR [LINENO LOG_FD] 363 # --------------------------------- 364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366 # script with status $?, using 1 if that was 0. 367 as_fn_error () 368 { 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376 } # as_fn_error 377 378 if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381 else 382 as_expr=false 383 fi 384 385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387 else 388 as_basename=false 389 fi 390 391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393 else 394 as_dirname=false 395 fi 396 397 as_me=`$as_basename -- "$0" || 398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401 $as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416 # Avoid depending upon Character Ranges. 417 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420 as_cr_digits='0123456789' 421 as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453 } 454 455 ECHO_C= ECHO_N= ECHO_T= 456 case `echo -n x` in #((((( 457 -n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464 *) 465 ECHO_N='-n';; 466 esac 467 468 rm -f conf$$ conf$$.exe conf$$.file 469 if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471 else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474 fi 475 if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489 else 490 as_ln_s='cp -p' 491 fi 492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493 rmdir conf$$.dir 2>/dev/null 494 495 if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497 else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500 fi 501 502 if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504 else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522 fi 523 as_executable_p=$as_test_x 524 525 # Sed expression to map a string onto a valid CPP name. 526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528 # Sed expression to map a string onto a valid variable name. 529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533 # Check that we are running under the correct shell. 534 SHELL=${CONFIG_SHELL-/bin/sh} 535 536 case X$lt_ECHO in 537 X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541 esac 542 543 ECHO=${lt_ECHO-echo} 544 if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547 elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553 else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556 fi 557 558 if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562 $* 563 _LT_EOF 564 exit 0 565 fi 566 567 # The HP-UX ksh and POSIX shell print the target directory to stdout 568 # if CDPATH is set. 569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571 if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669 fi 670 671 # Copy echo and quote the copy suitably for passing to libtool from 672 # the Makefile, instead of quoting the original, which is used later. 673 lt_ECHO=$ECHO 674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676 fi 677 678 679 680 681 test -n "$DJDIR" || exec 7<&0 </dev/null 682 exec 6>&1 683 684 # Name of the host. 685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 686 # so uname gets run too. 687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689 # 690 # Initializations. 691 # 692 ac_default_prefix=/usr/local 693 ac_clean_files= 694 ac_config_libobj_dir=. 695 LIBOBJS= 696 cross_compiling=no 697 subdirs= 698 MFLAGS= 699 MAKEFLAGS= 700 701 # Identity of this package. 702 PACKAGE_NAME='open-vcdiff' 703 PACKAGE_TARNAME='open-vcdiff' 704 PACKAGE_VERSION='0.8.3' 705 PACKAGE_STRING='open-vcdiff 0.8.3' 706 PACKAGE_BUGREPORT='opensource (at] google.com' 707 PACKAGE_URL='' 708 709 ac_unique_file="README" 710 # Factoring default headers for most tests. 711 ac_includes_default="\ 712 #include <stdio.h> 713 #ifdef HAVE_SYS_TYPES_H 714 # include <sys/types.h> 715 #endif 716 #ifdef HAVE_SYS_STAT_H 717 # include <sys/stat.h> 718 #endif 719 #ifdef STDC_HEADERS 720 # include <stdlib.h> 721 # include <stddef.h> 722 #else 723 # ifdef HAVE_STDLIB_H 724 # include <stdlib.h> 725 # endif 726 #endif 727 #ifdef HAVE_STRING_H 728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729 # include <memory.h> 730 # endif 731 # include <string.h> 732 #endif 733 #ifdef HAVE_STRINGS_H 734 # include <strings.h> 735 #endif 736 #ifdef HAVE_INTTYPES_H 737 # include <inttypes.h> 738 #endif 739 #ifdef HAVE_STDINT_H 740 # include <stdint.h> 741 #endif 742 #ifdef HAVE_UNISTD_H 743 # include <unistd.h> 744 #endif" 745 746 ac_subst_vars='am__EXEEXT_FALSE 747 am__EXEEXT_TRUE 748 LTLIBOBJS 749 LIBOBJS 750 LIBSTDCXX_LA_LINKER_FLAG 751 ac_cv_have___int16 752 ac_cv_have_u_int16_t 753 ac_cv_have_uint16_t 754 ac_cv_have_inttypes_h 755 ac_cv_have_systypes_h 756 ac_cv_have_stdint_h 757 ac_cv___attribute__unused 758 ac_google_namespace 759 ac_google_end_namespace 760 ac_google_start_namespace 761 PTHREAD_CFLAGS 762 PTHREAD_LIBS 763 PTHREAD_CC 764 acx_pthread_config 765 LIBTOOL_DEPS 766 CXXCPP 767 OTOOL64 768 OTOOL 769 LIPO 770 NMEDIT 771 DSYMUTIL 772 lt_ECHO 773 RANLIB 774 AR 775 OBJDUMP 776 LN_S 777 NM 778 ac_ct_DUMPBIN 779 DUMPBIN 780 LD 781 FGREP 782 EGREP 783 GREP 784 SED 785 LIBTOOL 786 host_os 787 host_vendor 788 host_cpu 789 host 790 build_os 791 build_vendor 792 build_cpu 793 build 794 GCC_FALSE 795 GCC_TRUE 796 am__fastdepCXX_FALSE 797 am__fastdepCXX_TRUE 798 CXXDEPMODE 799 ac_ct_CXX 800 CXXFLAGS 801 CXX 802 CPP 803 am__fastdepCC_FALSE 804 am__fastdepCC_TRUE 805 CCDEPMODE 806 AMDEPBACKSLASH 807 AMDEP_FALSE 808 AMDEP_TRUE 809 am__quote 810 am__include 811 DEPDIR 812 OBJEXT 813 EXEEXT 814 ac_ct_CC 815 CPPFLAGS 816 LDFLAGS 817 CFLAGS 818 CC 819 am__untar 820 am__tar 821 AMTAR 822 am__leading_dot 823 SET_MAKE 824 AWK 825 mkdir_p 826 MKDIR_P 827 INSTALL_STRIP_PROGRAM 828 STRIP 829 install_sh 830 MAKEINFO 831 AUTOHEADER 832 AUTOMAKE 833 AUTOCONF 834 ACLOCAL 835 VERSION 836 PACKAGE 837 CYGPATH_W 838 am__isrc 839 INSTALL_DATA 840 INSTALL_SCRIPT 841 INSTALL_PROGRAM 842 target_alias 843 host_alias 844 build_alias 845 LIBS 846 ECHO_T 847 ECHO_N 848 ECHO_C 849 DEFS 850 mandir 851 localedir 852 libdir 853 psdir 854 pdfdir 855 dvidir 856 htmldir 857 infodir 858 docdir 859 oldincludedir 860 includedir 861 localstatedir 862 sharedstatedir 863 sysconfdir 864 datadir 865 datarootdir 866 libexecdir 867 sbindir 868 bindir 869 program_transform_name 870 prefix 871 exec_prefix 872 PACKAGE_URL 873 PACKAGE_BUGREPORT 874 PACKAGE_STRING 875 PACKAGE_VERSION 876 PACKAGE_TARNAME 877 PACKAGE_NAME 878 PATH_SEPARATOR 879 SHELL' 880 ac_subst_files='' 881 ac_user_opts=' 882 enable_option_checking 883 enable_dependency_tracking 884 enable_shared 885 enable_static 886 with_pic 887 enable_fast_install 888 with_gnu_ld 889 enable_libtool_lock 890 enable_namespace 891 ' 892 ac_precious_vars='build_alias 893 host_alias 894 target_alias 895 CC 896 CFLAGS 897 LDFLAGS 898 LIBS 899 CPPFLAGS 900 CPP 901 CXX 902 CXXFLAGS 903 CCC 904 CXXCPP' 905 906 907 # Initialize some variables set by options. 908 ac_init_help= 909 ac_init_version=false 910 ac_unrecognized_opts= 911 ac_unrecognized_sep= 912 # The variables have the same names as the options, with 913 # dashes changed to underlines. 914 cache_file=/dev/null 915 exec_prefix=NONE 916 no_create= 917 no_recursion= 918 prefix=NONE 919 program_prefix=NONE 920 program_suffix=NONE 921 program_transform_name=s,x,x, 922 silent= 923 site= 924 srcdir= 925 verbose= 926 x_includes=NONE 927 x_libraries=NONE 928 929 # Installation directory options. 930 # These are left unexpanded so users can "make install exec_prefix=/foo" 931 # and all the variables that are supposed to be based on exec_prefix 932 # by default will actually change. 933 # Use braces instead of parens because sh, perl, etc. also accept them. 934 # (The list follows the same order as the GNU Coding Standards.) 935 bindir='${exec_prefix}/bin' 936 sbindir='${exec_prefix}/sbin' 937 libexecdir='${exec_prefix}/libexec' 938 datarootdir='${prefix}/share' 939 datadir='${datarootdir}' 940 sysconfdir='${prefix}/etc' 941 sharedstatedir='${prefix}/com' 942 localstatedir='${prefix}/var' 943 includedir='${prefix}/include' 944 oldincludedir='/usr/include' 945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 946 infodir='${datarootdir}/info' 947 htmldir='${docdir}' 948 dvidir='${docdir}' 949 pdfdir='${docdir}' 950 psdir='${docdir}' 951 libdir='${exec_prefix}/lib' 952 localedir='${datarootdir}/locale' 953 mandir='${datarootdir}/man' 954 955 ac_prev= 956 ac_dashdash= 957 for ac_option 958 do 959 # If the previous option needs an argument, assign it. 960 if test -n "$ac_prev"; then 961 eval $ac_prev=\$ac_option 962 ac_prev= 963 continue 964 fi 965 966 case $ac_option in 967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 968 *) ac_optarg=yes ;; 969 esac 970 971 # Accept the important Cygnus configure options, so we can diagnose typos. 972 973 case $ac_dashdash$ac_option in 974 --) 975 ac_dashdash=yes ;; 976 977 -bindir | --bindir | --bindi | --bind | --bin | --bi) 978 ac_prev=bindir ;; 979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 980 bindir=$ac_optarg ;; 981 982 -build | --build | --buil | --bui | --bu) 983 ac_prev=build_alias ;; 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 985 build_alias=$ac_optarg ;; 986 987 -cache-file | --cache-file | --cache-fil | --cache-fi \ 988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 989 ac_prev=cache_file ;; 990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 992 cache_file=$ac_optarg ;; 993 994 --config-cache | -C) 995 cache_file=config.cache ;; 996 997 -datadir | --datadir | --datadi | --datad) 998 ac_prev=datadir ;; 999 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1000 datadir=$ac_optarg ;; 1001 1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1003 | --dataroo | --dataro | --datar) 1004 ac_prev=datarootdir ;; 1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1007 datarootdir=$ac_optarg ;; 1008 1009 -disable-* | --disable-*) 1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1013 as_fn_error "invalid feature name: $ac_useropt" 1014 ac_useropt_orig=$ac_useropt 1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 case $ac_user_opts in 1017 *" 1018 "enable_$ac_useropt" 1019 "*) ;; 1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1021 ac_unrecognized_sep=', ';; 1022 esac 1023 eval enable_$ac_useropt=no ;; 1024 1025 -docdir | --docdir | --docdi | --doc | --do) 1026 ac_prev=docdir ;; 1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1028 docdir=$ac_optarg ;; 1029 1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1031 ac_prev=dvidir ;; 1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1033 dvidir=$ac_optarg ;; 1034 1035 -enable-* | --enable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error "invalid feature name: $ac_useropt" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044 "enable_$ac_useropt" 1045 "*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=\$ac_optarg ;; 1050 1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1053 | --exec | --exe | --ex) 1054 ac_prev=exec_prefix ;; 1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1057 | --exec=* | --exe=* | --ex=*) 1058 exec_prefix=$ac_optarg ;; 1059 1060 -gas | --gas | --ga | --g) 1061 # Obsolete; use --with-gas. 1062 with_gas=yes ;; 1063 1064 -help | --help | --hel | --he | -h) 1065 ac_init_help=long ;; 1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1067 ac_init_help=recursive ;; 1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1069 ac_init_help=short ;; 1070 1071 -host | --host | --hos | --ho) 1072 ac_prev=host_alias ;; 1073 -host=* | --host=* | --hos=* | --ho=*) 1074 host_alias=$ac_optarg ;; 1075 1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1077 ac_prev=htmldir ;; 1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1079 | --ht=*) 1080 htmldir=$ac_optarg ;; 1081 1082 -includedir | --includedir | --includedi | --included | --include \ 1083 | --includ | --inclu | --incl | --inc) 1084 ac_prev=includedir ;; 1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1086 | --includ=* | --inclu=* | --incl=* | --inc=*) 1087 includedir=$ac_optarg ;; 1088 1089 -infodir | --infodir | --infodi | --infod | --info | --inf) 1090 ac_prev=infodir ;; 1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1092 infodir=$ac_optarg ;; 1093 1094 -libdir | --libdir | --libdi | --libd) 1095 ac_prev=libdir ;; 1096 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1097 libdir=$ac_optarg ;; 1098 1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1100 | --libexe | --libex | --libe) 1101 ac_prev=libexecdir ;; 1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1103 | --libexe=* | --libex=* | --libe=*) 1104 libexecdir=$ac_optarg ;; 1105 1106 -localedir | --localedir | --localedi | --localed | --locale) 1107 ac_prev=localedir ;; 1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1109 localedir=$ac_optarg ;; 1110 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1112 | --localstate | --localstat | --localsta | --localst | --locals) 1113 ac_prev=localstatedir ;; 1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1116 localstatedir=$ac_optarg ;; 1117 1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1119 ac_prev=mandir ;; 1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1121 mandir=$ac_optarg ;; 1122 1123 -nfp | --nfp | --nf) 1124 # Obsolete; use --without-fp. 1125 with_fp=no ;; 1126 1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1128 | --no-cr | --no-c | -n) 1129 no_create=yes ;; 1130 1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1133 no_recursion=yes ;; 1134 1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1137 | --oldin | --oldi | --old | --ol | --o) 1138 ac_prev=oldincludedir ;; 1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1142 oldincludedir=$ac_optarg ;; 1143 1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1145 ac_prev=prefix ;; 1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1147 prefix=$ac_optarg ;; 1148 1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1150 | --program-pre | --program-pr | --program-p) 1151 ac_prev=program_prefix ;; 1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1154 program_prefix=$ac_optarg ;; 1155 1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1157 | --program-suf | --program-su | --program-s) 1158 ac_prev=program_suffix ;; 1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1161 program_suffix=$ac_optarg ;; 1162 1163 -program-transform-name | --program-transform-name \ 1164 | --program-transform-nam | --program-transform-na \ 1165 | --program-transform-n | --program-transform- \ 1166 | --program-transform | --program-transfor \ 1167 | --program-transfo | --program-transf \ 1168 | --program-trans | --program-tran \ 1169 | --progr-tra | --program-tr | --program-t) 1170 ac_prev=program_transform_name ;; 1171 -program-transform-name=* | --program-transform-name=* \ 1172 | --program-transform-nam=* | --program-transform-na=* \ 1173 | --program-transform-n=* | --program-transform-=* \ 1174 | --program-transform=* | --program-transfor=* \ 1175 | --program-transfo=* | --program-transf=* \ 1176 | --program-trans=* | --program-tran=* \ 1177 | --progr-tra=* | --program-tr=* | --program-t=*) 1178 program_transform_name=$ac_optarg ;; 1179 1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1181 ac_prev=pdfdir ;; 1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1183 pdfdir=$ac_optarg ;; 1184 1185 -psdir | --psdir | --psdi | --psd | --ps) 1186 ac_prev=psdir ;; 1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1188 psdir=$ac_optarg ;; 1189 1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1191 | -silent | --silent | --silen | --sile | --sil) 1192 silent=yes ;; 1193 1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1195 ac_prev=sbindir ;; 1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1197 | --sbi=* | --sb=*) 1198 sbindir=$ac_optarg ;; 1199 1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1202 | --sharedst | --shareds | --shared | --share | --shar \ 1203 | --sha | --sh) 1204 ac_prev=sharedstatedir ;; 1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1208 | --sha=* | --sh=*) 1209 sharedstatedir=$ac_optarg ;; 1210 1211 -site | --site | --sit) 1212 ac_prev=site ;; 1213 -site=* | --site=* | --sit=*) 1214 site=$ac_optarg ;; 1215 1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1217 ac_prev=srcdir ;; 1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1219 srcdir=$ac_optarg ;; 1220 1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1222 | --syscon | --sysco | --sysc | --sys | --sy) 1223 ac_prev=sysconfdir ;; 1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1226 sysconfdir=$ac_optarg ;; 1227 1228 -target | --target | --targe | --targ | --tar | --ta | --t) 1229 ac_prev=target_alias ;; 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1231 target_alias=$ac_optarg ;; 1232 1233 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1234 verbose=yes ;; 1235 1236 -version | --version | --versio | --versi | --vers | -V) 1237 ac_init_version=: ;; 1238 1239 -with-* | --with-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error "invalid package name: $ac_useropt" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248 "with_$ac_useropt" 1249 "*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=\$ac_optarg ;; 1254 1255 -without-* | --without-*) 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1257 # Reject names that are not valid shell variable names. 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259 as_fn_error "invalid package name: $ac_useropt" 1260 ac_useropt_orig=$ac_useropt 1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1262 case $ac_user_opts in 1263 *" 1264 "with_$ac_useropt" 1265 "*) ;; 1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1267 ac_unrecognized_sep=', ';; 1268 esac 1269 eval with_$ac_useropt=no ;; 1270 1271 --x) 1272 # Obsolete; use --with-x. 1273 with_x=yes ;; 1274 1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1276 | --x-incl | --x-inc | --x-in | --x-i) 1277 ac_prev=x_includes ;; 1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1280 x_includes=$ac_optarg ;; 1281 1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1284 ac_prev=x_libraries ;; 1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1287 x_libraries=$ac_optarg ;; 1288 1289 -*) as_fn_error "unrecognized option: \`$ac_option' 1290 Try \`$0 --help' for more information." 1291 ;; 1292 1293 *=*) 1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1295 # Reject names that are not valid shell variable names. 1296 case $ac_envvar in #( 1297 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1298 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1299 esac 1300 eval $ac_envvar=\$ac_optarg 1301 export $ac_envvar ;; 1302 1303 *) 1304 # FIXME: should be removed in autoconf 3.0. 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1308 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1309 ;; 1310 1311 esac 1312 done 1313 1314 if test -n "$ac_prev"; then 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1316 as_fn_error "missing argument to $ac_option" 1317 fi 1318 1319 if test -n "$ac_unrecognized_opts"; then 1320 case $enable_option_checking in 1321 no) ;; 1322 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1324 esac 1325 fi 1326 1327 # Check all directory arguments for consistency. 1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1329 datadir sysconfdir sharedstatedir localstatedir includedir \ 1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1331 libdir localedir mandir 1332 do 1333 eval ac_val=\$$ac_var 1334 # Remove trailing slashes. 1335 case $ac_val in 1336 */ ) 1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1338 eval $ac_var=\$ac_val;; 1339 esac 1340 # Be sure to have absolute directory names. 1341 case $ac_val in 1342 [\\/$]* | ?:[\\/]* ) continue;; 1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1344 esac 1345 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1346 done 1347 1348 # There might be people who depend on the old broken behavior: `$host' 1349 # used to hold the argument of --host etc. 1350 # FIXME: To remove some day. 1351 build=$build_alias 1352 host=$host_alias 1353 target=$target_alias 1354 1355 # FIXME: To remove some day. 1356 if test "x$host_alias" != x; then 1357 if test "x$build_alias" = x; then 1358 cross_compiling=maybe 1359 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1360 If a cross compiler is detected then cross compile mode will be used." >&2 1361 elif test "x$build_alias" != "x$host_alias"; then 1362 cross_compiling=yes 1363 fi 1364 fi 1365 1366 ac_tool_prefix= 1367 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1368 1369 test "$silent" = yes && exec 6>/dev/null 1370 1371 1372 ac_pwd=`pwd` && test -n "$ac_pwd" && 1373 ac_ls_di=`ls -di .` && 1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1375 as_fn_error "working directory cannot be determined" 1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1377 as_fn_error "pwd does not report name of working directory" 1378 1379 1380 # Find the source files, if location was not specified. 1381 if test -z "$srcdir"; then 1382 ac_srcdir_defaulted=yes 1383 # Try the directory containing this script, then the parent directory. 1384 ac_confdir=`$as_dirname -- "$as_myself" || 1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1386 X"$as_myself" : 'X\(//\)[^/]' \| \ 1387 X"$as_myself" : 'X\(//\)$' \| \ 1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1389 $as_echo X"$as_myself" | 1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)[^/].*/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)$/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\).*/{ 1403 s//\1/ 1404 q 1405 } 1406 s/.*/./; q'` 1407 srcdir=$ac_confdir 1408 if test ! -r "$srcdir/$ac_unique_file"; then 1409 srcdir=.. 1410 fi 1411 else 1412 ac_srcdir_defaulted=no 1413 fi 1414 if test ! -r "$srcdir/$ac_unique_file"; then 1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1416 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1417 fi 1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1419 ac_abs_confdir=`( 1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1421 pwd)` 1422 # When building in place, set srcdir=. 1423 if test "$ac_abs_confdir" = "$ac_pwd"; then 1424 srcdir=. 1425 fi 1426 # Remove unnecessary trailing slashes from srcdir. 1427 # Double slashes in file names in object file debugging info 1428 # mess up M-x gdb in Emacs. 1429 case $srcdir in 1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1431 esac 1432 for ac_var in $ac_precious_vars; do 1433 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1434 eval ac_env_${ac_var}_value=\$${ac_var} 1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1436 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1437 done 1438 1439 # 1440 # Report the --help message. 1441 # 1442 if test "$ac_init_help" = "long"; then 1443 # Omit some internal or obsolete options to make the list less imposing. 1444 # This message is too long to be a string in the A/UX 3.1 sh. 1445 cat <<_ACEOF 1446 \`configure' configures open-vcdiff 0.8.3 to adapt to many kinds of systems. 1447 1448 Usage: $0 [OPTION]... [VAR=VALUE]... 1449 1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1451 VAR=VALUE. See below for descriptions of some of the useful variables. 1452 1453 Defaults for the options are specified in brackets. 1454 1455 Configuration: 1456 -h, --help display this help and exit 1457 --help=short display options specific to this package 1458 --help=recursive display the short help of all the included packages 1459 -V, --version display version information and exit 1460 -q, --quiet, --silent do not print \`checking...' messages 1461 --cache-file=FILE cache test results in FILE [disabled] 1462 -C, --config-cache alias for \`--cache-file=config.cache' 1463 -n, --no-create do not create output files 1464 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1465 1466 Installation directories: 1467 --prefix=PREFIX install architecture-independent files in PREFIX 1468 [$ac_default_prefix] 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1470 [PREFIX] 1471 1472 By default, \`make install' will install all the files in 1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1475 for instance \`--prefix=\$HOME'. 1476 1477 For better control, use the options below. 1478 1479 Fine tuning of the installation directories: 1480 --bindir=DIR user executables [EPREFIX/bin] 1481 --sbindir=DIR system admin executables [EPREFIX/sbin] 1482 --libexecdir=DIR program executables [EPREFIX/libexec] 1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1486 --libdir=DIR object code libraries [EPREFIX/lib] 1487 --includedir=DIR C header files [PREFIX/include] 1488 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1491 --infodir=DIR info documentation [DATAROOTDIR/info] 1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1493 --mandir=DIR man documentation [DATAROOTDIR/man] 1494 --docdir=DIR documentation root [DATAROOTDIR/doc/open-vcdiff] 1495 --htmldir=DIR html documentation [DOCDIR] 1496 --dvidir=DIR dvi documentation [DOCDIR] 1497 --pdfdir=DIR pdf documentation [DOCDIR] 1498 --psdir=DIR ps documentation [DOCDIR] 1499 _ACEOF 1500 1501 cat <<\_ACEOF 1502 1503 Program names: 1504 --program-prefix=PREFIX prepend PREFIX to installed program names 1505 --program-suffix=SUFFIX append SUFFIX to installed program names 1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1507 1508 System types: 1509 --build=BUILD configure for building on BUILD [guessed] 1510 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1511 _ACEOF 1512 fi 1513 1514 if test -n "$ac_init_help"; then 1515 case $ac_init_help in 1516 short | recursive ) echo "Configuration of open-vcdiff 0.8.3:";; 1517 esac 1518 cat <<\_ACEOF 1519 1520 Optional Features: 1521 --disable-option-checking ignore unrecognized --enable/--with options 1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1524 --disable-dependency-tracking speeds up one-time build 1525 --enable-dependency-tracking do not reject slow dependency extractors 1526 --enable-shared[=PKGS] build shared libraries [default=yes] 1527 --enable-static[=PKGS] build static libraries [default=yes] 1528 --enable-fast-install[=PKGS] 1529 optimize for fast installation [default=yes] 1530 --disable-libtool-lock avoid locking (might break parallel builds) 1531 --enable-namespace=FOO to define these Google 1532 classes in the FOO namespace. --disable-namespace 1533 to define them in the global namespace. Default 1534 is to define them in namespace google. 1535 1536 Optional Packages: 1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1539 --with-pic try to use only PIC/non-PIC objects [default=use 1540 both] 1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1542 1543 Some influential environment variables: 1544 CC C compiler command 1545 CFLAGS C compiler flags 1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1547 nonstandard directory <lib dir> 1548 LIBS libraries to pass to the linker, e.g. -l<library> 1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1550 you have headers in a nonstandard directory <include dir> 1551 CPP C preprocessor 1552 CXX C++ compiler command 1553 CXXFLAGS C++ compiler flags 1554 CXXCPP C++ preprocessor 1555 1556 Use these variables to override the choices made by `configure' or to help 1557 it to find libraries and programs with nonstandard names/locations. 1558 1559 Report bugs to <opensource@google.com>. 1560 _ACEOF 1561 ac_status=$? 1562 fi 1563 1564 if test "$ac_init_help" = "recursive"; then 1565 # If there are subdirs, report their specific --help. 1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1567 test -d "$ac_dir" || 1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1569 continue 1570 ac_builddir=. 1571 1572 case "$ac_dir" in 1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1574 *) 1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1576 # A ".." for each directory in $ac_dir_suffix. 1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1578 case $ac_top_builddir_sub in 1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1581 esac ;; 1582 esac 1583 ac_abs_top_builddir=$ac_pwd 1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1585 # for backward compatibility: 1586 ac_top_builddir=$ac_top_build_prefix 1587 1588 case $srcdir in 1589 .) # We are building in place. 1590 ac_srcdir=. 1591 ac_top_srcdir=$ac_top_builddir_sub 1592 ac_abs_top_srcdir=$ac_pwd ;; 1593 [\\/]* | ?:[\\/]* ) # Absolute name. 1594 ac_srcdir=$srcdir$ac_dir_suffix; 1595 ac_top_srcdir=$srcdir 1596 ac_abs_top_srcdir=$srcdir ;; 1597 *) # Relative name. 1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1599 ac_top_srcdir=$ac_top_build_prefix$srcdir 1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1601 esac 1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1603 1604 cd "$ac_dir" || { ac_status=$?; continue; } 1605 # Check for guested configure. 1606 if test -f "$ac_srcdir/configure.gnu"; then 1607 echo && 1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1609 elif test -f "$ac_srcdir/configure"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure" --help=recursive 1612 else 1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1614 fi || ac_status=$? 1615 cd "$ac_pwd" || { ac_status=$?; break; } 1616 done 1617 fi 1618 1619 test -n "$ac_init_help" && exit $ac_status 1620 if $ac_init_version; then 1621 cat <<\_ACEOF 1622 open-vcdiff configure 0.8.3 1623 generated by GNU Autoconf 2.65 1624 1625 Copyright (C) 2009 Free Software Foundation, Inc. 1626 This configure script is free software; the Free Software Foundation 1627 gives unlimited permission to copy, distribute and modify it. 1628 _ACEOF 1629 exit 1630 fi 1631 1632 ## ------------------------ ## 1633 ## Autoconf initialization. ## 1634 ## ------------------------ ## 1635 1636 # ac_fn_c_try_compile LINENO 1637 # -------------------------- 1638 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1639 ac_fn_c_try_compile () 1640 { 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext 1643 if { { ac_try="$ac_compile" 1644 case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647 esac 1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649 $as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_compile") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest.$ac_objext; then : 1662 ac_retval=0 1663 else 1664 $as_echo "$as_me: failed program was:" >&5 1665 sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668 fi 1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1670 as_fn_set_status $ac_retval 1671 1672 } # ac_fn_c_try_compile 1673 1674 # ac_fn_c_try_cpp LINENO 1675 # ---------------------- 1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1677 ac_fn_c_try_cpp () 1678 { 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 if { { ac_try="$ac_cpp conftest.$ac_ext" 1681 case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684 esac 1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686 $as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } >/dev/null && { 1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 }; then : 1699 ac_retval=0 1700 else 1701 $as_echo "$as_me: failed program was:" >&5 1702 sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705 fi 1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707 as_fn_set_status $ac_retval 1708 1709 } # ac_fn_c_try_cpp 1710 1711 # ac_fn_cxx_try_compile LINENO 1712 # ---------------------------- 1713 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1714 ac_fn_cxx_try_compile () 1715 { 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext 1718 if { { ac_try="$ac_compile" 1719 case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722 esac 1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724 $as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_compile") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_cxx_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest.$ac_objext; then : 1737 ac_retval=0 1738 else 1739 $as_echo "$as_me: failed program was:" >&5 1740 sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743 fi 1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1745 as_fn_set_status $ac_retval 1746 1747 } # ac_fn_cxx_try_compile 1748 1749 # ac_fn_c_try_link LINENO 1750 # ----------------------- 1751 # Try to link conftest.$ac_ext, and return whether this succeeded. 1752 ac_fn_c_try_link () 1753 { 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 rm -f conftest.$ac_objext conftest$ac_exeext 1756 if { { ac_try="$ac_link" 1757 case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760 esac 1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762 $as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_link") 2>conftest.err 1764 ac_status=$? 1765 if test -s conftest.err; then 1766 grep -v '^ *+' conftest.err >conftest.er1 1767 cat conftest.er1 >&5 1768 mv -f conftest.er1 conftest.err 1769 fi 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { 1772 test -z "$ac_c_werror_flag" || 1773 test ! -s conftest.err 1774 } && test -s conftest$ac_exeext && { 1775 test "$cross_compiling" = yes || 1776 $as_test_x conftest$ac_exeext 1777 }; then : 1778 ac_retval=0 1779 else 1780 $as_echo "$as_me: failed program was:" >&5 1781 sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784 fi 1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1787 # interfere with the next link command; also delete a directory that is 1788 # left behind by Apple's compiler. We do this before executing the actions. 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1791 as_fn_set_status $ac_retval 1792 1793 } # ac_fn_c_try_link 1794 1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1796 # ------------------------------------------------------- 1797 # Tests whether HEADER exists and can be compiled using the include files in 1798 # INCLUDES, setting the cache variable VAR accordingly. 1799 ac_fn_c_check_header_compile () 1800 { 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1803 $as_echo_n "checking for $2... " >&6; } 1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1805 $as_echo_n "(cached) " >&6 1806 else 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808 /* end confdefs.h. */ 1809 $4 1810 #include <$2> 1811 _ACEOF 1812 if ac_fn_c_try_compile "$LINENO"; then : 1813 eval "$3=yes" 1814 else 1815 eval "$3=no" 1816 fi 1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1818 fi 1819 eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821 $as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1823 1824 } # ac_fn_c_check_header_compile 1825 1826 # ac_fn_c_try_run LINENO 1827 # ---------------------- 1828 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1829 # that executables *can* be run. 1830 ac_fn_c_try_run () 1831 { 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if { { ac_try="$ac_link" 1834 case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837 esac 1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839 $as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_link") 2>&5 1841 ac_status=$? 1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1844 { { case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847 esac 1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849 $as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_try") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; }; }; then : 1854 ac_retval=0 1855 else 1856 $as_echo "$as_me: program exited with status $ac_status" >&5 1857 $as_echo "$as_me: failed program was:" >&5 1858 sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=$ac_status 1861 fi 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1864 as_fn_set_status $ac_retval 1865 1866 } # ac_fn_c_try_run 1867 1868 # ac_fn_c_check_func LINENO FUNC VAR 1869 # ---------------------------------- 1870 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1871 ac_fn_c_check_func () 1872 { 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875 $as_echo_n "checking for $2... " >&6; } 1876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1877 $as_echo_n "(cached) " >&6 1878 else 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880 /* end confdefs.h. */ 1881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1883 #define $2 innocuous_$2 1884 1885 /* System header to define __stub macros and hopefully few prototypes, 1886 which can conflict with char $2 (); below. 1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1888 <limits.h> exists even on freestanding compilers. */ 1889 1890 #ifdef __STDC__ 1891 # include <limits.h> 1892 #else 1893 # include <assert.h> 1894 #endif 1895 1896 #undef $2 1897 1898 /* Override any GCC internal prototype to avoid an error. 1899 Use char because int might match the return type of a GCC 1900 builtin and then its argument prototype would still apply. */ 1901 #ifdef __cplusplus 1902 extern "C" 1903 #endif 1904 char $2 (); 1905 /* The GNU C library defines this for functions which it implements 1906 to always fail with ENOSYS. Some functions are actually named 1907 something starting with __ and the normal name is an alias. */ 1908 #if defined __stub_$2 || defined __stub___$2 1909 choke me 1910 #endif 1911 1912 int 1913 main () 1914 { 1915 return $2 (); 1916 ; 1917 return 0; 1918 } 1919 _ACEOF 1920 if ac_fn_c_try_link "$LINENO"; then : 1921 eval "$3=yes" 1922 else 1923 eval "$3=no" 1924 fi 1925 rm -f core conftest.err conftest.$ac_objext \ 1926 conftest$ac_exeext conftest.$ac_ext 1927 fi 1928 eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930 $as_echo "$ac_res" >&6; } 1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1932 1933 } # ac_fn_c_check_func 1934 1935 # ac_fn_cxx_try_cpp LINENO 1936 # ------------------------ 1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1938 ac_fn_cxx_try_cpp () 1939 { 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 if { { ac_try="$ac_cpp conftest.$ac_ext" 1942 case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945 esac 1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947 $as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1949 ac_status=$? 1950 if test -s conftest.err; then 1951 grep -v '^ *+' conftest.err >conftest.er1 1952 cat conftest.er1 >&5 1953 mv -f conftest.er1 conftest.err 1954 fi 1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1956 test $ac_status = 0; } >/dev/null && { 1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1958 test ! -s conftest.err 1959 }; then : 1960 ac_retval=0 1961 else 1962 $as_echo "$as_me: failed program was:" >&5 1963 sed 's/^/| /' conftest.$ac_ext >&5 1964 1965 ac_retval=1 1966 fi 1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1968 as_fn_set_status $ac_retval 1969 1970 } # ac_fn_cxx_try_cpp 1971 1972 # ac_fn_cxx_try_link LINENO 1973 # ------------------------- 1974 # Try to link conftest.$ac_ext, and return whether this succeeded. 1975 ac_fn_cxx_try_link () 1976 { 1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1978 rm -f conftest.$ac_objext conftest$ac_exeext 1979 if { { ac_try="$ac_link" 1980 case "(($ac_try" in 1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1982 *) ac_try_echo=$ac_try;; 1983 esac 1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1985 $as_echo "$ac_try_echo"; } >&5 1986 (eval "$ac_link") 2>conftest.err 1987 ac_status=$? 1988 if test -s conftest.err; then 1989 grep -v '^ *+' conftest.err >conftest.er1 1990 cat conftest.er1 >&5 1991 mv -f conftest.er1 conftest.err 1992 fi 1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1994 test $ac_status = 0; } && { 1995 test -z "$ac_cxx_werror_flag" || 1996 test ! -s conftest.err 1997 } && test -s conftest$ac_exeext && { 1998 test "$cross_compiling" = yes || 1999 $as_test_x conftest$ac_exeext 2000 }; then : 2001 ac_retval=0 2002 else 2003 $as_echo "$as_me: failed program was:" >&5 2004 sed 's/^/| /' conftest.$ac_ext >&5 2005 2006 ac_retval=1 2007 fi 2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2010 # interfere with the next link command; also delete a directory that is 2011 # left behind by Apple's compiler. We do this before executing the actions. 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2014 as_fn_set_status $ac_retval 2015 2016 } # ac_fn_cxx_try_link 2017 2018 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2019 # ------------------------------------------------------- 2020 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2021 # the include files in INCLUDES and setting the cache variable VAR 2022 # accordingly. 2023 ac_fn_c_check_header_mongrel () 2024 { 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2028 $as_echo_n "checking for $2... " >&6; } 2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2030 $as_echo_n "(cached) " >&6 2031 fi 2032 eval ac_res=\$$3 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2034 $as_echo "$ac_res" >&6; } 2035 else 2036 # Is the header compilable? 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2038 $as_echo_n "checking $2 usability... " >&6; } 2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2040 /* end confdefs.h. */ 2041 $4 2042 #include <$2> 2043 _ACEOF 2044 if ac_fn_c_try_compile "$LINENO"; then : 2045 ac_header_compiler=yes 2046 else 2047 ac_header_compiler=no 2048 fi 2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2051 $as_echo "$ac_header_compiler" >&6; } 2052 2053 # Is the header present? 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2055 $as_echo_n "checking $2 presence... " >&6; } 2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2057 /* end confdefs.h. */ 2058 #include <$2> 2059 _ACEOF 2060 if ac_fn_c_try_cpp "$LINENO"; then : 2061 ac_header_preproc=yes 2062 else 2063 ac_header_preproc=no 2064 fi 2065 rm -f conftest.err conftest.$ac_ext 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2067 $as_echo "$ac_header_preproc" >&6; } 2068 2069 # So? What about this header? 2070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2071 yes:no: ) 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2073 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2076 ;; 2077 no:yes:* ) 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2079 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2081 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2083 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2085 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2087 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2088 ( cat <<\_ASBOX 2089 ## ------------------------------------ ## 2090 ## Report this to opensource (at] google.com ## 2091 ## ------------------------------------ ## 2092 _ASBOX 2093 ) | sed "s/^/$as_me: WARNING: /" >&2 2094 ;; 2095 esac 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097 $as_echo_n "checking for $2... " >&6; } 2098 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2099 $as_echo_n "(cached) " >&6 2100 else 2101 eval "$3=\$ac_header_compiler" 2102 fi 2103 eval ac_res=\$$3 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2105 $as_echo "$ac_res" >&6; } 2106 fi 2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2108 2109 } # ac_fn_c_check_header_mongrel 2110 2111 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2112 # ------------------------------------------- 2113 # Tests whether TYPE exists after having included INCLUDES, setting cache 2114 # variable VAR accordingly. 2115 ac_fn_c_check_type () 2116 { 2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2119 $as_echo_n "checking for $2... " >&6; } 2120 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2121 $as_echo_n "(cached) " >&6 2122 else 2123 eval "$3=no" 2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2125 /* end confdefs.h. */ 2126 $4 2127 int 2128 main () 2129 { 2130 if (sizeof ($2)) 2131 return 0; 2132 ; 2133 return 0; 2134 } 2135 _ACEOF 2136 if ac_fn_c_try_compile "$LINENO"; then : 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138 /* end confdefs.h. */ 2139 $4 2140 int 2141 main () 2142 { 2143 if (sizeof (($2))) 2144 return 0; 2145 ; 2146 return 0; 2147 } 2148 _ACEOF 2149 if ac_fn_c_try_compile "$LINENO"; then : 2150 2151 else 2152 eval "$3=yes" 2153 fi 2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155 fi 2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2157 fi 2158 eval ac_res=\$$3 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2160 $as_echo "$ac_res" >&6; } 2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2162 2163 } # ac_fn_c_check_type 2164 cat >config.log <<_ACEOF 2165 This file contains any messages produced by compilers while 2166 running configure, to aid debugging if configure makes a mistake. 2167 2168 It was created by open-vcdiff $as_me 0.8.3, which was 2169 generated by GNU Autoconf 2.65. Invocation command line was 2170 2171 $ $0 $@ 2172 2173 _ACEOF 2174 exec 5>>config.log 2175 { 2176 cat <<_ASUNAME 2177 ## --------- ## 2178 ## Platform. ## 2179 ## --------- ## 2180 2181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2182 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2183 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2184 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2185 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2186 2187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2189 2190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2193 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2197 2198 _ASUNAME 2199 2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2201 for as_dir in $PATH 2202 do 2203 IFS=$as_save_IFS 2204 test -z "$as_dir" && as_dir=. 2205 $as_echo "PATH: $as_dir" 2206 done 2207 IFS=$as_save_IFS 2208 2209 } >&5 2210 2211 cat >&5 <<_ACEOF 2212 2213 2214 ## ----------- ## 2215 ## Core tests. ## 2216 ## ----------- ## 2217 2218 _ACEOF 2219 2220 2221 # Keep a trace of the command line. 2222 # Strip out --no-create and --no-recursion so they do not pile up. 2223 # Strip out --silent because we don't want to record it for future runs. 2224 # Also quote any args containing shell meta-characters. 2225 # Make two passes to allow for proper duplicate-argument suppression. 2226 ac_configure_args= 2227 ac_configure_args0= 2228 ac_configure_args1= 2229 ac_must_keep_next=false 2230 for ac_pass in 1 2 2231 do 2232 for ac_arg 2233 do 2234 case $ac_arg in 2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2237 | -silent | --silent | --silen | --sile | --sil) 2238 continue ;; 2239 *\'*) 2240 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2241 esac 2242 case $ac_pass in 2243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2244 2) 2245 as_fn_append ac_configure_args1 " '$ac_arg'" 2246 if test $ac_must_keep_next = true; then 2247 ac_must_keep_next=false # Got value, back to normal. 2248 else 2249 case $ac_arg in 2250 *=* | --config-cache | -C | -disable-* | --disable-* \ 2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2253 | -with-* | --with-* | -without-* | --without-* | --x) 2254 case "$ac_configure_args0 " in 2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2256 esac 2257 ;; 2258 -* ) ac_must_keep_next=true ;; 2259 esac 2260 fi 2261 as_fn_append ac_configure_args " '$ac_arg'" 2262 ;; 2263 esac 2264 done 2265 done 2266 { ac_configure_args0=; unset ac_configure_args0;} 2267 { ac_configure_args1=; unset ac_configure_args1;} 2268 2269 # When interrupted or exit'd, cleanup temporary files, and complete 2270 # config.log. We remove comments because anyway the quotes in there 2271 # would cause problems or look ugly. 2272 # WARNING: Use '\'' to represent an apostrophe within the trap. 2273 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2274 trap 'exit_status=$? 2275 # Save into config.log some information that might help in debugging. 2276 { 2277 echo 2278 2279 cat <<\_ASBOX 2280 ## ---------------- ## 2281 ## Cache variables. ## 2282 ## ---------------- ## 2283 _ASBOX 2284 echo 2285 # The following way of writing the cache mishandles newlines in values, 2286 ( 2287 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2288 eval ac_val=\$$ac_var 2289 case $ac_val in #( 2290 *${as_nl}*) 2291 case $ac_var in #( 2292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2293 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2294 esac 2295 case $ac_var in #( 2296 _ | IFS | as_nl) ;; #( 2297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2298 *) { eval $ac_var=; unset $ac_var;} ;; 2299 esac ;; 2300 esac 2301 done 2302 (set) 2>&1 | 2303 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2304 *${as_nl}ac_space=\ *) 2305 sed -n \ 2306 "s/'\''/'\''\\\\'\'''\''/g; 2307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2308 ;; #( 2309 *) 2310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2311 ;; 2312 esac | 2313 sort 2314 ) 2315 echo 2316 2317 cat <<\_ASBOX 2318 ## ----------------- ## 2319 ## Output variables. ## 2320 ## ----------------- ## 2321 _ASBOX 2322 echo 2323 for ac_var in $ac_subst_vars 2324 do 2325 eval ac_val=\$$ac_var 2326 case $ac_val in 2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2328 esac 2329 $as_echo "$ac_var='\''$ac_val'\''" 2330 done | sort 2331 echo 2332 2333 if test -n "$ac_subst_files"; then 2334 cat <<\_ASBOX 2335 ## ------------------- ## 2336 ## File substitutions. ## 2337 ## ------------------- ## 2338 _ASBOX 2339 echo 2340 for ac_var in $ac_subst_files 2341 do 2342 eval ac_val=\$$ac_var 2343 case $ac_val in 2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2345 esac 2346 $as_echo "$ac_var='\''$ac_val'\''" 2347 done | sort 2348 echo 2349 fi 2350 2351 if test -s confdefs.h; then 2352 cat <<\_ASBOX 2353 ## ----------- ## 2354 ## confdefs.h. ## 2355 ## ----------- ## 2356 _ASBOX 2357 echo 2358 cat confdefs.h 2359 echo 2360 fi 2361 test "$ac_signal" != 0 && 2362 $as_echo "$as_me: caught signal $ac_signal" 2363 $as_echo "$as_me: exit $exit_status" 2364 } >&5 2365 rm -f core *.core core.conftest.* && 2366 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2367 exit $exit_status 2368 ' 0 2369 for ac_signal in 1 2 13 15; do 2370 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2371 done 2372 ac_signal=0 2373 2374 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2375 rm -f -r conftest* confdefs.h 2376 2377 $as_echo "/* confdefs.h */" > confdefs.h 2378 2379 # Predefined preprocessor variables. 2380 2381 cat >>confdefs.h <<_ACEOF 2382 #define PACKAGE_NAME "$PACKAGE_NAME" 2383 _ACEOF 2384 2385 cat >>confdefs.h <<_ACEOF 2386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2387 _ACEOF 2388 2389 cat >>confdefs.h <<_ACEOF 2390 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2391 _ACEOF 2392 2393 cat >>confdefs.h <<_ACEOF 2394 #define PACKAGE_STRING "$PACKAGE_STRING" 2395 _ACEOF 2396 2397 cat >>confdefs.h <<_ACEOF 2398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2399 _ACEOF 2400 2401 cat >>confdefs.h <<_ACEOF 2402 #define PACKAGE_URL "$PACKAGE_URL" 2403 _ACEOF 2404 2405 2406 # Let the site file select an alternate cache file if it wants to. 2407 # Prefer an explicitly selected file to automatically selected ones. 2408 ac_site_file1=NONE 2409 ac_site_file2=NONE 2410 if test -n "$CONFIG_SITE"; then 2411 ac_site_file1=$CONFIG_SITE 2412 elif test "x$prefix" != xNONE; then 2413 ac_site_file1=$prefix/share/config.site 2414 ac_site_file2=$prefix/etc/config.site 2415 else 2416 ac_site_file1=$ac_default_prefix/share/config.site 2417 ac_site_file2=$ac_default_prefix/etc/config.site 2418 fi 2419 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2420 do 2421 test "x$ac_site_file" = xNONE && continue 2422 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2424 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2425 sed 's/^/| /' "$ac_site_file" >&5 2426 . "$ac_site_file" 2427 fi 2428 done 2429 2430 if test -r "$cache_file"; then 2431 # Some versions of bash will fail to source /dev/null (special files 2432 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2433 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2435 $as_echo "$as_me: loading cache $cache_file" >&6;} 2436 case $cache_file in 2437 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2438 *) . "./$cache_file";; 2439 esac 2440 fi 2441 else 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2443 $as_echo "$as_me: creating cache $cache_file" >&6;} 2444 >$cache_file 2445 fi 2446 2447 # Check that the precious variables saved in the cache have kept the same 2448 # value. 2449 ac_cache_corrupted=false 2450 for ac_var in $ac_precious_vars; do 2451 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2452 eval ac_new_set=\$ac_env_${ac_var}_set 2453 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2454 eval ac_new_val=\$ac_env_${ac_var}_value 2455 case $ac_old_set,$ac_new_set in 2456 set,) 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2458 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2459 ac_cache_corrupted=: ;; 2460 ,set) 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2462 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2463 ac_cache_corrupted=: ;; 2464 ,);; 2465 *) 2466 if test "x$ac_old_val" != "x$ac_new_val"; then 2467 # differences in whitespace do not lead to failure. 2468 ac_old_val_w=`echo x $ac_old_val` 2469 ac_new_val_w=`echo x $ac_new_val` 2470 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2472 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2473 ac_cache_corrupted=: 2474 else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2476 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2477 eval $ac_var=\$ac_old_val 2478 fi 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2480 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2482 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2483 fi;; 2484 esac 2485 # Pass precious variables to config.status. 2486 if test "$ac_new_set" = set; then 2487 case $ac_new_val in 2488 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2489 *) ac_arg=$ac_var=$ac_new_val ;; 2490 esac 2491 case " $ac_configure_args " in 2492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2493 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2494 esac 2495 fi 2496 done 2497 if $ac_cache_corrupted; then 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2501 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2502 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2503 fi 2504 ## -------------------- ## 2505 ## Main body of script. ## 2506 ## -------------------- ## 2507 2508 ac_ext=c 2509 ac_cpp='$CPP $CPPFLAGS' 2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2513 2514 2515 2516 2517 am__api_version='1.11' 2518 2519 ac_aux_dir= 2520 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2521 for ac_t in install-sh install.sh shtool; do 2522 if test -f "$ac_dir/$ac_t"; then 2523 ac_aux_dir=$ac_dir 2524 ac_install_sh="$ac_aux_dir/$ac_t -c" 2525 break 2 2526 fi 2527 done 2528 done 2529 if test -z "$ac_aux_dir"; then 2530 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2531 fi 2532 2533 # These three variables are undocumented and unsupported, 2534 # and are intended to be withdrawn in a future Autoconf release. 2535 # They can cause serious problems if a builder's source tree is in a directory 2536 # whose full name contains unusual characters. 2537 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2538 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2539 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2540 2541 2542 # Find a good install program. We prefer a C program (faster), 2543 # so one script is as good as another. But avoid the broken or 2544 # incompatible versions: 2545 # SysV /etc/install, /usr/sbin/install 2546 # SunOS /usr/etc/install 2547 # IRIX /sbin/install 2548 # AIX /bin/install 2549 # AmigaOS /C/install, which installs bootblocks on floppy discs 2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2553 # OS/2's system install, which has a completely different semantic 2554 # ./install, which can be erroneously created by make from ./install.sh. 2555 # Reject install programs that cannot install multiple files. 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2557 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2558 if test -z "$INSTALL"; then 2559 if test "${ac_cv_path_install+set}" = set; then : 2560 $as_echo_n "(cached) " >&6 2561 else 2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2563 for as_dir in $PATH 2564 do 2565 IFS=$as_save_IFS 2566 test -z "$as_dir" && as_dir=. 2567 # Account for people who put trailing slashes in PATH elements. 2568 case $as_dir/ in #(( 2569 ./ | .// | /[cC]/* | \ 2570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2572 /usr/ucb/* ) ;; 2573 *) 2574 # OSF1 and SCO ODT 3.0 have their own names for install. 2575 # Don't use installbsd from OSF since it installs stuff as root 2576 # by default. 2577 for ac_prog in ginstall scoinst install; do 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2580 if test $ac_prog = install && 2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2582 # AIX install. It has an incompatible calling convention. 2583 : 2584 elif test $ac_prog = install && 2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2586 # program-specific install script used by HP pwplus--don't use. 2587 : 2588 else 2589 rm -rf conftest.one conftest.two conftest.dir 2590 echo one > conftest.one 2591 echo two > conftest.two 2592 mkdir conftest.dir 2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2594 test -s conftest.one && test -s conftest.two && 2595 test -s conftest.dir/conftest.one && 2596 test -s conftest.dir/conftest.two 2597 then 2598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2599 break 3 2600 fi 2601 fi 2602 fi 2603 done 2604 done 2605 ;; 2606 esac 2607 2608 done 2609 IFS=$as_save_IFS 2610 2611 rm -rf conftest.one conftest.two conftest.dir 2612 2613 fi 2614 if test "${ac_cv_path_install+set}" = set; then 2615 INSTALL=$ac_cv_path_install 2616 else 2617 # As a last resort, use the slow shell script. Don't cache a 2618 # value for INSTALL within a source directory, because that will 2619 # break other packages using the cache if that directory is 2620 # removed, or if the value is a relative name. 2621 INSTALL=$ac_install_sh 2622 fi 2623 fi 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2625 $as_echo "$INSTALL" >&6; } 2626 2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2628 # It thinks the first close brace ends the variable substitution. 2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2630 2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2632 2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2634 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2636 $as_echo_n "checking whether build environment is sane... " >&6; } 2637 # Just in case 2638 sleep 1 2639 echo timestamp > conftest.file 2640 # Reject unsafe characters in $srcdir or the absolute working directory 2641 # name. Accept space and tab only in the latter. 2642 am_lf=' 2643 ' 2644 case `pwd` in 2645 *[\\\"\#\$\&\'\`$am_lf]*) 2646 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2647 esac 2648 case $srcdir in 2649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2650 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2651 esac 2652 2653 # Do `set' in a subshell so we don't clobber the current shell's 2654 # arguments. Must try -L first in case configure is actually a 2655 # symlink; some systems play weird games with the mod time of symlinks 2656 # (eg FreeBSD returns the mod time of the symlink's containing 2657 # directory). 2658 if ( 2659 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2660 if test "$*" = "X"; then 2661 # -L didn't work. 2662 set X `ls -t "$srcdir/configure" conftest.file` 2663 fi 2664 rm -f conftest.file 2665 if test "$*" != "X $srcdir/configure conftest.file" \ 2666 && test "$*" != "X conftest.file $srcdir/configure"; then 2667 2668 # If neither matched, then we have a broken ls. This can happen 2669 # if, for instance, CONFIG_SHELL is bash and it inherits a 2670 # broken ls alias from the environment. This has actually 2671 # happened. Such a system could not be considered "sane". 2672 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2673 alias in your environment" "$LINENO" 5 2674 fi 2675 2676 test "$2" = conftest.file 2677 ) 2678 then 2679 # Ok. 2680 : 2681 else 2682 as_fn_error "newly created file is older than distributed files! 2683 Check your system clock" "$LINENO" 5 2684 fi 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2686 $as_echo "yes" >&6; } 2687 test "$program_prefix" != NONE && 2688 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2689 # Use a double $ so make ignores it. 2690 test "$program_suffix" != NONE && 2691 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2692 # Double any \ or $. 2693 # By default was `s,x,x', remove it if useless. 2694 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2695 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2696 2697 # expand $ac_aux_dir to an absolute path 2698 am_aux_dir=`cd $ac_aux_dir && pwd` 2699 2700 if test x"${MISSING+set}" != xset; then 2701 case $am_aux_dir in 2702 *\ * | *\ *) 2703 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2704 *) 2705 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2706 esac 2707 fi 2708 # Use eval to expand $SHELL 2709 if eval "$MISSING --run true"; then 2710 am_missing_run="$MISSING --run " 2711 else 2712 am_missing_run= 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2714 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2715 fi 2716 2717 if test x"${install_sh}" != xset; then 2718 case $am_aux_dir in 2719 *\ * | *\ *) 2720 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2721 *) 2722 install_sh="\${SHELL} $am_aux_dir/install-sh" 2723 esac 2724 fi 2725 2726 # Installed binaries are usually stripped using `strip' when the user 2727 # run `make install-strip'. However `strip' might not be the right 2728 # tool to use in cross-compilation environments, therefore Automake 2729 # will honor the `STRIP' environment variable to overrule this program. 2730 if test "$cross_compiling" != no; then 2731 if test -n "$ac_tool_prefix"; then 2732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2733 set dummy ${ac_tool_prefix}strip; ac_word=$2 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2735 $as_echo_n "checking for $ac_word... " >&6; } 2736 if test "${ac_cv_prog_STRIP+set}" = set; then : 2737 $as_echo_n "(cached) " >&6 2738 else 2739 if test -n "$STRIP"; then 2740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2741 else 2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743 for as_dir in $PATH 2744 do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2749 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753 done 2754 done 2755 IFS=$as_save_IFS 2756 2757 fi 2758 fi 2759 STRIP=$ac_cv_prog_STRIP 2760 if test -n "$STRIP"; then 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2762 $as_echo "$STRIP" >&6; } 2763 else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765 $as_echo "no" >&6; } 2766 fi 2767 2768 2769 fi 2770 if test -z "$ac_cv_prog_STRIP"; then 2771 ac_ct_STRIP=$STRIP 2772 # Extract the first word of "strip", so it can be a program name with args. 2773 set dummy strip; ac_word=$2 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2775 $as_echo_n "checking for $ac_word... " >&6; } 2776 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2777 $as_echo_n "(cached) " >&6 2778 else 2779 if test -n "$ac_ct_STRIP"; then 2780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2781 else 2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783 for as_dir in $PATH 2784 do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2789 ac_cv_prog_ac_ct_STRIP="strip" 2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2791 break 2 2792 fi 2793 done 2794 done 2795 IFS=$as_save_IFS 2796 2797 fi 2798 fi 2799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2800 if test -n "$ac_ct_STRIP"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2802 $as_echo "$ac_ct_STRIP" >&6; } 2803 else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805 $as_echo "no" >&6; } 2806 fi 2807 2808 if test "x$ac_ct_STRIP" = x; then 2809 STRIP=":" 2810 else 2811 case $cross_compiling:$ac_tool_warned in 2812 yes:) 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2815 ac_tool_warned=yes ;; 2816 esac 2817 STRIP=$ac_ct_STRIP 2818 fi 2819 else 2820 STRIP="$ac_cv_prog_STRIP" 2821 fi 2822 2823 fi 2824 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2825 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2827 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2828 if test -z "$MKDIR_P"; then 2829 if test "${ac_cv_path_mkdir+set}" = set; then : 2830 $as_echo_n "(cached) " >&6 2831 else 2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2834 do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_prog in mkdir gmkdir; do 2838 for ac_exec_ext in '' $ac_executable_extensions; do 2839 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2840 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2841 'mkdir (GNU coreutils) '* | \ 2842 'mkdir (coreutils) '* | \ 2843 'mkdir (fileutils) '4.1*) 2844 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2845 break 3;; 2846 esac 2847 done 2848 done 2849 done 2850 IFS=$as_save_IFS 2851 2852 fi 2853 2854 test -d ./--version && rmdir ./--version 2855 if test "${ac_cv_path_mkdir+set}" = set; then 2856 MKDIR_P="$ac_cv_path_mkdir -p" 2857 else 2858 # As a last resort, use the slow shell script. Don't cache a 2859 # value for MKDIR_P within a source directory, because that will 2860 # break other packages using the cache if that directory is 2861 # removed, or if the value is a relative name. 2862 MKDIR_P="$ac_install_sh -d" 2863 fi 2864 fi 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2866 $as_echo "$MKDIR_P" >&6; } 2867 2868 mkdir_p="$MKDIR_P" 2869 case $mkdir_p in 2870 [\\/$]* | ?:[\\/]*) ;; 2871 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2872 esac 2873 2874 for ac_prog in gawk mawk nawk awk 2875 do 2876 # Extract the first word of "$ac_prog", so it can be a program name with args. 2877 set dummy $ac_prog; ac_word=$2 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2879 $as_echo_n "checking for $ac_word... " >&6; } 2880 if test "${ac_cv_prog_AWK+set}" = set; then : 2881 $as_echo_n "(cached) " >&6 2882 else 2883 if test -n "$AWK"; then 2884 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2885 else 2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887 for as_dir in $PATH 2888 do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2893 ac_cv_prog_AWK="$ac_prog" 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897 done 2898 done 2899 IFS=$as_save_IFS 2900 2901 fi 2902 fi 2903 AWK=$ac_cv_prog_AWK 2904 if test -n "$AWK"; then 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2906 $as_echo "$AWK" >&6; } 2907 else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909 $as_echo "no" >&6; } 2910 fi 2911 2912 2913 test -n "$AWK" && break 2914 done 2915 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2917 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2918 set x ${MAKE-make} 2919 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2920 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2921 $as_echo_n "(cached) " >&6 2922 else 2923 cat >conftest.make <<\_ACEOF 2924 SHELL = /bin/sh 2925 all: 2926 @echo '@@@%%%=$(MAKE)=@@@%%%' 2927 _ACEOF 2928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2929 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2930 *@@@%%%=?*=@@@%%%*) 2931 eval ac_cv_prog_make_${ac_make}_set=yes;; 2932 *) 2933 eval ac_cv_prog_make_${ac_make}_set=no;; 2934 esac 2935 rm -f conftest.make 2936 fi 2937 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2939 $as_echo "yes" >&6; } 2940 SET_MAKE= 2941 else 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943 $as_echo "no" >&6; } 2944 SET_MAKE="MAKE=${MAKE-make}" 2945 fi 2946 2947 rm -rf .tst 2>/dev/null 2948 mkdir .tst 2>/dev/null 2949 if test -d .tst; then 2950 am__leading_dot=. 2951 else 2952 am__leading_dot=_ 2953 fi 2954 rmdir .tst 2>/dev/null 2955 2956 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2957 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2958 # is not polluted with repeated "-I." 2959 am__isrc=' -I$(srcdir)' 2960 # test to see if srcdir already configured 2961 if test -f $srcdir/config.status; then 2962 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2963 fi 2964 fi 2965 2966 # test whether we have cygpath 2967 if test -z "$CYGPATH_W"; then 2968 if (cygpath --version) >/dev/null 2>/dev/null; then 2969 CYGPATH_W='cygpath -w' 2970 else 2971 CYGPATH_W=echo 2972 fi 2973 fi 2974 2975 2976 # Define the identity of the package. 2977 PACKAGE='open-vcdiff' 2978 VERSION='0.8.3' 2979 2980 2981 cat >>confdefs.h <<_ACEOF 2982 #define PACKAGE "$PACKAGE" 2983 _ACEOF 2984 2985 2986 cat >>confdefs.h <<_ACEOF 2987 #define VERSION "$VERSION" 2988 _ACEOF 2989 2990 # Some tools Automake needs. 2991 2992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2993 2994 2995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2996 2997 2998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2999 3000 3001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3002 3003 3004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3005 3006 # We need awk for the "check" target. The system "awk" is bad on 3007 # some platforms. 3008 # Always define AMTAR for backward compatibility. 3009 3010 AMTAR=${AMTAR-"${am_missing_run}tar"} 3011 3012 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3013 3014 3015 3016 3017 3018 ac_config_headers="$ac_config_headers src/config.h" 3019 3020 3021 # Checks for programs. 3022 ac_ext=c 3023 ac_cpp='$CPP $CPPFLAGS' 3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3027 if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3029 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031 $as_echo_n "checking for $ac_word... " >&6; } 3032 if test "${ac_cv_prog_CC+set}" = set; then : 3033 $as_echo_n "(cached) " >&6 3034 else 3035 if test -n "$CC"; then 3036 ac_cv_prog_CC="$CC" # Let the user override the test. 3037 else 3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039 for as_dir in $PATH 3040 do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3045 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049 done 3050 done 3051 IFS=$as_save_IFS 3052 3053 fi 3054 fi 3055 CC=$ac_cv_prog_CC 3056 if test -n "$CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3058 $as_echo "$CC" >&6; } 3059 else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061 $as_echo "no" >&6; } 3062 fi 3063 3064 3065 fi 3066 if test -z "$ac_cv_prog_CC"; then 3067 ac_ct_CC=$CC 3068 # Extract the first word of "gcc", so it can be a program name with args. 3069 set dummy gcc; ac_word=$2 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071 $as_echo_n "checking for $ac_word... " >&6; } 3072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3073 $as_echo_n "(cached) " >&6 3074 else 3075 if test -n "$ac_ct_CC"; then 3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3077 else 3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079 for as_dir in $PATH 3080 do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3085 ac_cv_prog_ac_ct_CC="gcc" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089 done 3090 done 3091 IFS=$as_save_IFS 3092 3093 fi 3094 fi 3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3096 if test -n "$ac_ct_CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3098 $as_echo "$ac_ct_CC" >&6; } 3099 else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101 $as_echo "no" >&6; } 3102 fi 3103 3104 if test "x$ac_ct_CC" = x; then 3105 CC="" 3106 else 3107 case $cross_compiling:$ac_tool_warned in 3108 yes:) 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3111 ac_tool_warned=yes ;; 3112 esac 3113 CC=$ac_ct_CC 3114 fi 3115 else 3116 CC="$ac_cv_prog_CC" 3117 fi 3118 3119 if test -z "$CC"; then 3120 if test -n "$ac_tool_prefix"; then 3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3122 set dummy ${ac_tool_prefix}cc; ac_word=$2 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124 $as_echo_n "checking for $ac_word... " >&6; } 3125 if test "${ac_cv_prog_CC+set}" = set; then : 3126 $as_echo_n "(cached) " >&6 3127 else 3128 if test -n "$CC"; then 3129 ac_cv_prog_CC="$CC" # Let the user override the test. 3130 else 3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132 for as_dir in $PATH 3133 do 3134 IFS=$as_save_IFS 3135 test -z "$as_dir" && as_dir=. 3136 for ac_exec_ext in '' $ac_executable_extensions; do 3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3138 ac_cv_prog_CC="${ac_tool_prefix}cc" 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3140 break 2 3141 fi 3142 done 3143 done 3144 IFS=$as_save_IFS 3145 3146 fi 3147 fi 3148 CC=$ac_cv_prog_CC 3149 if test -n "$CC"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3151 $as_echo "$CC" >&6; } 3152 else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154 $as_echo "no" >&6; } 3155 fi 3156 3157 3158 fi 3159 fi 3160 if test -z "$CC"; then 3161 # Extract the first word of "cc", so it can be a program name with args. 3162 set dummy cc; ac_word=$2 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164 $as_echo_n "checking for $ac_word... " >&6; } 3165 if test "${ac_cv_prog_CC+set}" = set; then : 3166 $as_echo_n "(cached) " >&6 3167 else 3168 if test -n "$CC"; then 3169 ac_cv_prog_CC="$CC" # Let the user override the test. 3170 else 3171 ac_prog_rejected=no 3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173 for as_dir in $PATH 3174 do 3175 IFS=$as_save_IFS 3176 test -z "$as_dir" && as_dir=. 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3180 ac_prog_rejected=yes 3181 continue 3182 fi 3183 ac_cv_prog_CC="cc" 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187 done 3188 done 3189 IFS=$as_save_IFS 3190 3191 if test $ac_prog_rejected = yes; then 3192 # We found a bogon in the path, so make sure we never use it. 3193 set dummy $ac_cv_prog_CC 3194 shift 3195 if test $# != 0; then 3196 # We chose a different compiler from the bogus one. 3197 # However, it has the same basename, so the bogon will be chosen 3198 # first if we set CC to just the basename; use the full file name. 3199 shift 3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3201 fi 3202 fi 3203 fi 3204 fi 3205 CC=$ac_cv_prog_CC 3206 if test -n "$CC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3208 $as_echo "$CC" >&6; } 3209 else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211 $as_echo "no" >&6; } 3212 fi 3213 3214 3215 fi 3216 if test -z "$CC"; then 3217 if test -n "$ac_tool_prefix"; then 3218 for ac_prog in cl.exe 3219 do 3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223 $as_echo_n "checking for $ac_word... " >&6; } 3224 if test "${ac_cv_prog_CC+set}" = set; then : 3225 $as_echo_n "(cached) " >&6 3226 else 3227 if test -n "$CC"; then 3228 ac_cv_prog_CC="$CC" # Let the user override the test. 3229 else 3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231 for as_dir in $PATH 3232 do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239 break 2 3240 fi 3241 done 3242 done 3243 IFS=$as_save_IFS 3244 3245 fi 3246 fi 3247 CC=$ac_cv_prog_CC 3248 if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250 $as_echo "$CC" >&6; } 3251 else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253 $as_echo "no" >&6; } 3254 fi 3255 3256 3257 test -n "$CC" && break 3258 done 3259 fi 3260 if test -z "$CC"; then 3261 ac_ct_CC=$CC 3262 for ac_prog in cl.exe 3263 do 3264 # Extract the first word of "$ac_prog", so it can be a program name with args. 3265 set dummy $ac_prog; ac_word=$2 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267 $as_echo_n "checking for $ac_word... " >&6; } 3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3269 $as_echo_n "(cached) " >&6 3270 else 3271 if test -n "$ac_ct_CC"; then 3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3273 else 3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275 for as_dir in $PATH 3276 do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3281 ac_cv_prog_ac_ct_CC="$ac_prog" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285 done 3286 done 3287 IFS=$as_save_IFS 3288 3289 fi 3290 fi 3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3292 if test -n "$ac_ct_CC"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3294 $as_echo "$ac_ct_CC" >&6; } 3295 else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297 $as_echo "no" >&6; } 3298 fi 3299 3300 3301 test -n "$ac_ct_CC" && break 3302 done 3303 3304 if test "x$ac_ct_CC" = x; then 3305 CC="" 3306 else 3307 case $cross_compiling:$ac_tool_warned in 3308 yes:) 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3311 ac_tool_warned=yes ;; 3312 esac 3313 CC=$ac_ct_CC 3314 fi 3315 fi 3316 3317 fi 3318 3319 3320 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3322 as_fn_error "no acceptable C compiler found in \$PATH 3323 See \`config.log' for more details." "$LINENO" 5; } 3324 3325 # Provide some information about the compiler. 3326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3327 set X $ac_compile 3328 ac_compiler=$2 3329 for ac_option in --version -v -V -qversion; do 3330 { { ac_try="$ac_compiler $ac_option >&5" 3331 case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334 esac 3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336 $as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3338 ac_status=$? 3339 if test -s conftest.err; then 3340 sed '10a\ 3341 ... rest of stderr output deleted ... 3342 10q' conftest.err >conftest.er1 3343 cat conftest.er1 >&5 3344 fi 3345 rm -f conftest.er1 conftest.err 3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3347 test $ac_status = 0; } 3348 done 3349 3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351 /* end confdefs.h. */ 3352 3353 int 3354 main () 3355 { 3356 3357 ; 3358 return 0; 3359 } 3360 _ACEOF 3361 ac_clean_files_save=$ac_clean_files 3362 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3363 # Try to create an executable without -o first, disregard a.out. 3364 # It will help us diagnose broken compilers, and finding out an intuition 3365 # of exeext. 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3367 $as_echo_n "checking whether the C compiler works... " >&6; } 3368 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3369 3370 # The possible output files: 3371 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3372 3373 ac_rmfiles= 3374 for ac_file in $ac_files 3375 do 3376 case $ac_file in 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3378 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3379 esac 3380 done 3381 rm -f $ac_rmfiles 3382 3383 if { { ac_try="$ac_link_default" 3384 case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387 esac 3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389 $as_echo "$ac_try_echo"; } >&5 3390 (eval "$ac_link_default") 2>&5 3391 ac_status=$? 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; }; then : 3394 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3395 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3396 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3397 # so that the user can short-circuit this test for compilers unknown to 3398 # Autoconf. 3399 for ac_file in $ac_files '' 3400 do 3401 test -f "$ac_file" || continue 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3404 ;; 3405 [ab].out ) 3406 # We found the default executable, but exeext='' is most 3407 # certainly right. 3408 break;; 3409 *.* ) 3410 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3411 then :; else 3412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3413 fi 3414 # We set ac_cv_exeext here because the later test for it is not 3415 # safe: cross compilers may not add the suffix if given an `-o' 3416 # argument, so we may need to know it at that point already. 3417 # Even if this section looks crufty: it has the advantage of 3418 # actually working. 3419 break;; 3420 * ) 3421 break;; 3422 esac 3423 done 3424 test "$ac_cv_exeext" = no && ac_cv_exeext= 3425 3426 else 3427 ac_file='' 3428 fi 3429 if test -z "$ac_file"; then : 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3431 $as_echo "no" >&6; } 3432 $as_echo "$as_me: failed program was:" >&5 3433 sed 's/^/| /' conftest.$ac_ext >&5 3434 3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437 { as_fn_set_status 77 3438 as_fn_error "C compiler cannot create executables 3439 See \`config.log' for more details." "$LINENO" 5; }; } 3440 else 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3442 $as_echo "yes" >&6; } 3443 fi 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3445 $as_echo_n "checking for C compiler default output file name... " >&6; } 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3447 $as_echo "$ac_file" >&6; } 3448 ac_exeext=$ac_cv_exeext 3449 3450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3451 ac_clean_files=$ac_clean_files_save 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3453 $as_echo_n "checking for suffix of executables... " >&6; } 3454 if { { ac_try="$ac_link" 3455 case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458 esac 3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3460 $as_echo "$ac_try_echo"; } >&5 3461 (eval "$ac_link") 2>&5 3462 ac_status=$? 3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3464 test $ac_status = 0; }; then : 3465 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3467 # work properly (i.e., refer to `conftest.exe'), while it won't with 3468 # `rm'. 3469 for ac_file in conftest.exe conftest conftest.*; do 3470 test -f "$ac_file" || continue 3471 case $ac_file in 3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3474 break;; 3475 * ) break;; 3476 esac 3477 done 3478 else 3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3481 as_fn_error "cannot compute suffix of executables: cannot compile and link 3482 See \`config.log' for more details." "$LINENO" 5; } 3483 fi 3484 rm -f conftest conftest$ac_cv_exeext 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3486 $as_echo "$ac_cv_exeext" >&6; } 3487 3488 rm -f conftest.$ac_ext 3489 EXEEXT=$ac_cv_exeext 3490 ac_exeext=$EXEEXT 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492 /* end confdefs.h. */ 3493 #include <stdio.h> 3494 int 3495 main () 3496 { 3497 FILE *f = fopen ("conftest.out", "w"); 3498 return ferror (f) || fclose (f) != 0; 3499 3500 ; 3501 return 0; 3502 } 3503 _ACEOF 3504 ac_clean_files="$ac_clean_files conftest.out" 3505 # Check that the compiler produces executables we can run. If not, either 3506 # the compiler is broken, or we cross compile. 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3508 $as_echo_n "checking whether we are cross compiling... " >&6; } 3509 if test "$cross_compiling" != yes; then 3510 { { ac_try="$ac_link" 3511 case "(($ac_try" in 3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3513 *) ac_try_echo=$ac_try;; 3514 esac 3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3516 $as_echo "$ac_try_echo"; } >&5 3517 (eval "$ac_link") 2>&5 3518 ac_status=$? 3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3520 test $ac_status = 0; } 3521 if { ac_try='./conftest$ac_cv_exeext' 3522 { { case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525 esac 3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3527 $as_echo "$ac_try_echo"; } >&5 3528 (eval "$ac_try") 2>&5 3529 ac_status=$? 3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3531 test $ac_status = 0; }; }; then 3532 cross_compiling=no 3533 else 3534 if test "$cross_compiling" = maybe; then 3535 cross_compiling=yes 3536 else 3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3539 as_fn_error "cannot run C compiled programs. 3540 If you meant to cross compile, use \`--host'. 3541 See \`config.log' for more details." "$LINENO" 5; } 3542 fi 3543 fi 3544 fi 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3546 $as_echo "$cross_compiling" >&6; } 3547 3548 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3549 ac_clean_files=$ac_clean_files_save 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3551 $as_echo_n "checking for suffix of object files... " >&6; } 3552 if test "${ac_cv_objext+set}" = set; then : 3553 $as_echo_n "(cached) " >&6 3554 else 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 /* end confdefs.h. */ 3557 3558 int 3559 main () 3560 { 3561 3562 ; 3563 return 0; 3564 } 3565 _ACEOF 3566 rm -f conftest.o conftest.obj 3567 if { { ac_try="$ac_compile" 3568 case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571 esac 3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573 $as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_compile") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; }; then : 3578 for ac_file in conftest.o conftest.obj conftest.*; do 3579 test -f "$ac_file" || continue; 3580 case $ac_file in 3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3583 break;; 3584 esac 3585 done 3586 else 3587 $as_echo "$as_me: failed program was:" >&5 3588 sed 's/^/| /' conftest.$ac_ext >&5 3589 3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3592 as_fn_error "cannot compute suffix of object files: cannot compile 3593 See \`config.log' for more details." "$LINENO" 5; } 3594 fi 3595 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3596 fi 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3598 $as_echo "$ac_cv_objext" >&6; } 3599 OBJEXT=$ac_cv_objext 3600 ac_objext=$OBJEXT 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3602 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3603 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3604 $as_echo_n "(cached) " >&6 3605 else 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607 /* end confdefs.h. */ 3608 3609 int 3610 main () 3611 { 3612 #ifndef __GNUC__ 3613 choke me 3614 #endif 3615 3616 ; 3617 return 0; 3618 } 3619 _ACEOF 3620 if ac_fn_c_try_compile "$LINENO"; then : 3621 ac_compiler_gnu=yes 3622 else 3623 ac_compiler_gnu=no 3624 fi 3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3626 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3627 3628 fi 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3630 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3631 if test $ac_compiler_gnu = yes; then 3632 GCC=yes 3633 else 3634 GCC= 3635 fi 3636 ac_test_CFLAGS=${CFLAGS+set} 3637 ac_save_CFLAGS=$CFLAGS 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3639 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3640 if test "${ac_cv_prog_cc_g+set}" = set; then : 3641 $as_echo_n "(cached) " >&6 3642 else 3643 ac_save_c_werror_flag=$ac_c_werror_flag 3644 ac_c_werror_flag=yes 3645 ac_cv_prog_cc_g=no 3646 CFLAGS="-g" 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648 /* end confdefs.h. */ 3649 3650 int 3651 main () 3652 { 3653 3654 ; 3655 return 0; 3656 } 3657 _ACEOF 3658 if ac_fn_c_try_compile "$LINENO"; then : 3659 ac_cv_prog_cc_g=yes 3660 else 3661 CFLAGS="" 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663 /* end confdefs.h. */ 3664 3665 int 3666 main () 3667 { 3668 3669 ; 3670 return 0; 3671 } 3672 _ACEOF 3673 if ac_fn_c_try_compile "$LINENO"; then : 3674 3675 else 3676 ac_c_werror_flag=$ac_save_c_werror_flag 3677 CFLAGS="-g" 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679 /* end confdefs.h. */ 3680 3681 int 3682 main () 3683 { 3684 3685 ; 3686 return 0; 3687 } 3688 _ACEOF 3689 if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_cv_prog_cc_g=yes 3691 fi 3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3693 fi 3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3695 fi 3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3697 ac_c_werror_flag=$ac_save_c_werror_flag 3698 fi 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3700 $as_echo "$ac_cv_prog_cc_g" >&6; } 3701 if test "$ac_test_CFLAGS" = set; then 3702 CFLAGS=$ac_save_CFLAGS 3703 elif test $ac_cv_prog_cc_g = yes; then 3704 if test "$GCC" = yes; then 3705 CFLAGS="-g -O2" 3706 else 3707 CFLAGS="-g" 3708 fi 3709 else 3710 if test "$GCC" = yes; then 3711 CFLAGS="-O2" 3712 else 3713 CFLAGS= 3714 fi 3715 fi 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3717 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3718 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3719 $as_echo_n "(cached) " >&6 3720 else 3721 ac_cv_prog_cc_c89=no 3722 ac_save_CC=$CC 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724 /* end confdefs.h. */ 3725 #include <stdarg.h> 3726 #include <stdio.h> 3727 #include <sys/types.h> 3728 #include <sys/stat.h> 3729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3730 struct buf { int x; }; 3731 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3732 static char *e (p, i) 3733 char **p; 3734 int i; 3735 { 3736 return p[i]; 3737 } 3738 static char *f (char * (*g) (char **, int), char **p, ...) 3739 { 3740 char *s; 3741 va_list v; 3742 va_start (v,p); 3743 s = g (p, va_arg (v,int)); 3744 va_end (v); 3745 return s; 3746 } 3747 3748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3749 function prototypes and stuff, but not '\xHH' hex character constants. 3750 These don't provoke an error unfortunately, instead are silently treated 3751 as 'x'. The following induces an error, until -std is added to get 3752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3753 array size at least. It's necessary to write '\x00'==0 to get something 3754 that's true only with -std. */ 3755 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3756 3757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3758 inside strings and character constants. */ 3759 #define FOO(x) 'x' 3760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3761 3762 int test (int i, double x); 3763 struct s1 {int (*f) (int a);}; 3764 struct s2 {int (*f) (double a);}; 3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3766 int argc; 3767 char **argv; 3768 int 3769 main () 3770 { 3771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3772 ; 3773 return 0; 3774 } 3775 _ACEOF 3776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3778 do 3779 CC="$ac_save_CC $ac_arg" 3780 if ac_fn_c_try_compile "$LINENO"; then : 3781 ac_cv_prog_cc_c89=$ac_arg 3782 fi 3783 rm -f core conftest.err conftest.$ac_objext 3784 test "x$ac_cv_prog_cc_c89" != "xno" && break 3785 done 3786 rm -f conftest.$ac_ext 3787 CC=$ac_save_CC 3788 3789 fi 3790 # AC_CACHE_VAL 3791 case "x$ac_cv_prog_cc_c89" in 3792 x) 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3794 $as_echo "none needed" >&6; } ;; 3795 xno) 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3797 $as_echo "unsupported" >&6; } ;; 3798 *) 3799 CC="$CC $ac_cv_prog_cc_c89" 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3802 esac 3803 if test "x$ac_cv_prog_cc_c89" != xno; then : 3804 3805 fi 3806 3807 ac_ext=c 3808 ac_cpp='$CPP $CPPFLAGS' 3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3812 DEPDIR="${am__leading_dot}deps" 3813 3814 ac_config_commands="$ac_config_commands depfiles" 3815 3816 3817 am_make=${MAKE-make} 3818 cat > confinc << 'END' 3819 am__doit: 3820 @echo this is the am__doit target 3821 .PHONY: am__doit 3822 END 3823 # If we don't find an include directive, just comment out the code. 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3825 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3826 am__include="#" 3827 am__quote= 3828 _am_result=none 3829 # First try GNU make style include. 3830 echo "include confinc" > confmf 3831 # Ignore all kinds of additional output from `make'. 3832 case `$am_make -s -f confmf 2> /dev/null` in #( 3833 *the\ am__doit\ target*) 3834 am__include=include 3835 am__quote= 3836 _am_result=GNU 3837 ;; 3838 esac 3839 # Now try BSD make style include. 3840 if test "$am__include" = "#"; then 3841 echo '.include "confinc"' > confmf 3842 case `$am_make -s -f confmf 2> /dev/null` in #( 3843 *the\ am__doit\ target*) 3844 am__include=.include 3845 am__quote="\"" 3846 _am_result=BSD 3847 ;; 3848 esac 3849 fi 3850 3851 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3853 $as_echo "$_am_result" >&6; } 3854 rm -f confinc confmf 3855 3856 # Check whether --enable-dependency-tracking was given. 3857 if test "${enable_dependency_tracking+set}" = set; then : 3858 enableval=$enable_dependency_tracking; 3859 fi 3860 3861 if test "x$enable_dependency_tracking" != xno; then 3862 am_depcomp="$ac_aux_dir/depcomp" 3863 AMDEPBACKSLASH='\' 3864 fi 3865 if test "x$enable_dependency_tracking" != xno; then 3866 AMDEP_TRUE= 3867 AMDEP_FALSE='#' 3868 else 3869 AMDEP_TRUE='#' 3870 AMDEP_FALSE= 3871 fi 3872 3873 3874 3875 depcc="$CC" am_compiler_list= 3876 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3878 $as_echo_n "checking dependency style of $depcc... " >&6; } 3879 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3880 $as_echo_n "(cached) " >&6 3881 else 3882 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3883 # We make a subdir and do the tests there. Otherwise we can end up 3884 # making bogus files that we don't know about and never remove. For 3885 # instance it was reported that on HP-UX the gcc test will end up 3886 # making a dummy file named `D' -- because `-MD' means `put the output 3887 # in D'. 3888 mkdir conftest.dir 3889 # Copy depcomp to subdir because otherwise we won't find it if we're 3890 # using a relative directory. 3891 cp "$am_depcomp" conftest.dir 3892 cd conftest.dir 3893 # We will build objects and dependencies in a subdirectory because 3894 # it helps to detect inapplicable dependency modes. For instance 3895 # both Tru64's cc and ICC support -MD to output dependencies as a 3896 # side effect of compilation, but ICC will put the dependencies in 3897 # the current directory while Tru64 will put them in the object 3898 # directory. 3899 mkdir sub 3900 3901 am_cv_CC_dependencies_compiler_type=none 3902 if test "$am_compiler_list" = ""; then 3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3904 fi 3905 am__universal=false 3906 case " $depcc " in #( 3907 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3908 esac 3909 3910 for depmode in $am_compiler_list; do 3911 # Setup a source with many dependencies, because some compilers 3912 # like to wrap large dependency lists on column 80 (with \), and 3913 # we should not choose a depcomp mode which is confused by this. 3914 # 3915 # We need to recreate these files for each test, as the compiler may 3916 # overwrite some of them when testing with obscure command lines. 3917 # This happens at least with the AIX C compiler. 3918 : > sub/conftest.c 3919 for i in 1 2 3 4 5 6; do 3920 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3922 # Solaris 8's {/usr,}/bin/sh. 3923 touch sub/conftst$i.h 3924 done 3925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3926 3927 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3928 # mode. It turns out that the SunPro C++ compiler does not properly 3929 # handle `-M -o', and we need to detect this. Also, some Intel 3930 # versions had trouble with output in subdirs 3931 am__obj=sub/conftest.${OBJEXT-o} 3932 am__minus_obj="-o $am__obj" 3933 case $depmode in 3934 gcc) 3935 # This depmode causes a compiler race in universal mode. 3936 test "$am__universal" = false || continue 3937 ;; 3938 nosideeffect) 3939 # after this tag, mechanisms are not by side-effect, so they'll 3940 # only be used when explicitly requested 3941 if test "x$enable_dependency_tracking" = xyes; then 3942 continue 3943 else 3944 break 3945 fi 3946 ;; 3947 msvisualcpp | msvcmsys) 3948 # This compiler won't grok `-c -o', but also, the minuso test has 3949 # not run yet. These depmodes are late enough in the game, and 3950 # so weak that their functioning should not be impacted. 3951 am__obj=conftest.${OBJEXT-o} 3952 am__minus_obj= 3953 ;; 3954 none) break ;; 3955 esac 3956 if depmode=$depmode \ 3957 source=sub/conftest.c object=$am__obj \ 3958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3960 >/dev/null 2>conftest.err && 3961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3965 # icc doesn't choke on unknown options, it will just issue warnings 3966 # or remarks (even with -Werror). So we grep stderr for any message 3967 # that says an option was ignored or not supported. 3968 # When given -MP, icc 7.0 and 7.1 complain thusly: 3969 # icc: Command line warning: ignoring option '-M'; no argument required 3970 # The diagnosis changed in icc 8.0: 3971 # icc: Command line remark: option '-MP' not supported 3972 if (grep 'ignoring option' conftest.err || 3973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3974 am_cv_CC_dependencies_compiler_type=$depmode 3975 break 3976 fi 3977 fi 3978 done 3979 3980 cd .. 3981 rm -rf conftest.dir 3982 else 3983 am_cv_CC_dependencies_compiler_type=none 3984 fi 3985 3986 fi 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3988 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3990 3991 if 3992 test "x$enable_dependency_tracking" != xno \ 3993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3994 am__fastdepCC_TRUE= 3995 am__fastdepCC_FALSE='#' 3996 else 3997 am__fastdepCC_TRUE='#' 3998 am__fastdepCC_FALSE= 3999 fi 4000 4001 4002 ac_ext=c 4003 ac_cpp='$CPP $CPPFLAGS' 4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4008 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4009 # On Suns, sometimes $CPP names a directory. 4010 if test -n "$CPP" && test -d "$CPP"; then 4011 CPP= 4012 fi 4013 if test -z "$CPP"; then 4014 if test "${ac_cv_prog_CPP+set}" = set; then : 4015 $as_echo_n "(cached) " >&6 4016 else 4017 # Double quotes because CPP needs to be expanded 4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4019 do 4020 ac_preproc_ok=false 4021 for ac_c_preproc_warn_flag in '' yes 4022 do 4023 # Use a header file that comes with gcc, so configuring glibc 4024 # with a fresh cross-compiler works. 4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4026 # <limits.h> exists even on freestanding compilers. 4027 # On the NeXT, cc -E runs the code through the compiler's parser, 4028 # not just through cpp. "Syntax error" is here to catch this case. 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030 /* end confdefs.h. */ 4031 #ifdef __STDC__ 4032 # include <limits.h> 4033 #else 4034 # include <assert.h> 4035 #endif 4036 Syntax error 4037 _ACEOF 4038 if ac_fn_c_try_cpp "$LINENO"; then : 4039 4040 else 4041 # Broken: fails on valid input. 4042 continue 4043 fi 4044 rm -f conftest.err conftest.$ac_ext 4045 4046 # OK, works on sane cases. Now check whether nonexistent headers 4047 # can be detected and how. 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049 /* end confdefs.h. */ 4050 #include <ac_nonexistent.h> 4051 _ACEOF 4052 if ac_fn_c_try_cpp "$LINENO"; then : 4053 # Broken: success on invalid input. 4054 continue 4055 else 4056 # Passes both tests. 4057 ac_preproc_ok=: 4058 break 4059 fi 4060 rm -f conftest.err conftest.$ac_ext 4061 4062 done 4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4064 rm -f conftest.err conftest.$ac_ext 4065 if $ac_preproc_ok; then : 4066 break 4067 fi 4068 4069 done 4070 ac_cv_prog_CPP=$CPP 4071 4072 fi 4073 CPP=$ac_cv_prog_CPP 4074 else 4075 ac_cv_prog_CPP=$CPP 4076 fi 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4078 $as_echo "$CPP" >&6; } 4079 ac_preproc_ok=false 4080 for ac_c_preproc_warn_flag in '' yes 4081 do 4082 # Use a header file that comes with gcc, so configuring glibc 4083 # with a fresh cross-compiler works. 4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4085 # <limits.h> exists even on freestanding compilers. 4086 # On the NeXT, cc -E runs the code through the compiler's parser, 4087 # not just through cpp. "Syntax error" is here to catch this case. 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089 /* end confdefs.h. */ 4090 #ifdef __STDC__ 4091 # include <limits.h> 4092 #else 4093 # include <assert.h> 4094 #endif 4095 Syntax error 4096 _ACEOF 4097 if ac_fn_c_try_cpp "$LINENO"; then : 4098 4099 else 4100 # Broken: fails on valid input. 4101 continue 4102 fi 4103 rm -f conftest.err conftest.$ac_ext 4104 4105 # OK, works on sane cases. Now check whether nonexistent headers 4106 # can be detected and how. 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108 /* end confdefs.h. */ 4109 #include <ac_nonexistent.h> 4110 _ACEOF 4111 if ac_fn_c_try_cpp "$LINENO"; then : 4112 # Broken: success on invalid input. 4113 continue 4114 else 4115 # Passes both tests. 4116 ac_preproc_ok=: 4117 break 4118 fi 4119 rm -f conftest.err conftest.$ac_ext 4120 4121 done 4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4123 rm -f conftest.err conftest.$ac_ext 4124 if $ac_preproc_ok; then : 4125 4126 else 4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4129 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4130 See \`config.log' for more details." "$LINENO" 5; } 4131 fi 4132 4133 ac_ext=c 4134 ac_cpp='$CPP $CPPFLAGS' 4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4138 4139 ac_ext=cpp 4140 ac_cpp='$CXXCPP $CPPFLAGS' 4141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4144 if test -z "$CXX"; then 4145 if test -n "$CCC"; then 4146 CXX=$CCC 4147 else 4148 if test -n "$ac_tool_prefix"; then 4149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4150 do 4151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4154 $as_echo_n "checking for $ac_word... " >&6; } 4155 if test "${ac_cv_prog_CXX+set}" = set; then : 4156 $as_echo_n "(cached) " >&6 4157 else 4158 if test -n "$CXX"; then 4159 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4160 else 4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162 for as_dir in $PATH 4163 do 4164 IFS=$as_save_IFS 4165 test -z "$as_dir" && as_dir=. 4166 for ac_exec_ext in '' $ac_executable_extensions; do 4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4170 break 2 4171 fi 4172 done 4173 done 4174 IFS=$as_save_IFS 4175 4176 fi 4177 fi 4178 CXX=$ac_cv_prog_CXX 4179 if test -n "$CXX"; then 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4181 $as_echo "$CXX" >&6; } 4182 else 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184 $as_echo "no" >&6; } 4185 fi 4186 4187 4188 test -n "$CXX" && break 4189 done 4190 fi 4191 if test -z "$CXX"; then 4192 ac_ct_CXX=$CXX 4193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4194 do 4195 # Extract the first word of "$ac_prog", so it can be a program name with args. 4196 set dummy $ac_prog; ac_word=$2 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4198 $as_echo_n "checking for $ac_word... " >&6; } 4199 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4200 $as_echo_n "(cached) " >&6 4201 else 4202 if test -n "$ac_ct_CXX"; then 4203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4204 else 4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4206 for as_dir in $PATH 4207 do 4208 IFS=$as_save_IFS 4209 test -z "$as_dir" && as_dir=. 4210 for ac_exec_ext in '' $ac_executable_extensions; do 4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4212 ac_cv_prog_ac_ct_CXX="$ac_prog" 4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4214 break 2 4215 fi 4216 done 4217 done 4218 IFS=$as_save_IFS 4219 4220 fi 4221 fi 4222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4223 if test -n "$ac_ct_CXX"; then 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4225 $as_echo "$ac_ct_CXX" >&6; } 4226 else 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4228 $as_echo "no" >&6; } 4229 fi 4230 4231 4232 test -n "$ac_ct_CXX" && break 4233 done 4234 4235 if test "x$ac_ct_CXX" = x; then 4236 CXX="g++" 4237 else 4238 case $cross_compiling:$ac_tool_warned in 4239 yes:) 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4242 ac_tool_warned=yes ;; 4243 esac 4244 CXX=$ac_ct_CXX 4245 fi 4246 fi 4247 4248 fi 4249 fi 4250 # Provide some information about the compiler. 4251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4252 set X $ac_compile 4253 ac_compiler=$2 4254 for ac_option in --version -v -V -qversion; do 4255 { { ac_try="$ac_compiler $ac_option >&5" 4256 case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259 esac 4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4261 $as_echo "$ac_try_echo"; } >&5 4262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4263 ac_status=$? 4264 if test -s conftest.err; then 4265 sed '10a\ 4266 ... rest of stderr output deleted ... 4267 10q' conftest.err >conftest.er1 4268 cat conftest.er1 >&5 4269 fi 4270 rm -f conftest.er1 conftest.err 4271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4272 test $ac_status = 0; } 4273 done 4274 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4277 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4278 $as_echo_n "(cached) " >&6 4279 else 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281 /* end confdefs.h. */ 4282 4283 int 4284 main () 4285 { 4286 #ifndef __GNUC__ 4287 choke me 4288 #endif 4289 4290 ; 4291 return 0; 4292 } 4293 _ACEOF 4294 if ac_fn_cxx_try_compile "$LINENO"; then : 4295 ac_compiler_gnu=yes 4296 else 4297 ac_compiler_gnu=no 4298 fi 4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4301 4302 fi 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4305 if test $ac_compiler_gnu = yes; then 4306 GXX=yes 4307 else 4308 GXX= 4309 fi 4310 ac_test_CXXFLAGS=${CXXFLAGS+set} 4311 ac_save_CXXFLAGS=$CXXFLAGS 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4313 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4314 if test "${ac_cv_prog_cxx_g+set}" = set; then : 4315 $as_echo_n "(cached) " >&6 4316 else 4317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4318 ac_cxx_werror_flag=yes 4319 ac_cv_prog_cxx_g=no 4320 CXXFLAGS="-g" 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322 /* end confdefs.h. */ 4323 4324 int 4325 main () 4326 { 4327 4328 ; 4329 return 0; 4330 } 4331 _ACEOF 4332 if ac_fn_cxx_try_compile "$LINENO"; then : 4333 ac_cv_prog_cxx_g=yes 4334 else 4335 CXXFLAGS="" 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337 /* end confdefs.h. */ 4338 4339 int 4340 main () 4341 { 4342 4343 ; 4344 return 0; 4345 } 4346 _ACEOF 4347 if ac_fn_cxx_try_compile "$LINENO"; then : 4348 4349 else 4350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4351 CXXFLAGS="-g" 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353 /* end confdefs.h. */ 4354 4355 int 4356 main () 4357 { 4358 4359 ; 4360 return 0; 4361 } 4362 _ACEOF 4363 if ac_fn_cxx_try_compile "$LINENO"; then : 4364 ac_cv_prog_cxx_g=yes 4365 fi 4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4367 fi 4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4369 fi 4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4372 fi 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4374 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4375 if test "$ac_test_CXXFLAGS" = set; then 4376 CXXFLAGS=$ac_save_CXXFLAGS 4377 elif test $ac_cv_prog_cxx_g = yes; then 4378 if test "$GXX" = yes; then 4379 CXXFLAGS="-g -O2" 4380 else 4381 CXXFLAGS="-g" 4382 fi 4383 else 4384 if test "$GXX" = yes; then 4385 CXXFLAGS="-O2" 4386 else 4387 CXXFLAGS= 4388 fi 4389 fi 4390 ac_ext=c 4391 ac_cpp='$CPP $CPPFLAGS' 4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395 4396 depcc="$CXX" am_compiler_list= 4397 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4399 $as_echo_n "checking dependency style of $depcc... " >&6; } 4400 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 4401 $as_echo_n "(cached) " >&6 4402 else 4403 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4404 # We make a subdir and do the tests there. Otherwise we can end up 4405 # making bogus files that we don't know about and never remove. For 4406 # instance it was reported that on HP-UX the gcc test will end up 4407 # making a dummy file named `D' -- because `-MD' means `put the output 4408 # in D'. 4409 mkdir conftest.dir 4410 # Copy depcomp to subdir because otherwise we won't find it if we're 4411 # using a relative directory. 4412 cp "$am_depcomp" conftest.dir 4413 cd conftest.dir 4414 # We will build objects and dependencies in a subdirectory because 4415 # it helps to detect inapplicable dependency modes. For instance 4416 # both Tru64's cc and ICC support -MD to output dependencies as a 4417 # side effect of compilation, but ICC will put the dependencies in 4418 # the current directory while Tru64 will put them in the object 4419 # directory. 4420 mkdir sub 4421 4422 am_cv_CXX_dependencies_compiler_type=none 4423 if test "$am_compiler_list" = ""; then 4424 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4425 fi 4426 am__universal=false 4427 case " $depcc " in #( 4428 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4429 esac 4430 4431 for depmode in $am_compiler_list; do 4432 # Setup a source with many dependencies, because some compilers 4433 # like to wrap large dependency lists on column 80 (with \), and 4434 # we should not choose a depcomp mode which is confused by this. 4435 # 4436 # We need to recreate these files for each test, as the compiler may 4437 # overwrite some of them when testing with obscure command lines. 4438 # This happens at least with the AIX C compiler. 4439 : > sub/conftest.c 4440 for i in 1 2 3 4 5 6; do 4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4443 # Solaris 8's {/usr,}/bin/sh. 4444 touch sub/conftst$i.h 4445 done 4446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4447 4448 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4449 # mode. It turns out that the SunPro C++ compiler does not properly 4450 # handle `-M -o', and we need to detect this. Also, some Intel 4451 # versions had trouble with output in subdirs 4452 am__obj=sub/conftest.${OBJEXT-o} 4453 am__minus_obj="-o $am__obj" 4454 case $depmode in 4455 gcc) 4456 # This depmode causes a compiler race in universal mode. 4457 test "$am__universal" = false || continue 4458 ;; 4459 nosideeffect) 4460 # after this tag, mechanisms are not by side-effect, so they'll 4461 # only be used when explicitly requested 4462 if test "x$enable_dependency_tracking" = xyes; then 4463 continue 4464 else 4465 break 4466 fi 4467 ;; 4468 msvisualcpp | msvcmsys) 4469 # This compiler won't grok `-c -o', but also, the minuso test has 4470 # not run yet. These depmodes are late enough in the game, and 4471 # so weak that their functioning should not be impacted. 4472 am__obj=conftest.${OBJEXT-o} 4473 am__minus_obj= 4474 ;; 4475 none) break ;; 4476 esac 4477 if depmode=$depmode \ 4478 source=sub/conftest.c object=$am__obj \ 4479 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4480 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4481 >/dev/null 2>conftest.err && 4482 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4484 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4486 # icc doesn't choke on unknown options, it will just issue warnings 4487 # or remarks (even with -Werror). So we grep stderr for any message 4488 # that says an option was ignored or not supported. 4489 # When given -MP, icc 7.0 and 7.1 complain thusly: 4490 # icc: Command line warning: ignoring option '-M'; no argument required 4491 # The diagnosis changed in icc 8.0: 4492 # icc: Command line remark: option '-MP' not supported 4493 if (grep 'ignoring option' conftest.err || 4494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4495 am_cv_CXX_dependencies_compiler_type=$depmode 4496 break 4497 fi 4498 fi 4499 done 4500 4501 cd .. 4502 rm -rf conftest.dir 4503 else 4504 am_cv_CXX_dependencies_compiler_type=none 4505 fi 4506 4507 fi 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4509 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4510 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4511 4512 if 4513 test "x$enable_dependency_tracking" != xno \ 4514 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4515 am__fastdepCXX_TRUE= 4516 am__fastdepCXX_FALSE='#' 4517 else 4518 am__fastdepCXX_TRUE='#' 4519 am__fastdepCXX_FALSE= 4520 fi 4521 4522 4523 if test "$GCC" = yes; then 4524 GCC_TRUE= 4525 GCC_FALSE='#' 4526 else 4527 GCC_TRUE='#' 4528 GCC_FALSE= 4529 fi 4530 # let the Makefile know if we're gcc 4531 # Make sure we can run config.sub. 4532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4533 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4534 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4536 $as_echo_n "checking build system type... " >&6; } 4537 if test "${ac_cv_build+set}" = set; then : 4538 $as_echo_n "(cached) " >&6 4539 else 4540 ac_build_alias=$build_alias 4541 test "x$ac_build_alias" = x && 4542 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4543 test "x$ac_build_alias" = x && 4544 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4545 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4546 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4547 4548 fi 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4550 $as_echo "$ac_cv_build" >&6; } 4551 case $ac_cv_build in 4552 *-*-*) ;; 4553 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4554 esac 4555 build=$ac_cv_build 4556 ac_save_IFS=$IFS; IFS='-' 4557 set x $ac_cv_build 4558 shift 4559 build_cpu=$1 4560 build_vendor=$2 4561 shift; shift 4562 # Remember, the first character of IFS is used to create $*, 4563 # except with old shells: 4564 build_os=$* 4565 IFS=$ac_save_IFS 4566 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4567 4568 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4570 $as_echo_n "checking host system type... " >&6; } 4571 if test "${ac_cv_host+set}" = set; then : 4572 $as_echo_n "(cached) " >&6 4573 else 4574 if test "x$host_alias" = x; then 4575 ac_cv_host=$ac_cv_build 4576 else 4577 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4578 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4579 fi 4580 4581 fi 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4583 $as_echo "$ac_cv_host" >&6; } 4584 case $ac_cv_host in 4585 *-*-*) ;; 4586 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4587 esac 4588 host=$ac_cv_host 4589 ac_save_IFS=$IFS; IFS='-' 4590 set x $ac_cv_host 4591 shift 4592 host_cpu=$1 4593 host_vendor=$2 4594 shift; shift 4595 # Remember, the first character of IFS is used to create $*, 4596 # except with old shells: 4597 host_os=$* 4598 IFS=$ac_save_IFS 4599 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4600 4601 4602 4603 case `pwd` in 4604 *\ * | *\ *) 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4606 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4607 esac 4608 4609 4610 4611 macro_version='2.2.6b' 4612 macro_revision='1.3017' 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 ltmain="$ac_aux_dir/ltmain.sh" 4627 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4629 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4630 if test "${ac_cv_path_SED+set}" = set; then : 4631 $as_echo_n "(cached) " >&6 4632 else 4633 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4634 for ac_i in 1 2 3 4 5 6 7; do 4635 ac_script="$ac_script$as_nl$ac_script" 4636 done 4637 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4638 { ac_script=; unset ac_script;} 4639 if test -z "$SED"; then 4640 ac_path_SED_found=false 4641 # Loop through the user's path and test for each of PROGNAME-LIST 4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643 for as_dir in $PATH 4644 do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_prog in sed gsed; do 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4650 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4651 # Check for GNU ac_path_SED and select it if it is found. 4652 # Check for GNU $ac_path_SED 4653 case `"$ac_path_SED" --version 2>&1` in 4654 *GNU*) 4655 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4656 *) 4657 ac_count=0 4658 $as_echo_n 0123456789 >"conftest.in" 4659 while : 4660 do 4661 cat "conftest.in" "conftest.in" >"conftest.tmp" 4662 mv "conftest.tmp" "conftest.in" 4663 cp "conftest.in" "conftest.nl" 4664 $as_echo '' >> "conftest.nl" 4665 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4667 as_fn_arith $ac_count + 1 && ac_count=$as_val 4668 if test $ac_count -gt ${ac_path_SED_max-0}; then 4669 # Best one so far, save it but keep looking for a better one 4670 ac_cv_path_SED="$ac_path_SED" 4671 ac_path_SED_max=$ac_count 4672 fi 4673 # 10*(2^10) chars as input seems more than enough 4674 test $ac_count -gt 10 && break 4675 done 4676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4677 esac 4678 4679 $ac_path_SED_found && break 3 4680 done 4681 done 4682 done 4683 IFS=$as_save_IFS 4684 if test -z "$ac_cv_path_SED"; then 4685 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4686 fi 4687 else 4688 ac_cv_path_SED=$SED 4689 fi 4690 4691 fi 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4693 $as_echo "$ac_cv_path_SED" >&6; } 4694 SED="$ac_cv_path_SED" 4695 rm -f conftest.sed 4696 4697 test -z "$SED" && SED=sed 4698 Xsed="$SED -e 1s/^X//" 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4711 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4712 if test "${ac_cv_path_GREP+set}" = set; then : 4713 $as_echo_n "(cached) " >&6 4714 else 4715 if test -z "$GREP"; then 4716 ac_path_GREP_found=false 4717 # Loop through the user's path and test for each of PROGNAME-LIST 4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4720 do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_prog in grep ggrep; do 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4726 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4727 # Check for GNU ac_path_GREP and select it if it is found. 4728 # Check for GNU $ac_path_GREP 4729 case `"$ac_path_GREP" --version 2>&1` in 4730 *GNU*) 4731 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4732 *) 4733 ac_count=0 4734 $as_echo_n 0123456789 >"conftest.in" 4735 while : 4736 do 4737 cat "conftest.in" "conftest.in" >"conftest.tmp" 4738 mv "conftest.tmp" "conftest.in" 4739 cp "conftest.in" "conftest.nl" 4740 $as_echo 'GREP' >> "conftest.nl" 4741 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4743 as_fn_arith $ac_count + 1 && ac_count=$as_val 4744 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4745 # Best one so far, save it but keep looking for a better one 4746 ac_cv_path_GREP="$ac_path_GREP" 4747 ac_path_GREP_max=$ac_count 4748 fi 4749 # 10*(2^10) chars as input seems more than enough 4750 test $ac_count -gt 10 && break 4751 done 4752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4753 esac 4754 4755 $ac_path_GREP_found && break 3 4756 done 4757 done 4758 done 4759 IFS=$as_save_IFS 4760 if test -z "$ac_cv_path_GREP"; then 4761 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4762 fi 4763 else 4764 ac_cv_path_GREP=$GREP 4765 fi 4766 4767 fi 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4769 $as_echo "$ac_cv_path_GREP" >&6; } 4770 GREP="$ac_cv_path_GREP" 4771 4772 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4774 $as_echo_n "checking for egrep... " >&6; } 4775 if test "${ac_cv_path_EGREP+set}" = set; then : 4776 $as_echo_n "(cached) " >&6 4777 else 4778 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4779 then ac_cv_path_EGREP="$GREP -E" 4780 else 4781 if test -z "$EGREP"; then 4782 ac_path_EGREP_found=false 4783 # Loop through the user's path and test for each of PROGNAME-LIST 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4786 do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_prog in egrep; do 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4792 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4793 # Check for GNU ac_path_EGREP and select it if it is found. 4794 # Check for GNU $ac_path_EGREP 4795 case `"$ac_path_EGREP" --version 2>&1` in 4796 *GNU*) 4797 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4798 *) 4799 ac_count=0 4800 $as_echo_n 0123456789 >"conftest.in" 4801 while : 4802 do 4803 cat "conftest.in" "conftest.in" >"conftest.tmp" 4804 mv "conftest.tmp" "conftest.in" 4805 cp "conftest.in" "conftest.nl" 4806 $as_echo 'EGREP' >> "conftest.nl" 4807 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4809 as_fn_arith $ac_count + 1 && ac_count=$as_val 4810 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4811 # Best one so far, save it but keep looking for a better one 4812 ac_cv_path_EGREP="$ac_path_EGREP" 4813 ac_path_EGREP_max=$ac_count 4814 fi 4815 # 10*(2^10) chars as input seems more than enough 4816 test $ac_count -gt 10 && break 4817 done 4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4819 esac 4820 4821 $ac_path_EGREP_found && break 3 4822 done 4823 done 4824 done 4825 IFS=$as_save_IFS 4826 if test -z "$ac_cv_path_EGREP"; then 4827 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4828 fi 4829 else 4830 ac_cv_path_EGREP=$EGREP 4831 fi 4832 4833 fi 4834 fi 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4836 $as_echo "$ac_cv_path_EGREP" >&6; } 4837 EGREP="$ac_cv_path_EGREP" 4838 4839 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4841 $as_echo_n "checking for fgrep... " >&6; } 4842 if test "${ac_cv_path_FGREP+set}" = set; then : 4843 $as_echo_n "(cached) " >&6 4844 else 4845 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4846 then ac_cv_path_FGREP="$GREP -F" 4847 else 4848 if test -z "$FGREP"; then 4849 ac_path_FGREP_found=false 4850 # Loop through the user's path and test for each of PROGNAME-LIST 4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4853 do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_prog in fgrep; do 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4859 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4860 # Check for GNU ac_path_FGREP and select it if it is found. 4861 # Check for GNU $ac_path_FGREP 4862 case `"$ac_path_FGREP" --version 2>&1` in 4863 *GNU*) 4864 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4865 *) 4866 ac_count=0 4867 $as_echo_n 0123456789 >"conftest.in" 4868 while : 4869 do 4870 cat "conftest.in" "conftest.in" >"conftest.tmp" 4871 mv "conftest.tmp" "conftest.in" 4872 cp "conftest.in" "conftest.nl" 4873 $as_echo 'FGREP' >> "conftest.nl" 4874 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4876 as_fn_arith $ac_count + 1 && ac_count=$as_val 4877 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4878 # Best one so far, save it but keep looking for a better one 4879 ac_cv_path_FGREP="$ac_path_FGREP" 4880 ac_path_FGREP_max=$ac_count 4881 fi 4882 # 10*(2^10) chars as input seems more than enough 4883 test $ac_count -gt 10 && break 4884 done 4885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4886 esac 4887 4888 $ac_path_FGREP_found && break 3 4889 done 4890 done 4891 done 4892 IFS=$as_save_IFS 4893 if test -z "$ac_cv_path_FGREP"; then 4894 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4895 fi 4896 else 4897 ac_cv_path_FGREP=$FGREP 4898 fi 4899 4900 fi 4901 fi 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4903 $as_echo "$ac_cv_path_FGREP" >&6; } 4904 FGREP="$ac_cv_path_FGREP" 4905 4906 4907 test -z "$GREP" && GREP=grep 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 # Check whether --with-gnu-ld was given. 4928 if test "${with_gnu_ld+set}" = set; then : 4929 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4930 else 4931 with_gnu_ld=no 4932 fi 4933 4934 ac_prog=ld 4935 if test "$GCC" = yes; then 4936 # Check if gcc -print-prog-name=ld gives a path. 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4938 $as_echo_n "checking for ld used by $CC... " >&6; } 4939 case $host in 4940 *-*-mingw*) 4941 # gcc leaves a trailing carriage return which upsets mingw 4942 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4943 *) 4944 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4945 esac 4946 case $ac_prog in 4947 # Accept absolute paths. 4948 [\\/]* | ?:[\\/]*) 4949 re_direlt='/[^/][^/]*/\.\./' 4950 # Canonicalize the pathname of ld 4951 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4952 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4953 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4954 done 4955 test -z "$LD" && LD="$ac_prog" 4956 ;; 4957 "") 4958 # If it fails, then pretend we aren't using GCC. 4959 ac_prog=ld 4960 ;; 4961 *) 4962 # If it is relative, then search for the first ld in PATH. 4963 with_gnu_ld=unknown 4964 ;; 4965 esac 4966 elif test "$with_gnu_ld" = yes; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4968 $as_echo_n "checking for GNU ld... " >&6; } 4969 else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4971 $as_echo_n "checking for non-GNU ld... " >&6; } 4972 fi 4973 if test "${lt_cv_path_LD+set}" = set; then : 4974 $as_echo_n "(cached) " >&6 4975 else 4976 if test -z "$LD"; then 4977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4978 for ac_dir in $PATH; do 4979 IFS="$lt_save_ifs" 4980 test -z "$ac_dir" && ac_dir=. 4981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4982 lt_cv_path_LD="$ac_dir/$ac_prog" 4983 # Check to see if the program is GNU ld. I'd rather use --version, 4984 # but apparently some variants of GNU ld only accept -v. 4985 # Break only if it was the GNU/non-GNU ld that we prefer. 4986 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4987 *GNU* | *'with BFD'*) 4988 test "$with_gnu_ld" != no && break 4989 ;; 4990 *) 4991 test "$with_gnu_ld" != yes && break 4992 ;; 4993 esac 4994 fi 4995 done 4996 IFS="$lt_save_ifs" 4997 else 4998 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4999 fi 5000 fi 5001 5002 LD="$lt_cv_path_LD" 5003 if test -n "$LD"; then 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5005 $as_echo "$LD" >&6; } 5006 else 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5008 $as_echo "no" >&6; } 5009 fi 5010 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5012 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5013 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5014 $as_echo_n "(cached) " >&6 5015 else 5016 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5017 case `$LD -v 2>&1 </dev/null` in 5018 *GNU* | *'with BFD'*) 5019 lt_cv_prog_gnu_ld=yes 5020 ;; 5021 *) 5022 lt_cv_prog_gnu_ld=no 5023 ;; 5024 esac 5025 fi 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5027 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5028 with_gnu_ld=$lt_cv_prog_gnu_ld 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5039 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5040 if test "${lt_cv_path_NM+set}" = set; then : 5041 $as_echo_n "(cached) " >&6 5042 else 5043 if test -n "$NM"; then 5044 # Let the user override the test. 5045 lt_cv_path_NM="$NM" 5046 else 5047 lt_nm_to_check="${ac_tool_prefix}nm" 5048 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5049 lt_nm_to_check="$lt_nm_to_check nm" 5050 fi 5051 for lt_tmp_nm in $lt_nm_to_check; do 5052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5053 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5054 IFS="$lt_save_ifs" 5055 test -z "$ac_dir" && ac_dir=. 5056 tmp_nm="$ac_dir/$lt_tmp_nm" 5057 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5058 # Check to see if the nm accepts a BSD-compat flag. 5059 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5060 # nm: unknown option "B" ignored 5061 # Tru64's nm complains that /dev/null is an invalid object file 5062 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5063 */dev/null* | *'Invalid file or object type'*) 5064 lt_cv_path_NM="$tmp_nm -B" 5065 break 5066 ;; 5067 *) 5068 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5069 */dev/null*) 5070 lt_cv_path_NM="$tmp_nm -p" 5071 break 5072 ;; 5073 *) 5074 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5075 continue # so that we can try to find one that supports BSD flags 5076 ;; 5077 esac 5078 ;; 5079 esac 5080 fi 5081 done 5082 IFS="$lt_save_ifs" 5083 done 5084 : ${lt_cv_path_NM=no} 5085 fi 5086 fi 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5088 $as_echo "$lt_cv_path_NM" >&6; } 5089 if test "$lt_cv_path_NM" != "no"; then 5090 NM="$lt_cv_path_NM" 5091 else 5092 # Didn't find any BSD compatible name lister, look for dumpbin. 5093 if test -n "$ac_tool_prefix"; then 5094 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5095 do 5096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5099 $as_echo_n "checking for $ac_word... " >&6; } 5100 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5101 $as_echo_n "(cached) " >&6 5102 else 5103 if test -n "$DUMPBIN"; then 5104 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5105 else 5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107 for as_dir in $PATH 5108 do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5113 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5115 break 2 5116 fi 5117 done 5118 done 5119 IFS=$as_save_IFS 5120 5121 fi 5122 fi 5123 DUMPBIN=$ac_cv_prog_DUMPBIN 5124 if test -n "$DUMPBIN"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5126 $as_echo "$DUMPBIN" >&6; } 5127 else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129 $as_echo "no" >&6; } 5130 fi 5131 5132 5133 test -n "$DUMPBIN" && break 5134 done 5135 fi 5136 if test -z "$DUMPBIN"; then 5137 ac_ct_DUMPBIN=$DUMPBIN 5138 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5139 do 5140 # Extract the first word of "$ac_prog", so it can be a program name with args. 5141 set dummy $ac_prog; ac_word=$2 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5143 $as_echo_n "checking for $ac_word... " >&6; } 5144 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5145 $as_echo_n "(cached) " >&6 5146 else 5147 if test -n "$ac_ct_DUMPBIN"; then 5148 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5149 else 5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5151 for as_dir in $PATH 5152 do 5153 IFS=$as_save_IFS 5154 test -z "$as_dir" && as_dir=. 5155 for ac_exec_ext in '' $ac_executable_extensions; do 5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5157 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5159 break 2 5160 fi 5161 done 5162 done 5163 IFS=$as_save_IFS 5164 5165 fi 5166 fi 5167 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5168 if test -n "$ac_ct_DUMPBIN"; then 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5170 $as_echo "$ac_ct_DUMPBIN" >&6; } 5171 else 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5173 $as_echo "no" >&6; } 5174 fi 5175 5176 5177 test -n "$ac_ct_DUMPBIN" && break 5178 done 5179 5180 if test "x$ac_ct_DUMPBIN" = x; then 5181 DUMPBIN=":" 5182 else 5183 case $cross_compiling:$ac_tool_warned in 5184 yes:) 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5187 ac_tool_warned=yes ;; 5188 esac 5189 DUMPBIN=$ac_ct_DUMPBIN 5190 fi 5191 fi 5192 5193 5194 if test "$DUMPBIN" != ":"; then 5195 NM="$DUMPBIN" 5196 fi 5197 fi 5198 test -z "$NM" && NM=nm 5199 5200 5201 5202 5203 5204 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5206 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5207 if test "${lt_cv_nm_interface+set}" = set; then : 5208 $as_echo_n "(cached) " >&6 5209 else 5210 lt_cv_nm_interface="BSD nm" 5211 echo "int some_variable = 0;" > conftest.$ac_ext 5212 (eval echo "\"\$as_me:5212: $ac_compile\"" >&5) 5213 (eval "$ac_compile" 2>conftest.err) 5214 cat conftest.err >&5 5215 (eval echo "\"\$as_me:5215: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5217 cat conftest.err >&5 5218 (eval echo "\"\$as_me:5218: output\"" >&5) 5219 cat conftest.out >&5 5220 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5221 lt_cv_nm_interface="MS dumpbin" 5222 fi 5223 rm -f conftest* 5224 fi 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5226 $as_echo "$lt_cv_nm_interface" >&6; } 5227 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5229 $as_echo_n "checking whether ln -s works... " >&6; } 5230 LN_S=$as_ln_s 5231 if test "$LN_S" = "ln -s"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5233 $as_echo "yes" >&6; } 5234 else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5236 $as_echo "no, using $LN_S" >&6; } 5237 fi 5238 5239 # find the maximum length of command line arguments 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5241 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5242 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5243 $as_echo_n "(cached) " >&6 5244 else 5245 i=0 5246 teststring="ABCD" 5247 5248 case $build_os in 5249 msdosdjgpp*) 5250 # On DJGPP, this test can blow up pretty badly due to problems in libc 5251 # (any single argument exceeding 2000 bytes causes a buffer overrun 5252 # during glob expansion). Even if it were fixed, the result of this 5253 # check would be larger than it should be. 5254 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5255 ;; 5256 5257 gnu*) 5258 # Under GNU Hurd, this test is not required because there is 5259 # no limit to the length of command line arguments. 5260 # Libtool will interpret -1 as no limit whatsoever 5261 lt_cv_sys_max_cmd_len=-1; 5262 ;; 5263 5264 cygwin* | mingw* | cegcc*) 5265 # On Win9x/ME, this test blows up -- it succeeds, but takes 5266 # about 5 minutes as the teststring grows exponentially. 5267 # Worse, since 9x/ME are not pre-emptively multitasking, 5268 # you end up with a "frozen" computer, even though with patience 5269 # the test eventually succeeds (with a max line length of 256k). 5270 # Instead, let's just punt: use the minimum linelength reported by 5271 # all of the supported platforms: 8192 (on NT/2K/XP). 5272 lt_cv_sys_max_cmd_len=8192; 5273 ;; 5274 5275 amigaos*) 5276 # On AmigaOS with pdksh, this test takes hours, literally. 5277 # So we just punt and use a minimum line length of 8192. 5278 lt_cv_sys_max_cmd_len=8192; 5279 ;; 5280 5281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5282 # This has been around since 386BSD, at least. Likely further. 5283 if test -x /sbin/sysctl; then 5284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5285 elif test -x /usr/sbin/sysctl; then 5286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5287 else 5288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5289 fi 5290 # And add a safety zone 5291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5293 ;; 5294 5295 interix*) 5296 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5297 lt_cv_sys_max_cmd_len=196608 5298 ;; 5299 5300 osf*) 5301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5303 # nice to cause kernel panics so lets avoid the loop below. 5304 # First set a reasonable default. 5305 lt_cv_sys_max_cmd_len=16384 5306 # 5307 if test -x /sbin/sysconfig; then 5308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5309 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5310 esac 5311 fi 5312 ;; 5313 sco3.2v5*) 5314 lt_cv_sys_max_cmd_len=102400 5315 ;; 5316 sysv5* | sco5v6* | sysv4.2uw2*) 5317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5318 if test -n "$kargmax"; then 5319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5320 else 5321 lt_cv_sys_max_cmd_len=32768 5322 fi 5323 ;; 5324 *) 5325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5326 if test -n "$lt_cv_sys_max_cmd_len"; then 5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5329 else 5330 # Make teststring a little bigger before we do anything with it. 5331 # a 1K string should be a reasonable start. 5332 for i in 1 2 3 4 5 6 7 8 ; do 5333 teststring=$teststring$teststring 5334 done 5335 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5336 # If test is not a shell built-in, we'll probably end up computing a 5337 # maximum length that is only half of the actual maximum length, but 5338 # we can't tell. 5339 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5340 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5341 test $i != 17 # 1/2 MB should be enough 5342 do 5343 i=`expr $i + 1` 5344 teststring=$teststring$teststring 5345 done 5346 # Only check the string length outside the loop. 5347 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5348 teststring= 5349 # Add a significant safety factor because C++ compilers can tack on 5350 # massive amounts of additional arguments before passing them to the 5351 # linker. It appears as though 1/2 is a usable value. 5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5353 fi 5354 ;; 5355 esac 5356 5357 fi 5358 5359 if test -n $lt_cv_sys_max_cmd_len ; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5361 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5362 else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5364 $as_echo "none" >&6; } 5365 fi 5366 max_cmd_len=$lt_cv_sys_max_cmd_len 5367 5368 5369 5370 5371 5372 5373 : ${CP="cp -f"} 5374 : ${MV="mv -f"} 5375 : ${RM="rm -f"} 5376 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5378 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5379 # Try some XSI features 5380 xsi_shell=no 5381 ( _lt_dummy="a/b/c" 5382 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5383 = c,a/b,, \ 5384 && eval 'test $(( 1 + 1 )) -eq 2 \ 5385 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5386 && xsi_shell=yes 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5388 $as_echo "$xsi_shell" >&6; } 5389 5390 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5392 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5393 lt_shell_append=no 5394 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5395 >/dev/null 2>&1 \ 5396 && lt_shell_append=yes 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5398 $as_echo "$lt_shell_append" >&6; } 5399 5400 5401 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5402 lt_unset=unset 5403 else 5404 lt_unset=false 5405 fi 5406 5407 5408 5409 5410 5411 # test EBCDIC or ASCII 5412 case `echo X|tr X '\101'` in 5413 A) # ASCII based system 5414 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5415 lt_SP2NL='tr \040 \012' 5416 lt_NL2SP='tr \015\012 \040\040' 5417 ;; 5418 *) # EBCDIC based system 5419 lt_SP2NL='tr \100 \n' 5420 lt_NL2SP='tr \r\n \100\100' 5421 ;; 5422 esac 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5433 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5434 if test "${lt_cv_ld_reload_flag+set}" = set; then : 5435 $as_echo_n "(cached) " >&6 5436 else 5437 lt_cv_ld_reload_flag='-r' 5438 fi 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5440 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5441 reload_flag=$lt_cv_ld_reload_flag 5442 case $reload_flag in 5443 "" | " "*) ;; 5444 *) reload_flag=" $reload_flag" ;; 5445 esac 5446 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5447 case $host_os in 5448 darwin*) 5449 if test "$GCC" = yes; then 5450 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5451 else 5452 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5453 fi 5454 ;; 5455 esac 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 if test -n "$ac_tool_prefix"; then 5466 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5467 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469 $as_echo_n "checking for $ac_word... " >&6; } 5470 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5471 $as_echo_n "(cached) " >&6 5472 else 5473 if test -n "$OBJDUMP"; then 5474 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5475 else 5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477 for as_dir in $PATH 5478 do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5483 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487 done 5488 done 5489 IFS=$as_save_IFS 5490 5491 fi 5492 fi 5493 OBJDUMP=$ac_cv_prog_OBJDUMP 5494 if test -n "$OBJDUMP"; then 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5496 $as_echo "$OBJDUMP" >&6; } 5497 else 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499 $as_echo "no" >&6; } 5500 fi 5501 5502 5503 fi 5504 if test -z "$ac_cv_prog_OBJDUMP"; then 5505 ac_ct_OBJDUMP=$OBJDUMP 5506 # Extract the first word of "objdump", so it can be a program name with args. 5507 set dummy objdump; ac_word=$2 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5509 $as_echo_n "checking for $ac_word... " >&6; } 5510 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5511 $as_echo_n "(cached) " >&6 5512 else 5513 if test -n "$ac_ct_OBJDUMP"; then 5514 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5515 else 5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517 for as_dir in $PATH 5518 do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5523 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527 done 5528 done 5529 IFS=$as_save_IFS 5530 5531 fi 5532 fi 5533 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5534 if test -n "$ac_ct_OBJDUMP"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5536 $as_echo "$ac_ct_OBJDUMP" >&6; } 5537 else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539 $as_echo "no" >&6; } 5540 fi 5541 5542 if test "x$ac_ct_OBJDUMP" = x; then 5543 OBJDUMP="false" 5544 else 5545 case $cross_compiling:$ac_tool_warned in 5546 yes:) 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5549 ac_tool_warned=yes ;; 5550 esac 5551 OBJDUMP=$ac_ct_OBJDUMP 5552 fi 5553 else 5554 OBJDUMP="$ac_cv_prog_OBJDUMP" 5555 fi 5556 5557 test -z "$OBJDUMP" && OBJDUMP=objdump 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5568 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5569 if test "${lt_cv_deplibs_check_method+set}" = set; then : 5570 $as_echo_n "(cached) " >&6 5571 else 5572 lt_cv_file_magic_cmd='$MAGIC_CMD' 5573 lt_cv_file_magic_test_file= 5574 lt_cv_deplibs_check_method='unknown' 5575 # Need to set the preceding variable on all platforms that support 5576 # interlibrary dependencies. 5577 # 'none' -- dependencies not supported. 5578 # `unknown' -- same as none, but documents that we really don't know. 5579 # 'pass_all' -- all dependencies passed with no checks. 5580 # 'test_compile' -- check by making test program. 5581 # 'file_magic [[regex]]' -- check by looking for files in library path 5582 # which responds to the $file_magic_cmd with a given extended regex. 5583 # If you have `file' or equivalent on your system and you're not sure 5584 # whether `pass_all' will *always* work, you probably want this one. 5585 5586 case $host_os in 5587 aix[4-9]*) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 5591 beos*) 5592 lt_cv_deplibs_check_method=pass_all 5593 ;; 5594 5595 bsdi[45]*) 5596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5597 lt_cv_file_magic_cmd='/usr/bin/file -L' 5598 lt_cv_file_magic_test_file=/shlib/libc.so 5599 ;; 5600 5601 cygwin*) 5602 # func_win32_libid is a shell function defined in ltmain.sh 5603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5604 lt_cv_file_magic_cmd='func_win32_libid' 5605 ;; 5606 5607 mingw* | pw32*) 5608 # Base MSYS/MinGW do not provide the 'file' command needed by 5609 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5610 # unless we find 'file', for example because we are cross-compiling. 5611 if ( file / ) >/dev/null 2>&1; then 5612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5613 lt_cv_file_magic_cmd='func_win32_libid' 5614 else 5615 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5616 lt_cv_file_magic_cmd='$OBJDUMP -f' 5617 fi 5618 ;; 5619 5620 cegcc) 5621 # use the weaker test based on 'objdump'. See mingw*. 5622 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5623 lt_cv_file_magic_cmd='$OBJDUMP -f' 5624 ;; 5625 5626 darwin* | rhapsody*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629 5630 freebsd* | dragonfly*) 5631 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5632 case $host_cpu in 5633 i*86 ) 5634 # Not sure whether the presence of OpenBSD here was a mistake. 5635 # Let's accept both of them until this is cleared up. 5636 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5637 lt_cv_file_magic_cmd=/usr/bin/file 5638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5639 ;; 5640 esac 5641 else 5642 lt_cv_deplibs_check_method=pass_all 5643 fi 5644 ;; 5645 5646 gnu*) 5647 lt_cv_deplibs_check_method=pass_all 5648 ;; 5649 5650 hpux10.20* | hpux11*) 5651 lt_cv_file_magic_cmd=/usr/bin/file 5652 case $host_cpu in 5653 ia64*) 5654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5655 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5656 ;; 5657 hppa*64*) 5658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5659 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5660 ;; 5661 *) 5662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5663 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5664 ;; 5665 esac 5666 ;; 5667 5668 interix[3-9]*) 5669 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5671 ;; 5672 5673 irix5* | irix6* | nonstopux*) 5674 case $LD in 5675 *-32|*"-32 ") libmagic=32-bit;; 5676 *-n32|*"-n32 ") libmagic=N32;; 5677 *-64|*"-64 ") libmagic=64-bit;; 5678 *) libmagic=never-match;; 5679 esac 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 5683 # This must be Linux ELF. 5684 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5685 lt_cv_deplibs_check_method=pass_all 5686 ;; 5687 5688 netbsd* | netbsdelf*-gnu) 5689 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5691 else 5692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5693 fi 5694 ;; 5695 5696 newos6*) 5697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5698 lt_cv_file_magic_cmd=/usr/bin/file 5699 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5700 ;; 5701 5702 *nto* | *qnx*) 5703 lt_cv_deplibs_check_method=pass_all 5704 ;; 5705 5706 openbsd*) 5707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5709 else 5710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5711 fi 5712 ;; 5713 5714 osf3* | osf4* | osf5*) 5715 lt_cv_deplibs_check_method=pass_all 5716 ;; 5717 5718 rdos*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721 5722 solaris*) 5723 lt_cv_deplibs_check_method=pass_all 5724 ;; 5725 5726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5727 lt_cv_deplibs_check_method=pass_all 5728 ;; 5729 5730 sysv4 | sysv4.3*) 5731 case $host_vendor in 5732 motorola) 5733 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]' 5734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5735 ;; 5736 ncr) 5737 lt_cv_deplibs_check_method=pass_all 5738 ;; 5739 sequent) 5740 lt_cv_file_magic_cmd='/bin/file' 5741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5742 ;; 5743 sni) 5744 lt_cv_file_magic_cmd='/bin/file' 5745 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5746 lt_cv_file_magic_test_file=/lib/libc.so 5747 ;; 5748 siemens) 5749 lt_cv_deplibs_check_method=pass_all 5750 ;; 5751 pc) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 esac 5755 ;; 5756 5757 tpf*) 5758 lt_cv_deplibs_check_method=pass_all 5759 ;; 5760 esac 5761 5762 fi 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5764 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5765 file_magic_cmd=$lt_cv_file_magic_cmd 5766 deplibs_check_method=$lt_cv_deplibs_check_method 5767 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 if test -n "$ac_tool_prefix"; then 5781 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5782 set dummy ${ac_tool_prefix}ar; ac_word=$2 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5784 $as_echo_n "checking for $ac_word... " >&6; } 5785 if test "${ac_cv_prog_AR+set}" = set; then : 5786 $as_echo_n "(cached) " >&6 5787 else 5788 if test -n "$AR"; then 5789 ac_cv_prog_AR="$AR" # Let the user override the test. 5790 else 5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5792 for as_dir in $PATH 5793 do 5794 IFS=$as_save_IFS 5795 test -z "$as_dir" && as_dir=. 5796 for ac_exec_ext in '' $ac_executable_extensions; do 5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5798 ac_cv_prog_AR="${ac_tool_prefix}ar" 5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5800 break 2 5801 fi 5802 done 5803 done 5804 IFS=$as_save_IFS 5805 5806 fi 5807 fi 5808 AR=$ac_cv_prog_AR 5809 if test -n "$AR"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5811 $as_echo "$AR" >&6; } 5812 else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814 $as_echo "no" >&6; } 5815 fi 5816 5817 5818 fi 5819 if test -z "$ac_cv_prog_AR"; then 5820 ac_ct_AR=$AR 5821 # Extract the first word of "ar", so it can be a program name with args. 5822 set dummy ar; ac_word=$2 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824 $as_echo_n "checking for $ac_word... " >&6; } 5825 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5826 $as_echo_n "(cached) " >&6 5827 else 5828 if test -n "$ac_ct_AR"; then 5829 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5830 else 5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832 for as_dir in $PATH 5833 do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5838 ac_cv_prog_ac_ct_AR="ar" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842 done 5843 done 5844 IFS=$as_save_IFS 5845 5846 fi 5847 fi 5848 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5849 if test -n "$ac_ct_AR"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5851 $as_echo "$ac_ct_AR" >&6; } 5852 else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854 $as_echo "no" >&6; } 5855 fi 5856 5857 if test "x$ac_ct_AR" = x; then 5858 AR="false" 5859 else 5860 case $cross_compiling:$ac_tool_warned in 5861 yes:) 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5864 ac_tool_warned=yes ;; 5865 esac 5866 AR=$ac_ct_AR 5867 fi 5868 else 5869 AR="$ac_cv_prog_AR" 5870 fi 5871 5872 test -z "$AR" && AR=ar 5873 test -z "$AR_FLAGS" && AR_FLAGS=cru 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 if test -n "$ac_tool_prefix"; then 5886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5887 set dummy ${ac_tool_prefix}strip; ac_word=$2 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889 $as_echo_n "checking for $ac_word... " >&6; } 5890 if test "${ac_cv_prog_STRIP+set}" = set; then : 5891 $as_echo_n "(cached) " >&6 5892 else 5893 if test -n "$STRIP"; then 5894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5895 else 5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897 for as_dir in $PATH 5898 do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5903 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907 done 5908 done 5909 IFS=$as_save_IFS 5910 5911 fi 5912 fi 5913 STRIP=$ac_cv_prog_STRIP 5914 if test -n "$STRIP"; then 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5916 $as_echo "$STRIP" >&6; } 5917 else 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919 $as_echo "no" >&6; } 5920 fi 5921 5922 5923 fi 5924 if test -z "$ac_cv_prog_STRIP"; then 5925 ac_ct_STRIP=$STRIP 5926 # Extract the first word of "strip", so it can be a program name with args. 5927 set dummy strip; ac_word=$2 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929 $as_echo_n "checking for $ac_word... " >&6; } 5930 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5931 $as_echo_n "(cached) " >&6 5932 else 5933 if test -n "$ac_ct_STRIP"; then 5934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5935 else 5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5937 for as_dir in $PATH 5938 do 5939 IFS=$as_save_IFS 5940 test -z "$as_dir" && as_dir=. 5941 for ac_exec_ext in '' $ac_executable_extensions; do 5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5943 ac_cv_prog_ac_ct_STRIP="strip" 5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5945 break 2 5946 fi 5947 done 5948 done 5949 IFS=$as_save_IFS 5950 5951 fi 5952 fi 5953 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5954 if test -n "$ac_ct_STRIP"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5956 $as_echo "$ac_ct_STRIP" >&6; } 5957 else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959 $as_echo "no" >&6; } 5960 fi 5961 5962 if test "x$ac_ct_STRIP" = x; then 5963 STRIP=":" 5964 else 5965 case $cross_compiling:$ac_tool_warned in 5966 yes:) 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5969 ac_tool_warned=yes ;; 5970 esac 5971 STRIP=$ac_ct_STRIP 5972 fi 5973 else 5974 STRIP="$ac_cv_prog_STRIP" 5975 fi 5976 5977 test -z "$STRIP" && STRIP=: 5978 5979 5980 5981 5982 5983 5984 if test -n "$ac_tool_prefix"; then 5985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5986 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5988 $as_echo_n "checking for $ac_word... " >&6; } 5989 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5990 $as_echo_n "(cached) " >&6 5991 else 5992 if test -n "$RANLIB"; then 5993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5994 else 5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996 for as_dir in $PATH 5997 do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006 done 6007 done 6008 IFS=$as_save_IFS 6009 6010 fi 6011 fi 6012 RANLIB=$ac_cv_prog_RANLIB 6013 if test -n "$RANLIB"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6015 $as_echo "$RANLIB" >&6; } 6016 else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018 $as_echo "no" >&6; } 6019 fi 6020 6021 6022 fi 6023 if test -z "$ac_cv_prog_RANLIB"; then 6024 ac_ct_RANLIB=$RANLIB 6025 # Extract the first word of "ranlib", so it can be a program name with args. 6026 set dummy ranlib; ac_word=$2 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6028 $as_echo_n "checking for $ac_word... " >&6; } 6029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6030 $as_echo_n "(cached) " >&6 6031 else 6032 if test -n "$ac_ct_RANLIB"; then 6033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6034 else 6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036 for as_dir in $PATH 6037 do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6042 ac_cv_prog_ac_ct_RANLIB="ranlib" 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046 done 6047 done 6048 IFS=$as_save_IFS 6049 6050 fi 6051 fi 6052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6053 if test -n "$ac_ct_RANLIB"; then 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6055 $as_echo "$ac_ct_RANLIB" >&6; } 6056 else 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058 $as_echo "no" >&6; } 6059 fi 6060 6061 if test "x$ac_ct_RANLIB" = x; then 6062 RANLIB=":" 6063 else 6064 case $cross_compiling:$ac_tool_warned in 6065 yes:) 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6068 ac_tool_warned=yes ;; 6069 esac 6070 RANLIB=$ac_ct_RANLIB 6071 fi 6072 else 6073 RANLIB="$ac_cv_prog_RANLIB" 6074 fi 6075 6076 test -z "$RANLIB" && RANLIB=: 6077 6078 6079 6080 6081 6082 6083 # Determine commands to create old-style static archives. 6084 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6085 old_postinstall_cmds='chmod 644 $oldlib' 6086 old_postuninstall_cmds= 6087 6088 if test -n "$RANLIB"; then 6089 case $host_os in 6090 openbsd*) 6091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6092 ;; 6093 *) 6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6095 ;; 6096 esac 6097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6098 fi 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 # If no C compiler was specified, use CC. 6134 LTCC=${LTCC-"$CC"} 6135 6136 # If no C compiler flags were specified, use CFLAGS. 6137 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6138 6139 # Allow CC to be a program name with arguments. 6140 compiler=$CC 6141 6142 6143 # Check for command to grab the raw symbol name followed by C symbol from nm. 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6145 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6146 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6147 $as_echo_n "(cached) " >&6 6148 else 6149 6150 # These are sane defaults that work on at least a few old systems. 6151 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6152 6153 # Character class describing NM global symbol codes. 6154 symcode='[BCDEGRST]' 6155 6156 # Regexp to match symbols that can be accessed directly from C. 6157 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6158 6159 # Define system-specific variables. 6160 case $host_os in 6161 aix*) 6162 symcode='[BCDT]' 6163 ;; 6164 cygwin* | mingw* | pw32* | cegcc*) 6165 symcode='[ABCDGISTW]' 6166 ;; 6167 hpux*) 6168 if test "$host_cpu" = ia64; then 6169 symcode='[ABCDEGRST]' 6170 fi 6171 ;; 6172 irix* | nonstopux*) 6173 symcode='[BCDEGRST]' 6174 ;; 6175 osf*) 6176 symcode='[BCDEGQRST]' 6177 ;; 6178 solaris*) 6179 symcode='[BDRT]' 6180 ;; 6181 sco3.2v5*) 6182 symcode='[DT]' 6183 ;; 6184 sysv4.2uw2*) 6185 symcode='[DT]' 6186 ;; 6187 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6188 symcode='[ABDT]' 6189 ;; 6190 sysv4) 6191 symcode='[DFNSTU]' 6192 ;; 6193 esac 6194 6195 # If we're using GNU nm, then use its standard symbol codes. 6196 case `$NM -V 2>&1` in 6197 *GNU* | *'with BFD'*) 6198 symcode='[ABCDGIRSTW]' ;; 6199 esac 6200 6201 # Transform an extracted symbol line into a proper C declaration. 6202 # Some systems (esp. on ia64) link data and code symbols differently, 6203 # so use this general approach. 6204 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6205 6206 # Transform an extracted symbol line into symbol name and symbol address 6207 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6208 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'" 6209 6210 # Handle CRLF in mingw tool chain 6211 opt_cr= 6212 case $build_os in 6213 mingw*) 6214 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6215 ;; 6216 esac 6217 6218 # Try without a prefix underscore, then with it. 6219 for ac_symprfx in "" "_"; do 6220 6221 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6222 symxfrm="\\1 $ac_symprfx\\2 \\2" 6223 6224 # Write the raw and C identifiers. 6225 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6226 # Fake it for dumpbin and say T for any non-static function 6227 # and D for any global variable. 6228 # Also find C++ and __fastcall symbols from MSVC++, 6229 # which start with @ or ?. 6230 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6231 " {last_section=section; section=\$ 3};"\ 6232 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6233 " \$ 0!~/External *\|/{next};"\ 6234 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6235 " {if(hide[section]) next};"\ 6236 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6237 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6238 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6239 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6240 " ' prfx=^$ac_symprfx" 6241 else 6242 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6243 fi 6244 6245 # Check to see that the pipe works correctly. 6246 pipe_works=no 6247 6248 rm -f conftest* 6249 cat > conftest.$ac_ext <<_LT_EOF 6250 #ifdef __cplusplus 6251 extern "C" { 6252 #endif 6253 char nm_test_var; 6254 void nm_test_func(void); 6255 void nm_test_func(void){} 6256 #ifdef __cplusplus 6257 } 6258 #endif 6259 int main(){nm_test_var='a';nm_test_func();return(0);} 6260 _LT_EOF 6261 6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6263 (eval $ac_compile) 2>&5 6264 ac_status=$? 6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6266 test $ac_status = 0; }; then 6267 # Now try to grab the symbols. 6268 nlist=conftest.nm 6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6270 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6271 ac_status=$? 6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6273 test $ac_status = 0; } && test -s "$nlist"; then 6274 # Try sorting and uniquifying the output. 6275 if sort "$nlist" | uniq > "$nlist"T; then 6276 mv -f "$nlist"T "$nlist" 6277 else 6278 rm -f "$nlist"T 6279 fi 6280 6281 # Make sure that we snagged all the symbols we need. 6282 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6283 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6284 cat <<_LT_EOF > conftest.$ac_ext 6285 #ifdef __cplusplus 6286 extern "C" { 6287 #endif 6288 6289 _LT_EOF 6290 # Now generate the symbol file. 6291 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6292 6293 cat <<_LT_EOF >> conftest.$ac_ext 6294 6295 /* The mapping between symbol names and symbols. */ 6296 const struct { 6297 const char *name; 6298 void *address; 6299 } 6300 lt__PROGRAM__LTX_preloaded_symbols[] = 6301 { 6302 { "@PROGRAM@", (void *) 0 }, 6303 _LT_EOF 6304 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6305 cat <<\_LT_EOF >> conftest.$ac_ext 6306 {0, (void *) 0} 6307 }; 6308 6309 /* This works around a problem in FreeBSD linker */ 6310 #ifdef FREEBSD_WORKAROUND 6311 static const void *lt_preloaded_setup() { 6312 return lt__PROGRAM__LTX_preloaded_symbols; 6313 } 6314 #endif 6315 6316 #ifdef __cplusplus 6317 } 6318 #endif 6319 _LT_EOF 6320 # Now try linking the two files. 6321 mv conftest.$ac_objext conftstm.$ac_objext 6322 lt_save_LIBS="$LIBS" 6323 lt_save_CFLAGS="$CFLAGS" 6324 LIBS="conftstm.$ac_objext" 6325 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6327 (eval $ac_link) 2>&5 6328 ac_status=$? 6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6330 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6331 pipe_works=yes 6332 fi 6333 LIBS="$lt_save_LIBS" 6334 CFLAGS="$lt_save_CFLAGS" 6335 else 6336 echo "cannot find nm_test_func in $nlist" >&5 6337 fi 6338 else 6339 echo "cannot find nm_test_var in $nlist" >&5 6340 fi 6341 else 6342 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6343 fi 6344 else 6345 echo "$progname: failed program was:" >&5 6346 cat conftest.$ac_ext >&5 6347 fi 6348 rm -rf conftest* conftst* 6349 6350 # Do not use the global_symbol_pipe unless it works. 6351 if test "$pipe_works" = yes; then 6352 break 6353 else 6354 lt_cv_sys_global_symbol_pipe= 6355 fi 6356 done 6357 6358 fi 6359 6360 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6361 lt_cv_sys_global_symbol_to_cdecl= 6362 fi 6363 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6365 $as_echo "failed" >&6; } 6366 else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6368 $as_echo "ok" >&6; } 6369 fi 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 # Check whether --enable-libtool-lock was given. 6394 if test "${enable_libtool_lock+set}" = set; then : 6395 enableval=$enable_libtool_lock; 6396 fi 6397 6398 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6399 6400 # Some flags need to be propagated to the compiler or linker for good 6401 # libtool support. 6402 case $host in 6403 ia64-*-hpux*) 6404 # Find out which ABI we are using. 6405 echo 'int i;' > conftest.$ac_ext 6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6410 test $ac_status = 0; }; then 6411 case `/usr/bin/file conftest.$ac_objext` in 6412 *ELF-32*) 6413 HPUX_IA64_MODE="32" 6414 ;; 6415 *ELF-64*) 6416 HPUX_IA64_MODE="64" 6417 ;; 6418 esac 6419 fi 6420 rm -rf conftest* 6421 ;; 6422 *-*-irix6*) 6423 # Find out which ABI we are using. 6424 echo '#line 6424 "configure"' > conftest.$ac_ext 6425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6426 (eval $ac_compile) 2>&5 6427 ac_status=$? 6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6429 test $ac_status = 0; }; then 6430 if test "$lt_cv_prog_gnu_ld" = yes; then 6431 case `/usr/bin/file conftest.$ac_objext` in 6432 *32-bit*) 6433 LD="${LD-ld} -melf32bsmip" 6434 ;; 6435 *N32*) 6436 LD="${LD-ld} -melf32bmipn32" 6437 ;; 6438 *64-bit*) 6439 LD="${LD-ld} -melf64bmip" 6440 ;; 6441 esac 6442 else 6443 case `/usr/bin/file conftest.$ac_objext` in 6444 *32-bit*) 6445 LD="${LD-ld} -32" 6446 ;; 6447 *N32*) 6448 LD="${LD-ld} -n32" 6449 ;; 6450 *64-bit*) 6451 LD="${LD-ld} -64" 6452 ;; 6453 esac 6454 fi 6455 fi 6456 rm -rf conftest* 6457 ;; 6458 6459 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6460 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6461 # Find out which ABI we are using. 6462 echo 'int i;' > conftest.$ac_ext 6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6464 (eval $ac_compile) 2>&5 6465 ac_status=$? 6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6467 test $ac_status = 0; }; then 6468 case `/usr/bin/file conftest.o` in 6469 *32-bit*) 6470 case $host in 6471 x86_64-*kfreebsd*-gnu) 6472 LD="${LD-ld} -m elf_i386_fbsd" 6473 ;; 6474 x86_64-*linux*) 6475 LD="${LD-ld} -m elf_i386" 6476 ;; 6477 ppc64-*linux*|powerpc64-*linux*) 6478 LD="${LD-ld} -m elf32ppclinux" 6479 ;; 6480 s390x-*linux*) 6481 LD="${LD-ld} -m elf_s390" 6482 ;; 6483 sparc64-*linux*) 6484 LD="${LD-ld} -m elf32_sparc" 6485 ;; 6486 esac 6487 ;; 6488 *64-bit*) 6489 case $host in 6490 x86_64-*kfreebsd*-gnu) 6491 LD="${LD-ld} -m elf_x86_64_fbsd" 6492 ;; 6493 x86_64-*linux*) 6494 LD="${LD-ld} -m elf_x86_64" 6495 ;; 6496 ppc*-*linux*|powerpc*-*linux*) 6497 LD="${LD-ld} -m elf64ppc" 6498 ;; 6499 s390*-*linux*|s390*-*tpf*) 6500 LD="${LD-ld} -m elf64_s390" 6501 ;; 6502 sparc*-*linux*) 6503 LD="${LD-ld} -m elf64_sparc" 6504 ;; 6505 esac 6506 ;; 6507 esac 6508 fi 6509 rm -rf conftest* 6510 ;; 6511 6512 *-*-sco3.2v5*) 6513 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6514 SAVE_CFLAGS="$CFLAGS" 6515 CFLAGS="$CFLAGS -belf" 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6517 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6518 if test "${lt_cv_cc_needs_belf+set}" = set; then : 6519 $as_echo_n "(cached) " >&6 6520 else 6521 ac_ext=c 6522 ac_cpp='$CPP $CPPFLAGS' 6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6526 6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6528 /* end confdefs.h. */ 6529 6530 int 6531 main () 6532 { 6533 6534 ; 6535 return 0; 6536 } 6537 _ACEOF 6538 if ac_fn_c_try_link "$LINENO"; then : 6539 lt_cv_cc_needs_belf=yes 6540 else 6541 lt_cv_cc_needs_belf=no 6542 fi 6543 rm -f core conftest.err conftest.$ac_objext \ 6544 conftest$ac_exeext conftest.$ac_ext 6545 ac_ext=c 6546 ac_cpp='$CPP $CPPFLAGS' 6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6550 6551 fi 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6553 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6554 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6555 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6556 CFLAGS="$SAVE_CFLAGS" 6557 fi 6558 ;; 6559 sparc*-*solaris*) 6560 # Find out which ABI we are using. 6561 echo 'int i;' > conftest.$ac_ext 6562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6563 (eval $ac_compile) 2>&5 6564 ac_status=$? 6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6566 test $ac_status = 0; }; then 6567 case `/usr/bin/file conftest.o` in 6568 *64-bit*) 6569 case $lt_cv_prog_gnu_ld in 6570 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6571 *) 6572 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6573 LD="${LD-ld} -64" 6574 fi 6575 ;; 6576 esac 6577 ;; 6578 esac 6579 fi 6580 rm -rf conftest* 6581 ;; 6582 esac 6583 6584 need_locks="$enable_libtool_lock" 6585 6586 6587 case $host_os in 6588 rhapsody* | darwin*) 6589 if test -n "$ac_tool_prefix"; then 6590 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6591 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6593 $as_echo_n "checking for $ac_word... " >&6; } 6594 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6595 $as_echo_n "(cached) " >&6 6596 else 6597 if test -n "$DSYMUTIL"; then 6598 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6599 else 6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6601 for as_dir in $PATH 6602 do 6603 IFS=$as_save_IFS 6604 test -z "$as_dir" && as_dir=. 6605 for ac_exec_ext in '' $ac_executable_extensions; do 6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6607 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6609 break 2 6610 fi 6611 done 6612 done 6613 IFS=$as_save_IFS 6614 6615 fi 6616 fi 6617 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6618 if test -n "$DSYMUTIL"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6620 $as_echo "$DSYMUTIL" >&6; } 6621 else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6623 $as_echo "no" >&6; } 6624 fi 6625 6626 6627 fi 6628 if test -z "$ac_cv_prog_DSYMUTIL"; then 6629 ac_ct_DSYMUTIL=$DSYMUTIL 6630 # Extract the first word of "dsymutil", so it can be a program name with args. 6631 set dummy dsymutil; ac_word=$2 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633 $as_echo_n "checking for $ac_word... " >&6; } 6634 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6635 $as_echo_n "(cached) " >&6 6636 else 6637 if test -n "$ac_ct_DSYMUTIL"; then 6638 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6639 else 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641 for as_dir in $PATH 6642 do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651 done 6652 done 6653 IFS=$as_save_IFS 6654 6655 fi 6656 fi 6657 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6658 if test -n "$ac_ct_DSYMUTIL"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6660 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6661 else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663 $as_echo "no" >&6; } 6664 fi 6665 6666 if test "x$ac_ct_DSYMUTIL" = x; then 6667 DSYMUTIL=":" 6668 else 6669 case $cross_compiling:$ac_tool_warned in 6670 yes:) 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6673 ac_tool_warned=yes ;; 6674 esac 6675 DSYMUTIL=$ac_ct_DSYMUTIL 6676 fi 6677 else 6678 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6679 fi 6680 6681 if test -n "$ac_tool_prefix"; then 6682 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6683 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685 $as_echo_n "checking for $ac_word... " >&6; } 6686 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6687 $as_echo_n "(cached) " >&6 6688 else 6689 if test -n "$NMEDIT"; then 6690 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6691 else 6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6693 for as_dir in $PATH 6694 do 6695 IFS=$as_save_IFS 6696 test -z "$as_dir" && as_dir=. 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6701 break 2 6702 fi 6703 done 6704 done 6705 IFS=$as_save_IFS 6706 6707 fi 6708 fi 6709 NMEDIT=$ac_cv_prog_NMEDIT 6710 if test -n "$NMEDIT"; then 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6712 $as_echo "$NMEDIT" >&6; } 6713 else 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715 $as_echo "no" >&6; } 6716 fi 6717 6718 6719 fi 6720 if test -z "$ac_cv_prog_NMEDIT"; then 6721 ac_ct_NMEDIT=$NMEDIT 6722 # Extract the first word of "nmedit", so it can be a program name with args. 6723 set dummy nmedit; ac_word=$2 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725 $as_echo_n "checking for $ac_word... " >&6; } 6726 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6727 $as_echo_n "(cached) " >&6 6728 else 6729 if test -n "$ac_ct_NMEDIT"; then 6730 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6731 else 6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733 for as_dir in $PATH 6734 do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6739 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743 done 6744 done 6745 IFS=$as_save_IFS 6746 6747 fi 6748 fi 6749 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6750 if test -n "$ac_ct_NMEDIT"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6752 $as_echo "$ac_ct_NMEDIT" >&6; } 6753 else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755 $as_echo "no" >&6; } 6756 fi 6757 6758 if test "x$ac_ct_NMEDIT" = x; then 6759 NMEDIT=":" 6760 else 6761 case $cross_compiling:$ac_tool_warned in 6762 yes:) 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6765 ac_tool_warned=yes ;; 6766 esac 6767 NMEDIT=$ac_ct_NMEDIT 6768 fi 6769 else 6770 NMEDIT="$ac_cv_prog_NMEDIT" 6771 fi 6772 6773 if test -n "$ac_tool_prefix"; then 6774 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6775 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777 $as_echo_n "checking for $ac_word... " >&6; } 6778 if test "${ac_cv_prog_LIPO+set}" = set; then : 6779 $as_echo_n "(cached) " >&6 6780 else 6781 if test -n "$LIPO"; then 6782 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6783 else 6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6785 for as_dir in $PATH 6786 do 6787 IFS=$as_save_IFS 6788 test -z "$as_dir" && as_dir=. 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6791 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6793 break 2 6794 fi 6795 done 6796 done 6797 IFS=$as_save_IFS 6798 6799 fi 6800 fi 6801 LIPO=$ac_cv_prog_LIPO 6802 if test -n "$LIPO"; then 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6804 $as_echo "$LIPO" >&6; } 6805 else 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6807 $as_echo "no" >&6; } 6808 fi 6809 6810 6811 fi 6812 if test -z "$ac_cv_prog_LIPO"; then 6813 ac_ct_LIPO=$LIPO 6814 # Extract the first word of "lipo", so it can be a program name with args. 6815 set dummy lipo; ac_word=$2 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817 $as_echo_n "checking for $ac_word... " >&6; } 6818 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6819 $as_echo_n "(cached) " >&6 6820 else 6821 if test -n "$ac_ct_LIPO"; then 6822 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6823 else 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825 for as_dir in $PATH 6826 do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6831 ac_cv_prog_ac_ct_LIPO="lipo" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 fi 6840 fi 6841 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6842 if test -n "$ac_ct_LIPO"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6844 $as_echo "$ac_ct_LIPO" >&6; } 6845 else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847 $as_echo "no" >&6; } 6848 fi 6849 6850 if test "x$ac_ct_LIPO" = x; then 6851 LIPO=":" 6852 else 6853 case $cross_compiling:$ac_tool_warned in 6854 yes:) 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6857 ac_tool_warned=yes ;; 6858 esac 6859 LIPO=$ac_ct_LIPO 6860 fi 6861 else 6862 LIPO="$ac_cv_prog_LIPO" 6863 fi 6864 6865 if test -n "$ac_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6867 set dummy ${ac_tool_prefix}otool; ac_word=$2 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869 $as_echo_n "checking for $ac_word... " >&6; } 6870 if test "${ac_cv_prog_OTOOL+set}" = set; then : 6871 $as_echo_n "(cached) " >&6 6872 else 6873 if test -n "$OTOOL"; then 6874 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6875 else 6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877 for as_dir in $PATH 6878 do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6883 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887 done 6888 done 6889 IFS=$as_save_IFS 6890 6891 fi 6892 fi 6893 OTOOL=$ac_cv_prog_OTOOL 6894 if test -n "$OTOOL"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6896 $as_echo "$OTOOL" >&6; } 6897 else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899 $as_echo "no" >&6; } 6900 fi 6901 6902 6903 fi 6904 if test -z "$ac_cv_prog_OTOOL"; then 6905 ac_ct_OTOOL=$OTOOL 6906 # Extract the first word of "otool", so it can be a program name with args. 6907 set dummy otool; ac_word=$2 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909 $as_echo_n "checking for $ac_word... " >&6; } 6910 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6911 $as_echo_n "(cached) " >&6 6912 else 6913 if test -n "$ac_ct_OTOOL"; then 6914 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6915 else 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6923 ac_cv_prog_ac_ct_OTOOL="otool" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927 done 6928 done 6929 IFS=$as_save_IFS 6930 6931 fi 6932 fi 6933 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6934 if test -n "$ac_ct_OTOOL"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6936 $as_echo "$ac_ct_OTOOL" >&6; } 6937 else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939 $as_echo "no" >&6; } 6940 fi 6941 6942 if test "x$ac_ct_OTOOL" = x; then 6943 OTOOL=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946 yes:) 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949 ac_tool_warned=yes ;; 6950 esac 6951 OTOOL=$ac_ct_OTOOL 6952 fi 6953 else 6954 OTOOL="$ac_cv_prog_OTOOL" 6955 fi 6956 6957 if test -n "$ac_tool_prefix"; then 6958 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6959 set dummy ${ac_tool_prefix}otool64; ac_word=$2 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961 $as_echo_n "checking for $ac_word... " >&6; } 6962 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6963 $as_echo_n "(cached) " >&6 6964 else 6965 if test -n "$OTOOL64"; then 6966 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6967 else 6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969 for as_dir in $PATH 6970 do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6975 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979 done 6980 done 6981 IFS=$as_save_IFS 6982 6983 fi 6984 fi 6985 OTOOL64=$ac_cv_prog_OTOOL64 6986 if test -n "$OTOOL64"; then 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6988 $as_echo "$OTOOL64" >&6; } 6989 else 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6991 $as_echo "no" >&6; } 6992 fi 6993 6994 6995 fi 6996 if test -z "$ac_cv_prog_OTOOL64"; then 6997 ac_ct_OTOOL64=$OTOOL64 6998 # Extract the first word of "otool64", so it can be a program name with args. 6999 set dummy otool64; ac_word=$2 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001 $as_echo_n "checking for $ac_word... " >&6; } 7002 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7003 $as_echo_n "(cached) " >&6 7004 else 7005 if test -n "$ac_ct_OTOOL64"; then 7006 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7007 else 7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009 for as_dir in $PATH 7010 do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7015 ac_cv_prog_ac_ct_OTOOL64="otool64" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019 done 7020 done 7021 IFS=$as_save_IFS 7022 7023 fi 7024 fi 7025 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7026 if test -n "$ac_ct_OTOOL64"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7028 $as_echo "$ac_ct_OTOOL64" >&6; } 7029 else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031 $as_echo "no" >&6; } 7032 fi 7033 7034 if test "x$ac_ct_OTOOL64" = x; then 7035 OTOOL64=":" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038 yes:) 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041 ac_tool_warned=yes ;; 7042 esac 7043 OTOOL64=$ac_ct_OTOOL64 7044 fi 7045 else 7046 OTOOL64="$ac_cv_prog_OTOOL64" 7047 fi 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7076 $as_echo_n "checking for -single_module linker flag... " >&6; } 7077 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7078 $as_echo_n "(cached) " >&6 7079 else 7080 lt_cv_apple_cc_single_mod=no 7081 if test -z "${LT_MULTI_MODULE}"; then 7082 # By default we will add the -single_module flag. You can override 7083 # by either setting the environment variable LT_MULTI_MODULE 7084 # non-empty at configure time, or by adding -multi_module to the 7085 # link flags. 7086 rm -rf libconftest.dylib* 7087 echo "int foo(void){return 1;}" > conftest.c 7088 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7089 -dynamiclib -Wl,-single_module conftest.c" >&5 7090 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7091 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7092 _lt_result=$? 7093 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7094 lt_cv_apple_cc_single_mod=yes 7095 else 7096 cat conftest.err >&5 7097 fi 7098 rm -rf libconftest.dylib* 7099 rm -f conftest.* 7100 fi 7101 fi 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7103 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7105 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7106 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7107 $as_echo_n "(cached) " >&6 7108 else 7109 lt_cv_ld_exported_symbols_list=no 7110 save_LDFLAGS=$LDFLAGS 7111 echo "_main" > conftest.sym 7112 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114 /* end confdefs.h. */ 7115 7116 int 7117 main () 7118 { 7119 7120 ; 7121 return 0; 7122 } 7123 _ACEOF 7124 if ac_fn_c_try_link "$LINENO"; then : 7125 lt_cv_ld_exported_symbols_list=yes 7126 else 7127 lt_cv_ld_exported_symbols_list=no 7128 fi 7129 rm -f core conftest.err conftest.$ac_objext \ 7130 conftest$ac_exeext conftest.$ac_ext 7131 LDFLAGS="$save_LDFLAGS" 7132 7133 fi 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7135 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7136 case $host_os in 7137 rhapsody* | darwin1.[012]) 7138 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7139 darwin1.*) 7140 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7141 darwin*) # darwin 5.x on 7142 # if running on 10.5 or later, the deployment target defaults 7143 # to the OS version, if on x86, and 10.4, the deployment 7144 # target defaults to 10.4. Don't you love it? 7145 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7146 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7147 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7148 10.[012]*) 7149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7150 10.*) 7151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7152 esac 7153 ;; 7154 esac 7155 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7156 _lt_dar_single_mod='$single_module' 7157 fi 7158 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7159 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7160 else 7161 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7162 fi 7163 if test "$DSYMUTIL" != ":"; then 7164 _lt_dsymutil='~$DSYMUTIL $lib || :' 7165 else 7166 _lt_dsymutil= 7167 fi 7168 ;; 7169 esac 7170 7171 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7173 $as_echo_n "checking for ANSI C header files... " >&6; } 7174 if test "${ac_cv_header_stdc+set}" = set; then : 7175 $as_echo_n "(cached) " >&6 7176 else 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178 /* end confdefs.h. */ 7179 #include <stdlib.h> 7180 #include <stdarg.h> 7181 #include <string.h> 7182 #include <float.h> 7183 7184 int 7185 main () 7186 { 7187 7188 ; 7189 return 0; 7190 } 7191 _ACEOF 7192 if ac_fn_c_try_compile "$LINENO"; then : 7193 ac_cv_header_stdc=yes 7194 else 7195 ac_cv_header_stdc=no 7196 fi 7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7198 7199 if test $ac_cv_header_stdc = yes; then 7200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202 /* end confdefs.h. */ 7203 #include <string.h> 7204 7205 _ACEOF 7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7207 $EGREP "memchr" >/dev/null 2>&1; then : 7208 7209 else 7210 ac_cv_header_stdc=no 7211 fi 7212 rm -f conftest* 7213 7214 fi 7215 7216 if test $ac_cv_header_stdc = yes; then 7217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7219 /* end confdefs.h. */ 7220 #include <stdlib.h> 7221 7222 _ACEOF 7223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7224 $EGREP "free" >/dev/null 2>&1; then : 7225 7226 else 7227 ac_cv_header_stdc=no 7228 fi 7229 rm -f conftest* 7230 7231 fi 7232 7233 if test $ac_cv_header_stdc = yes; then 7234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7235 if test "$cross_compiling" = yes; then : 7236 : 7237 else 7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239 /* end confdefs.h. */ 7240 #include <ctype.h> 7241 #include <stdlib.h> 7242 #if ((' ' & 0x0FF) == 0x020) 7243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7245 #else 7246 # define ISLOWER(c) \ 7247 (('a' <= (c) && (c) <= 'i') \ 7248 || ('j' <= (c) && (c) <= 'r') \ 7249 || ('s' <= (c) && (c) <= 'z')) 7250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7251 #endif 7252 7253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7254 int 7255 main () 7256 { 7257 int i; 7258 for (i = 0; i < 256; i++) 7259 if (XOR (islower (i), ISLOWER (i)) 7260 || toupper (i) != TOUPPER (i)) 7261 return 2; 7262 return 0; 7263 } 7264 _ACEOF 7265 if ac_fn_c_try_run "$LINENO"; then : 7266 7267 else 7268 ac_cv_header_stdc=no 7269 fi 7270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7271 conftest.$ac_objext conftest.beam conftest.$ac_ext 7272 fi 7273 7274 fi 7275 fi 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7277 $as_echo "$ac_cv_header_stdc" >&6; } 7278 if test $ac_cv_header_stdc = yes; then 7279 7280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7281 7282 fi 7283 7284 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7286 inttypes.h stdint.h unistd.h 7287 do : 7288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7290 " 7291 eval as_val=\$$as_ac_Header 7292 if test "x$as_val" = x""yes; then : 7293 cat >>confdefs.h <<_ACEOF 7294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7295 _ACEOF 7296 7297 fi 7298 7299 done 7300 7301 7302 for ac_header in dlfcn.h 7303 do : 7304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7305 " 7306 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7307 cat >>confdefs.h <<_ACEOF 7308 #define HAVE_DLFCN_H 1 7309 _ACEOF 7310 7311 fi 7312 7313 done 7314 7315 7316 7317 ac_ext=cpp 7318 ac_cpp='$CXXCPP $CPPFLAGS' 7319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7322 if test -z "$CXX"; then 7323 if test -n "$CCC"; then 7324 CXX=$CCC 7325 else 7326 if test -n "$ac_tool_prefix"; then 7327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7328 do 7329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7332 $as_echo_n "checking for $ac_word... " >&6; } 7333 if test "${ac_cv_prog_CXX+set}" = set; then : 7334 $as_echo_n "(cached) " >&6 7335 else 7336 if test -n "$CXX"; then 7337 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7338 else 7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340 for as_dir in $PATH 7341 do 7342 IFS=$as_save_IFS 7343 test -z "$as_dir" && as_dir=. 7344 for ac_exec_ext in '' $ac_executable_extensions; do 7345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7346 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7348 break 2 7349 fi 7350 done 7351 done 7352 IFS=$as_save_IFS 7353 7354 fi 7355 fi 7356 CXX=$ac_cv_prog_CXX 7357 if test -n "$CXX"; then 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7359 $as_echo "$CXX" >&6; } 7360 else 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7362 $as_echo "no" >&6; } 7363 fi 7364 7365 7366 test -n "$CXX" && break 7367 done 7368 fi 7369 if test -z "$CXX"; then 7370 ac_ct_CXX=$CXX 7371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7372 do 7373 # Extract the first word of "$ac_prog", so it can be a program name with args. 7374 set dummy $ac_prog; ac_word=$2 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376 $as_echo_n "checking for $ac_word... " >&6; } 7377 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 7378 $as_echo_n "(cached) " >&6 7379 else 7380 if test -n "$ac_ct_CXX"; then 7381 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7382 else 7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384 for as_dir in $PATH 7385 do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_prog_ac_ct_CXX="$ac_prog" 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394 done 7395 done 7396 IFS=$as_save_IFS 7397 7398 fi 7399 fi 7400 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7401 if test -n "$ac_ct_CXX"; then 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7403 $as_echo "$ac_ct_CXX" >&6; } 7404 else 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7406 $as_echo "no" >&6; } 7407 fi 7408 7409 7410 test -n "$ac_ct_CXX" && break 7411 done 7412 7413 if test "x$ac_ct_CXX" = x; then 7414 CXX="g++" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417 yes:) 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7420 ac_tool_warned=yes ;; 7421 esac 7422 CXX=$ac_ct_CXX 7423 fi 7424 fi 7425 7426 fi 7427 fi 7428 # Provide some information about the compiler. 7429 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7430 set X $ac_compile 7431 ac_compiler=$2 7432 for ac_option in --version -v -V -qversion; do 7433 { { ac_try="$ac_compiler $ac_option >&5" 7434 case "(($ac_try" in 7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7436 *) ac_try_echo=$ac_try;; 7437 esac 7438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7439 $as_echo "$ac_try_echo"; } >&5 7440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7441 ac_status=$? 7442 if test -s conftest.err; then 7443 sed '10a\ 7444 ... rest of stderr output deleted ... 7445 10q' conftest.err >conftest.er1 7446 cat conftest.er1 >&5 7447 fi 7448 rm -f conftest.er1 conftest.err 7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7450 test $ac_status = 0; } 7451 done 7452 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7454 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 7456 $as_echo_n "(cached) " >&6 7457 else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459 /* end confdefs.h. */ 7460 7461 int 7462 main () 7463 { 7464 #ifndef __GNUC__ 7465 choke me 7466 #endif 7467 7468 ; 7469 return 0; 7470 } 7471 _ACEOF 7472 if ac_fn_cxx_try_compile "$LINENO"; then : 7473 ac_compiler_gnu=yes 7474 else 7475 ac_compiler_gnu=no 7476 fi 7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7478 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7479 7480 fi 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7482 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7483 if test $ac_compiler_gnu = yes; then 7484 GXX=yes 7485 else 7486 GXX= 7487 fi 7488 ac_test_CXXFLAGS=${CXXFLAGS+set} 7489 ac_save_CXXFLAGS=$CXXFLAGS 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7491 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 7492 if test "${ac_cv_prog_cxx_g+set}" = set; then : 7493 $as_echo_n "(cached) " >&6 7494 else 7495 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7496 ac_cxx_werror_flag=yes 7497 ac_cv_prog_cxx_g=no 7498 CXXFLAGS="-g" 7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7500 /* end confdefs.h. */ 7501 7502 int 7503 main () 7504 { 7505 7506 ; 7507 return 0; 7508 } 7509 _ACEOF 7510 if ac_fn_cxx_try_compile "$LINENO"; then : 7511 ac_cv_prog_cxx_g=yes 7512 else 7513 CXXFLAGS="" 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515 /* end confdefs.h. */ 7516 7517 int 7518 main () 7519 { 7520 7521 ; 7522 return 0; 7523 } 7524 _ACEOF 7525 if ac_fn_cxx_try_compile "$LINENO"; then : 7526 7527 else 7528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7529 CXXFLAGS="-g" 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531 /* end confdefs.h. */ 7532 7533 int 7534 main () 7535 { 7536 7537 ; 7538 return 0; 7539 } 7540 _ACEOF 7541 if ac_fn_cxx_try_compile "$LINENO"; then : 7542 ac_cv_prog_cxx_g=yes 7543 fi 7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7545 fi 7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7547 fi 7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7550 fi 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7552 $as_echo "$ac_cv_prog_cxx_g" >&6; } 7553 if test "$ac_test_CXXFLAGS" = set; then 7554 CXXFLAGS=$ac_save_CXXFLAGS 7555 elif test $ac_cv_prog_cxx_g = yes; then 7556 if test "$GXX" = yes; then 7557 CXXFLAGS="-g -O2" 7558 else 7559 CXXFLAGS="-g" 7560 fi 7561 else 7562 if test "$GXX" = yes; then 7563 CXXFLAGS="-O2" 7564 else 7565 CXXFLAGS= 7566 fi 7567 fi 7568 ac_ext=c 7569 ac_cpp='$CPP $CPPFLAGS' 7570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7572 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7573 7574 depcc="$CXX" am_compiler_list= 7575 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7577 $as_echo_n "checking dependency style of $depcc... " >&6; } 7578 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 7579 $as_echo_n "(cached) " >&6 7580 else 7581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7582 # We make a subdir and do the tests there. Otherwise we can end up 7583 # making bogus files that we don't know about and never remove. For 7584 # instance it was reported that on HP-UX the gcc test will end up 7585 # making a dummy file named `D' -- because `-MD' means `put the output 7586 # in D'. 7587 mkdir conftest.dir 7588 # Copy depcomp to subdir because otherwise we won't find it if we're 7589 # using a relative directory. 7590 cp "$am_depcomp" conftest.dir 7591 cd conftest.dir 7592 # We will build objects and dependencies in a subdirectory because 7593 # it helps to detect inapplicable dependency modes. For instance 7594 # both Tru64's cc and ICC support -MD to output dependencies as a 7595 # side effect of compilation, but ICC will put the dependencies in 7596 # the current directory while Tru64 will put them in the object 7597 # directory. 7598 mkdir sub 7599 7600 am_cv_CXX_dependencies_compiler_type=none 7601 if test "$am_compiler_list" = ""; then 7602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7603 fi 7604 am__universal=false 7605 case " $depcc " in #( 7606 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7607 esac 7608 7609 for depmode in $am_compiler_list; do 7610 # Setup a source with many dependencies, because some compilers 7611 # like to wrap large dependency lists on column 80 (with \), and 7612 # we should not choose a depcomp mode which is confused by this. 7613 # 7614 # We need to recreate these files for each test, as the compiler may 7615 # overwrite some of them when testing with obscure command lines. 7616 # This happens at least with the AIX C compiler. 7617 : > sub/conftest.c 7618 for i in 1 2 3 4 5 6; do 7619 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7620 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7621 # Solaris 8's {/usr,}/bin/sh. 7622 touch sub/conftst$i.h 7623 done 7624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7625 7626 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7627 # mode. It turns out that the SunPro C++ compiler does not properly 7628 # handle `-M -o', and we need to detect this. Also, some Intel 7629 # versions had trouble with output in subdirs 7630 am__obj=sub/conftest.${OBJEXT-o} 7631 am__minus_obj="-o $am__obj" 7632 case $depmode in 7633 gcc) 7634 # This depmode causes a compiler race in universal mode. 7635 test "$am__universal" = false || continue 7636 ;; 7637 nosideeffect) 7638 # after this tag, mechanisms are not by side-effect, so they'll 7639 # only be used when explicitly requested 7640 if test "x$enable_dependency_tracking" = xyes; then 7641 continue 7642 else 7643 break 7644 fi 7645 ;; 7646 msvisualcpp | msvcmsys) 7647 # This compiler won't grok `-c -o', but also, the minuso test has 7648 # not run yet. These depmodes are late enough in the game, and 7649 # so weak that their functioning should not be impacted. 7650 am__obj=conftest.${OBJEXT-o} 7651 am__minus_obj= 7652 ;; 7653 none) break ;; 7654 esac 7655 if depmode=$depmode \ 7656 source=sub/conftest.c object=$am__obj \ 7657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7659 >/dev/null 2>conftest.err && 7660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7664 # icc doesn't choke on unknown options, it will just issue warnings 7665 # or remarks (even with -Werror). So we grep stderr for any message 7666 # that says an option was ignored or not supported. 7667 # When given -MP, icc 7.0 and 7.1 complain thusly: 7668 # icc: Command line warning: ignoring option '-M'; no argument required 7669 # The diagnosis changed in icc 8.0: 7670 # icc: Command line remark: option '-MP' not supported 7671 if (grep 'ignoring option' conftest.err || 7672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7673 am_cv_CXX_dependencies_compiler_type=$depmode 7674 break 7675 fi 7676 fi 7677 done 7678 7679 cd .. 7680 rm -rf conftest.dir 7681 else 7682 am_cv_CXX_dependencies_compiler_type=none 7683 fi 7684 7685 fi 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7687 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7688 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7689 7690 if 7691 test "x$enable_dependency_tracking" != xno \ 7692 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7693 am__fastdepCXX_TRUE= 7694 am__fastdepCXX_FALSE='#' 7695 else 7696 am__fastdepCXX_TRUE='#' 7697 am__fastdepCXX_FALSE= 7698 fi 7699 7700 7701 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7703 (test "X$CXX" != "Xg++"))) ; then 7704 ac_ext=cpp 7705 ac_cpp='$CXXCPP $CPPFLAGS' 7706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 7710 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7711 if test -z "$CXXCPP"; then 7712 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 7713 $as_echo_n "(cached) " >&6 7714 else 7715 # Double quotes because CXXCPP needs to be expanded 7716 for CXXCPP in "$CXX -E" "/lib/cpp" 7717 do 7718 ac_preproc_ok=false 7719 for ac_cxx_preproc_warn_flag in '' yes 7720 do 7721 # Use a header file that comes with gcc, so configuring glibc 7722 # with a fresh cross-compiler works. 7723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7724 # <limits.h> exists even on freestanding compilers. 7725 # On the NeXT, cc -E runs the code through the compiler's parser, 7726 # not just through cpp. "Syntax error" is here to catch this case. 7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7728 /* end confdefs.h. */ 7729 #ifdef __STDC__ 7730 # include <limits.h> 7731 #else 7732 # include <assert.h> 7733 #endif 7734 Syntax error 7735 _ACEOF 7736 if ac_fn_cxx_try_cpp "$LINENO"; then : 7737 7738 else 7739 # Broken: fails on valid input. 7740 continue 7741 fi 7742 rm -f conftest.err conftest.$ac_ext 7743 7744 # OK, works on sane cases. Now check whether nonexistent headers 7745 # can be detected and how. 7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7747 /* end confdefs.h. */ 7748 #include <ac_nonexistent.h> 7749 _ACEOF 7750 if ac_fn_cxx_try_cpp "$LINENO"; then : 7751 # Broken: success on invalid input. 7752 continue 7753 else 7754 # Passes both tests. 7755 ac_preproc_ok=: 7756 break 7757 fi 7758 rm -f conftest.err conftest.$ac_ext 7759 7760 done 7761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7762 rm -f conftest.err conftest.$ac_ext 7763 if $ac_preproc_ok; then : 7764 break 7765 fi 7766 7767 done 7768 ac_cv_prog_CXXCPP=$CXXCPP 7769 7770 fi 7771 CXXCPP=$ac_cv_prog_CXXCPP 7772 else 7773 ac_cv_prog_CXXCPP=$CXXCPP 7774 fi 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 7776 $as_echo "$CXXCPP" >&6; } 7777 ac_preproc_ok=false 7778 for ac_cxx_preproc_warn_flag in '' yes 7779 do 7780 # Use a header file that comes with gcc, so configuring glibc 7781 # with a fresh cross-compiler works. 7782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7783 # <limits.h> exists even on freestanding compilers. 7784 # On the NeXT, cc -E runs the code through the compiler's parser, 7785 # not just through cpp. "Syntax error" is here to catch this case. 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787 /* end confdefs.h. */ 7788 #ifdef __STDC__ 7789 # include <limits.h> 7790 #else 7791 # include <assert.h> 7792 #endif 7793 Syntax error 7794 _ACEOF 7795 if ac_fn_cxx_try_cpp "$LINENO"; then : 7796 7797 else 7798 # Broken: fails on valid input. 7799 continue 7800 fi 7801 rm -f conftest.err conftest.$ac_ext 7802 7803 # OK, works on sane cases. Now check whether nonexistent headers 7804 # can be detected and how. 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806 /* end confdefs.h. */ 7807 #include <ac_nonexistent.h> 7808 _ACEOF 7809 if ac_fn_cxx_try_cpp "$LINENO"; then : 7810 # Broken: success on invalid input. 7811 continue 7812 else 7813 # Passes both tests. 7814 ac_preproc_ok=: 7815 break 7816 fi 7817 rm -f conftest.err conftest.$ac_ext 7818 7819 done 7820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7821 rm -f conftest.err conftest.$ac_ext 7822 if $ac_preproc_ok; then : 7823 7824 else 7825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7827 _lt_caught_CXX_error=yes; } 7828 fi 7829 7830 ac_ext=c 7831 ac_cpp='$CPP $CPPFLAGS' 7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7835 7836 else 7837 _lt_caught_CXX_error=yes 7838 fi 7839 7840 7841 7842 7843 7844 # Set options 7845 7846 7847 7848 enable_dlopen=no 7849 7850 7851 enable_win32_dll=no 7852 7853 7854 # Check whether --enable-shared was given. 7855 if test "${enable_shared+set}" = set; then : 7856 enableval=$enable_shared; p=${PACKAGE-default} 7857 case $enableval in 7858 yes) enable_shared=yes ;; 7859 no) enable_shared=no ;; 7860 *) 7861 enable_shared=no 7862 # Look at the argument we got. We use all the common list separators. 7863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7864 for pkg in $enableval; do 7865 IFS="$lt_save_ifs" 7866 if test "X$pkg" = "X$p"; then 7867 enable_shared=yes 7868 fi 7869 done 7870 IFS="$lt_save_ifs" 7871 ;; 7872 esac 7873 else 7874 enable_shared=yes 7875 fi 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 # Check whether --enable-static was given. 7886 if test "${enable_static+set}" = set; then : 7887 enableval=$enable_static; p=${PACKAGE-default} 7888 case $enableval in 7889 yes) enable_static=yes ;; 7890 no) enable_static=no ;; 7891 *) 7892 enable_static=no 7893 # Look at the argument we got. We use all the common list separators. 7894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7895 for pkg in $enableval; do 7896 IFS="$lt_save_ifs" 7897 if test "X$pkg" = "X$p"; then 7898 enable_static=yes 7899 fi 7900 done 7901 IFS="$lt_save_ifs" 7902 ;; 7903 esac 7904 else 7905 enable_static=yes 7906 fi 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 # Check whether --with-pic was given. 7918 if test "${with_pic+set}" = set; then : 7919 withval=$with_pic; pic_mode="$withval" 7920 else 7921 pic_mode=default 7922 fi 7923 7924 7925 test -z "$pic_mode" && pic_mode=default 7926 7927 7928 7929 7930 7931 7932 7933 # Check whether --enable-fast-install was given. 7934 if test "${enable_fast_install+set}" = set; then : 7935 enableval=$enable_fast_install; p=${PACKAGE-default} 7936 case $enableval in 7937 yes) enable_fast_install=yes ;; 7938 no) enable_fast_install=no ;; 7939 *) 7940 enable_fast_install=no 7941 # Look at the argument we got. We use all the common list separators. 7942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7943 for pkg in $enableval; do 7944 IFS="$lt_save_ifs" 7945 if test "X$pkg" = "X$p"; then 7946 enable_fast_install=yes 7947 fi 7948 done 7949 IFS="$lt_save_ifs" 7950 ;; 7951 esac 7952 else 7953 enable_fast_install=yes 7954 fi 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 # This can be used to rebuild libtool when needed 7967 LIBTOOL_DEPS="$ltmain" 7968 7969 # Always use our own libtool. 7970 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 test -z "$LN_S" && LN_S="ln -s" 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 if test -n "${ZSH_VERSION+set}" ; then 8012 setopt NO_GLOB_SUBST 8013 fi 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8016 $as_echo_n "checking for objdir... " >&6; } 8017 if test "${lt_cv_objdir+set}" = set; then : 8018 $as_echo_n "(cached) " >&6 8019 else 8020 rm -f .libs 2>/dev/null 8021 mkdir .libs 2>/dev/null 8022 if test -d .libs; then 8023 lt_cv_objdir=.libs 8024 else 8025 # MS-DOS does not allow filenames that begin with a dot. 8026 lt_cv_objdir=_libs 8027 fi 8028 rmdir .libs 2>/dev/null 8029 fi 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8031 $as_echo "$lt_cv_objdir" >&6; } 8032 objdir=$lt_cv_objdir 8033 8034 8035 8036 8037 8038 cat >>confdefs.h <<_ACEOF 8039 #define LT_OBJDIR "$lt_cv_objdir/" 8040 _ACEOF 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 case $host_os in 8059 aix3*) 8060 # AIX sometimes has problems with the GCC collect2 program. For some 8061 # reason, if we set the COLLECT_NAMES environment variable, the problems 8062 # vanish in a puff of smoke. 8063 if test "X${COLLECT_NAMES+set}" != Xset; then 8064 COLLECT_NAMES= 8065 export COLLECT_NAMES 8066 fi 8067 ;; 8068 esac 8069 8070 # Sed substitution that helps us do robust quoting. It backslashifies 8071 # metacharacters that are still active within double-quoted strings. 8072 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8073 8074 # Same as above, but do not quote variable references. 8075 double_quote_subst='s/\(["`\\]\)/\\\1/g' 8076 8077 # Sed substitution to delay expansion of an escaped shell variable in a 8078 # double_quote_subst'ed string. 8079 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8080 8081 # Sed substitution to delay expansion of an escaped single quote. 8082 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8083 8084 # Sed substitution to avoid accidental globbing in evaled expressions 8085 no_glob_subst='s/\*/\\\*/g' 8086 8087 # Global variables: 8088 ofile=libtool 8089 can_build_shared=yes 8090 8091 # All known linkers require a `.a' archive for static linking (except MSVC, 8092 # which needs '.lib'). 8093 libext=a 8094 8095 with_gnu_ld="$lt_cv_prog_gnu_ld" 8096 8097 old_CC="$CC" 8098 old_CFLAGS="$CFLAGS" 8099 8100 # Set sane defaults for various variables 8101 test -z "$CC" && CC=cc 8102 test -z "$LTCC" && LTCC=$CC 8103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8104 test -z "$LD" && LD=ld 8105 test -z "$ac_objext" && ac_objext=o 8106 8107 for cc_temp in $compiler""; do 8108 case $cc_temp in 8109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8111 \-*) ;; 8112 *) break;; 8113 esac 8114 done 8115 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8116 8117 8118 # Only perform the check for file, if the check method requires it 8119 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8120 case $deplibs_check_method in 8121 file_magic*) 8122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8126 $as_echo_n "(cached) " >&6 8127 else 8128 case $MAGIC_CMD in 8129 [\\/*] | ?:[\\/]*) 8130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8131 ;; 8132 *) 8133 lt_save_MAGIC_CMD="$MAGIC_CMD" 8134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8136 for ac_dir in $ac_dummy; do 8137 IFS="$lt_save_ifs" 8138 test -z "$ac_dir" && ac_dir=. 8139 if test -f $ac_dir/${ac_tool_prefix}file; then 8140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8141 if test -n "$file_magic_test_file"; then 8142 case $deplibs_check_method in 8143 "file_magic "*) 8144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8147 $EGREP "$file_magic_regex" > /dev/null; then 8148 : 8149 else 8150 cat <<_LT_EOF 1>&2 8151 8152 *** Warning: the command libtool uses to detect shared libraries, 8153 *** $file_magic_cmd, produces output that libtool cannot recognize. 8154 *** The result is that libtool may fail to recognize shared libraries 8155 *** as such. This will affect the creation of libtool libraries that 8156 *** depend on shared libraries, but programs linked with such libtool 8157 *** libraries will work regardless of this problem. Nevertheless, you 8158 *** may want to report the problem to your system manager and/or to 8159 *** bug-libtool (at] gnu.org 8160 8161 _LT_EOF 8162 fi ;; 8163 esac 8164 fi 8165 break 8166 fi 8167 done 8168 IFS="$lt_save_ifs" 8169 MAGIC_CMD="$lt_save_MAGIC_CMD" 8170 ;; 8171 esac 8172 fi 8173 8174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8175 if test -n "$MAGIC_CMD"; then 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8177 $as_echo "$MAGIC_CMD" >&6; } 8178 else 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8180 $as_echo "no" >&6; } 8181 fi 8182 8183 8184 8185 8186 8187 if test -z "$lt_cv_path_MAGIC_CMD"; then 8188 if test -n "$ac_tool_prefix"; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8190 $as_echo_n "checking for file... " >&6; } 8191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8192 $as_echo_n "(cached) " >&6 8193 else 8194 case $MAGIC_CMD in 8195 [\\/*] | ?:[\\/]*) 8196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8197 ;; 8198 *) 8199 lt_save_MAGIC_CMD="$MAGIC_CMD" 8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8202 for ac_dir in $ac_dummy; do 8203 IFS="$lt_save_ifs" 8204 test -z "$ac_dir" && ac_dir=. 8205 if test -f $ac_dir/file; then 8206 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8207 if test -n "$file_magic_test_file"; then 8208 case $deplibs_check_method in 8209 "file_magic "*) 8210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8213 $EGREP "$file_magic_regex" > /dev/null; then 8214 : 8215 else 8216 cat <<_LT_EOF 1>&2 8217 8218 *** Warning: the command libtool uses to detect shared libraries, 8219 *** $file_magic_cmd, produces output that libtool cannot recognize. 8220 *** The result is that libtool may fail to recognize shared libraries 8221 *** as such. This will affect the creation of libtool libraries that 8222 *** depend on shared libraries, but programs linked with such libtool 8223 *** libraries will work regardless of this problem. Nevertheless, you 8224 *** may want to report the problem to your system manager and/or to 8225 *** bug-libtool (at] gnu.org 8226 8227 _LT_EOF 8228 fi ;; 8229 esac 8230 fi 8231 break 8232 fi 8233 done 8234 IFS="$lt_save_ifs" 8235 MAGIC_CMD="$lt_save_MAGIC_CMD" 8236 ;; 8237 esac 8238 fi 8239 8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8241 if test -n "$MAGIC_CMD"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8243 $as_echo "$MAGIC_CMD" >&6; } 8244 else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246 $as_echo "no" >&6; } 8247 fi 8248 8249 8250 else 8251 MAGIC_CMD=: 8252 fi 8253 fi 8254 8255 fi 8256 ;; 8257 esac 8258 8259 # Use C for the default configuration in the libtool script 8260 8261 lt_save_CC="$CC" 8262 ac_ext=c 8263 ac_cpp='$CPP $CPPFLAGS' 8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8267 8268 8269 # Source file extension for C test sources. 8270 ac_ext=c 8271 8272 # Object file extension for compiled C test sources. 8273 objext=o 8274 objext=$objext 8275 8276 # Code to be used in simple compile tests 8277 lt_simple_compile_test_code="int some_variable = 0;" 8278 8279 # Code to be used in simple link tests 8280 lt_simple_link_test_code='int main(){return(0);}' 8281 8282 8283 8284 8285 8286 8287 8288 # If no C compiler was specified, use CC. 8289 LTCC=${LTCC-"$CC"} 8290 8291 # If no C compiler flags were specified, use CFLAGS. 8292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8293 8294 # Allow CC to be a program name with arguments. 8295 compiler=$CC 8296 8297 # Save the default compiler, since it gets overwritten when the other 8298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8299 compiler_DEFAULT=$CC 8300 8301 # save warnings/boilerplate of simple test code 8302 ac_outfile=conftest.$ac_objext 8303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8305 _lt_compiler_boilerplate=`cat conftest.err` 8306 $RM conftest* 8307 8308 ac_outfile=conftest.$ac_objext 8309 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8311 _lt_linker_boilerplate=`cat conftest.err` 8312 $RM -r conftest* 8313 8314 8315 ## CAVEAT EMPTOR: 8316 ## There is no encapsulation within the following macros, do not change 8317 ## the running order or otherwise move them around unless you know exactly 8318 ## what you are doing... 8319 if test -n "$compiler"; then 8320 8321 lt_prog_compiler_no_builtin_flag= 8322 8323 if test "$GCC" = yes; then 8324 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8325 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8329 $as_echo_n "(cached) " >&6 8330 else 8331 lt_cv_prog_compiler_rtti_exceptions=no 8332 ac_outfile=conftest.$ac_objext 8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8334 lt_compiler_flag="-fno-rtti -fno-exceptions" 8335 # Insert the option either (1) after the last *FLAGS variable, or 8336 # (2) before a word containing "conftest.", or (3) at the end. 8337 # Note that $ac_compile itself does not contain backslashes and begins 8338 # with a dollar sign (not a hyphen), so the echo should work correctly. 8339 # The option is referenced via a variable to avoid confusing sed. 8340 lt_compile=`echo "$ac_compile" | $SED \ 8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8343 -e 's:$: $lt_compiler_flag:'` 8344 (eval echo "\"\$as_me:8344: $lt_compile\"" >&5) 8345 (eval "$lt_compile" 2>conftest.err) 8346 ac_status=$? 8347 cat conftest.err >&5 8348 echo "$as_me:8348: \$? = $ac_status" >&5 8349 if (exit $ac_status) && test -s "$ac_outfile"; then 8350 # The compiler can only warn and ignore the option if not recognized 8351 # So say no if there are warnings other than the usual output. 8352 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8355 lt_cv_prog_compiler_rtti_exceptions=yes 8356 fi 8357 fi 8358 $RM conftest* 8359 8360 fi 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8363 8364 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8365 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8366 else 8367 : 8368 fi 8369 8370 fi 8371 8372 8373 8374 8375 8376 8377 lt_prog_compiler_wl= 8378 lt_prog_compiler_pic= 8379 lt_prog_compiler_static= 8380 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8383 8384 if test "$GCC" = yes; then 8385 lt_prog_compiler_wl='-Wl,' 8386 lt_prog_compiler_static='-static' 8387 8388 case $host_os in 8389 aix*) 8390 # All AIX code is PIC. 8391 if test "$host_cpu" = ia64; then 8392 # AIX 5 now supports IA64 processor 8393 lt_prog_compiler_static='-Bstatic' 8394 fi 8395 ;; 8396 8397 amigaos*) 8398 case $host_cpu in 8399 powerpc) 8400 # see comment about AmigaOS4 .so support 8401 lt_prog_compiler_pic='-fPIC' 8402 ;; 8403 m68k) 8404 # FIXME: we need at least 68020 code to build shared libraries, but 8405 # adding the `-m68020' flag to GCC prevents building anything better, 8406 # like `-m68040'. 8407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8408 ;; 8409 esac 8410 ;; 8411 8412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8413 # PIC is the default for these OSes. 8414 ;; 8415 8416 mingw* | cygwin* | pw32* | os2* | cegcc*) 8417 # This hack is so that the source file can tell whether it is being 8418 # built for inclusion in a dll (and should export symbols for example). 8419 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8420 # (--disable-auto-import) libraries 8421 lt_prog_compiler_pic='-DDLL_EXPORT' 8422 ;; 8423 8424 darwin* | rhapsody*) 8425 # PIC is the default on this platform 8426 # Common symbols not allowed in MH_DYLIB files 8427 lt_prog_compiler_pic='-fno-common' 8428 ;; 8429 8430 hpux*) 8431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8433 # sets the default TLS model and affects inlining. 8434 case $host_cpu in 8435 hppa*64*) 8436 # +Z the default 8437 ;; 8438 *) 8439 lt_prog_compiler_pic='-fPIC' 8440 ;; 8441 esac 8442 ;; 8443 8444 interix[3-9]*) 8445 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8446 # Instead, we relocate shared libraries at runtime. 8447 ;; 8448 8449 msdosdjgpp*) 8450 # Just because we use GCC doesn't mean we suddenly get shared libraries 8451 # on systems that don't support them. 8452 lt_prog_compiler_can_build_shared=no 8453 enable_shared=no 8454 ;; 8455 8456 *nto* | *qnx*) 8457 # QNX uses GNU C++, but need to define -shared option too, otherwise 8458 # it will coredump. 8459 lt_prog_compiler_pic='-fPIC -shared' 8460 ;; 8461 8462 sysv4*MP*) 8463 if test -d /usr/nec; then 8464 lt_prog_compiler_pic=-Kconform_pic 8465 fi 8466 ;; 8467 8468 *) 8469 lt_prog_compiler_pic='-fPIC' 8470 ;; 8471 esac 8472 else 8473 # PORTME Check for flag to pass linker flags through the system compiler. 8474 case $host_os in 8475 aix*) 8476 lt_prog_compiler_wl='-Wl,' 8477 if test "$host_cpu" = ia64; then 8478 # AIX 5 now supports IA64 processor 8479 lt_prog_compiler_static='-Bstatic' 8480 else 8481 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8482 fi 8483 ;; 8484 8485 mingw* | cygwin* | pw32* | os2* | cegcc*) 8486 # This hack is so that the source file can tell whether it is being 8487 # built for inclusion in a dll (and should export symbols for example). 8488 lt_prog_compiler_pic='-DDLL_EXPORT' 8489 ;; 8490 8491 hpux9* | hpux10* | hpux11*) 8492 lt_prog_compiler_wl='-Wl,' 8493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8494 # not for PA HP-UX. 8495 case $host_cpu in 8496 hppa*64*|ia64*) 8497 # +Z the default 8498 ;; 8499 *) 8500 lt_prog_compiler_pic='+Z' 8501 ;; 8502 esac 8503 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8504 lt_prog_compiler_static='${wl}-a ${wl}archive' 8505 ;; 8506 8507 irix5* | irix6* | nonstopux*) 8508 lt_prog_compiler_wl='-Wl,' 8509 # PIC (with -KPIC) is the default. 8510 lt_prog_compiler_static='-non_shared' 8511 ;; 8512 8513 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8514 case $cc_basename in 8515 # old Intel for x86_64 which still supported -KPIC. 8516 ecc*) 8517 lt_prog_compiler_wl='-Wl,' 8518 lt_prog_compiler_pic='-KPIC' 8519 lt_prog_compiler_static='-static' 8520 ;; 8521 # icc used to be incompatible with GCC. 8522 # ICC 10 doesn't accept -KPIC any more. 8523 icc* | ifort*) 8524 lt_prog_compiler_wl='-Wl,' 8525 lt_prog_compiler_pic='-fPIC' 8526 lt_prog_compiler_static='-static' 8527 ;; 8528 # Lahey Fortran 8.1. 8529 lf95*) 8530 lt_prog_compiler_wl='-Wl,' 8531 lt_prog_compiler_pic='--shared' 8532 lt_prog_compiler_static='--static' 8533 ;; 8534 pgcc* | pgf77* | pgf90* | pgf95*) 8535 # Portland Group compilers (*not* the Pentium gcc compiler, 8536 # which looks to be a dead project) 8537 lt_prog_compiler_wl='-Wl,' 8538 lt_prog_compiler_pic='-fpic' 8539 lt_prog_compiler_static='-Bstatic' 8540 ;; 8541 ccc*) 8542 lt_prog_compiler_wl='-Wl,' 8543 # All Alpha code is PIC. 8544 lt_prog_compiler_static='-non_shared' 8545 ;; 8546 xl*) 8547 # IBM XL C 8.0/Fortran 10.1 on PPC 8548 lt_prog_compiler_wl='-Wl,' 8549 lt_prog_compiler_pic='-qpic' 8550 lt_prog_compiler_static='-qstaticlink' 8551 ;; 8552 *) 8553 case `$CC -V 2>&1 | sed 5q` in 8554 *Sun\ C*) 8555 # Sun C 5.9 8556 lt_prog_compiler_pic='-KPIC' 8557 lt_prog_compiler_static='-Bstatic' 8558 lt_prog_compiler_wl='-Wl,' 8559 ;; 8560 *Sun\ F*) 8561 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8562 lt_prog_compiler_pic='-KPIC' 8563 lt_prog_compiler_static='-Bstatic' 8564 lt_prog_compiler_wl='' 8565 ;; 8566 esac 8567 ;; 8568 esac 8569 ;; 8570 8571 newsos6) 8572 lt_prog_compiler_pic='-KPIC' 8573 lt_prog_compiler_static='-Bstatic' 8574 ;; 8575 8576 *nto* | *qnx*) 8577 # QNX uses GNU C++, but need to define -shared option too, otherwise 8578 # it will coredump. 8579 lt_prog_compiler_pic='-fPIC -shared' 8580 ;; 8581 8582 osf3* | osf4* | osf5*) 8583 lt_prog_compiler_wl='-Wl,' 8584 # All OSF/1 code is PIC. 8585 lt_prog_compiler_static='-non_shared' 8586 ;; 8587 8588 rdos*) 8589 lt_prog_compiler_static='-non_shared' 8590 ;; 8591 8592 solaris*) 8593 lt_prog_compiler_pic='-KPIC' 8594 lt_prog_compiler_static='-Bstatic' 8595 case $cc_basename in 8596 f77* | f90* | f95*) 8597 lt_prog_compiler_wl='-Qoption ld ';; 8598 *) 8599 lt_prog_compiler_wl='-Wl,';; 8600 esac 8601 ;; 8602 8603 sunos4*) 8604 lt_prog_compiler_wl='-Qoption ld ' 8605 lt_prog_compiler_pic='-PIC' 8606 lt_prog_compiler_static='-Bstatic' 8607 ;; 8608 8609 sysv4 | sysv4.2uw2* | sysv4.3*) 8610 lt_prog_compiler_wl='-Wl,' 8611 lt_prog_compiler_pic='-KPIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 ;; 8614 8615 sysv4*MP*) 8616 if test -d /usr/nec ;then 8617 lt_prog_compiler_pic='-Kconform_pic' 8618 lt_prog_compiler_static='-Bstatic' 8619 fi 8620 ;; 8621 8622 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8623 lt_prog_compiler_wl='-Wl,' 8624 lt_prog_compiler_pic='-KPIC' 8625 lt_prog_compiler_static='-Bstatic' 8626 ;; 8627 8628 unicos*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_can_build_shared=no 8631 ;; 8632 8633 uts4*) 8634 lt_prog_compiler_pic='-pic' 8635 lt_prog_compiler_static='-Bstatic' 8636 ;; 8637 8638 *) 8639 lt_prog_compiler_can_build_shared=no 8640 ;; 8641 esac 8642 fi 8643 8644 case $host_os in 8645 # For platforms which do not support PIC, -DPIC is meaningless: 8646 *djgpp*) 8647 lt_prog_compiler_pic= 8648 ;; 8649 *) 8650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8651 ;; 8652 esac 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8654 $as_echo "$lt_prog_compiler_pic" >&6; } 8655 8656 8657 8658 8659 8660 8661 # 8662 # Check to make sure the PIC flag actually works. 8663 # 8664 if test -n "$lt_prog_compiler_pic"; then 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8667 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8668 $as_echo_n "(cached) " >&6 8669 else 8670 lt_cv_prog_compiler_pic_works=no 8671 ac_outfile=conftest.$ac_objext 8672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8674 # Insert the option either (1) after the last *FLAGS variable, or 8675 # (2) before a word containing "conftest.", or (3) at the end. 8676 # Note that $ac_compile itself does not contain backslashes and begins 8677 # with a dollar sign (not a hyphen), so the echo should work correctly. 8678 # The option is referenced via a variable to avoid confusing sed. 8679 lt_compile=`echo "$ac_compile" | $SED \ 8680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8682 -e 's:$: $lt_compiler_flag:'` 8683 (eval echo "\"\$as_me:8683: $lt_compile\"" >&5) 8684 (eval "$lt_compile" 2>conftest.err) 8685 ac_status=$? 8686 cat conftest.err >&5 8687 echo "$as_me:8687: \$? = $ac_status" >&5 8688 if (exit $ac_status) && test -s "$ac_outfile"; then 8689 # The compiler can only warn and ignore the option if not recognized 8690 # So say no if there are warnings other than the usual output. 8691 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8694 lt_cv_prog_compiler_pic_works=yes 8695 fi 8696 fi 8697 $RM conftest* 8698 8699 fi 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8701 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8702 8703 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8704 case $lt_prog_compiler_pic in 8705 "" | " "*) ;; 8706 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8707 esac 8708 else 8709 lt_prog_compiler_pic= 8710 lt_prog_compiler_can_build_shared=no 8711 fi 8712 8713 fi 8714 8715 8716 8717 8718 8719 8720 # 8721 # Check to make sure the static flag actually works. 8722 # 8723 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8725 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8726 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8727 $as_echo_n "(cached) " >&6 8728 else 8729 lt_cv_prog_compiler_static_works=no 8730 save_LDFLAGS="$LDFLAGS" 8731 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8732 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8734 # The linker can only warn and ignore the option if not recognized 8735 # So say no if there are warnings 8736 if test -s conftest.err; then 8737 # Append any errors to the config.log. 8738 cat conftest.err 1>&5 8739 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8741 if diff conftest.exp conftest.er2 >/dev/null; then 8742 lt_cv_prog_compiler_static_works=yes 8743 fi 8744 else 8745 lt_cv_prog_compiler_static_works=yes 8746 fi 8747 fi 8748 $RM -r conftest* 8749 LDFLAGS="$save_LDFLAGS" 8750 8751 fi 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8753 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8754 8755 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8756 : 8757 else 8758 lt_prog_compiler_static= 8759 fi 8760 8761 8762 8763 8764 8765 8766 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8769 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8770 $as_echo_n "(cached) " >&6 8771 else 8772 lt_cv_prog_compiler_c_o=no 8773 $RM -r conftest 2>/dev/null 8774 mkdir conftest 8775 cd conftest 8776 mkdir out 8777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8778 8779 lt_compiler_flag="-o out/conftest2.$ac_objext" 8780 # Insert the option either (1) after the last *FLAGS variable, or 8781 # (2) before a word containing "conftest.", or (3) at the end. 8782 # Note that $ac_compile itself does not contain backslashes and begins 8783 # with a dollar sign (not a hyphen), so the echo should work correctly. 8784 lt_compile=`echo "$ac_compile" | $SED \ 8785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8787 -e 's:$: $lt_compiler_flag:'` 8788 (eval echo "\"\$as_me:8788: $lt_compile\"" >&5) 8789 (eval "$lt_compile" 2>out/conftest.err) 8790 ac_status=$? 8791 cat out/conftest.err >&5 8792 echo "$as_me:8792: \$? = $ac_status" >&5 8793 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8794 then 8795 # The compiler can only warn and ignore the option if not recognized 8796 # So say no if there are warnings 8797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8800 lt_cv_prog_compiler_c_o=yes 8801 fi 8802 fi 8803 chmod u+w . 2>&5 8804 $RM conftest* 8805 # SGI C++ compiler will create directory out/ii_files/ for 8806 # template instantiation 8807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8808 $RM out/* && rmdir out 8809 cd .. 8810 $RM -r conftest 8811 $RM conftest* 8812 8813 fi 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8815 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8816 8817 8818 8819 8820 8821 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8824 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8825 $as_echo_n "(cached) " >&6 8826 else 8827 lt_cv_prog_compiler_c_o=no 8828 $RM -r conftest 2>/dev/null 8829 mkdir conftest 8830 cd conftest 8831 mkdir out 8832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8833 8834 lt_compiler_flag="-o out/conftest2.$ac_objext" 8835 # Insert the option either (1) after the last *FLAGS variable, or 8836 # (2) before a word containing "conftest.", or (3) at the end. 8837 # Note that $ac_compile itself does not contain backslashes and begins 8838 # with a dollar sign (not a hyphen), so the echo should work correctly. 8839 lt_compile=`echo "$ac_compile" | $SED \ 8840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8842 -e 's:$: $lt_compiler_flag:'` 8843 (eval echo "\"\$as_me:8843: $lt_compile\"" >&5) 8844 (eval "$lt_compile" 2>out/conftest.err) 8845 ac_status=$? 8846 cat out/conftest.err >&5 8847 echo "$as_me:8847: \$? = $ac_status" >&5 8848 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8849 then 8850 # The compiler can only warn and ignore the option if not recognized 8851 # So say no if there are warnings 8852 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8855 lt_cv_prog_compiler_c_o=yes 8856 fi 8857 fi 8858 chmod u+w . 2>&5 8859 $RM conftest* 8860 # SGI C++ compiler will create directory out/ii_files/ for 8861 # template instantiation 8862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8863 $RM out/* && rmdir out 8864 cd .. 8865 $RM -r conftest 8866 $RM conftest* 8867 8868 fi 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8870 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8871 8872 8873 8874 8875 hard_links="nottested" 8876 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8877 # do not overwrite the value of need_locks provided by the user 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8879 $as_echo_n "checking if we can lock with hard links... " >&6; } 8880 hard_links=yes 8881 $RM conftest* 8882 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8883 touch conftest.a 8884 ln conftest.a conftest.b 2>&5 || hard_links=no 8885 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8887 $as_echo "$hard_links" >&6; } 8888 if test "$hard_links" = no; then 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8891 need_locks=warn 8892 fi 8893 else 8894 need_locks=no 8895 fi 8896 8897 8898 8899 8900 8901 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8904 8905 runpath_var= 8906 allow_undefined_flag= 8907 always_export_symbols=no 8908 archive_cmds= 8909 archive_expsym_cmds= 8910 compiler_needs_object=no 8911 enable_shared_with_static_runtimes=no 8912 export_dynamic_flag_spec= 8913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8914 hardcode_automatic=no 8915 hardcode_direct=no 8916 hardcode_direct_absolute=no 8917 hardcode_libdir_flag_spec= 8918 hardcode_libdir_flag_spec_ld= 8919 hardcode_libdir_separator= 8920 hardcode_minus_L=no 8921 hardcode_shlibpath_var=unsupported 8922 inherit_rpath=no 8923 link_all_deplibs=unknown 8924 module_cmds= 8925 module_expsym_cmds= 8926 old_archive_from_new_cmds= 8927 old_archive_from_expsyms_cmds= 8928 thread_safe_flag_spec= 8929 whole_archive_flag_spec= 8930 # include_expsyms should be a list of space-separated symbols to be *always* 8931 # included in the symbol list 8932 include_expsyms= 8933 # exclude_expsyms can be an extended regexp of symbols to exclude 8934 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8935 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8936 # as well as any symbol that contains `d'. 8937 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8939 # platforms (ab)use it in PIC code, but their linkers get confused if 8940 # the symbol is explicitly referenced. Since portable code cannot 8941 # rely on this symbol name, it's probably fine to never include it in 8942 # preloaded symbol tables. 8943 # Exclude shared library initialization/finalization symbols. 8944 extract_expsyms_cmds= 8945 8946 case $host_os in 8947 cygwin* | mingw* | pw32* | cegcc*) 8948 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8949 # When not using gcc, we currently assume that we are using 8950 # Microsoft Visual C++. 8951 if test "$GCC" != yes; then 8952 with_gnu_ld=no 8953 fi 8954 ;; 8955 interix*) 8956 # we just hope/assume this is gcc and not c89 (= MSVC++) 8957 with_gnu_ld=yes 8958 ;; 8959 openbsd*) 8960 with_gnu_ld=no 8961 ;; 8962 linux* | k*bsd*-gnu) 8963 link_all_deplibs=no 8964 ;; 8965 esac 8966 8967 ld_shlibs=yes 8968 if test "$with_gnu_ld" = yes; then 8969 # If archive_cmds runs LD, not CC, wlarc should be empty 8970 wlarc='${wl}' 8971 8972 # Set some defaults for GNU ld with shared library support. These 8973 # are reset later if shared libraries are not supported. Putting them 8974 # here allows them to be overridden if necessary. 8975 runpath_var=LD_RUN_PATH 8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8977 export_dynamic_flag_spec='${wl}--export-dynamic' 8978 # ancient GNU ld didn't support --whole-archive et. al. 8979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8981 else 8982 whole_archive_flag_spec= 8983 fi 8984 supports_anon_versioning=no 8985 case `$LD -v 2>&1` in 8986 *GNU\ gold*) supports_anon_versioning=yes ;; 8987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8990 *\ 2.11.*) ;; # other 2.11 versions 8991 *) supports_anon_versioning=yes ;; 8992 esac 8993 8994 # See if GNU ld supports shared libraries. 8995 case $host_os in 8996 aix[3-9]*) 8997 # On AIX/PPC, the GNU linker is very broken 8998 if test "$host_cpu" != ia64; then 8999 ld_shlibs=no 9000 cat <<_LT_EOF 1>&2 9001 9002 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 9003 *** to be unable to reliably create shared libraries on AIX. 9004 *** Therefore, libtool is disabling shared libraries support. If you 9005 *** really care for shared libraries, you may want to modify your PATH 9006 *** so that a non-GNU linker is found, and then restart. 9007 9008 _LT_EOF 9009 fi 9010 ;; 9011 9012 amigaos*) 9013 case $host_cpu in 9014 powerpc) 9015 # see comment about AmigaOS4 .so support 9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9017 archive_expsym_cmds='' 9018 ;; 9019 m68k) 9020 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)' 9021 hardcode_libdir_flag_spec='-L$libdir' 9022 hardcode_minus_L=yes 9023 ;; 9024 esac 9025 ;; 9026 9027 beos*) 9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9029 allow_undefined_flag=unsupported 9030 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9031 # support --undefined. This deserves some investigation. FIXME 9032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9033 else 9034 ld_shlibs=no 9035 fi 9036 ;; 9037 9038 cygwin* | mingw* | pw32* | cegcc*) 9039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9040 # as there is no search path for DLLs. 9041 hardcode_libdir_flag_spec='-L$libdir' 9042 allow_undefined_flag=unsupported 9043 always_export_symbols=no 9044 enable_shared_with_static_runtimes=yes 9045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9046 9047 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9049 # If the export-symbols file already is a .def file (1st line 9050 # is EXPORTS), use it as is; otherwise, prepend... 9051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9052 cp $export_symbols $output_objdir/$soname.def; 9053 else 9054 echo EXPORTS > $output_objdir/$soname.def; 9055 cat $export_symbols >> $output_objdir/$soname.def; 9056 fi~ 9057 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9058 else 9059 ld_shlibs=no 9060 fi 9061 ;; 9062 9063 interix[3-9]*) 9064 hardcode_direct=no 9065 hardcode_shlibpath_var=no 9066 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9067 export_dynamic_flag_spec='${wl}-E' 9068 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9069 # Instead, shared libraries are loaded at an image base (0x10000000 by 9070 # default) and relocated if they conflict, which is a slow very memory 9071 # consuming and fragmenting process. To avoid this, we pick a random, 9072 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9073 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9075 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' 9076 ;; 9077 9078 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9079 tmp_diet=no 9080 if test "$host_os" = linux-dietlibc; then 9081 case $cc_basename in 9082 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9083 esac 9084 fi 9085 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9086 && test "$tmp_diet" = no 9087 then 9088 tmp_addflag= 9089 tmp_sharedflag='-shared' 9090 case $cc_basename,$host_cpu in 9091 pgcc*) # Portland Group C compiler 9092 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9093 tmp_addflag=' $pic_flag' 9094 ;; 9095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9096 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9097 tmp_addflag=' $pic_flag -Mnomain' ;; 9098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9099 tmp_addflag=' -i_dynamic' ;; 9100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9101 tmp_addflag=' -i_dynamic -nofor_main' ;; 9102 ifc* | ifort*) # Intel Fortran compiler 9103 tmp_addflag=' -nofor_main' ;; 9104 lf95*) # Lahey Fortran 8.1 9105 whole_archive_flag_spec= 9106 tmp_sharedflag='--shared' ;; 9107 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9108 tmp_sharedflag='-qmkshrobj' 9109 tmp_addflag= ;; 9110 esac 9111 case `$CC -V 2>&1 | sed 5q` in 9112 *Sun\ C*) # Sun C 5.9 9113 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9114 compiler_needs_object=yes 9115 tmp_sharedflag='-G' ;; 9116 *Sun\ F*) # Sun Fortran 8.3 9117 tmp_sharedflag='-G' ;; 9118 esac 9119 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9120 9121 if test "x$supports_anon_versioning" = xyes; then 9122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9124 echo "local: *; };" >> $output_objdir/$libname.ver~ 9125 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9126 fi 9127 9128 case $cc_basename in 9129 xlf*) 9130 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9131 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9132 hardcode_libdir_flag_spec= 9133 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9134 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9135 if test "x$supports_anon_versioning" = xyes; then 9136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9138 echo "local: *; };" >> $output_objdir/$libname.ver~ 9139 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9140 fi 9141 ;; 9142 esac 9143 else 9144 ld_shlibs=no 9145 fi 9146 ;; 9147 9148 netbsd* | netbsdelf*-gnu) 9149 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9150 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9151 wlarc= 9152 else 9153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9155 fi 9156 ;; 9157 9158 solaris*) 9159 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9160 ld_shlibs=no 9161 cat <<_LT_EOF 1>&2 9162 9163 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9164 *** create shared libraries on Solaris systems. Therefore, libtool 9165 *** is disabling shared libraries support. We urge you to upgrade GNU 9166 *** binutils to release 2.9.1 or newer. Another option is to modify 9167 *** your PATH or compiler configuration so that the native linker is 9168 *** used, and then restart. 9169 9170 _LT_EOF 9171 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9173 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9174 else 9175 ld_shlibs=no 9176 fi 9177 ;; 9178 9179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9180 case `$LD -v 2>&1` in 9181 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9182 ld_shlibs=no 9183 cat <<_LT_EOF 1>&2 9184 9185 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9186 *** reliably create shared libraries on SCO systems. Therefore, libtool 9187 *** is disabling shared libraries support. We urge you to upgrade GNU 9188 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9189 *** your PATH or compiler configuration so that the native linker is 9190 *** used, and then restart. 9191 9192 _LT_EOF 9193 ;; 9194 *) 9195 # For security reasons, it is highly recommended that you always 9196 # use absolute paths for naming shared libraries, and exclude the 9197 # DT_RUNPATH tag from executables and libraries. But doing so 9198 # requires that you compile everything twice, which is a pain. 9199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9203 else 9204 ld_shlibs=no 9205 fi 9206 ;; 9207 esac 9208 ;; 9209 9210 sunos4*) 9211 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9212 wlarc= 9213 hardcode_direct=yes 9214 hardcode_shlibpath_var=no 9215 ;; 9216 9217 *) 9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9221 else 9222 ld_shlibs=no 9223 fi 9224 ;; 9225 esac 9226 9227 if test "$ld_shlibs" = no; then 9228 runpath_var= 9229 hardcode_libdir_flag_spec= 9230 export_dynamic_flag_spec= 9231 whole_archive_flag_spec= 9232 fi 9233 else 9234 # PORTME fill in a description of your system's linker (not GNU ld) 9235 case $host_os in 9236 aix3*) 9237 allow_undefined_flag=unsupported 9238 always_export_symbols=yes 9239 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' 9240 # Note: this linker hardcodes the directories in LIBPATH if there 9241 # are no directories specified by -L. 9242 hardcode_minus_L=yes 9243 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9244 # Neither direct hardcoding nor static linking is supported with a 9245 # broken collect2. 9246 hardcode_direct=unsupported 9247 fi 9248 ;; 9249 9250 aix[4-9]*) 9251 if test "$host_cpu" = ia64; then 9252 # On IA64, the linker does run time linking by default, so we don't 9253 # have to do anything special. 9254 aix_use_runtimelinking=no 9255 exp_sym_flag='-Bexport' 9256 no_entry_flag="" 9257 else 9258 # If we're using GNU nm, then we don't want the "-C" option. 9259 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9260 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9261 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9262 else 9263 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9264 fi 9265 aix_use_runtimelinking=no 9266 9267 # Test if we are trying to use run time linking or normal 9268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9269 # need to do runtime linking. 9270 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9271 for ld_flag in $LDFLAGS; do 9272 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9273 aix_use_runtimelinking=yes 9274 break 9275 fi 9276 done 9277 ;; 9278 esac 9279 9280 exp_sym_flag='-bexport' 9281 no_entry_flag='-bnoentry' 9282 fi 9283 9284 # When large executables or shared objects are built, AIX ld can 9285 # have problems creating the table of contents. If linking a library 9286 # or program results in "error TOC overflow" add -mminimal-toc to 9287 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9288 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9289 9290 archive_cmds='' 9291 hardcode_direct=yes 9292 hardcode_direct_absolute=yes 9293 hardcode_libdir_separator=':' 9294 link_all_deplibs=yes 9295 file_list_spec='${wl}-f,' 9296 9297 if test "$GCC" = yes; then 9298 case $host_os in aix4.[012]|aix4.[012].*) 9299 # We only want to do this on AIX 4.2 and lower, the check 9300 # below for broken collect2 doesn't work under 4.3+ 9301 collect2name=`${CC} -print-prog-name=collect2` 9302 if test -f "$collect2name" && 9303 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9304 then 9305 # We have reworked collect2 9306 : 9307 else 9308 # We have old collect2 9309 hardcode_direct=unsupported 9310 # It fails to find uninstalled libraries when the uninstalled 9311 # path is not listed in the libpath. Setting hardcode_minus_L 9312 # to unsupported forces relinking 9313 hardcode_minus_L=yes 9314 hardcode_libdir_flag_spec='-L$libdir' 9315 hardcode_libdir_separator= 9316 fi 9317 ;; 9318 esac 9319 shared_flag='-shared' 9320 if test "$aix_use_runtimelinking" = yes; then 9321 shared_flag="$shared_flag "'${wl}-G' 9322 fi 9323 link_all_deplibs=no 9324 else 9325 # not using gcc 9326 if test "$host_cpu" = ia64; then 9327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9328 # chokes on -Wl,-G. The following line is correct: 9329 shared_flag='-G' 9330 else 9331 if test "$aix_use_runtimelinking" = yes; then 9332 shared_flag='${wl}-G' 9333 else 9334 shared_flag='${wl}-bM:SRE' 9335 fi 9336 fi 9337 fi 9338 9339 export_dynamic_flag_spec='${wl}-bexpall' 9340 # It seems that -bexpall does not export symbols beginning with 9341 # underscore (_), so it is better to generate a list of symbols to export. 9342 always_export_symbols=yes 9343 if test "$aix_use_runtimelinking" = yes; then 9344 # Warning - without using the other runtime loading flags (-brtl), 9345 # -berok will link without error, but may produce a broken library. 9346 allow_undefined_flag='-berok' 9347 # Determine the default libpath from the value encoded in an 9348 # empty executable. 9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9350 /* end confdefs.h. */ 9351 9352 int 9353 main () 9354 { 9355 9356 ; 9357 return 0; 9358 } 9359 _ACEOF 9360 if ac_fn_c_try_link "$LINENO"; then : 9361 9362 lt_aix_libpath_sed=' 9363 /Import File Strings/,/^$/ { 9364 /^0/ { 9365 s/^0 *\(.*\)$/\1/ 9366 p 9367 } 9368 }' 9369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9370 # Check for a 64-bit object if we didn't find anything. 9371 if test -z "$aix_libpath"; then 9372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9373 fi 9374 fi 9375 rm -f core conftest.err conftest.$ac_objext \ 9376 conftest$ac_exeext conftest.$ac_ext 9377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9378 9379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9380 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9381 else 9382 if test "$host_cpu" = ia64; then 9383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9384 allow_undefined_flag="-z nodefs" 9385 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" 9386 else 9387 # Determine the default libpath from the value encoded in an 9388 # empty executable. 9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9390 /* end confdefs.h. */ 9391 9392 int 9393 main () 9394 { 9395 9396 ; 9397 return 0; 9398 } 9399 _ACEOF 9400 if ac_fn_c_try_link "$LINENO"; then : 9401 9402 lt_aix_libpath_sed=' 9403 /Import File Strings/,/^$/ { 9404 /^0/ { 9405 s/^0 *\(.*\)$/\1/ 9406 p 9407 } 9408 }' 9409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9410 # Check for a 64-bit object if we didn't find anything. 9411 if test -z "$aix_libpath"; then 9412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9413 fi 9414 fi 9415 rm -f core conftest.err conftest.$ac_objext \ 9416 conftest$ac_exeext conftest.$ac_ext 9417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9418 9419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9420 # Warning - without using the other run time loading flags, 9421 # -berok will link without error, but may produce a broken library. 9422 no_undefined_flag=' ${wl}-bernotok' 9423 allow_undefined_flag=' ${wl}-berok' 9424 # Exported symbols can be pulled into shared objects from archives 9425 whole_archive_flag_spec='$convenience' 9426 archive_cmds_need_lc=yes 9427 # This is similar to how AIX traditionally builds its shared libraries. 9428 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' 9429 fi 9430 fi 9431 ;; 9432 9433 amigaos*) 9434 case $host_cpu in 9435 powerpc) 9436 # see comment about AmigaOS4 .so support 9437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9438 archive_expsym_cmds='' 9439 ;; 9440 m68k) 9441 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)' 9442 hardcode_libdir_flag_spec='-L$libdir' 9443 hardcode_minus_L=yes 9444 ;; 9445 esac 9446 ;; 9447 9448 bsdi[45]*) 9449 export_dynamic_flag_spec=-rdynamic 9450 ;; 9451 9452 cygwin* | mingw* | pw32* | cegcc*) 9453 # When not using gcc, we currently assume that we are using 9454 # Microsoft Visual C++. 9455 # hardcode_libdir_flag_spec is actually meaningless, as there is 9456 # no search path for DLLs. 9457 hardcode_libdir_flag_spec=' ' 9458 allow_undefined_flag=unsupported 9459 # Tell ltmain to make .lib files, not .a files. 9460 libext=lib 9461 # Tell ltmain to make .dll files, not .so files. 9462 shrext_cmds=".dll" 9463 # FIXME: Setting linknames here is a bad hack. 9464 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9465 # The linker will automatically build a .lib file if we build a DLL. 9466 old_archive_from_new_cmds='true' 9467 # FIXME: Should let the user specify the lib program. 9468 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9469 fix_srcfile_path='`cygpath -w "$srcfile"`' 9470 enable_shared_with_static_runtimes=yes 9471 ;; 9472 9473 darwin* | rhapsody*) 9474 9475 9476 archive_cmds_need_lc=no 9477 hardcode_direct=no 9478 hardcode_automatic=yes 9479 hardcode_shlibpath_var=unsupported 9480 whole_archive_flag_spec='' 9481 link_all_deplibs=yes 9482 allow_undefined_flag="$_lt_dar_allow_undefined" 9483 case $cc_basename in 9484 ifort*) _lt_dar_can_shared=yes ;; 9485 *) _lt_dar_can_shared=$GCC ;; 9486 esac 9487 if test "$_lt_dar_can_shared" = "yes"; then 9488 output_verbose_link_cmd=echo 9489 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9490 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9491 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}" 9492 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}" 9493 9494 else 9495 ld_shlibs=no 9496 fi 9497 9498 ;; 9499 9500 dgux*) 9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9502 hardcode_libdir_flag_spec='-L$libdir' 9503 hardcode_shlibpath_var=no 9504 ;; 9505 9506 freebsd1*) 9507 ld_shlibs=no 9508 ;; 9509 9510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9511 # support. Future versions do this automatically, but an explicit c++rt0.o 9512 # does not break anything, and helps significantly (at the cost of a little 9513 # extra space). 9514 freebsd2.2*) 9515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9516 hardcode_libdir_flag_spec='-R$libdir' 9517 hardcode_direct=yes 9518 hardcode_shlibpath_var=no 9519 ;; 9520 9521 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9522 freebsd2*) 9523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9524 hardcode_direct=yes 9525 hardcode_minus_L=yes 9526 hardcode_shlibpath_var=no 9527 ;; 9528 9529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9530 freebsd* | dragonfly*) 9531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9532 hardcode_libdir_flag_spec='-R$libdir' 9533 hardcode_direct=yes 9534 hardcode_shlibpath_var=no 9535 ;; 9536 9537 hpux9*) 9538 if test "$GCC" = yes; then 9539 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' 9540 else 9541 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' 9542 fi 9543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9544 hardcode_libdir_separator=: 9545 hardcode_direct=yes 9546 9547 # hardcode_minus_L: Not really in the search PATH, 9548 # but as the default location of the library. 9549 hardcode_minus_L=yes 9550 export_dynamic_flag_spec='${wl}-E' 9551 ;; 9552 9553 hpux10*) 9554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9556 else 9557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9558 fi 9559 if test "$with_gnu_ld" = no; then 9560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9561 hardcode_libdir_flag_spec_ld='+b $libdir' 9562 hardcode_libdir_separator=: 9563 hardcode_direct=yes 9564 hardcode_direct_absolute=yes 9565 export_dynamic_flag_spec='${wl}-E' 9566 # hardcode_minus_L: Not really in the search PATH, 9567 # but as the default location of the library. 9568 hardcode_minus_L=yes 9569 fi 9570 ;; 9571 9572 hpux11*) 9573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9574 case $host_cpu in 9575 hppa*64*) 9576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9577 ;; 9578 ia64*) 9579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9580 ;; 9581 *) 9582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9583 ;; 9584 esac 9585 else 9586 case $host_cpu in 9587 hppa*64*) 9588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9589 ;; 9590 ia64*) 9591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9592 ;; 9593 *) 9594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9595 ;; 9596 esac 9597 fi 9598 if test "$with_gnu_ld" = no; then 9599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9600 hardcode_libdir_separator=: 9601 9602 case $host_cpu in 9603 hppa*64*|ia64*) 9604 hardcode_direct=no 9605 hardcode_shlibpath_var=no 9606 ;; 9607 *) 9608 hardcode_direct=yes 9609 hardcode_direct_absolute=yes 9610 export_dynamic_flag_spec='${wl}-E' 9611 9612 # hardcode_minus_L: Not really in the search PATH, 9613 # but as the default location of the library. 9614 hardcode_minus_L=yes 9615 ;; 9616 esac 9617 fi 9618 ;; 9619 9620 irix5* | irix6* | nonstopux*) 9621 if test "$GCC" = yes; then 9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9623 # Try to use the -exported_symbol ld option, if it does not 9624 # work, assume that -exports_file does not work either and 9625 # implicitly export all symbols. 9626 save_LDFLAGS="$LDFLAGS" 9627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629 /* end confdefs.h. */ 9630 int foo(void) {} 9631 _ACEOF 9632 if ac_fn_c_try_link "$LINENO"; then : 9633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9634 9635 fi 9636 rm -f core conftest.err conftest.$ac_objext \ 9637 conftest$ac_exeext conftest.$ac_ext 9638 LDFLAGS="$save_LDFLAGS" 9639 else 9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9642 fi 9643 archive_cmds_need_lc='no' 9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9645 hardcode_libdir_separator=: 9646 inherit_rpath=yes 9647 link_all_deplibs=yes 9648 ;; 9649 9650 netbsd* | netbsdelf*-gnu) 9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9653 else 9654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9655 fi 9656 hardcode_libdir_flag_spec='-R$libdir' 9657 hardcode_direct=yes 9658 hardcode_shlibpath_var=no 9659 ;; 9660 9661 newsos6) 9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9663 hardcode_direct=yes 9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9665 hardcode_libdir_separator=: 9666 hardcode_shlibpath_var=no 9667 ;; 9668 9669 *nto* | *qnx*) 9670 ;; 9671 9672 openbsd*) 9673 if test -f /usr/libexec/ld.so; then 9674 hardcode_direct=yes 9675 hardcode_shlibpath_var=no 9676 hardcode_direct_absolute=yes 9677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9681 export_dynamic_flag_spec='${wl}-E' 9682 else 9683 case $host_os in 9684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_libdir_flag_spec='-R$libdir' 9687 ;; 9688 *) 9689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9691 ;; 9692 esac 9693 fi 9694 else 9695 ld_shlibs=no 9696 fi 9697 ;; 9698 9699 os2*) 9700 hardcode_libdir_flag_spec='-L$libdir' 9701 hardcode_minus_L=yes 9702 allow_undefined_flag=unsupported 9703 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' 9704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9705 ;; 9706 9707 osf3*) 9708 if test "$GCC" = yes; then 9709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9710 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9711 else 9712 allow_undefined_flag=' -expect_unresolved \*' 9713 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9714 fi 9715 archive_cmds_need_lc='no' 9716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9717 hardcode_libdir_separator=: 9718 ;; 9719 9720 osf4* | osf5*) # as osf3* with the addition of -msym flag 9721 if test "$GCC" = yes; then 9722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9723 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9725 else 9726 allow_undefined_flag=' -expect_unresolved \*' 9727 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9728 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~ 9729 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9730 9731 # Both c and cxx compiler support -rpath directly 9732 hardcode_libdir_flag_spec='-rpath $libdir' 9733 fi 9734 archive_cmds_need_lc='no' 9735 hardcode_libdir_separator=: 9736 ;; 9737 9738 solaris*) 9739 no_undefined_flag=' -z defs' 9740 if test "$GCC" = yes; then 9741 wlarc='${wl}' 9742 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9745 else 9746 case `$CC -V 2>&1` in 9747 *"Compilers 5.0"*) 9748 wlarc='' 9749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9752 ;; 9753 *) 9754 wlarc='${wl}' 9755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9758 ;; 9759 esac 9760 fi 9761 hardcode_libdir_flag_spec='-R$libdir' 9762 hardcode_shlibpath_var=no 9763 case $host_os in 9764 solaris2.[0-5] | solaris2.[0-5].*) ;; 9765 *) 9766 # The compiler driver will combine and reorder linker options, 9767 # but understands `-z linker_flag'. GCC discards it without `$wl', 9768 # but is careful enough not to reorder. 9769 # Supported since Solaris 2.6 (maybe 2.5.1?) 9770 if test "$GCC" = yes; then 9771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9772 else 9773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9774 fi 9775 ;; 9776 esac 9777 link_all_deplibs=yes 9778 ;; 9779 9780 sunos4*) 9781 if test "x$host_vendor" = xsequent; then 9782 # Use $CC to link under sequent, because it throws in some extra .o 9783 # files that make .init and .fini sections work. 9784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9785 else 9786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9787 fi 9788 hardcode_libdir_flag_spec='-L$libdir' 9789 hardcode_direct=yes 9790 hardcode_minus_L=yes 9791 hardcode_shlibpath_var=no 9792 ;; 9793 9794 sysv4) 9795 case $host_vendor in 9796 sni) 9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_direct=yes # is this really true??? 9799 ;; 9800 siemens) 9801 ## LD is ld it makes a PLAMLIB 9802 ## CC just makes a GrossModule. 9803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9804 reload_cmds='$CC -r -o $output$reload_objs' 9805 hardcode_direct=no 9806 ;; 9807 motorola) 9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9810 ;; 9811 esac 9812 runpath_var='LD_RUN_PATH' 9813 hardcode_shlibpath_var=no 9814 ;; 9815 9816 sysv4.3*) 9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_shlibpath_var=no 9819 export_dynamic_flag_spec='-Bexport' 9820 ;; 9821 9822 sysv4*MP*) 9823 if test -d /usr/nec; then 9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9825 hardcode_shlibpath_var=no 9826 runpath_var=LD_RUN_PATH 9827 hardcode_runpath_var=yes 9828 ld_shlibs=yes 9829 fi 9830 ;; 9831 9832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9833 no_undefined_flag='${wl}-z,text' 9834 archive_cmds_need_lc=no 9835 hardcode_shlibpath_var=no 9836 runpath_var='LD_RUN_PATH' 9837 9838 if test "$GCC" = yes; then 9839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9841 else 9842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9844 fi 9845 ;; 9846 9847 sysv5* | sco3.2v5* | sco5v6*) 9848 # Note: We can NOT use -z defs as we might desire, because we do not 9849 # link with -lc, and that would cause any symbols used from libc to 9850 # always be unresolved, which means just about no library would 9851 # ever link correctly. If we're not using GNU ld we use -z text 9852 # though, which does catch some bad symbols but isn't as heavy-handed 9853 # as -z defs. 9854 no_undefined_flag='${wl}-z,text' 9855 allow_undefined_flag='${wl}-z,nodefs' 9856 archive_cmds_need_lc=no 9857 hardcode_shlibpath_var=no 9858 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9859 hardcode_libdir_separator=':' 9860 link_all_deplibs=yes 9861 export_dynamic_flag_spec='${wl}-Bexport' 9862 runpath_var='LD_RUN_PATH' 9863 9864 if test "$GCC" = yes; then 9865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9867 else 9868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9870 fi 9871 ;; 9872 9873 uts4*) 9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9875 hardcode_libdir_flag_spec='-L$libdir' 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 *) 9880 ld_shlibs=no 9881 ;; 9882 esac 9883 9884 if test x$host_vendor = xsni; then 9885 case $host in 9886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9887 export_dynamic_flag_spec='${wl}-Blargedynsym' 9888 ;; 9889 esac 9890 fi 9891 fi 9892 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9894 $as_echo "$ld_shlibs" >&6; } 9895 test "$ld_shlibs" = no && can_build_shared=no 9896 9897 with_gnu_ld=$with_gnu_ld 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 # 9914 # Do we need to explicitly link libc? 9915 # 9916 case "x$archive_cmds_need_lc" in 9917 x|xyes) 9918 # Assume -lc should be added 9919 archive_cmds_need_lc=yes 9920 9921 if test "$enable_shared" = yes && test "$GCC" = yes; then 9922 case $archive_cmds in 9923 *'~'*) 9924 # FIXME: we may have to deal with multi-command sequences. 9925 ;; 9926 '$CC '*) 9927 # Test whether the compiler implicitly links with -lc since on some 9928 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9929 # to ld, don't add -lc before -lgcc. 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9931 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9932 $RM conftest* 9933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9934 9935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9936 (eval $ac_compile) 2>&5 9937 ac_status=$? 9938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9939 test $ac_status = 0; } 2>conftest.err; then 9940 soname=conftest 9941 lib=conftest 9942 libobjs=conftest.$ac_objext 9943 deplibs= 9944 wl=$lt_prog_compiler_wl 9945 pic_flag=$lt_prog_compiler_pic 9946 compiler_flags=-v 9947 linker_flags=-v 9948 verstring= 9949 output_objdir=. 9950 libname=conftest 9951 lt_save_allow_undefined_flag=$allow_undefined_flag 9952 allow_undefined_flag= 9953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9954 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9955 ac_status=$? 9956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9957 test $ac_status = 0; } 9958 then 9959 archive_cmds_need_lc=no 9960 else 9961 archive_cmds_need_lc=yes 9962 fi 9963 allow_undefined_flag=$lt_save_allow_undefined_flag 9964 else 9965 cat conftest.err 1>&5 9966 fi 9967 $RM conftest* 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9969 $as_echo "$archive_cmds_need_lc" >&6; } 9970 ;; 9971 esac 9972 fi 9973 ;; 9974 esac 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10133 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10134 10135 if test "$GCC" = yes; then 10136 case $host_os in 10137 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10138 *) lt_awk_arg="/^libraries:/" ;; 10139 esac 10140 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10141 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10142 # if the path contains ";" then we assume it to be the separator 10143 # otherwise default to the standard path separator (i.e. ":") - it is 10144 # assumed that no part of a normal pathname contains ";" but that should 10145 # okay in the real world where ";" in dirpaths is itself problematic. 10146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10147 else 10148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10149 fi 10150 # Ok, now we have the path, separated by spaces, we can step through it 10151 # and add multilib dir if necessary. 10152 lt_tmp_lt_search_path_spec= 10153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10154 for lt_sys_path in $lt_search_path_spec; do 10155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10157 else 10158 test -d "$lt_sys_path" && \ 10159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10160 fi 10161 done 10162 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10163 BEGIN {RS=" "; FS="/|\n";} { 10164 lt_foo=""; 10165 lt_count=0; 10166 for (lt_i = NF; lt_i > 0; lt_i--) { 10167 if ($lt_i != "" && $lt_i != ".") { 10168 if ($lt_i == "..") { 10169 lt_count++; 10170 } else { 10171 if (lt_count == 0) { 10172 lt_foo="/" $lt_i lt_foo; 10173 } else { 10174 lt_count--; 10175 } 10176 } 10177 } 10178 } 10179 if (lt_foo != "") { lt_freq[lt_foo]++; } 10180 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10181 }'` 10182 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10183 else 10184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10185 fi 10186 library_names_spec= 10187 libname_spec='lib$name' 10188 soname_spec= 10189 shrext_cmds=".so" 10190 postinstall_cmds= 10191 postuninstall_cmds= 10192 finish_cmds= 10193 finish_eval= 10194 shlibpath_var= 10195 shlibpath_overrides_runpath=unknown 10196 version_type=none 10197 dynamic_linker="$host_os ld.so" 10198 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10199 need_lib_prefix=unknown 10200 hardcode_into_libs=no 10201 10202 # when you set need_version to no, make sure it does not cause -set_version 10203 # flags to be left without arguments 10204 need_version=unknown 10205 10206 case $host_os in 10207 aix3*) 10208 version_type=linux 10209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10210 shlibpath_var=LIBPATH 10211 10212 # AIX 3 has no versioning support, so we append a major version to the name. 10213 soname_spec='${libname}${release}${shared_ext}$major' 10214 ;; 10215 10216 aix[4-9]*) 10217 version_type=linux 10218 need_lib_prefix=no 10219 need_version=no 10220 hardcode_into_libs=yes 10221 if test "$host_cpu" = ia64; then 10222 # AIX 5 supports IA64 10223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10224 shlibpath_var=LD_LIBRARY_PATH 10225 else 10226 # With GCC up to 2.95.x, collect2 would create an import file 10227 # for dependence libraries. The import file would start with 10228 # the line `#! .'. This would cause the generated library to 10229 # depend on `.', always an invalid library. This was fixed in 10230 # development snapshots of GCC prior to 3.0. 10231 case $host_os in 10232 aix4 | aix4.[01] | aix4.[01].*) 10233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10234 echo ' yes ' 10235 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10236 : 10237 else 10238 can_build_shared=no 10239 fi 10240 ;; 10241 esac 10242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10243 # soname into executable. Probably we can add versioning support to 10244 # collect2, so additional links can be useful in future. 10245 if test "$aix_use_runtimelinking" = yes; then 10246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10247 # instead of lib<name>.a to let people know that these are not 10248 # typical AIX shared libraries. 10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10250 else 10251 # We preserve .a as extension for shared libraries through AIX4.2 10252 # and later when we are not doing run time linking. 10253 library_names_spec='${libname}${release}.a $libname.a' 10254 soname_spec='${libname}${release}${shared_ext}$major' 10255 fi 10256 shlibpath_var=LIBPATH 10257 fi 10258 ;; 10259 10260 amigaos*) 10261 case $host_cpu in 10262 powerpc) 10263 # Since July 2007 AmigaOS4 officially supports .so libraries. 10264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10266 ;; 10267 m68k) 10268 library_names_spec='$libname.ixlibrary $libname.a' 10269 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 10271 ;; 10272 esac 10273 ;; 10274 10275 beos*) 10276 library_names_spec='${libname}${shared_ext}' 10277 dynamic_linker="$host_os ld.so" 10278 shlibpath_var=LIBRARY_PATH 10279 ;; 10280 10281 bsdi[45]*) 10282 version_type=linux 10283 need_version=no 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10285 soname_spec='${libname}${release}${shared_ext}$major' 10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10287 shlibpath_var=LD_LIBRARY_PATH 10288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10290 # the default ld.so.conf also contains /usr/contrib/lib and 10291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10292 # libtool to hard-code these into programs 10293 ;; 10294 10295 cygwin* | mingw* | pw32* | cegcc*) 10296 version_type=windows 10297 shrext_cmds=".dll" 10298 need_version=no 10299 need_lib_prefix=no 10300 10301 case $GCC,$host_os in 10302 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10303 library_names_spec='$libname.dll.a' 10304 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10305 postinstall_cmds='base_file=`basename \${file}`~ 10306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10307 dldir=$destdir/`dirname \$dlpath`~ 10308 test -d \$dldir || mkdir -p \$dldir~ 10309 $install_prog $dir/$dlname \$dldir/$dlname~ 10310 chmod a+x \$dldir/$dlname~ 10311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10313 fi' 10314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10315 dlpath=$dir/\$dldll~ 10316 $RM \$dlpath' 10317 shlibpath_overrides_runpath=yes 10318 10319 case $host_os in 10320 cygwin*) 10321 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10324 ;; 10325 mingw* | cegcc*) 10326 # MinGW DLLs use traditional 'lib' prefix 10327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10328 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10330 # It is most probably a Windows format PATH printed by 10331 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10332 # path with ; separators, and with drive letters. We can handle the 10333 # drive letters (cygwin fileutils understands them), so leave them, 10334 # especially as we might pass files found there to a mingw objdump, 10335 # which wouldn't understand a cygwinified path. Ahh. 10336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10337 else 10338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10339 fi 10340 ;; 10341 pw32*) 10342 # pw32 DLLs use 'pw' prefix rather than 'lib' 10343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10344 ;; 10345 esac 10346 ;; 10347 10348 *) 10349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10350 ;; 10351 esac 10352 dynamic_linker='Win32 ld.exe' 10353 # FIXME: first we should search . and the directory the executable is in 10354 shlibpath_var=PATH 10355 ;; 10356 10357 darwin* | rhapsody*) 10358 dynamic_linker="$host_os dyld" 10359 version_type=darwin 10360 need_lib_prefix=no 10361 need_version=no 10362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10363 soname_spec='${libname}${release}${major}$shared_ext' 10364 shlibpath_overrides_runpath=yes 10365 shlibpath_var=DYLD_LIBRARY_PATH 10366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10367 10368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10370 ;; 10371 10372 dgux*) 10373 version_type=linux 10374 need_lib_prefix=no 10375 need_version=no 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 ;; 10380 10381 freebsd1*) 10382 dynamic_linker=no 10383 ;; 10384 10385 freebsd* | dragonfly*) 10386 # DragonFly does not have aout. When/if they implement a new 10387 # versioning mechanism, adjust this. 10388 if test -x /usr/bin/objformat; then 10389 objformat=`/usr/bin/objformat` 10390 else 10391 case $host_os in 10392 freebsd[123]*) objformat=aout ;; 10393 *) objformat=elf ;; 10394 esac 10395 fi 10396 version_type=freebsd-$objformat 10397 case $version_type in 10398 freebsd-elf*) 10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10400 need_version=no 10401 need_lib_prefix=no 10402 ;; 10403 freebsd-*) 10404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10405 need_version=yes 10406 ;; 10407 esac 10408 shlibpath_var=LD_LIBRARY_PATH 10409 case $host_os in 10410 freebsd2*) 10411 shlibpath_overrides_runpath=yes 10412 ;; 10413 freebsd3.[01]* | freebsdelf3.[01]*) 10414 shlibpath_overrides_runpath=yes 10415 hardcode_into_libs=yes 10416 ;; 10417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10419 shlibpath_overrides_runpath=no 10420 hardcode_into_libs=yes 10421 ;; 10422 *) # from 4.6 on, and DragonFly 10423 shlibpath_overrides_runpath=yes 10424 hardcode_into_libs=yes 10425 ;; 10426 esac 10427 ;; 10428 10429 gnu*) 10430 version_type=linux 10431 need_lib_prefix=no 10432 need_version=no 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10434 soname_spec='${libname}${release}${shared_ext}$major' 10435 shlibpath_var=LD_LIBRARY_PATH 10436 hardcode_into_libs=yes 10437 ;; 10438 10439 hpux9* | hpux10* | hpux11*) 10440 # Give a soname corresponding to the major version so that dld.sl refuses to 10441 # link against other versions. 10442 version_type=sunos 10443 need_lib_prefix=no 10444 need_version=no 10445 case $host_cpu in 10446 ia64*) 10447 shrext_cmds='.so' 10448 hardcode_into_libs=yes 10449 dynamic_linker="$host_os dld.so" 10450 shlibpath_var=LD_LIBRARY_PATH 10451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10453 soname_spec='${libname}${release}${shared_ext}$major' 10454 if test "X$HPUX_IA64_MODE" = X32; then 10455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10456 else 10457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10458 fi 10459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10460 ;; 10461 hppa*64*) 10462 shrext_cmds='.sl' 10463 hardcode_into_libs=yes 10464 dynamic_linker="$host_os dld.sl" 10465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10468 soname_spec='${libname}${release}${shared_ext}$major' 10469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10471 ;; 10472 *) 10473 shrext_cmds='.sl' 10474 dynamic_linker="$host_os dld.sl" 10475 shlibpath_var=SHLIB_PATH 10476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 10480 esac 10481 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10482 postinstall_cmds='chmod 555 $lib' 10483 ;; 10484 10485 interix[3-9]*) 10486 version_type=linux 10487 need_lib_prefix=no 10488 need_version=no 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10490 soname_spec='${libname}${release}${shared_ext}$major' 10491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10492 shlibpath_var=LD_LIBRARY_PATH 10493 shlibpath_overrides_runpath=no 10494 hardcode_into_libs=yes 10495 ;; 10496 10497 irix5* | irix6* | nonstopux*) 10498 case $host_os in 10499 nonstopux*) version_type=nonstopux ;; 10500 *) 10501 if test "$lt_cv_prog_gnu_ld" = yes; then 10502 version_type=linux 10503 else 10504 version_type=irix 10505 fi ;; 10506 esac 10507 need_lib_prefix=no 10508 need_version=no 10509 soname_spec='${libname}${release}${shared_ext}$major' 10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10511 case $host_os in 10512 irix5* | nonstopux*) 10513 libsuff= shlibsuff= 10514 ;; 10515 *) 10516 case $LD in # libtool.m4 will add one of these switches to LD 10517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10518 libsuff= shlibsuff= libmagic=32-bit;; 10519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10520 libsuff=32 shlibsuff=N32 libmagic=N32;; 10521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10522 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10523 *) libsuff= shlibsuff= libmagic=never-match;; 10524 esac 10525 ;; 10526 esac 10527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10528 shlibpath_overrides_runpath=no 10529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10531 hardcode_into_libs=yes 10532 ;; 10533 10534 # No shared lib support for Linux oldld, aout, or coff. 10535 linux*oldld* | linux*aout* | linux*coff*) 10536 dynamic_linker=no 10537 ;; 10538 10539 # This must be Linux ELF. 10540 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10541 version_type=linux 10542 need_lib_prefix=no 10543 need_version=no 10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10545 soname_spec='${libname}${release}${shared_ext}$major' 10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10547 shlibpath_var=LD_LIBRARY_PATH 10548 shlibpath_overrides_runpath=no 10549 # Some binutils ld are patched to set DT_RUNPATH 10550 save_LDFLAGS=$LDFLAGS 10551 save_libdir=$libdir 10552 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10553 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10555 /* end confdefs.h. */ 10556 10557 int 10558 main () 10559 { 10560 10561 ; 10562 return 0; 10563 } 10564 _ACEOF 10565 if ac_fn_c_try_link "$LINENO"; then : 10566 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10567 shlibpath_overrides_runpath=yes 10568 fi 10569 fi 10570 rm -f core conftest.err conftest.$ac_objext \ 10571 conftest$ac_exeext conftest.$ac_ext 10572 LDFLAGS=$save_LDFLAGS 10573 libdir=$save_libdir 10574 10575 # This implies no fast_install, which is unacceptable. 10576 # Some rework will be needed to allow for fast_install 10577 # before this can be enabled. 10578 hardcode_into_libs=yes 10579 10580 # Append ld.so.conf contents to the search path 10581 if test -f /etc/ld.so.conf; then 10582 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;/^$/d' | tr '\n' ' '` 10583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10584 fi 10585 10586 # We used to test for /lib/ld.so.1 and disable shared libraries on 10587 # powerpc, because MkLinux only supported shared libraries with the 10588 # GNU dynamic linker. Since this was broken with cross compilers, 10589 # most powerpc-linux boxes support dynamic linking these days and 10590 # people can always --disable-shared, the test was removed, and we 10591 # assume the GNU/Linux dynamic linker is in use. 10592 dynamic_linker='GNU/Linux ld.so' 10593 ;; 10594 10595 netbsdelf*-gnu) 10596 version_type=linux 10597 need_lib_prefix=no 10598 need_version=no 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10600 soname_spec='${libname}${release}${shared_ext}$major' 10601 shlibpath_var=LD_LIBRARY_PATH 10602 shlibpath_overrides_runpath=no 10603 hardcode_into_libs=yes 10604 dynamic_linker='NetBSD ld.elf_so' 10605 ;; 10606 10607 netbsd*) 10608 version_type=sunos 10609 need_lib_prefix=no 10610 need_version=no 10611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10614 dynamic_linker='NetBSD (a.out) ld.so' 10615 else 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 dynamic_linker='NetBSD ld.elf_so' 10619 fi 10620 shlibpath_var=LD_LIBRARY_PATH 10621 shlibpath_overrides_runpath=yes 10622 hardcode_into_libs=yes 10623 ;; 10624 10625 newsos6) 10626 version_type=linux 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 shlibpath_overrides_runpath=yes 10630 ;; 10631 10632 *nto* | *qnx*) 10633 version_type=qnx 10634 need_lib_prefix=no 10635 need_version=no 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10637 soname_spec='${libname}${release}${shared_ext}$major' 10638 shlibpath_var=LD_LIBRARY_PATH 10639 shlibpath_overrides_runpath=no 10640 hardcode_into_libs=yes 10641 dynamic_linker='ldqnx.so' 10642 ;; 10643 10644 openbsd*) 10645 version_type=sunos 10646 sys_lib_dlsearch_path_spec="/usr/lib" 10647 need_lib_prefix=no 10648 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10649 case $host_os in 10650 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10651 *) need_version=no ;; 10652 esac 10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10655 shlibpath_var=LD_LIBRARY_PATH 10656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10657 case $host_os in 10658 openbsd2.[89] | openbsd2.[89].*) 10659 shlibpath_overrides_runpath=no 10660 ;; 10661 *) 10662 shlibpath_overrides_runpath=yes 10663 ;; 10664 esac 10665 else 10666 shlibpath_overrides_runpath=yes 10667 fi 10668 ;; 10669 10670 os2*) 10671 libname_spec='$name' 10672 shrext_cmds=".dll" 10673 need_lib_prefix=no 10674 library_names_spec='$libname${shared_ext} $libname.a' 10675 dynamic_linker='OS/2 ld.exe' 10676 shlibpath_var=LIBPATH 10677 ;; 10678 10679 osf3* | osf4* | osf5*) 10680 version_type=osf 10681 need_lib_prefix=no 10682 need_version=no 10683 soname_spec='${libname}${release}${shared_ext}$major' 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10687 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10688 ;; 10689 10690 rdos*) 10691 dynamic_linker=no 10692 ;; 10693 10694 solaris*) 10695 version_type=linux 10696 need_lib_prefix=no 10697 need_version=no 10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10699 soname_spec='${libname}${release}${shared_ext}$major' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 shlibpath_overrides_runpath=yes 10702 hardcode_into_libs=yes 10703 # ldd complains unless libraries are executable 10704 postinstall_cmds='chmod +x $lib' 10705 ;; 10706 10707 sunos4*) 10708 version_type=sunos 10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10710 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10711 shlibpath_var=LD_LIBRARY_PATH 10712 shlibpath_overrides_runpath=yes 10713 if test "$with_gnu_ld" = yes; then 10714 need_lib_prefix=no 10715 fi 10716 need_version=yes 10717 ;; 10718 10719 sysv4 | sysv4.3*) 10720 version_type=linux 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10722 soname_spec='${libname}${release}${shared_ext}$major' 10723 shlibpath_var=LD_LIBRARY_PATH 10724 case $host_vendor in 10725 sni) 10726 shlibpath_overrides_runpath=no 10727 need_lib_prefix=no 10728 runpath_var=LD_RUN_PATH 10729 ;; 10730 siemens) 10731 need_lib_prefix=no 10732 ;; 10733 motorola) 10734 need_lib_prefix=no 10735 need_version=no 10736 shlibpath_overrides_runpath=no 10737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10738 ;; 10739 esac 10740 ;; 10741 10742 sysv4*MP*) 10743 if test -d /usr/nec ;then 10744 version_type=linux 10745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10746 soname_spec='$libname${shared_ext}.$major' 10747 shlibpath_var=LD_LIBRARY_PATH 10748 fi 10749 ;; 10750 10751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10752 version_type=freebsd-elf 10753 need_lib_prefix=no 10754 need_version=no 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10756 soname_spec='${libname}${release}${shared_ext}$major' 10757 shlibpath_var=LD_LIBRARY_PATH 10758 shlibpath_overrides_runpath=yes 10759 hardcode_into_libs=yes 10760 if test "$with_gnu_ld" = yes; then 10761 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10762 else 10763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10764 case $host_os in 10765 sco3.2v5*) 10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10767 ;; 10768 esac 10769 fi 10770 sys_lib_dlsearch_path_spec='/usr/lib' 10771 ;; 10772 10773 tpf*) 10774 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10775 version_type=linux 10776 need_lib_prefix=no 10777 need_version=no 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 shlibpath_overrides_runpath=no 10781 hardcode_into_libs=yes 10782 ;; 10783 10784 uts4*) 10785 version_type=linux 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10787 soname_spec='${libname}${release}${shared_ext}$major' 10788 shlibpath_var=LD_LIBRARY_PATH 10789 ;; 10790 10791 *) 10792 dynamic_linker=no 10793 ;; 10794 esac 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10796 $as_echo "$dynamic_linker" >&6; } 10797 test "$dynamic_linker" = no && can_build_shared=no 10798 10799 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10800 if test "$GCC" = yes; then 10801 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10802 fi 10803 10804 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10805 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10806 fi 10807 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10808 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10809 fi 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10898 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10899 hardcode_action= 10900 if test -n "$hardcode_libdir_flag_spec" || 10901 test -n "$runpath_var" || 10902 test "X$hardcode_automatic" = "Xyes" ; then 10903 10904 # We can hardcode non-existent directories. 10905 if test "$hardcode_direct" != no && 10906 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10907 # have to relink, otherwise we might link with an installed library 10908 # when we should be linking with a yet-to-be-installed one 10909 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10910 test "$hardcode_minus_L" != no; then 10911 # Linking always hardcodes the temporary library directory. 10912 hardcode_action=relink 10913 else 10914 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10915 hardcode_action=immediate 10916 fi 10917 else 10918 # We cannot hardcode anything, or else we can only hardcode existing 10919 # directories. 10920 hardcode_action=unsupported 10921 fi 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10923 $as_echo "$hardcode_action" >&6; } 10924 10925 if test "$hardcode_action" = relink || 10926 test "$inherit_rpath" = yes; then 10927 # Fast installation is not supported 10928 enable_fast_install=no 10929 elif test "$shlibpath_overrides_runpath" = yes || 10930 test "$enable_shared" = no; then 10931 # Fast installation is not necessary 10932 enable_fast_install=needless 10933 fi 10934 10935 10936 10937 10938 10939 10940 if test "x$enable_dlopen" != xyes; then 10941 enable_dlopen=unknown 10942 enable_dlopen_self=unknown 10943 enable_dlopen_self_static=unknown 10944 else 10945 lt_cv_dlopen=no 10946 lt_cv_dlopen_libs= 10947 10948 case $host_os in 10949 beos*) 10950 lt_cv_dlopen="load_add_on" 10951 lt_cv_dlopen_libs= 10952 lt_cv_dlopen_self=yes 10953 ;; 10954 10955 mingw* | pw32* | cegcc*) 10956 lt_cv_dlopen="LoadLibrary" 10957 lt_cv_dlopen_libs= 10958 ;; 10959 10960 cygwin*) 10961 lt_cv_dlopen="dlopen" 10962 lt_cv_dlopen_libs= 10963 ;; 10964 10965 darwin*) 10966 # if libdl is installed we need to link against it 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10968 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10969 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10970 $as_echo_n "(cached) " >&6 10971 else 10972 ac_check_lib_save_LIBS=$LIBS 10973 LIBS="-ldl $LIBS" 10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10975 /* end confdefs.h. */ 10976 10977 /* Override any GCC internal prototype to avoid an error. 10978 Use char because int might match the return type of a GCC 10979 builtin and then its argument prototype would still apply. */ 10980 #ifdef __cplusplus 10981 extern "C" 10982 #endif 10983 char dlopen (); 10984 int 10985 main () 10986 { 10987 return dlopen (); 10988 ; 10989 return 0; 10990 } 10991 _ACEOF 10992 if ac_fn_c_try_link "$LINENO"; then : 10993 ac_cv_lib_dl_dlopen=yes 10994 else 10995 ac_cv_lib_dl_dlopen=no 10996 fi 10997 rm -f core conftest.err conftest.$ac_objext \ 10998 conftest$ac_exeext conftest.$ac_ext 10999 LIBS=$ac_check_lib_save_LIBS 11000 fi 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11003 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11005 else 11006 11007 lt_cv_dlopen="dyld" 11008 lt_cv_dlopen_libs= 11009 lt_cv_dlopen_self=yes 11010 11011 fi 11012 11013 ;; 11014 11015 *) 11016 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11017 if test "x$ac_cv_func_shl_load" = x""yes; then : 11018 lt_cv_dlopen="shl_load" 11019 else 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11021 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11022 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11023 $as_echo_n "(cached) " >&6 11024 else 11025 ac_check_lib_save_LIBS=$LIBS 11026 LIBS="-ldld $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 shl_load (); 11037 int 11038 main () 11039 { 11040 return shl_load (); 11041 ; 11042 return 0; 11043 } 11044 _ACEOF 11045 if ac_fn_c_try_link "$LINENO"; then : 11046 ac_cv_lib_dld_shl_load=yes 11047 else 11048 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5 11055 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11056 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11058 else 11059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11060 if test "x$ac_cv_func_dlopen" = x""yes; then : 11061 lt_cv_dlopen="dlopen" 11062 else 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11064 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11065 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11066 $as_echo_n "(cached) " >&6 11067 else 11068 ac_check_lib_save_LIBS=$LIBS 11069 LIBS="-ldl $LIBS" 11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071 /* end confdefs.h. */ 11072 11073 /* Override any GCC internal prototype to avoid an error. 11074 Use char because int might match the return type of a GCC 11075 builtin and then its argument prototype would still apply. */ 11076 #ifdef __cplusplus 11077 extern "C" 11078 #endif 11079 char dlopen (); 11080 int 11081 main () 11082 { 11083 return dlopen (); 11084 ; 11085 return 0; 11086 } 11087 _ACEOF 11088 if ac_fn_c_try_link "$LINENO"; then : 11089 ac_cv_lib_dl_dlopen=yes 11090 else 11091 ac_cv_lib_dl_dlopen=no 11092 fi 11093 rm -f core conftest.err conftest.$ac_objext \ 11094 conftest$ac_exeext conftest.$ac_ext 11095 LIBS=$ac_check_lib_save_LIBS 11096 fi 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11098 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11099 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11101 else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11103 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11104 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11105 $as_echo_n "(cached) " >&6 11106 else 11107 ac_check_lib_save_LIBS=$LIBS 11108 LIBS="-lsvld $LIBS" 11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11110 /* end confdefs.h. */ 11111 11112 /* Override any GCC internal prototype to avoid an error. 11113 Use char because int might match the return type of a GCC 11114 builtin and then its argument prototype would still apply. */ 11115 #ifdef __cplusplus 11116 extern "C" 11117 #endif 11118 char dlopen (); 11119 int 11120 main () 11121 { 11122 return dlopen (); 11123 ; 11124 return 0; 11125 } 11126 _ACEOF 11127 if ac_fn_c_try_link "$LINENO"; then : 11128 ac_cv_lib_svld_dlopen=yes 11129 else 11130 ac_cv_lib_svld_dlopen=no 11131 fi 11132 rm -f core conftest.err conftest.$ac_objext \ 11133 conftest$ac_exeext conftest.$ac_ext 11134 LIBS=$ac_check_lib_save_LIBS 11135 fi 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11137 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11138 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11140 else 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11142 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11144 $as_echo_n "(cached) " >&6 11145 else 11146 ac_check_lib_save_LIBS=$LIBS 11147 LIBS="-ldld $LIBS" 11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11149 /* end confdefs.h. */ 11150 11151 /* Override any GCC internal prototype to avoid an error. 11152 Use char because int might match the return type of a GCC 11153 builtin and then its argument prototype would still apply. */ 11154 #ifdef __cplusplus 11155 extern "C" 11156 #endif 11157 char dld_link (); 11158 int 11159 main () 11160 { 11161 return dld_link (); 11162 ; 11163 return 0; 11164 } 11165 _ACEOF 11166 if ac_fn_c_try_link "$LINENO"; then : 11167 ac_cv_lib_dld_dld_link=yes 11168 else 11169 ac_cv_lib_dld_dld_link=no 11170 fi 11171 rm -f core conftest.err conftest.$ac_objext \ 11172 conftest$ac_exeext conftest.$ac_ext 11173 LIBS=$ac_check_lib_save_LIBS 11174 fi 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11177 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11179 fi 11180 11181 11182 fi 11183 11184 11185 fi 11186 11187 11188 fi 11189 11190 11191 fi 11192 11193 11194 fi 11195 11196 ;; 11197 esac 11198 11199 if test "x$lt_cv_dlopen" != xno; then 11200 enable_dlopen=yes 11201 else 11202 enable_dlopen=no 11203 fi 11204 11205 case $lt_cv_dlopen in 11206 dlopen) 11207 save_CPPFLAGS="$CPPFLAGS" 11208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11209 11210 save_LDFLAGS="$LDFLAGS" 11211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11212 11213 save_LIBS="$LIBS" 11214 LIBS="$lt_cv_dlopen_libs $LIBS" 11215 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11217 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11218 if test "${lt_cv_dlopen_self+set}" = set; then : 11219 $as_echo_n "(cached) " >&6 11220 else 11221 if test "$cross_compiling" = yes; then : 11222 lt_cv_dlopen_self=cross 11223 else 11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11225 lt_status=$lt_dlunknown 11226 cat > conftest.$ac_ext <<_LT_EOF 11227 #line 11227 "configure" 11228 #include "confdefs.h" 11229 11230 #if HAVE_DLFCN_H 11231 #include <dlfcn.h> 11232 #endif 11233 11234 #include <stdio.h> 11235 11236 #ifdef RTLD_GLOBAL 11237 # define LT_DLGLOBAL RTLD_GLOBAL 11238 #else 11239 # ifdef DL_GLOBAL 11240 # define LT_DLGLOBAL DL_GLOBAL 11241 # else 11242 # define LT_DLGLOBAL 0 11243 # endif 11244 #endif 11245 11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11247 find out it does not work in some platform. */ 11248 #ifndef LT_DLLAZY_OR_NOW 11249 # ifdef RTLD_LAZY 11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11251 # else 11252 # ifdef DL_LAZY 11253 # define LT_DLLAZY_OR_NOW DL_LAZY 11254 # else 11255 # ifdef RTLD_NOW 11256 # define LT_DLLAZY_OR_NOW RTLD_NOW 11257 # else 11258 # ifdef DL_NOW 11259 # define LT_DLLAZY_OR_NOW DL_NOW 11260 # else 11261 # define LT_DLLAZY_OR_NOW 0 11262 # endif 11263 # endif 11264 # endif 11265 # endif 11266 #endif 11267 11268 void fnord() { int i=42;} 11269 int main () 11270 { 11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11272 int status = $lt_dlunknown; 11273 11274 if (self) 11275 { 11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11278 /* dlclose (self); */ 11279 } 11280 else 11281 puts (dlerror ()); 11282 11283 return status; 11284 } 11285 _LT_EOF 11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11287 (eval $ac_link) 2>&5 11288 ac_status=$? 11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11291 (./conftest; exit; ) >&5 2>/dev/null 11292 lt_status=$? 11293 case x$lt_status in 11294 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11295 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11296 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11297 esac 11298 else : 11299 # compilation failed 11300 lt_cv_dlopen_self=no 11301 fi 11302 fi 11303 rm -fr conftest* 11304 11305 11306 fi 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11308 $as_echo "$lt_cv_dlopen_self" >&6; } 11309 11310 if test "x$lt_cv_dlopen_self" = xyes; then 11311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11314 if test "${lt_cv_dlopen_self_static+set}" = set; then : 11315 $as_echo_n "(cached) " >&6 11316 else 11317 if test "$cross_compiling" = yes; then : 11318 lt_cv_dlopen_self_static=cross 11319 else 11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11321 lt_status=$lt_dlunknown 11322 cat > conftest.$ac_ext <<_LT_EOF 11323 #line 11323 "configure" 11324 #include "confdefs.h" 11325 11326 #if HAVE_DLFCN_H 11327 #include <dlfcn.h> 11328 #endif 11329 11330 #include <stdio.h> 11331 11332 #ifdef RTLD_GLOBAL 11333 # define LT_DLGLOBAL RTLD_GLOBAL 11334 #else 11335 # ifdef DL_GLOBAL 11336 # define LT_DLGLOBAL DL_GLOBAL 11337 # else 11338 # define LT_DLGLOBAL 0 11339 # endif 11340 #endif 11341 11342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11343 find out it does not work in some platform. */ 11344 #ifndef LT_DLLAZY_OR_NOW 11345 # ifdef RTLD_LAZY 11346 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11347 # else 11348 # ifdef DL_LAZY 11349 # define LT_DLLAZY_OR_NOW DL_LAZY 11350 # else 11351 # ifdef RTLD_NOW 11352 # define LT_DLLAZY_OR_NOW RTLD_NOW 11353 # else 11354 # ifdef DL_NOW 11355 # define LT_DLLAZY_OR_NOW DL_NOW 11356 # else 11357 # define LT_DLLAZY_OR_NOW 0 11358 # endif 11359 # endif 11360 # endif 11361 # endif 11362 #endif 11363 11364 void fnord() { int i=42;} 11365 int main () 11366 { 11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11368 int status = $lt_dlunknown; 11369 11370 if (self) 11371 { 11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11374 /* dlclose (self); */ 11375 } 11376 else 11377 puts (dlerror ()); 11378 11379 return status; 11380 } 11381 _LT_EOF 11382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11383 (eval $ac_link) 2>&5 11384 ac_status=$? 11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11386 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11387 (./conftest; exit; ) >&5 2>/dev/null 11388 lt_status=$? 11389 case x$lt_status in 11390 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11391 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11392 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11393 esac 11394 else : 11395 # compilation failed 11396 lt_cv_dlopen_self_static=no 11397 fi 11398 fi 11399 rm -fr conftest* 11400 11401 11402 fi 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11404 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11405 fi 11406 11407 CPPFLAGS="$save_CPPFLAGS" 11408 LDFLAGS="$save_LDFLAGS" 11409 LIBS="$save_LIBS" 11410 ;; 11411 esac 11412 11413 case $lt_cv_dlopen_self in 11414 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11415 *) enable_dlopen_self=unknown ;; 11416 esac 11417 11418 case $lt_cv_dlopen_self_static in 11419 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11420 *) enable_dlopen_self_static=unknown ;; 11421 esac 11422 fi 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 striplib= 11441 old_striplib= 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11445 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11446 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11448 $as_echo "yes" >&6; } 11449 else 11450 # FIXME - insert some real tests, host_os isn't really good enough 11451 case $host_os in 11452 darwin*) 11453 if test -n "$STRIP" ; then 11454 striplib="$STRIP -x" 11455 old_striplib="$STRIP -S" 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11457 $as_echo "yes" >&6; } 11458 else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11460 $as_echo "no" >&6; } 11461 fi 11462 ;; 11463 *) 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11465 $as_echo "no" >&6; } 11466 ;; 11467 esac 11468 fi 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 # Report which library types will actually be built 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11485 $as_echo "$can_build_shared" >&6; } 11486 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11488 $as_echo_n "checking whether to build shared libraries... " >&6; } 11489 test "$can_build_shared" = "no" && enable_shared=no 11490 11491 # On AIX, shared libraries and static libraries use the same namespace, and 11492 # are all built from PIC. 11493 case $host_os in 11494 aix3*) 11495 test "$enable_shared" = yes && enable_static=no 11496 if test -n "$RANLIB"; then 11497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11498 postinstall_cmds='$RANLIB $lib' 11499 fi 11500 ;; 11501 11502 aix[4-9]*) 11503 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11504 test "$enable_shared" = yes && enable_static=no 11505 fi 11506 ;; 11507 esac 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11509 $as_echo "$enable_shared" >&6; } 11510 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11512 $as_echo_n "checking whether to build static libraries... " >&6; } 11513 # Make sure either enable_shared or enable_static is yes. 11514 test "$enable_shared" = yes || enable_static=yes 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11516 $as_echo "$enable_static" >&6; } 11517 11518 11519 11520 11521 fi 11522 ac_ext=c 11523 ac_cpp='$CPP $CPPFLAGS' 11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11527 11528 CC="$lt_save_CC" 11529 11530 11531 ac_ext=cpp 11532 ac_cpp='$CXXCPP $CPPFLAGS' 11533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11536 11537 archive_cmds_need_lc_CXX=no 11538 allow_undefined_flag_CXX= 11539 always_export_symbols_CXX=no 11540 archive_expsym_cmds_CXX= 11541 compiler_needs_object_CXX=no 11542 export_dynamic_flag_spec_CXX= 11543 hardcode_direct_CXX=no 11544 hardcode_direct_absolute_CXX=no 11545 hardcode_libdir_flag_spec_CXX= 11546 hardcode_libdir_flag_spec_ld_CXX= 11547 hardcode_libdir_separator_CXX= 11548 hardcode_minus_L_CXX=no 11549 hardcode_shlibpath_var_CXX=unsupported 11550 hardcode_automatic_CXX=no 11551 inherit_rpath_CXX=no 11552 module_cmds_CXX= 11553 module_expsym_cmds_CXX= 11554 link_all_deplibs_CXX=unknown 11555 old_archive_cmds_CXX=$old_archive_cmds 11556 no_undefined_flag_CXX= 11557 whole_archive_flag_spec_CXX= 11558 enable_shared_with_static_runtimes_CXX=no 11559 11560 # Source file extension for C++ test sources. 11561 ac_ext=cpp 11562 11563 # Object file extension for compiled C++ test sources. 11564 objext=o 11565 objext_CXX=$objext 11566 11567 # No sense in running all these tests if we already determined that 11568 # the CXX compiler isn't working. Some variables (like enable_shared) 11569 # are currently assumed to apply to all compilers on this platform, 11570 # and will be corrupted by setting them based on a non-working compiler. 11571 if test "$_lt_caught_CXX_error" != yes; then 11572 # Code to be used in simple compile tests 11573 lt_simple_compile_test_code="int some_variable = 0;" 11574 11575 # Code to be used in simple link tests 11576 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11577 11578 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11579 11580 11581 11582 11583 11584 11585 # If no C compiler was specified, use CC. 11586 LTCC=${LTCC-"$CC"} 11587 11588 # If no C compiler flags were specified, use CFLAGS. 11589 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11590 11591 # Allow CC to be a program name with arguments. 11592 compiler=$CC 11593 11594 11595 # save warnings/boilerplate of simple test code 11596 ac_outfile=conftest.$ac_objext 11597 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11598 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11599 _lt_compiler_boilerplate=`cat conftest.err` 11600 $RM conftest* 11601 11602 ac_outfile=conftest.$ac_objext 11603 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11604 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11605 _lt_linker_boilerplate=`cat conftest.err` 11606 $RM -r conftest* 11607 11608 11609 # Allow CC to be a program name with arguments. 11610 lt_save_CC=$CC 11611 lt_save_LD=$LD 11612 lt_save_GCC=$GCC 11613 GCC=$GXX 11614 lt_save_with_gnu_ld=$with_gnu_ld 11615 lt_save_path_LD=$lt_cv_path_LD 11616 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11617 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11618 else 11619 $as_unset lt_cv_prog_gnu_ld 11620 fi 11621 if test -n "${lt_cv_path_LDCXX+set}"; then 11622 lt_cv_path_LD=$lt_cv_path_LDCXX 11623 else 11624 $as_unset lt_cv_path_LD 11625 fi 11626 test -z "${LDCXX+set}" || LD=$LDCXX 11627 CC=${CXX-"c++"} 11628 compiler=$CC 11629 compiler_CXX=$CC 11630 for cc_temp in $compiler""; do 11631 case $cc_temp in 11632 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11633 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11634 \-*) ;; 11635 *) break;; 11636 esac 11637 done 11638 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11639 11640 11641 if test -n "$compiler"; then 11642 # We don't want -fno-exception when compiling C++ code, so set the 11643 # no_builtin_flag separately 11644 if test "$GXX" = yes; then 11645 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11646 else 11647 lt_prog_compiler_no_builtin_flag_CXX= 11648 fi 11649 11650 if test "$GXX" = yes; then 11651 # Set up default GNU C++ configuration 11652 11653 11654 11655 # Check whether --with-gnu-ld was given. 11656 if test "${with_gnu_ld+set}" = set; then : 11657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11658 else 11659 with_gnu_ld=no 11660 fi 11661 11662 ac_prog=ld 11663 if test "$GCC" = yes; then 11664 # Check if gcc -print-prog-name=ld gives a path. 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11666 $as_echo_n "checking for ld used by $CC... " >&6; } 11667 case $host in 11668 *-*-mingw*) 11669 # gcc leaves a trailing carriage return which upsets mingw 11670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11671 *) 11672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11673 esac 11674 case $ac_prog in 11675 # Accept absolute paths. 11676 [\\/]* | ?:[\\/]*) 11677 re_direlt='/[^/][^/]*/\.\./' 11678 # Canonicalize the pathname of ld 11679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11682 done 11683 test -z "$LD" && LD="$ac_prog" 11684 ;; 11685 "") 11686 # If it fails, then pretend we aren't using GCC. 11687 ac_prog=ld 11688 ;; 11689 *) 11690 # If it is relative, then search for the first ld in PATH. 11691 with_gnu_ld=unknown 11692 ;; 11693 esac 11694 elif test "$with_gnu_ld" = yes; then 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11696 $as_echo_n "checking for GNU ld... " >&6; } 11697 else 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11699 $as_echo_n "checking for non-GNU ld... " >&6; } 11700 fi 11701 if test "${lt_cv_path_LD+set}" = set; then : 11702 $as_echo_n "(cached) " >&6 11703 else 11704 if test -z "$LD"; then 11705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11706 for ac_dir in $PATH; do 11707 IFS="$lt_save_ifs" 11708 test -z "$ac_dir" && ac_dir=. 11709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11710 lt_cv_path_LD="$ac_dir/$ac_prog" 11711 # Check to see if the program is GNU ld. I'd rather use --version, 11712 # but apparently some variants of GNU ld only accept -v. 11713 # Break only if it was the GNU/non-GNU ld that we prefer. 11714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11715 *GNU* | *'with BFD'*) 11716 test "$with_gnu_ld" != no && break 11717 ;; 11718 *) 11719 test "$with_gnu_ld" != yes && break 11720 ;; 11721 esac 11722 fi 11723 done 11724 IFS="$lt_save_ifs" 11725 else 11726 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11727 fi 11728 fi 11729 11730 LD="$lt_cv_path_LD" 11731 if test -n "$LD"; then 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11733 $as_echo "$LD" >&6; } 11734 else 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11736 $as_echo "no" >&6; } 11737 fi 11738 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11740 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11741 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11742 $as_echo_n "(cached) " >&6 11743 else 11744 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11745 case `$LD -v 2>&1 </dev/null` in 11746 *GNU* | *'with BFD'*) 11747 lt_cv_prog_gnu_ld=yes 11748 ;; 11749 *) 11750 lt_cv_prog_gnu_ld=no 11751 ;; 11752 esac 11753 fi 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11755 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11756 with_gnu_ld=$lt_cv_prog_gnu_ld 11757 11758 11759 11760 11761 11762 11763 11764 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11765 # archiving commands below assume that GNU ld is being used. 11766 if test "$with_gnu_ld" = yes; then 11767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11768 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11769 11770 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11772 11773 # If archive_cmds runs LD, not CC, wlarc should be empty 11774 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11775 # investigate it a little bit more. (MM) 11776 wlarc='${wl}' 11777 11778 # ancient GNU ld didn't support --whole-archive et. al. 11779 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11780 $GREP 'no-whole-archive' > /dev/null; then 11781 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11782 else 11783 whole_archive_flag_spec_CXX= 11784 fi 11785 else 11786 with_gnu_ld=no 11787 wlarc= 11788 11789 # A generic and very simple default shared library creation 11790 # command for GNU C++ for the case where it uses the native 11791 # linker, instead of GNU ld. If possible, this setting should 11792 # overridden to take advantage of the native linker features on 11793 # the platform it is being used on. 11794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11795 fi 11796 11797 # Commands to make compiler produce verbose output that lists 11798 # what "hidden" libraries, object files and flags are used when 11799 # linking a shared library. 11800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 11801 11802 else 11803 GXX=no 11804 with_gnu_ld=no 11805 wlarc= 11806 fi 11807 11808 # PORTME: fill in a description of your system's C++ link characteristics 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11811 ld_shlibs_CXX=yes 11812 case $host_os in 11813 aix3*) 11814 # FIXME: insert proper C++ library support 11815 ld_shlibs_CXX=no 11816 ;; 11817 aix[4-9]*) 11818 if test "$host_cpu" = ia64; then 11819 # On IA64, the linker does run time linking by default, so we don't 11820 # have to do anything special. 11821 aix_use_runtimelinking=no 11822 exp_sym_flag='-Bexport' 11823 no_entry_flag="" 11824 else 11825 aix_use_runtimelinking=no 11826 11827 # Test if we are trying to use run time linking or normal 11828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11829 # need to do runtime linking. 11830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11831 for ld_flag in $LDFLAGS; do 11832 case $ld_flag in 11833 *-brtl*) 11834 aix_use_runtimelinking=yes 11835 break 11836 ;; 11837 esac 11838 done 11839 ;; 11840 esac 11841 11842 exp_sym_flag='-bexport' 11843 no_entry_flag='-bnoentry' 11844 fi 11845 11846 # When large executables or shared objects are built, AIX ld can 11847 # have problems creating the table of contents. If linking a library 11848 # or program results in "error TOC overflow" add -mminimal-toc to 11849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11851 11852 archive_cmds_CXX='' 11853 hardcode_direct_CXX=yes 11854 hardcode_direct_absolute_CXX=yes 11855 hardcode_libdir_separator_CXX=':' 11856 link_all_deplibs_CXX=yes 11857 file_list_spec_CXX='${wl}-f,' 11858 11859 if test "$GXX" = yes; then 11860 case $host_os in aix4.[012]|aix4.[012].*) 11861 # We only want to do this on AIX 4.2 and lower, the check 11862 # below for broken collect2 doesn't work under 4.3+ 11863 collect2name=`${CC} -print-prog-name=collect2` 11864 if test -f "$collect2name" && 11865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11866 then 11867 # We have reworked collect2 11868 : 11869 else 11870 # We have old collect2 11871 hardcode_direct_CXX=unsupported 11872 # It fails to find uninstalled libraries when the uninstalled 11873 # path is not listed in the libpath. Setting hardcode_minus_L 11874 # to unsupported forces relinking 11875 hardcode_minus_L_CXX=yes 11876 hardcode_libdir_flag_spec_CXX='-L$libdir' 11877 hardcode_libdir_separator_CXX= 11878 fi 11879 esac 11880 shared_flag='-shared' 11881 if test "$aix_use_runtimelinking" = yes; then 11882 shared_flag="$shared_flag "'${wl}-G' 11883 fi 11884 else 11885 # not using gcc 11886 if test "$host_cpu" = ia64; then 11887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11888 # chokes on -Wl,-G. The following line is correct: 11889 shared_flag='-G' 11890 else 11891 if test "$aix_use_runtimelinking" = yes; then 11892 shared_flag='${wl}-G' 11893 else 11894 shared_flag='${wl}-bM:SRE' 11895 fi 11896 fi 11897 fi 11898 11899 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11900 # It seems that -bexpall does not export symbols beginning with 11901 # underscore (_), so it is better to generate a list of symbols to 11902 # export. 11903 always_export_symbols_CXX=yes 11904 if test "$aix_use_runtimelinking" = yes; then 11905 # Warning - without using the other runtime loading flags (-brtl), 11906 # -berok will link without error, but may produce a broken library. 11907 allow_undefined_flag_CXX='-berok' 11908 # Determine the default libpath from the value encoded in an empty 11909 # executable. 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911 /* end confdefs.h. */ 11912 11913 int 11914 main () 11915 { 11916 11917 ; 11918 return 0; 11919 } 11920 _ACEOF 11921 if ac_fn_cxx_try_link "$LINENO"; then : 11922 11923 lt_aix_libpath_sed=' 11924 /Import File Strings/,/^$/ { 11925 /^0/ { 11926 s/^0 *\(.*\)$/\1/ 11927 p 11928 } 11929 }' 11930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11931 # Check for a 64-bit object if we didn't find anything. 11932 if test -z "$aix_libpath"; then 11933 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11934 fi 11935 fi 11936 rm -f core conftest.err conftest.$ac_objext \ 11937 conftest$ac_exeext conftest.$ac_ext 11938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11939 11940 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11941 11942 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11943 else 11944 if test "$host_cpu" = ia64; then 11945 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11946 allow_undefined_flag_CXX="-z nodefs" 11947 archive_expsym_cmds_CXX="\$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" 11948 else 11949 # Determine the default libpath from the value encoded in an 11950 # empty executable. 11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11952 /* end confdefs.h. */ 11953 11954 int 11955 main () 11956 { 11957 11958 ; 11959 return 0; 11960 } 11961 _ACEOF 11962 if ac_fn_cxx_try_link "$LINENO"; then : 11963 11964 lt_aix_libpath_sed=' 11965 /Import File Strings/,/^$/ { 11966 /^0/ { 11967 s/^0 *\(.*\)$/\1/ 11968 p 11969 } 11970 }' 11971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11972 # Check for a 64-bit object if we didn't find anything. 11973 if test -z "$aix_libpath"; then 11974 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11975 fi 11976 fi 11977 rm -f core conftest.err conftest.$ac_objext \ 11978 conftest$ac_exeext conftest.$ac_ext 11979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11980 11981 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11982 # Warning - without using the other run time loading flags, 11983 # -berok will link without error, but may produce a broken library. 11984 no_undefined_flag_CXX=' ${wl}-bernotok' 11985 allow_undefined_flag_CXX=' ${wl}-berok' 11986 # Exported symbols can be pulled into shared objects from archives 11987 whole_archive_flag_spec_CXX='$convenience' 11988 archive_cmds_need_lc_CXX=yes 11989 # This is similar to how AIX traditionally builds its shared 11990 # libraries. 11991 archive_expsym_cmds_CXX="\$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' 11992 fi 11993 fi 11994 ;; 11995 11996 beos*) 11997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11998 allow_undefined_flag_CXX=unsupported 11999 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12000 # support --undefined. This deserves some investigation. FIXME 12001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12002 else 12003 ld_shlibs_CXX=no 12004 fi 12005 ;; 12006 12007 chorus*) 12008 case $cc_basename in 12009 *) 12010 # FIXME: insert proper C++ library support 12011 ld_shlibs_CXX=no 12012 ;; 12013 esac 12014 ;; 12015 12016 cygwin* | mingw* | pw32* | cegcc*) 12017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12018 # as there is no search path for DLLs. 12019 hardcode_libdir_flag_spec_CXX='-L$libdir' 12020 allow_undefined_flag_CXX=unsupported 12021 always_export_symbols_CXX=no 12022 enable_shared_with_static_runtimes_CXX=yes 12023 12024 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12025 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12026 # If the export-symbols file already is a .def file (1st line 12027 # is EXPORTS), use it as is; otherwise, prepend... 12028 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12029 cp $export_symbols $output_objdir/$soname.def; 12030 else 12031 echo EXPORTS > $output_objdir/$soname.def; 12032 cat $export_symbols >> $output_objdir/$soname.def; 12033 fi~ 12034 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12035 else 12036 ld_shlibs_CXX=no 12037 fi 12038 ;; 12039 darwin* | rhapsody*) 12040 12041 12042 archive_cmds_need_lc_CXX=no 12043 hardcode_direct_CXX=no 12044 hardcode_automatic_CXX=yes 12045 hardcode_shlibpath_var_CXX=unsupported 12046 whole_archive_flag_spec_CXX='' 12047 link_all_deplibs_CXX=yes 12048 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12049 case $cc_basename in 12050 ifort*) _lt_dar_can_shared=yes ;; 12051 *) _lt_dar_can_shared=$GCC ;; 12052 esac 12053 if test "$_lt_dar_can_shared" = "yes"; then 12054 output_verbose_link_cmd=echo 12055 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12056 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12057 archive_expsym_cmds_CXX="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}" 12058 module_expsym_cmds_CXX="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}" 12059 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12060 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12061 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12062 fi 12063 12064 else 12065 ld_shlibs_CXX=no 12066 fi 12067 12068 ;; 12069 12070 dgux*) 12071 case $cc_basename in 12072 ec++*) 12073 # FIXME: insert proper C++ library support 12074 ld_shlibs_CXX=no 12075 ;; 12076 ghcx*) 12077 # Green Hills C++ Compiler 12078 # FIXME: insert proper C++ library support 12079 ld_shlibs_CXX=no 12080 ;; 12081 *) 12082 # FIXME: insert proper C++ library support 12083 ld_shlibs_CXX=no 12084 ;; 12085 esac 12086 ;; 12087 12088 freebsd[12]*) 12089 # C++ shared libraries reported to be fairly broken before 12090 # switch to ELF 12091 ld_shlibs_CXX=no 12092 ;; 12093 12094 freebsd-elf*) 12095 archive_cmds_need_lc_CXX=no 12096 ;; 12097 12098 freebsd* | dragonfly*) 12099 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12100 # conventions 12101 ld_shlibs_CXX=yes 12102 ;; 12103 12104 gnu*) 12105 ;; 12106 12107 hpux9*) 12108 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12109 hardcode_libdir_separator_CXX=: 12110 export_dynamic_flag_spec_CXX='${wl}-E' 12111 hardcode_direct_CXX=yes 12112 hardcode_minus_L_CXX=yes # Not in the search PATH, 12113 # but as the default 12114 # location of the library. 12115 12116 case $cc_basename in 12117 CC*) 12118 # FIXME: insert proper C++ library support 12119 ld_shlibs_CXX=no 12120 ;; 12121 aCC*) 12122 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12123 # Commands to make compiler produce verbose output that lists 12124 # what "hidden" libraries, object files and flags are used when 12125 # linking a shared library. 12126 # 12127 # There doesn't appear to be a way to prevent this compiler from 12128 # explicitly linking system object files so we need to strip them 12129 # from the output so that they don't get included in the library 12130 # dependencies. 12131 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12132 ;; 12133 *) 12134 if test "$GXX" = yes; then 12135 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12136 else 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 fi 12140 ;; 12141 esac 12142 ;; 12143 12144 hpux10*|hpux11*) 12145 if test $with_gnu_ld = no; then 12146 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12147 hardcode_libdir_separator_CXX=: 12148 12149 case $host_cpu in 12150 hppa*64*|ia64*) 12151 ;; 12152 *) 12153 export_dynamic_flag_spec_CXX='${wl}-E' 12154 ;; 12155 esac 12156 fi 12157 case $host_cpu in 12158 hppa*64*|ia64*) 12159 hardcode_direct_CXX=no 12160 hardcode_shlibpath_var_CXX=no 12161 ;; 12162 *) 12163 hardcode_direct_CXX=yes 12164 hardcode_direct_absolute_CXX=yes 12165 hardcode_minus_L_CXX=yes # Not in the search PATH, 12166 # but as the default 12167 # location of the library. 12168 ;; 12169 esac 12170 12171 case $cc_basename in 12172 CC*) 12173 # FIXME: insert proper C++ library support 12174 ld_shlibs_CXX=no 12175 ;; 12176 aCC*) 12177 case $host_cpu in 12178 hppa*64*) 12179 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12180 ;; 12181 ia64*) 12182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12183 ;; 12184 *) 12185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12186 ;; 12187 esac 12188 # Commands to make compiler produce verbose output that lists 12189 # what "hidden" libraries, object files and flags are used when 12190 # linking a shared library. 12191 # 12192 # There doesn't appear to be a way to prevent this compiler from 12193 # explicitly linking system object files so we need to strip them 12194 # from the output so that they don't get included in the library 12195 # dependencies. 12196 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12197 ;; 12198 *) 12199 if test "$GXX" = yes; then 12200 if test $with_gnu_ld = no; then 12201 case $host_cpu in 12202 hppa*64*) 12203 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12204 ;; 12205 ia64*) 12206 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12207 ;; 12208 *) 12209 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12210 ;; 12211 esac 12212 fi 12213 else 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 fi 12217 ;; 12218 esac 12219 ;; 12220 12221 interix[3-9]*) 12222 hardcode_direct_CXX=no 12223 hardcode_shlibpath_var_CXX=no 12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12225 export_dynamic_flag_spec_CXX='${wl}-E' 12226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12227 # Instead, shared libraries are loaded at an image base (0x10000000 by 12228 # default) and relocated if they conflict, which is a slow very memory 12229 # consuming and fragmenting process. To avoid this, we pick a random, 12230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12231 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12232 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12233 archive_expsym_cmds_CXX='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' 12234 ;; 12235 irix5* | irix6*) 12236 case $cc_basename in 12237 CC*) 12238 # SGI C++ 12239 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12240 12241 # Archives containing C++ object files must be created using 12242 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12243 # necessary to make sure instantiated templates are included 12244 # in the archive. 12245 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12246 ;; 12247 *) 12248 if test "$GXX" = yes; then 12249 if test "$with_gnu_ld" = no; then 12250 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12251 else 12252 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 12253 fi 12254 fi 12255 link_all_deplibs_CXX=yes 12256 ;; 12257 esac 12258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12259 hardcode_libdir_separator_CXX=: 12260 inherit_rpath_CXX=yes 12261 ;; 12262 12263 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12264 case $cc_basename in 12265 KCC*) 12266 # Kuck and Associates, Inc. (KAI) C++ Compiler 12267 12268 # KCC will only create a shared library if the output file 12269 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12270 # to its proper name (with version) after linking. 12271 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12272 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12273 # Commands to make compiler produce verbose output that lists 12274 # what "hidden" libraries, object files and flags are used when 12275 # linking a shared library. 12276 # 12277 # There doesn't appear to be a way to prevent this compiler from 12278 # explicitly linking system object files so we need to strip them 12279 # from the output so that they don't get included in the library 12280 # dependencies. 12281 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12282 12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12285 12286 # Archives containing C++ object files must be created using 12287 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12288 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12289 ;; 12290 icpc* | ecpc* ) 12291 # Intel C++ 12292 with_gnu_ld=yes 12293 # version 8.0 and above of icpc choke on multiply defined symbols 12294 # if we add $predep_objects and $postdep_objects, however 7.1 and 12295 # earlier do not add the objects themselves. 12296 case `$CC -V 2>&1` in 12297 *"Version 7."*) 12298 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12299 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12300 ;; 12301 *) # Version 8.0 or newer 12302 tmp_idyn= 12303 case $host_cpu in 12304 ia64*) tmp_idyn=' -i_dynamic';; 12305 esac 12306 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12307 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12308 ;; 12309 esac 12310 archive_cmds_need_lc_CXX=no 12311 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12312 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12313 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12314 ;; 12315 pgCC* | pgcpp*) 12316 # Portland Group C++ compiler 12317 case `$CC -V` in 12318 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 12319 prelink_cmds_CXX='tpldir=Template.dir~ 12320 rm -rf $tpldir~ 12321 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12322 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12323 old_archive_cmds_CXX='tpldir=Template.dir~ 12324 rm -rf $tpldir~ 12325 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12326 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12327 $RANLIB $oldlib' 12328 archive_cmds_CXX='tpldir=Template.dir~ 12329 rm -rf $tpldir~ 12330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12331 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12332 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12333 rm -rf $tpldir~ 12334 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12335 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12336 ;; 12337 *) # Version 6 will use weak symbols 12338 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12339 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12340 ;; 12341 esac 12342 12343 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12345 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12346 ;; 12347 cxx*) 12348 # Compaq C++ 12349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12350 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12351 12352 runpath_var=LD_RUN_PATH 12353 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12354 hardcode_libdir_separator_CXX=: 12355 12356 # Commands to make compiler produce verbose output that lists 12357 # what "hidden" libraries, object files and flags are used when 12358 # linking a shared library. 12359 # 12360 # There doesn't appear to be a way to prevent this compiler from 12361 # explicitly linking system object files so we need to strip them 12362 # from the output so that they don't get included in the library 12363 # dependencies. 12364 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12365 ;; 12366 xl*) 12367 # IBM XL 8.0 on PPC, with GNU ld 12368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12369 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12370 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12371 if test "x$supports_anon_versioning" = xyes; then 12372 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12374 echo "local: *; };" >> $output_objdir/$libname.ver~ 12375 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12376 fi 12377 ;; 12378 *) 12379 case `$CC -V 2>&1 | sed 5q` in 12380 *Sun\ C*) 12381 # Sun C++ 5.9 12382 no_undefined_flag_CXX=' -zdefs' 12383 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12384 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12385 hardcode_libdir_flag_spec_CXX='-R$libdir' 12386 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12387 compiler_needs_object_CXX=yes 12388 12389 # Not sure whether something based on 12390 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12391 # would be better. 12392 output_verbose_link_cmd='echo' 12393 12394 # Archives containing C++ object files must be created using 12395 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12396 # necessary to make sure instantiated templates are included 12397 # in the archive. 12398 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12399 ;; 12400 esac 12401 ;; 12402 esac 12403 ;; 12404 12405 lynxos*) 12406 # FIXME: insert proper C++ library support 12407 ld_shlibs_CXX=no 12408 ;; 12409 12410 m88k*) 12411 # FIXME: insert proper C++ library support 12412 ld_shlibs_CXX=no 12413 ;; 12414 12415 mvs*) 12416 case $cc_basename in 12417 cxx*) 12418 # FIXME: insert proper C++ library support 12419 ld_shlibs_CXX=no 12420 ;; 12421 *) 12422 # FIXME: insert proper C++ library support 12423 ld_shlibs_CXX=no 12424 ;; 12425 esac 12426 ;; 12427 12428 netbsd*) 12429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12430 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12431 wlarc= 12432 hardcode_libdir_flag_spec_CXX='-R$libdir' 12433 hardcode_direct_CXX=yes 12434 hardcode_shlibpath_var_CXX=no 12435 fi 12436 # Workaround some broken pre-1.5 toolchains 12437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12438 ;; 12439 12440 *nto* | *qnx*) 12441 ld_shlibs_CXX=yes 12442 ;; 12443 12444 openbsd2*) 12445 # C++ shared libraries are fairly broken 12446 ld_shlibs_CXX=no 12447 ;; 12448 12449 openbsd*) 12450 if test -f /usr/libexec/ld.so; then 12451 hardcode_direct_CXX=yes 12452 hardcode_shlibpath_var_CXX=no 12453 hardcode_direct_absolute_CXX=yes 12454 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12457 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12458 export_dynamic_flag_spec_CXX='${wl}-E' 12459 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12460 fi 12461 output_verbose_link_cmd=echo 12462 else 12463 ld_shlibs_CXX=no 12464 fi 12465 ;; 12466 12467 osf3* | osf4* | osf5*) 12468 case $cc_basename in 12469 KCC*) 12470 # Kuck and Associates, Inc. (KAI) C++ Compiler 12471 12472 # KCC will only create a shared library if the output file 12473 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12474 # to its proper name (with version) after linking. 12475 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12476 12477 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12478 hardcode_libdir_separator_CXX=: 12479 12480 # Archives containing C++ object files must be created using 12481 # the KAI C++ compiler. 12482 case $host in 12483 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12484 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12485 esac 12486 ;; 12487 RCC*) 12488 # Rational C++ 2.4.1 12489 # FIXME: insert proper C++ library support 12490 ld_shlibs_CXX=no 12491 ;; 12492 cxx*) 12493 case $host in 12494 osf3*) 12495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12496 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12498 ;; 12499 *) 12500 allow_undefined_flag_CXX=' -expect_unresolved \*' 12501 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12502 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12503 echo "-hidden">> $lib.exp~ 12504 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 12505 $RM $lib.exp' 12506 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12507 ;; 12508 esac 12509 12510 hardcode_libdir_separator_CXX=: 12511 12512 # Commands to make compiler produce verbose output that lists 12513 # what "hidden" libraries, object files and flags are used when 12514 # linking a shared library. 12515 # 12516 # There doesn't appear to be a way to prevent this compiler from 12517 # explicitly linking system object files so we need to strip them 12518 # from the output so that they don't get included in the library 12519 # dependencies. 12520 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12521 ;; 12522 *) 12523 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12524 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12525 case $host in 12526 osf3*) 12527 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12528 ;; 12529 *) 12530 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12531 ;; 12532 esac 12533 12534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12535 hardcode_libdir_separator_CXX=: 12536 12537 # Commands to make compiler produce verbose output that lists 12538 # what "hidden" libraries, object files and flags are used when 12539 # linking a shared library. 12540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12541 12542 else 12543 # FIXME: insert proper C++ library support 12544 ld_shlibs_CXX=no 12545 fi 12546 ;; 12547 esac 12548 ;; 12549 12550 psos*) 12551 # FIXME: insert proper C++ library support 12552 ld_shlibs_CXX=no 12553 ;; 12554 12555 sunos4*) 12556 case $cc_basename in 12557 CC*) 12558 # Sun C++ 4.x 12559 # FIXME: insert proper C++ library support 12560 ld_shlibs_CXX=no 12561 ;; 12562 lcc*) 12563 # Lucid 12564 # FIXME: insert proper C++ library support 12565 ld_shlibs_CXX=no 12566 ;; 12567 *) 12568 # FIXME: insert proper C++ library support 12569 ld_shlibs_CXX=no 12570 ;; 12571 esac 12572 ;; 12573 12574 solaris*) 12575 case $cc_basename in 12576 CC*) 12577 # Sun C++ 4.2, 5.x and Centerline C++ 12578 archive_cmds_need_lc_CXX=yes 12579 no_undefined_flag_CXX=' -zdefs' 12580 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12582 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12583 12584 hardcode_libdir_flag_spec_CXX='-R$libdir' 12585 hardcode_shlibpath_var_CXX=no 12586 case $host_os in 12587 solaris2.[0-5] | solaris2.[0-5].*) ;; 12588 *) 12589 # The compiler driver will combine and reorder linker options, 12590 # but understands `-z linker_flag'. 12591 # Supported since Solaris 2.6 (maybe 2.5.1?) 12592 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12593 ;; 12594 esac 12595 link_all_deplibs_CXX=yes 12596 12597 output_verbose_link_cmd='echo' 12598 12599 # Archives containing C++ object files must be created using 12600 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12601 # necessary to make sure instantiated templates are included 12602 # in the archive. 12603 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12604 ;; 12605 gcx*) 12606 # Green Hills C++ Compiler 12607 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12608 12609 # The C++ compiler must be used to create the archive. 12610 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12611 ;; 12612 *) 12613 # GNU C++ compiler with Solaris linker 12614 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12615 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12616 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12617 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12618 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12619 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12620 12621 # Commands to make compiler produce verbose output that lists 12622 # what "hidden" libraries, object files and flags are used when 12623 # linking a shared library. 12624 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12625 else 12626 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12627 # platform. 12628 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12629 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12630 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12631 12632 # Commands to make compiler produce verbose output that lists 12633 # what "hidden" libraries, object files and flags are used when 12634 # linking a shared library. 12635 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12636 fi 12637 12638 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12639 case $host_os in 12640 solaris2.[0-5] | solaris2.[0-5].*) ;; 12641 *) 12642 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12643 ;; 12644 esac 12645 fi 12646 ;; 12647 esac 12648 ;; 12649 12650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12651 no_undefined_flag_CXX='${wl}-z,text' 12652 archive_cmds_need_lc_CXX=no 12653 hardcode_shlibpath_var_CXX=no 12654 runpath_var='LD_RUN_PATH' 12655 12656 case $cc_basename in 12657 CC*) 12658 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12659 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12660 ;; 12661 *) 12662 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12663 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12664 ;; 12665 esac 12666 ;; 12667 12668 sysv5* | sco3.2v5* | sco5v6*) 12669 # Note: We can NOT use -z defs as we might desire, because we do not 12670 # link with -lc, and that would cause any symbols used from libc to 12671 # always be unresolved, which means just about no library would 12672 # ever link correctly. If we're not using GNU ld we use -z text 12673 # though, which does catch some bad symbols but isn't as heavy-handed 12674 # as -z defs. 12675 no_undefined_flag_CXX='${wl}-z,text' 12676 allow_undefined_flag_CXX='${wl}-z,nodefs' 12677 archive_cmds_need_lc_CXX=no 12678 hardcode_shlibpath_var_CXX=no 12679 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12680 hardcode_libdir_separator_CXX=':' 12681 link_all_deplibs_CXX=yes 12682 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12683 runpath_var='LD_RUN_PATH' 12684 12685 case $cc_basename in 12686 CC*) 12687 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12688 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12689 ;; 12690 *) 12691 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12692 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12693 ;; 12694 esac 12695 ;; 12696 12697 tandem*) 12698 case $cc_basename in 12699 NCC*) 12700 # NonStop-UX NCC 3.20 12701 # FIXME: insert proper C++ library support 12702 ld_shlibs_CXX=no 12703 ;; 12704 *) 12705 # FIXME: insert proper C++ library support 12706 ld_shlibs_CXX=no 12707 ;; 12708 esac 12709 ;; 12710 12711 vxworks*) 12712 # FIXME: insert proper C++ library support 12713 ld_shlibs_CXX=no 12714 ;; 12715 12716 *) 12717 # FIXME: insert proper C++ library support 12718 ld_shlibs_CXX=no 12719 ;; 12720 esac 12721 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12723 $as_echo "$ld_shlibs_CXX" >&6; } 12724 test "$ld_shlibs_CXX" = no && can_build_shared=no 12725 12726 GCC_CXX="$GXX" 12727 LD_CXX="$LD" 12728 12729 ## CAVEAT EMPTOR: 12730 ## There is no encapsulation within the following macros, do not change 12731 ## the running order or otherwise move them around unless you know exactly 12732 ## what you are doing... 12733 # Dependencies to place before and after the object being linked: 12734 predep_objects_CXX= 12735 postdep_objects_CXX= 12736 predeps_CXX= 12737 postdeps_CXX= 12738 compiler_lib_search_path_CXX= 12739 12740 cat > conftest.$ac_ext <<_LT_EOF 12741 class Foo 12742 { 12743 public: 12744 Foo (void) { a = 0; } 12745 private: 12746 int a; 12747 }; 12748 _LT_EOF 12749 12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12751 (eval $ac_compile) 2>&5 12752 ac_status=$? 12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12754 test $ac_status = 0; }; then 12755 # Parse the compiler output and extract the necessary 12756 # objects, libraries and library flags. 12757 12758 # Sentinel used to keep track of whether or not we are before 12759 # the conftest object file. 12760 pre_test_object_deps_done=no 12761 12762 for p in `eval "$output_verbose_link_cmd"`; do 12763 case $p in 12764 12765 -L* | -R* | -l*) 12766 # Some compilers place space between "-{L,R}" and the path. 12767 # Remove the space. 12768 if test $p = "-L" || 12769 test $p = "-R"; then 12770 prev=$p 12771 continue 12772 else 12773 prev= 12774 fi 12775 12776 if test "$pre_test_object_deps_done" = no; then 12777 case $p in 12778 -L* | -R*) 12779 # Internal compiler library paths should come after those 12780 # provided the user. The postdeps already come after the 12781 # user supplied libs so there is no need to process them. 12782 if test -z "$compiler_lib_search_path_CXX"; then 12783 compiler_lib_search_path_CXX="${prev}${p}" 12784 else 12785 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12786 fi 12787 ;; 12788 # The "-l" case would never come before the object being 12789 # linked, so don't bother handling this case. 12790 esac 12791 else 12792 if test -z "$postdeps_CXX"; then 12793 postdeps_CXX="${prev}${p}" 12794 else 12795 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12796 fi 12797 fi 12798 ;; 12799 12800 *.$objext) 12801 # This assumes that the test object file only shows up 12802 # once in the compiler output. 12803 if test "$p" = "conftest.$objext"; then 12804 pre_test_object_deps_done=yes 12805 continue 12806 fi 12807 12808 if test "$pre_test_object_deps_done" = no; then 12809 if test -z "$predep_objects_CXX"; then 12810 predep_objects_CXX="$p" 12811 else 12812 predep_objects_CXX="$predep_objects_CXX $p" 12813 fi 12814 else 12815 if test -z "$postdep_objects_CXX"; then 12816 postdep_objects_CXX="$p" 12817 else 12818 postdep_objects_CXX="$postdep_objects_CXX $p" 12819 fi 12820 fi 12821 ;; 12822 12823 *) ;; # Ignore the rest. 12824 12825 esac 12826 done 12827 12828 # Clean up. 12829 rm -f a.out a.exe 12830 else 12831 echo "libtool.m4: error: problem compiling CXX test program" 12832 fi 12833 12834 $RM -f confest.$objext 12835 12836 # PORTME: override above test on systems where it is broken 12837 case $host_os in 12838 interix[3-9]*) 12839 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12840 # hack all around it, let's just trust "g++" to DTRT. 12841 predep_objects_CXX= 12842 postdep_objects_CXX= 12843 postdeps_CXX= 12844 ;; 12845 12846 linux*) 12847 case `$CC -V 2>&1 | sed 5q` in 12848 *Sun\ C*) 12849 # Sun C++ 5.9 12850 12851 # The more standards-conforming stlport4 library is 12852 # incompatible with the Cstd library. Avoid specifying 12853 # it if it's in CXXFLAGS. Ignore libCrun as 12854 # -library=stlport4 depends on it. 12855 case " $CXX $CXXFLAGS " in 12856 *" -library=stlport4 "*) 12857 solaris_use_stlport4=yes 12858 ;; 12859 esac 12860 12861 if test "$solaris_use_stlport4" != yes; then 12862 postdeps_CXX='-library=Cstd -library=Crun' 12863 fi 12864 ;; 12865 esac 12866 ;; 12867 12868 solaris*) 12869 case $cc_basename in 12870 CC*) 12871 # The more standards-conforming stlport4 library is 12872 # incompatible with the Cstd library. Avoid specifying 12873 # it if it's in CXXFLAGS. Ignore libCrun as 12874 # -library=stlport4 depends on it. 12875 case " $CXX $CXXFLAGS " in 12876 *" -library=stlport4 "*) 12877 solaris_use_stlport4=yes 12878 ;; 12879 esac 12880 12881 # Adding this requires a known-good setup of shared libraries for 12882 # Sun compiler versions before 5.6, else PIC objects from an old 12883 # archive will be linked into the output, leading to subtle bugs. 12884 if test "$solaris_use_stlport4" != yes; then 12885 postdeps_CXX='-library=Cstd -library=Crun' 12886 fi 12887 ;; 12888 esac 12889 ;; 12890 esac 12891 12892 12893 case " $postdeps_CXX " in 12894 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12895 esac 12896 compiler_lib_search_dirs_CXX= 12897 if test -n "${compiler_lib_search_path_CXX}"; then 12898 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12899 fi 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 lt_prog_compiler_wl_CXX= 12932 lt_prog_compiler_pic_CXX= 12933 lt_prog_compiler_static_CXX= 12934 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12937 12938 # C++ specific cases for pic, static, wl, etc. 12939 if test "$GXX" = yes; then 12940 lt_prog_compiler_wl_CXX='-Wl,' 12941 lt_prog_compiler_static_CXX='-static' 12942 12943 case $host_os in 12944 aix*) 12945 # All AIX code is PIC. 12946 if test "$host_cpu" = ia64; then 12947 # AIX 5 now supports IA64 processor 12948 lt_prog_compiler_static_CXX='-Bstatic' 12949 fi 12950 ;; 12951 12952 amigaos*) 12953 case $host_cpu in 12954 powerpc) 12955 # see comment about AmigaOS4 .so support 12956 lt_prog_compiler_pic_CXX='-fPIC' 12957 ;; 12958 m68k) 12959 # FIXME: we need at least 68020 code to build shared libraries, but 12960 # adding the `-m68020' flag to GCC prevents building anything better, 12961 # like `-m68040'. 12962 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12963 ;; 12964 esac 12965 ;; 12966 12967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12968 # PIC is the default for these OSes. 12969 ;; 12970 mingw* | cygwin* | os2* | pw32* | cegcc*) 12971 # This hack is so that the source file can tell whether it is being 12972 # built for inclusion in a dll (and should export symbols for example). 12973 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12974 # (--disable-auto-import) libraries 12975 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12976 ;; 12977 darwin* | rhapsody*) 12978 # PIC is the default on this platform 12979 # Common symbols not allowed in MH_DYLIB files 12980 lt_prog_compiler_pic_CXX='-fno-common' 12981 ;; 12982 *djgpp*) 12983 # DJGPP does not support shared libraries at all 12984 lt_prog_compiler_pic_CXX= 12985 ;; 12986 interix[3-9]*) 12987 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12988 # Instead, we relocate shared libraries at runtime. 12989 ;; 12990 sysv4*MP*) 12991 if test -d /usr/nec; then 12992 lt_prog_compiler_pic_CXX=-Kconform_pic 12993 fi 12994 ;; 12995 hpux*) 12996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12998 # sets the default TLS model and affects inlining. 12999 case $host_cpu in 13000 hppa*64*) 13001 ;; 13002 *) 13003 lt_prog_compiler_pic_CXX='-fPIC' 13004 ;; 13005 esac 13006 ;; 13007 *qnx* | *nto*) 13008 # QNX uses GNU C++, but need to define -shared option too, otherwise 13009 # it will coredump. 13010 lt_prog_compiler_pic_CXX='-fPIC -shared' 13011 ;; 13012 *) 13013 lt_prog_compiler_pic_CXX='-fPIC' 13014 ;; 13015 esac 13016 else 13017 case $host_os in 13018 aix[4-9]*) 13019 # All AIX code is PIC. 13020 if test "$host_cpu" = ia64; then 13021 # AIX 5 now supports IA64 processor 13022 lt_prog_compiler_static_CXX='-Bstatic' 13023 else 13024 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13025 fi 13026 ;; 13027 chorus*) 13028 case $cc_basename in 13029 cxch68*) 13030 # Green Hills C++ Compiler 13031 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13032 ;; 13033 esac 13034 ;; 13035 dgux*) 13036 case $cc_basename in 13037 ec++*) 13038 lt_prog_compiler_pic_CXX='-KPIC' 13039 ;; 13040 ghcx*) 13041 # Green Hills C++ Compiler 13042 lt_prog_compiler_pic_CXX='-pic' 13043 ;; 13044 *) 13045 ;; 13046 esac 13047 ;; 13048 freebsd* | dragonfly*) 13049 # FreeBSD uses GNU C++ 13050 ;; 13051 hpux9* | hpux10* | hpux11*) 13052 case $cc_basename in 13053 CC*) 13054 lt_prog_compiler_wl_CXX='-Wl,' 13055 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13056 if test "$host_cpu" != ia64; then 13057 lt_prog_compiler_pic_CXX='+Z' 13058 fi 13059 ;; 13060 aCC*) 13061 lt_prog_compiler_wl_CXX='-Wl,' 13062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13063 case $host_cpu in 13064 hppa*64*|ia64*) 13065 # +Z the default 13066 ;; 13067 *) 13068 lt_prog_compiler_pic_CXX='+Z' 13069 ;; 13070 esac 13071 ;; 13072 *) 13073 ;; 13074 esac 13075 ;; 13076 interix*) 13077 # This is c89, which is MS Visual C++ (no shared libs) 13078 # Anyone wants to do a port? 13079 ;; 13080 irix5* | irix6* | nonstopux*) 13081 case $cc_basename in 13082 CC*) 13083 lt_prog_compiler_wl_CXX='-Wl,' 13084 lt_prog_compiler_static_CXX='-non_shared' 13085 # CC pic flag -KPIC is the default. 13086 ;; 13087 *) 13088 ;; 13089 esac 13090 ;; 13091 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13092 case $cc_basename in 13093 KCC*) 13094 # KAI C++ Compiler 13095 lt_prog_compiler_wl_CXX='--backend -Wl,' 13096 lt_prog_compiler_pic_CXX='-fPIC' 13097 ;; 13098 ecpc* ) 13099 # old Intel C++ for x86_64 which still supported -KPIC. 13100 lt_prog_compiler_wl_CXX='-Wl,' 13101 lt_prog_compiler_pic_CXX='-KPIC' 13102 lt_prog_compiler_static_CXX='-static' 13103 ;; 13104 icpc* ) 13105 # Intel C++, used to be incompatible with GCC. 13106 # ICC 10 doesn't accept -KPIC any more. 13107 lt_prog_compiler_wl_CXX='-Wl,' 13108 lt_prog_compiler_pic_CXX='-fPIC' 13109 lt_prog_compiler_static_CXX='-static' 13110 ;; 13111 pgCC* | pgcpp*) 13112 # Portland Group C++ compiler 13113 lt_prog_compiler_wl_CXX='-Wl,' 13114 lt_prog_compiler_pic_CXX='-fpic' 13115 lt_prog_compiler_static_CXX='-Bstatic' 13116 ;; 13117 cxx*) 13118 # Compaq C++ 13119 # Make sure the PIC flag is empty. It appears that all Alpha 13120 # Linux and Compaq Tru64 Unix objects are PIC. 13121 lt_prog_compiler_pic_CXX= 13122 lt_prog_compiler_static_CXX='-non_shared' 13123 ;; 13124 xlc* | xlC*) 13125 # IBM XL 8.0 on PPC 13126 lt_prog_compiler_wl_CXX='-Wl,' 13127 lt_prog_compiler_pic_CXX='-qpic' 13128 lt_prog_compiler_static_CXX='-qstaticlink' 13129 ;; 13130 *) 13131 case `$CC -V 2>&1 | sed 5q` in 13132 *Sun\ C*) 13133 # Sun C++ 5.9 13134 lt_prog_compiler_pic_CXX='-KPIC' 13135 lt_prog_compiler_static_CXX='-Bstatic' 13136 lt_prog_compiler_wl_CXX='-Qoption ld ' 13137 ;; 13138 esac 13139 ;; 13140 esac 13141 ;; 13142 lynxos*) 13143 ;; 13144 m88k*) 13145 ;; 13146 mvs*) 13147 case $cc_basename in 13148 cxx*) 13149 lt_prog_compiler_pic_CXX='-W c,exportall' 13150 ;; 13151 *) 13152 ;; 13153 esac 13154 ;; 13155 netbsd* | netbsdelf*-gnu) 13156 ;; 13157 *qnx* | *nto*) 13158 # QNX uses GNU C++, but need to define -shared option too, otherwise 13159 # it will coredump. 13160 lt_prog_compiler_pic_CXX='-fPIC -shared' 13161 ;; 13162 osf3* | osf4* | osf5*) 13163 case $cc_basename in 13164 KCC*) 13165 lt_prog_compiler_wl_CXX='--backend -Wl,' 13166 ;; 13167 RCC*) 13168 # Rational C++ 2.4.1 13169 lt_prog_compiler_pic_CXX='-pic' 13170 ;; 13171 cxx*) 13172 # Digital/Compaq C++ 13173 lt_prog_compiler_wl_CXX='-Wl,' 13174 # Make sure the PIC flag is empty. It appears that all Alpha 13175 # Linux and Compaq Tru64 Unix objects are PIC. 13176 lt_prog_compiler_pic_CXX= 13177 lt_prog_compiler_static_CXX='-non_shared' 13178 ;; 13179 *) 13180 ;; 13181 esac 13182 ;; 13183 psos*) 13184 ;; 13185 solaris*) 13186 case $cc_basename in 13187 CC*) 13188 # Sun C++ 4.2, 5.x and Centerline C++ 13189 lt_prog_compiler_pic_CXX='-KPIC' 13190 lt_prog_compiler_static_CXX='-Bstatic' 13191 lt_prog_compiler_wl_CXX='-Qoption ld ' 13192 ;; 13193 gcx*) 13194 # Green Hills C++ Compiler 13195 lt_prog_compiler_pic_CXX='-PIC' 13196 ;; 13197 *) 13198 ;; 13199 esac 13200 ;; 13201 sunos4*) 13202 case $cc_basename in 13203 CC*) 13204 # Sun C++ 4.x 13205 lt_prog_compiler_pic_CXX='-pic' 13206 lt_prog_compiler_static_CXX='-Bstatic' 13207 ;; 13208 lcc*) 13209 # Lucid 13210 lt_prog_compiler_pic_CXX='-pic' 13211 ;; 13212 *) 13213 ;; 13214 esac 13215 ;; 13216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13217 case $cc_basename in 13218 CC*) 13219 lt_prog_compiler_wl_CXX='-Wl,' 13220 lt_prog_compiler_pic_CXX='-KPIC' 13221 lt_prog_compiler_static_CXX='-Bstatic' 13222 ;; 13223 esac 13224 ;; 13225 tandem*) 13226 case $cc_basename in 13227 NCC*) 13228 # NonStop-UX NCC 3.20 13229 lt_prog_compiler_pic_CXX='-KPIC' 13230 ;; 13231 *) 13232 ;; 13233 esac 13234 ;; 13235 vxworks*) 13236 ;; 13237 *) 13238 lt_prog_compiler_can_build_shared_CXX=no 13239 ;; 13240 esac 13241 fi 13242 13243 case $host_os in 13244 # For platforms which do not support PIC, -DPIC is meaningless: 13245 *djgpp*) 13246 lt_prog_compiler_pic_CXX= 13247 ;; 13248 *) 13249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13250 ;; 13251 esac 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13253 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13254 13255 13256 13257 # 13258 # Check to make sure the PIC flag actually works. 13259 # 13260 if test -n "$lt_prog_compiler_pic_CXX"; then 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13263 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13264 $as_echo_n "(cached) " >&6 13265 else 13266 lt_cv_prog_compiler_pic_works_CXX=no 13267 ac_outfile=conftest.$ac_objext 13268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13269 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13270 # Insert the option either (1) after the last *FLAGS variable, or 13271 # (2) before a word containing "conftest.", or (3) at the end. 13272 # Note that $ac_compile itself does not contain backslashes and begins 13273 # with a dollar sign (not a hyphen), so the echo should work correctly. 13274 # The option is referenced via a variable to avoid confusing sed. 13275 lt_compile=`echo "$ac_compile" | $SED \ 13276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13278 -e 's:$: $lt_compiler_flag:'` 13279 (eval echo "\"\$as_me:13279: $lt_compile\"" >&5) 13280 (eval "$lt_compile" 2>conftest.err) 13281 ac_status=$? 13282 cat conftest.err >&5 13283 echo "$as_me:13283: \$? = $ac_status" >&5 13284 if (exit $ac_status) && test -s "$ac_outfile"; then 13285 # The compiler can only warn and ignore the option if not recognized 13286 # So say no if there are warnings other than the usual output. 13287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13290 lt_cv_prog_compiler_pic_works_CXX=yes 13291 fi 13292 fi 13293 $RM conftest* 13294 13295 fi 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13297 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13298 13299 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13300 case $lt_prog_compiler_pic_CXX in 13301 "" | " "*) ;; 13302 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13303 esac 13304 else 13305 lt_prog_compiler_pic_CXX= 13306 lt_prog_compiler_can_build_shared_CXX=no 13307 fi 13308 13309 fi 13310 13311 13312 13313 # 13314 # Check to make sure the static flag actually works. 13315 # 13316 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13319 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13320 $as_echo_n "(cached) " >&6 13321 else 13322 lt_cv_prog_compiler_static_works_CXX=no 13323 save_LDFLAGS="$LDFLAGS" 13324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13325 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13327 # The linker can only warn and ignore the option if not recognized 13328 # So say no if there are warnings 13329 if test -s conftest.err; then 13330 # Append any errors to the config.log. 13331 cat conftest.err 1>&5 13332 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13334 if diff conftest.exp conftest.er2 >/dev/null; then 13335 lt_cv_prog_compiler_static_works_CXX=yes 13336 fi 13337 else 13338 lt_cv_prog_compiler_static_works_CXX=yes 13339 fi 13340 fi 13341 $RM -r conftest* 13342 LDFLAGS="$save_LDFLAGS" 13343 13344 fi 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13346 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13347 13348 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13349 : 13350 else 13351 lt_prog_compiler_static_CXX= 13352 fi 13353 13354 13355 13356 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13360 $as_echo_n "(cached) " >&6 13361 else 13362 lt_cv_prog_compiler_c_o_CXX=no 13363 $RM -r conftest 2>/dev/null 13364 mkdir conftest 13365 cd conftest 13366 mkdir out 13367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13368 13369 lt_compiler_flag="-o out/conftest2.$ac_objext" 13370 # Insert the option either (1) after the last *FLAGS variable, or 13371 # (2) before a word containing "conftest.", or (3) at the end. 13372 # Note that $ac_compile itself does not contain backslashes and begins 13373 # with a dollar sign (not a hyphen), so the echo should work correctly. 13374 lt_compile=`echo "$ac_compile" | $SED \ 13375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13377 -e 's:$: $lt_compiler_flag:'` 13378 (eval echo "\"\$as_me:13378: $lt_compile\"" >&5) 13379 (eval "$lt_compile" 2>out/conftest.err) 13380 ac_status=$? 13381 cat out/conftest.err >&5 13382 echo "$as_me:13382: \$? = $ac_status" >&5 13383 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13384 then 13385 # The compiler can only warn and ignore the option if not recognized 13386 # So say no if there are warnings 13387 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13390 lt_cv_prog_compiler_c_o_CXX=yes 13391 fi 13392 fi 13393 chmod u+w . 2>&5 13394 $RM conftest* 13395 # SGI C++ compiler will create directory out/ii_files/ for 13396 # template instantiation 13397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13398 $RM out/* && rmdir out 13399 cd .. 13400 $RM -r conftest 13401 $RM conftest* 13402 13403 fi 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13406 13407 13408 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13412 $as_echo_n "(cached) " >&6 13413 else 13414 lt_cv_prog_compiler_c_o_CXX=no 13415 $RM -r conftest 2>/dev/null 13416 mkdir conftest 13417 cd conftest 13418 mkdir out 13419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13420 13421 lt_compiler_flag="-o out/conftest2.$ac_objext" 13422 # Insert the option either (1) after the last *FLAGS variable, or 13423 # (2) before a word containing "conftest.", or (3) at the end. 13424 # Note that $ac_compile itself does not contain backslashes and begins 13425 # with a dollar sign (not a hyphen), so the echo should work correctly. 13426 lt_compile=`echo "$ac_compile" | $SED \ 13427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13429 -e 's:$: $lt_compiler_flag:'` 13430 (eval echo "\"\$as_me:13430: $lt_compile\"" >&5) 13431 (eval "$lt_compile" 2>out/conftest.err) 13432 ac_status=$? 13433 cat out/conftest.err >&5 13434 echo "$as_me:13434: \$? = $ac_status" >&5 13435 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13436 then 13437 # The compiler can only warn and ignore the option if not recognized 13438 # So say no if there are warnings 13439 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13442 lt_cv_prog_compiler_c_o_CXX=yes 13443 fi 13444 fi 13445 chmod u+w . 2>&5 13446 $RM conftest* 13447 # SGI C++ compiler will create directory out/ii_files/ for 13448 # template instantiation 13449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13450 $RM out/* && rmdir out 13451 cd .. 13452 $RM -r conftest 13453 $RM conftest* 13454 13455 fi 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13458 13459 13460 13461 13462 hard_links="nottested" 13463 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13464 # do not overwrite the value of need_locks provided by the user 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13466 $as_echo_n "checking if we can lock with hard links... " >&6; } 13467 hard_links=yes 13468 $RM conftest* 13469 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13470 touch conftest.a 13471 ln conftest.a conftest.b 2>&5 || hard_links=no 13472 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13474 $as_echo "$hard_links" >&6; } 13475 if test "$hard_links" = no; then 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13478 need_locks=warn 13479 fi 13480 else 13481 need_locks=no 13482 fi 13483 13484 13485 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13488 13489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13490 case $host_os in 13491 aix[4-9]*) 13492 # If we're using GNU nm, then we don't want the "-C" option. 13493 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13494 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13495 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13496 else 13497 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13498 fi 13499 ;; 13500 pw32*) 13501 export_symbols_cmds_CXX="$ltdll_cmds" 13502 ;; 13503 cygwin* | mingw* | cegcc*) 13504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13505 ;; 13506 linux* | k*bsd*-gnu) 13507 link_all_deplibs_CXX=no 13508 ;; 13509 *) 13510 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13511 ;; 13512 esac 13513 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13514 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13516 $as_echo "$ld_shlibs_CXX" >&6; } 13517 test "$ld_shlibs_CXX" = no && can_build_shared=no 13518 13519 with_gnu_ld_CXX=$with_gnu_ld 13520 13521 13522 13523 13524 13525 13526 # 13527 # Do we need to explicitly link libc? 13528 # 13529 case "x$archive_cmds_need_lc_CXX" in 13530 x|xyes) 13531 # Assume -lc should be added 13532 archive_cmds_need_lc_CXX=yes 13533 13534 if test "$enable_shared" = yes && test "$GCC" = yes; then 13535 case $archive_cmds_CXX in 13536 *'~'*) 13537 # FIXME: we may have to deal with multi-command sequences. 13538 ;; 13539 '$CC '*) 13540 # Test whether the compiler implicitly links with -lc since on some 13541 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13542 # to ld, don't add -lc before -lgcc. 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13544 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13545 $RM conftest* 13546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13547 13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13549 (eval $ac_compile) 2>&5 13550 ac_status=$? 13551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13552 test $ac_status = 0; } 2>conftest.err; then 13553 soname=conftest 13554 lib=conftest 13555 libobjs=conftest.$ac_objext 13556 deplibs= 13557 wl=$lt_prog_compiler_wl_CXX 13558 pic_flag=$lt_prog_compiler_pic_CXX 13559 compiler_flags=-v 13560 linker_flags=-v 13561 verstring= 13562 output_objdir=. 13563 libname=conftest 13564 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13565 allow_undefined_flag_CXX= 13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13567 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13568 ac_status=$? 13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13570 test $ac_status = 0; } 13571 then 13572 archive_cmds_need_lc_CXX=no 13573 else 13574 archive_cmds_need_lc_CXX=yes 13575 fi 13576 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13577 else 13578 cat conftest.err 1>&5 13579 fi 13580 $RM conftest* 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13582 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 13583 ;; 13584 esac 13585 fi 13586 ;; 13587 esac 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13653 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13654 13655 library_names_spec= 13656 libname_spec='lib$name' 13657 soname_spec= 13658 shrext_cmds=".so" 13659 postinstall_cmds= 13660 postuninstall_cmds= 13661 finish_cmds= 13662 finish_eval= 13663 shlibpath_var= 13664 shlibpath_overrides_runpath=unknown 13665 version_type=none 13666 dynamic_linker="$host_os ld.so" 13667 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13668 need_lib_prefix=unknown 13669 hardcode_into_libs=no 13670 13671 # when you set need_version to no, make sure it does not cause -set_version 13672 # flags to be left without arguments 13673 need_version=unknown 13674 13675 case $host_os in 13676 aix3*) 13677 version_type=linux 13678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13679 shlibpath_var=LIBPATH 13680 13681 # AIX 3 has no versioning support, so we append a major version to the name. 13682 soname_spec='${libname}${release}${shared_ext}$major' 13683 ;; 13684 13685 aix[4-9]*) 13686 version_type=linux 13687 need_lib_prefix=no 13688 need_version=no 13689 hardcode_into_libs=yes 13690 if test "$host_cpu" = ia64; then 13691 # AIX 5 supports IA64 13692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13693 shlibpath_var=LD_LIBRARY_PATH 13694 else 13695 # With GCC up to 2.95.x, collect2 would create an import file 13696 # for dependence libraries. The import file would start with 13697 # the line `#! .'. This would cause the generated library to 13698 # depend on `.', always an invalid library. This was fixed in 13699 # development snapshots of GCC prior to 3.0. 13700 case $host_os in 13701 aix4 | aix4.[01] | aix4.[01].*) 13702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13703 echo ' yes ' 13704 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13705 : 13706 else 13707 can_build_shared=no 13708 fi 13709 ;; 13710 esac 13711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13712 # soname into executable. Probably we can add versioning support to 13713 # collect2, so additional links can be useful in future. 13714 if test "$aix_use_runtimelinking" = yes; then 13715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13716 # instead of lib<name>.a to let people know that these are not 13717 # typical AIX shared libraries. 13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13719 else 13720 # We preserve .a as extension for shared libraries through AIX4.2 13721 # and later when we are not doing run time linking. 13722 library_names_spec='${libname}${release}.a $libname.a' 13723 soname_spec='${libname}${release}${shared_ext}$major' 13724 fi 13725 shlibpath_var=LIBPATH 13726 fi 13727 ;; 13728 13729 amigaos*) 13730 case $host_cpu in 13731 powerpc) 13732 # Since July 2007 AmigaOS4 officially supports .so libraries. 13733 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13735 ;; 13736 m68k) 13737 library_names_spec='$libname.ixlibrary $libname.a' 13738 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13739 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 13740 ;; 13741 esac 13742 ;; 13743 13744 beos*) 13745 library_names_spec='${libname}${shared_ext}' 13746 dynamic_linker="$host_os ld.so" 13747 shlibpath_var=LIBRARY_PATH 13748 ;; 13749 13750 bsdi[45]*) 13751 version_type=linux 13752 need_version=no 13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13754 soname_spec='${libname}${release}${shared_ext}$major' 13755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13756 shlibpath_var=LD_LIBRARY_PATH 13757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13759 # the default ld.so.conf also contains /usr/contrib/lib and 13760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13761 # libtool to hard-code these into programs 13762 ;; 13763 13764 cygwin* | mingw* | pw32* | cegcc*) 13765 version_type=windows 13766 shrext_cmds=".dll" 13767 need_version=no 13768 need_lib_prefix=no 13769 13770 case $GCC,$host_os in 13771 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13772 library_names_spec='$libname.dll.a' 13773 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13774 postinstall_cmds='base_file=`basename \${file}`~ 13775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13776 dldir=$destdir/`dirname \$dlpath`~ 13777 test -d \$dldir || mkdir -p \$dldir~ 13778 $install_prog $dir/$dlname \$dldir/$dlname~ 13779 chmod a+x \$dldir/$dlname~ 13780 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13781 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13782 fi' 13783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13784 dlpath=$dir/\$dldll~ 13785 $RM \$dlpath' 13786 shlibpath_overrides_runpath=yes 13787 13788 case $host_os in 13789 cygwin*) 13790 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13792 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13793 ;; 13794 mingw* | cegcc*) 13795 # MinGW DLLs use traditional 'lib' prefix 13796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13797 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13798 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13799 # It is most probably a Windows format PATH printed by 13800 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13801 # path with ; separators, and with drive letters. We can handle the 13802 # drive letters (cygwin fileutils understands them), so leave them, 13803 # especially as we might pass files found there to a mingw objdump, 13804 # which wouldn't understand a cygwinified path. Ahh. 13805 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13806 else 13807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13808 fi 13809 ;; 13810 pw32*) 13811 # pw32 DLLs use 'pw' prefix rather than 'lib' 13812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13813 ;; 13814 esac 13815 ;; 13816 13817 *) 13818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13819 ;; 13820 esac 13821 dynamic_linker='Win32 ld.exe' 13822 # FIXME: first we should search . and the directory the executable is in 13823 shlibpath_var=PATH 13824 ;; 13825 13826 darwin* | rhapsody*) 13827 dynamic_linker="$host_os dyld" 13828 version_type=darwin 13829 need_lib_prefix=no 13830 need_version=no 13831 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13832 soname_spec='${libname}${release}${major}$shared_ext' 13833 shlibpath_overrides_runpath=yes 13834 shlibpath_var=DYLD_LIBRARY_PATH 13835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13836 13837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13838 ;; 13839 13840 dgux*) 13841 version_type=linux 13842 need_lib_prefix=no 13843 need_version=no 13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13845 soname_spec='${libname}${release}${shared_ext}$major' 13846 shlibpath_var=LD_LIBRARY_PATH 13847 ;; 13848 13849 freebsd1*) 13850 dynamic_linker=no 13851 ;; 13852 13853 freebsd* | dragonfly*) 13854 # DragonFly does not have aout. When/if they implement a new 13855 # versioning mechanism, adjust this. 13856 if test -x /usr/bin/objformat; then 13857 objformat=`/usr/bin/objformat` 13858 else 13859 case $host_os in 13860 freebsd[123]*) objformat=aout ;; 13861 *) objformat=elf ;; 13862 esac 13863 fi 13864 version_type=freebsd-$objformat 13865 case $version_type in 13866 freebsd-elf*) 13867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13868 need_version=no 13869 need_lib_prefix=no 13870 ;; 13871 freebsd-*) 13872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13873 need_version=yes 13874 ;; 13875 esac 13876 shlibpath_var=LD_LIBRARY_PATH 13877 case $host_os in 13878 freebsd2*) 13879 shlibpath_overrides_runpath=yes 13880 ;; 13881 freebsd3.[01]* | freebsdelf3.[01]*) 13882 shlibpath_overrides_runpath=yes 13883 hardcode_into_libs=yes 13884 ;; 13885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13887 shlibpath_overrides_runpath=no 13888 hardcode_into_libs=yes 13889 ;; 13890 *) # from 4.6 on, and DragonFly 13891 shlibpath_overrides_runpath=yes 13892 hardcode_into_libs=yes 13893 ;; 13894 esac 13895 ;; 13896 13897 gnu*) 13898 version_type=linux 13899 need_lib_prefix=no 13900 need_version=no 13901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13902 soname_spec='${libname}${release}${shared_ext}$major' 13903 shlibpath_var=LD_LIBRARY_PATH 13904 hardcode_into_libs=yes 13905 ;; 13906 13907 hpux9* | hpux10* | hpux11*) 13908 # Give a soname corresponding to the major version so that dld.sl refuses to 13909 # link against other versions. 13910 version_type=sunos 13911 need_lib_prefix=no 13912 need_version=no 13913 case $host_cpu in 13914 ia64*) 13915 shrext_cmds='.so' 13916 hardcode_into_libs=yes 13917 dynamic_linker="$host_os dld.so" 13918 shlibpath_var=LD_LIBRARY_PATH 13919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13921 soname_spec='${libname}${release}${shared_ext}$major' 13922 if test "X$HPUX_IA64_MODE" = X32; then 13923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13924 else 13925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13926 fi 13927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13928 ;; 13929 hppa*64*) 13930 shrext_cmds='.sl' 13931 hardcode_into_libs=yes 13932 dynamic_linker="$host_os dld.sl" 13933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13936 soname_spec='${libname}${release}${shared_ext}$major' 13937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13939 ;; 13940 *) 13941 shrext_cmds='.sl' 13942 dynamic_linker="$host_os dld.sl" 13943 shlibpath_var=SHLIB_PATH 13944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13946 soname_spec='${libname}${release}${shared_ext}$major' 13947 ;; 13948 esac 13949 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13950 postinstall_cmds='chmod 555 $lib' 13951 ;; 13952 13953 interix[3-9]*) 13954 version_type=linux 13955 need_lib_prefix=no 13956 need_version=no 13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13958 soname_spec='${libname}${release}${shared_ext}$major' 13959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13960 shlibpath_var=LD_LIBRARY_PATH 13961 shlibpath_overrides_runpath=no 13962 hardcode_into_libs=yes 13963 ;; 13964 13965 irix5* | irix6* | nonstopux*) 13966 case $host_os in 13967 nonstopux*) version_type=nonstopux ;; 13968 *) 13969 if test "$lt_cv_prog_gnu_ld" = yes; then 13970 version_type=linux 13971 else 13972 version_type=irix 13973 fi ;; 13974 esac 13975 need_lib_prefix=no 13976 need_version=no 13977 soname_spec='${libname}${release}${shared_ext}$major' 13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13979 case $host_os in 13980 irix5* | nonstopux*) 13981 libsuff= shlibsuff= 13982 ;; 13983 *) 13984 case $LD in # libtool.m4 will add one of these switches to LD 13985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13986 libsuff= shlibsuff= libmagic=32-bit;; 13987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13988 libsuff=32 shlibsuff=N32 libmagic=N32;; 13989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13990 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13991 *) libsuff= shlibsuff= libmagic=never-match;; 13992 esac 13993 ;; 13994 esac 13995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13996 shlibpath_overrides_runpath=no 13997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13999 hardcode_into_libs=yes 14000 ;; 14001 14002 # No shared lib support for Linux oldld, aout, or coff. 14003 linux*oldld* | linux*aout* | linux*coff*) 14004 dynamic_linker=no 14005 ;; 14006 14007 # This must be Linux ELF. 14008 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14009 version_type=linux 14010 need_lib_prefix=no 14011 need_version=no 14012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14013 soname_spec='${libname}${release}${shared_ext}$major' 14014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14015 shlibpath_var=LD_LIBRARY_PATH 14016 shlibpath_overrides_runpath=no 14017 # Some binutils ld are patched to set DT_RUNPATH 14018 save_LDFLAGS=$LDFLAGS 14019 save_libdir=$libdir 14020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023 /* end confdefs.h. */ 14024 14025 int 14026 main () 14027 { 14028 14029 ; 14030 return 0; 14031 } 14032 _ACEOF 14033 if ac_fn_cxx_try_link "$LINENO"; then : 14034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14035 shlibpath_overrides_runpath=yes 14036 fi 14037 fi 14038 rm -f core conftest.err conftest.$ac_objext \ 14039 conftest$ac_exeext conftest.$ac_ext 14040 LDFLAGS=$save_LDFLAGS 14041 libdir=$save_libdir 14042 14043 # This implies no fast_install, which is unacceptable. 14044 # Some rework will be needed to allow for fast_install 14045 # before this can be enabled. 14046 hardcode_into_libs=yes 14047 14048 # Append ld.so.conf contents to the search path 14049 if test -f /etc/ld.so.conf; then 14050 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;/^$/d' | tr '\n' ' '` 14051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14052 fi 14053 14054 # We used to test for /lib/ld.so.1 and disable shared libraries on 14055 # powerpc, because MkLinux only supported shared libraries with the 14056 # GNU dynamic linker. Since this was broken with cross compilers, 14057 # most powerpc-linux boxes support dynamic linking these days and 14058 # people can always --disable-shared, the test was removed, and we 14059 # assume the GNU/Linux dynamic linker is in use. 14060 dynamic_linker='GNU/Linux ld.so' 14061 ;; 14062 14063 netbsdelf*-gnu) 14064 version_type=linux 14065 need_lib_prefix=no 14066 need_version=no 14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14068 soname_spec='${libname}${release}${shared_ext}$major' 14069 shlibpath_var=LD_LIBRARY_PATH 14070 shlibpath_overrides_runpath=no 14071 hardcode_into_libs=yes 14072 dynamic_linker='NetBSD ld.elf_so' 14073 ;; 14074 14075 netbsd*) 14076 version_type=sunos 14077 need_lib_prefix=no 14078 need_version=no 14079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14082 dynamic_linker='NetBSD (a.out) ld.so' 14083 else 14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14085 soname_spec='${libname}${release}${shared_ext}$major' 14086 dynamic_linker='NetBSD ld.elf_so' 14087 fi 14088 shlibpath_var=LD_LIBRARY_PATH 14089 shlibpath_overrides_runpath=yes 14090 hardcode_into_libs=yes 14091 ;; 14092 14093 newsos6) 14094 version_type=linux 14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14096 shlibpath_var=LD_LIBRARY_PATH 14097 shlibpath_overrides_runpath=yes 14098 ;; 14099 14100 *nto* | *qnx*) 14101 version_type=qnx 14102 need_lib_prefix=no 14103 need_version=no 14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14105 soname_spec='${libname}${release}${shared_ext}$major' 14106 shlibpath_var=LD_LIBRARY_PATH 14107 shlibpath_overrides_runpath=no 14108 hardcode_into_libs=yes 14109 dynamic_linker='ldqnx.so' 14110 ;; 14111 14112 openbsd*) 14113 version_type=sunos 14114 sys_lib_dlsearch_path_spec="/usr/lib" 14115 need_lib_prefix=no 14116 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14117 case $host_os in 14118 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14119 *) need_version=no ;; 14120 esac 14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14123 shlibpath_var=LD_LIBRARY_PATH 14124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14125 case $host_os in 14126 openbsd2.[89] | openbsd2.[89].*) 14127 shlibpath_overrides_runpath=no 14128 ;; 14129 *) 14130 shlibpath_overrides_runpath=yes 14131 ;; 14132 esac 14133 else 14134 shlibpath_overrides_runpath=yes 14135 fi 14136 ;; 14137 14138 os2*) 14139 libname_spec='$name' 14140 shrext_cmds=".dll" 14141 need_lib_prefix=no 14142 library_names_spec='$libname${shared_ext} $libname.a' 14143 dynamic_linker='OS/2 ld.exe' 14144 shlibpath_var=LIBPATH 14145 ;; 14146 14147 osf3* | osf4* | osf5*) 14148 version_type=osf 14149 need_lib_prefix=no 14150 need_version=no 14151 soname_spec='${libname}${release}${shared_ext}$major' 14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14153 shlibpath_var=LD_LIBRARY_PATH 14154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14156 ;; 14157 14158 rdos*) 14159 dynamic_linker=no 14160 ;; 14161 14162 solaris*) 14163 version_type=linux 14164 need_lib_prefix=no 14165 need_version=no 14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14167 soname_spec='${libname}${release}${shared_ext}$major' 14168 shlibpath_var=LD_LIBRARY_PATH 14169 shlibpath_overrides_runpath=yes 14170 hardcode_into_libs=yes 14171 # ldd complains unless libraries are executable 14172 postinstall_cmds='chmod +x $lib' 14173 ;; 14174 14175 sunos4*) 14176 version_type=sunos 14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14179 shlibpath_var=LD_LIBRARY_PATH 14180 shlibpath_overrides_runpath=yes 14181 if test "$with_gnu_ld" = yes; then 14182 need_lib_prefix=no 14183 fi 14184 need_version=yes 14185 ;; 14186 14187 sysv4 | sysv4.3*) 14188 version_type=linux 14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14190 soname_spec='${libname}${release}${shared_ext}$major' 14191 shlibpath_var=LD_LIBRARY_PATH 14192 case $host_vendor in 14193 sni) 14194 shlibpath_overrides_runpath=no 14195 need_lib_prefix=no 14196 runpath_var=LD_RUN_PATH 14197 ;; 14198 siemens) 14199 need_lib_prefix=no 14200 ;; 14201 motorola) 14202 need_lib_prefix=no 14203 need_version=no 14204 shlibpath_overrides_runpath=no 14205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14206 ;; 14207 esac 14208 ;; 14209 14210 sysv4*MP*) 14211 if test -d /usr/nec ;then 14212 version_type=linux 14213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14214 soname_spec='$libname${shared_ext}.$major' 14215 shlibpath_var=LD_LIBRARY_PATH 14216 fi 14217 ;; 14218 14219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14220 version_type=freebsd-elf 14221 need_lib_prefix=no 14222 need_version=no 14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14224 soname_spec='${libname}${release}${shared_ext}$major' 14225 shlibpath_var=LD_LIBRARY_PATH 14226 shlibpath_overrides_runpath=yes 14227 hardcode_into_libs=yes 14228 if test "$with_gnu_ld" = yes; then 14229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14230 else 14231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14232 case $host_os in 14233 sco3.2v5*) 14234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14235 ;; 14236 esac 14237 fi 14238 sys_lib_dlsearch_path_spec='/usr/lib' 14239 ;; 14240 14241 tpf*) 14242 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14243 version_type=linux 14244 need_lib_prefix=no 14245 need_version=no 14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14247 shlibpath_var=LD_LIBRARY_PATH 14248 shlibpath_overrides_runpath=no 14249 hardcode_into_libs=yes 14250 ;; 14251 14252 uts4*) 14253 version_type=linux 14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14255 soname_spec='${libname}${release}${shared_ext}$major' 14256 shlibpath_var=LD_LIBRARY_PATH 14257 ;; 14258 14259 *) 14260 dynamic_linker=no 14261 ;; 14262 esac 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14264 $as_echo "$dynamic_linker" >&6; } 14265 test "$dynamic_linker" = no && can_build_shared=no 14266 14267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14268 if test "$GCC" = yes; then 14269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14270 fi 14271 14272 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14273 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14274 fi 14275 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14276 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14277 fi 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14316 hardcode_action_CXX= 14317 if test -n "$hardcode_libdir_flag_spec_CXX" || 14318 test -n "$runpath_var_CXX" || 14319 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14320 14321 # We can hardcode non-existent directories. 14322 if test "$hardcode_direct_CXX" != no && 14323 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14324 # have to relink, otherwise we might link with an installed library 14325 # when we should be linking with a yet-to-be-installed one 14326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14327 test "$hardcode_minus_L_CXX" != no; then 14328 # Linking always hardcodes the temporary library directory. 14329 hardcode_action_CXX=relink 14330 else 14331 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14332 hardcode_action_CXX=immediate 14333 fi 14334 else 14335 # We cannot hardcode anything, or else we can only hardcode existing 14336 # directories. 14337 hardcode_action_CXX=unsupported 14338 fi 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14340 $as_echo "$hardcode_action_CXX" >&6; } 14341 14342 if test "$hardcode_action_CXX" = relink || 14343 test "$inherit_rpath_CXX" = yes; then 14344 # Fast installation is not supported 14345 enable_fast_install=no 14346 elif test "$shlibpath_overrides_runpath" = yes || 14347 test "$enable_shared" = no; then 14348 # Fast installation is not necessary 14349 enable_fast_install=needless 14350 fi 14351 14352 14353 14354 14355 14356 14357 14358 fi # test -n "$compiler" 14359 14360 CC=$lt_save_CC 14361 LDCXX=$LD 14362 LD=$lt_save_LD 14363 GCC=$lt_save_GCC 14364 with_gnu_ld=$lt_save_with_gnu_ld 14365 lt_cv_path_LDCXX=$lt_cv_path_LD 14366 lt_cv_path_LD=$lt_save_path_LD 14367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14369 fi # test "$_lt_caught_CXX_error" != yes 14370 14371 ac_ext=c 14372 ac_cpp='$CPP $CPPFLAGS' 14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 ac_config_commands="$ac_config_commands libtool" 14390 14391 14392 14393 14394 # Only expand once: 14395 14396 14397 14398 14399 14400 # Check whether some low-level functions/files are available 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14402 $as_echo_n "checking for ANSI C header files... " >&6; } 14403 if test "${ac_cv_header_stdc+set}" = set; then : 14404 $as_echo_n "(cached) " >&6 14405 else 14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14407 /* end confdefs.h. */ 14408 #include <stdlib.h> 14409 #include <stdarg.h> 14410 #include <string.h> 14411 #include <float.h> 14412 14413 int 14414 main () 14415 { 14416 14417 ; 14418 return 0; 14419 } 14420 _ACEOF 14421 if ac_fn_c_try_compile "$LINENO"; then : 14422 ac_cv_header_stdc=yes 14423 else 14424 ac_cv_header_stdc=no 14425 fi 14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14427 14428 if test $ac_cv_header_stdc = yes; then 14429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431 /* end confdefs.h. */ 14432 #include <string.h> 14433 14434 _ACEOF 14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14436 $EGREP "memchr" >/dev/null 2>&1; then : 14437 14438 else 14439 ac_cv_header_stdc=no 14440 fi 14441 rm -f conftest* 14442 14443 fi 14444 14445 if test $ac_cv_header_stdc = yes; then 14446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14448 /* end confdefs.h. */ 14449 #include <stdlib.h> 14450 14451 _ACEOF 14452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14453 $EGREP "free" >/dev/null 2>&1; then : 14454 14455 else 14456 ac_cv_header_stdc=no 14457 fi 14458 rm -f conftest* 14459 14460 fi 14461 14462 if test $ac_cv_header_stdc = yes; then 14463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14464 if test "$cross_compiling" = yes; then : 14465 : 14466 else 14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14468 /* end confdefs.h. */ 14469 #include <ctype.h> 14470 #include <stdlib.h> 14471 #if ((' ' & 0x0FF) == 0x020) 14472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14474 #else 14475 # define ISLOWER(c) \ 14476 (('a' <= (c) && (c) <= 'i') \ 14477 || ('j' <= (c) && (c) <= 'r') \ 14478 || ('s' <= (c) && (c) <= 'z')) 14479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14480 #endif 14481 14482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14483 int 14484 main () 14485 { 14486 int i; 14487 for (i = 0; i < 256; i++) 14488 if (XOR (islower (i), ISLOWER (i)) 14489 || toupper (i) != TOUPPER (i)) 14490 return 2; 14491 return 0; 14492 } 14493 _ACEOF 14494 if ac_fn_c_try_run "$LINENO"; then : 14495 14496 else 14497 ac_cv_header_stdc=no 14498 fi 14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14500 conftest.$ac_objext conftest.beam conftest.$ac_ext 14501 fi 14502 14503 fi 14504 fi 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14506 $as_echo "$ac_cv_header_stdc" >&6; } 14507 if test $ac_cv_header_stdc = yes; then 14508 14509 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 14510 14511 fi 14512 14513 14514 # Built-in memcmp can be inefficient when gcc compiles for x86 or PowerPC 14515 # processors. In those cases, use an alternative function instead of memcmp. 14516 case $host_cpu in 14517 *86*|powerpc*) 14518 if test "$GCC" = "yes"; then 14519 14520 $as_echo "#define VCDIFF_USE_BLOCK_COMPARE_WORDS 1" >>confdefs.h 14521 14522 fi 14523 ;; 14524 esac 14525 14526 for ac_header in ext/rope 14527 do : 14528 ac_fn_c_check_header_mongrel "$LINENO" "ext/rope" "ac_cv_header_ext_rope" "$ac_includes_default" 14529 if test "x$ac_cv_header_ext_rope" = x""yes; then : 14530 cat >>confdefs.h <<_ACEOF 14531 #define HAVE_EXT_ROPE 1 14532 _ACEOF 14533 14534 fi 14535 14536 done 14537 14538 for ac_header in getopt.h 14539 do : 14540 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 14541 if test "x$ac_cv_header_getopt_h" = x""yes; then : 14542 cat >>confdefs.h <<_ACEOF 14543 #define HAVE_GETOPT_H 1 14544 _ACEOF 14545 14546 fi 14547 14548 done 14549 14550 for ac_header in malloc.h 14551 do : 14552 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 14553 if test "x$ac_cv_header_malloc_h" = x""yes; then : 14554 cat >>confdefs.h <<_ACEOF 14555 #define HAVE_MALLOC_H 1 14556 _ACEOF 14557 14558 fi 14559 14560 done 14561 14562 for ac_header in sys/mman.h 14563 do : 14564 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14565 if test "x$ac_cv_header_sys_mman_h" = x""yes; then : 14566 cat >>confdefs.h <<_ACEOF 14567 #define HAVE_SYS_MMAN_H 1 14568 _ACEOF 14569 14570 fi 14571 14572 done 14573 14574 for ac_header in sys/time.h 14575 do : 14576 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14577 if test "x$ac_cv_header_sys_time_h" = x""yes; then : 14578 cat >>confdefs.h <<_ACEOF 14579 #define HAVE_SYS_TIME_H 1 14580 _ACEOF 14581 14582 fi 14583 14584 done 14585 14586 for ac_header in unistd.h 14587 do : 14588 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14589 if test "x$ac_cv_header_unistd_h" = x""yes; then : 14590 cat >>confdefs.h <<_ACEOF 14591 #define HAVE_UNISTD_H 1 14592 _ACEOF 14593 14594 fi 14595 14596 done 14597 14598 for ac_header in windows.h 14599 do : 14600 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 14601 if test "x$ac_cv_header_windows_h" = x""yes; then : 14602 cat >>confdefs.h <<_ACEOF 14603 #define HAVE_WINDOWS_H 1 14604 _ACEOF 14605 14606 fi 14607 14608 done 14609 14610 for ac_func in gettimeofday QueryPerformanceCounter 14611 do : 14612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14614 eval as_val=\$$as_ac_var 14615 if test "x$as_val" = x""yes; then : 14616 cat >>confdefs.h <<_ACEOF 14617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14618 _ACEOF 14619 14620 fi 14621 done 14622 14623 for ac_func in memalign posix_memalign 14624 do : 14625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14627 eval as_val=\$$as_ac_var 14628 if test "x$as_val" = x""yes; then : 14629 cat >>confdefs.h <<_ACEOF 14630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14631 _ACEOF 14632 14633 fi 14634 done 14635 14636 for ac_func in mprotect 14637 do : 14638 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 14639 if test "x$ac_cv_func_mprotect" = x""yes; then : 14640 cat >>confdefs.h <<_ACEOF 14641 #define HAVE_MPROTECT 1 14642 _ACEOF 14643 14644 fi 14645 done 14646 14647 14648 # Start of definitions needed by gflags package 14649 14650 # These are tested for by AC_HEADER_STDC, but I check again to set the var 14651 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 14652 if test "x$ac_cv_header_stdint_h" = x""yes; then : 14653 ac_cv_have_stdint_h=1 14654 else 14655 ac_cv_have_stdint_h=0 14656 fi 14657 14658 14659 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 14660 if test "x$ac_cv_header_sys_types_h" = x""yes; then : 14661 ac_cv_have_systypes_h=1 14662 else 14663 ac_cv_have_systypes_h=0 14664 fi 14665 14666 14667 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 14668 if test "x$ac_cv_header_inttypes_h" = x""yes; then : 14669 ac_cv_have_inttypes_h=1 14670 else 14671 ac_cv_have_inttypes_h=0 14672 fi 14673 14674 14675 for ac_header in fnmatch.h 14676 do : 14677 ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 14678 if test "x$ac_cv_header_fnmatch_h" = x""yes; then : 14679 cat >>confdefs.h <<_ACEOF 14680 #define HAVE_FNMATCH_H 1 14681 _ACEOF 14682 14683 fi 14684 14685 done 14686 14687 14688 # These are the types I need. We look for them in either stdint.h, 14689 # sys/types.h, or inttypes.h, all of which are part of the default-includes. 14690 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14691 if test "x$ac_cv_type_uint16_t" = x""yes; then : 14692 ac_cv_have_uint16_t=1 14693 else 14694 ac_cv_have_uint16_t=0 14695 fi 14696 14697 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" 14698 if test "x$ac_cv_type_u_int16_t" = x""yes; then : 14699 ac_cv_have_u_int16_t=1 14700 else 14701 ac_cv_have_u_int16_t=0 14702 fi 14703 14704 ac_fn_c_check_type "$LINENO" "__int16" "ac_cv_type___int16" "$ac_includes_default" 14705 if test "x$ac_cv_type___int16" = x""yes; then : 14706 ac_cv_have___int16=1 14707 else 14708 ac_cv_have___int16=0 14709 fi 14710 14711 14712 for ac_func in strtoll strtoq 14713 do : 14714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14716 eval as_val=\$$as_ac_var 14717 if test "x$as_val" = x""yes; then : 14718 cat >>confdefs.h <<_ACEOF 14719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14720 _ACEOF 14721 14722 fi 14723 done 14724 14725 for ac_func in setenv putenv 14726 do : 14727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14729 eval as_val=\$$as_ac_var 14730 if test "x$as_val" = x""yes; then : 14731 cat >>confdefs.h <<_ACEOF 14732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14733 _ACEOF 14734 14735 fi 14736 done 14737 # MinGW has putenv but not setenv 14738 14739 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 14741 $as_echo_n "checking for __attribute__... " >&6; } 14742 if test "${ac_cv___attribute__+set}" = set; then : 14743 $as_echo_n "(cached) " >&6 14744 else 14745 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747 /* end confdefs.h. */ 14748 #include <stdlib.h> 14749 static void foo(void) __attribute__ ((unused)); 14750 void foo(void) { exit(1); } 14751 int 14752 main () 14753 { 14754 14755 ; 14756 return 0; 14757 } 14758 _ACEOF 14759 if ac_fn_c_try_compile "$LINENO"; then : 14760 ac_cv___attribute__=yes 14761 else 14762 ac_cv___attribute__=no 14763 14764 fi 14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14766 fi 14767 14768 if test "$ac_cv___attribute__" = "yes"; then 14769 14770 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 14771 14772 fi 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 14774 $as_echo "$ac_cv___attribute__" >&6; } 14775 14776 # We only care about __attribute__ ((unused)) 14777 if test x"$ac_cv___attribute__" = x"yes"; then 14778 ac_cv___attribute__unused="__attribute__ ((unused))" 14779 else 14780 ac_cv___attribute__unused= 14781 fi 14782 14783 14784 14785 14786 ac_ext=c 14787 ac_cpp='$CPP $CPPFLAGS' 14788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14790 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14791 14792 acx_pthread_ok=no 14793 14794 # We used to check for pthread.h first, but this fails if pthread.h 14795 # requires special compiler flags (e.g. on True64 or Sequent). 14796 # It gets checked for in the link test anyway. 14797 14798 # First of all, check if the user has set any of the PTHREAD_LIBS, 14799 # etcetera environment variables, and if threads linking works using 14800 # them: 14801 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14802 save_CFLAGS="$CFLAGS" 14803 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14804 save_LIBS="$LIBS" 14805 LIBS="$PTHREAD_LIBS $LIBS" 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14807 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14809 /* end confdefs.h. */ 14810 14811 /* Override any GCC internal prototype to avoid an error. 14812 Use char because int might match the return type of a GCC 14813 builtin and then its argument prototype would still apply. */ 14814 #ifdef __cplusplus 14815 extern "C" 14816 #endif 14817 char pthread_join (); 14818 int 14819 main () 14820 { 14821 return pthread_join (); 14822 ; 14823 return 0; 14824 } 14825 _ACEOF 14826 if ac_fn_c_try_link "$LINENO"; then : 14827 acx_pthread_ok=yes 14828 fi 14829 rm -f core conftest.err conftest.$ac_objext \ 14830 conftest$ac_exeext conftest.$ac_ext 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14832 $as_echo "$acx_pthread_ok" >&6; } 14833 if test x"$acx_pthread_ok" = xno; then 14834 PTHREAD_LIBS="" 14835 PTHREAD_CFLAGS="" 14836 fi 14837 LIBS="$save_LIBS" 14838 CFLAGS="$save_CFLAGS" 14839 fi 14840 14841 # We must check for the threads library under a number of different 14842 # names; the ordering is very important because some systems 14843 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14844 # libraries is broken (non-POSIX). 14845 14846 # Create a list of thread flags to try. Items starting with a "-" are 14847 # C compiler flags, and other items are library names, except for "none" 14848 # which indicates that we try without any flags at all, and "pthread-config" 14849 # which is a program returning the flags for the Pth emulation library. 14850 14851 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14852 14853 # The ordering *is* (sometimes) important. Some notes on the 14854 # individual items follow: 14855 14856 # pthreads: AIX (must check this before -lpthread) 14857 # none: in case threads are in libc; should be tried before -Kthread and 14858 # other compiler flags to prevent continual compiler warnings 14859 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14860 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14861 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14862 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 14863 # -pthreads: Solaris/gcc 14864 # -mthreads: Mingw32/gcc, Lynx/gcc 14865 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14866 # doesn't hurt to check since this sometimes defines pthreads too; 14867 # also defines -D_REENTRANT) 14868 # ... -mt is also the pthreads flag for HP/aCC 14869 # pthread: Linux, etcetera 14870 # --thread-safe: KAI C++ 14871 # pthread-config: use pthread-config program (for GNU Pth library) 14872 14873 case "${host_cpu}-${host_os}" in 14874 *solaris*) 14875 14876 # On Solaris (at least, for some versions), libc contains stubbed 14877 # (non-functional) versions of the pthreads routines, so link-based 14878 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 14879 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 14880 # a function called by this macro, so we could check for that, but 14881 # who knows whether they'll stub that too in a future libc.) So, 14882 # we'll just look for -pthreads and -lpthread first: 14883 14884 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 14885 ;; 14886 esac 14887 14888 if test x"$acx_pthread_ok" = xno; then 14889 for flag in $acx_pthread_flags; do 14890 14891 case $flag in 14892 none) 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14894 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 14895 ;; 14896 14897 -*) 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 14899 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 14900 PTHREAD_CFLAGS="$flag" 14901 ;; 14902 14903 pthread-config) 14904 # Extract the first word of "pthread-config", so it can be a program name with args. 14905 set dummy pthread-config; ac_word=$2 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14907 $as_echo_n "checking for $ac_word... " >&6; } 14908 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : 14909 $as_echo_n "(cached) " >&6 14910 else 14911 if test -n "$acx_pthread_config"; then 14912 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 14913 else 14914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14915 for as_dir in $PATH 14916 do 14917 IFS=$as_save_IFS 14918 test -z "$as_dir" && as_dir=. 14919 for ac_exec_ext in '' $ac_executable_extensions; do 14920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14921 ac_cv_prog_acx_pthread_config="yes" 14922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14923 break 2 14924 fi 14925 done 14926 done 14927 IFS=$as_save_IFS 14928 14929 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 14930 fi 14931 fi 14932 acx_pthread_config=$ac_cv_prog_acx_pthread_config 14933 if test -n "$acx_pthread_config"; then 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 14935 $as_echo "$acx_pthread_config" >&6; } 14936 else 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14938 $as_echo "no" >&6; } 14939 fi 14940 14941 14942 if test x"$acx_pthread_config" = xno; then continue; fi 14943 PTHREAD_CFLAGS="`pthread-config --cflags`" 14944 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14945 ;; 14946 14947 *) 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 14949 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 14950 PTHREAD_LIBS="-l$flag" 14951 ;; 14952 esac 14953 14954 save_LIBS="$LIBS" 14955 save_CFLAGS="$CFLAGS" 14956 LIBS="$PTHREAD_LIBS $LIBS" 14957 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14958 14959 # Check for various functions. We must include pthread.h, 14960 # since some functions may be macros. (On the Sequent, we 14961 # need a special flag -Kthread to make this header compile.) 14962 # We check for pthread_join because it is in -lpthread on IRIX 14963 # while pthread_create is in libc. We check for pthread_attr_init 14964 # due to DEC craziness with -lpthreads. We check for 14965 # pthread_cleanup_push because it is one of the few pthread 14966 # functions on Solaris that doesn't have a non-functional libc stub. 14967 # We try pthread_create on general principles. 14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14969 /* end confdefs.h. */ 14970 #include <pthread.h> 14971 int 14972 main () 14973 { 14974 pthread_t th; pthread_join(th, 0); 14975 pthread_attr_init(0); pthread_cleanup_push(0, 0); 14976 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 14977 ; 14978 return 0; 14979 } 14980 _ACEOF 14981 if ac_fn_c_try_link "$LINENO"; then : 14982 acx_pthread_ok=yes 14983 fi 14984 rm -f core conftest.err conftest.$ac_objext \ 14985 conftest$ac_exeext conftest.$ac_ext 14986 14987 LIBS="$save_LIBS" 14988 CFLAGS="$save_CFLAGS" 14989 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 14991 $as_echo "$acx_pthread_ok" >&6; } 14992 if test "x$acx_pthread_ok" = xyes; then 14993 break; 14994 fi 14995 14996 PTHREAD_LIBS="" 14997 PTHREAD_CFLAGS="" 14998 done 14999 fi 15000 15001 # Various other checks: 15002 if test "x$acx_pthread_ok" = xyes; then 15003 save_LIBS="$LIBS" 15004 LIBS="$PTHREAD_LIBS $LIBS" 15005 save_CFLAGS="$CFLAGS" 15006 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15007 15008 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15010 $as_echo_n "checking for joinable pthread attribute... " >&6; } 15011 attr_name=unknown 15012 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15014 /* end confdefs.h. */ 15015 #include <pthread.h> 15016 int 15017 main () 15018 { 15019 int attr=$attr; return attr; 15020 ; 15021 return 0; 15022 } 15023 _ACEOF 15024 if ac_fn_c_try_link "$LINENO"; then : 15025 attr_name=$attr; break 15026 fi 15027 rm -f core conftest.err conftest.$ac_objext \ 15028 conftest$ac_exeext conftest.$ac_ext 15029 done 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15031 $as_echo "$attr_name" >&6; } 15032 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15033 15034 cat >>confdefs.h <<_ACEOF 15035 #define PTHREAD_CREATE_JOINABLE $attr_name 15036 _ACEOF 15037 15038 fi 15039 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15041 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15042 flag=no 15043 case "${host_cpu}-${host_os}" in 15044 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15045 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15046 esac 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15048 $as_echo "${flag}" >&6; } 15049 if test "x$flag" != xno; then 15050 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15051 fi 15052 15053 LIBS="$save_LIBS" 15054 CFLAGS="$save_CFLAGS" 15055 # More AIX lossage: must compile with xlc_r or cc_r 15056 if test x"$GCC" != xyes; then 15057 for ac_prog in xlc_r cc_r 15058 do 15059 # Extract the first word of "$ac_prog", so it can be a program name with args. 15060 set dummy $ac_prog; ac_word=$2 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15062 $as_echo_n "checking for $ac_word... " >&6; } 15063 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : 15064 $as_echo_n "(cached) " >&6 15065 else 15066 if test -n "$PTHREAD_CC"; then 15067 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15068 else 15069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15070 for as_dir in $PATH 15071 do 15072 IFS=$as_save_IFS 15073 test -z "$as_dir" && as_dir=. 15074 for ac_exec_ext in '' $ac_executable_extensions; do 15075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15076 ac_cv_prog_PTHREAD_CC="$ac_prog" 15077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15078 break 2 15079 fi 15080 done 15081 done 15082 IFS=$as_save_IFS 15083 15084 fi 15085 fi 15086 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15087 if test -n "$PTHREAD_CC"; then 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15089 $as_echo "$PTHREAD_CC" >&6; } 15090 else 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15092 $as_echo "no" >&6; } 15093 fi 15094 15095 15096 test -n "$PTHREAD_CC" && break 15097 done 15098 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15099 15100 else 15101 PTHREAD_CC=$CC 15102 fi 15103 15104 # The next part tries to detect GCC inconsistency with -shared on some 15105 # architectures and systems. The problem is that in certain 15106 # configurations, when -shared is specified, GCC "forgets" to 15107 # internally use various flags which are still necessary. 15108 15109 # 15110 # Prepare the flags 15111 # 15112 save_CFLAGS="$CFLAGS" 15113 save_LIBS="$LIBS" 15114 save_CC="$CC" 15115 15116 # Try with the flags determined by the earlier checks. 15117 # 15118 # -Wl,-z,defs forces link-time symbol resolution, so that the 15119 # linking checks with -shared actually have any value 15120 # 15121 # FIXME: -fPIC is required for -shared on many architectures, 15122 # so we specify it here, but the right way would probably be to 15123 # properly detect whether it is actually required. 15124 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 15125 LIBS="$PTHREAD_LIBS $LIBS" 15126 CC="$PTHREAD_CC" 15127 15128 # In order not to create several levels of indentation, we test 15129 # the value of "$done" until we find the cure or run out of ideas. 15130 done="no" 15131 15132 # First, make sure the CFLAGS we added are actually accepted by our 15133 # compiler. If not (and OS X's ld, for instance, does not accept -z), 15134 # then we can't do this test. 15135 if test x"$done" = xno; then 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 15137 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139 /* end confdefs.h. */ 15140 15141 int 15142 main () 15143 { 15144 15145 ; 15146 return 0; 15147 } 15148 _ACEOF 15149 if ac_fn_c_try_link "$LINENO"; then : 15150 15151 else 15152 done=yes 15153 fi 15154 rm -f core conftest.err conftest.$ac_objext \ 15155 conftest$ac_exeext conftest.$ac_ext 15156 15157 if test "x$done" = xyes ; then 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15159 $as_echo "no" >&6; } 15160 else 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15162 $as_echo "yes" >&6; } 15163 fi 15164 fi 15165 15166 if test x"$done" = xno; then 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 15168 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15170 /* end confdefs.h. */ 15171 #include <pthread.h> 15172 int 15173 main () 15174 { 15175 pthread_t th; pthread_join(th, 0); 15176 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15177 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15178 ; 15179 return 0; 15180 } 15181 _ACEOF 15182 if ac_fn_c_try_link "$LINENO"; then : 15183 done=yes 15184 fi 15185 rm -f core conftest.err conftest.$ac_objext \ 15186 conftest$ac_exeext conftest.$ac_ext 15187 15188 if test "x$done" = xyes; then 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15190 $as_echo "yes" >&6; } 15191 else 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15193 $as_echo "no" >&6; } 15194 fi 15195 fi 15196 15197 # 15198 # Linux gcc on some architectures such as mips/mipsel forgets 15199 # about -lpthread 15200 # 15201 if test x"$done" = xno; then 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 15203 $as_echo_n "checking whether -lpthread fixes that... " >&6; } 15204 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15206 /* end confdefs.h. */ 15207 #include <pthread.h> 15208 int 15209 main () 15210 { 15211 pthread_t th; pthread_join(th, 0); 15212 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15213 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15214 ; 15215 return 0; 15216 } 15217 _ACEOF 15218 if ac_fn_c_try_link "$LINENO"; then : 15219 done=yes 15220 fi 15221 rm -f core conftest.err conftest.$ac_objext \ 15222 conftest$ac_exeext conftest.$ac_ext 15223 15224 if test "x$done" = xyes; then 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15226 $as_echo "yes" >&6; } 15227 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 15228 else 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15230 $as_echo "no" >&6; } 15231 fi 15232 fi 15233 # 15234 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 15235 # 15236 if test x"$done" = xno; then 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 15238 $as_echo_n "checking whether -lc_r fixes that... " >&6; } 15239 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15241 /* end confdefs.h. */ 15242 #include <pthread.h> 15243 int 15244 main () 15245 { 15246 pthread_t th; pthread_join(th, 0); 15247 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15248 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15249 ; 15250 return 0; 15251 } 15252 _ACEOF 15253 if ac_fn_c_try_link "$LINENO"; then : 15254 done=yes 15255 fi 15256 rm -f core conftest.err conftest.$ac_objext \ 15257 conftest$ac_exeext conftest.$ac_ext 15258 15259 if test "x$done" = xyes; then 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15261 $as_echo "yes" >&6; } 15262 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 15263 else 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15265 $as_echo "no" >&6; } 15266 fi 15267 fi 15268 if test x"$done" = xno; then 15269 # OK, we have run out of ideas 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 15271 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 15272 15273 # so it's not safe to assume that we may use pthreads 15274 acx_pthread_ok=no 15275 fi 15276 15277 CFLAGS="$save_CFLAGS" 15278 LIBS="$save_LIBS" 15279 CC="$save_CC" 15280 else 15281 PTHREAD_CC="$CC" 15282 fi 15283 15284 15285 15286 15287 15288 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15289 if test x"$acx_pthread_ok" = xyes; then 15290 15291 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15292 15293 : 15294 else 15295 acx_pthread_ok=no 15296 15297 fi 15298 ac_ext=c 15299 ac_cpp='$CPP $CPPFLAGS' 15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15303 15304 15305 15306 # Find out what namespace 'normal' STL code lives in, and also what namespace 15307 # the user wants our classes to be defined in 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 15309 $as_echo_n "checking whether the compiler implements namespaces... " >&6; } 15310 if test "${ac_cv_cxx_namespaces+set}" = set; then : 15311 $as_echo_n "(cached) " >&6 15312 else 15313 15314 ac_ext=cpp 15315 ac_cpp='$CXXCPP $CPPFLAGS' 15316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15319 15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15321 /* end confdefs.h. */ 15322 namespace Outer { 15323 namespace Inner { int i = 0; }} 15324 int 15325 main () 15326 { 15327 using namespace Outer::Inner; return i; 15328 ; 15329 return 0; 15330 } 15331 _ACEOF 15332 if ac_fn_cxx_try_compile "$LINENO"; then : 15333 ac_cv_cxx_namespaces=yes 15334 else 15335 ac_cv_cxx_namespaces=no 15336 fi 15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15338 ac_ext=c 15339 ac_cpp='$CPP $CPPFLAGS' 15340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15343 15344 fi 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 15346 $as_echo "$ac_cv_cxx_namespaces" >&6; } 15347 if test "$ac_cv_cxx_namespaces" = yes; then 15348 15349 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h 15350 15351 fi 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5 15353 $as_echo_n "checking what namespace STL code is in... " >&6; } 15354 if test "${ac_cv_cxx_stl_namespace+set}" = set; then : 15355 $as_echo_n "(cached) " >&6 15356 else 15357 15358 15359 ac_ext=cpp 15360 ac_cpp='$CXXCPP $CPPFLAGS' 15361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15364 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366 /* end confdefs.h. */ 15367 #include <vector> 15368 int 15369 main () 15370 { 15371 vector<int> t; return 0; 15372 ; 15373 return 0; 15374 } 15375 _ACEOF 15376 if ac_fn_cxx_try_compile "$LINENO"; then : 15377 ac_cv_cxx_stl_namespace=none 15378 fi 15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15381 /* end confdefs.h. */ 15382 #include <vector> 15383 int 15384 main () 15385 { 15386 std::vector<int> t; return 0; 15387 ; 15388 return 0; 15389 } 15390 _ACEOF 15391 if ac_fn_cxx_try_compile "$LINENO"; then : 15392 ac_cv_cxx_stl_namespace=std 15393 fi 15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15395 ac_ext=c 15396 ac_cpp='$CPP $CPPFLAGS' 15397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15399 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15400 15401 fi 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5 15403 $as_echo "$ac_cv_cxx_stl_namespace" >&6; } 15404 if test "$ac_cv_cxx_stl_namespace" = none; then 15405 15406 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h 15407 15408 fi 15409 if test "$ac_cv_cxx_stl_namespace" = std; then 15410 15411 $as_echo "#define STL_NAMESPACE std" >>confdefs.h 15412 15413 fi 15414 15415 google_namespace_default=google 15416 # Check whether --enable-namespace was given. 15417 if test "${enable_namespace+set}" = set; then : 15418 enableval=$enable_namespace; case "$enableval" in 15419 yes) google_namespace="$google_namespace_default" ;; 15420 no) google_namespace="" ;; 15421 *) google_namespace="$enableval" ;; 15422 esac 15423 else 15424 google_namespace="$google_namespace_default" 15425 fi 15426 15427 if test -n "$google_namespace"; then 15428 ac_google_namespace="::$google_namespace" 15429 ac_google_start_namespace="namespace $google_namespace {" 15430 ac_google_end_namespace="}" 15431 else 15432 ac_google_namespace="" 15433 ac_google_start_namespace="" 15434 ac_google_end_namespace="" 15435 fi 15436 15437 cat >>confdefs.h <<_ACEOF 15438 #define GOOGLE_NAMESPACE $ac_google_namespace 15439 _ACEOF 15440 15441 15442 cat >>confdefs.h <<_ACEOF 15443 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace 15444 _ACEOF 15445 15446 15447 cat >>confdefs.h <<_ACEOF 15448 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace 15449 _ACEOF 15450 15451 15452 15453 # These are what's needed by gflags.h.in 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 # For windows, this has a non-trivial value (__declspec(export)), but any 15466 # system that uses configure wants this to be the empty string. 15467 15468 $as_echo "#define GFLAGS_DLL_DECL /**/" >>confdefs.h 15469 15470 15471 # End of definitions needed by gflags package 15472 15473 # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty. 15474 # If so, we replace it with our own version. 15475 LIBSTDCXX_LA_LINKER_FLAG= 15476 if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la 15477 then 15478 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris' 15479 fi 15480 15481 15482 ac_config_files="$ac_config_files Makefile gflags/src/gflags/gflags.h gflags/src/gflags/gflags_completions.h" 15483 15484 cat >confcache <<\_ACEOF 15485 # This file is a shell script that caches the results of configure 15486 # tests run on this system so they can be shared between configure 15487 # scripts and configure runs, see configure's option --config-cache. 15488 # It is not useful on other systems. If it contains results you don't 15489 # want to keep, you may remove or edit it. 15490 # 15491 # config.status only pays attention to the cache file if you give it 15492 # the --recheck option to rerun configure. 15493 # 15494 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15495 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15496 # following values. 15497 15498 _ACEOF 15499 15500 # The following way of writing the cache mishandles newlines in values, 15501 # but we know of no workaround that is simple, portable, and efficient. 15502 # So, we kill variables containing newlines. 15503 # Ultrix sh set writes to stderr and can't be redirected directly, 15504 # and sets the high bit in the cache file unless we assign to the vars. 15505 ( 15506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15507 eval ac_val=\$$ac_var 15508 case $ac_val in #( 15509 *${as_nl}*) 15510 case $ac_var in #( 15511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15513 esac 15514 case $ac_var in #( 15515 _ | IFS | as_nl) ;; #( 15516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15517 *) { eval $ac_var=; unset $ac_var;} ;; 15518 esac ;; 15519 esac 15520 done 15521 15522 (set) 2>&1 | 15523 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15524 *${as_nl}ac_space=\ *) 15525 # `set' does not quote correctly, so add quotes: double-quote 15526 # substitution turns \\\\ into \\, and sed turns \\ into \. 15527 sed -n \ 15528 "s/'/'\\\\''/g; 15529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15530 ;; #( 15531 *) 15532 # `set' quotes correctly as required by POSIX, so do not add quotes. 15533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15534 ;; 15535 esac | 15536 sort 15537 ) | 15538 sed ' 15539 /^ac_cv_env_/b end 15540 t clear 15541 :clear 15542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15543 t end 15544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15545 :end' >>confcache 15546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15547 if test -w "$cache_file"; then 15548 test "x$cache_file" != "x/dev/null" && 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15550 $as_echo "$as_me: updating cache $cache_file" >&6;} 15551 cat confcache >$cache_file 15552 else 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15555 fi 15556 fi 15557 rm -f confcache 15558 15559 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15560 # Let make expand exec_prefix. 15561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15562 15563 DEFS=-DHAVE_CONFIG_H 15564 15565 ac_libobjs= 15566 ac_ltlibobjs= 15567 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15568 # 1. Remove the extension, and $U if already installed. 15569 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15570 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15571 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15572 # will be set to the directory where LIBOBJS objects are built. 15573 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15574 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15575 done 15576 LIBOBJS=$ac_libobjs 15577 15578 LTLIBOBJS=$ac_ltlibobjs 15579 15580 15581 if test -n "$EXEEXT"; then 15582 am__EXEEXT_TRUE= 15583 am__EXEEXT_FALSE='#' 15584 else 15585 am__EXEEXT_TRUE='#' 15586 am__EXEEXT_FALSE= 15587 fi 15588 15589 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15590 as_fn_error "conditional \"AMDEP\" was never defined. 15591 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15592 fi 15593 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15594 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15595 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15596 fi 15597 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15598 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 15599 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15600 fi 15601 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 15602 as_fn_error "conditional \"GCC\" was never defined. 15603 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15604 fi 15605 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15606 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 15607 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15608 fi 15609 15610 : ${CONFIG_STATUS=./config.status} 15611 ac_write_fail=0 15612 ac_clean_files_save=$ac_clean_files 15613 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15616 as_write_fail=0 15617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15618 #! $SHELL 15619 # Generated by $as_me. 15620 # Run this file to recreate the current configuration. 15621 # Compiler output produced by configure, useful for debugging 15622 # configure, is in config.log if it exists. 15623 15624 debug=false 15625 ac_cs_recheck=false 15626 ac_cs_silent=false 15627 15628 SHELL=\${CONFIG_SHELL-$SHELL} 15629 export SHELL 15630 _ASEOF 15631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15632 ## -------------------- ## 15633 ## M4sh Initialization. ## 15634 ## -------------------- ## 15635 15636 # Be more Bourne compatible 15637 DUALCASE=1; export DUALCASE # for MKS sh 15638 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15639 emulate sh 15640 NULLCMD=: 15641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15642 # is contrary to our usage. Disable this feature. 15643 alias -g '${1+"$@"}'='"$@"' 15644 setopt NO_GLOB_SUBST 15645 else 15646 case `(set -o) 2>/dev/null` in #( 15647 *posix*) : 15648 set -o posix ;; #( 15649 *) : 15650 ;; 15651 esac 15652 fi 15653 15654 15655 as_nl=' 15656 ' 15657 export as_nl 15658 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15659 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15662 # Prefer a ksh shell builtin over an external printf program on Solaris, 15663 # but without wasting forks for bash or zsh. 15664 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15666 as_echo='print -r --' 15667 as_echo_n='print -rn --' 15668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15669 as_echo='printf %s\n' 15670 as_echo_n='printf %s' 15671 else 15672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15673 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15674 as_echo_n='/usr/ucb/echo -n' 15675 else 15676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15677 as_echo_n_body='eval 15678 arg=$1; 15679 case $arg in #( 15680 *"$as_nl"*) 15681 expr "X$arg" : "X\\(.*\\)$as_nl"; 15682 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15683 esac; 15684 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15685 ' 15686 export as_echo_n_body 15687 as_echo_n='sh -c $as_echo_n_body as_echo' 15688 fi 15689 export as_echo_body 15690 as_echo='sh -c $as_echo_body as_echo' 15691 fi 15692 15693 # The user is always right. 15694 if test "${PATH_SEPARATOR+set}" != set; then 15695 PATH_SEPARATOR=: 15696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15698 PATH_SEPARATOR=';' 15699 } 15700 fi 15701 15702 15703 # IFS 15704 # We need space, tab and new line, in precisely that order. Quoting is 15705 # there to prevent editors from complaining about space-tab. 15706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15707 # splitting by setting IFS to empty value.) 15708 IFS=" "" $as_nl" 15709 15710 # Find who we are. Look in the path if we contain no directory separator. 15711 case $0 in #(( 15712 *[\\/]* ) as_myself=$0 ;; 15713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15714 for as_dir in $PATH 15715 do 15716 IFS=$as_save_IFS 15717 test -z "$as_dir" && as_dir=. 15718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15719 done 15720 IFS=$as_save_IFS 15721 15722 ;; 15723 esac 15724 # We did not find ourselves, most probably we were run as `sh COMMAND' 15725 # in which case we are not to be found in the path. 15726 if test "x$as_myself" = x; then 15727 as_myself=$0 15728 fi 15729 if test ! -f "$as_myself"; then 15730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15731 exit 1 15732 fi 15733 15734 # Unset variables that we do not need and which cause bugs (e.g. in 15735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15736 # suppresses any "Segmentation fault" message there. '((' could 15737 # trigger a bug in pdksh 5.2.14. 15738 for as_var in BASH_ENV ENV MAIL MAILPATH 15739 do eval test x\${$as_var+set} = xset \ 15740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15741 done 15742 PS1='$ ' 15743 PS2='> ' 15744 PS4='+ ' 15745 15746 # NLS nuisances. 15747 LC_ALL=C 15748 export LC_ALL 15749 LANGUAGE=C 15750 export LANGUAGE 15751 15752 # CDPATH. 15753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15754 15755 15756 # as_fn_error ERROR [LINENO LOG_FD] 15757 # --------------------------------- 15758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15760 # script with status $?, using 1 if that was 0. 15761 as_fn_error () 15762 { 15763 as_status=$?; test $as_status -eq 0 && as_status=1 15764 if test "$3"; then 15765 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15767 fi 15768 $as_echo "$as_me: error: $1" >&2 15769 as_fn_exit $as_status 15770 } # as_fn_error 15771 15772 15773 # as_fn_set_status STATUS 15774 # ----------------------- 15775 # Set $? to STATUS, without forking. 15776 as_fn_set_status () 15777 { 15778 return $1 15779 } # as_fn_set_status 15780 15781 # as_fn_exit STATUS 15782 # ----------------- 15783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15784 as_fn_exit () 15785 { 15786 set +e 15787 as_fn_set_status $1 15788 exit $1 15789 } # as_fn_exit 15790 15791 # as_fn_unset VAR 15792 # --------------- 15793 # Portably unset VAR. 15794 as_fn_unset () 15795 { 15796 { eval $1=; unset $1;} 15797 } 15798 as_unset=as_fn_unset 15799 # as_fn_append VAR VALUE 15800 # ---------------------- 15801 # Append the text in VALUE to the end of the definition contained in VAR. Take 15802 # advantage of any shell optimizations that allow amortized linear growth over 15803 # repeated appends, instead of the typical quadratic growth present in naive 15804 # implementations. 15805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15806 eval 'as_fn_append () 15807 { 15808 eval $1+=\$2 15809 }' 15810 else 15811 as_fn_append () 15812 { 15813 eval $1=\$$1\$2 15814 } 15815 fi # as_fn_append 15816 15817 # as_fn_arith ARG... 15818 # ------------------ 15819 # Perform arithmetic evaluation on the ARGs, and store the result in the 15820 # global $as_val. Take advantage of shells that can avoid forks. The arguments 15821 # must be portable across $(()) and expr. 15822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15823 eval 'as_fn_arith () 15824 { 15825 as_val=$(( $* )) 15826 }' 15827 else 15828 as_fn_arith () 15829 { 15830 as_val=`expr "$@" || test $? -eq 1` 15831 } 15832 fi # as_fn_arith 15833 15834 15835 if expr a : '\(a\)' >/dev/null 2>&1 && 15836 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15837 as_expr=expr 15838 else 15839 as_expr=false 15840 fi 15841 15842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15843 as_basename=basename 15844 else 15845 as_basename=false 15846 fi 15847 15848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15849 as_dirname=dirname 15850 else 15851 as_dirname=false 15852 fi 15853 15854 as_me=`$as_basename -- "$0" || 15855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15856 X"$0" : 'X\(//\)$' \| \ 15857 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15858 $as_echo X/"$0" | 15859 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15860 s//\1/ 15861 q 15862 } 15863 /^X\/\(\/\/\)$/{ 15864 s//\1/ 15865 q 15866 } 15867 /^X\/\(\/\).*/{ 15868 s//\1/ 15869 q 15870 } 15871 s/.*/./; q'` 15872 15873 # Avoid depending upon Character Ranges. 15874 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15877 as_cr_digits='0123456789' 15878 as_cr_alnum=$as_cr_Letters$as_cr_digits 15879 15880 ECHO_C= ECHO_N= ECHO_T= 15881 case `echo -n x` in #((((( 15882 -n*) 15883 case `echo 'xy\c'` in 15884 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15885 xy) ECHO_C='\c';; 15886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15887 ECHO_T=' ';; 15888 esac;; 15889 *) 15890 ECHO_N='-n';; 15891 esac 15892 15893 rm -f conf$$ conf$$.exe conf$$.file 15894 if test -d conf$$.dir; then 15895 rm -f conf$$.dir/conf$$.file 15896 else 15897 rm -f conf$$.dir 15898 mkdir conf$$.dir 2>/dev/null 15899 fi 15900 if (echo >conf$$.file) 2>/dev/null; then 15901 if ln -s conf$$.file conf$$ 2>/dev/null; then 15902 as_ln_s='ln -s' 15903 # ... but there are two gotchas: 15904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15906 # In both cases, we have to default to `cp -p'. 15907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15908 as_ln_s='cp -p' 15909 elif ln conf$$.file conf$$ 2>/dev/null; then 15910 as_ln_s=ln 15911 else 15912 as_ln_s='cp -p' 15913 fi 15914 else 15915 as_ln_s='cp -p' 15916 fi 15917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15918 rmdir conf$$.dir 2>/dev/null 15919 15920 15921 # as_fn_mkdir_p 15922 # ------------- 15923 # Create "$as_dir" as a directory, including parents if necessary. 15924 as_fn_mkdir_p () 15925 { 15926 15927 case $as_dir in #( 15928 -*) as_dir=./$as_dir;; 15929 esac 15930 test -d "$as_dir" || eval $as_mkdir_p || { 15931 as_dirs= 15932 while :; do 15933 case $as_dir in #( 15934 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15935 *) as_qdir=$as_dir;; 15936 esac 15937 as_dirs="'$as_qdir' $as_dirs" 15938 as_dir=`$as_dirname -- "$as_dir" || 15939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15940 X"$as_dir" : 'X\(//\)[^/]' \| \ 15941 X"$as_dir" : 'X\(//\)$' \| \ 15942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15943 $as_echo X"$as_dir" | 15944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15945 s//\1/ 15946 q 15947 } 15948 /^X\(\/\/\)[^/].*/{ 15949 s//\1/ 15950 q 15951 } 15952 /^X\(\/\/\)$/{ 15953 s//\1/ 15954 q 15955 } 15956 /^X\(\/\).*/{ 15957 s//\1/ 15958 q 15959 } 15960 s/.*/./; q'` 15961 test -d "$as_dir" && break 15962 done 15963 test -z "$as_dirs" || eval "mkdir $as_dirs" 15964 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15965 15966 15967 } # as_fn_mkdir_p 15968 if mkdir -p . 2>/dev/null; then 15969 as_mkdir_p='mkdir -p "$as_dir"' 15970 else 15971 test -d ./-p && rmdir ./-p 15972 as_mkdir_p=false 15973 fi 15974 15975 if test -x / >/dev/null 2>&1; then 15976 as_test_x='test -x' 15977 else 15978 if ls -dL / >/dev/null 2>&1; then 15979 as_ls_L_option=L 15980 else 15981 as_ls_L_option= 15982 fi 15983 as_test_x=' 15984 eval sh -c '\'' 15985 if test -d "$1"; then 15986 test -d "$1/."; 15987 else 15988 case $1 in #( 15989 -*)set "./$1";; 15990 esac; 15991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15992 ???[sx]*):;;*)false;;esac;fi 15993 '\'' sh 15994 ' 15995 fi 15996 as_executable_p=$as_test_x 15997 15998 # Sed expression to map a string onto a valid CPP name. 15999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16000 16001 # Sed expression to map a string onto a valid variable name. 16002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16003 16004 16005 exec 6>&1 16006 ## ----------------------------------- ## 16007 ## Main body of $CONFIG_STATUS script. ## 16008 ## ----------------------------------- ## 16009 _ASEOF 16010 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16011 16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16013 # Save the log message, to keep $0 and so on meaningful, and to 16014 # report actual input values of CONFIG_FILES etc. instead of their 16015 # values after options handling. 16016 ac_log=" 16017 This file was extended by open-vcdiff $as_me 0.8.3, which was 16018 generated by GNU Autoconf 2.65. Invocation command line was 16019 16020 CONFIG_FILES = $CONFIG_FILES 16021 CONFIG_HEADERS = $CONFIG_HEADERS 16022 CONFIG_LINKS = $CONFIG_LINKS 16023 CONFIG_COMMANDS = $CONFIG_COMMANDS 16024 $ $0 $@ 16025 16026 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16027 " 16028 16029 _ACEOF 16030 16031 case $ac_config_files in *" 16032 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16033 esac 16034 16035 case $ac_config_headers in *" 16036 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16037 esac 16038 16039 16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16041 # Files that config.status was made for. 16042 config_files="$ac_config_files" 16043 config_headers="$ac_config_headers" 16044 config_commands="$ac_config_commands" 16045 16046 _ACEOF 16047 16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16049 ac_cs_usage="\ 16050 \`$as_me' instantiates files and other configuration actions 16051 from templates according to the current configuration. Unless the files 16052 and actions are specified as TAGs, all are instantiated by default. 16053 16054 Usage: $0 [OPTION]... [TAG]... 16055 16056 -h, --help print this help, then exit 16057 -V, --version print version number and configuration settings, then exit 16058 --config print configuration, then exit 16059 -q, --quiet, --silent 16060 do not print progress messages 16061 -d, --debug don't remove temporary files 16062 --recheck update $as_me by reconfiguring in the same conditions 16063 --file=FILE[:TEMPLATE] 16064 instantiate the configuration file FILE 16065 --header=FILE[:TEMPLATE] 16066 instantiate the configuration header FILE 16067 16068 Configuration files: 16069 $config_files 16070 16071 Configuration headers: 16072 $config_headers 16073 16074 Configuration commands: 16075 $config_commands 16076 16077 Report bugs to <opensource (at] google.com>." 16078 16079 _ACEOF 16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16082 ac_cs_version="\\ 16083 open-vcdiff config.status 0.8.3 16084 configured by $0, generated by GNU Autoconf 2.65, 16085 with options \\"\$ac_cs_config\\" 16086 16087 Copyright (C) 2009 Free Software Foundation, Inc. 16088 This config.status script is free software; the Free Software Foundation 16089 gives unlimited permission to copy, distribute and modify it." 16090 16091 ac_pwd='$ac_pwd' 16092 srcdir='$srcdir' 16093 INSTALL='$INSTALL' 16094 MKDIR_P='$MKDIR_P' 16095 AWK='$AWK' 16096 test -n "\$AWK" || AWK=awk 16097 _ACEOF 16098 16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16100 # The default lists apply if the user does not specify any file. 16101 ac_need_defaults=: 16102 while test $# != 0 16103 do 16104 case $1 in 16105 --*=*) 16106 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16107 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16108 ac_shift=: 16109 ;; 16110 *) 16111 ac_option=$1 16112 ac_optarg=$2 16113 ac_shift=shift 16114 ;; 16115 esac 16116 16117 case $ac_option in 16118 # Handling of the options. 16119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16120 ac_cs_recheck=: ;; 16121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16122 $as_echo "$ac_cs_version"; exit ;; 16123 --config | --confi | --conf | --con | --co | --c ) 16124 $as_echo "$ac_cs_config"; exit ;; 16125 --debug | --debu | --deb | --de | --d | -d ) 16126 debug=: ;; 16127 --file | --fil | --fi | --f ) 16128 $ac_shift 16129 case $ac_optarg in 16130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16131 esac 16132 as_fn_append CONFIG_FILES " '$ac_optarg'" 16133 ac_need_defaults=false;; 16134 --header | --heade | --head | --hea ) 16135 $ac_shift 16136 case $ac_optarg in 16137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16138 esac 16139 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16140 ac_need_defaults=false;; 16141 --he | --h) 16142 # Conflict between --help and --header 16143 as_fn_error "ambiguous option: \`$1' 16144 Try \`$0 --help' for more information.";; 16145 --help | --hel | -h ) 16146 $as_echo "$ac_cs_usage"; exit ;; 16147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16148 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16149 ac_cs_silent=: ;; 16150 16151 # This is an error. 16152 -*) as_fn_error "unrecognized option: \`$1' 16153 Try \`$0 --help' for more information." ;; 16154 16155 *) as_fn_append ac_config_targets " $1" 16156 ac_need_defaults=false ;; 16157 16158 esac 16159 shift 16160 done 16161 16162 ac_configure_extra_args= 16163 16164 if $ac_cs_silent; then 16165 exec 6>/dev/null 16166 ac_configure_extra_args="$ac_configure_extra_args --silent" 16167 fi 16168 16169 _ACEOF 16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16171 if \$ac_cs_recheck; then 16172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16173 shift 16174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16175 CONFIG_SHELL='$SHELL' 16176 export CONFIG_SHELL 16177 exec "\$@" 16178 fi 16179 16180 _ACEOF 16181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16182 exec 5>>config.log 16183 { 16184 echo 16185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16186 ## Running $as_me. ## 16187 _ASBOX 16188 $as_echo "$ac_log" 16189 } >&5 16190 16191 _ACEOF 16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16193 # 16194 # INIT-COMMANDS 16195 # 16196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16197 16198 16199 # The HP-UX ksh and POSIX shell print the target directory to stdout 16200 # if CDPATH is set. 16201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16202 16203 sed_quote_subst='$sed_quote_subst' 16204 double_quote_subst='$double_quote_subst' 16205 delay_variable_subst='$delay_variable_subst' 16206 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16207 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16208 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16209 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16210 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16211 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16212 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16213 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16214 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16215 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16216 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16217 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16218 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16219 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16220 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16221 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16222 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16223 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16224 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16225 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16226 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16227 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16228 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16229 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16230 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16231 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16232 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16233 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16234 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16235 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16236 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16237 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16238 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16239 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16240 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16241 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16242 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16243 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16244 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16245 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16246 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16247 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16248 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16249 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16250 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 16251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16252 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16253 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16254 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16255 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16256 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16257 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16258 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16259 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16260 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16261 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16262 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16263 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16264 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16265 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16266 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16267 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16268 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16269 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16270 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16271 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16272 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16273 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16274 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16275 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16276 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16277 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16278 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16279 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16280 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16281 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16282 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16283 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16284 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16285 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16286 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16287 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16288 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16289 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16290 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16291 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16292 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16293 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16294 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16295 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16296 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16297 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16298 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16299 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16300 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16301 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16302 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16303 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16304 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16305 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16306 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16307 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16308 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16309 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16310 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16311 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16312 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16313 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16314 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16315 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16316 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16317 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16318 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16319 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16320 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16321 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16322 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16323 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16324 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 16325 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16326 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16327 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 16328 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 16329 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 16330 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16331 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16332 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16333 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16334 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16335 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16336 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16337 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16338 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16339 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16340 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16341 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16342 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16343 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16344 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16345 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16346 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16347 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16348 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16349 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16350 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16351 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16352 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16353 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16354 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16355 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16356 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16357 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16358 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16359 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16360 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16361 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16362 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16363 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16364 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16365 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16366 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16367 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16368 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16369 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16370 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16371 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16372 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16373 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16374 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16375 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16376 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16377 16378 LTCC='$LTCC' 16379 LTCFLAGS='$LTCFLAGS' 16380 compiler='$compiler_DEFAULT' 16381 16382 # Quote evaled strings. 16383 for var in SED \ 16384 GREP \ 16385 EGREP \ 16386 FGREP \ 16387 LD \ 16388 NM \ 16389 LN_S \ 16390 lt_SP2NL \ 16391 lt_NL2SP \ 16392 reload_flag \ 16393 OBJDUMP \ 16394 deplibs_check_method \ 16395 file_magic_cmd \ 16396 AR \ 16397 AR_FLAGS \ 16398 STRIP \ 16399 RANLIB \ 16400 CC \ 16401 CFLAGS \ 16402 compiler \ 16403 lt_cv_sys_global_symbol_pipe \ 16404 lt_cv_sys_global_symbol_to_cdecl \ 16405 lt_cv_sys_global_symbol_to_c_name_address \ 16406 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16407 SHELL \ 16408 ECHO \ 16409 lt_prog_compiler_no_builtin_flag \ 16410 lt_prog_compiler_wl \ 16411 lt_prog_compiler_pic \ 16412 lt_prog_compiler_static \ 16413 lt_cv_prog_compiler_c_o \ 16414 need_locks \ 16415 DSYMUTIL \ 16416 NMEDIT \ 16417 LIPO \ 16418 OTOOL \ 16419 OTOOL64 \ 16420 shrext_cmds \ 16421 export_dynamic_flag_spec \ 16422 whole_archive_flag_spec \ 16423 compiler_needs_object \ 16424 with_gnu_ld \ 16425 allow_undefined_flag \ 16426 no_undefined_flag \ 16427 hardcode_libdir_flag_spec \ 16428 hardcode_libdir_flag_spec_ld \ 16429 hardcode_libdir_separator \ 16430 fix_srcfile_path \ 16431 exclude_expsyms \ 16432 include_expsyms \ 16433 file_list_spec \ 16434 variables_saved_for_relink \ 16435 libname_spec \ 16436 library_names_spec \ 16437 soname_spec \ 16438 finish_eval \ 16439 old_striplib \ 16440 striplib \ 16441 compiler_lib_search_dirs \ 16442 predep_objects \ 16443 postdep_objects \ 16444 predeps \ 16445 postdeps \ 16446 compiler_lib_search_path \ 16447 LD_CXX \ 16448 compiler_CXX \ 16449 lt_prog_compiler_no_builtin_flag_CXX \ 16450 lt_prog_compiler_wl_CXX \ 16451 lt_prog_compiler_pic_CXX \ 16452 lt_prog_compiler_static_CXX \ 16453 lt_cv_prog_compiler_c_o_CXX \ 16454 export_dynamic_flag_spec_CXX \ 16455 whole_archive_flag_spec_CXX \ 16456 compiler_needs_object_CXX \ 16457 with_gnu_ld_CXX \ 16458 allow_undefined_flag_CXX \ 16459 no_undefined_flag_CXX \ 16460 hardcode_libdir_flag_spec_CXX \ 16461 hardcode_libdir_flag_spec_ld_CXX \ 16462 hardcode_libdir_separator_CXX \ 16463 fix_srcfile_path_CXX \ 16464 exclude_expsyms_CXX \ 16465 include_expsyms_CXX \ 16466 file_list_spec_CXX \ 16467 compiler_lib_search_dirs_CXX \ 16468 predep_objects_CXX \ 16469 postdep_objects_CXX \ 16470 predeps_CXX \ 16471 postdeps_CXX \ 16472 compiler_lib_search_path_CXX; do 16473 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16474 *[\\\\\\\`\\"\\\$]*) 16475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16476 ;; 16477 *) 16478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16479 ;; 16480 esac 16481 done 16482 16483 # Double-quote double-evaled strings. 16484 for var in reload_cmds \ 16485 old_postinstall_cmds \ 16486 old_postuninstall_cmds \ 16487 old_archive_cmds \ 16488 extract_expsyms_cmds \ 16489 old_archive_from_new_cmds \ 16490 old_archive_from_expsyms_cmds \ 16491 archive_cmds \ 16492 archive_expsym_cmds \ 16493 module_cmds \ 16494 module_expsym_cmds \ 16495 export_symbols_cmds \ 16496 prelink_cmds \ 16497 postinstall_cmds \ 16498 postuninstall_cmds \ 16499 finish_cmds \ 16500 sys_lib_search_path_spec \ 16501 sys_lib_dlsearch_path_spec \ 16502 old_archive_cmds_CXX \ 16503 old_archive_from_new_cmds_CXX \ 16504 old_archive_from_expsyms_cmds_CXX \ 16505 archive_cmds_CXX \ 16506 archive_expsym_cmds_CXX \ 16507 module_cmds_CXX \ 16508 module_expsym_cmds_CXX \ 16509 export_symbols_cmds_CXX \ 16510 prelink_cmds_CXX; do 16511 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16512 *[\\\\\\\`\\"\\\$]*) 16513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16514 ;; 16515 *) 16516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16517 ;; 16518 esac 16519 done 16520 16521 # Fix-up fallback echo if it was mangled by the above quoting rules. 16522 case \$lt_ECHO in 16523 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16524 ;; 16525 esac 16526 16527 ac_aux_dir='$ac_aux_dir' 16528 xsi_shell='$xsi_shell' 16529 lt_shell_append='$lt_shell_append' 16530 16531 # See if we are running on zsh, and set the options which allow our 16532 # commands through without removal of \ escapes INIT. 16533 if test -n "\${ZSH_VERSION+set}" ; then 16534 setopt NO_GLOB_SUBST 16535 fi 16536 16537 16538 PACKAGE='$PACKAGE' 16539 VERSION='$VERSION' 16540 TIMESTAMP='$TIMESTAMP' 16541 RM='$RM' 16542 ofile='$ofile' 16543 16544 16545 16546 16547 16548 16549 _ACEOF 16550 16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16552 16553 # Handling of arguments. 16554 for ac_config_target in $ac_config_targets 16555 do 16556 case $ac_config_target in 16557 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 16558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16561 "gflags/src/gflags/gflags.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags.h" ;; 16562 "gflags/src/gflags/gflags_completions.h") CONFIG_FILES="$CONFIG_FILES gflags/src/gflags/gflags_completions.h" ;; 16563 16564 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16565 esac 16566 done 16567 16568 16569 # If the user did not use the arguments to specify the items to instantiate, 16570 # then the envvar interface is used. Set only those that are not. 16571 # We use the long form for the default assignment because of an extremely 16572 # bizarre bug on SunOS 4.1.3. 16573 if $ac_need_defaults; then 16574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16577 fi 16578 16579 # Have a temporary directory for convenience. Make it in the build tree 16580 # simply because there is no reason against having it here, and in addition, 16581 # creating and moving files from /tmp can sometimes cause problems. 16582 # Hook for its removal unless debugging. 16583 # Note that there is a small window in which the directory will not be cleaned: 16584 # after its creation but before its name has been assigned to `$tmp'. 16585 $debug || 16586 { 16587 tmp= 16588 trap 'exit_status=$? 16589 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16590 ' 0 16591 trap 'as_fn_exit 1' 1 2 13 15 16592 } 16593 # Create a (secure) tmp directory for tmp files. 16594 16595 { 16596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16597 test -n "$tmp" && test -d "$tmp" 16598 } || 16599 { 16600 tmp=./conf$$-$RANDOM 16601 (umask 077 && mkdir "$tmp") 16602 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16603 16604 # Set up the scripts for CONFIG_FILES section. 16605 # No need to generate them if there are no CONFIG_FILES. 16606 # This happens for instance with `./config.status config.h'. 16607 if test -n "$CONFIG_FILES"; then 16608 16609 16610 ac_cr=`echo X | tr X '\015'` 16611 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16612 # But we know of no other shell where ac_cr would be empty at this 16613 # point, so we can use a bashism as a fallback. 16614 if test "x$ac_cr" = x; then 16615 eval ac_cr=\$\'\\r\' 16616 fi 16617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16619 ac_cs_awk_cr='\r' 16620 else 16621 ac_cs_awk_cr=$ac_cr 16622 fi 16623 16624 echo 'BEGIN {' >"$tmp/subs1.awk" && 16625 _ACEOF 16626 16627 16628 { 16629 echo "cat >conf$$subs.awk <<_ACEOF" && 16630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16631 echo "_ACEOF" 16632 } >conf$$subs.sh || 16633 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16634 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16635 ac_delim='%!_!# ' 16636 for ac_last_try in false false false false false :; do 16637 . ./conf$$subs.sh || 16638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16639 16640 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16641 if test $ac_delim_n = $ac_delim_num; then 16642 break 16643 elif $ac_last_try; then 16644 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16645 else 16646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16647 fi 16648 done 16649 rm -f conf$$subs.sh 16650 16651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16652 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16653 _ACEOF 16654 sed -n ' 16655 h 16656 s/^/S["/; s/!.*/"]=/ 16657 p 16658 g 16659 s/^[^!]*!// 16660 :repl 16661 t repl 16662 s/'"$ac_delim"'$// 16663 t delim 16664 :nl 16665 h 16666 s/\(.\{148\}\)..*/\1/ 16667 t more1 16668 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16669 p 16670 n 16671 b repl 16672 :more1 16673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16674 p 16675 g 16676 s/.\{148\}// 16677 t nl 16678 :delim 16679 h 16680 s/\(.\{148\}\)..*/\1/ 16681 t more2 16682 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16683 p 16684 b 16685 :more2 16686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16687 p 16688 g 16689 s/.\{148\}// 16690 t delim 16691 ' <conf$$subs.awk | sed ' 16692 /^[^""]/{ 16693 N 16694 s/\n// 16695 } 16696 ' >>$CONFIG_STATUS || ac_write_fail=1 16697 rm -f conf$$subs.awk 16698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16699 _ACAWK 16700 cat >>"\$tmp/subs1.awk" <<_ACAWK && 16701 for (key in S) S_is_set[key] = 1 16702 FS = "" 16703 16704 } 16705 { 16706 line = $ 0 16707 nfields = split(line, field, "@") 16708 substed = 0 16709 len = length(field[1]) 16710 for (i = 2; i < nfields; i++) { 16711 key = field[i] 16712 keylen = length(key) 16713 if (S_is_set[key]) { 16714 value = S[key] 16715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16716 len += length(value) + length(field[++i]) 16717 substed = 1 16718 } else 16719 len += 1 + keylen 16720 } 16721 16722 print line 16723 } 16724 16725 _ACAWK 16726 _ACEOF 16727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16728 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16730 else 16731 cat 16732 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16733 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16734 _ACEOF 16735 16736 # VPATH may cause trouble with some makes, so we remove $(srcdir), 16737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16738 # trailing colons and then remove the whole line if VPATH becomes empty 16739 # (actually we leave an empty line to preserve line numbers). 16740 if test "x$srcdir" = x.; then 16741 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16742 s/:*\$(srcdir):*/:/ 16743 s/:*\${srcdir}:*/:/ 16744 s/:*@srcdir@:*/:/ 16745 s/^\([^=]*=[ ]*\):*/\1/ 16746 s/:*$// 16747 s/^[^=]*=[ ]*$// 16748 }' 16749 fi 16750 16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16752 fi # test -n "$CONFIG_FILES" 16753 16754 # Set up the scripts for CONFIG_HEADERS section. 16755 # No need to generate them if there are no CONFIG_HEADERS. 16756 # This happens for instance with `./config.status Makefile'. 16757 if test -n "$CONFIG_HEADERS"; then 16758 cat >"$tmp/defines.awk" <<\_ACAWK || 16759 BEGIN { 16760 _ACEOF 16761 16762 # Transform confdefs.h into an awk script `defines.awk', embedded as 16763 # here-document in config.status, that substitutes the proper values into 16764 # config.h.in to produce config.h. 16765 16766 # Create a delimiter string that does not exist in confdefs.h, to ease 16767 # handling of long lines. 16768 ac_delim='%!_!# ' 16769 for ac_last_try in false false :; do 16770 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16771 if test -z "$ac_t"; then 16772 break 16773 elif $ac_last_try; then 16774 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16775 else 16776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16777 fi 16778 done 16779 16780 # For the awk script, D is an array of macro values keyed by name, 16781 # likewise P contains macro parameters if any. Preserve backslash 16782 # newline sequences. 16783 16784 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16785 sed -n ' 16786 s/.\{148\}/&'"$ac_delim"'/g 16787 t rset 16788 :rset 16789 s/^[ ]*#[ ]*define[ ][ ]*/ / 16790 t def 16791 d 16792 :def 16793 s/\\$// 16794 t bsnl 16795 s/["\\]/\\&/g 16796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16797 D["\1"]=" \3"/p 16798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16799 d 16800 :bsnl 16801 s/["\\]/\\&/g 16802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16803 D["\1"]=" \3\\\\\\n"\\/p 16804 t cont 16805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16806 t cont 16807 d 16808 :cont 16809 n 16810 s/.\{148\}/&'"$ac_delim"'/g 16811 t clear 16812 :clear 16813 s/\\$// 16814 t bsnlc 16815 s/["\\]/\\&/g; s/^/"/; s/$/"/p 16816 d 16817 :bsnlc 16818 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16819 b cont 16820 ' <confdefs.h | sed ' 16821 s/'"$ac_delim"'/"\\\ 16822 "/g' >>$CONFIG_STATUS || ac_write_fail=1 16823 16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16825 for (key in D) D_is_set[key] = 1 16826 FS = "" 16827 } 16828 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16829 line = \$ 0 16830 split(line, arg, " ") 16831 if (arg[1] == "#") { 16832 defundef = arg[2] 16833 mac1 = arg[3] 16834 } else { 16835 defundef = substr(arg[1], 2) 16836 mac1 = arg[2] 16837 } 16838 split(mac1, mac2, "(") #) 16839 macro = mac2[1] 16840 prefix = substr(line, 1, index(line, defundef) - 1) 16841 if (D_is_set[macro]) { 16842 # Preserve the white space surrounding the "#". 16843 print prefix "define", macro P[macro] D[macro] 16844 next 16845 } else { 16846 # Replace #undef with comments. This is necessary, for example, 16847 # in the case of _POSIX_SOURCE, which is predefined and required 16848 # on some systems where configure will not decide to define it. 16849 if (defundef == "undef") { 16850 print "/*", prefix defundef, macro, "*/" 16851 next 16852 } 16853 } 16854 } 16855 { print } 16856 _ACAWK 16857 _ACEOF 16858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16859 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16860 fi # test -n "$CONFIG_HEADERS" 16861 16862 16863 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16864 shift 16865 for ac_tag 16866 do 16867 case $ac_tag in 16868 :[FHLC]) ac_mode=$ac_tag; continue;; 16869 esac 16870 case $ac_mode$ac_tag in 16871 :[FHL]*:*);; 16872 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16873 :[FH]-) ac_tag=-:-;; 16874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16875 esac 16876 ac_save_IFS=$IFS 16877 IFS=: 16878 set x $ac_tag 16879 IFS=$ac_save_IFS 16880 shift 16881 ac_file=$1 16882 shift 16883 16884 case $ac_mode in 16885 :L) ac_source=$1;; 16886 :[FH]) 16887 ac_file_inputs= 16888 for ac_f 16889 do 16890 case $ac_f in 16891 -) ac_f="$tmp/stdin";; 16892 *) # Look for the file first in the build tree, then in the source tree 16893 # (if the path is not absolute). The absolute path cannot be DOS-style, 16894 # because $ac_f cannot contain `:'. 16895 test -f "$ac_f" || 16896 case $ac_f in 16897 [\\/$]*) false;; 16898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16899 esac || 16900 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16901 esac 16902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16903 as_fn_append ac_file_inputs " '$ac_f'" 16904 done 16905 16906 # Let's still pretend it is `configure' which instantiates (i.e., don't 16907 # use $as_me), people would be surprised to read: 16908 # /* config.h. Generated by config.status. */ 16909 configure_input='Generated from '` 16910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16911 `' by configure.' 16912 if test x"$ac_file" != x-; then 16913 configure_input="$ac_file. $configure_input" 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16915 $as_echo "$as_me: creating $ac_file" >&6;} 16916 fi 16917 # Neutralize special characters interpreted by sed in replacement strings. 16918 case $configure_input in #( 16919 *\&* | *\|* | *\\* ) 16920 ac_sed_conf_input=`$as_echo "$configure_input" | 16921 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16922 *) ac_sed_conf_input=$configure_input;; 16923 esac 16924 16925 case $ac_tag in 16926 *:-:* | *:-) cat >"$tmp/stdin" \ 16927 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16928 esac 16929 ;; 16930 esac 16931 16932 ac_dir=`$as_dirname -- "$ac_file" || 16933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16934 X"$ac_file" : 'X\(//\)[^/]' \| \ 16935 X"$ac_file" : 'X\(//\)$' \| \ 16936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16937 $as_echo X"$ac_file" | 16938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16939 s//\1/ 16940 q 16941 } 16942 /^X\(\/\/\)[^/].*/{ 16943 s//\1/ 16944 q 16945 } 16946 /^X\(\/\/\)$/{ 16947 s//\1/ 16948 q 16949 } 16950 /^X\(\/\).*/{ 16951 s//\1/ 16952 q 16953 } 16954 s/.*/./; q'` 16955 as_dir="$ac_dir"; as_fn_mkdir_p 16956 ac_builddir=. 16957 16958 case "$ac_dir" in 16959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16960 *) 16961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16962 # A ".." for each directory in $ac_dir_suffix. 16963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16964 case $ac_top_builddir_sub in 16965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16967 esac ;; 16968 esac 16969 ac_abs_top_builddir=$ac_pwd 16970 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16971 # for backward compatibility: 16972 ac_top_builddir=$ac_top_build_prefix 16973 16974 case $srcdir in 16975 .) # We are building in place. 16976 ac_srcdir=. 16977 ac_top_srcdir=$ac_top_builddir_sub 16978 ac_abs_top_srcdir=$ac_pwd ;; 16979 [\\/]* | ?:[\\/]* ) # Absolute name. 16980 ac_srcdir=$srcdir$ac_dir_suffix; 16981 ac_top_srcdir=$srcdir 16982 ac_abs_top_srcdir=$srcdir ;; 16983 *) # Relative name. 16984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16985 ac_top_srcdir=$ac_top_build_prefix$srcdir 16986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16987 esac 16988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16989 16990 16991 case $ac_mode in 16992 :F) 16993 # 16994 # CONFIG_FILE 16995 # 16996 16997 case $INSTALL in 16998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17000 esac 17001 ac_MKDIR_P=$MKDIR_P 17002 case $MKDIR_P in 17003 [\\/$]* | ?:[\\/]* ) ;; 17004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17005 esac 17006 _ACEOF 17007 17008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17009 # If the template does not know about datarootdir, expand it. 17010 # FIXME: This hack should be removed a few years after 2.60. 17011 ac_datarootdir_hack=; ac_datarootdir_seen= 17012 ac_sed_dataroot=' 17013 /datarootdir/ { 17014 p 17015 q 17016 } 17017 /@datadir@/p 17018 /@docdir@/p 17019 /@infodir@/p 17020 /@localedir@/p 17021 /@mandir@/p' 17022 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17023 *datarootdir*) ac_datarootdir_seen=yes;; 17024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17026 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17027 _ACEOF 17028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17029 ac_datarootdir_hack=' 17030 s&@datadir@&$datadir&g 17031 s&@docdir@&$docdir&g 17032 s&@infodir@&$infodir&g 17033 s&@localedir@&$localedir&g 17034 s&@mandir@&$mandir&g 17035 s&\\\${datarootdir}&$datarootdir&g' ;; 17036 esac 17037 _ACEOF 17038 17039 # Neutralize VPATH when `$srcdir' = `.'. 17040 # Shell code in configure.ac might set extrasub. 17041 # FIXME: do we really want to maintain this feature? 17042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17043 ac_sed_extra="$ac_vpsub 17044 $extrasub 17045 _ACEOF 17046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17047 :t 17048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17049 s|@configure_input@|$ac_sed_conf_input|;t t 17050 s&@top_builddir@&$ac_top_builddir_sub&;t t 17051 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17052 s&@srcdir@&$ac_srcdir&;t t 17053 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17054 s&@top_srcdir@&$ac_top_srcdir&;t t 17055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17056 s&@builddir@&$ac_builddir&;t t 17057 s&@abs_builddir@&$ac_abs_builddir&;t t 17058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17059 s&@INSTALL@&$ac_INSTALL&;t t 17060 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17061 $ac_datarootdir_hack 17062 " 17063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17064 || as_fn_error "could not create $ac_file" "$LINENO" 5 17065 17066 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17067 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17070 which seems to be undefined. Please make sure it is defined." >&5 17071 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17072 which seems to be undefined. Please make sure it is defined." >&2;} 17073 17074 rm -f "$tmp/stdin" 17075 case $ac_file in 17076 -) cat "$tmp/out" && rm -f "$tmp/out";; 17077 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17078 esac \ 17079 || as_fn_error "could not create $ac_file" "$LINENO" 5 17080 ;; 17081 :H) 17082 # 17083 # CONFIG_HEADER 17084 # 17085 if test x"$ac_file" != x-; then 17086 { 17087 $as_echo "/* $configure_input */" \ 17088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17089 } >"$tmp/config.h" \ 17090 || as_fn_error "could not create $ac_file" "$LINENO" 5 17091 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17093 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17094 else 17095 rm -f "$ac_file" 17096 mv "$tmp/config.h" "$ac_file" \ 17097 || as_fn_error "could not create $ac_file" "$LINENO" 5 17098 fi 17099 else 17100 $as_echo "/* $configure_input */" \ 17101 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17102 || as_fn_error "could not create -" "$LINENO" 5 17103 fi 17104 # Compute "$ac_file"'s index in $config_headers. 17105 _am_arg="$ac_file" 17106 _am_stamp_count=1 17107 for _am_header in $config_headers :; do 17108 case $_am_header in 17109 $_am_arg | $_am_arg:* ) 17110 break ;; 17111 * ) 17112 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17113 esac 17114 done 17115 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17116 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17117 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17118 X"$_am_arg" : 'X\(//\)$' \| \ 17119 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17120 $as_echo X"$_am_arg" | 17121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17122 s//\1/ 17123 q 17124 } 17125 /^X\(\/\/\)[^/].*/{ 17126 s//\1/ 17127 q 17128 } 17129 /^X\(\/\/\)$/{ 17130 s//\1/ 17131 q 17132 } 17133 /^X\(\/\).*/{ 17134 s//\1/ 17135 q 17136 } 17137 s/.*/./; q'`/stamp-h$_am_stamp_count 17138 ;; 17139 17140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17141 $as_echo "$as_me: executing $ac_file commands" >&6;} 17142 ;; 17143 esac 17144 17145 17146 case $ac_file$ac_mode in 17147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17148 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17149 # are listed without --file. Let's play safe and only enable the eval 17150 # if we detect the quoting. 17151 case $CONFIG_FILES in 17152 *\'*) eval set x "$CONFIG_FILES" ;; 17153 *) set x $CONFIG_FILES ;; 17154 esac 17155 shift 17156 for mf 17157 do 17158 # Strip MF so we end up with the name of the file. 17159 mf=`echo "$mf" | sed -e 's/:.*$//'` 17160 # Check whether this is an Automake generated Makefile or not. 17161 # We used to match only the files named `Makefile.in', but 17162 # some people rename them; so instead we look at the file content. 17163 # Grep'ing the first line is not enough: some people post-process 17164 # each Makefile.in and add a new line on top of each file to say so. 17165 # Grep'ing the whole file is not good either: AIX grep has a line 17166 # limit of 2048, but all sed's we know have understand at least 4000. 17167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17168 dirpart=`$as_dirname -- "$mf" || 17169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17170 X"$mf" : 'X\(//\)[^/]' \| \ 17171 X"$mf" : 'X\(//\)$' \| \ 17172 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17173 $as_echo X"$mf" | 17174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17175 s//\1/ 17176 q 17177 } 17178 /^X\(\/\/\)[^/].*/{ 17179 s//\1/ 17180 q 17181 } 17182 /^X\(\/\/\)$/{ 17183 s//\1/ 17184 q 17185 } 17186 /^X\(\/\).*/{ 17187 s//\1/ 17188 q 17189 } 17190 s/.*/./; q'` 17191 else 17192 continue 17193 fi 17194 # Extract the definition of DEPDIR, am__include, and am__quote 17195 # from the Makefile without running `make'. 17196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17197 test -z "$DEPDIR" && continue 17198 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17199 test -z "am__include" && continue 17200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17201 # When using ansi2knr, U may be empty or an underscore; expand it 17202 U=`sed -n 's/^U = //p' < "$mf"` 17203 # Find all dependency output files, they are included files with 17204 # $(DEPDIR) in their names. We invoke sed twice because it is the 17205 # simplest approach to changing $(DEPDIR) to its actual value in the 17206 # expansion. 17207 for file in `sed -n " 17208 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17209 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17210 # Make sure the directory exists. 17211 test -f "$dirpart/$file" && continue 17212 fdir=`$as_dirname -- "$file" || 17213 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17214 X"$file" : 'X\(//\)[^/]' \| \ 17215 X"$file" : 'X\(//\)$' \| \ 17216 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17217 $as_echo X"$file" | 17218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17219 s//\1/ 17220 q 17221 } 17222 /^X\(\/\/\)[^/].*/{ 17223 s//\1/ 17224 q 17225 } 17226 /^X\(\/\/\)$/{ 17227 s//\1/ 17228 q 17229 } 17230 /^X\(\/\).*/{ 17231 s//\1/ 17232 q 17233 } 17234 s/.*/./; q'` 17235 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17236 # echo "creating $dirpart/$file" 17237 echo '# dummy' > "$dirpart/$file" 17238 done 17239 done 17240 } 17241 ;; 17242 "libtool":C) 17243 17244 # See if we are running on zsh, and set the options which allow our 17245 # commands through without removal of \ escapes. 17246 if test -n "${ZSH_VERSION+set}" ; then 17247 setopt NO_GLOB_SUBST 17248 fi 17249 17250 cfgfile="${ofile}T" 17251 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17252 $RM "$cfgfile" 17253 17254 cat <<_LT_EOF >> "$cfgfile" 17255 #! $SHELL 17256 17257 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17258 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17260 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17261 # 17262 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17263 # 2006, 2007, 2008 Free Software Foundation, Inc. 17264 # Written by Gordon Matzigkeit, 1996 17265 # 17266 # This file is part of GNU Libtool. 17267 # 17268 # GNU Libtool is free software; you can redistribute it and/or 17269 # modify it under the terms of the GNU General Public License as 17270 # published by the Free Software Foundation; either version 2 of 17271 # the License, or (at your option) any later version. 17272 # 17273 # As a special exception to the GNU General Public License, 17274 # if you distribute this file as part of a program or library that 17275 # is built using GNU Libtool, you may include this file under the 17276 # same distribution terms that you use for the rest of that program. 17277 # 17278 # GNU Libtool is distributed in the hope that it will be useful, 17279 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17280 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17281 # GNU General Public License for more details. 17282 # 17283 # You should have received a copy of the GNU General Public License 17284 # along with GNU Libtool; see the file COPYING. If not, a copy 17285 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17286 # obtained by writing to the Free Software Foundation, Inc., 17287 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17288 17289 17290 # The names of the tagged configurations supported by this script. 17291 available_tags="CXX " 17292 17293 # ### BEGIN LIBTOOL CONFIG 17294 17295 # Which release of libtool.m4 was used? 17296 macro_version=$macro_version 17297 macro_revision=$macro_revision 17298 17299 # Whether or not to build shared libraries. 17300 build_libtool_libs=$enable_shared 17301 17302 # Whether or not to build static libraries. 17303 build_old_libs=$enable_static 17304 17305 # What type of objects to build. 17306 pic_mode=$pic_mode 17307 17308 # Whether or not to optimize for fast installation. 17309 fast_install=$enable_fast_install 17310 17311 # The host system. 17312 host_alias=$host_alias 17313 host=$host 17314 host_os=$host_os 17315 17316 # The build system. 17317 build_alias=$build_alias 17318 build=$build 17319 build_os=$build_os 17320 17321 # A sed program that does not truncate output. 17322 SED=$lt_SED 17323 17324 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 17325 Xsed="\$SED -e 1s/^X//" 17326 17327 # A grep program that handles long lines. 17328 GREP=$lt_GREP 17329 17330 # An ERE matcher. 17331 EGREP=$lt_EGREP 17332 17333 # A literal string matcher. 17334 FGREP=$lt_FGREP 17335 17336 # A BSD- or MS-compatible name lister. 17337 NM=$lt_NM 17338 17339 # Whether we need soft or hard links. 17340 LN_S=$lt_LN_S 17341 17342 # What is the maximum length of a command? 17343 max_cmd_len=$max_cmd_len 17344 17345 # Object file suffix (normally "o"). 17346 objext=$ac_objext 17347 17348 # Executable file suffix (normally ""). 17349 exeext=$exeext 17350 17351 # whether the shell understands "unset". 17352 lt_unset=$lt_unset 17353 17354 # turn spaces into newlines. 17355 SP2NL=$lt_lt_SP2NL 17356 17357 # turn newlines into spaces. 17358 NL2SP=$lt_lt_NL2SP 17359 17360 # How to create reloadable object files. 17361 reload_flag=$lt_reload_flag 17362 reload_cmds=$lt_reload_cmds 17363 17364 # An object symbol dumper. 17365 OBJDUMP=$lt_OBJDUMP 17366 17367 # Method to check whether dependent libraries are shared objects. 17368 deplibs_check_method=$lt_deplibs_check_method 17369 17370 # Command to use when deplibs_check_method == "file_magic". 17371 file_magic_cmd=$lt_file_magic_cmd 17372 17373 # The archiver. 17374 AR=$lt_AR 17375 AR_FLAGS=$lt_AR_FLAGS 17376 17377 # A symbol stripping program. 17378 STRIP=$lt_STRIP 17379 17380 # Commands used to install an old-style archive. 17381 RANLIB=$lt_RANLIB 17382 old_postinstall_cmds=$lt_old_postinstall_cmds 17383 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17384 17385 # A C compiler. 17386 LTCC=$lt_CC 17387 17388 # LTCC compiler flags. 17389 LTCFLAGS=$lt_CFLAGS 17390 17391 # Take the output of nm and produce a listing of raw symbols and C names. 17392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17393 17394 # Transform the output of nm in a proper C declaration. 17395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17396 17397 # Transform the output of nm in a C name address pair. 17398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17399 17400 # Transform the output of nm in a C name address pair when lib prefix is needed. 17401 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17402 17403 # The name of the directory that contains temporary libtool files. 17404 objdir=$objdir 17405 17406 # Shell to use when invoking shell scripts. 17407 SHELL=$lt_SHELL 17408 17409 # An echo program that does not interpret backslashes. 17410 ECHO=$lt_ECHO 17411 17412 # Used to examine libraries when file_magic_cmd begins with "file". 17413 MAGIC_CMD=$MAGIC_CMD 17414 17415 # Must we lock files when doing compilation? 17416 need_locks=$lt_need_locks 17417 17418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17419 DSYMUTIL=$lt_DSYMUTIL 17420 17421 # Tool to change global to local symbols on Mac OS X. 17422 NMEDIT=$lt_NMEDIT 17423 17424 # Tool to manipulate fat objects and archives on Mac OS X. 17425 LIPO=$lt_LIPO 17426 17427 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 17428 OTOOL=$lt_OTOOL 17429 17430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17431 OTOOL64=$lt_OTOOL64 17432 17433 # Old archive suffix (normally "a"). 17434 libext=$libext 17435 17436 # Shared library suffix (normally ".so"). 17437 shrext_cmds=$lt_shrext_cmds 17438 17439 # The commands to extract the exported symbol list from a shared archive. 17440 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17441 17442 # Variables whose values should be saved in libtool wrapper scripts and 17443 # restored at link time. 17444 variables_saved_for_relink=$lt_variables_saved_for_relink 17445 17446 # Do we need the "lib" prefix for modules? 17447 need_lib_prefix=$need_lib_prefix 17448 17449 # Do we need a version for libraries? 17450 need_version=$need_version 17451 17452 # Library versioning type. 17453 version_type=$version_type 17454 17455 # Shared library runtime path variable. 17456 runpath_var=$runpath_var 17457 17458 # Shared library path variable. 17459 shlibpath_var=$shlibpath_var 17460 17461 # Is shlibpath searched before the hard-coded library search path? 17462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17463 17464 # Format of library name prefix. 17465 libname_spec=$lt_libname_spec 17466 17467 # List of archive names. First name is the real one, the rest are links. 17468 # The last name is the one that the linker finds with -lNAME 17469 library_names_spec=$lt_library_names_spec 17470 17471 # The coded name of the library, if different from the real name. 17472 soname_spec=$lt_soname_spec 17473 17474 # Command to use after installation of a shared archive. 17475 postinstall_cmds=$lt_postinstall_cmds 17476 17477 # Command to use after uninstallation of a shared archive. 17478 postuninstall_cmds=$lt_postuninstall_cmds 17479 17480 # Commands used to finish a libtool library installation in a directory. 17481 finish_cmds=$lt_finish_cmds 17482 17483 # As "finish_cmds", except a single script fragment to be evaled but 17484 # not shown. 17485 finish_eval=$lt_finish_eval 17486 17487 # Whether we should hardcode library paths into libraries. 17488 hardcode_into_libs=$hardcode_into_libs 17489 17490 # Compile-time system search path for libraries. 17491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17492 17493 # Run-time system search path for libraries. 17494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17495 17496 # Whether dlopen is supported. 17497 dlopen_support=$enable_dlopen 17498 17499 # Whether dlopen of programs is supported. 17500 dlopen_self=$enable_dlopen_self 17501 17502 # Whether dlopen of statically linked programs is supported. 17503 dlopen_self_static=$enable_dlopen_self_static 17504 17505 # Commands to strip libraries. 17506 old_striplib=$lt_old_striplib 17507 striplib=$lt_striplib 17508 17509 17510 # The linker used to build libraries. 17511 LD=$lt_LD 17512 17513 # Commands used to build an old-style archive. 17514 old_archive_cmds=$lt_old_archive_cmds 17515 17516 # A language specific compiler. 17517 CC=$lt_compiler 17518 17519 # Is the compiler the GNU compiler? 17520 with_gcc=$GCC 17521 17522 # Compiler flag to turn off builtin functions. 17523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17524 17525 # How to pass a linker flag through the compiler. 17526 wl=$lt_lt_prog_compiler_wl 17527 17528 # Additional compiler flags for building library objects. 17529 pic_flag=$lt_lt_prog_compiler_pic 17530 17531 # Compiler flag to prevent dynamic linking. 17532 link_static_flag=$lt_lt_prog_compiler_static 17533 17534 # Does compiler simultaneously support -c and -o options? 17535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17536 17537 # Whether or not to add -lc for building shared libraries. 17538 build_libtool_need_lc=$archive_cmds_need_lc 17539 17540 # Whether or not to disallow shared libs when runtime libs are static. 17541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17542 17543 # Compiler flag to allow reflexive dlopens. 17544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17545 17546 # Compiler flag to generate shared objects directly from archives. 17547 whole_archive_flag_spec=$lt_whole_archive_flag_spec 17548 17549 # Whether the compiler copes with passing no objects directly. 17550 compiler_needs_object=$lt_compiler_needs_object 17551 17552 # Create an old-style archive from a shared archive. 17553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17554 17555 # Create a temporary old-style archive to link instead of a shared archive. 17556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17557 17558 # Commands used to build a shared archive. 17559 archive_cmds=$lt_archive_cmds 17560 archive_expsym_cmds=$lt_archive_expsym_cmds 17561 17562 # Commands used to build a loadable module if different from building 17563 # a shared archive. 17564 module_cmds=$lt_module_cmds 17565 module_expsym_cmds=$lt_module_expsym_cmds 17566 17567 # Whether we are building with GNU ld or not. 17568 with_gnu_ld=$lt_with_gnu_ld 17569 17570 # Flag that allows shared libraries with undefined symbols to be built. 17571 allow_undefined_flag=$lt_allow_undefined_flag 17572 17573 # Flag that enforces no undefined symbols. 17574 no_undefined_flag=$lt_no_undefined_flag 17575 17576 # Flag to hardcode \$libdir into a binary during linking. 17577 # This must work even if \$libdir does not exist 17578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17579 17580 # If ld is used when linking, flag to hardcode \$libdir into a binary 17581 # during linking. This must work even if \$libdir does not exist. 17582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17583 17584 # Whether we need a single "-rpath" flag with a separated argument. 17585 hardcode_libdir_separator=$lt_hardcode_libdir_separator 17586 17587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17588 # DIR into the resulting binary. 17589 hardcode_direct=$hardcode_direct 17590 17591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17592 # DIR into the resulting binary and the resulting library dependency is 17593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17594 # library is relocated. 17595 hardcode_direct_absolute=$hardcode_direct_absolute 17596 17597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17598 # into the resulting binary. 17599 hardcode_minus_L=$hardcode_minus_L 17600 17601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17602 # into the resulting binary. 17603 hardcode_shlibpath_var=$hardcode_shlibpath_var 17604 17605 # Set to "yes" if building a shared library automatically hardcodes DIR 17606 # into the library and all subsequent libraries and executables linked 17607 # against it. 17608 hardcode_automatic=$hardcode_automatic 17609 17610 # Set to yes if linker adds runtime paths of dependent libraries 17611 # to runtime path list. 17612 inherit_rpath=$inherit_rpath 17613 17614 # Whether libtool must link a program against all its dependency libraries. 17615 link_all_deplibs=$link_all_deplibs 17616 17617 # Fix the shell variable \$srcfile for the compiler. 17618 fix_srcfile_path=$lt_fix_srcfile_path 17619 17620 # Set to "yes" if exported symbols are required. 17621 always_export_symbols=$always_export_symbols 17622 17623 # The commands to list exported symbols. 17624 export_symbols_cmds=$lt_export_symbols_cmds 17625 17626 # Symbols that should not be listed in the preloaded symbols. 17627 exclude_expsyms=$lt_exclude_expsyms 17628 17629 # Symbols that must always be exported. 17630 include_expsyms=$lt_include_expsyms 17631 17632 # Commands necessary for linking programs (against libraries) with templates. 17633 prelink_cmds=$lt_prelink_cmds 17634 17635 # Specify filename containing input files. 17636 file_list_spec=$lt_file_list_spec 17637 17638 # How to hardcode a shared library path into an executable. 17639 hardcode_action=$hardcode_action 17640 17641 # The directories searched by this compiler when creating a shared library. 17642 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17643 17644 # Dependencies to place before and after the objects being linked to 17645 # create a shared library. 17646 predep_objects=$lt_predep_objects 17647 postdep_objects=$lt_postdep_objects 17648 predeps=$lt_predeps 17649 postdeps=$lt_postdeps 17650 17651 # The library search path used internally by the compiler when linking 17652 # a shared library. 17653 compiler_lib_search_path=$lt_compiler_lib_search_path 17654 17655 # ### END LIBTOOL CONFIG 17656 17657 _LT_EOF 17658 17659 case $host_os in 17660 aix3*) 17661 cat <<\_LT_EOF >> "$cfgfile" 17662 # AIX sometimes has problems with the GCC collect2 program. For some 17663 # reason, if we set the COLLECT_NAMES environment variable, the problems 17664 # vanish in a puff of smoke. 17665 if test "X${COLLECT_NAMES+set}" != Xset; then 17666 COLLECT_NAMES= 17667 export COLLECT_NAMES 17668 fi 17669 _LT_EOF 17670 ;; 17671 esac 17672 17673 17674 ltmain="$ac_aux_dir/ltmain.sh" 17675 17676 17677 # We use sed instead of cat because bash on DJGPP gets confused if 17678 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17679 # text mode, it properly converts lines to CR/LF. This bash problem 17680 # is reportedly fixed, but why not run on old versions too? 17681 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17682 || (rm -f "$cfgfile"; exit 1) 17683 17684 case $xsi_shell in 17685 yes) 17686 cat << \_LT_EOF >> "$cfgfile" 17687 17688 # func_dirname file append nondir_replacement 17689 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 17690 # otherwise set result to NONDIR_REPLACEMENT. 17691 func_dirname () 17692 { 17693 case ${1} in 17694 */*) func_dirname_result="${1%/*}${2}" ;; 17695 * ) func_dirname_result="${3}" ;; 17696 esac 17697 } 17698 17699 # func_basename file 17700 func_basename () 17701 { 17702 func_basename_result="${1##*/}" 17703 } 17704 17705 # func_dirname_and_basename file append nondir_replacement 17706 # perform func_basename and func_dirname in a single function 17707 # call: 17708 # dirname: Compute the dirname of FILE. If nonempty, 17709 # add APPEND to the result, otherwise set result 17710 # to NONDIR_REPLACEMENT. 17711 # value returned in "$func_dirname_result" 17712 # basename: Compute filename of FILE. 17713 # value retuned in "$func_basename_result" 17714 # Implementation must be kept synchronized with func_dirname 17715 # and func_basename. For efficiency, we do not delegate to 17716 # those functions but instead duplicate the functionality here. 17717 func_dirname_and_basename () 17718 { 17719 case ${1} in 17720 */*) func_dirname_result="${1%/*}${2}" ;; 17721 * ) func_dirname_result="${3}" ;; 17722 esac 17723 func_basename_result="${1##*/}" 17724 } 17725 17726 # func_stripname prefix suffix name 17727 # strip PREFIX and SUFFIX off of NAME. 17728 # PREFIX and SUFFIX must not contain globbing or regex special 17729 # characters, hashes, percent signs, but SUFFIX may contain a leading 17730 # dot (in which case that matches only a dot). 17731 func_stripname () 17732 { 17733 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17734 # positional parameters, so assign one to ordinary parameter first. 17735 func_stripname_result=${3} 17736 func_stripname_result=${func_stripname_result#"${1}"} 17737 func_stripname_result=${func_stripname_result%"${2}"} 17738 } 17739 17740 # func_opt_split 17741 func_opt_split () 17742 { 17743 func_opt_split_opt=${1%%=*} 17744 func_opt_split_arg=${1#*=} 17745 } 17746 17747 # func_lo2o object 17748 func_lo2o () 17749 { 17750 case ${1} in 17751 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17752 *) func_lo2o_result=${1} ;; 17753 esac 17754 } 17755 17756 # func_xform libobj-or-source 17757 func_xform () 17758 { 17759 func_xform_result=${1%.*}.lo 17760 } 17761 17762 # func_arith arithmetic-term... 17763 func_arith () 17764 { 17765 func_arith_result=$(( $* )) 17766 } 17767 17768 # func_len string 17769 # STRING may not start with a hyphen. 17770 func_len () 17771 { 17772 func_len_result=${#1} 17773 } 17774 17775 _LT_EOF 17776 ;; 17777 *) # Bourne compatible functions. 17778 cat << \_LT_EOF >> "$cfgfile" 17779 17780 # func_dirname file append nondir_replacement 17781 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 17782 # otherwise set result to NONDIR_REPLACEMENT. 17783 func_dirname () 17784 { 17785 # Extract subdirectory from the argument. 17786 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17787 if test "X$func_dirname_result" = "X${1}"; then 17788 func_dirname_result="${3}" 17789 else 17790 func_dirname_result="$func_dirname_result${2}" 17791 fi 17792 } 17793 17794 # func_basename file 17795 func_basename () 17796 { 17797 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17798 } 17799 17800 17801 # func_stripname prefix suffix name 17802 # strip PREFIX and SUFFIX off of NAME. 17803 # PREFIX and SUFFIX must not contain globbing or regex special 17804 # characters, hashes, percent signs, but SUFFIX may contain a leading 17805 # dot (in which case that matches only a dot). 17806 # func_strip_suffix prefix name 17807 func_stripname () 17808 { 17809 case ${2} in 17810 .*) func_stripname_result=`$ECHO "X${3}" \ 17811 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17812 *) func_stripname_result=`$ECHO "X${3}" \ 17813 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17814 esac 17815 } 17816 17817 # sed scripts: 17818 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17819 my_sed_long_arg='1s/^-[^=]*=//' 17820 17821 # func_opt_split 17822 func_opt_split () 17823 { 17824 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17825 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17826 } 17827 17828 # func_lo2o object 17829 func_lo2o () 17830 { 17831 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17832 } 17833 17834 # func_xform libobj-or-source 17835 func_xform () 17836 { 17837 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17838 } 17839 17840 # func_arith arithmetic-term... 17841 func_arith () 17842 { 17843 func_arith_result=`expr "$@"` 17844 } 17845 17846 # func_len string 17847 # STRING may not start with a hyphen. 17848 func_len () 17849 { 17850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17851 } 17852 17853 _LT_EOF 17854 esac 17855 17856 case $lt_shell_append in 17857 yes) 17858 cat << \_LT_EOF >> "$cfgfile" 17859 17860 # func_append var value 17861 # Append VALUE to the end of shell variable VAR. 17862 func_append () 17863 { 17864 eval "$1+=\$2" 17865 } 17866 _LT_EOF 17867 ;; 17868 *) 17869 cat << \_LT_EOF >> "$cfgfile" 17870 17871 # func_append var value 17872 # Append VALUE to the end of shell variable VAR. 17873 func_append () 17874 { 17875 eval "$1=\$$1\$2" 17876 } 17877 17878 _LT_EOF 17879 ;; 17880 esac 17881 17882 17883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17884 || (rm -f "$cfgfile"; exit 1) 17885 17886 mv -f "$cfgfile" "$ofile" || 17887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17888 chmod +x "$ofile" 17889 17890 17891 cat <<_LT_EOF >> "$ofile" 17892 17893 # ### BEGIN LIBTOOL TAG CONFIG: CXX 17894 17895 # The linker used to build libraries. 17896 LD=$lt_LD_CXX 17897 17898 # Commands used to build an old-style archive. 17899 old_archive_cmds=$lt_old_archive_cmds_CXX 17900 17901 # A language specific compiler. 17902 CC=$lt_compiler_CXX 17903 17904 # Is the compiler the GNU compiler? 17905 with_gcc=$GCC_CXX 17906 17907 # Compiler flag to turn off builtin functions. 17908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17909 17910 # How to pass a linker flag through the compiler. 17911 wl=$lt_lt_prog_compiler_wl_CXX 17912 17913 # Additional compiler flags for building library objects. 17914 pic_flag=$lt_lt_prog_compiler_pic_CXX 17915 17916 # Compiler flag to prevent dynamic linking. 17917 link_static_flag=$lt_lt_prog_compiler_static_CXX 17918 17919 # Does compiler simultaneously support -c and -o options? 17920 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17921 17922 # Whether or not to add -lc for building shared libraries. 17923 build_libtool_need_lc=$archive_cmds_need_lc_CXX 17924 17925 # Whether or not to disallow shared libs when runtime libs are static. 17926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17927 17928 # Compiler flag to allow reflexive dlopens. 17929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17930 17931 # Compiler flag to generate shared objects directly from archives. 17932 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17933 17934 # Whether the compiler copes with passing no objects directly. 17935 compiler_needs_object=$lt_compiler_needs_object_CXX 17936 17937 # Create an old-style archive from a shared archive. 17938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17939 17940 # Create a temporary old-style archive to link instead of a shared archive. 17941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17942 17943 # Commands used to build a shared archive. 17944 archive_cmds=$lt_archive_cmds_CXX 17945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17946 17947 # Commands used to build a loadable module if different from building 17948 # a shared archive. 17949 module_cmds=$lt_module_cmds_CXX 17950 module_expsym_cmds=$lt_module_expsym_cmds_CXX 17951 17952 # Whether we are building with GNU ld or not. 17953 with_gnu_ld=$lt_with_gnu_ld_CXX 17954 17955 # Flag that allows shared libraries with undefined symbols to be built. 17956 allow_undefined_flag=$lt_allow_undefined_flag_CXX 17957 17958 # Flag that enforces no undefined symbols. 17959 no_undefined_flag=$lt_no_undefined_flag_CXX 17960 17961 # Flag to hardcode \$libdir into a binary during linking. 17962 # This must work even if \$libdir does not exist 17963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17964 17965 # If ld is used when linking, flag to hardcode \$libdir into a binary 17966 # during linking. This must work even if \$libdir does not exist. 17967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17968 17969 # Whether we need a single "-rpath" flag with a separated argument. 17970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17971 17972 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17973 # DIR into the resulting binary. 17974 hardcode_direct=$hardcode_direct_CXX 17975 17976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17977 # DIR into the resulting binary and the resulting library dependency is 17978 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17979 # library is relocated. 17980 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17981 17982 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17983 # into the resulting binary. 17984 hardcode_minus_L=$hardcode_minus_L_CXX 17985 17986 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17987 # into the resulting binary. 17988 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17989 17990 # Set to "yes" if building a shared library automatically hardcodes DIR 17991 # into the library and all subsequent libraries and executables linked 17992 # against it. 17993 hardcode_automatic=$hardcode_automatic_CXX 17994 17995 # Set to yes if linker adds runtime paths of dependent libraries 17996 # to runtime path list. 17997 inherit_rpath=$inherit_rpath_CXX 17998 17999 # Whether libtool must link a program against all its dependency libraries. 18000 link_all_deplibs=$link_all_deplibs_CXX 18001 18002 # Fix the shell variable \$srcfile for the compiler. 18003 fix_srcfile_path=$lt_fix_srcfile_path_CXX 18004 18005 # Set to "yes" if exported symbols are required. 18006 always_export_symbols=$always_export_symbols_CXX 18007 18008 # The commands to list exported symbols. 18009 export_symbols_cmds=$lt_export_symbols_cmds_CXX 18010 18011 # Symbols that should not be listed in the preloaded symbols. 18012 exclude_expsyms=$lt_exclude_expsyms_CXX 18013 18014 # Symbols that must always be exported. 18015 include_expsyms=$lt_include_expsyms_CXX 18016 18017 # Commands necessary for linking programs (against libraries) with templates. 18018 prelink_cmds=$lt_prelink_cmds_CXX 18019 18020 # Specify filename containing input files. 18021 file_list_spec=$lt_file_list_spec_CXX 18022 18023 # How to hardcode a shared library path into an executable. 18024 hardcode_action=$hardcode_action_CXX 18025 18026 # The directories searched by this compiler when creating a shared library. 18027 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18028 18029 # Dependencies to place before and after the objects being linked to 18030 # create a shared library. 18031 predep_objects=$lt_predep_objects_CXX 18032 postdep_objects=$lt_postdep_objects_CXX 18033 predeps=$lt_predeps_CXX 18034 postdeps=$lt_postdeps_CXX 18035 18036 # The library search path used internally by the compiler when linking 18037 # a shared library. 18038 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18039 18040 # ### END LIBTOOL TAG CONFIG: CXX 18041 _LT_EOF 18042 18043 ;; 18044 18045 esac 18046 done # for ac_tag 18047 18048 18049 as_fn_exit 0 18050 _ACEOF 18051 ac_clean_files=$ac_clean_files_save 18052 18053 test $ac_write_fail = 0 || 18054 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18055 18056 18057 # configure is writing to config.log, and then calls config.status. 18058 # config.status does its own redirection, appending to config.log. 18059 # Unfortunately, on DOS this fails, as config.log is still kept open 18060 # by configure, so config.status won't be able to write to it; its 18061 # output is simply discarded. So we exec the FD to /dev/null, 18062 # effectively closing config.log, so it can be properly (re)opened and 18063 # appended to by config.status. When coming back to configure, we 18064 # need to make the FD available again. 18065 if test "$no_create" != yes; then 18066 ac_cs_success=: 18067 ac_config_status_args= 18068 test "$silent" = yes && 18069 ac_config_status_args="$ac_config_status_args --quiet" 18070 exec 5>/dev/null 18071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18072 exec 5>>config.log 18073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18074 # would make configure fail if this is the last instruction. 18075 $ac_cs_success || as_fn_exit $? 18076 fi 18077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18080 fi 18081 18082