1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68 for Protocol Buffers 2.3.0. 4 # 5 # Report bugs to <protobuf (at] googlegroups.com>. 6 # 7 # 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10 # Foundation, 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 as_myself= 95 case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98 for as_dir in $PATH 99 do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104 IFS=$as_save_IFS 105 106 ;; 107 esac 108 # We did not find ourselves, most probably we were run as `sh COMMAND' 109 # in which case we are not to be found in the path. 110 if test "x$as_myself" = x; then 111 as_myself=$0 112 fi 113 if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116 fi 117 118 # Unset variables that we do not need and which cause bugs (e.g. in 119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120 # suppresses any "Segmentation fault" message there. '((' could 121 # trigger a bug in pdksh 5.2.14. 122 for as_var in BASH_ENV ENV MAIL MAILPATH 123 do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # CDPATH. 137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139 if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147 else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153 esac 154 fi 155 " 156 as_required="as_fn_return () { (exit \$1); } 157 as_fn_success () { as_fn_return 0; } 158 as_fn_failure () { as_fn_return 1; } 159 as_fn_ret_success () { return 0; } 160 as_fn_ret_failure () { return 1; } 161 162 exitcode=0 163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169 else 170 exitcode=1; echo positional parameters were not saved. 171 fi 172 test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180 else 181 as_have_required=no 182 fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185 else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187 as_found=false 188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189 do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203 fi 204 fi 205 done;; 206 esac 207 as_found=false 208 done 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212 fi; } 213 IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232 fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 242 $0: protobuf (at] googlegroups.com about your system, including 243 $0: any error possibly output before this message. Then 244 $0: install a modern shell, or manually run the script 245 $0: under such a shell if you do have one." 246 fi 247 exit 1 248 fi 249 fi 250 fi 251 SHELL=${CONFIG_SHELL-/bin/sh} 252 export SHELL 253 # Unset more variables known to interfere with behavior of common tools. 254 CLICOLOR_FORCE= GREP_OPTIONS= 255 unset CLICOLOR_FORCE GREP_OPTIONS 256 257 ## --------------------- ## 258 ## M4sh Shell Functions. ## 259 ## --------------------- ## 260 # as_fn_unset VAR 261 # --------------- 262 # Portably unset VAR. 263 as_fn_unset () 264 { 265 { eval $1=; unset $1;} 266 } 267 as_unset=as_fn_unset 268 269 # as_fn_set_status STATUS 270 # ----------------------- 271 # Set $? to STATUS, without forking. 272 as_fn_set_status () 273 { 274 return $1 275 } # as_fn_set_status 276 277 # as_fn_exit STATUS 278 # ----------------- 279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280 as_fn_exit () 281 { 282 set +e 283 as_fn_set_status $1 284 exit $1 285 } # as_fn_exit 286 287 # as_fn_mkdir_p 288 # ------------- 289 # Create "$as_dir" as a directory, including parents if necessary. 290 as_fn_mkdir_p () 291 { 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309 $as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333 } # as_fn_mkdir_p 334 # as_fn_append VAR VALUE 335 # ---------------------- 336 # Append the text in VALUE to the end of the definition contained in VAR. Take 337 # advantage of any shell optimizations that allow amortized linear growth over 338 # repeated appends, instead of the typical quadratic growth present in naive 339 # implementations. 340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345 else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350 fi # as_fn_append 351 352 # as_fn_arith ARG... 353 # ------------------ 354 # Perform arithmetic evaluation on the ARGs, and store the result in the 355 # global $as_val. Take advantage of shells that can avoid forks. The arguments 356 # must be portable across $(()) and expr. 357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362 else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367 fi # as_fn_arith 368 369 370 # as_fn_error STATUS ERROR [LINENO LOG_FD] 371 # ---------------------------------------- 372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374 # script with STATUS, using 1 if that was 0. 375 as_fn_error () 376 { 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384 } # as_fn_error 385 386 if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389 else 390 as_expr=false 391 fi 392 393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395 else 396 as_basename=false 397 fi 398 399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401 else 402 as_dirname=false 403 fi 404 405 as_me=`$as_basename -- "$0" || 406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409 $as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424 # Avoid depending upon Character Ranges. 425 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428 as_cr_digits='0123456789' 429 as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 ECHO_C= ECHO_N= ECHO_T= 464 case `echo -n x` in #((((( 465 -n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472 *) 473 ECHO_N='-n';; 474 esac 475 476 rm -f conf$$ conf$$.exe conf$$.file 477 if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479 else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482 fi 483 if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497 else 498 as_ln_s='cp -p' 499 fi 500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501 rmdir conf$$.dir 2>/dev/null 502 503 if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505 else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508 fi 509 510 if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512 else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530 fi 531 as_executable_p=$as_test_x 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541 # Check that we are running under the correct shell. 542 SHELL=${CONFIG_SHELL-/bin/sh} 543 544 case X$lt_ECHO in 545 X*--fallback-echo) 546 # Remove one level of quotation (which was required for Make). 547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 548 ;; 549 esac 550 551 ECHO=${lt_ECHO-echo} 552 if test "X$1" = X--no-reexec; then 553 # Discard the --no-reexec flag, and continue. 554 shift 555 elif test "X$1" = X--fallback-echo; then 556 # Avoid inline document here, it may be left over 557 : 558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 559 # Yippee, $ECHO works! 560 : 561 else 562 # Restart under the correct shell. 563 exec $SHELL "$0" --no-reexec ${1+"$@"} 564 fi 565 566 if test "X$1" = X--fallback-echo; then 567 # used as fallback echo 568 shift 569 cat <<_LT_EOF 570 $* 571 _LT_EOF 572 exit 0 573 fi 574 575 # The HP-UX ksh and POSIX shell print the target directory to stdout 576 # if CDPATH is set. 577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 578 579 if test -z "$lt_ECHO"; then 580 if test "X${echo_test_string+set}" != Xset; then 581 # find a string as large as possible, as long as the shell can cope with it 582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 584 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 586 then 587 break 588 fi 589 done 590 fi 591 592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596 else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 ECHO="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$ECHO" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 ECHO='print -r' 623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 ECHO='printf %s\n' 634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 ECHO="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 ECHO="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 ECHO=echo 672 fi 673 fi 674 fi 675 fi 676 fi 677 fi 678 679 # Copy echo and quote the copy suitably for passing to libtool from 680 # the Makefile, instead of quoting the original, which is used later. 681 lt_ECHO=$ECHO 682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684 fi 685 686 687 688 689 test -n "$DJDIR" || exec 7<&0 </dev/null 690 exec 6>&1 691 692 # Name of the host. 693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 694 # so uname gets run too. 695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 696 697 # 698 # Initializations. 699 # 700 ac_default_prefix=/usr/local 701 ac_clean_files= 702 ac_config_libobj_dir=. 703 LIBOBJS= 704 cross_compiling=no 705 subdirs= 706 MFLAGS= 707 MAKEFLAGS= 708 709 # Identity of this package. 710 PACKAGE_NAME='Protocol Buffers' 711 PACKAGE_TARNAME='protobuf' 712 PACKAGE_VERSION='2.3.0' 713 PACKAGE_STRING='Protocol Buffers 2.3.0' 714 PACKAGE_BUGREPORT='protobuf (at] googlegroups.com' 715 PACKAGE_URL='' 716 717 ac_unique_file="src/google/protobuf/message.cc" 718 # Factoring default headers for most tests. 719 ac_includes_default="\ 720 #include <stdio.h> 721 #ifdef HAVE_SYS_TYPES_H 722 # include <sys/types.h> 723 #endif 724 #ifdef HAVE_SYS_STAT_H 725 # include <sys/stat.h> 726 #endif 727 #ifdef STDC_HEADERS 728 # include <stdlib.h> 729 # include <stddef.h> 730 #else 731 # ifdef HAVE_STDLIB_H 732 # include <stdlib.h> 733 # endif 734 #endif 735 #ifdef HAVE_STRING_H 736 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 737 # include <memory.h> 738 # endif 739 # include <string.h> 740 #endif 741 #ifdef HAVE_STRINGS_H 742 # include <strings.h> 743 #endif 744 #ifdef HAVE_INTTYPES_H 745 # include <inttypes.h> 746 #endif 747 #ifdef HAVE_STDINT_H 748 # include <stdint.h> 749 #endif 750 #ifdef HAVE_UNISTD_H 751 # include <unistd.h> 752 #endif" 753 754 enable_option_checking=no 755 ac_subst_vars='am__EXEEXT_FALSE 756 am__EXEEXT_TRUE 757 LTLIBOBJS 758 subdirs 759 PTHREAD_CFLAGS 760 PTHREAD_LIBS 761 PTHREAD_CC 762 acx_pthread_config 763 USE_EXTERNAL_PROTOC_FALSE 764 USE_EXTERNAL_PROTOC_TRUE 765 PROTOC 766 HAVE_ZLIB_FALSE 767 HAVE_ZLIB_TRUE 768 POW_LIB 769 LIBOBJS 770 OTOOL64 771 OTOOL 772 LIPO 773 NMEDIT 774 DSYMUTIL 775 lt_ECHO 776 RANLIB 777 AR 778 LN_S 779 NM 780 ac_ct_DUMPBIN 781 DUMPBIN 782 LD 783 FGREP 784 SED 785 LIBTOOL 786 ISAINFO 787 PROTOBUF_OPT_FLAG 788 GCC_FALSE 789 GCC_TRUE 790 EGREP 791 GREP 792 CXXCPP 793 am__fastdepCXX_FALSE 794 am__fastdepCXX_TRUE 795 CXXDEPMODE 796 ac_ct_CXX 797 CXXFLAGS 798 CXX 799 am__fastdepCC_FALSE 800 am__fastdepCC_TRUE 801 CCDEPMODE 802 am__nodep 803 AMDEPBACKSLASH 804 AMDEP_FALSE 805 AMDEP_TRUE 806 am__quote 807 am__include 808 DEPDIR 809 OBJEXT 810 EXEEXT 811 ac_ct_CC 812 CPPFLAGS 813 LDFLAGS 814 CFLAGS 815 CC 816 am__untar 817 am__tar 818 AMTAR 819 am__leading_dot 820 SET_MAKE 821 AWK 822 mkdir_p 823 MKDIR_P 824 INSTALL_STRIP_PROGRAM 825 STRIP 826 install_sh 827 MAKEINFO 828 AUTOHEADER 829 AUTOMAKE 830 AUTOCONF 831 ACLOCAL 832 VERSION 833 PACKAGE 834 CYGPATH_W 835 am__isrc 836 INSTALL_DATA 837 INSTALL_SCRIPT 838 INSTALL_PROGRAM 839 target_os 840 target_vendor 841 target_cpu 842 target 843 host_os 844 host_vendor 845 host_cpu 846 host 847 build_os 848 build_vendor 849 build_cpu 850 build 851 target_alias 852 host_alias 853 build_alias 854 LIBS 855 ECHO_T 856 ECHO_N 857 ECHO_C 858 DEFS 859 mandir 860 localedir 861 libdir 862 psdir 863 pdfdir 864 dvidir 865 htmldir 866 infodir 867 docdir 868 oldincludedir 869 includedir 870 localstatedir 871 sharedstatedir 872 sysconfdir 873 datadir 874 datarootdir 875 libexecdir 876 sbindir 877 bindir 878 program_transform_name 879 prefix 880 exec_prefix 881 PACKAGE_URL 882 PACKAGE_BUGREPORT 883 PACKAGE_STRING 884 PACKAGE_VERSION 885 PACKAGE_TARNAME 886 PACKAGE_NAME 887 PATH_SEPARATOR 888 SHELL' 889 ac_subst_files='' 890 ac_user_opts=' 891 enable_option_checking 892 with_zlib 893 with_protoc 894 enable_dependency_tracking 895 enable_64bit_solaris 896 enable_shared 897 enable_static 898 with_pic 899 enable_fast_install 900 with_gnu_ld 901 enable_libtool_lock 902 ' 903 ac_precious_vars='build_alias 904 host_alias 905 target_alias 906 CC 907 CFLAGS 908 LDFLAGS 909 LIBS 910 CPPFLAGS 911 CXX 912 CXXFLAGS 913 CCC 914 CXXCPP' 915 ac_subdirs_all='gtest' 916 917 # Initialize some variables set by options. 918 ac_init_help= 919 ac_init_version=false 920 ac_unrecognized_opts= 921 ac_unrecognized_sep= 922 # The variables have the same names as the options, with 923 # dashes changed to underlines. 924 cache_file=/dev/null 925 exec_prefix=NONE 926 no_create= 927 no_recursion= 928 prefix=NONE 929 program_prefix=NONE 930 program_suffix=NONE 931 program_transform_name=s,x,x, 932 silent= 933 site= 934 srcdir= 935 verbose= 936 x_includes=NONE 937 x_libraries=NONE 938 939 # Installation directory options. 940 # These are left unexpanded so users can "make install exec_prefix=/foo" 941 # and all the variables that are supposed to be based on exec_prefix 942 # by default will actually change. 943 # Use braces instead of parens because sh, perl, etc. also accept them. 944 # (The list follows the same order as the GNU Coding Standards.) 945 bindir='${exec_prefix}/bin' 946 sbindir='${exec_prefix}/sbin' 947 libexecdir='${exec_prefix}/libexec' 948 datarootdir='${prefix}/share' 949 datadir='${datarootdir}' 950 sysconfdir='${prefix}/etc' 951 sharedstatedir='${prefix}/com' 952 localstatedir='${prefix}/var' 953 includedir='${prefix}/include' 954 oldincludedir='/usr/include' 955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 956 infodir='${datarootdir}/info' 957 htmldir='${docdir}' 958 dvidir='${docdir}' 959 pdfdir='${docdir}' 960 psdir='${docdir}' 961 libdir='${exec_prefix}/lib' 962 localedir='${datarootdir}/locale' 963 mandir='${datarootdir}/man' 964 965 ac_prev= 966 ac_dashdash= 967 for ac_option 968 do 969 # If the previous option needs an argument, assign it. 970 if test -n "$ac_prev"; then 971 eval $ac_prev=\$ac_option 972 ac_prev= 973 continue 974 fi 975 976 case $ac_option in 977 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 978 *=) ac_optarg= ;; 979 *) ac_optarg=yes ;; 980 esac 981 982 # Accept the important Cygnus configure options, so we can diagnose typos. 983 984 case $ac_dashdash$ac_option in 985 --) 986 ac_dashdash=yes ;; 987 988 -bindir | --bindir | --bindi | --bind | --bin | --bi) 989 ac_prev=bindir ;; 990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 991 bindir=$ac_optarg ;; 992 993 -build | --build | --buil | --bui | --bu) 994 ac_prev=build_alias ;; 995 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 996 build_alias=$ac_optarg ;; 997 998 -cache-file | --cache-file | --cache-fil | --cache-fi \ 999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1000 ac_prev=cache_file ;; 1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1003 cache_file=$ac_optarg ;; 1004 1005 --config-cache | -C) 1006 cache_file=config.cache ;; 1007 1008 -datadir | --datadir | --datadi | --datad) 1009 ac_prev=datadir ;; 1010 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1011 datadir=$ac_optarg ;; 1012 1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1014 | --dataroo | --dataro | --datar) 1015 ac_prev=datarootdir ;; 1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1018 datarootdir=$ac_optarg ;; 1019 1020 -disable-* | --disable-*) 1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1024 as_fn_error $? "invalid feature name: $ac_useropt" 1025 ac_useropt_orig=$ac_useropt 1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1027 case $ac_user_opts in 1028 *" 1029 "enable_$ac_useropt" 1030 "*) ;; 1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1032 ac_unrecognized_sep=', ';; 1033 esac 1034 eval enable_$ac_useropt=no ;; 1035 1036 -docdir | --docdir | --docdi | --doc | --do) 1037 ac_prev=docdir ;; 1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1039 docdir=$ac_optarg ;; 1040 1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1042 ac_prev=dvidir ;; 1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1044 dvidir=$ac_optarg ;; 1045 1046 -enable-* | --enable-*) 1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1048 # Reject names that are not valid shell variable names. 1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1050 as_fn_error $? "invalid feature name: $ac_useropt" 1051 ac_useropt_orig=$ac_useropt 1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1053 case $ac_user_opts in 1054 *" 1055 "enable_$ac_useropt" 1056 "*) ;; 1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1058 ac_unrecognized_sep=', ';; 1059 esac 1060 eval enable_$ac_useropt=\$ac_optarg ;; 1061 1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1064 | --exec | --exe | --ex) 1065 ac_prev=exec_prefix ;; 1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1068 | --exec=* | --exe=* | --ex=*) 1069 exec_prefix=$ac_optarg ;; 1070 1071 -gas | --gas | --ga | --g) 1072 # Obsolete; use --with-gas. 1073 with_gas=yes ;; 1074 1075 -help | --help | --hel | --he | -h) 1076 ac_init_help=long ;; 1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1078 ac_init_help=recursive ;; 1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1080 ac_init_help=short ;; 1081 1082 -host | --host | --hos | --ho) 1083 ac_prev=host_alias ;; 1084 -host=* | --host=* | --hos=* | --ho=*) 1085 host_alias=$ac_optarg ;; 1086 1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1088 ac_prev=htmldir ;; 1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1090 | --ht=*) 1091 htmldir=$ac_optarg ;; 1092 1093 -includedir | --includedir | --includedi | --included | --include \ 1094 | --includ | --inclu | --incl | --inc) 1095 ac_prev=includedir ;; 1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1097 | --includ=* | --inclu=* | --incl=* | --inc=*) 1098 includedir=$ac_optarg ;; 1099 1100 -infodir | --infodir | --infodi | --infod | --info | --inf) 1101 ac_prev=infodir ;; 1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1103 infodir=$ac_optarg ;; 1104 1105 -libdir | --libdir | --libdi | --libd) 1106 ac_prev=libdir ;; 1107 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1108 libdir=$ac_optarg ;; 1109 1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1111 | --libexe | --libex | --libe) 1112 ac_prev=libexecdir ;; 1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1114 | --libexe=* | --libex=* | --libe=*) 1115 libexecdir=$ac_optarg ;; 1116 1117 -localedir | --localedir | --localedi | --localed | --locale) 1118 ac_prev=localedir ;; 1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1120 localedir=$ac_optarg ;; 1121 1122 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1123 | --localstate | --localstat | --localsta | --localst | --locals) 1124 ac_prev=localstatedir ;; 1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1127 localstatedir=$ac_optarg ;; 1128 1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1130 ac_prev=mandir ;; 1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1132 mandir=$ac_optarg ;; 1133 1134 -nfp | --nfp | --nf) 1135 # Obsolete; use --without-fp. 1136 with_fp=no ;; 1137 1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1139 | --no-cr | --no-c | -n) 1140 no_create=yes ;; 1141 1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1144 no_recursion=yes ;; 1145 1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1148 | --oldin | --oldi | --old | --ol | --o) 1149 ac_prev=oldincludedir ;; 1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1153 oldincludedir=$ac_optarg ;; 1154 1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1156 ac_prev=prefix ;; 1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1158 prefix=$ac_optarg ;; 1159 1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1161 | --program-pre | --program-pr | --program-p) 1162 ac_prev=program_prefix ;; 1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1165 program_prefix=$ac_optarg ;; 1166 1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1168 | --program-suf | --program-su | --program-s) 1169 ac_prev=program_suffix ;; 1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1172 program_suffix=$ac_optarg ;; 1173 1174 -program-transform-name | --program-transform-name \ 1175 | --program-transform-nam | --program-transform-na \ 1176 | --program-transform-n | --program-transform- \ 1177 | --program-transform | --program-transfor \ 1178 | --program-transfo | --program-transf \ 1179 | --program-trans | --program-tran \ 1180 | --progr-tra | --program-tr | --program-t) 1181 ac_prev=program_transform_name ;; 1182 -program-transform-name=* | --program-transform-name=* \ 1183 | --program-transform-nam=* | --program-transform-na=* \ 1184 | --program-transform-n=* | --program-transform-=* \ 1185 | --program-transform=* | --program-transfor=* \ 1186 | --program-transfo=* | --program-transf=* \ 1187 | --program-trans=* | --program-tran=* \ 1188 | --progr-tra=* | --program-tr=* | --program-t=*) 1189 program_transform_name=$ac_optarg ;; 1190 1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1192 ac_prev=pdfdir ;; 1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1194 pdfdir=$ac_optarg ;; 1195 1196 -psdir | --psdir | --psdi | --psd | --ps) 1197 ac_prev=psdir ;; 1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1199 psdir=$ac_optarg ;; 1200 1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1202 | -silent | --silent | --silen | --sile | --sil) 1203 silent=yes ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: $ac_useropt" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259 "with_$ac_useropt" 1260 "*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=\$ac_optarg ;; 1265 1266 -without-* | --without-*) 1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1270 as_fn_error $? "invalid package name: $ac_useropt" 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275 "with_$ac_useropt" 1276 "*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=no ;; 1281 1282 --x) 1283 # Obsolete; use --with-x. 1284 with_x=yes ;; 1285 1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1287 | --x-incl | --x-inc | --x-in | --x-i) 1288 ac_prev=x_includes ;; 1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1291 x_includes=$ac_optarg ;; 1292 1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1295 ac_prev=x_libraries ;; 1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1298 x_libraries=$ac_optarg ;; 1299 1300 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1301 Try \`$0 --help' for more information" 1302 ;; 1303 1304 *=*) 1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1306 # Reject names that are not valid shell variable names. 1307 case $ac_envvar in #( 1308 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1310 esac 1311 eval $ac_envvar=\$ac_optarg 1312 export $ac_envvar ;; 1313 1314 *) 1315 # FIXME: should be removed in autoconf 3.0. 1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1320 ;; 1321 1322 esac 1323 done 1324 1325 if test -n "$ac_prev"; then 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1327 as_fn_error $? "missing argument to $ac_option" 1328 fi 1329 1330 if test -n "$ac_unrecognized_opts"; then 1331 case $enable_option_checking in 1332 no) ;; 1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1335 esac 1336 fi 1337 1338 # Check all directory arguments for consistency. 1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1340 datadir sysconfdir sharedstatedir localstatedir includedir \ 1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1342 libdir localedir mandir 1343 do 1344 eval ac_val=\$$ac_var 1345 # Remove trailing slashes. 1346 case $ac_val in 1347 */ ) 1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1349 eval $ac_var=\$ac_val;; 1350 esac 1351 # Be sure to have absolute directory names. 1352 case $ac_val in 1353 [\\/$]* | ?:[\\/]* ) continue;; 1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1355 esac 1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1357 done 1358 1359 # There might be people who depend on the old broken behavior: `$host' 1360 # used to hold the argument of --host etc. 1361 # FIXME: To remove some day. 1362 build=$build_alias 1363 host=$host_alias 1364 target=$target_alias 1365 1366 # FIXME: To remove some day. 1367 if test "x$host_alias" != x; then 1368 if test "x$build_alias" = x; then 1369 cross_compiling=maybe 1370 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1371 If a cross compiler is detected then cross compile mode will be used" >&2 1372 elif test "x$build_alias" != "x$host_alias"; then 1373 cross_compiling=yes 1374 fi 1375 fi 1376 1377 ac_tool_prefix= 1378 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1379 1380 test "$silent" = yes && exec 6>/dev/null 1381 1382 1383 ac_pwd=`pwd` && test -n "$ac_pwd" && 1384 ac_ls_di=`ls -di .` && 1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1386 as_fn_error $? "working directory cannot be determined" 1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1388 as_fn_error $? "pwd does not report name of working directory" 1389 1390 1391 # Find the source files, if location was not specified. 1392 if test -z "$srcdir"; then 1393 ac_srcdir_defaulted=yes 1394 # Try the directory containing this script, then the parent directory. 1395 ac_confdir=`$as_dirname -- "$as_myself" || 1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1397 X"$as_myself" : 'X\(//\)[^/]' \| \ 1398 X"$as_myself" : 'X\(//\)$' \| \ 1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1400 $as_echo X"$as_myself" | 1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1402 s//\1/ 1403 q 1404 } 1405 /^X\(\/\/\)[^/].*/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)$/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\).*/{ 1414 s//\1/ 1415 q 1416 } 1417 s/.*/./; q'` 1418 srcdir=$ac_confdir 1419 if test ! -r "$srcdir/$ac_unique_file"; then 1420 srcdir=.. 1421 fi 1422 else 1423 ac_srcdir_defaulted=no 1424 fi 1425 if test ! -r "$srcdir/$ac_unique_file"; then 1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1428 fi 1429 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1430 ac_abs_confdir=`( 1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1432 pwd)` 1433 # When building in place, set srcdir=. 1434 if test "$ac_abs_confdir" = "$ac_pwd"; then 1435 srcdir=. 1436 fi 1437 # Remove unnecessary trailing slashes from srcdir. 1438 # Double slashes in file names in object file debugging info 1439 # mess up M-x gdb in Emacs. 1440 case $srcdir in 1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1442 esac 1443 for ac_var in $ac_precious_vars; do 1444 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_env_${ac_var}_value=\$${ac_var} 1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1447 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1448 done 1449 1450 # 1451 # Report the --help message. 1452 # 1453 if test "$ac_init_help" = "long"; then 1454 # Omit some internal or obsolete options to make the list less imposing. 1455 # This message is too long to be a string in the A/UX 3.1 sh. 1456 cat <<_ACEOF 1457 \`configure' configures Protocol Buffers 2.3.0 to adapt to many kinds of systems. 1458 1459 Usage: $0 [OPTION]... [VAR=VALUE]... 1460 1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1462 VAR=VALUE. See below for descriptions of some of the useful variables. 1463 1464 Defaults for the options are specified in brackets. 1465 1466 Configuration: 1467 -h, --help display this help and exit 1468 --help=short display options specific to this package 1469 --help=recursive display the short help of all the included packages 1470 -V, --version display version information and exit 1471 -q, --quiet, --silent do not print \`checking ...' messages 1472 --cache-file=FILE cache test results in FILE [disabled] 1473 -C, --config-cache alias for \`--cache-file=config.cache' 1474 -n, --no-create do not create output files 1475 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1476 1477 Installation directories: 1478 --prefix=PREFIX install architecture-independent files in PREFIX 1479 [$ac_default_prefix] 1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1481 [PREFIX] 1482 1483 By default, \`make install' will install all the files in 1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1486 for instance \`--prefix=\$HOME'. 1487 1488 For better control, use the options below. 1489 1490 Fine tuning of the installation directories: 1491 --bindir=DIR user executables [EPREFIX/bin] 1492 --sbindir=DIR system admin executables [EPREFIX/sbin] 1493 --libexecdir=DIR program executables [EPREFIX/libexec] 1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1497 --libdir=DIR object code libraries [EPREFIX/lib] 1498 --includedir=DIR C header files [PREFIX/include] 1499 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1502 --infodir=DIR info documentation [DATAROOTDIR/info] 1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1504 --mandir=DIR man documentation [DATAROOTDIR/man] 1505 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf] 1506 --htmldir=DIR html documentation [DOCDIR] 1507 --dvidir=DIR dvi documentation [DOCDIR] 1508 --pdfdir=DIR pdf documentation [DOCDIR] 1509 --psdir=DIR ps documentation [DOCDIR] 1510 _ACEOF 1511 1512 cat <<\_ACEOF 1513 1514 Program names: 1515 --program-prefix=PREFIX prepend PREFIX to installed program names 1516 --program-suffix=SUFFIX append SUFFIX to installed program names 1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1518 1519 System types: 1520 --build=BUILD configure for building on BUILD [guessed] 1521 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1522 --target=TARGET configure for building compilers for TARGET [HOST] 1523 _ACEOF 1524 fi 1525 1526 if test -n "$ac_init_help"; then 1527 case $ac_init_help in 1528 short | recursive ) echo "Configuration of Protocol Buffers 2.3.0:";; 1529 esac 1530 cat <<\_ACEOF 1531 1532 Optional Features: 1533 --disable-option-checking ignore unrecognized --enable/--with options 1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1536 --disable-dependency-tracking speeds up one-time build 1537 --enable-dependency-tracking do not reject slow dependency extractors 1538 --disable-64bit-solaris Build 64 bit binary on Solaris [default=on] 1539 --enable-shared[=PKGS] build shared libraries [default=yes] 1540 --enable-static[=PKGS] build static libraries [default=yes] 1541 --enable-fast-install[=PKGS] 1542 optimize for fast installation [default=yes] 1543 --disable-libtool-lock avoid locking (might break parallel builds) 1544 1545 Optional Packages: 1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1548 --with-zlib include classes for streaming compressed data in and 1549 out [default=check] 1550 --with-protoc=COMMAND use the given protoc command instead of building a 1551 new one when building tests (useful for 1552 cross-compiling) 1553 --with-pic try to use only PIC/non-PIC objects [default=use 1554 both] 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 1557 Some influential environment variables: 1558 CC C compiler command 1559 CFLAGS C compiler flags 1560 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1561 nonstandard directory <lib dir> 1562 LIBS libraries to pass to the linker, e.g. -l<library> 1563 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1564 you have headers in a nonstandard directory <include dir> 1565 CXX C++ compiler command 1566 CXXFLAGS C++ compiler flags 1567 CXXCPP C++ preprocessor 1568 1569 Use these variables to override the choices made by `configure' or to help 1570 it to find libraries and programs with nonstandard names/locations. 1571 1572 Report bugs to <protobuf@googlegroups.com>. 1573 _ACEOF 1574 ac_status=$? 1575 fi 1576 1577 if test "$ac_init_help" = "recursive"; then 1578 # If there are subdirs, report their specific --help. 1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1580 test -d "$ac_dir" || 1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1582 continue 1583 ac_builddir=. 1584 1585 case "$ac_dir" in 1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) 1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1589 # A ".." for each directory in $ac_dir_suffix. 1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1591 case $ac_top_builddir_sub in 1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1594 esac ;; 1595 esac 1596 ac_abs_top_builddir=$ac_pwd 1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1598 # for backward compatibility: 1599 ac_top_builddir=$ac_top_build_prefix 1600 1601 case $srcdir in 1602 .) # We are building in place. 1603 ac_srcdir=. 1604 ac_top_srcdir=$ac_top_builddir_sub 1605 ac_abs_top_srcdir=$ac_pwd ;; 1606 [\\/]* | ?:[\\/]* ) # Absolute name. 1607 ac_srcdir=$srcdir$ac_dir_suffix; 1608 ac_top_srcdir=$srcdir 1609 ac_abs_top_srcdir=$srcdir ;; 1610 *) # Relative name. 1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1612 ac_top_srcdir=$ac_top_build_prefix$srcdir 1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1614 esac 1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1616 1617 cd "$ac_dir" || { ac_status=$?; continue; } 1618 # Check for guested configure. 1619 if test -f "$ac_srcdir/configure.gnu"; then 1620 echo && 1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1622 elif test -f "$ac_srcdir/configure"; then 1623 echo && 1624 $SHELL "$ac_srcdir/configure" --help=recursive 1625 else 1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1627 fi || ac_status=$? 1628 cd "$ac_pwd" || { ac_status=$?; break; } 1629 done 1630 fi 1631 1632 test -n "$ac_init_help" && exit $ac_status 1633 if $ac_init_version; then 1634 cat <<\_ACEOF 1635 Protocol Buffers configure 2.3.0 1636 generated by GNU Autoconf 2.68 1637 1638 Copyright (C) 2010 Free Software Foundation, Inc. 1639 This configure script is free software; the Free Software Foundation 1640 gives unlimited permission to copy, distribute and modify it. 1641 _ACEOF 1642 exit 1643 fi 1644 1645 ## ------------------------ ## 1646 ## Autoconf initialization. ## 1647 ## ------------------------ ## 1648 1649 # ac_fn_c_try_compile LINENO 1650 # -------------------------- 1651 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1652 ac_fn_c_try_compile () 1653 { 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 rm -f conftest.$ac_objext 1656 if { { ac_try="$ac_compile" 1657 case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660 esac 1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662 $as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_compile") 2>conftest.err 1664 ac_status=$? 1665 if test -s conftest.err; then 1666 grep -v '^ *+' conftest.err >conftest.er1 1667 cat conftest.er1 >&5 1668 mv -f conftest.er1 conftest.err 1669 fi 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; } && { 1672 test -z "$ac_c_werror_flag" || 1673 test ! -s conftest.err 1674 } && test -s conftest.$ac_objext; then : 1675 ac_retval=0 1676 else 1677 $as_echo "$as_me: failed program was:" >&5 1678 sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681 fi 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685 } # ac_fn_c_try_compile 1686 1687 # ac_fn_cxx_try_compile LINENO 1688 # ---------------------------- 1689 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1690 ac_fn_cxx_try_compile () 1691 { 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext 1694 if { { ac_try="$ac_compile" 1695 case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698 esac 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700 $as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_cxx_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext; then : 1713 ac_retval=0 1714 else 1715 $as_echo "$as_me: failed program was:" >&5 1716 sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719 fi 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723 } # ac_fn_cxx_try_compile 1724 1725 # ac_fn_cxx_try_cpp LINENO 1726 # ------------------------ 1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1728 ac_fn_cxx_try_cpp () 1729 { 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_cpp conftest.$ac_ext" 1732 case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735 esac 1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737 $as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } > conftest.i && { 1747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1748 test ! -s conftest.err 1749 }; then : 1750 ac_retval=0 1751 else 1752 $as_echo "$as_me: failed program was:" >&5 1753 sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=1 1756 fi 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760 } # ac_fn_cxx_try_cpp 1761 1762 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1763 # --------------------------------------------------------- 1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1765 # the include files in INCLUDES and setting the cache variable VAR 1766 # accordingly. 1767 ac_fn_cxx_check_header_mongrel () 1768 { 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 if eval \${$3+:} false; then : 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772 $as_echo_n "checking for $2... " >&6; } 1773 if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775 fi 1776 eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778 $as_echo "$ac_res" >&6; } 1779 else 1780 # Is the header compilable? 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1782 $as_echo_n "checking $2 usability... " >&6; } 1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784 /* end confdefs.h. */ 1785 $4 1786 #include <$2> 1787 _ACEOF 1788 if ac_fn_cxx_try_compile "$LINENO"; then : 1789 ac_header_compiler=yes 1790 else 1791 ac_header_compiler=no 1792 fi 1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1795 $as_echo "$ac_header_compiler" >&6; } 1796 1797 # Is the header present? 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1799 $as_echo_n "checking $2 presence... " >&6; } 1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801 /* end confdefs.h. */ 1802 #include <$2> 1803 _ACEOF 1804 if ac_fn_cxx_try_cpp "$LINENO"; then : 1805 ac_header_preproc=yes 1806 else 1807 ac_header_preproc=no 1808 fi 1809 rm -f conftest.err conftest.i conftest.$ac_ext 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1811 $as_echo "$ac_header_preproc" >&6; } 1812 1813 # So? What about this header? 1814 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1815 yes:no: ) 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1820 ;; 1821 no:yes:* ) 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1832 ( $as_echo "## ---------------------------------------- ## 1833 ## Report this to protobuf (at] googlegroups.com ## 1834 ## ---------------------------------------- ##" 1835 ) | sed "s/^/$as_me: WARNING: /" >&2 1836 ;; 1837 esac 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839 $as_echo_n "checking for $2... " >&6; } 1840 if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842 else 1843 eval "$3=\$ac_header_compiler" 1844 fi 1845 eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847 $as_echo "$ac_res" >&6; } 1848 fi 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 1851 } # ac_fn_cxx_check_header_mongrel 1852 1853 # ac_fn_cxx_try_run LINENO 1854 # ------------------------ 1855 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1856 # that executables *can* be run. 1857 ac_fn_cxx_try_run () 1858 { 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 if { { ac_try="$ac_link" 1861 case "(($ac_try" in 1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1863 *) ac_try_echo=$ac_try;; 1864 esac 1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1866 $as_echo "$ac_try_echo"; } >&5 1867 (eval "$ac_link") 2>&5 1868 ac_status=$? 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1870 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1871 { { case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874 esac 1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876 $as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_try") 2>&5 1878 ac_status=$? 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1880 test $ac_status = 0; }; }; then : 1881 ac_retval=0 1882 else 1883 $as_echo "$as_me: program exited with status $ac_status" >&5 1884 $as_echo "$as_me: failed program was:" >&5 1885 sed 's/^/| /' conftest.$ac_ext >&5 1886 1887 ac_retval=$ac_status 1888 fi 1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 as_fn_set_status $ac_retval 1892 1893 } # ac_fn_cxx_try_run 1894 1895 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1896 # --------------------------------------------------------- 1897 # Tests whether HEADER exists and can be compiled using the include files in 1898 # INCLUDES, setting the cache variable VAR accordingly. 1899 ac_fn_cxx_check_header_compile () 1900 { 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1903 $as_echo_n "checking for $2... " >&6; } 1904 if eval \${$3+:} false; then : 1905 $as_echo_n "(cached) " >&6 1906 else 1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1908 /* end confdefs.h. */ 1909 $4 1910 #include <$2> 1911 _ACEOF 1912 if ac_fn_cxx_try_compile "$LINENO"; then : 1913 eval "$3=yes" 1914 else 1915 eval "$3=no" 1916 fi 1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1918 fi 1919 eval ac_res=\$$3 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1921 $as_echo "$ac_res" >&6; } 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 1924 } # ac_fn_cxx_check_header_compile 1925 1926 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 1927 # ----------------------------------------------- 1928 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1929 # accordingly. 1930 ac_fn_cxx_check_decl () 1931 { 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 as_decl_name=`echo $2|sed 's/ *(.*//'` 1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1936 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1937 if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939 else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941 /* end confdefs.h. */ 1942 $4 1943 int 1944 main () 1945 { 1946 #ifndef $as_decl_name 1947 #ifdef __cplusplus 1948 (void) $as_decl_use; 1949 #else 1950 (void) $as_decl_name; 1951 #endif 1952 #endif 1953 1954 ; 1955 return 0; 1956 } 1957 _ACEOF 1958 if ac_fn_cxx_try_compile "$LINENO"; then : 1959 eval "$3=yes" 1960 else 1961 eval "$3=no" 1962 fi 1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1964 fi 1965 eval ac_res=\$$3 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967 $as_echo "$ac_res" >&6; } 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970 } # ac_fn_cxx_check_decl 1971 1972 # ac_fn_c_try_link LINENO 1973 # ----------------------- 1974 # Try to link conftest.$ac_ext, and return whether this succeeded. 1975 ac_fn_c_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_c_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; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016 } # ac_fn_c_try_link 2017 2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2019 # ------------------------------------------------------- 2020 # Tests whether HEADER exists and can be compiled using the include files in 2021 # INCLUDES, setting the cache variable VAR accordingly. 2022 ac_fn_c_check_header_compile () 2023 { 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026 $as_echo_n "checking for $2... " >&6; } 2027 if eval \${$3+:} false; then : 2028 $as_echo_n "(cached) " >&6 2029 else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031 /* end confdefs.h. */ 2032 $4 2033 #include <$2> 2034 _ACEOF 2035 if ac_fn_c_try_compile "$LINENO"; then : 2036 eval "$3=yes" 2037 else 2038 eval "$3=no" 2039 fi 2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041 fi 2042 eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044 $as_echo "$ac_res" >&6; } 2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2046 2047 } # ac_fn_c_check_header_compile 2048 2049 # ac_fn_c_check_func LINENO FUNC VAR 2050 # ---------------------------------- 2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2052 ac_fn_c_check_func () 2053 { 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2056 $as_echo_n "checking for $2... " >&6; } 2057 if eval \${$3+:} false; then : 2058 $as_echo_n "(cached) " >&6 2059 else 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061 /* end confdefs.h. */ 2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2064 #define $2 innocuous_$2 2065 2066 /* System header to define __stub macros and hopefully few prototypes, 2067 which can conflict with char $2 (); below. 2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2069 <limits.h> exists even on freestanding compilers. */ 2070 2071 #ifdef __STDC__ 2072 # include <limits.h> 2073 #else 2074 # include <assert.h> 2075 #endif 2076 2077 #undef $2 2078 2079 /* Override any GCC internal prototype to avoid an error. 2080 Use char because int might match the return type of a GCC 2081 builtin and then its argument prototype would still apply. */ 2082 #ifdef __cplusplus 2083 extern "C" 2084 #endif 2085 char $2 (); 2086 /* The GNU C library defines this for functions which it implements 2087 to always fail with ENOSYS. Some functions are actually named 2088 something starting with __ and the normal name is an alias. */ 2089 #if defined __stub_$2 || defined __stub___$2 2090 choke me 2091 #endif 2092 2093 int 2094 main () 2095 { 2096 return $2 (); 2097 ; 2098 return 0; 2099 } 2100 _ACEOF 2101 if ac_fn_c_try_link "$LINENO"; then : 2102 eval "$3=yes" 2103 else 2104 eval "$3=no" 2105 fi 2106 rm -f core conftest.err conftest.$ac_objext \ 2107 conftest$ac_exeext conftest.$ac_ext 2108 fi 2109 eval ac_res=\$$3 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2111 $as_echo "$ac_res" >&6; } 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2113 2114 } # ac_fn_c_check_func 2115 2116 # ac_fn_cxx_try_link LINENO 2117 # ------------------------- 2118 # Try to link conftest.$ac_ext, and return whether this succeeded. 2119 ac_fn_cxx_try_link () 2120 { 2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2122 rm -f conftest.$ac_objext conftest$ac_exeext 2123 if { { ac_try="$ac_link" 2124 case "(($ac_try" in 2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2126 *) ac_try_echo=$ac_try;; 2127 esac 2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2129 $as_echo "$ac_try_echo"; } >&5 2130 (eval "$ac_link") 2>conftest.err 2131 ac_status=$? 2132 if test -s conftest.err; then 2133 grep -v '^ *+' conftest.err >conftest.er1 2134 cat conftest.er1 >&5 2135 mv -f conftest.er1 conftest.err 2136 fi 2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2138 test $ac_status = 0; } && { 2139 test -z "$ac_cxx_werror_flag" || 2140 test ! -s conftest.err 2141 } && test -s conftest$ac_exeext && { 2142 test "$cross_compiling" = yes || 2143 $as_test_x conftest$ac_exeext 2144 }; then : 2145 ac_retval=0 2146 else 2147 $as_echo "$as_me: failed program was:" >&5 2148 sed 's/^/| /' conftest.$ac_ext >&5 2149 2150 ac_retval=1 2151 fi 2152 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2153 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2154 # interfere with the next link command; also delete a directory that is 2155 # left behind by Apple's compiler. We do this before executing the actions. 2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2158 as_fn_set_status $ac_retval 2159 2160 } # ac_fn_cxx_try_link 2161 2162 # ac_fn_cxx_check_func LINENO FUNC VAR 2163 # ------------------------------------ 2164 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2165 ac_fn_cxx_check_func () 2166 { 2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2169 $as_echo_n "checking for $2... " >&6; } 2170 if eval \${$3+:} false; then : 2171 $as_echo_n "(cached) " >&6 2172 else 2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174 /* end confdefs.h. */ 2175 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2176 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2177 #define $2 innocuous_$2 2178 2179 /* System header to define __stub macros and hopefully few prototypes, 2180 which can conflict with char $2 (); below. 2181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2182 <limits.h> exists even on freestanding compilers. */ 2183 2184 #ifdef __STDC__ 2185 # include <limits.h> 2186 #else 2187 # include <assert.h> 2188 #endif 2189 2190 #undef $2 2191 2192 /* Override any GCC internal prototype to avoid an error. 2193 Use char because int might match the return type of a GCC 2194 builtin and then its argument prototype would still apply. */ 2195 #ifdef __cplusplus 2196 extern "C" 2197 #endif 2198 char $2 (); 2199 /* The GNU C library defines this for functions which it implements 2200 to always fail with ENOSYS. Some functions are actually named 2201 something starting with __ and the normal name is an alias. */ 2202 #if defined __stub_$2 || defined __stub___$2 2203 choke me 2204 #endif 2205 2206 int 2207 main () 2208 { 2209 return $2 (); 2210 ; 2211 return 0; 2212 } 2213 _ACEOF 2214 if ac_fn_cxx_try_link "$LINENO"; then : 2215 eval "$3=yes" 2216 else 2217 eval "$3=no" 2218 fi 2219 rm -f core conftest.err conftest.$ac_objext \ 2220 conftest$ac_exeext conftest.$ac_ext 2221 fi 2222 eval ac_res=\$$3 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2224 $as_echo "$ac_res" >&6; } 2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2226 2227 } # ac_fn_cxx_check_func 2228 cat >config.log <<_ACEOF 2229 This file contains any messages produced by compilers while 2230 running configure, to aid debugging if configure makes a mistake. 2231 2232 It was created by Protocol Buffers $as_me 2.3.0, which was 2233 generated by GNU Autoconf 2.68. Invocation command line was 2234 2235 $ $0 $@ 2236 2237 _ACEOF 2238 exec 5>>config.log 2239 { 2240 cat <<_ASUNAME 2241 ## --------- ## 2242 ## Platform. ## 2243 ## --------- ## 2244 2245 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2246 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2247 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2248 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2249 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2250 2251 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2252 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2253 2254 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2255 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2256 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2257 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2258 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2259 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2260 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2261 2262 _ASUNAME 2263 2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2265 for as_dir in $PATH 2266 do 2267 IFS=$as_save_IFS 2268 test -z "$as_dir" && as_dir=. 2269 $as_echo "PATH: $as_dir" 2270 done 2271 IFS=$as_save_IFS 2272 2273 } >&5 2274 2275 cat >&5 <<_ACEOF 2276 2277 2278 ## ----------- ## 2279 ## Core tests. ## 2280 ## ----------- ## 2281 2282 _ACEOF 2283 2284 2285 # Keep a trace of the command line. 2286 # Strip out --no-create and --no-recursion so they do not pile up. 2287 # Strip out --silent because we don't want to record it for future runs. 2288 # Also quote any args containing shell meta-characters. 2289 # Make two passes to allow for proper duplicate-argument suppression. 2290 ac_configure_args= 2291 ac_configure_args0= 2292 ac_configure_args1= 2293 ac_must_keep_next=false 2294 for ac_pass in 1 2 2295 do 2296 for ac_arg 2297 do 2298 case $ac_arg in 2299 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2301 | -silent | --silent | --silen | --sile | --sil) 2302 continue ;; 2303 *\'*) 2304 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2305 esac 2306 case $ac_pass in 2307 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2308 2) 2309 as_fn_append ac_configure_args1 " '$ac_arg'" 2310 if test $ac_must_keep_next = true; then 2311 ac_must_keep_next=false # Got value, back to normal. 2312 else 2313 case $ac_arg in 2314 *=* | --config-cache | -C | -disable-* | --disable-* \ 2315 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2316 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2317 | -with-* | --with-* | -without-* | --without-* | --x) 2318 case "$ac_configure_args0 " in 2319 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2320 esac 2321 ;; 2322 -* ) ac_must_keep_next=true ;; 2323 esac 2324 fi 2325 as_fn_append ac_configure_args " '$ac_arg'" 2326 ;; 2327 esac 2328 done 2329 done 2330 { ac_configure_args0=; unset ac_configure_args0;} 2331 { ac_configure_args1=; unset ac_configure_args1;} 2332 2333 # When interrupted or exit'd, cleanup temporary files, and complete 2334 # config.log. We remove comments because anyway the quotes in there 2335 # would cause problems or look ugly. 2336 # WARNING: Use '\'' to represent an apostrophe within the trap. 2337 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2338 trap 'exit_status=$? 2339 # Save into config.log some information that might help in debugging. 2340 { 2341 echo 2342 2343 $as_echo "## ---------------- ## 2344 ## Cache variables. ## 2345 ## ---------------- ##" 2346 echo 2347 # The following way of writing the cache mishandles newlines in values, 2348 ( 2349 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2350 eval ac_val=\$$ac_var 2351 case $ac_val in #( 2352 *${as_nl}*) 2353 case $ac_var in #( 2354 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2355 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2356 esac 2357 case $ac_var in #( 2358 _ | IFS | as_nl) ;; #( 2359 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2360 *) { eval $ac_var=; unset $ac_var;} ;; 2361 esac ;; 2362 esac 2363 done 2364 (set) 2>&1 | 2365 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2366 *${as_nl}ac_space=\ *) 2367 sed -n \ 2368 "s/'\''/'\''\\\\'\'''\''/g; 2369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2370 ;; #( 2371 *) 2372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2373 ;; 2374 esac | 2375 sort 2376 ) 2377 echo 2378 2379 $as_echo "## ----------------- ## 2380 ## Output variables. ## 2381 ## ----------------- ##" 2382 echo 2383 for ac_var in $ac_subst_vars 2384 do 2385 eval ac_val=\$$ac_var 2386 case $ac_val in 2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2388 esac 2389 $as_echo "$ac_var='\''$ac_val'\''" 2390 done | sort 2391 echo 2392 2393 if test -n "$ac_subst_files"; then 2394 $as_echo "## ------------------- ## 2395 ## File substitutions. ## 2396 ## ------------------- ##" 2397 echo 2398 for ac_var in $ac_subst_files 2399 do 2400 eval ac_val=\$$ac_var 2401 case $ac_val in 2402 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2403 esac 2404 $as_echo "$ac_var='\''$ac_val'\''" 2405 done | sort 2406 echo 2407 fi 2408 2409 if test -s confdefs.h; then 2410 $as_echo "## ----------- ## 2411 ## confdefs.h. ## 2412 ## ----------- ##" 2413 echo 2414 cat confdefs.h 2415 echo 2416 fi 2417 test "$ac_signal" != 0 && 2418 $as_echo "$as_me: caught signal $ac_signal" 2419 $as_echo "$as_me: exit $exit_status" 2420 } >&5 2421 rm -f core *.core core.conftest.* && 2422 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2423 exit $exit_status 2424 ' 0 2425 for ac_signal in 1 2 13 15; do 2426 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2427 done 2428 ac_signal=0 2429 2430 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2431 rm -f -r conftest* confdefs.h 2432 2433 $as_echo "/* confdefs.h */" > confdefs.h 2434 2435 # Predefined preprocessor variables. 2436 2437 cat >>confdefs.h <<_ACEOF 2438 #define PACKAGE_NAME "$PACKAGE_NAME" 2439 _ACEOF 2440 2441 cat >>confdefs.h <<_ACEOF 2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2443 _ACEOF 2444 2445 cat >>confdefs.h <<_ACEOF 2446 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2447 _ACEOF 2448 2449 cat >>confdefs.h <<_ACEOF 2450 #define PACKAGE_STRING "$PACKAGE_STRING" 2451 _ACEOF 2452 2453 cat >>confdefs.h <<_ACEOF 2454 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2455 _ACEOF 2456 2457 cat >>confdefs.h <<_ACEOF 2458 #define PACKAGE_URL "$PACKAGE_URL" 2459 _ACEOF 2460 2461 2462 # Let the site file select an alternate cache file if it wants to. 2463 # Prefer an explicitly selected file to automatically selected ones. 2464 ac_site_file1=NONE 2465 ac_site_file2=NONE 2466 if test -n "$CONFIG_SITE"; then 2467 # We do not want a PATH search for config.site. 2468 case $CONFIG_SITE in #(( 2469 -*) ac_site_file1=./$CONFIG_SITE;; 2470 */*) ac_site_file1=$CONFIG_SITE;; 2471 *) ac_site_file1=./$CONFIG_SITE;; 2472 esac 2473 elif test "x$prefix" != xNONE; then 2474 ac_site_file1=$prefix/share/config.site 2475 ac_site_file2=$prefix/etc/config.site 2476 else 2477 ac_site_file1=$ac_default_prefix/share/config.site 2478 ac_site_file2=$ac_default_prefix/etc/config.site 2479 fi 2480 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2481 do 2482 test "x$ac_site_file" = xNONE && continue 2483 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2485 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2486 sed 's/^/| /' "$ac_site_file" >&5 2487 . "$ac_site_file" \ 2488 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2490 as_fn_error $? "failed to load site script $ac_site_file 2491 See \`config.log' for more details" "$LINENO" 5; } 2492 fi 2493 done 2494 2495 if test -r "$cache_file"; then 2496 # Some versions of bash will fail to source /dev/null (special files 2497 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2498 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2500 $as_echo "$as_me: loading cache $cache_file" >&6;} 2501 case $cache_file in 2502 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2503 *) . "./$cache_file";; 2504 esac 2505 fi 2506 else 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2508 $as_echo "$as_me: creating cache $cache_file" >&6;} 2509 >$cache_file 2510 fi 2511 2512 # Check that the precious variables saved in the cache have kept the same 2513 # value. 2514 ac_cache_corrupted=false 2515 for ac_var in $ac_precious_vars; do 2516 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2517 eval ac_new_set=\$ac_env_${ac_var}_set 2518 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2519 eval ac_new_val=\$ac_env_${ac_var}_value 2520 case $ac_old_set,$ac_new_set in 2521 set,) 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2523 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2524 ac_cache_corrupted=: ;; 2525 ,set) 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2527 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2528 ac_cache_corrupted=: ;; 2529 ,);; 2530 *) 2531 if test "x$ac_old_val" != "x$ac_new_val"; then 2532 # differences in whitespace do not lead to failure. 2533 ac_old_val_w=`echo x $ac_old_val` 2534 ac_new_val_w=`echo x $ac_new_val` 2535 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2537 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2538 ac_cache_corrupted=: 2539 else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2541 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2542 eval $ac_var=\$ac_old_val 2543 fi 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2545 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2547 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2548 fi;; 2549 esac 2550 # Pass precious variables to config.status. 2551 if test "$ac_new_set" = set; then 2552 case $ac_new_val in 2553 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2554 *) ac_arg=$ac_var=$ac_new_val ;; 2555 esac 2556 case " $ac_configure_args " in 2557 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2558 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2559 esac 2560 fi 2561 done 2562 if $ac_cache_corrupted; then 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2566 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2567 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2568 fi 2569 ## -------------------- ## 2570 ## Main body of script. ## 2571 ## -------------------- ## 2572 2573 ac_ext=c 2574 ac_cpp='$CPP $CPPFLAGS' 2575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2577 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2578 2579 2580 2581 2582 2583 ac_config_headers="$ac_config_headers config.h" 2584 2585 2586 2587 # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily 2588 # the best choice for libprotobuf. 2589 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then : 2590 CFLAGS="" 2591 fi 2592 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 2593 CXXFLAGS="" 2594 fi 2595 2596 ac_aux_dir= 2597 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2598 if test -f "$ac_dir/install-sh"; then 2599 ac_aux_dir=$ac_dir 2600 ac_install_sh="$ac_aux_dir/install-sh -c" 2601 break 2602 elif test -f "$ac_dir/install.sh"; then 2603 ac_aux_dir=$ac_dir 2604 ac_install_sh="$ac_aux_dir/install.sh -c" 2605 break 2606 elif test -f "$ac_dir/shtool"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/shtool install -c" 2609 break 2610 fi 2611 done 2612 if test -z "$ac_aux_dir"; then 2613 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2614 fi 2615 2616 # These three variables are undocumented and unsupported, 2617 # and are intended to be withdrawn in a future Autoconf release. 2618 # They can cause serious problems if a builder's source tree is in a directory 2619 # whose full name contains unusual characters. 2620 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2621 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2622 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2623 2624 2625 # Make sure we can run config.sub. 2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2627 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2628 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2630 $as_echo_n "checking build system type... " >&6; } 2631 if ${ac_cv_build+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633 else 2634 ac_build_alias=$build_alias 2635 test "x$ac_build_alias" = x && 2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2637 test "x$ac_build_alias" = x && 2638 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2640 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2641 2642 fi 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2644 $as_echo "$ac_cv_build" >&6; } 2645 case $ac_cv_build in 2646 *-*-*) ;; 2647 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2648 esac 2649 build=$ac_cv_build 2650 ac_save_IFS=$IFS; IFS='-' 2651 set x $ac_cv_build 2652 shift 2653 build_cpu=$1 2654 build_vendor=$2 2655 shift; shift 2656 # Remember, the first character of IFS is used to create $*, 2657 # except with old shells: 2658 build_os=$* 2659 IFS=$ac_save_IFS 2660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2661 2662 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2664 $as_echo_n "checking host system type... " >&6; } 2665 if ${ac_cv_host+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667 else 2668 if test "x$host_alias" = x; then 2669 ac_cv_host=$ac_cv_build 2670 else 2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2672 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2673 fi 2674 2675 fi 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2677 $as_echo "$ac_cv_host" >&6; } 2678 case $ac_cv_host in 2679 *-*-*) ;; 2680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2681 esac 2682 host=$ac_cv_host 2683 ac_save_IFS=$IFS; IFS='-' 2684 set x $ac_cv_host 2685 shift 2686 host_cpu=$1 2687 host_vendor=$2 2688 shift; shift 2689 # Remember, the first character of IFS is used to create $*, 2690 # except with old shells: 2691 host_os=$* 2692 IFS=$ac_save_IFS 2693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2694 2695 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2697 $as_echo_n "checking target system type... " >&6; } 2698 if ${ac_cv_target+:} false; then : 2699 $as_echo_n "(cached) " >&6 2700 else 2701 if test "x$target_alias" = x; then 2702 ac_cv_target=$ac_cv_host 2703 else 2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2706 fi 2707 2708 fi 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2710 $as_echo "$ac_cv_target" >&6; } 2711 case $ac_cv_target in 2712 *-*-*) ;; 2713 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2714 esac 2715 target=$ac_cv_target 2716 ac_save_IFS=$IFS; IFS='-' 2717 set x $ac_cv_target 2718 shift 2719 target_cpu=$1 2720 target_vendor=$2 2721 shift; shift 2722 # Remember, the first character of IFS is used to create $*, 2723 # except with old shells: 2724 target_os=$* 2725 IFS=$ac_save_IFS 2726 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2727 2728 2729 # The aliases save the names the user supplied, while $host etc. 2730 # will get canonicalized. 2731 test -n "$target_alias" && 2732 test "$program_prefix$program_suffix$program_transform_name" = \ 2733 NONENONEs,x,x, && 2734 program_prefix=${target_alias}- 2735 2736 am__api_version='1.11' 2737 2738 # Find a good install program. We prefer a C program (faster), 2739 # so one script is as good as another. But avoid the broken or 2740 # incompatible versions: 2741 # SysV /etc/install, /usr/sbin/install 2742 # SunOS /usr/etc/install 2743 # IRIX /sbin/install 2744 # AIX /bin/install 2745 # AmigaOS /C/install, which installs bootblocks on floppy discs 2746 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2749 # OS/2's system install, which has a completely different semantic 2750 # ./install, which can be erroneously created by make from ./install.sh. 2751 # Reject install programs that cannot install multiple files. 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2753 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2754 if test -z "$INSTALL"; then 2755 if ${ac_cv_path_install+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757 else 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759 for as_dir in $PATH 2760 do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 # Account for people who put trailing slashes in PATH elements. 2764 case $as_dir/ in #(( 2765 ./ | .// | /[cC]/* | \ 2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2768 /usr/ucb/* ) ;; 2769 *) 2770 # OSF1 and SCO ODT 3.0 have their own names for install. 2771 # Don't use installbsd from OSF since it installs stuff as root 2772 # by default. 2773 for ac_prog in ginstall scoinst install; do 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2776 if test $ac_prog = install && 2777 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2778 # AIX install. It has an incompatible calling convention. 2779 : 2780 elif test $ac_prog = install && 2781 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2782 # program-specific install script used by HP pwplus--don't use. 2783 : 2784 else 2785 rm -rf conftest.one conftest.two conftest.dir 2786 echo one > conftest.one 2787 echo two > conftest.two 2788 mkdir conftest.dir 2789 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2790 test -s conftest.one && test -s conftest.two && 2791 test -s conftest.dir/conftest.one && 2792 test -s conftest.dir/conftest.two 2793 then 2794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2795 break 3 2796 fi 2797 fi 2798 fi 2799 done 2800 done 2801 ;; 2802 esac 2803 2804 done 2805 IFS=$as_save_IFS 2806 2807 rm -rf conftest.one conftest.two conftest.dir 2808 2809 fi 2810 if test "${ac_cv_path_install+set}" = set; then 2811 INSTALL=$ac_cv_path_install 2812 else 2813 # As a last resort, use the slow shell script. Don't cache a 2814 # value for INSTALL within a source directory, because that will 2815 # break other packages using the cache if that directory is 2816 # removed, or if the value is a relative name. 2817 INSTALL=$ac_install_sh 2818 fi 2819 fi 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2821 $as_echo "$INSTALL" >&6; } 2822 2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2824 # It thinks the first close brace ends the variable substitution. 2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2826 2827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2828 2829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2830 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2832 $as_echo_n "checking whether build environment is sane... " >&6; } 2833 # Just in case 2834 sleep 1 2835 echo timestamp > conftest.file 2836 # Reject unsafe characters in $srcdir or the absolute working directory 2837 # name. Accept space and tab only in the latter. 2838 am_lf=' 2839 ' 2840 case `pwd` in 2841 *[\\\"\#\$\&\'\`$am_lf]*) 2842 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2843 esac 2844 case $srcdir in 2845 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2846 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2847 esac 2848 2849 # Do `set' in a subshell so we don't clobber the current shell's 2850 # arguments. Must try -L first in case configure is actually a 2851 # symlink; some systems play weird games with the mod time of symlinks 2852 # (eg FreeBSD returns the mod time of the symlink's containing 2853 # directory). 2854 if ( 2855 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2856 if test "$*" = "X"; then 2857 # -L didn't work. 2858 set X `ls -t "$srcdir/configure" conftest.file` 2859 fi 2860 rm -f conftest.file 2861 if test "$*" != "X $srcdir/configure conftest.file" \ 2862 && test "$*" != "X conftest.file $srcdir/configure"; then 2863 2864 # If neither matched, then we have a broken ls. This can happen 2865 # if, for instance, CONFIG_SHELL is bash and it inherits a 2866 # broken ls alias from the environment. This has actually 2867 # happened. Such a system could not be considered "sane". 2868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2869 alias in your environment" "$LINENO" 5 2870 fi 2871 2872 test "$2" = conftest.file 2873 ) 2874 then 2875 # Ok. 2876 : 2877 else 2878 as_fn_error $? "newly created file is older than distributed files! 2879 Check your system clock" "$LINENO" 5 2880 fi 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2882 $as_echo "yes" >&6; } 2883 test "$program_prefix" != NONE && 2884 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2885 # Use a double $ so make ignores it. 2886 test "$program_suffix" != NONE && 2887 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2888 # Double any \ or $. 2889 # By default was `s,x,x', remove it if useless. 2890 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2891 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2892 2893 # expand $ac_aux_dir to an absolute path 2894 am_aux_dir=`cd $ac_aux_dir && pwd` 2895 2896 if test x"${MISSING+set}" != xset; then 2897 case $am_aux_dir in 2898 *\ * | *\ *) 2899 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2900 *) 2901 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2902 esac 2903 fi 2904 # Use eval to expand $SHELL 2905 if eval "$MISSING --run true"; then 2906 am_missing_run="$MISSING --run " 2907 else 2908 am_missing_run= 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2910 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2911 fi 2912 2913 if test x"${install_sh}" != xset; then 2914 case $am_aux_dir in 2915 *\ * | *\ *) 2916 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2917 *) 2918 install_sh="\${SHELL} $am_aux_dir/install-sh" 2919 esac 2920 fi 2921 2922 # Installed binaries are usually stripped using `strip' when the user 2923 # run `make install-strip'. However `strip' might not be the right 2924 # tool to use in cross-compilation environments, therefore Automake 2925 # will honor the `STRIP' environment variable to overrule this program. 2926 if test "$cross_compiling" != no; then 2927 if test -n "$ac_tool_prefix"; then 2928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2929 set dummy ${ac_tool_prefix}strip; ac_word=$2 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931 $as_echo_n "checking for $ac_word... " >&6; } 2932 if ${ac_cv_prog_STRIP+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934 else 2935 if test -n "$STRIP"; then 2936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2937 else 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939 for as_dir in $PATH 2940 do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2945 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949 done 2950 done 2951 IFS=$as_save_IFS 2952 2953 fi 2954 fi 2955 STRIP=$ac_cv_prog_STRIP 2956 if test -n "$STRIP"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2958 $as_echo "$STRIP" >&6; } 2959 else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961 $as_echo "no" >&6; } 2962 fi 2963 2964 2965 fi 2966 if test -z "$ac_cv_prog_STRIP"; then 2967 ac_ct_STRIP=$STRIP 2968 # Extract the first word of "strip", so it can be a program name with args. 2969 set dummy strip; ac_word=$2 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971 $as_echo_n "checking for $ac_word... " >&6; } 2972 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974 else 2975 if test -n "$ac_ct_STRIP"; then 2976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2977 else 2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979 for as_dir in $PATH 2980 do 2981 IFS=$as_save_IFS 2982 test -z "$as_dir" && as_dir=. 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2985 ac_cv_prog_ac_ct_STRIP="strip" 2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2987 break 2 2988 fi 2989 done 2990 done 2991 IFS=$as_save_IFS 2992 2993 fi 2994 fi 2995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2996 if test -n "$ac_ct_STRIP"; then 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2998 $as_echo "$ac_ct_STRIP" >&6; } 2999 else 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3001 $as_echo "no" >&6; } 3002 fi 3003 3004 if test "x$ac_ct_STRIP" = x; then 3005 STRIP=":" 3006 else 3007 case $cross_compiling:$ac_tool_warned in 3008 yes:) 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3011 ac_tool_warned=yes ;; 3012 esac 3013 STRIP=$ac_ct_STRIP 3014 fi 3015 else 3016 STRIP="$ac_cv_prog_STRIP" 3017 fi 3018 3019 fi 3020 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3021 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3023 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3024 if test -z "$MKDIR_P"; then 3025 if ${ac_cv_path_mkdir+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027 else 3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3030 do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_prog in mkdir gmkdir; do 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3036 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3037 'mkdir (GNU coreutils) '* | \ 3038 'mkdir (coreutils) '* | \ 3039 'mkdir (fileutils) '4.1*) 3040 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3041 break 3;; 3042 esac 3043 done 3044 done 3045 done 3046 IFS=$as_save_IFS 3047 3048 fi 3049 3050 test -d ./--version && rmdir ./--version 3051 if test "${ac_cv_path_mkdir+set}" = set; then 3052 MKDIR_P="$ac_cv_path_mkdir -p" 3053 else 3054 # As a last resort, use the slow shell script. Don't cache a 3055 # value for MKDIR_P within a source directory, because that will 3056 # break other packages using the cache if that directory is 3057 # removed, or if the value is a relative name. 3058 MKDIR_P="$ac_install_sh -d" 3059 fi 3060 fi 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3062 $as_echo "$MKDIR_P" >&6; } 3063 3064 mkdir_p="$MKDIR_P" 3065 case $mkdir_p in 3066 [\\/$]* | ?:[\\/]*) ;; 3067 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3068 esac 3069 3070 for ac_prog in gawk mawk nawk awk 3071 do 3072 # Extract the first word of "$ac_prog", so it can be a program name with args. 3073 set dummy $ac_prog; ac_word=$2 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3075 $as_echo_n "checking for $ac_word... " >&6; } 3076 if ${ac_cv_prog_AWK+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078 else 3079 if test -n "$AWK"; then 3080 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3081 else 3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3083 for as_dir in $PATH 3084 do 3085 IFS=$as_save_IFS 3086 test -z "$as_dir" && as_dir=. 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3089 ac_cv_prog_AWK="$ac_prog" 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093 done 3094 done 3095 IFS=$as_save_IFS 3096 3097 fi 3098 fi 3099 AWK=$ac_cv_prog_AWK 3100 if test -n "$AWK"; then 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3102 $as_echo "$AWK" >&6; } 3103 else 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105 $as_echo "no" >&6; } 3106 fi 3107 3108 3109 test -n "$AWK" && break 3110 done 3111 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3113 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3114 set x ${MAKE-make} 3115 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3116 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118 else 3119 cat >conftest.make <<\_ACEOF 3120 SHELL = /bin/sh 3121 all: 3122 @echo '@@@%%%=$(MAKE)=@@@%%%' 3123 _ACEOF 3124 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3125 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3126 *@@@%%%=?*=@@@%%%*) 3127 eval ac_cv_prog_make_${ac_make}_set=yes;; 3128 *) 3129 eval ac_cv_prog_make_${ac_make}_set=no;; 3130 esac 3131 rm -f conftest.make 3132 fi 3133 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3135 $as_echo "yes" >&6; } 3136 SET_MAKE= 3137 else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139 $as_echo "no" >&6; } 3140 SET_MAKE="MAKE=${MAKE-make}" 3141 fi 3142 3143 rm -rf .tst 2>/dev/null 3144 mkdir .tst 2>/dev/null 3145 if test -d .tst; then 3146 am__leading_dot=. 3147 else 3148 am__leading_dot=_ 3149 fi 3150 rmdir .tst 2>/dev/null 3151 3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3154 # is not polluted with repeated "-I." 3155 am__isrc=' -I$(srcdir)' 3156 # test to see if srcdir already configured 3157 if test -f $srcdir/config.status; then 3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3159 fi 3160 fi 3161 3162 # test whether we have cygpath 3163 if test -z "$CYGPATH_W"; then 3164 if (cygpath --version) >/dev/null 2>/dev/null; then 3165 CYGPATH_W='cygpath -w' 3166 else 3167 CYGPATH_W=echo 3168 fi 3169 fi 3170 3171 3172 # Define the identity of the package. 3173 PACKAGE='protobuf' 3174 VERSION='2.3.0' 3175 3176 3177 cat >>confdefs.h <<_ACEOF 3178 #define PACKAGE "$PACKAGE" 3179 _ACEOF 3180 3181 3182 cat >>confdefs.h <<_ACEOF 3183 #define VERSION "$VERSION" 3184 _ACEOF 3185 3186 # Some tools Automake needs. 3187 3188 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3189 3190 3191 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3192 3193 3194 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3195 3196 3197 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3198 3199 3200 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3201 3202 # We need awk for the "check" target. The system "awk" is bad on 3203 # some platforms. 3204 # Always define AMTAR for backward compatibility. Yes, it's still used 3205 # in the wild :-( We should find a proper way to deprecate it ... 3206 AMTAR='$${TAR-tar}' 3207 3208 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3209 3210 3211 3212 3213 3214 3215 3216 # Check whether --with-zlib was given. 3217 if test "${with_zlib+set}" = set; then : 3218 withval=$with_zlib; 3219 else 3220 with_zlib=check 3221 fi 3222 3223 3224 3225 # Check whether --with-protoc was given. 3226 if test "${with_protoc+set}" = set; then : 3227 withval=$with_protoc; 3228 else 3229 with_protoc=no 3230 fi 3231 3232 3233 # Checks for programs. 3234 ac_ext=c 3235 ac_cpp='$CPP $CPPFLAGS' 3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3239 if test -n "$ac_tool_prefix"; then 3240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3241 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3243 $as_echo_n "checking for $ac_word... " >&6; } 3244 if ${ac_cv_prog_CC+:} false; then : 3245 $as_echo_n "(cached) " >&6 3246 else 3247 if test -n "$CC"; then 3248 ac_cv_prog_CC="$CC" # Let the user override the test. 3249 else 3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251 for as_dir in $PATH 3252 do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3257 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3259 break 2 3260 fi 3261 done 3262 done 3263 IFS=$as_save_IFS 3264 3265 fi 3266 fi 3267 CC=$ac_cv_prog_CC 3268 if test -n "$CC"; then 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3270 $as_echo "$CC" >&6; } 3271 else 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3273 $as_echo "no" >&6; } 3274 fi 3275 3276 3277 fi 3278 if test -z "$ac_cv_prog_CC"; then 3279 ac_ct_CC=$CC 3280 # Extract the first word of "gcc", so it can be a program name with args. 3281 set dummy gcc; ac_word=$2 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283 $as_echo_n "checking for $ac_word... " >&6; } 3284 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286 else 3287 if test -n "$ac_ct_CC"; then 3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3289 else 3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291 for as_dir in $PATH 3292 do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3297 ac_cv_prog_ac_ct_CC="gcc" 3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3299 break 2 3300 fi 3301 done 3302 done 3303 IFS=$as_save_IFS 3304 3305 fi 3306 fi 3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3308 if test -n "$ac_ct_CC"; then 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3310 $as_echo "$ac_ct_CC" >&6; } 3311 else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313 $as_echo "no" >&6; } 3314 fi 3315 3316 if test "x$ac_ct_CC" = x; then 3317 CC="" 3318 else 3319 case $cross_compiling:$ac_tool_warned in 3320 yes:) 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3323 ac_tool_warned=yes ;; 3324 esac 3325 CC=$ac_ct_CC 3326 fi 3327 else 3328 CC="$ac_cv_prog_CC" 3329 fi 3330 3331 if test -z "$CC"; then 3332 if test -n "$ac_tool_prefix"; then 3333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3334 set dummy ${ac_tool_prefix}cc; ac_word=$2 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3336 $as_echo_n "checking for $ac_word... " >&6; } 3337 if ${ac_cv_prog_CC+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339 else 3340 if test -n "$CC"; then 3341 ac_cv_prog_CC="$CC" # Let the user override the test. 3342 else 3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3344 for as_dir in $PATH 3345 do 3346 IFS=$as_save_IFS 3347 test -z "$as_dir" && as_dir=. 3348 for ac_exec_ext in '' $ac_executable_extensions; do 3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3350 ac_cv_prog_CC="${ac_tool_prefix}cc" 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3352 break 2 3353 fi 3354 done 3355 done 3356 IFS=$as_save_IFS 3357 3358 fi 3359 fi 3360 CC=$ac_cv_prog_CC 3361 if test -n "$CC"; then 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3363 $as_echo "$CC" >&6; } 3364 else 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3366 $as_echo "no" >&6; } 3367 fi 3368 3369 3370 fi 3371 fi 3372 if test -z "$CC"; then 3373 # Extract the first word of "cc", so it can be a program name with args. 3374 set dummy cc; ac_word=$2 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3376 $as_echo_n "checking for $ac_word... " >&6; } 3377 if ${ac_cv_prog_CC+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379 else 3380 if test -n "$CC"; then 3381 ac_cv_prog_CC="$CC" # Let the user override the test. 3382 else 3383 ac_prog_rejected=no 3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385 for as_dir in $PATH 3386 do 3387 IFS=$as_save_IFS 3388 test -z "$as_dir" && as_dir=. 3389 for ac_exec_ext in '' $ac_executable_extensions; do 3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3392 ac_prog_rejected=yes 3393 continue 3394 fi 3395 ac_cv_prog_CC="cc" 3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3397 break 2 3398 fi 3399 done 3400 done 3401 IFS=$as_save_IFS 3402 3403 if test $ac_prog_rejected = yes; then 3404 # We found a bogon in the path, so make sure we never use it. 3405 set dummy $ac_cv_prog_CC 3406 shift 3407 if test $# != 0; then 3408 # We chose a different compiler from the bogus one. 3409 # However, it has the same basename, so the bogon will be chosen 3410 # first if we set CC to just the basename; use the full file name. 3411 shift 3412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3413 fi 3414 fi 3415 fi 3416 fi 3417 CC=$ac_cv_prog_CC 3418 if test -n "$CC"; then 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3420 $as_echo "$CC" >&6; } 3421 else 3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3423 $as_echo "no" >&6; } 3424 fi 3425 3426 3427 fi 3428 if test -z "$CC"; then 3429 if test -n "$ac_tool_prefix"; then 3430 for ac_prog in cl.exe 3431 do 3432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3435 $as_echo_n "checking for $ac_word... " >&6; } 3436 if ${ac_cv_prog_CC+:} false; then : 3437 $as_echo_n "(cached) " >&6 3438 else 3439 if test -n "$CC"; then 3440 ac_cv_prog_CC="$CC" # Let the user override the test. 3441 else 3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3443 for as_dir in $PATH 3444 do 3445 IFS=$as_save_IFS 3446 test -z "$as_dir" && as_dir=. 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453 done 3454 done 3455 IFS=$as_save_IFS 3456 3457 fi 3458 fi 3459 CC=$ac_cv_prog_CC 3460 if test -n "$CC"; then 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3462 $as_echo "$CC" >&6; } 3463 else 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465 $as_echo "no" >&6; } 3466 fi 3467 3468 3469 test -n "$CC" && break 3470 done 3471 fi 3472 if test -z "$CC"; then 3473 ac_ct_CC=$CC 3474 for ac_prog in cl.exe 3475 do 3476 # Extract the first word of "$ac_prog", so it can be a program name with args. 3477 set dummy $ac_prog; ac_word=$2 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3479 $as_echo_n "checking for $ac_word... " >&6; } 3480 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3481 $as_echo_n "(cached) " >&6 3482 else 3483 if test -n "$ac_ct_CC"; then 3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3485 else 3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487 for as_dir in $PATH 3488 do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3493 ac_cv_prog_ac_ct_CC="$ac_prog" 3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3495 break 2 3496 fi 3497 done 3498 done 3499 IFS=$as_save_IFS 3500 3501 fi 3502 fi 3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3504 if test -n "$ac_ct_CC"; then 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3506 $as_echo "$ac_ct_CC" >&6; } 3507 else 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509 $as_echo "no" >&6; } 3510 fi 3511 3512 3513 test -n "$ac_ct_CC" && break 3514 done 3515 3516 if test "x$ac_ct_CC" = x; then 3517 CC="" 3518 else 3519 case $cross_compiling:$ac_tool_warned in 3520 yes:) 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3523 ac_tool_warned=yes ;; 3524 esac 3525 CC=$ac_ct_CC 3526 fi 3527 fi 3528 3529 fi 3530 3531 3532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3534 as_fn_error $? "no acceptable C compiler found in \$PATH 3535 See \`config.log' for more details" "$LINENO" 5; } 3536 3537 # Provide some information about the compiler. 3538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3539 set X $ac_compile 3540 ac_compiler=$2 3541 for ac_option in --version -v -V -qversion; do 3542 { { ac_try="$ac_compiler $ac_option >&5" 3543 case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546 esac 3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548 $as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3550 ac_status=$? 3551 if test -s conftest.err; then 3552 sed '10a\ 3553 ... rest of stderr output deleted ... 3554 10q' conftest.err >conftest.er1 3555 cat conftest.er1 >&5 3556 fi 3557 rm -f conftest.er1 conftest.err 3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3559 test $ac_status = 0; } 3560 done 3561 3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3563 /* end confdefs.h. */ 3564 3565 int 3566 main () 3567 { 3568 3569 ; 3570 return 0; 3571 } 3572 _ACEOF 3573 ac_clean_files_save=$ac_clean_files 3574 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3575 # Try to create an executable without -o first, disregard a.out. 3576 # It will help us diagnose broken compilers, and finding out an intuition 3577 # of exeext. 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3579 $as_echo_n "checking whether the C compiler works... " >&6; } 3580 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3581 3582 # The possible output files: 3583 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3584 3585 ac_rmfiles= 3586 for ac_file in $ac_files 3587 do 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3590 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3591 esac 3592 done 3593 rm -f $ac_rmfiles 3594 3595 if { { ac_try="$ac_link_default" 3596 case "(($ac_try" in 3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598 *) ac_try_echo=$ac_try;; 3599 esac 3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3601 $as_echo "$ac_try_echo"; } >&5 3602 (eval "$ac_link_default") 2>&5 3603 ac_status=$? 3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3605 test $ac_status = 0; }; then : 3606 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3607 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3608 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3609 # so that the user can short-circuit this test for compilers unknown to 3610 # Autoconf. 3611 for ac_file in $ac_files '' 3612 do 3613 test -f "$ac_file" || continue 3614 case $ac_file in 3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3616 ;; 3617 [ab].out ) 3618 # We found the default executable, but exeext='' is most 3619 # certainly right. 3620 break;; 3621 *.* ) 3622 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3623 then :; else 3624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3625 fi 3626 # We set ac_cv_exeext here because the later test for it is not 3627 # safe: cross compilers may not add the suffix if given an `-o' 3628 # argument, so we may need to know it at that point already. 3629 # Even if this section looks crufty: it has the advantage of 3630 # actually working. 3631 break;; 3632 * ) 3633 break;; 3634 esac 3635 done 3636 test "$ac_cv_exeext" = no && ac_cv_exeext= 3637 3638 else 3639 ac_file='' 3640 fi 3641 if test -z "$ac_file"; then : 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643 $as_echo "no" >&6; } 3644 $as_echo "$as_me: failed program was:" >&5 3645 sed 's/^/| /' conftest.$ac_ext >&5 3646 3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3649 as_fn_error 77 "C compiler cannot create executables 3650 See \`config.log' for more details" "$LINENO" 5; } 3651 else 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3653 $as_echo "yes" >&6; } 3654 fi 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3656 $as_echo_n "checking for C compiler default output file name... " >&6; } 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3658 $as_echo "$ac_file" >&6; } 3659 ac_exeext=$ac_cv_exeext 3660 3661 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3662 ac_clean_files=$ac_clean_files_save 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3664 $as_echo_n "checking for suffix of executables... " >&6; } 3665 if { { ac_try="$ac_link" 3666 case "(($ac_try" in 3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *) ac_try_echo=$ac_try;; 3669 esac 3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3671 $as_echo "$ac_try_echo"; } >&5 3672 (eval "$ac_link") 2>&5 3673 ac_status=$? 3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3675 test $ac_status = 0; }; then : 3676 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3678 # work properly (i.e., refer to `conftest.exe'), while it won't with 3679 # `rm'. 3680 for ac_file in conftest.exe conftest conftest.*; do 3681 test -f "$ac_file" || continue 3682 case $ac_file in 3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3685 break;; 3686 * ) break;; 3687 esac 3688 done 3689 else 3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3692 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3693 See \`config.log' for more details" "$LINENO" 5; } 3694 fi 3695 rm -f conftest conftest$ac_cv_exeext 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3697 $as_echo "$ac_cv_exeext" >&6; } 3698 3699 rm -f conftest.$ac_ext 3700 EXEEXT=$ac_cv_exeext 3701 ac_exeext=$EXEEXT 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703 /* end confdefs.h. */ 3704 #include <stdio.h> 3705 int 3706 main () 3707 { 3708 FILE *f = fopen ("conftest.out", "w"); 3709 return ferror (f) || fclose (f) != 0; 3710 3711 ; 3712 return 0; 3713 } 3714 _ACEOF 3715 ac_clean_files="$ac_clean_files conftest.out" 3716 # Check that the compiler produces executables we can run. If not, either 3717 # the compiler is broken, or we cross compile. 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3719 $as_echo_n "checking whether we are cross compiling... " >&6; } 3720 if test "$cross_compiling" != yes; then 3721 { { ac_try="$ac_link" 3722 case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725 esac 3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727 $as_echo "$ac_try_echo"; } >&5 3728 (eval "$ac_link") 2>&5 3729 ac_status=$? 3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3731 test $ac_status = 0; } 3732 if { ac_try='./conftest$ac_cv_exeext' 3733 { { case "(($ac_try" in 3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3735 *) ac_try_echo=$ac_try;; 3736 esac 3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3738 $as_echo "$ac_try_echo"; } >&5 3739 (eval "$ac_try") 2>&5 3740 ac_status=$? 3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3742 test $ac_status = 0; }; }; then 3743 cross_compiling=no 3744 else 3745 if test "$cross_compiling" = maybe; then 3746 cross_compiling=yes 3747 else 3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3750 as_fn_error $? "cannot run C compiled programs. 3751 If you meant to cross compile, use \`--host'. 3752 See \`config.log' for more details" "$LINENO" 5; } 3753 fi 3754 fi 3755 fi 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3757 $as_echo "$cross_compiling" >&6; } 3758 3759 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3760 ac_clean_files=$ac_clean_files_save 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3762 $as_echo_n "checking for suffix of object files... " >&6; } 3763 if ${ac_cv_objext+:} false; then : 3764 $as_echo_n "(cached) " >&6 3765 else 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767 /* end confdefs.h. */ 3768 3769 int 3770 main () 3771 { 3772 3773 ; 3774 return 0; 3775 } 3776 _ACEOF 3777 rm -f conftest.o conftest.obj 3778 if { { ac_try="$ac_compile" 3779 case "(($ac_try" in 3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3781 *) ac_try_echo=$ac_try;; 3782 esac 3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3784 $as_echo "$ac_try_echo"; } >&5 3785 (eval "$ac_compile") 2>&5 3786 ac_status=$? 3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3788 test $ac_status = 0; }; then : 3789 for ac_file in conftest.o conftest.obj conftest.*; do 3790 test -f "$ac_file" || continue; 3791 case $ac_file in 3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3794 break;; 3795 esac 3796 done 3797 else 3798 $as_echo "$as_me: failed program was:" >&5 3799 sed 's/^/| /' conftest.$ac_ext >&5 3800 3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3803 as_fn_error $? "cannot compute suffix of object files: cannot compile 3804 See \`config.log' for more details" "$LINENO" 5; } 3805 fi 3806 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3807 fi 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3809 $as_echo "$ac_cv_objext" >&6; } 3810 OBJEXT=$ac_cv_objext 3811 ac_objext=$OBJEXT 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3814 if ${ac_cv_c_compiler_gnu+:} false; then : 3815 $as_echo_n "(cached) " >&6 3816 else 3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3818 /* end confdefs.h. */ 3819 3820 int 3821 main () 3822 { 3823 #ifndef __GNUC__ 3824 choke me 3825 #endif 3826 3827 ; 3828 return 0; 3829 } 3830 _ACEOF 3831 if ac_fn_c_try_compile "$LINENO"; then : 3832 ac_compiler_gnu=yes 3833 else 3834 ac_compiler_gnu=no 3835 fi 3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3837 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3838 3839 fi 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3841 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3842 if test $ac_compiler_gnu = yes; then 3843 GCC=yes 3844 else 3845 GCC= 3846 fi 3847 ac_test_CFLAGS=${CFLAGS+set} 3848 ac_save_CFLAGS=$CFLAGS 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3850 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3851 if ${ac_cv_prog_cc_g+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853 else 3854 ac_save_c_werror_flag=$ac_c_werror_flag 3855 ac_c_werror_flag=yes 3856 ac_cv_prog_cc_g=no 3857 CFLAGS="-g" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859 /* end confdefs.h. */ 3860 3861 int 3862 main () 3863 { 3864 3865 ; 3866 return 0; 3867 } 3868 _ACEOF 3869 if ac_fn_c_try_compile "$LINENO"; then : 3870 ac_cv_prog_cc_g=yes 3871 else 3872 CFLAGS="" 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874 /* end confdefs.h. */ 3875 3876 int 3877 main () 3878 { 3879 3880 ; 3881 return 0; 3882 } 3883 _ACEOF 3884 if ac_fn_c_try_compile "$LINENO"; then : 3885 3886 else 3887 ac_c_werror_flag=$ac_save_c_werror_flag 3888 CFLAGS="-g" 3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3890 /* end confdefs.h. */ 3891 3892 int 3893 main () 3894 { 3895 3896 ; 3897 return 0; 3898 } 3899 _ACEOF 3900 if ac_fn_c_try_compile "$LINENO"; then : 3901 ac_cv_prog_cc_g=yes 3902 fi 3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3904 fi 3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3906 fi 3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3908 ac_c_werror_flag=$ac_save_c_werror_flag 3909 fi 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3911 $as_echo "$ac_cv_prog_cc_g" >&6; } 3912 if test "$ac_test_CFLAGS" = set; then 3913 CFLAGS=$ac_save_CFLAGS 3914 elif test $ac_cv_prog_cc_g = yes; then 3915 if test "$GCC" = yes; then 3916 CFLAGS="-g -O2" 3917 else 3918 CFLAGS="-g" 3919 fi 3920 else 3921 if test "$GCC" = yes; then 3922 CFLAGS="-O2" 3923 else 3924 CFLAGS= 3925 fi 3926 fi 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3928 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3929 if ${ac_cv_prog_cc_c89+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931 else 3932 ac_cv_prog_cc_c89=no 3933 ac_save_CC=$CC 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935 /* end confdefs.h. */ 3936 #include <stdarg.h> 3937 #include <stdio.h> 3938 #include <sys/types.h> 3939 #include <sys/stat.h> 3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3941 struct buf { int x; }; 3942 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3943 static char *e (p, i) 3944 char **p; 3945 int i; 3946 { 3947 return p[i]; 3948 } 3949 static char *f (char * (*g) (char **, int), char **p, ...) 3950 { 3951 char *s; 3952 va_list v; 3953 va_start (v,p); 3954 s = g (p, va_arg (v,int)); 3955 va_end (v); 3956 return s; 3957 } 3958 3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3960 function prototypes and stuff, but not '\xHH' hex character constants. 3961 These don't provoke an error unfortunately, instead are silently treated 3962 as 'x'. The following induces an error, until -std is added to get 3963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3964 array size at least. It's necessary to write '\x00'==0 to get something 3965 that's true only with -std. */ 3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3967 3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3969 inside strings and character constants. */ 3970 #define FOO(x) 'x' 3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3972 3973 int test (int i, double x); 3974 struct s1 {int (*f) (int a);}; 3975 struct s2 {int (*f) (double a);}; 3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3977 int argc; 3978 char **argv; 3979 int 3980 main () 3981 { 3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3983 ; 3984 return 0; 3985 } 3986 _ACEOF 3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3989 do 3990 CC="$ac_save_CC $ac_arg" 3991 if ac_fn_c_try_compile "$LINENO"; then : 3992 ac_cv_prog_cc_c89=$ac_arg 3993 fi 3994 rm -f core conftest.err conftest.$ac_objext 3995 test "x$ac_cv_prog_cc_c89" != "xno" && break 3996 done 3997 rm -f conftest.$ac_ext 3998 CC=$ac_save_CC 3999 4000 fi 4001 # AC_CACHE_VAL 4002 case "x$ac_cv_prog_cc_c89" in 4003 x) 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4005 $as_echo "none needed" >&6; } ;; 4006 xno) 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4008 $as_echo "unsupported" >&6; } ;; 4009 *) 4010 CC="$CC $ac_cv_prog_cc_c89" 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4013 esac 4014 if test "x$ac_cv_prog_cc_c89" != xno; then : 4015 4016 fi 4017 4018 ac_ext=c 4019 ac_cpp='$CPP $CPPFLAGS' 4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4023 DEPDIR="${am__leading_dot}deps" 4024 4025 ac_config_commands="$ac_config_commands depfiles" 4026 4027 4028 am_make=${MAKE-make} 4029 cat > confinc << 'END' 4030 am__doit: 4031 @echo this is the am__doit target 4032 .PHONY: am__doit 4033 END 4034 # If we don't find an include directive, just comment out the code. 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4036 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4037 am__include="#" 4038 am__quote= 4039 _am_result=none 4040 # First try GNU make style include. 4041 echo "include confinc" > confmf 4042 # Ignore all kinds of additional output from `make'. 4043 case `$am_make -s -f confmf 2> /dev/null` in #( 4044 *the\ am__doit\ target*) 4045 am__include=include 4046 am__quote= 4047 _am_result=GNU 4048 ;; 4049 esac 4050 # Now try BSD make style include. 4051 if test "$am__include" = "#"; then 4052 echo '.include "confinc"' > confmf 4053 case `$am_make -s -f confmf 2> /dev/null` in #( 4054 *the\ am__doit\ target*) 4055 am__include=.include 4056 am__quote="\"" 4057 _am_result=BSD 4058 ;; 4059 esac 4060 fi 4061 4062 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4064 $as_echo "$_am_result" >&6; } 4065 rm -f confinc confmf 4066 4067 # Check whether --enable-dependency-tracking was given. 4068 if test "${enable_dependency_tracking+set}" = set; then : 4069 enableval=$enable_dependency_tracking; 4070 fi 4071 4072 if test "x$enable_dependency_tracking" != xno; then 4073 am_depcomp="$ac_aux_dir/depcomp" 4074 AMDEPBACKSLASH='\' 4075 am__nodep='_no' 4076 fi 4077 if test "x$enable_dependency_tracking" != xno; then 4078 AMDEP_TRUE= 4079 AMDEP_FALSE='#' 4080 else 4081 AMDEP_TRUE='#' 4082 AMDEP_FALSE= 4083 fi 4084 4085 4086 4087 depcc="$CC" am_compiler_list= 4088 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4090 $as_echo_n "checking dependency style of $depcc... " >&6; } 4091 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093 else 4094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4095 # We make a subdir and do the tests there. Otherwise we can end up 4096 # making bogus files that we don't know about and never remove. For 4097 # instance it was reported that on HP-UX the gcc test will end up 4098 # making a dummy file named `D' -- because `-MD' means `put the output 4099 # in D'. 4100 rm -rf conftest.dir 4101 mkdir conftest.dir 4102 # Copy depcomp to subdir because otherwise we won't find it if we're 4103 # using a relative directory. 4104 cp "$am_depcomp" conftest.dir 4105 cd conftest.dir 4106 # We will build objects and dependencies in a subdirectory because 4107 # it helps to detect inapplicable dependency modes. For instance 4108 # both Tru64's cc and ICC support -MD to output dependencies as a 4109 # side effect of compilation, but ICC will put the dependencies in 4110 # the current directory while Tru64 will put them in the object 4111 # directory. 4112 mkdir sub 4113 4114 am_cv_CC_dependencies_compiler_type=none 4115 if test "$am_compiler_list" = ""; then 4116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4117 fi 4118 am__universal=false 4119 case " $depcc " in #( 4120 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4121 esac 4122 4123 for depmode in $am_compiler_list; do 4124 # Setup a source with many dependencies, because some compilers 4125 # like to wrap large dependency lists on column 80 (with \), and 4126 # we should not choose a depcomp mode which is confused by this. 4127 # 4128 # We need to recreate these files for each test, as the compiler may 4129 # overwrite some of them when testing with obscure command lines. 4130 # This happens at least with the AIX C compiler. 4131 : > sub/conftest.c 4132 for i in 1 2 3 4 5 6; do 4133 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4134 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4135 # Solaris 8's {/usr,}/bin/sh. 4136 touch sub/conftst$i.h 4137 done 4138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4139 4140 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4141 # mode. It turns out that the SunPro C++ compiler does not properly 4142 # handle `-M -o', and we need to detect this. Also, some Intel 4143 # versions had trouble with output in subdirs 4144 am__obj=sub/conftest.${OBJEXT-o} 4145 am__minus_obj="-o $am__obj" 4146 case $depmode in 4147 gcc) 4148 # This depmode causes a compiler race in universal mode. 4149 test "$am__universal" = false || continue 4150 ;; 4151 nosideeffect) 4152 # after this tag, mechanisms are not by side-effect, so they'll 4153 # only be used when explicitly requested 4154 if test "x$enable_dependency_tracking" = xyes; then 4155 continue 4156 else 4157 break 4158 fi 4159 ;; 4160 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4161 # This compiler won't grok `-c -o', but also, the minuso test has 4162 # not run yet. These depmodes are late enough in the game, and 4163 # so weak that their functioning should not be impacted. 4164 am__obj=conftest.${OBJEXT-o} 4165 am__minus_obj= 4166 ;; 4167 none) break ;; 4168 esac 4169 if depmode=$depmode \ 4170 source=sub/conftest.c object=$am__obj \ 4171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4172 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4173 >/dev/null 2>conftest.err && 4174 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4175 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4176 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4177 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4178 # icc doesn't choke on unknown options, it will just issue warnings 4179 # or remarks (even with -Werror). So we grep stderr for any message 4180 # that says an option was ignored or not supported. 4181 # When given -MP, icc 7.0 and 7.1 complain thusly: 4182 # icc: Command line warning: ignoring option '-M'; no argument required 4183 # The diagnosis changed in icc 8.0: 4184 # icc: Command line remark: option '-MP' not supported 4185 if (grep 'ignoring option' conftest.err || 4186 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4187 am_cv_CC_dependencies_compiler_type=$depmode 4188 break 4189 fi 4190 fi 4191 done 4192 4193 cd .. 4194 rm -rf conftest.dir 4195 else 4196 am_cv_CC_dependencies_compiler_type=none 4197 fi 4198 4199 fi 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4201 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4202 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4203 4204 if 4205 test "x$enable_dependency_tracking" != xno \ 4206 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4207 am__fastdepCC_TRUE= 4208 am__fastdepCC_FALSE='#' 4209 else 4210 am__fastdepCC_TRUE='#' 4211 am__fastdepCC_FALSE= 4212 fi 4213 4214 4215 ac_ext=cpp 4216 ac_cpp='$CXXCPP $CPPFLAGS' 4217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4220 if test -z "$CXX"; then 4221 if test -n "$CCC"; then 4222 CXX=$CCC 4223 else 4224 if test -n "$ac_tool_prefix"; then 4225 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4226 do 4227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4230 $as_echo_n "checking for $ac_word... " >&6; } 4231 if ${ac_cv_prog_CXX+:} false; then : 4232 $as_echo_n "(cached) " >&6 4233 else 4234 if test -n "$CXX"; then 4235 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4236 else 4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238 for as_dir in $PATH 4239 do 4240 IFS=$as_save_IFS 4241 test -z "$as_dir" && as_dir=. 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4246 break 2 4247 fi 4248 done 4249 done 4250 IFS=$as_save_IFS 4251 4252 fi 4253 fi 4254 CXX=$ac_cv_prog_CXX 4255 if test -n "$CXX"; then 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4257 $as_echo "$CXX" >&6; } 4258 else 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260 $as_echo "no" >&6; } 4261 fi 4262 4263 4264 test -n "$CXX" && break 4265 done 4266 fi 4267 if test -z "$CXX"; then 4268 ac_ct_CXX=$CXX 4269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4270 do 4271 # Extract the first word of "$ac_prog", so it can be a program name with args. 4272 set dummy $ac_prog; ac_word=$2 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4274 $as_echo_n "checking for $ac_word... " >&6; } 4275 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277 else 4278 if test -n "$ac_ct_CXX"; then 4279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4280 else 4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4282 for as_dir in $PATH 4283 do 4284 IFS=$as_save_IFS 4285 test -z "$as_dir" && as_dir=. 4286 for ac_exec_ext in '' $ac_executable_extensions; do 4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4288 ac_cv_prog_ac_ct_CXX="$ac_prog" 4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4290 break 2 4291 fi 4292 done 4293 done 4294 IFS=$as_save_IFS 4295 4296 fi 4297 fi 4298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4299 if test -n "$ac_ct_CXX"; then 4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4301 $as_echo "$ac_ct_CXX" >&6; } 4302 else 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304 $as_echo "no" >&6; } 4305 fi 4306 4307 4308 test -n "$ac_ct_CXX" && break 4309 done 4310 4311 if test "x$ac_ct_CXX" = x; then 4312 CXX="g++" 4313 else 4314 case $cross_compiling:$ac_tool_warned in 4315 yes:) 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4318 ac_tool_warned=yes ;; 4319 esac 4320 CXX=$ac_ct_CXX 4321 fi 4322 fi 4323 4324 fi 4325 fi 4326 # Provide some information about the compiler. 4327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4328 set X $ac_compile 4329 ac_compiler=$2 4330 for ac_option in --version -v -V -qversion; do 4331 { { ac_try="$ac_compiler $ac_option >&5" 4332 case "(($ac_try" in 4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4334 *) ac_try_echo=$ac_try;; 4335 esac 4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4337 $as_echo "$ac_try_echo"; } >&5 4338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4339 ac_status=$? 4340 if test -s conftest.err; then 4341 sed '10a\ 4342 ... rest of stderr output deleted ... 4343 10q' conftest.err >conftest.er1 4344 cat conftest.er1 >&5 4345 fi 4346 rm -f conftest.er1 conftest.err 4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4348 test $ac_status = 0; } 4349 done 4350 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4352 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4353 if ${ac_cv_cxx_compiler_gnu+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355 else 4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4357 /* end confdefs.h. */ 4358 4359 int 4360 main () 4361 { 4362 #ifndef __GNUC__ 4363 choke me 4364 #endif 4365 4366 ; 4367 return 0; 4368 } 4369 _ACEOF 4370 if ac_fn_cxx_try_compile "$LINENO"; then : 4371 ac_compiler_gnu=yes 4372 else 4373 ac_compiler_gnu=no 4374 fi 4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4377 4378 fi 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4380 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4381 if test $ac_compiler_gnu = yes; then 4382 GXX=yes 4383 else 4384 GXX= 4385 fi 4386 ac_test_CXXFLAGS=${CXXFLAGS+set} 4387 ac_save_CXXFLAGS=$CXXFLAGS 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4389 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4390 if ${ac_cv_prog_cxx_g+:} false; then : 4391 $as_echo_n "(cached) " >&6 4392 else 4393 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4394 ac_cxx_werror_flag=yes 4395 ac_cv_prog_cxx_g=no 4396 CXXFLAGS="-g" 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 /* end confdefs.h. */ 4399 4400 int 4401 main () 4402 { 4403 4404 ; 4405 return 0; 4406 } 4407 _ACEOF 4408 if ac_fn_cxx_try_compile "$LINENO"; then : 4409 ac_cv_prog_cxx_g=yes 4410 else 4411 CXXFLAGS="" 4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413 /* end confdefs.h. */ 4414 4415 int 4416 main () 4417 { 4418 4419 ; 4420 return 0; 4421 } 4422 _ACEOF 4423 if ac_fn_cxx_try_compile "$LINENO"; then : 4424 4425 else 4426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4427 CXXFLAGS="-g" 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4429 /* end confdefs.h. */ 4430 4431 int 4432 main () 4433 { 4434 4435 ; 4436 return 0; 4437 } 4438 _ACEOF 4439 if ac_fn_cxx_try_compile "$LINENO"; then : 4440 ac_cv_prog_cxx_g=yes 4441 fi 4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4443 fi 4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4445 fi 4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4448 fi 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4450 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4451 if test "$ac_test_CXXFLAGS" = set; then 4452 CXXFLAGS=$ac_save_CXXFLAGS 4453 elif test $ac_cv_prog_cxx_g = yes; then 4454 if test "$GXX" = yes; then 4455 CXXFLAGS="-g -O2" 4456 else 4457 CXXFLAGS="-g" 4458 fi 4459 else 4460 if test "$GXX" = yes; then 4461 CXXFLAGS="-O2" 4462 else 4463 CXXFLAGS= 4464 fi 4465 fi 4466 ac_ext=c 4467 ac_cpp='$CPP $CPPFLAGS' 4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4471 4472 depcc="$CXX" am_compiler_list= 4473 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4475 $as_echo_n "checking dependency style of $depcc... " >&6; } 4476 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478 else 4479 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4480 # We make a subdir and do the tests there. Otherwise we can end up 4481 # making bogus files that we don't know about and never remove. For 4482 # instance it was reported that on HP-UX the gcc test will end up 4483 # making a dummy file named `D' -- because `-MD' means `put the output 4484 # in D'. 4485 rm -rf conftest.dir 4486 mkdir conftest.dir 4487 # Copy depcomp to subdir because otherwise we won't find it if we're 4488 # using a relative directory. 4489 cp "$am_depcomp" conftest.dir 4490 cd conftest.dir 4491 # We will build objects and dependencies in a subdirectory because 4492 # it helps to detect inapplicable dependency modes. For instance 4493 # both Tru64's cc and ICC support -MD to output dependencies as a 4494 # side effect of compilation, but ICC will put the dependencies in 4495 # the current directory while Tru64 will put them in the object 4496 # directory. 4497 mkdir sub 4498 4499 am_cv_CXX_dependencies_compiler_type=none 4500 if test "$am_compiler_list" = ""; then 4501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4502 fi 4503 am__universal=false 4504 case " $depcc " in #( 4505 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4506 esac 4507 4508 for depmode in $am_compiler_list; do 4509 # Setup a source with many dependencies, because some compilers 4510 # like to wrap large dependency lists on column 80 (with \), and 4511 # we should not choose a depcomp mode which is confused by this. 4512 # 4513 # We need to recreate these files for each test, as the compiler may 4514 # overwrite some of them when testing with obscure command lines. 4515 # This happens at least with the AIX C compiler. 4516 : > sub/conftest.c 4517 for i in 1 2 3 4 5 6; do 4518 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4520 # Solaris 8's {/usr,}/bin/sh. 4521 touch sub/conftst$i.h 4522 done 4523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4524 4525 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4526 # mode. It turns out that the SunPro C++ compiler does not properly 4527 # handle `-M -o', and we need to detect this. Also, some Intel 4528 # versions had trouble with output in subdirs 4529 am__obj=sub/conftest.${OBJEXT-o} 4530 am__minus_obj="-o $am__obj" 4531 case $depmode in 4532 gcc) 4533 # This depmode causes a compiler race in universal mode. 4534 test "$am__universal" = false || continue 4535 ;; 4536 nosideeffect) 4537 # after this tag, mechanisms are not by side-effect, so they'll 4538 # only be used when explicitly requested 4539 if test "x$enable_dependency_tracking" = xyes; then 4540 continue 4541 else 4542 break 4543 fi 4544 ;; 4545 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4546 # This compiler won't grok `-c -o', but also, the minuso test has 4547 # not run yet. These depmodes are late enough in the game, and 4548 # so weak that their functioning should not be impacted. 4549 am__obj=conftest.${OBJEXT-o} 4550 am__minus_obj= 4551 ;; 4552 none) break ;; 4553 esac 4554 if depmode=$depmode \ 4555 source=sub/conftest.c object=$am__obj \ 4556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4557 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4558 >/dev/null 2>conftest.err && 4559 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4560 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4561 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4562 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4563 # icc doesn't choke on unknown options, it will just issue warnings 4564 # or remarks (even with -Werror). So we grep stderr for any message 4565 # that says an option was ignored or not supported. 4566 # When given -MP, icc 7.0 and 7.1 complain thusly: 4567 # icc: Command line warning: ignoring option '-M'; no argument required 4568 # The diagnosis changed in icc 8.0: 4569 # icc: Command line remark: option '-MP' not supported 4570 if (grep 'ignoring option' conftest.err || 4571 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4572 am_cv_CXX_dependencies_compiler_type=$depmode 4573 break 4574 fi 4575 fi 4576 done 4577 4578 cd .. 4579 rm -rf conftest.dir 4580 else 4581 am_cv_CXX_dependencies_compiler_type=none 4582 fi 4583 4584 fi 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4586 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4587 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4588 4589 if 4590 test "x$enable_dependency_tracking" != xno \ 4591 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4592 am__fastdepCXX_TRUE= 4593 am__fastdepCXX_FALSE='#' 4594 else 4595 am__fastdepCXX_TRUE='#' 4596 am__fastdepCXX_FALSE= 4597 fi 4598 4599 4600 ac_ext=cpp 4601 ac_cpp='$CXXCPP $CPPFLAGS' 4602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4605 4606 4607 ac_ext=cpp 4608 ac_cpp='$CXXCPP $CPPFLAGS' 4609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4613 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4614 if test -z "$CXXCPP"; then 4615 if ${ac_cv_prog_CXXCPP+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617 else 4618 # Double quotes because CXXCPP needs to be expanded 4619 for CXXCPP in "$CXX -E" "/lib/cpp" 4620 do 4621 ac_preproc_ok=false 4622 for ac_cxx_preproc_warn_flag in '' yes 4623 do 4624 # Use a header file that comes with gcc, so configuring glibc 4625 # with a fresh cross-compiler works. 4626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4627 # <limits.h> exists even on freestanding compilers. 4628 # On the NeXT, cc -E runs the code through the compiler's parser, 4629 # not just through cpp. "Syntax error" is here to catch this case. 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631 /* end confdefs.h. */ 4632 #ifdef __STDC__ 4633 # include <limits.h> 4634 #else 4635 # include <assert.h> 4636 #endif 4637 Syntax error 4638 _ACEOF 4639 if ac_fn_cxx_try_cpp "$LINENO"; then : 4640 4641 else 4642 # Broken: fails on valid input. 4643 continue 4644 fi 4645 rm -f conftest.err conftest.i conftest.$ac_ext 4646 4647 # OK, works on sane cases. Now check whether nonexistent headers 4648 # can be detected and how. 4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4650 /* end confdefs.h. */ 4651 #include <ac_nonexistent.h> 4652 _ACEOF 4653 if ac_fn_cxx_try_cpp "$LINENO"; then : 4654 # Broken: success on invalid input. 4655 continue 4656 else 4657 # Passes both tests. 4658 ac_preproc_ok=: 4659 break 4660 fi 4661 rm -f conftest.err conftest.i conftest.$ac_ext 4662 4663 done 4664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4665 rm -f conftest.i conftest.err conftest.$ac_ext 4666 if $ac_preproc_ok; then : 4667 break 4668 fi 4669 4670 done 4671 ac_cv_prog_CXXCPP=$CXXCPP 4672 4673 fi 4674 CXXCPP=$ac_cv_prog_CXXCPP 4675 else 4676 ac_cv_prog_CXXCPP=$CXXCPP 4677 fi 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4679 $as_echo "$CXXCPP" >&6; } 4680 ac_preproc_ok=false 4681 for ac_cxx_preproc_warn_flag in '' yes 4682 do 4683 # Use a header file that comes with gcc, so configuring glibc 4684 # with a fresh cross-compiler works. 4685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4686 # <limits.h> exists even on freestanding compilers. 4687 # On the NeXT, cc -E runs the code through the compiler's parser, 4688 # not just through cpp. "Syntax error" is here to catch this case. 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690 /* end confdefs.h. */ 4691 #ifdef __STDC__ 4692 # include <limits.h> 4693 #else 4694 # include <assert.h> 4695 #endif 4696 Syntax error 4697 _ACEOF 4698 if ac_fn_cxx_try_cpp "$LINENO"; then : 4699 4700 else 4701 # Broken: fails on valid input. 4702 continue 4703 fi 4704 rm -f conftest.err conftest.i conftest.$ac_ext 4705 4706 # OK, works on sane cases. Now check whether nonexistent headers 4707 # can be detected and how. 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709 /* end confdefs.h. */ 4710 #include <ac_nonexistent.h> 4711 _ACEOF 4712 if ac_fn_cxx_try_cpp "$LINENO"; then : 4713 # Broken: success on invalid input. 4714 continue 4715 else 4716 # Passes both tests. 4717 ac_preproc_ok=: 4718 break 4719 fi 4720 rm -f conftest.err conftest.i conftest.$ac_ext 4721 4722 done 4723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4724 rm -f conftest.i conftest.err conftest.$ac_ext 4725 if $ac_preproc_ok; then : 4726 4727 else 4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4730 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4731 See \`config.log' for more details" "$LINENO" 5; } 4732 fi 4733 4734 ac_ext=cpp 4735 ac_cpp='$CXXCPP $CPPFLAGS' 4736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4739 4740 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4742 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4743 if ${ac_cv_path_GREP+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745 else 4746 if test -z "$GREP"; then 4747 ac_path_GREP_found=false 4748 # Loop through the user's path and test for each of PROGNAME-LIST 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4751 do 4752 IFS=$as_save_IFS 4753 test -z "$as_dir" && as_dir=. 4754 for ac_prog in grep ggrep; do 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4757 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4758 # Check for GNU ac_path_GREP and select it if it is found. 4759 # Check for GNU $ac_path_GREP 4760 case `"$ac_path_GREP" --version 2>&1` in 4761 *GNU*) 4762 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4763 *) 4764 ac_count=0 4765 $as_echo_n 0123456789 >"conftest.in" 4766 while : 4767 do 4768 cat "conftest.in" "conftest.in" >"conftest.tmp" 4769 mv "conftest.tmp" "conftest.in" 4770 cp "conftest.in" "conftest.nl" 4771 $as_echo 'GREP' >> "conftest.nl" 4772 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4774 as_fn_arith $ac_count + 1 && ac_count=$as_val 4775 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4776 # Best one so far, save it but keep looking for a better one 4777 ac_cv_path_GREP="$ac_path_GREP" 4778 ac_path_GREP_max=$ac_count 4779 fi 4780 # 10*(2^10) chars as input seems more than enough 4781 test $ac_count -gt 10 && break 4782 done 4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4784 esac 4785 4786 $ac_path_GREP_found && break 3 4787 done 4788 done 4789 done 4790 IFS=$as_save_IFS 4791 if test -z "$ac_cv_path_GREP"; then 4792 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4793 fi 4794 else 4795 ac_cv_path_GREP=$GREP 4796 fi 4797 4798 fi 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4800 $as_echo "$ac_cv_path_GREP" >&6; } 4801 GREP="$ac_cv_path_GREP" 4802 4803 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4805 $as_echo_n "checking for egrep... " >&6; } 4806 if ${ac_cv_path_EGREP+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808 else 4809 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4810 then ac_cv_path_EGREP="$GREP -E" 4811 else 4812 if test -z "$EGREP"; then 4813 ac_path_EGREP_found=false 4814 # Loop through the user's path and test for each of PROGNAME-LIST 4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4817 do 4818 IFS=$as_save_IFS 4819 test -z "$as_dir" && as_dir=. 4820 for ac_prog in egrep; do 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4823 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4824 # Check for GNU ac_path_EGREP and select it if it is found. 4825 # Check for GNU $ac_path_EGREP 4826 case `"$ac_path_EGREP" --version 2>&1` in 4827 *GNU*) 4828 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4829 *) 4830 ac_count=0 4831 $as_echo_n 0123456789 >"conftest.in" 4832 while : 4833 do 4834 cat "conftest.in" "conftest.in" >"conftest.tmp" 4835 mv "conftest.tmp" "conftest.in" 4836 cp "conftest.in" "conftest.nl" 4837 $as_echo 'EGREP' >> "conftest.nl" 4838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4840 as_fn_arith $ac_count + 1 && ac_count=$as_val 4841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4842 # Best one so far, save it but keep looking for a better one 4843 ac_cv_path_EGREP="$ac_path_EGREP" 4844 ac_path_EGREP_max=$ac_count 4845 fi 4846 # 10*(2^10) chars as input seems more than enough 4847 test $ac_count -gt 10 && break 4848 done 4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4850 esac 4851 4852 $ac_path_EGREP_found && break 3 4853 done 4854 done 4855 done 4856 IFS=$as_save_IFS 4857 if test -z "$ac_cv_path_EGREP"; then 4858 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4859 fi 4860 else 4861 ac_cv_path_EGREP=$EGREP 4862 fi 4863 4864 fi 4865 fi 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4867 $as_echo "$ac_cv_path_EGREP" >&6; } 4868 EGREP="$ac_cv_path_EGREP" 4869 4870 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4872 $as_echo_n "checking for ANSI C header files... " >&6; } 4873 if ${ac_cv_header_stdc+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875 else 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877 /* end confdefs.h. */ 4878 #include <stdlib.h> 4879 #include <stdarg.h> 4880 #include <string.h> 4881 #include <float.h> 4882 4883 int 4884 main () 4885 { 4886 4887 ; 4888 return 0; 4889 } 4890 _ACEOF 4891 if ac_fn_cxx_try_compile "$LINENO"; then : 4892 ac_cv_header_stdc=yes 4893 else 4894 ac_cv_header_stdc=no 4895 fi 4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897 4898 if test $ac_cv_header_stdc = yes; then 4899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901 /* end confdefs.h. */ 4902 #include <string.h> 4903 4904 _ACEOF 4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4906 $EGREP "memchr" >/dev/null 2>&1; then : 4907 4908 else 4909 ac_cv_header_stdc=no 4910 fi 4911 rm -f conftest* 4912 4913 fi 4914 4915 if test $ac_cv_header_stdc = yes; then 4916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918 /* end confdefs.h. */ 4919 #include <stdlib.h> 4920 4921 _ACEOF 4922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4923 $EGREP "free" >/dev/null 2>&1; then : 4924 4925 else 4926 ac_cv_header_stdc=no 4927 fi 4928 rm -f conftest* 4929 4930 fi 4931 4932 if test $ac_cv_header_stdc = yes; then 4933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4934 if test "$cross_compiling" = yes; then : 4935 : 4936 else 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938 /* end confdefs.h. */ 4939 #include <ctype.h> 4940 #include <stdlib.h> 4941 #if ((' ' & 0x0FF) == 0x020) 4942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4944 #else 4945 # define ISLOWER(c) \ 4946 (('a' <= (c) && (c) <= 'i') \ 4947 || ('j' <= (c) && (c) <= 'r') \ 4948 || ('s' <= (c) && (c) <= 'z')) 4949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4950 #endif 4951 4952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4953 int 4954 main () 4955 { 4956 int i; 4957 for (i = 0; i < 256; i++) 4958 if (XOR (islower (i), ISLOWER (i)) 4959 || toupper (i) != TOUPPER (i)) 4960 return 2; 4961 return 0; 4962 } 4963 _ACEOF 4964 if ac_fn_cxx_try_run "$LINENO"; then : 4965 4966 else 4967 ac_cv_header_stdc=no 4968 fi 4969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4970 conftest.$ac_objext conftest.beam conftest.$ac_ext 4971 fi 4972 4973 fi 4974 fi 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4976 $as_echo "$ac_cv_header_stdc" >&6; } 4977 if test $ac_cv_header_stdc = yes; then 4978 4979 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4980 4981 fi 4982 4983 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4985 inttypes.h stdint.h unistd.h 4986 do : 4987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4988 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4989 " 4990 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4991 cat >>confdefs.h <<_ACEOF 4992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4993 _ACEOF 4994 4995 fi 4996 4997 done 4998 4999 5000 5001 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5002 if test "x$ac_cv_header_minix_config_h" = xyes; then : 5003 MINIX=yes 5004 else 5005 MINIX= 5006 fi 5007 5008 5009 if test "$MINIX" = yes; then 5010 5011 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5012 5013 5014 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5015 5016 5017 $as_echo "#define _MINIX 1" >>confdefs.h 5018 5019 fi 5020 5021 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5023 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5024 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026 else 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028 /* end confdefs.h. */ 5029 5030 # define __EXTENSIONS__ 1 5031 $ac_includes_default 5032 int 5033 main () 5034 { 5035 5036 ; 5037 return 0; 5038 } 5039 _ACEOF 5040 if ac_fn_cxx_try_compile "$LINENO"; then : 5041 ac_cv_safe_to_define___extensions__=yes 5042 else 5043 ac_cv_safe_to_define___extensions__=no 5044 fi 5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5046 fi 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5048 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5049 test $ac_cv_safe_to_define___extensions__ = yes && 5050 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5051 5052 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5053 5054 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5055 5056 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5057 5058 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5059 5060 5061 5062 5063 5064 5065 5066 if test "$GCC" = yes; then 5067 GCC_TRUE= 5068 GCC_FALSE='#' 5069 else 5070 GCC_TRUE='#' 5071 GCC_FALSE= 5072 fi 5073 # let the Makefile know if we're gcc 5074 5075 # test_util.cc takes forever to compile with GCC and optimization turned on. 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5 5077 $as_echo_n "checking C++ compiler flags...... " >&6; } 5078 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5079 5080 if test "$GCC" = "yes"; then : 5081 5082 PROTOBUF_OPT_FLAG="-O2" 5083 CXXFLAGS="${CXXFLAGS} -g" 5084 5085 fi 5086 5087 # Protocol Buffers contains several checks that are intended to be used only 5088 # for debugging and which might hurt performance. Most users are probably 5089 # end users who don't want these checks, so add -DNDEBUG by default. 5090 CXXFLAGS="$CXXFLAGS -DNDEBUG" 5091 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5 5093 $as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; } 5094 5095 else 5096 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5 5098 $as_echo "use user-supplied: $CXXFLAGS" >&6; } 5099 5100 fi 5101 5102 5103 5104 5105 5106 ac_ext=cpp 5107 ac_cpp='$CXXCPP $CPPFLAGS' 5108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5111 5112 ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default" 5113 if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then : 5114 SUNCC="yes" 5115 else 5116 SUNCC="no" 5117 fi 5118 5119 ac_ext=cpp 5120 ac_cpp='$CXXCPP $CPPFLAGS' 5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5124 5125 5126 5127 # Check whether --enable-64bit-solaris was given. 5128 if test "${enable_64bit_solaris+set}" = set; then : 5129 enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval" 5130 else 5131 ac_enable_64bit="yes" 5132 fi 5133 5134 5135 if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5136 5137 CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}" 5138 5139 fi 5140 5141 case $host_os in 5142 *solaris*) 5143 for ac_prog in isainfo 5144 do 5145 # Extract the first word of "$ac_prog", so it can be a program name with args. 5146 set dummy $ac_prog; ac_word=$2 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5148 $as_echo_n "checking for $ac_word... " >&6; } 5149 if ${ac_cv_prog_ISAINFO+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151 else 5152 if test -n "$ISAINFO"; then 5153 ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test. 5154 else 5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156 for as_dir in $PATH 5157 do 5158 IFS=$as_save_IFS 5159 test -z "$as_dir" && as_dir=. 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5162 ac_cv_prog_ISAINFO="$ac_prog" 5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5164 break 2 5165 fi 5166 done 5167 done 5168 IFS=$as_save_IFS 5169 5170 fi 5171 fi 5172 ISAINFO=$ac_cv_prog_ISAINFO 5173 if test -n "$ISAINFO"; then 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5 5175 $as_echo "$ISAINFO" >&6; } 5176 else 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5178 $as_echo "no" >&6; } 5179 fi 5180 5181 5182 test -n "$ISAINFO" && break 5183 done 5184 test -n "$ISAINFO" || ISAINFO="no" 5185 5186 if test "x$ISAINFO" != "xno"; then : 5187 isainfo_b=`${ISAINFO} -b` 5188 else 5189 isainfo_b="x" 5190 fi 5191 5192 if test "$isainfo_b" != "x"; then : 5193 5194 5195 isainfo_k=`${ISAINFO} -k` 5196 5197 if test "x$ac_enable_64bit" = "xyes"; then : 5198 5199 5200 if test "x$libdir" = "x\${exec_prefix}/lib"; then : 5201 5202 libdir="${libdir}/${isainfo_k}" 5203 5204 fi 5205 5206 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5207 5208 CXXFLAGS="${CXXFLAGS} -m64" 5209 ac_cv_env_CXXFLAGS_set=set 5210 ac_cv_env_CXXFLAGS_value='-m64' 5211 5212 fi 5213 5214 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then : 5215 5216 CFLAGS="${CFLAGS} -m64" 5217 ac_cv_env_CFLAGS_set=set 5218 ac_cv_env_CFLAGS_value='-m64' 5219 5220 fi 5221 5222 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then : 5223 5224 CXXFLAGS="-xmemalign=8s ${CXXFLAGS}" 5225 5226 fi 5227 5228 fi 5229 5230 fi 5231 ;; 5232 esac 5233 5234 5235 5236 # Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd 5237 # to the link 5238 case `pwd` in 5239 *\ * | *\ *) 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5241 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5242 esac 5243 5244 5245 5246 macro_version='2.2.4' 5247 macro_revision='1.2976' 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 ltmain="$ac_aux_dir/ltmain.sh" 5262 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5264 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5265 if ${ac_cv_path_SED+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267 else 5268 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5269 for ac_i in 1 2 3 4 5 6 7; do 5270 ac_script="$ac_script$as_nl$ac_script" 5271 done 5272 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5273 { ac_script=; unset ac_script;} 5274 if test -z "$SED"; then 5275 ac_path_SED_found=false 5276 # Loop through the user's path and test for each of PROGNAME-LIST 5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278 for as_dir in $PATH 5279 do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_prog in sed gsed; do 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5285 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5286 # Check for GNU ac_path_SED and select it if it is found. 5287 # Check for GNU $ac_path_SED 5288 case `"$ac_path_SED" --version 2>&1` in 5289 *GNU*) 5290 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5291 *) 5292 ac_count=0 5293 $as_echo_n 0123456789 >"conftest.in" 5294 while : 5295 do 5296 cat "conftest.in" "conftest.in" >"conftest.tmp" 5297 mv "conftest.tmp" "conftest.in" 5298 cp "conftest.in" "conftest.nl" 5299 $as_echo '' >> "conftest.nl" 5300 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5302 as_fn_arith $ac_count + 1 && ac_count=$as_val 5303 if test $ac_count -gt ${ac_path_SED_max-0}; then 5304 # Best one so far, save it but keep looking for a better one 5305 ac_cv_path_SED="$ac_path_SED" 5306 ac_path_SED_max=$ac_count 5307 fi 5308 # 10*(2^10) chars as input seems more than enough 5309 test $ac_count -gt 10 && break 5310 done 5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5312 esac 5313 5314 $ac_path_SED_found && break 3 5315 done 5316 done 5317 done 5318 IFS=$as_save_IFS 5319 if test -z "$ac_cv_path_SED"; then 5320 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5321 fi 5322 else 5323 ac_cv_path_SED=$SED 5324 fi 5325 5326 fi 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5328 $as_echo "$ac_cv_path_SED" >&6; } 5329 SED="$ac_cv_path_SED" 5330 rm -f conftest.sed 5331 5332 test -z "$SED" && SED=sed 5333 Xsed="$SED -e 1s/^X//" 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5346 $as_echo_n "checking for fgrep... " >&6; } 5347 if ${ac_cv_path_FGREP+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349 else 5350 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5351 then ac_cv_path_FGREP="$GREP -F" 5352 else 5353 if test -z "$FGREP"; then 5354 ac_path_FGREP_found=false 5355 # Loop through the user's path and test for each of PROGNAME-LIST 5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5358 do 5359 IFS=$as_save_IFS 5360 test -z "$as_dir" && as_dir=. 5361 for ac_prog in fgrep; do 5362 for ac_exec_ext in '' $ac_executable_extensions; do 5363 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5364 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5365 # Check for GNU ac_path_FGREP and select it if it is found. 5366 # Check for GNU $ac_path_FGREP 5367 case `"$ac_path_FGREP" --version 2>&1` in 5368 *GNU*) 5369 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5370 *) 5371 ac_count=0 5372 $as_echo_n 0123456789 >"conftest.in" 5373 while : 5374 do 5375 cat "conftest.in" "conftest.in" >"conftest.tmp" 5376 mv "conftest.tmp" "conftest.in" 5377 cp "conftest.in" "conftest.nl" 5378 $as_echo 'FGREP' >> "conftest.nl" 5379 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5381 as_fn_arith $ac_count + 1 && ac_count=$as_val 5382 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5383 # Best one so far, save it but keep looking for a better one 5384 ac_cv_path_FGREP="$ac_path_FGREP" 5385 ac_path_FGREP_max=$ac_count 5386 fi 5387 # 10*(2^10) chars as input seems more than enough 5388 test $ac_count -gt 10 && break 5389 done 5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5391 esac 5392 5393 $ac_path_FGREP_found && break 3 5394 done 5395 done 5396 done 5397 IFS=$as_save_IFS 5398 if test -z "$ac_cv_path_FGREP"; then 5399 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5400 fi 5401 else 5402 ac_cv_path_FGREP=$FGREP 5403 fi 5404 5405 fi 5406 fi 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5408 $as_echo "$ac_cv_path_FGREP" >&6; } 5409 FGREP="$ac_cv_path_FGREP" 5410 5411 5412 test -z "$GREP" && GREP=grep 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 # Check whether --with-gnu-ld was given. 5433 if test "${with_gnu_ld+set}" = set; then : 5434 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5435 else 5436 with_gnu_ld=no 5437 fi 5438 5439 ac_prog=ld 5440 if test "$GCC" = yes; then 5441 # Check if gcc -print-prog-name=ld gives a path. 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5443 $as_echo_n "checking for ld used by $CC... " >&6; } 5444 case $host in 5445 *-*-mingw*) 5446 # gcc leaves a trailing carriage return which upsets mingw 5447 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5448 *) 5449 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5450 esac 5451 case $ac_prog in 5452 # Accept absolute paths. 5453 [\\/]* | ?:[\\/]*) 5454 re_direlt='/[^/][^/]*/\.\./' 5455 # Canonicalize the pathname of ld 5456 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5457 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5458 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5459 done 5460 test -z "$LD" && LD="$ac_prog" 5461 ;; 5462 "") 5463 # If it fails, then pretend we aren't using GCC. 5464 ac_prog=ld 5465 ;; 5466 *) 5467 # If it is relative, then search for the first ld in PATH. 5468 with_gnu_ld=unknown 5469 ;; 5470 esac 5471 elif test "$with_gnu_ld" = yes; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5473 $as_echo_n "checking for GNU ld... " >&6; } 5474 else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5476 $as_echo_n "checking for non-GNU ld... " >&6; } 5477 fi 5478 if ${lt_cv_path_LD+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480 else 5481 if test -z "$LD"; then 5482 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5483 for ac_dir in $PATH; do 5484 IFS="$lt_save_ifs" 5485 test -z "$ac_dir" && ac_dir=. 5486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5487 lt_cv_path_LD="$ac_dir/$ac_prog" 5488 # Check to see if the program is GNU ld. I'd rather use --version, 5489 # but apparently some variants of GNU ld only accept -v. 5490 # Break only if it was the GNU/non-GNU ld that we prefer. 5491 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5492 *GNU* | *'with BFD'*) 5493 test "$with_gnu_ld" != no && break 5494 ;; 5495 *) 5496 test "$with_gnu_ld" != yes && break 5497 ;; 5498 esac 5499 fi 5500 done 5501 IFS="$lt_save_ifs" 5502 else 5503 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5504 fi 5505 fi 5506 5507 LD="$lt_cv_path_LD" 5508 if test -n "$LD"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5510 $as_echo "$LD" >&6; } 5511 else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513 $as_echo "no" >&6; } 5514 fi 5515 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5517 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5518 if ${lt_cv_prog_gnu_ld+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520 else 5521 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5522 case `$LD -v 2>&1 </dev/null` in 5523 *GNU* | *'with BFD'*) 5524 lt_cv_prog_gnu_ld=yes 5525 ;; 5526 *) 5527 lt_cv_prog_gnu_ld=no 5528 ;; 5529 esac 5530 fi 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5532 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5533 with_gnu_ld=$lt_cv_prog_gnu_ld 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5544 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5545 if ${lt_cv_path_NM+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547 else 5548 if test -n "$NM"; then 5549 # Let the user override the test. 5550 lt_cv_path_NM="$NM" 5551 else 5552 lt_nm_to_check="${ac_tool_prefix}nm" 5553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5554 lt_nm_to_check="$lt_nm_to_check nm" 5555 fi 5556 for lt_tmp_nm in $lt_nm_to_check; do 5557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5559 IFS="$lt_save_ifs" 5560 test -z "$ac_dir" && ac_dir=. 5561 tmp_nm="$ac_dir/$lt_tmp_nm" 5562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5563 # Check to see if the nm accepts a BSD-compat flag. 5564 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5565 # nm: unknown option "B" ignored 5566 # Tru64's nm complains that /dev/null is an invalid object file 5567 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5568 */dev/null* | *'Invalid file or object type'*) 5569 lt_cv_path_NM="$tmp_nm -B" 5570 break 5571 ;; 5572 *) 5573 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5574 */dev/null*) 5575 lt_cv_path_NM="$tmp_nm -p" 5576 break 5577 ;; 5578 *) 5579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5580 continue # so that we can try to find one that supports BSD flags 5581 ;; 5582 esac 5583 ;; 5584 esac 5585 fi 5586 done 5587 IFS="$lt_save_ifs" 5588 done 5589 : ${lt_cv_path_NM=no} 5590 fi 5591 fi 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5593 $as_echo "$lt_cv_path_NM" >&6; } 5594 if test "$lt_cv_path_NM" != "no"; then 5595 NM="$lt_cv_path_NM" 5596 else 5597 # Didn't find any BSD compatible name lister, look for dumpbin. 5598 if test -n "$ac_tool_prefix"; then 5599 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5600 do 5601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5604 $as_echo_n "checking for $ac_word... " >&6; } 5605 if ${ac_cv_prog_DUMPBIN+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607 else 5608 if test -n "$DUMPBIN"; then 5609 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5610 else 5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5612 for as_dir in $PATH 5613 do 5614 IFS=$as_save_IFS 5615 test -z "$as_dir" && as_dir=. 5616 for ac_exec_ext in '' $ac_executable_extensions; do 5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5620 break 2 5621 fi 5622 done 5623 done 5624 IFS=$as_save_IFS 5625 5626 fi 5627 fi 5628 DUMPBIN=$ac_cv_prog_DUMPBIN 5629 if test -n "$DUMPBIN"; then 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5631 $as_echo "$DUMPBIN" >&6; } 5632 else 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5634 $as_echo "no" >&6; } 5635 fi 5636 5637 5638 test -n "$DUMPBIN" && break 5639 done 5640 fi 5641 if test -z "$DUMPBIN"; then 5642 ac_ct_DUMPBIN=$DUMPBIN 5643 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5644 do 5645 # Extract the first word of "$ac_prog", so it can be a program name with args. 5646 set dummy $ac_prog; ac_word=$2 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648 $as_echo_n "checking for $ac_word... " >&6; } 5649 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651 else 5652 if test -n "$ac_ct_DUMPBIN"; then 5653 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5654 else 5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656 for as_dir in $PATH 5657 do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5662 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666 done 5667 done 5668 IFS=$as_save_IFS 5669 5670 fi 5671 fi 5672 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5673 if test -n "$ac_ct_DUMPBIN"; then 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5675 $as_echo "$ac_ct_DUMPBIN" >&6; } 5676 else 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5678 $as_echo "no" >&6; } 5679 fi 5680 5681 5682 test -n "$ac_ct_DUMPBIN" && break 5683 done 5684 5685 if test "x$ac_ct_DUMPBIN" = x; then 5686 DUMPBIN=":" 5687 else 5688 case $cross_compiling:$ac_tool_warned in 5689 yes:) 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5692 ac_tool_warned=yes ;; 5693 esac 5694 DUMPBIN=$ac_ct_DUMPBIN 5695 fi 5696 fi 5697 5698 5699 if test "$DUMPBIN" != ":"; then 5700 NM="$DUMPBIN" 5701 fi 5702 fi 5703 test -z "$NM" && NM=nm 5704 5705 5706 5707 5708 5709 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5711 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5712 if ${lt_cv_nm_interface+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714 else 5715 lt_cv_nm_interface="BSD nm" 5716 echo "int some_variable = 0;" > conftest.$ac_ext 5717 (eval echo "\"\$as_me:5717: $ac_compile\"" >&5) 5718 (eval "$ac_compile" 2>conftest.err) 5719 cat conftest.err >&5 5720 (eval echo "\"\$as_me:5720: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5722 cat conftest.err >&5 5723 (eval echo "\"\$as_me:5723: output\"" >&5) 5724 cat conftest.out >&5 5725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5726 lt_cv_nm_interface="MS dumpbin" 5727 fi 5728 rm -f conftest* 5729 fi 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5731 $as_echo "$lt_cv_nm_interface" >&6; } 5732 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5734 $as_echo_n "checking whether ln -s works... " >&6; } 5735 LN_S=$as_ln_s 5736 if test "$LN_S" = "ln -s"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5738 $as_echo "yes" >&6; } 5739 else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5741 $as_echo "no, using $LN_S" >&6; } 5742 fi 5743 5744 # find the maximum length of command line arguments 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5746 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5747 if ${lt_cv_sys_max_cmd_len+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749 else 5750 i=0 5751 teststring="ABCD" 5752 5753 case $build_os in 5754 msdosdjgpp*) 5755 # On DJGPP, this test can blow up pretty badly due to problems in libc 5756 # (any single argument exceeding 2000 bytes causes a buffer overrun 5757 # during glob expansion). Even if it were fixed, the result of this 5758 # check would be larger than it should be. 5759 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5760 ;; 5761 5762 gnu*) 5763 # Under GNU Hurd, this test is not required because there is 5764 # no limit to the length of command line arguments. 5765 # Libtool will interpret -1 as no limit whatsoever 5766 lt_cv_sys_max_cmd_len=-1; 5767 ;; 5768 5769 cygwin* | mingw*) 5770 # On Win9x/ME, this test blows up -- it succeeds, but takes 5771 # about 5 minutes as the teststring grows exponentially. 5772 # Worse, since 9x/ME are not pre-emptively multitasking, 5773 # you end up with a "frozen" computer, even though with patience 5774 # the test eventually succeeds (with a max line length of 256k). 5775 # Instead, let's just punt: use the minimum linelength reported by 5776 # all of the supported platforms: 8192 (on NT/2K/XP). 5777 lt_cv_sys_max_cmd_len=8192; 5778 ;; 5779 5780 amigaos*) 5781 # On AmigaOS with pdksh, this test takes hours, literally. 5782 # So we just punt and use a minimum line length of 8192. 5783 lt_cv_sys_max_cmd_len=8192; 5784 ;; 5785 5786 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5787 # This has been around since 386BSD, at least. Likely further. 5788 if test -x /sbin/sysctl; then 5789 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5790 elif test -x /usr/sbin/sysctl; then 5791 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5792 else 5793 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5794 fi 5795 # And add a safety zone 5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5798 ;; 5799 5800 interix*) 5801 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5802 lt_cv_sys_max_cmd_len=196608 5803 ;; 5804 5805 osf*) 5806 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5807 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5808 # nice to cause kernel panics so lets avoid the loop below. 5809 # First set a reasonable default. 5810 lt_cv_sys_max_cmd_len=16384 5811 # 5812 if test -x /sbin/sysconfig; then 5813 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5814 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5815 esac 5816 fi 5817 ;; 5818 sco3.2v5*) 5819 lt_cv_sys_max_cmd_len=102400 5820 ;; 5821 sysv5* | sco5v6* | sysv4.2uw2*) 5822 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5823 if test -n "$kargmax"; then 5824 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5825 else 5826 lt_cv_sys_max_cmd_len=32768 5827 fi 5828 ;; 5829 *) 5830 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5831 if test -n "$lt_cv_sys_max_cmd_len"; then 5832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5834 else 5835 # Make teststring a little bigger before we do anything with it. 5836 # a 1K string should be a reasonable start. 5837 for i in 1 2 3 4 5 6 7 8 ; do 5838 teststring=$teststring$teststring 5839 done 5840 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5841 # If test is not a shell built-in, we'll probably end up computing a 5842 # maximum length that is only half of the actual maximum length, but 5843 # we can't tell. 5844 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5845 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5846 test $i != 17 # 1/2 MB should be enough 5847 do 5848 i=`expr $i + 1` 5849 teststring=$teststring$teststring 5850 done 5851 # Only check the string length outside the loop. 5852 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5853 teststring= 5854 # Add a significant safety factor because C++ compilers can tack on 5855 # massive amounts of additional arguments before passing them to the 5856 # linker. It appears as though 1/2 is a usable value. 5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5858 fi 5859 ;; 5860 esac 5861 5862 fi 5863 5864 if test -n $lt_cv_sys_max_cmd_len ; then 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5866 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5867 else 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5869 $as_echo "none" >&6; } 5870 fi 5871 max_cmd_len=$lt_cv_sys_max_cmd_len 5872 5873 5874 5875 5876 5877 5878 : ${CP="cp -f"} 5879 : ${MV="mv -f"} 5880 : ${RM="rm -f"} 5881 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5883 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5884 # Try some XSI features 5885 xsi_shell=no 5886 ( _lt_dummy="a/b/c" 5887 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5888 = c,a/b,, \ 5889 && eval 'test $(( 1 + 1 )) -eq 2 \ 5890 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5891 && xsi_shell=yes 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5893 $as_echo "$xsi_shell" >&6; } 5894 5895 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5897 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5898 lt_shell_append=no 5899 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5900 >/dev/null 2>&1 \ 5901 && lt_shell_append=yes 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5903 $as_echo "$lt_shell_append" >&6; } 5904 5905 5906 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5907 lt_unset=unset 5908 else 5909 lt_unset=false 5910 fi 5911 5912 5913 5914 5915 5916 # test EBCDIC or ASCII 5917 case `echo X|tr X '\101'` in 5918 A) # ASCII based system 5919 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5920 lt_SP2NL='tr \040 \012' 5921 lt_NL2SP='tr \015\012 \040\040' 5922 ;; 5923 *) # EBCDIC based system 5924 lt_SP2NL='tr \100 \n' 5925 lt_NL2SP='tr \r\n \100\100' 5926 ;; 5927 esac 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5938 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5939 if ${lt_cv_ld_reload_flag+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941 else 5942 lt_cv_ld_reload_flag='-r' 5943 fi 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5945 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5946 reload_flag=$lt_cv_ld_reload_flag 5947 case $reload_flag in 5948 "" | " "*) ;; 5949 *) reload_flag=" $reload_flag" ;; 5950 esac 5951 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5952 case $host_os in 5953 darwin*) 5954 if test "$GCC" = yes; then 5955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5956 else 5957 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5958 fi 5959 ;; 5960 esac 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5972 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5973 if ${lt_cv_deplibs_check_method+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975 else 5976 lt_cv_file_magic_cmd='$MAGIC_CMD' 5977 lt_cv_file_magic_test_file= 5978 lt_cv_deplibs_check_method='unknown' 5979 # Need to set the preceding variable on all platforms that support 5980 # interlibrary dependencies. 5981 # 'none' -- dependencies not supported. 5982 # `unknown' -- same as none, but documents that we really don't know. 5983 # 'pass_all' -- all dependencies passed with no checks. 5984 # 'test_compile' -- check by making test program. 5985 # 'file_magic [[regex]]' -- check by looking for files in library path 5986 # which responds to the $file_magic_cmd with a given extended regex. 5987 # If you have `file' or equivalent on your system and you're not sure 5988 # whether `pass_all' will *always* work, you probably want this one. 5989 5990 case $host_os in 5991 aix[4-9]*) 5992 lt_cv_deplibs_check_method=pass_all 5993 ;; 5994 5995 beos*) 5996 lt_cv_deplibs_check_method=pass_all 5997 ;; 5998 5999 bsdi[45]*) 6000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6001 lt_cv_file_magic_cmd='/usr/bin/file -L' 6002 lt_cv_file_magic_test_file=/shlib/libc.so 6003 ;; 6004 6005 cygwin*) 6006 # func_win32_libid is a shell function defined in ltmain.sh 6007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6008 lt_cv_file_magic_cmd='func_win32_libid' 6009 ;; 6010 6011 mingw* | pw32*) 6012 # Base MSYS/MinGW do not provide the 'file' command needed by 6013 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6014 # unless we find 'file', for example because we are cross-compiling. 6015 if ( file / ) >/dev/null 2>&1; then 6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6017 lt_cv_file_magic_cmd='func_win32_libid' 6018 else 6019 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6020 lt_cv_file_magic_cmd='$OBJDUMP -f' 6021 fi 6022 ;; 6023 6024 darwin* | rhapsody*) 6025 lt_cv_deplibs_check_method=pass_all 6026 ;; 6027 6028 freebsd* | dragonfly*) 6029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6030 case $host_cpu in 6031 i*86 ) 6032 # Not sure whether the presence of OpenBSD here was a mistake. 6033 # Let's accept both of them until this is cleared up. 6034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6035 lt_cv_file_magic_cmd=/usr/bin/file 6036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6037 ;; 6038 esac 6039 else 6040 lt_cv_deplibs_check_method=pass_all 6041 fi 6042 ;; 6043 6044 gnu*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048 hpux10.20* | hpux11*) 6049 lt_cv_file_magic_cmd=/usr/bin/file 6050 case $host_cpu in 6051 ia64*) 6052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6054 ;; 6055 hppa*64*) 6056 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]' 6057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6058 ;; 6059 *) 6060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6061 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6062 ;; 6063 esac 6064 ;; 6065 6066 interix[3-9]*) 6067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6069 ;; 6070 6071 irix5* | irix6* | nonstopux*) 6072 case $LD in 6073 *-32|*"-32 ") libmagic=32-bit;; 6074 *-n32|*"-n32 ") libmagic=N32;; 6075 *-64|*"-64 ") libmagic=64-bit;; 6076 *) libmagic=never-match;; 6077 esac 6078 lt_cv_deplibs_check_method=pass_all 6079 ;; 6080 6081 # This must be Linux ELF. 6082 linux* | k*bsd*-gnu) 6083 lt_cv_deplibs_check_method=pass_all 6084 ;; 6085 6086 netbsd*) 6087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6089 else 6090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6091 fi 6092 ;; 6093 6094 newos6*) 6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6096 lt_cv_file_magic_cmd=/usr/bin/file 6097 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6098 ;; 6099 6100 *nto* | *qnx*) 6101 lt_cv_deplibs_check_method=pass_all 6102 ;; 6103 6104 openbsd*) 6105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6107 else 6108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6109 fi 6110 ;; 6111 6112 osf3* | osf4* | osf5*) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116 rdos*) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120 solaris*) 6121 lt_cv_deplibs_check_method=pass_all 6122 ;; 6123 6124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 6128 sysv4 | sysv4.3*) 6129 case $host_vendor in 6130 motorola) 6131 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]' 6132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6133 ;; 6134 ncr) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 sequent) 6138 lt_cv_file_magic_cmd='/bin/file' 6139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6140 ;; 6141 sni) 6142 lt_cv_file_magic_cmd='/bin/file' 6143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6144 lt_cv_file_magic_test_file=/lib/libc.so 6145 ;; 6146 siemens) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 pc) 6150 lt_cv_deplibs_check_method=pass_all 6151 ;; 6152 esac 6153 ;; 6154 6155 tpf*) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 esac 6159 6160 fi 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6162 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6163 file_magic_cmd=$lt_cv_file_magic_cmd 6164 deplibs_check_method=$lt_cv_deplibs_check_method 6165 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 if test -n "$ac_tool_prefix"; then 6179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6180 set dummy ${ac_tool_prefix}ar; ac_word=$2 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182 $as_echo_n "checking for $ac_word... " >&6; } 6183 if ${ac_cv_prog_AR+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185 else 6186 if test -n "$AR"; then 6187 ac_cv_prog_AR="$AR" # Let the user override the test. 6188 else 6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190 for as_dir in $PATH 6191 do 6192 IFS=$as_save_IFS 6193 test -z "$as_dir" && as_dir=. 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6196 ac_cv_prog_AR="${ac_tool_prefix}ar" 6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200 done 6201 done 6202 IFS=$as_save_IFS 6203 6204 fi 6205 fi 6206 AR=$ac_cv_prog_AR 6207 if test -n "$AR"; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6209 $as_echo "$AR" >&6; } 6210 else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212 $as_echo "no" >&6; } 6213 fi 6214 6215 6216 fi 6217 if test -z "$ac_cv_prog_AR"; then 6218 ac_ct_AR=$AR 6219 # Extract the first word of "ar", so it can be a program name with args. 6220 set dummy ar; ac_word=$2 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222 $as_echo_n "checking for $ac_word... " >&6; } 6223 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225 else 6226 if test -n "$ac_ct_AR"; then 6227 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6228 else 6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230 for as_dir in $PATH 6231 do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6236 ac_cv_prog_ac_ct_AR="ar" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240 done 6241 done 6242 IFS=$as_save_IFS 6243 6244 fi 6245 fi 6246 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6247 if test -n "$ac_ct_AR"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6249 $as_echo "$ac_ct_AR" >&6; } 6250 else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252 $as_echo "no" >&6; } 6253 fi 6254 6255 if test "x$ac_ct_AR" = x; then 6256 AR="false" 6257 else 6258 case $cross_compiling:$ac_tool_warned in 6259 yes:) 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6262 ac_tool_warned=yes ;; 6263 esac 6264 AR=$ac_ct_AR 6265 fi 6266 else 6267 AR="$ac_cv_prog_AR" 6268 fi 6269 6270 test -z "$AR" && AR=ar 6271 test -z "$AR_FLAGS" && AR_FLAGS=cru 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 if test -n "$ac_tool_prefix"; then 6284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6285 set dummy ${ac_tool_prefix}strip; ac_word=$2 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6287 $as_echo_n "checking for $ac_word... " >&6; } 6288 if ${ac_cv_prog_STRIP+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290 else 6291 if test -n "$STRIP"; then 6292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6293 else 6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295 for as_dir in $PATH 6296 do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6301 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305 done 6306 done 6307 IFS=$as_save_IFS 6308 6309 fi 6310 fi 6311 STRIP=$ac_cv_prog_STRIP 6312 if test -n "$STRIP"; then 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6314 $as_echo "$STRIP" >&6; } 6315 else 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6317 $as_echo "no" >&6; } 6318 fi 6319 6320 6321 fi 6322 if test -z "$ac_cv_prog_STRIP"; then 6323 ac_ct_STRIP=$STRIP 6324 # Extract the first word of "strip", so it can be a program name with args. 6325 set dummy strip; ac_word=$2 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327 $as_echo_n "checking for $ac_word... " >&6; } 6328 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330 else 6331 if test -n "$ac_ct_STRIP"; then 6332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6333 else 6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6335 for as_dir in $PATH 6336 do 6337 IFS=$as_save_IFS 6338 test -z "$as_dir" && as_dir=. 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6341 ac_cv_prog_ac_ct_STRIP="strip" 6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345 done 6346 done 6347 IFS=$as_save_IFS 6348 6349 fi 6350 fi 6351 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6352 if test -n "$ac_ct_STRIP"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6354 $as_echo "$ac_ct_STRIP" >&6; } 6355 else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357 $as_echo "no" >&6; } 6358 fi 6359 6360 if test "x$ac_ct_STRIP" = x; then 6361 STRIP=":" 6362 else 6363 case $cross_compiling:$ac_tool_warned in 6364 yes:) 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6367 ac_tool_warned=yes ;; 6368 esac 6369 STRIP=$ac_ct_STRIP 6370 fi 6371 else 6372 STRIP="$ac_cv_prog_STRIP" 6373 fi 6374 6375 test -z "$STRIP" && STRIP=: 6376 6377 6378 6379 6380 6381 6382 if test -n "$ac_tool_prefix"; then 6383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6386 $as_echo_n "checking for $ac_word... " >&6; } 6387 if ${ac_cv_prog_RANLIB+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389 else 6390 if test -n "$RANLIB"; then 6391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6392 else 6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6394 for as_dir in $PATH 6395 do 6396 IFS=$as_save_IFS 6397 test -z "$as_dir" && as_dir=. 6398 for ac_exec_ext in '' $ac_executable_extensions; do 6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6402 break 2 6403 fi 6404 done 6405 done 6406 IFS=$as_save_IFS 6407 6408 fi 6409 fi 6410 RANLIB=$ac_cv_prog_RANLIB 6411 if test -n "$RANLIB"; then 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6413 $as_echo "$RANLIB" >&6; } 6414 else 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6416 $as_echo "no" >&6; } 6417 fi 6418 6419 6420 fi 6421 if test -z "$ac_cv_prog_RANLIB"; then 6422 ac_ct_RANLIB=$RANLIB 6423 # Extract the first word of "ranlib", so it can be a program name with args. 6424 set dummy ranlib; ac_word=$2 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6426 $as_echo_n "checking for $ac_word... " >&6; } 6427 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429 else 6430 if test -n "$ac_ct_RANLIB"; then 6431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6432 else 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6440 ac_cv_prog_ac_ct_RANLIB="ranlib" 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 fi 6449 fi 6450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6451 if test -n "$ac_ct_RANLIB"; then 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6453 $as_echo "$ac_ct_RANLIB" >&6; } 6454 else 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456 $as_echo "no" >&6; } 6457 fi 6458 6459 if test "x$ac_ct_RANLIB" = x; then 6460 RANLIB=":" 6461 else 6462 case $cross_compiling:$ac_tool_warned in 6463 yes:) 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6466 ac_tool_warned=yes ;; 6467 esac 6468 RANLIB=$ac_ct_RANLIB 6469 fi 6470 else 6471 RANLIB="$ac_cv_prog_RANLIB" 6472 fi 6473 6474 test -z "$RANLIB" && RANLIB=: 6475 6476 6477 6478 6479 6480 6481 # Determine commands to create old-style static archives. 6482 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6483 old_postinstall_cmds='chmod 644 $oldlib' 6484 old_postuninstall_cmds= 6485 6486 if test -n "$RANLIB"; then 6487 case $host_os in 6488 openbsd*) 6489 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6490 ;; 6491 *) 6492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6493 ;; 6494 esac 6495 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6496 fi 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 # If no C compiler was specified, use CC. 6532 LTCC=${LTCC-"$CC"} 6533 6534 # If no C compiler flags were specified, use CFLAGS. 6535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6536 6537 # Allow CC to be a program name with arguments. 6538 compiler=$CC 6539 6540 6541 # Check for command to grab the raw symbol name followed by C symbol from nm. 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6543 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6544 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6545 $as_echo_n "(cached) " >&6 6546 else 6547 6548 # These are sane defaults that work on at least a few old systems. 6549 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6550 6551 # Character class describing NM global symbol codes. 6552 symcode='[BCDEGRST]' 6553 6554 # Regexp to match symbols that can be accessed directly from C. 6555 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6556 6557 # Define system-specific variables. 6558 case $host_os in 6559 aix*) 6560 symcode='[BCDT]' 6561 ;; 6562 cygwin* | mingw* | pw32*) 6563 symcode='[ABCDGISTW]' 6564 ;; 6565 hpux*) 6566 if test "$host_cpu" = ia64; then 6567 symcode='[ABCDEGRST]' 6568 fi 6569 ;; 6570 irix* | nonstopux*) 6571 symcode='[BCDEGRST]' 6572 ;; 6573 osf*) 6574 symcode='[BCDEGQRST]' 6575 ;; 6576 solaris*) 6577 symcode='[BDRT]' 6578 ;; 6579 sco3.2v5*) 6580 symcode='[DT]' 6581 ;; 6582 sysv4.2uw2*) 6583 symcode='[DT]' 6584 ;; 6585 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6586 symcode='[ABDT]' 6587 ;; 6588 sysv4) 6589 symcode='[DFNSTU]' 6590 ;; 6591 esac 6592 6593 # If we're using GNU nm, then use its standard symbol codes. 6594 case `$NM -V 2>&1` in 6595 *GNU* | *'with BFD'*) 6596 symcode='[ABCDGIRSTW]' ;; 6597 esac 6598 6599 # Transform an extracted symbol line into a proper C declaration. 6600 # Some systems (esp. on ia64) link data and code symbols differently, 6601 # so use this general approach. 6602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6603 6604 # Transform an extracted symbol line into symbol name and symbol address 6605 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6606 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'" 6607 6608 # Handle CRLF in mingw tool chain 6609 opt_cr= 6610 case $build_os in 6611 mingw*) 6612 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6613 ;; 6614 esac 6615 6616 # Try without a prefix underscore, then with it. 6617 for ac_symprfx in "" "_"; do 6618 6619 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6620 symxfrm="\\1 $ac_symprfx\\2 \\2" 6621 6622 # Write the raw and C identifiers. 6623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6624 # Fake it for dumpbin and say T for any non-static function 6625 # and D for any global variable. 6626 # Also find C++ and __fastcall symbols from MSVC++, 6627 # which start with @ or ?. 6628 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6629 " {last_section=section; section=\$ 3};"\ 6630 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6631 " \$ 0!~/External *\|/{next};"\ 6632 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6633 " {if(hide[section]) next};"\ 6634 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6635 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6636 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6637 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6638 " ' prfx=^$ac_symprfx" 6639 else 6640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6641 fi 6642 6643 # Check to see that the pipe works correctly. 6644 pipe_works=no 6645 6646 rm -f conftest* 6647 cat > conftest.$ac_ext <<_LT_EOF 6648 #ifdef __cplusplus 6649 extern "C" { 6650 #endif 6651 char nm_test_var; 6652 void nm_test_func(void); 6653 void nm_test_func(void){} 6654 #ifdef __cplusplus 6655 } 6656 #endif 6657 int main(){nm_test_var='a';nm_test_func();return(0);} 6658 _LT_EOF 6659 6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6661 (eval $ac_compile) 2>&5 6662 ac_status=$? 6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6664 test $ac_status = 0; }; then 6665 # Now try to grab the symbols. 6666 nlist=conftest.nm 6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6669 ac_status=$? 6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6671 test $ac_status = 0; } && test -s "$nlist"; then 6672 # Try sorting and uniquifying the output. 6673 if sort "$nlist" | uniq > "$nlist"T; then 6674 mv -f "$nlist"T "$nlist" 6675 else 6676 rm -f "$nlist"T 6677 fi 6678 6679 # Make sure that we snagged all the symbols we need. 6680 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6681 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6682 cat <<_LT_EOF > conftest.$ac_ext 6683 #ifdef __cplusplus 6684 extern "C" { 6685 #endif 6686 6687 _LT_EOF 6688 # Now generate the symbol file. 6689 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6690 6691 cat <<_LT_EOF >> conftest.$ac_ext 6692 6693 /* The mapping between symbol names and symbols. */ 6694 const struct { 6695 const char *name; 6696 void *address; 6697 } 6698 lt__PROGRAM__LTX_preloaded_symbols[] = 6699 { 6700 { "@PROGRAM@", (void *) 0 }, 6701 _LT_EOF 6702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6703 cat <<\_LT_EOF >> conftest.$ac_ext 6704 {0, (void *) 0} 6705 }; 6706 6707 /* This works around a problem in FreeBSD linker */ 6708 #ifdef FREEBSD_WORKAROUND 6709 static const void *lt_preloaded_setup() { 6710 return lt__PROGRAM__LTX_preloaded_symbols; 6711 } 6712 #endif 6713 6714 #ifdef __cplusplus 6715 } 6716 #endif 6717 _LT_EOF 6718 # Now try linking the two files. 6719 mv conftest.$ac_objext conftstm.$ac_objext 6720 lt_save_LIBS="$LIBS" 6721 lt_save_CFLAGS="$CFLAGS" 6722 LIBS="conftstm.$ac_objext" 6723 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6725 (eval $ac_link) 2>&5 6726 ac_status=$? 6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6728 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6729 pipe_works=yes 6730 fi 6731 LIBS="$lt_save_LIBS" 6732 CFLAGS="$lt_save_CFLAGS" 6733 else 6734 echo "cannot find nm_test_func in $nlist" >&5 6735 fi 6736 else 6737 echo "cannot find nm_test_var in $nlist" >&5 6738 fi 6739 else 6740 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6741 fi 6742 else 6743 echo "$progname: failed program was:" >&5 6744 cat conftest.$ac_ext >&5 6745 fi 6746 rm -rf conftest* conftst* 6747 6748 # Do not use the global_symbol_pipe unless it works. 6749 if test "$pipe_works" = yes; then 6750 break 6751 else 6752 lt_cv_sys_global_symbol_pipe= 6753 fi 6754 done 6755 6756 fi 6757 6758 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6759 lt_cv_sys_global_symbol_to_cdecl= 6760 fi 6761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6763 $as_echo "failed" >&6; } 6764 else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6766 $as_echo "ok" >&6; } 6767 fi 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 # Check whether --enable-libtool-lock was given. 6792 if test "${enable_libtool_lock+set}" = set; then : 6793 enableval=$enable_libtool_lock; 6794 fi 6795 6796 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6797 6798 # Some flags need to be propagated to the compiler or linker for good 6799 # libtool support. 6800 case $host in 6801 ia64-*-hpux*) 6802 # Find out which ABI we are using. 6803 echo 'int i;' > conftest.$ac_ext 6804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6805 (eval $ac_compile) 2>&5 6806 ac_status=$? 6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6808 test $ac_status = 0; }; then 6809 case `/usr/bin/file conftest.$ac_objext` in 6810 *ELF-32*) 6811 HPUX_IA64_MODE="32" 6812 ;; 6813 *ELF-64*) 6814 HPUX_IA64_MODE="64" 6815 ;; 6816 esac 6817 fi 6818 rm -rf conftest* 6819 ;; 6820 *-*-irix6*) 6821 # Find out which ABI we are using. 6822 echo '#line 6822 "configure"' > conftest.$ac_ext 6823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6824 (eval $ac_compile) 2>&5 6825 ac_status=$? 6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6827 test $ac_status = 0; }; then 6828 if test "$lt_cv_prog_gnu_ld" = yes; then 6829 case `/usr/bin/file conftest.$ac_objext` in 6830 *32-bit*) 6831 LD="${LD-ld} -melf32bsmip" 6832 ;; 6833 *N32*) 6834 LD="${LD-ld} -melf32bmipn32" 6835 ;; 6836 *64-bit*) 6837 LD="${LD-ld} -melf64bmip" 6838 ;; 6839 esac 6840 else 6841 case `/usr/bin/file conftest.$ac_objext` in 6842 *32-bit*) 6843 LD="${LD-ld} -32" 6844 ;; 6845 *N32*) 6846 LD="${LD-ld} -n32" 6847 ;; 6848 *64-bit*) 6849 LD="${LD-ld} -64" 6850 ;; 6851 esac 6852 fi 6853 fi 6854 rm -rf conftest* 6855 ;; 6856 6857 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6858 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6859 # Find out which ABI we are using. 6860 echo 'int i;' > conftest.$ac_ext 6861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6862 (eval $ac_compile) 2>&5 6863 ac_status=$? 6864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6865 test $ac_status = 0; }; then 6866 case `/usr/bin/file conftest.o` in 6867 *32-bit*) 6868 case $host in 6869 x86_64-*kfreebsd*-gnu) 6870 LD="${LD-ld} -m elf_i386_fbsd" 6871 ;; 6872 x86_64-*linux*) 6873 LD="${LD-ld} -m elf_i386" 6874 ;; 6875 ppc64-*linux*|powerpc64-*linux*) 6876 LD="${LD-ld} -m elf32ppclinux" 6877 ;; 6878 s390x-*linux*) 6879 LD="${LD-ld} -m elf_s390" 6880 ;; 6881 sparc64-*linux*) 6882 LD="${LD-ld} -m elf32_sparc" 6883 ;; 6884 esac 6885 ;; 6886 *64-bit*) 6887 case $host in 6888 x86_64-*kfreebsd*-gnu) 6889 LD="${LD-ld} -m elf_x86_64_fbsd" 6890 ;; 6891 x86_64-*linux*) 6892 LD="${LD-ld} -m elf_x86_64" 6893 ;; 6894 ppc*-*linux*|powerpc*-*linux*) 6895 LD="${LD-ld} -m elf64ppc" 6896 ;; 6897 s390*-*linux*|s390*-*tpf*) 6898 LD="${LD-ld} -m elf64_s390" 6899 ;; 6900 sparc*-*linux*) 6901 LD="${LD-ld} -m elf64_sparc" 6902 ;; 6903 esac 6904 ;; 6905 esac 6906 fi 6907 rm -rf conftest* 6908 ;; 6909 6910 *-*-sco3.2v5*) 6911 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6912 SAVE_CFLAGS="$CFLAGS" 6913 CFLAGS="$CFLAGS -belf" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6915 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6916 if ${lt_cv_cc_needs_belf+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918 else 6919 ac_ext=c 6920 ac_cpp='$CPP $CPPFLAGS' 6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6924 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926 /* end confdefs.h. */ 6927 6928 int 6929 main () 6930 { 6931 6932 ; 6933 return 0; 6934 } 6935 _ACEOF 6936 if ac_fn_c_try_link "$LINENO"; then : 6937 lt_cv_cc_needs_belf=yes 6938 else 6939 lt_cv_cc_needs_belf=no 6940 fi 6941 rm -f core conftest.err conftest.$ac_objext \ 6942 conftest$ac_exeext conftest.$ac_ext 6943 ac_ext=c 6944 ac_cpp='$CPP $CPPFLAGS' 6945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6947 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6948 6949 fi 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6951 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6954 CFLAGS="$SAVE_CFLAGS" 6955 fi 6956 ;; 6957 sparc*-*solaris*) 6958 # Find out which ABI we are using. 6959 echo 'int i;' > conftest.$ac_ext 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6961 (eval $ac_compile) 2>&5 6962 ac_status=$? 6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6964 test $ac_status = 0; }; then 6965 case `/usr/bin/file conftest.o` in 6966 *64-bit*) 6967 case $lt_cv_prog_gnu_ld in 6968 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6969 *) 6970 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6971 LD="${LD-ld} -64" 6972 fi 6973 ;; 6974 esac 6975 ;; 6976 esac 6977 fi 6978 rm -rf conftest* 6979 ;; 6980 esac 6981 6982 need_locks="$enable_libtool_lock" 6983 6984 6985 case $host_os in 6986 rhapsody* | darwin*) 6987 if test -n "$ac_tool_prefix"; then 6988 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6989 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991 $as_echo_n "checking for $ac_word... " >&6; } 6992 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994 else 6995 if test -n "$DSYMUTIL"; then 6996 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6997 else 6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999 for as_dir in $PATH 7000 do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7005 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009 done 7010 done 7011 IFS=$as_save_IFS 7012 7013 fi 7014 fi 7015 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7016 if test -n "$DSYMUTIL"; then 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7018 $as_echo "$DSYMUTIL" >&6; } 7019 else 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7021 $as_echo "no" >&6; } 7022 fi 7023 7024 7025 fi 7026 if test -z "$ac_cv_prog_DSYMUTIL"; then 7027 ac_ct_DSYMUTIL=$DSYMUTIL 7028 # Extract the first word of "dsymutil", so it can be a program name with args. 7029 set dummy dsymutil; ac_word=$2 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031 $as_echo_n "checking for $ac_word... " >&6; } 7032 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034 else 7035 if test -n "$ac_ct_DSYMUTIL"; then 7036 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7037 else 7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039 for as_dir in $PATH 7040 do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7045 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049 done 7050 done 7051 IFS=$as_save_IFS 7052 7053 fi 7054 fi 7055 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7056 if test -n "$ac_ct_DSYMUTIL"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7058 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7059 else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061 $as_echo "no" >&6; } 7062 fi 7063 7064 if test "x$ac_ct_DSYMUTIL" = x; then 7065 DSYMUTIL=":" 7066 else 7067 case $cross_compiling:$ac_tool_warned in 7068 yes:) 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7071 ac_tool_warned=yes ;; 7072 esac 7073 DSYMUTIL=$ac_ct_DSYMUTIL 7074 fi 7075 else 7076 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7077 fi 7078 7079 if test -n "$ac_tool_prefix"; then 7080 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7081 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7083 $as_echo_n "checking for $ac_word... " >&6; } 7084 if ${ac_cv_prog_NMEDIT+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086 else 7087 if test -n "$NMEDIT"; then 7088 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7089 else 7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091 for as_dir in $PATH 7092 do 7093 IFS=$as_save_IFS 7094 test -z "$as_dir" && as_dir=. 7095 for ac_exec_ext in '' $ac_executable_extensions; do 7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7097 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7099 break 2 7100 fi 7101 done 7102 done 7103 IFS=$as_save_IFS 7104 7105 fi 7106 fi 7107 NMEDIT=$ac_cv_prog_NMEDIT 7108 if test -n "$NMEDIT"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7110 $as_echo "$NMEDIT" >&6; } 7111 else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113 $as_echo "no" >&6; } 7114 fi 7115 7116 7117 fi 7118 if test -z "$ac_cv_prog_NMEDIT"; then 7119 ac_ct_NMEDIT=$NMEDIT 7120 # Extract the first word of "nmedit", so it can be a program name with args. 7121 set dummy nmedit; ac_word=$2 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7123 $as_echo_n "checking for $ac_word... " >&6; } 7124 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126 else 7127 if test -n "$ac_ct_NMEDIT"; then 7128 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7129 else 7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7131 for as_dir in $PATH 7132 do 7133 IFS=$as_save_IFS 7134 test -z "$as_dir" && as_dir=. 7135 for ac_exec_ext in '' $ac_executable_extensions; do 7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7137 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7139 break 2 7140 fi 7141 done 7142 done 7143 IFS=$as_save_IFS 7144 7145 fi 7146 fi 7147 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7148 if test -n "$ac_ct_NMEDIT"; then 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7150 $as_echo "$ac_ct_NMEDIT" >&6; } 7151 else 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7153 $as_echo "no" >&6; } 7154 fi 7155 7156 if test "x$ac_ct_NMEDIT" = x; then 7157 NMEDIT=":" 7158 else 7159 case $cross_compiling:$ac_tool_warned in 7160 yes:) 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7163 ac_tool_warned=yes ;; 7164 esac 7165 NMEDIT=$ac_ct_NMEDIT 7166 fi 7167 else 7168 NMEDIT="$ac_cv_prog_NMEDIT" 7169 fi 7170 7171 if test -n "$ac_tool_prefix"; then 7172 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7173 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175 $as_echo_n "checking for $ac_word... " >&6; } 7176 if ${ac_cv_prog_LIPO+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178 else 7179 if test -n "$LIPO"; then 7180 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7181 else 7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183 for as_dir in $PATH 7184 do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7189 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193 done 7194 done 7195 IFS=$as_save_IFS 7196 7197 fi 7198 fi 7199 LIPO=$ac_cv_prog_LIPO 7200 if test -n "$LIPO"; then 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7202 $as_echo "$LIPO" >&6; } 7203 else 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7205 $as_echo "no" >&6; } 7206 fi 7207 7208 7209 fi 7210 if test -z "$ac_cv_prog_LIPO"; then 7211 ac_ct_LIPO=$LIPO 7212 # Extract the first word of "lipo", so it can be a program name with args. 7213 set dummy lipo; ac_word=$2 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7215 $as_echo_n "checking for $ac_word... " >&6; } 7216 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218 else 7219 if test -n "$ac_ct_LIPO"; then 7220 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7221 else 7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7223 for as_dir in $PATH 7224 do 7225 IFS=$as_save_IFS 7226 test -z "$as_dir" && as_dir=. 7227 for ac_exec_ext in '' $ac_executable_extensions; do 7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7229 ac_cv_prog_ac_ct_LIPO="lipo" 7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7231 break 2 7232 fi 7233 done 7234 done 7235 IFS=$as_save_IFS 7236 7237 fi 7238 fi 7239 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7240 if test -n "$ac_ct_LIPO"; then 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7242 $as_echo "$ac_ct_LIPO" >&6; } 7243 else 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7245 $as_echo "no" >&6; } 7246 fi 7247 7248 if test "x$ac_ct_LIPO" = x; then 7249 LIPO=":" 7250 else 7251 case $cross_compiling:$ac_tool_warned in 7252 yes:) 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7255 ac_tool_warned=yes ;; 7256 esac 7257 LIPO=$ac_ct_LIPO 7258 fi 7259 else 7260 LIPO="$ac_cv_prog_LIPO" 7261 fi 7262 7263 if test -n "$ac_tool_prefix"; then 7264 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7265 set dummy ${ac_tool_prefix}otool; ac_word=$2 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267 $as_echo_n "checking for $ac_word... " >&6; } 7268 if ${ac_cv_prog_OTOOL+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270 else 7271 if test -n "$OTOOL"; then 7272 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7273 else 7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7275 for as_dir in $PATH 7276 do 7277 IFS=$as_save_IFS 7278 test -z "$as_dir" && as_dir=. 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7281 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7283 break 2 7284 fi 7285 done 7286 done 7287 IFS=$as_save_IFS 7288 7289 fi 7290 fi 7291 OTOOL=$ac_cv_prog_OTOOL 7292 if test -n "$OTOOL"; then 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7294 $as_echo "$OTOOL" >&6; } 7295 else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297 $as_echo "no" >&6; } 7298 fi 7299 7300 7301 fi 7302 if test -z "$ac_cv_prog_OTOOL"; then 7303 ac_ct_OTOOL=$OTOOL 7304 # Extract the first word of "otool", so it can be a program name with args. 7305 set dummy otool; ac_word=$2 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7307 $as_echo_n "checking for $ac_word... " >&6; } 7308 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310 else 7311 if test -n "$ac_ct_OTOOL"; then 7312 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7313 else 7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315 for as_dir in $PATH 7316 do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7321 ac_cv_prog_ac_ct_OTOOL="otool" 7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7323 break 2 7324 fi 7325 done 7326 done 7327 IFS=$as_save_IFS 7328 7329 fi 7330 fi 7331 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7332 if test -n "$ac_ct_OTOOL"; then 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7334 $as_echo "$ac_ct_OTOOL" >&6; } 7335 else 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7337 $as_echo "no" >&6; } 7338 fi 7339 7340 if test "x$ac_ct_OTOOL" = x; then 7341 OTOOL=":" 7342 else 7343 case $cross_compiling:$ac_tool_warned in 7344 yes:) 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7347 ac_tool_warned=yes ;; 7348 esac 7349 OTOOL=$ac_ct_OTOOL 7350 fi 7351 else 7352 OTOOL="$ac_cv_prog_OTOOL" 7353 fi 7354 7355 if test -n "$ac_tool_prefix"; then 7356 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7357 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359 $as_echo_n "checking for $ac_word... " >&6; } 7360 if ${ac_cv_prog_OTOOL64+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362 else 7363 if test -n "$OTOOL64"; then 7364 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7365 else 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367 for as_dir in $PATH 7368 do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7373 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377 done 7378 done 7379 IFS=$as_save_IFS 7380 7381 fi 7382 fi 7383 OTOOL64=$ac_cv_prog_OTOOL64 7384 if test -n "$OTOOL64"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7386 $as_echo "$OTOOL64" >&6; } 7387 else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389 $as_echo "no" >&6; } 7390 fi 7391 7392 7393 fi 7394 if test -z "$ac_cv_prog_OTOOL64"; then 7395 ac_ct_OTOOL64=$OTOOL64 7396 # Extract the first word of "otool64", so it can be a program name with args. 7397 set dummy otool64; ac_word=$2 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7399 $as_echo_n "checking for $ac_word... " >&6; } 7400 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7401 $as_echo_n "(cached) " >&6 7402 else 7403 if test -n "$ac_ct_OTOOL64"; then 7404 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7405 else 7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7407 for as_dir in $PATH 7408 do 7409 IFS=$as_save_IFS 7410 test -z "$as_dir" && as_dir=. 7411 for ac_exec_ext in '' $ac_executable_extensions; do 7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7413 ac_cv_prog_ac_ct_OTOOL64="otool64" 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7415 break 2 7416 fi 7417 done 7418 done 7419 IFS=$as_save_IFS 7420 7421 fi 7422 fi 7423 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7424 if test -n "$ac_ct_OTOOL64"; then 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7426 $as_echo "$ac_ct_OTOOL64" >&6; } 7427 else 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7429 $as_echo "no" >&6; } 7430 fi 7431 7432 if test "x$ac_ct_OTOOL64" = x; then 7433 OTOOL64=":" 7434 else 7435 case $cross_compiling:$ac_tool_warned in 7436 yes:) 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7439 ac_tool_warned=yes ;; 7440 esac 7441 OTOOL64=$ac_ct_OTOOL64 7442 fi 7443 else 7444 OTOOL64="$ac_cv_prog_OTOOL64" 7445 fi 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7474 $as_echo_n "checking for -single_module linker flag... " >&6; } 7475 if ${lt_cv_apple_cc_single_mod+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477 else 7478 lt_cv_apple_cc_single_mod=no 7479 if test -z "${LT_MULTI_MODULE}"; then 7480 # By default we will add the -single_module flag. You can override 7481 # by either setting the environment variable LT_MULTI_MODULE 7482 # non-empty at configure time, or by adding -multi_module to the 7483 # link flags. 7484 rm -rf libconftest.dylib* 7485 echo "int foo(void){return 1;}" > conftest.c 7486 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7487 -dynamiclib -Wl,-single_module conftest.c" >&5 7488 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7489 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7490 _lt_result=$? 7491 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7492 lt_cv_apple_cc_single_mod=yes 7493 else 7494 cat conftest.err >&5 7495 fi 7496 rm -rf libconftest.dylib* 7497 rm -f conftest.* 7498 fi 7499 fi 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7501 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7503 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7504 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506 else 7507 lt_cv_ld_exported_symbols_list=no 7508 save_LDFLAGS=$LDFLAGS 7509 echo "_main" > conftest.sym 7510 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512 /* end confdefs.h. */ 7513 7514 int 7515 main () 7516 { 7517 7518 ; 7519 return 0; 7520 } 7521 _ACEOF 7522 if ac_fn_c_try_link "$LINENO"; then : 7523 lt_cv_ld_exported_symbols_list=yes 7524 else 7525 lt_cv_ld_exported_symbols_list=no 7526 fi 7527 rm -f core conftest.err conftest.$ac_objext \ 7528 conftest$ac_exeext conftest.$ac_ext 7529 LDFLAGS="$save_LDFLAGS" 7530 7531 fi 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7533 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7534 case $host_os in 7535 rhapsody* | darwin1.[012]) 7536 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7537 darwin1.*) 7538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7539 darwin*) # darwin 5.x on 7540 # if running on 10.5 or later, the deployment target defaults 7541 # to the OS version, if on x86, and 10.4, the deployment 7542 # target defaults to 10.4. Don't you love it? 7543 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7544 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7546 10.[012]*) 7547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7548 10.*) 7549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7550 esac 7551 ;; 7552 esac 7553 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7554 _lt_dar_single_mod='$single_module' 7555 fi 7556 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7557 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7558 else 7559 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7560 fi 7561 if test "$DSYMUTIL" != ":"; then 7562 _lt_dsymutil='~$DSYMUTIL $lib || :' 7563 else 7564 _lt_dsymutil= 7565 fi 7566 ;; 7567 esac 7568 7569 for ac_header in dlfcn.h 7570 do : 7571 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7572 " 7573 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7574 cat >>confdefs.h <<_ACEOF 7575 #define HAVE_DLFCN_H 1 7576 _ACEOF 7577 7578 fi 7579 7580 done 7581 7582 7583 7584 ac_ext=cpp 7585 ac_cpp='$CXXCPP $CPPFLAGS' 7586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7589 if test -z "$CXX"; then 7590 if test -n "$CCC"; then 7591 CXX=$CCC 7592 else 7593 if test -n "$ac_tool_prefix"; then 7594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7595 do 7596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7599 $as_echo_n "checking for $ac_word... " >&6; } 7600 if ${ac_cv_prog_CXX+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602 else 7603 if test -n "$CXX"; then 7604 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7605 else 7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7607 for as_dir in $PATH 7608 do 7609 IFS=$as_save_IFS 7610 test -z "$as_dir" && as_dir=. 7611 for ac_exec_ext in '' $ac_executable_extensions; do 7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7615 break 2 7616 fi 7617 done 7618 done 7619 IFS=$as_save_IFS 7620 7621 fi 7622 fi 7623 CXX=$ac_cv_prog_CXX 7624 if test -n "$CXX"; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7626 $as_echo "$CXX" >&6; } 7627 else 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629 $as_echo "no" >&6; } 7630 fi 7631 7632 7633 test -n "$CXX" && break 7634 done 7635 fi 7636 if test -z "$CXX"; then 7637 ac_ct_CXX=$CXX 7638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7639 do 7640 # Extract the first word of "$ac_prog", so it can be a program name with args. 7641 set dummy $ac_prog; ac_word=$2 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7643 $as_echo_n "checking for $ac_word... " >&6; } 7644 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646 else 7647 if test -n "$ac_ct_CXX"; then 7648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7649 else 7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651 for as_dir in $PATH 7652 do 7653 IFS=$as_save_IFS 7654 test -z "$as_dir" && as_dir=. 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7657 ac_cv_prog_ac_ct_CXX="$ac_prog" 7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661 done 7662 done 7663 IFS=$as_save_IFS 7664 7665 fi 7666 fi 7667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7668 if test -n "$ac_ct_CXX"; then 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7670 $as_echo "$ac_ct_CXX" >&6; } 7671 else 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7673 $as_echo "no" >&6; } 7674 fi 7675 7676 7677 test -n "$ac_ct_CXX" && break 7678 done 7679 7680 if test "x$ac_ct_CXX" = x; then 7681 CXX="g++" 7682 else 7683 case $cross_compiling:$ac_tool_warned in 7684 yes:) 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7687 ac_tool_warned=yes ;; 7688 esac 7689 CXX=$ac_ct_CXX 7690 fi 7691 fi 7692 7693 fi 7694 fi 7695 # Provide some information about the compiler. 7696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7697 set X $ac_compile 7698 ac_compiler=$2 7699 for ac_option in --version -v -V -qversion; do 7700 { { ac_try="$ac_compiler $ac_option >&5" 7701 case "(($ac_try" in 7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7703 *) ac_try_echo=$ac_try;; 7704 esac 7705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7706 $as_echo "$ac_try_echo"; } >&5 7707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7708 ac_status=$? 7709 if test -s conftest.err; then 7710 sed '10a\ 7711 ... rest of stderr output deleted ... 7712 10q' conftest.err >conftest.er1 7713 cat conftest.er1 >&5 7714 fi 7715 rm -f conftest.er1 conftest.err 7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7717 test $ac_status = 0; } 7718 done 7719 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7722 if ${ac_cv_cxx_compiler_gnu+:} false; then : 7723 $as_echo_n "(cached) " >&6 7724 else 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726 /* end confdefs.h. */ 7727 7728 int 7729 main () 7730 { 7731 #ifndef __GNUC__ 7732 choke me 7733 #endif 7734 7735 ; 7736 return 0; 7737 } 7738 _ACEOF 7739 if ac_fn_cxx_try_compile "$LINENO"; then : 7740 ac_compiler_gnu=yes 7741 else 7742 ac_compiler_gnu=no 7743 fi 7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7746 7747 fi 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7750 if test $ac_compiler_gnu = yes; then 7751 GXX=yes 7752 else 7753 GXX= 7754 fi 7755 ac_test_CXXFLAGS=${CXXFLAGS+set} 7756 ac_save_CXXFLAGS=$CXXFLAGS 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7758 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 7759 if ${ac_cv_prog_cxx_g+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761 else 7762 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7763 ac_cxx_werror_flag=yes 7764 ac_cv_prog_cxx_g=no 7765 CXXFLAGS="-g" 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767 /* end confdefs.h. */ 7768 7769 int 7770 main () 7771 { 7772 7773 ; 7774 return 0; 7775 } 7776 _ACEOF 7777 if ac_fn_cxx_try_compile "$LINENO"; then : 7778 ac_cv_prog_cxx_g=yes 7779 else 7780 CXXFLAGS="" 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782 /* end confdefs.h. */ 7783 7784 int 7785 main () 7786 { 7787 7788 ; 7789 return 0; 7790 } 7791 _ACEOF 7792 if ac_fn_cxx_try_compile "$LINENO"; then : 7793 7794 else 7795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7796 CXXFLAGS="-g" 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798 /* end confdefs.h. */ 7799 7800 int 7801 main () 7802 { 7803 7804 ; 7805 return 0; 7806 } 7807 _ACEOF 7808 if ac_fn_cxx_try_compile "$LINENO"; then : 7809 ac_cv_prog_cxx_g=yes 7810 fi 7811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7812 fi 7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7814 fi 7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7817 fi 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7819 $as_echo "$ac_cv_prog_cxx_g" >&6; } 7820 if test "$ac_test_CXXFLAGS" = set; then 7821 CXXFLAGS=$ac_save_CXXFLAGS 7822 elif test $ac_cv_prog_cxx_g = yes; then 7823 if test "$GXX" = yes; then 7824 CXXFLAGS="-g -O2" 7825 else 7826 CXXFLAGS="-g" 7827 fi 7828 else 7829 if test "$GXX" = yes; then 7830 CXXFLAGS="-O2" 7831 else 7832 CXXFLAGS= 7833 fi 7834 fi 7835 ac_ext=cpp 7836 ac_cpp='$CXXCPP $CPPFLAGS' 7837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7840 7841 depcc="$CXX" am_compiler_list= 7842 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7844 $as_echo_n "checking dependency style of $depcc... " >&6; } 7845 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847 else 7848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7849 # We make a subdir and do the tests there. Otherwise we can end up 7850 # making bogus files that we don't know about and never remove. For 7851 # instance it was reported that on HP-UX the gcc test will end up 7852 # making a dummy file named `D' -- because `-MD' means `put the output 7853 # in D'. 7854 rm -rf conftest.dir 7855 mkdir conftest.dir 7856 # Copy depcomp to subdir because otherwise we won't find it if we're 7857 # using a relative directory. 7858 cp "$am_depcomp" conftest.dir 7859 cd conftest.dir 7860 # We will build objects and dependencies in a subdirectory because 7861 # it helps to detect inapplicable dependency modes. For instance 7862 # both Tru64's cc and ICC support -MD to output dependencies as a 7863 # side effect of compilation, but ICC will put the dependencies in 7864 # the current directory while Tru64 will put them in the object 7865 # directory. 7866 mkdir sub 7867 7868 am_cv_CXX_dependencies_compiler_type=none 7869 if test "$am_compiler_list" = ""; then 7870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7871 fi 7872 am__universal=false 7873 case " $depcc " in #( 7874 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7875 esac 7876 7877 for depmode in $am_compiler_list; do 7878 # Setup a source with many dependencies, because some compilers 7879 # like to wrap large dependency lists on column 80 (with \), and 7880 # we should not choose a depcomp mode which is confused by this. 7881 # 7882 # We need to recreate these files for each test, as the compiler may 7883 # overwrite some of them when testing with obscure command lines. 7884 # This happens at least with the AIX C compiler. 7885 : > sub/conftest.c 7886 for i in 1 2 3 4 5 6; do 7887 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7888 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7889 # Solaris 8's {/usr,}/bin/sh. 7890 touch sub/conftst$i.h 7891 done 7892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7893 7894 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7895 # mode. It turns out that the SunPro C++ compiler does not properly 7896 # handle `-M -o', and we need to detect this. Also, some Intel 7897 # versions had trouble with output in subdirs 7898 am__obj=sub/conftest.${OBJEXT-o} 7899 am__minus_obj="-o $am__obj" 7900 case $depmode in 7901 gcc) 7902 # This depmode causes a compiler race in universal mode. 7903 test "$am__universal" = false || continue 7904 ;; 7905 nosideeffect) 7906 # after this tag, mechanisms are not by side-effect, so they'll 7907 # only be used when explicitly requested 7908 if test "x$enable_dependency_tracking" = xyes; then 7909 continue 7910 else 7911 break 7912 fi 7913 ;; 7914 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7915 # This compiler won't grok `-c -o', but also, the minuso test has 7916 # not run yet. These depmodes are late enough in the game, and 7917 # so weak that their functioning should not be impacted. 7918 am__obj=conftest.${OBJEXT-o} 7919 am__minus_obj= 7920 ;; 7921 none) break ;; 7922 esac 7923 if depmode=$depmode \ 7924 source=sub/conftest.c object=$am__obj \ 7925 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7926 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7927 >/dev/null 2>conftest.err && 7928 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7929 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7930 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7931 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7932 # icc doesn't choke on unknown options, it will just issue warnings 7933 # or remarks (even with -Werror). So we grep stderr for any message 7934 # that says an option was ignored or not supported. 7935 # When given -MP, icc 7.0 and 7.1 complain thusly: 7936 # icc: Command line warning: ignoring option '-M'; no argument required 7937 # The diagnosis changed in icc 8.0: 7938 # icc: Command line remark: option '-MP' not supported 7939 if (grep 'ignoring option' conftest.err || 7940 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7941 am_cv_CXX_dependencies_compiler_type=$depmode 7942 break 7943 fi 7944 fi 7945 done 7946 7947 cd .. 7948 rm -rf conftest.dir 7949 else 7950 am_cv_CXX_dependencies_compiler_type=none 7951 fi 7952 7953 fi 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7955 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7956 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7957 7958 if 7959 test "x$enable_dependency_tracking" != xno \ 7960 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7961 am__fastdepCXX_TRUE= 7962 am__fastdepCXX_FALSE='#' 7963 else 7964 am__fastdepCXX_TRUE='#' 7965 am__fastdepCXX_FALSE= 7966 fi 7967 7968 7969 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7970 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7971 (test "X$CXX" != "Xg++"))) ; then 7972 ac_ext=cpp 7973 ac_cpp='$CXXCPP $CPPFLAGS' 7974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 7978 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7979 if test -z "$CXXCPP"; then 7980 if ${ac_cv_prog_CXXCPP+:} false; then : 7981 $as_echo_n "(cached) " >&6 7982 else 7983 # Double quotes because CXXCPP needs to be expanded 7984 for CXXCPP in "$CXX -E" "/lib/cpp" 7985 do 7986 ac_preproc_ok=false 7987 for ac_cxx_preproc_warn_flag in '' yes 7988 do 7989 # Use a header file that comes with gcc, so configuring glibc 7990 # with a fresh cross-compiler works. 7991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7992 # <limits.h> exists even on freestanding compilers. 7993 # On the NeXT, cc -E runs the code through the compiler's parser, 7994 # not just through cpp. "Syntax error" is here to catch this case. 7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996 /* end confdefs.h. */ 7997 #ifdef __STDC__ 7998 # include <limits.h> 7999 #else 8000 # include <assert.h> 8001 #endif 8002 Syntax error 8003 _ACEOF 8004 if ac_fn_cxx_try_cpp "$LINENO"; then : 8005 8006 else 8007 # Broken: fails on valid input. 8008 continue 8009 fi 8010 rm -f conftest.err conftest.i conftest.$ac_ext 8011 8012 # OK, works on sane cases. Now check whether nonexistent headers 8013 # can be detected and how. 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015 /* end confdefs.h. */ 8016 #include <ac_nonexistent.h> 8017 _ACEOF 8018 if ac_fn_cxx_try_cpp "$LINENO"; then : 8019 # Broken: success on invalid input. 8020 continue 8021 else 8022 # Passes both tests. 8023 ac_preproc_ok=: 8024 break 8025 fi 8026 rm -f conftest.err conftest.i conftest.$ac_ext 8027 8028 done 8029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8030 rm -f conftest.i conftest.err conftest.$ac_ext 8031 if $ac_preproc_ok; then : 8032 break 8033 fi 8034 8035 done 8036 ac_cv_prog_CXXCPP=$CXXCPP 8037 8038 fi 8039 CXXCPP=$ac_cv_prog_CXXCPP 8040 else 8041 ac_cv_prog_CXXCPP=$CXXCPP 8042 fi 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 8044 $as_echo "$CXXCPP" >&6; } 8045 ac_preproc_ok=false 8046 for ac_cxx_preproc_warn_flag in '' yes 8047 do 8048 # Use a header file that comes with gcc, so configuring glibc 8049 # with a fresh cross-compiler works. 8050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8051 # <limits.h> exists even on freestanding compilers. 8052 # On the NeXT, cc -E runs the code through the compiler's parser, 8053 # not just through cpp. "Syntax error" is here to catch this case. 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055 /* end confdefs.h. */ 8056 #ifdef __STDC__ 8057 # include <limits.h> 8058 #else 8059 # include <assert.h> 8060 #endif 8061 Syntax error 8062 _ACEOF 8063 if ac_fn_cxx_try_cpp "$LINENO"; then : 8064 8065 else 8066 # Broken: fails on valid input. 8067 continue 8068 fi 8069 rm -f conftest.err conftest.i conftest.$ac_ext 8070 8071 # OK, works on sane cases. Now check whether nonexistent headers 8072 # can be detected and how. 8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074 /* end confdefs.h. */ 8075 #include <ac_nonexistent.h> 8076 _ACEOF 8077 if ac_fn_cxx_try_cpp "$LINENO"; then : 8078 # Broken: success on invalid input. 8079 continue 8080 else 8081 # Passes both tests. 8082 ac_preproc_ok=: 8083 break 8084 fi 8085 rm -f conftest.err conftest.i conftest.$ac_ext 8086 8087 done 8088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8089 rm -f conftest.i conftest.err conftest.$ac_ext 8090 if $ac_preproc_ok; then : 8091 8092 else 8093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8095 _lt_caught_CXX_error=yes; } 8096 fi 8097 8098 ac_ext=cpp 8099 ac_cpp='$CXXCPP $CPPFLAGS' 8100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8103 8104 else 8105 _lt_caught_CXX_error=yes 8106 fi 8107 8108 8109 8110 8111 # Set options 8112 8113 8114 8115 enable_dlopen=no 8116 8117 8118 enable_win32_dll=no 8119 8120 8121 # Check whether --enable-shared was given. 8122 if test "${enable_shared+set}" = set; then : 8123 enableval=$enable_shared; p=${PACKAGE-default} 8124 case $enableval in 8125 yes) enable_shared=yes ;; 8126 no) enable_shared=no ;; 8127 *) 8128 enable_shared=no 8129 # Look at the argument we got. We use all the common list separators. 8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8131 for pkg in $enableval; do 8132 IFS="$lt_save_ifs" 8133 if test "X$pkg" = "X$p"; then 8134 enable_shared=yes 8135 fi 8136 done 8137 IFS="$lt_save_ifs" 8138 ;; 8139 esac 8140 else 8141 enable_shared=yes 8142 fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 # Check whether --enable-static was given. 8153 if test "${enable_static+set}" = set; then : 8154 enableval=$enable_static; p=${PACKAGE-default} 8155 case $enableval in 8156 yes) enable_static=yes ;; 8157 no) enable_static=no ;; 8158 *) 8159 enable_static=no 8160 # Look at the argument we got. We use all the common list separators. 8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8162 for pkg in $enableval; do 8163 IFS="$lt_save_ifs" 8164 if test "X$pkg" = "X$p"; then 8165 enable_static=yes 8166 fi 8167 done 8168 IFS="$lt_save_ifs" 8169 ;; 8170 esac 8171 else 8172 enable_static=yes 8173 fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 # Check whether --with-pic was given. 8185 if test "${with_pic+set}" = set; then : 8186 withval=$with_pic; pic_mode="$withval" 8187 else 8188 pic_mode=default 8189 fi 8190 8191 8192 test -z "$pic_mode" && pic_mode=default 8193 8194 8195 8196 8197 8198 8199 8200 # Check whether --enable-fast-install was given. 8201 if test "${enable_fast_install+set}" = set; then : 8202 enableval=$enable_fast_install; p=${PACKAGE-default} 8203 case $enableval in 8204 yes) enable_fast_install=yes ;; 8205 no) enable_fast_install=no ;; 8206 *) 8207 enable_fast_install=no 8208 # Look at the argument we got. We use all the common list separators. 8209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8210 for pkg in $enableval; do 8211 IFS="$lt_save_ifs" 8212 if test "X$pkg" = "X$p"; then 8213 enable_fast_install=yes 8214 fi 8215 done 8216 IFS="$lt_save_ifs" 8217 ;; 8218 esac 8219 else 8220 enable_fast_install=yes 8221 fi 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 # This can be used to rebuild libtool when needed 8234 LIBTOOL_DEPS="$ltmain" 8235 8236 # Always use our own libtool. 8237 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 test -z "$LN_S" && LN_S="ln -s" 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 if test -n "${ZSH_VERSION+set}" ; then 8279 setopt NO_GLOB_SUBST 8280 fi 8281 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8283 $as_echo_n "checking for objdir... " >&6; } 8284 if ${lt_cv_objdir+:} false; then : 8285 $as_echo_n "(cached) " >&6 8286 else 8287 rm -f .libs 2>/dev/null 8288 mkdir .libs 2>/dev/null 8289 if test -d .libs; then 8290 lt_cv_objdir=.libs 8291 else 8292 # MS-DOS does not allow filenames that begin with a dot. 8293 lt_cv_objdir=_libs 8294 fi 8295 rmdir .libs 2>/dev/null 8296 fi 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8298 $as_echo "$lt_cv_objdir" >&6; } 8299 objdir=$lt_cv_objdir 8300 8301 8302 8303 8304 8305 cat >>confdefs.h <<_ACEOF 8306 #define LT_OBJDIR "$lt_cv_objdir/" 8307 _ACEOF 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 case $host_os in 8326 aix3*) 8327 # AIX sometimes has problems with the GCC collect2 program. For some 8328 # reason, if we set the COLLECT_NAMES environment variable, the problems 8329 # vanish in a puff of smoke. 8330 if test "X${COLLECT_NAMES+set}" != Xset; then 8331 COLLECT_NAMES= 8332 export COLLECT_NAMES 8333 fi 8334 ;; 8335 esac 8336 8337 # Sed substitution that helps us do robust quoting. It backslashifies 8338 # metacharacters that are still active within double-quoted strings. 8339 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8340 8341 # Same as above, but do not quote variable references. 8342 double_quote_subst='s/\(["`\\]\)/\\\1/g' 8343 8344 # Sed substitution to delay expansion of an escaped shell variable in a 8345 # double_quote_subst'ed string. 8346 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8347 8348 # Sed substitution to delay expansion of an escaped single quote. 8349 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8350 8351 # Sed substitution to avoid accidental globbing in evaled expressions 8352 no_glob_subst='s/\*/\\\*/g' 8353 8354 # Global variables: 8355 ofile=libtool 8356 can_build_shared=yes 8357 8358 # All known linkers require a `.a' archive for static linking (except MSVC, 8359 # which needs '.lib'). 8360 libext=a 8361 8362 with_gnu_ld="$lt_cv_prog_gnu_ld" 8363 8364 old_CC="$CC" 8365 old_CFLAGS="$CFLAGS" 8366 8367 # Set sane defaults for various variables 8368 test -z "$CC" && CC=cc 8369 test -z "$LTCC" && LTCC=$CC 8370 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8371 test -z "$LD" && LD=ld 8372 test -z "$ac_objext" && ac_objext=o 8373 8374 for cc_temp in $compiler""; do 8375 case $cc_temp in 8376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8378 \-*) ;; 8379 *) break;; 8380 esac 8381 done 8382 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8383 8384 8385 # Only perform the check for file, if the check method requires it 8386 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8387 case $deplibs_check_method in 8388 file_magic*) 8389 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8391 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8392 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394 else 8395 case $MAGIC_CMD in 8396 [\\/*] | ?:[\\/]*) 8397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8398 ;; 8399 *) 8400 lt_save_MAGIC_CMD="$MAGIC_CMD" 8401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8402 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8403 for ac_dir in $ac_dummy; do 8404 IFS="$lt_save_ifs" 8405 test -z "$ac_dir" && ac_dir=. 8406 if test -f $ac_dir/${ac_tool_prefix}file; then 8407 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8408 if test -n "$file_magic_test_file"; then 8409 case $deplibs_check_method in 8410 "file_magic "*) 8411 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8413 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8414 $EGREP "$file_magic_regex" > /dev/null; then 8415 : 8416 else 8417 cat <<_LT_EOF 1>&2 8418 8419 *** Warning: the command libtool uses to detect shared libraries, 8420 *** $file_magic_cmd, produces output that libtool cannot recognize. 8421 *** The result is that libtool may fail to recognize shared libraries 8422 *** as such. This will affect the creation of libtool libraries that 8423 *** depend on shared libraries, but programs linked with such libtool 8424 *** libraries will work regardless of this problem. Nevertheless, you 8425 *** may want to report the problem to your system manager and/or to 8426 *** bug-libtool (at] gnu.org 8427 8428 _LT_EOF 8429 fi ;; 8430 esac 8431 fi 8432 break 8433 fi 8434 done 8435 IFS="$lt_save_ifs" 8436 MAGIC_CMD="$lt_save_MAGIC_CMD" 8437 ;; 8438 esac 8439 fi 8440 8441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8442 if test -n "$MAGIC_CMD"; then 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8444 $as_echo "$MAGIC_CMD" >&6; } 8445 else 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447 $as_echo "no" >&6; } 8448 fi 8449 8450 8451 8452 8453 8454 if test -z "$lt_cv_path_MAGIC_CMD"; then 8455 if test -n "$ac_tool_prefix"; then 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8457 $as_echo_n "checking for file... " >&6; } 8458 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8459 $as_echo_n "(cached) " >&6 8460 else 8461 case $MAGIC_CMD in 8462 [\\/*] | ?:[\\/]*) 8463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8464 ;; 8465 *) 8466 lt_save_MAGIC_CMD="$MAGIC_CMD" 8467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8468 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8469 for ac_dir in $ac_dummy; do 8470 IFS="$lt_save_ifs" 8471 test -z "$ac_dir" && ac_dir=. 8472 if test -f $ac_dir/file; then 8473 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8474 if test -n "$file_magic_test_file"; then 8475 case $deplibs_check_method in 8476 "file_magic "*) 8477 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8480 $EGREP "$file_magic_regex" > /dev/null; then 8481 : 8482 else 8483 cat <<_LT_EOF 1>&2 8484 8485 *** Warning: the command libtool uses to detect shared libraries, 8486 *** $file_magic_cmd, produces output that libtool cannot recognize. 8487 *** The result is that libtool may fail to recognize shared libraries 8488 *** as such. This will affect the creation of libtool libraries that 8489 *** depend on shared libraries, but programs linked with such libtool 8490 *** libraries will work regardless of this problem. Nevertheless, you 8491 *** may want to report the problem to your system manager and/or to 8492 *** bug-libtool (at] gnu.org 8493 8494 _LT_EOF 8495 fi ;; 8496 esac 8497 fi 8498 break 8499 fi 8500 done 8501 IFS="$lt_save_ifs" 8502 MAGIC_CMD="$lt_save_MAGIC_CMD" 8503 ;; 8504 esac 8505 fi 8506 8507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8508 if test -n "$MAGIC_CMD"; then 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8510 $as_echo "$MAGIC_CMD" >&6; } 8511 else 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513 $as_echo "no" >&6; } 8514 fi 8515 8516 8517 else 8518 MAGIC_CMD=: 8519 fi 8520 fi 8521 8522 fi 8523 ;; 8524 esac 8525 8526 # Use C for the default configuration in the libtool script 8527 8528 lt_save_CC="$CC" 8529 ac_ext=c 8530 ac_cpp='$CPP $CPPFLAGS' 8531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8533 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8534 8535 8536 # Source file extension for C test sources. 8537 ac_ext=c 8538 8539 # Object file extension for compiled C test sources. 8540 objext=o 8541 objext=$objext 8542 8543 # Code to be used in simple compile tests 8544 lt_simple_compile_test_code="int some_variable = 0;" 8545 8546 # Code to be used in simple link tests 8547 lt_simple_link_test_code='int main(){return(0);}' 8548 8549 8550 8551 8552 8553 8554 8555 # If no C compiler was specified, use CC. 8556 LTCC=${LTCC-"$CC"} 8557 8558 # If no C compiler flags were specified, use CFLAGS. 8559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8560 8561 # Allow CC to be a program name with arguments. 8562 compiler=$CC 8563 8564 # Save the default compiler, since it gets overwritten when the other 8565 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8566 compiler_DEFAULT=$CC 8567 8568 # save warnings/boilerplate of simple test code 8569 ac_outfile=conftest.$ac_objext 8570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8572 _lt_compiler_boilerplate=`cat conftest.err` 8573 $RM conftest* 8574 8575 ac_outfile=conftest.$ac_objext 8576 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8578 _lt_linker_boilerplate=`cat conftest.err` 8579 $RM -r conftest* 8580 8581 8582 ## CAVEAT EMPTOR: 8583 ## There is no encapsulation within the following macros, do not change 8584 ## the running order or otherwise move them around unless you know exactly 8585 ## what you are doing... 8586 if test -n "$compiler"; then 8587 8588 lt_prog_compiler_no_builtin_flag= 8589 8590 if test "$GCC" = yes; then 8591 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8592 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8594 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8595 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597 else 8598 lt_cv_prog_compiler_rtti_exceptions=no 8599 ac_outfile=conftest.$ac_objext 8600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8601 lt_compiler_flag="-fno-rtti -fno-exceptions" 8602 # Insert the option either (1) after the last *FLAGS variable, or 8603 # (2) before a word containing "conftest.", or (3) at the end. 8604 # Note that $ac_compile itself does not contain backslashes and begins 8605 # with a dollar sign (not a hyphen), so the echo should work correctly. 8606 # The option is referenced via a variable to avoid confusing sed. 8607 lt_compile=`echo "$ac_compile" | $SED \ 8608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8610 -e 's:$: $lt_compiler_flag:'` 8611 (eval echo "\"\$as_me:8611: $lt_compile\"" >&5) 8612 (eval "$lt_compile" 2>conftest.err) 8613 ac_status=$? 8614 cat conftest.err >&5 8615 echo "$as_me:8615: \$? = $ac_status" >&5 8616 if (exit $ac_status) && test -s "$ac_outfile"; then 8617 # The compiler can only warn and ignore the option if not recognized 8618 # So say no if there are warnings other than the usual output. 8619 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8622 lt_cv_prog_compiler_rtti_exceptions=yes 8623 fi 8624 fi 8625 $RM conftest* 8626 8627 fi 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8629 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8630 8631 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8632 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8633 else 8634 : 8635 fi 8636 8637 fi 8638 8639 8640 8641 8642 8643 8644 lt_prog_compiler_wl= 8645 lt_prog_compiler_pic= 8646 lt_prog_compiler_static= 8647 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8649 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8650 8651 if test "$GCC" = yes; then 8652 lt_prog_compiler_wl='-Wl,' 8653 lt_prog_compiler_static='-static' 8654 8655 case $host_os in 8656 aix*) 8657 # All AIX code is PIC. 8658 if test "$host_cpu" = ia64; then 8659 # AIX 5 now supports IA64 processor 8660 lt_prog_compiler_static='-Bstatic' 8661 fi 8662 ;; 8663 8664 amigaos*) 8665 case $host_cpu in 8666 powerpc) 8667 # see comment about AmigaOS4 .so support 8668 lt_prog_compiler_pic='-fPIC' 8669 ;; 8670 m68k) 8671 # FIXME: we need at least 68020 code to build shared libraries, but 8672 # adding the `-m68020' flag to GCC prevents building anything better, 8673 # like `-m68040'. 8674 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8675 ;; 8676 esac 8677 ;; 8678 8679 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8680 # PIC is the default for these OSes. 8681 ;; 8682 8683 mingw* | cygwin* | pw32* | os2*) 8684 # This hack is so that the source file can tell whether it is being 8685 # built for inclusion in a dll (and should export symbols for example). 8686 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8687 # (--disable-auto-import) libraries 8688 lt_prog_compiler_pic='-DDLL_EXPORT' 8689 ;; 8690 8691 darwin* | rhapsody*) 8692 # PIC is the default on this platform 8693 # Common symbols not allowed in MH_DYLIB files 8694 lt_prog_compiler_pic='-fno-common' 8695 ;; 8696 8697 hpux*) 8698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8699 # not for PA HP-UX. 8700 case $host_cpu in 8701 hppa*64*|ia64*) 8702 # +Z the default 8703 ;; 8704 *) 8705 lt_prog_compiler_pic='-fPIC' 8706 ;; 8707 esac 8708 ;; 8709 8710 interix[3-9]*) 8711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8712 # Instead, we relocate shared libraries at runtime. 8713 ;; 8714 8715 msdosdjgpp*) 8716 # Just because we use GCC doesn't mean we suddenly get shared libraries 8717 # on systems that don't support them. 8718 lt_prog_compiler_can_build_shared=no 8719 enable_shared=no 8720 ;; 8721 8722 *nto* | *qnx*) 8723 # QNX uses GNU C++, but need to define -shared option too, otherwise 8724 # it will coredump. 8725 lt_prog_compiler_pic='-fPIC -shared' 8726 ;; 8727 8728 sysv4*MP*) 8729 if test -d /usr/nec; then 8730 lt_prog_compiler_pic=-Kconform_pic 8731 fi 8732 ;; 8733 8734 *) 8735 lt_prog_compiler_pic='-fPIC' 8736 ;; 8737 esac 8738 else 8739 # PORTME Check for flag to pass linker flags through the system compiler. 8740 case $host_os in 8741 aix*) 8742 lt_prog_compiler_wl='-Wl,' 8743 if test "$host_cpu" = ia64; then 8744 # AIX 5 now supports IA64 processor 8745 lt_prog_compiler_static='-Bstatic' 8746 else 8747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8748 fi 8749 ;; 8750 8751 mingw* | cygwin* | pw32* | os2*) 8752 # This hack is so that the source file can tell whether it is being 8753 # built for inclusion in a dll (and should export symbols for example). 8754 lt_prog_compiler_pic='-DDLL_EXPORT' 8755 ;; 8756 8757 hpux9* | hpux10* | hpux11*) 8758 lt_prog_compiler_wl='-Wl,' 8759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8760 # not for PA HP-UX. 8761 case $host_cpu in 8762 hppa*64*|ia64*) 8763 # +Z the default 8764 ;; 8765 *) 8766 lt_prog_compiler_pic='+Z' 8767 ;; 8768 esac 8769 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8770 lt_prog_compiler_static='${wl}-a ${wl}archive' 8771 ;; 8772 8773 irix5* | irix6* | nonstopux*) 8774 lt_prog_compiler_wl='-Wl,' 8775 # PIC (with -KPIC) is the default. 8776 lt_prog_compiler_static='-non_shared' 8777 ;; 8778 8779 linux* | k*bsd*-gnu) 8780 case $cc_basename in 8781 icc* | ecc* | ifort*) 8782 lt_prog_compiler_wl='-Wl,' 8783 lt_prog_compiler_pic='-KPIC' 8784 lt_prog_compiler_static='-static' 8785 ;; 8786 pgcc* | pgf77* | pgf90* | pgf95*) 8787 # Portland Group compilers (*not* the Pentium gcc compiler, 8788 # which looks to be a dead project) 8789 lt_prog_compiler_wl='-Wl,' 8790 lt_prog_compiler_pic='-fpic' 8791 lt_prog_compiler_static='-Bstatic' 8792 ;; 8793 ccc*) 8794 lt_prog_compiler_wl='-Wl,' 8795 # All Alpha code is PIC. 8796 lt_prog_compiler_static='-non_shared' 8797 ;; 8798 xl*) 8799 # IBM XL C 8.0/Fortran 10.1 on PPC 8800 lt_prog_compiler_wl='-Wl,' 8801 lt_prog_compiler_pic='-qpic' 8802 lt_prog_compiler_static='-qstaticlink' 8803 ;; 8804 *) 8805 case `$CC -V 2>&1 | sed 5q` in 8806 *Sun\ C*) 8807 # Sun C 5.9 8808 lt_prog_compiler_pic='-KPIC' 8809 lt_prog_compiler_static='-Bstatic' 8810 lt_prog_compiler_wl='-Wl,' 8811 ;; 8812 *Sun\ F*) 8813 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8814 lt_prog_compiler_pic='-KPIC' 8815 lt_prog_compiler_static='-Bstatic' 8816 lt_prog_compiler_wl='' 8817 ;; 8818 esac 8819 ;; 8820 esac 8821 ;; 8822 8823 newsos6) 8824 lt_prog_compiler_pic='-KPIC' 8825 lt_prog_compiler_static='-Bstatic' 8826 ;; 8827 8828 *nto* | *qnx*) 8829 # QNX uses GNU C++, but need to define -shared option too, otherwise 8830 # it will coredump. 8831 lt_prog_compiler_pic='-fPIC -shared' 8832 ;; 8833 8834 osf3* | osf4* | osf5*) 8835 lt_prog_compiler_wl='-Wl,' 8836 # All OSF/1 code is PIC. 8837 lt_prog_compiler_static='-non_shared' 8838 ;; 8839 8840 rdos*) 8841 lt_prog_compiler_static='-non_shared' 8842 ;; 8843 8844 solaris*) 8845 lt_prog_compiler_pic='-KPIC' 8846 lt_prog_compiler_static='-Bstatic' 8847 case $cc_basename in 8848 f77* | f90* | f95*) 8849 lt_prog_compiler_wl='-Qoption ld ';; 8850 *) 8851 lt_prog_compiler_wl='-Wl,';; 8852 esac 8853 ;; 8854 8855 sunos4*) 8856 lt_prog_compiler_wl='-Qoption ld ' 8857 lt_prog_compiler_pic='-PIC' 8858 lt_prog_compiler_static='-Bstatic' 8859 ;; 8860 8861 sysv4 | sysv4.2uw2* | sysv4.3*) 8862 lt_prog_compiler_wl='-Wl,' 8863 lt_prog_compiler_pic='-KPIC' 8864 lt_prog_compiler_static='-Bstatic' 8865 ;; 8866 8867 sysv4*MP*) 8868 if test -d /usr/nec ;then 8869 lt_prog_compiler_pic='-Kconform_pic' 8870 lt_prog_compiler_static='-Bstatic' 8871 fi 8872 ;; 8873 8874 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8875 lt_prog_compiler_wl='-Wl,' 8876 lt_prog_compiler_pic='-KPIC' 8877 lt_prog_compiler_static='-Bstatic' 8878 ;; 8879 8880 unicos*) 8881 lt_prog_compiler_wl='-Wl,' 8882 lt_prog_compiler_can_build_shared=no 8883 ;; 8884 8885 uts4*) 8886 lt_prog_compiler_pic='-pic' 8887 lt_prog_compiler_static='-Bstatic' 8888 ;; 8889 8890 *) 8891 lt_prog_compiler_can_build_shared=no 8892 ;; 8893 esac 8894 fi 8895 8896 case $host_os in 8897 # For platforms which do not support PIC, -DPIC is meaningless: 8898 *djgpp*) 8899 lt_prog_compiler_pic= 8900 ;; 8901 *) 8902 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8903 ;; 8904 esac 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8906 $as_echo "$lt_prog_compiler_pic" >&6; } 8907 8908 8909 8910 8911 8912 8913 # 8914 # Check to make sure the PIC flag actually works. 8915 # 8916 if test -n "$lt_prog_compiler_pic"; then 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8918 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8919 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921 else 8922 lt_cv_prog_compiler_pic_works=no 8923 ac_outfile=conftest.$ac_objext 8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8926 # Insert the option either (1) after the last *FLAGS variable, or 8927 # (2) before a word containing "conftest.", or (3) at the end. 8928 # Note that $ac_compile itself does not contain backslashes and begins 8929 # with a dollar sign (not a hyphen), so the echo should work correctly. 8930 # The option is referenced via a variable to avoid confusing sed. 8931 lt_compile=`echo "$ac_compile" | $SED \ 8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8934 -e 's:$: $lt_compiler_flag:'` 8935 (eval echo "\"\$as_me:8935: $lt_compile\"" >&5) 8936 (eval "$lt_compile" 2>conftest.err) 8937 ac_status=$? 8938 cat conftest.err >&5 8939 echo "$as_me:8939: \$? = $ac_status" >&5 8940 if (exit $ac_status) && test -s "$ac_outfile"; then 8941 # The compiler can only warn and ignore the option if not recognized 8942 # So say no if there are warnings other than the usual output. 8943 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8946 lt_cv_prog_compiler_pic_works=yes 8947 fi 8948 fi 8949 $RM conftest* 8950 8951 fi 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8953 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8954 8955 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8956 case $lt_prog_compiler_pic in 8957 "" | " "*) ;; 8958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8959 esac 8960 else 8961 lt_prog_compiler_pic= 8962 lt_prog_compiler_can_build_shared=no 8963 fi 8964 8965 fi 8966 8967 8968 8969 8970 8971 8972 # 8973 # Check to make sure the static flag actually works. 8974 # 8975 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8978 if ${lt_cv_prog_compiler_static_works+:} false; then : 8979 $as_echo_n "(cached) " >&6 8980 else 8981 lt_cv_prog_compiler_static_works=no 8982 save_LDFLAGS="$LDFLAGS" 8983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8984 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8986 # The linker can only warn and ignore the option if not recognized 8987 # So say no if there are warnings 8988 if test -s conftest.err; then 8989 # Append any errors to the config.log. 8990 cat conftest.err 1>&5 8991 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8993 if diff conftest.exp conftest.er2 >/dev/null; then 8994 lt_cv_prog_compiler_static_works=yes 8995 fi 8996 else 8997 lt_cv_prog_compiler_static_works=yes 8998 fi 8999 fi 9000 $RM -r conftest* 9001 LDFLAGS="$save_LDFLAGS" 9002 9003 fi 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9005 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9006 9007 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9008 : 9009 else 9010 lt_prog_compiler_static= 9011 fi 9012 9013 9014 9015 9016 9017 9018 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9020 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9021 if ${lt_cv_prog_compiler_c_o+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023 else 9024 lt_cv_prog_compiler_c_o=no 9025 $RM -r conftest 2>/dev/null 9026 mkdir conftest 9027 cd conftest 9028 mkdir out 9029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9030 9031 lt_compiler_flag="-o out/conftest2.$ac_objext" 9032 # Insert the option either (1) after the last *FLAGS variable, or 9033 # (2) before a word containing "conftest.", or (3) at the end. 9034 # Note that $ac_compile itself does not contain backslashes and begins 9035 # with a dollar sign (not a hyphen), so the echo should work correctly. 9036 lt_compile=`echo "$ac_compile" | $SED \ 9037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9039 -e 's:$: $lt_compiler_flag:'` 9040 (eval echo "\"\$as_me:9040: $lt_compile\"" >&5) 9041 (eval "$lt_compile" 2>out/conftest.err) 9042 ac_status=$? 9043 cat out/conftest.err >&5 9044 echo "$as_me:9044: \$? = $ac_status" >&5 9045 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9046 then 9047 # The compiler can only warn and ignore the option if not recognized 9048 # So say no if there are warnings 9049 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9052 lt_cv_prog_compiler_c_o=yes 9053 fi 9054 fi 9055 chmod u+w . 2>&5 9056 $RM conftest* 9057 # SGI C++ compiler will create directory out/ii_files/ for 9058 # template instantiation 9059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9060 $RM out/* && rmdir out 9061 cd .. 9062 $RM -r conftest 9063 $RM conftest* 9064 9065 fi 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9067 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9068 9069 9070 9071 9072 9073 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9075 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9076 if ${lt_cv_prog_compiler_c_o+:} false; then : 9077 $as_echo_n "(cached) " >&6 9078 else 9079 lt_cv_prog_compiler_c_o=no 9080 $RM -r conftest 2>/dev/null 9081 mkdir conftest 9082 cd conftest 9083 mkdir out 9084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9085 9086 lt_compiler_flag="-o out/conftest2.$ac_objext" 9087 # Insert the option either (1) after the last *FLAGS variable, or 9088 # (2) before a word containing "conftest.", or (3) at the end. 9089 # Note that $ac_compile itself does not contain backslashes and begins 9090 # with a dollar sign (not a hyphen), so the echo should work correctly. 9091 lt_compile=`echo "$ac_compile" | $SED \ 9092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9094 -e 's:$: $lt_compiler_flag:'` 9095 (eval echo "\"\$as_me:9095: $lt_compile\"" >&5) 9096 (eval "$lt_compile" 2>out/conftest.err) 9097 ac_status=$? 9098 cat out/conftest.err >&5 9099 echo "$as_me:9099: \$? = $ac_status" >&5 9100 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9101 then 9102 # The compiler can only warn and ignore the option if not recognized 9103 # So say no if there are warnings 9104 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9107 lt_cv_prog_compiler_c_o=yes 9108 fi 9109 fi 9110 chmod u+w . 2>&5 9111 $RM conftest* 9112 # SGI C++ compiler will create directory out/ii_files/ for 9113 # template instantiation 9114 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9115 $RM out/* && rmdir out 9116 cd .. 9117 $RM -r conftest 9118 $RM conftest* 9119 9120 fi 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9122 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9123 9124 9125 9126 9127 hard_links="nottested" 9128 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9129 # do not overwrite the value of need_locks provided by the user 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9131 $as_echo_n "checking if we can lock with hard links... " >&6; } 9132 hard_links=yes 9133 $RM conftest* 9134 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9135 touch conftest.a 9136 ln conftest.a conftest.b 2>&5 || hard_links=no 9137 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9139 $as_echo "$hard_links" >&6; } 9140 if test "$hard_links" = no; then 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9142 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9143 need_locks=warn 9144 fi 9145 else 9146 need_locks=no 9147 fi 9148 9149 9150 9151 9152 9153 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9155 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9156 9157 runpath_var= 9158 allow_undefined_flag= 9159 always_export_symbols=no 9160 archive_cmds= 9161 archive_expsym_cmds= 9162 compiler_needs_object=no 9163 enable_shared_with_static_runtimes=no 9164 export_dynamic_flag_spec= 9165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9166 hardcode_automatic=no 9167 hardcode_direct=no 9168 hardcode_direct_absolute=no 9169 hardcode_libdir_flag_spec= 9170 hardcode_libdir_flag_spec_ld= 9171 hardcode_libdir_separator= 9172 hardcode_minus_L=no 9173 hardcode_shlibpath_var=unsupported 9174 inherit_rpath=no 9175 link_all_deplibs=unknown 9176 module_cmds= 9177 module_expsym_cmds= 9178 old_archive_from_new_cmds= 9179 old_archive_from_expsyms_cmds= 9180 thread_safe_flag_spec= 9181 whole_archive_flag_spec= 9182 # include_expsyms should be a list of space-separated symbols to be *always* 9183 # included in the symbol list 9184 include_expsyms= 9185 # exclude_expsyms can be an extended regexp of symbols to exclude 9186 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9188 # as well as any symbol that contains `d'. 9189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9191 # platforms (ab)use it in PIC code, but their linkers get confused if 9192 # the symbol is explicitly referenced. Since portable code cannot 9193 # rely on this symbol name, it's probably fine to never include it in 9194 # preloaded symbol tables. 9195 # Exclude shared library initialization/finalization symbols. 9196 extract_expsyms_cmds= 9197 9198 case $host_os in 9199 cygwin* | mingw* | pw32*) 9200 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9201 # When not using gcc, we currently assume that we are using 9202 # Microsoft Visual C++. 9203 if test "$GCC" != yes; then 9204 with_gnu_ld=no 9205 fi 9206 ;; 9207 interix*) 9208 # we just hope/assume this is gcc and not c89 (= MSVC++) 9209 with_gnu_ld=yes 9210 ;; 9211 openbsd*) 9212 with_gnu_ld=no 9213 ;; 9214 esac 9215 9216 ld_shlibs=yes 9217 if test "$with_gnu_ld" = yes; then 9218 # If archive_cmds runs LD, not CC, wlarc should be empty 9219 wlarc='${wl}' 9220 9221 # Set some defaults for GNU ld with shared library support. These 9222 # are reset later if shared libraries are not supported. Putting them 9223 # here allows them to be overridden if necessary. 9224 runpath_var=LD_RUN_PATH 9225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9226 export_dynamic_flag_spec='${wl}--export-dynamic' 9227 # ancient GNU ld didn't support --whole-archive et. al. 9228 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9229 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9230 else 9231 whole_archive_flag_spec= 9232 fi 9233 supports_anon_versioning=no 9234 case `$LD -v 2>&1` in 9235 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9238 *\ 2.11.*) ;; # other 2.11 versions 9239 *) supports_anon_versioning=yes ;; 9240 esac 9241 9242 # See if GNU ld supports shared libraries. 9243 case $host_os in 9244 aix[3-9]*) 9245 # On AIX/PPC, the GNU linker is very broken 9246 if test "$host_cpu" != ia64; then 9247 ld_shlibs=no 9248 cat <<_LT_EOF 1>&2 9249 9250 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 9251 *** to be unable to reliably create shared libraries on AIX. 9252 *** Therefore, libtool is disabling shared libraries support. If you 9253 *** really care for shared libraries, you may want to modify your PATH 9254 *** so that a non-GNU linker is found, and then restart. 9255 9256 _LT_EOF 9257 fi 9258 ;; 9259 9260 amigaos*) 9261 case $host_cpu in 9262 powerpc) 9263 # see comment about AmigaOS4 .so support 9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9265 archive_expsym_cmds='' 9266 ;; 9267 m68k) 9268 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)' 9269 hardcode_libdir_flag_spec='-L$libdir' 9270 hardcode_minus_L=yes 9271 ;; 9272 esac 9273 ;; 9274 9275 beos*) 9276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9277 allow_undefined_flag=unsupported 9278 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9279 # support --undefined. This deserves some investigation. FIXME 9280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9281 else 9282 ld_shlibs=no 9283 fi 9284 ;; 9285 9286 cygwin* | mingw* | pw32*) 9287 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9288 # as there is no search path for DLLs. 9289 hardcode_libdir_flag_spec='-L$libdir' 9290 allow_undefined_flag=unsupported 9291 always_export_symbols=no 9292 enable_shared_with_static_runtimes=yes 9293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9294 9295 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9297 # If the export-symbols file already is a .def file (1st line 9298 # is EXPORTS), use it as is; otherwise, prepend... 9299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9300 cp $export_symbols $output_objdir/$soname.def; 9301 else 9302 echo EXPORTS > $output_objdir/$soname.def; 9303 cat $export_symbols >> $output_objdir/$soname.def; 9304 fi~ 9305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9306 else 9307 ld_shlibs=no 9308 fi 9309 ;; 9310 9311 interix[3-9]*) 9312 hardcode_direct=no 9313 hardcode_shlibpath_var=no 9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9315 export_dynamic_flag_spec='${wl}-E' 9316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9317 # Instead, shared libraries are loaded at an image base (0x10000000 by 9318 # default) and relocated if they conflict, which is a slow very memory 9319 # consuming and fragmenting process. To avoid this, we pick a random, 9320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9321 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9323 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' 9324 ;; 9325 9326 gnu* | linux* | tpf* | k*bsd*-gnu) 9327 tmp_diet=no 9328 if test "$host_os" = linux-dietlibc; then 9329 case $cc_basename in 9330 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9331 esac 9332 fi 9333 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9334 && test "$tmp_diet" = no 9335 then 9336 tmp_addflag= 9337 tmp_sharedflag='-shared' 9338 case $cc_basename,$host_cpu in 9339 pgcc*) # Portland Group C compiler 9340 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' 9341 tmp_addflag=' $pic_flag' 9342 ;; 9343 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9344 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' 9345 tmp_addflag=' $pic_flag -Mnomain' ;; 9346 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9347 tmp_addflag=' -i_dynamic' ;; 9348 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9349 tmp_addflag=' -i_dynamic -nofor_main' ;; 9350 ifc* | ifort*) # Intel Fortran compiler 9351 tmp_addflag=' -nofor_main' ;; 9352 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9353 tmp_sharedflag='-qmkshrobj' 9354 tmp_addflag= ;; 9355 esac 9356 case `$CC -V 2>&1 | sed 5q` in 9357 *Sun\ C*) # Sun C 5.9 9358 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' 9359 compiler_needs_object=yes 9360 tmp_sharedflag='-G' ;; 9361 *Sun\ F*) # Sun Fortran 8.3 9362 tmp_sharedflag='-G' ;; 9363 esac 9364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9365 9366 if test "x$supports_anon_versioning" = xyes; then 9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9369 echo "local: *; };" >> $output_objdir/$libname.ver~ 9370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9371 fi 9372 9373 case $cc_basename in 9374 xlf*) 9375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9377 hardcode_libdir_flag_spec= 9378 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9379 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9380 if test "x$supports_anon_versioning" = xyes; then 9381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9383 echo "local: *; };" >> $output_objdir/$libname.ver~ 9384 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9385 fi 9386 ;; 9387 esac 9388 else 9389 ld_shlibs=no 9390 fi 9391 ;; 9392 9393 netbsd*) 9394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9396 wlarc= 9397 else 9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9400 fi 9401 ;; 9402 9403 solaris*) 9404 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9405 ld_shlibs=no 9406 cat <<_LT_EOF 1>&2 9407 9408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9409 *** create shared libraries on Solaris systems. Therefore, libtool 9410 *** is disabling shared libraries support. We urge you to upgrade GNU 9411 *** binutils to release 2.9.1 or newer. Another option is to modify 9412 *** your PATH or compiler configuration so that the native linker is 9413 *** used, and then restart. 9414 9415 _LT_EOF 9416 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9419 else 9420 ld_shlibs=no 9421 fi 9422 ;; 9423 9424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9425 case `$LD -v 2>&1` in 9426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9427 ld_shlibs=no 9428 cat <<_LT_EOF 1>&2 9429 9430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9431 *** reliably create shared libraries on SCO systems. Therefore, libtool 9432 *** is disabling shared libraries support. We urge you to upgrade GNU 9433 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9434 *** your PATH or compiler configuration so that the native linker is 9435 *** used, and then restart. 9436 9437 _LT_EOF 9438 ;; 9439 *) 9440 # For security reasons, it is highly recommended that you always 9441 # use absolute paths for naming shared libraries, and exclude the 9442 # DT_RUNPATH tag from executables and libraries. But doing so 9443 # requires that you compile everything twice, which is a pain. 9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9448 else 9449 ld_shlibs=no 9450 fi 9451 ;; 9452 esac 9453 ;; 9454 9455 sunos4*) 9456 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9457 wlarc= 9458 hardcode_direct=yes 9459 hardcode_shlibpath_var=no 9460 ;; 9461 9462 *) 9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9466 else 9467 ld_shlibs=no 9468 fi 9469 ;; 9470 esac 9471 9472 if test "$ld_shlibs" = no; then 9473 runpath_var= 9474 hardcode_libdir_flag_spec= 9475 export_dynamic_flag_spec= 9476 whole_archive_flag_spec= 9477 fi 9478 else 9479 # PORTME fill in a description of your system's linker (not GNU ld) 9480 case $host_os in 9481 aix3*) 9482 allow_undefined_flag=unsupported 9483 always_export_symbols=yes 9484 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' 9485 # Note: this linker hardcodes the directories in LIBPATH if there 9486 # are no directories specified by -L. 9487 hardcode_minus_L=yes 9488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9489 # Neither direct hardcoding nor static linking is supported with a 9490 # broken collect2. 9491 hardcode_direct=unsupported 9492 fi 9493 ;; 9494 9495 aix[4-9]*) 9496 if test "$host_cpu" = ia64; then 9497 # On IA64, the linker does run time linking by default, so we don't 9498 # have to do anything special. 9499 aix_use_runtimelinking=no 9500 exp_sym_flag='-Bexport' 9501 no_entry_flag="" 9502 else 9503 # If we're using GNU nm, then we don't want the "-C" option. 9504 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9505 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9506 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' 9507 else 9508 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' 9509 fi 9510 aix_use_runtimelinking=no 9511 9512 # Test if we are trying to use run time linking or normal 9513 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9514 # need to do runtime linking. 9515 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9516 for ld_flag in $LDFLAGS; do 9517 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9518 aix_use_runtimelinking=yes 9519 break 9520 fi 9521 done 9522 ;; 9523 esac 9524 9525 exp_sym_flag='-bexport' 9526 no_entry_flag='-bnoentry' 9527 fi 9528 9529 # When large executables or shared objects are built, AIX ld can 9530 # have problems creating the table of contents. If linking a library 9531 # or program results in "error TOC overflow" add -mminimal-toc to 9532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9534 9535 archive_cmds='' 9536 hardcode_direct=yes 9537 hardcode_direct_absolute=yes 9538 hardcode_libdir_separator=':' 9539 link_all_deplibs=yes 9540 file_list_spec='${wl}-f,' 9541 9542 if test "$GCC" = yes; then 9543 case $host_os in aix4.[012]|aix4.[012].*) 9544 # We only want to do this on AIX 4.2 and lower, the check 9545 # below for broken collect2 doesn't work under 4.3+ 9546 collect2name=`${CC} -print-prog-name=collect2` 9547 if test -f "$collect2name" && 9548 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9549 then 9550 # We have reworked collect2 9551 : 9552 else 9553 # We have old collect2 9554 hardcode_direct=unsupported 9555 # It fails to find uninstalled libraries when the uninstalled 9556 # path is not listed in the libpath. Setting hardcode_minus_L 9557 # to unsupported forces relinking 9558 hardcode_minus_L=yes 9559 hardcode_libdir_flag_spec='-L$libdir' 9560 hardcode_libdir_separator= 9561 fi 9562 ;; 9563 esac 9564 shared_flag='-shared' 9565 if test "$aix_use_runtimelinking" = yes; then 9566 shared_flag="$shared_flag "'${wl}-G' 9567 fi 9568 else 9569 # not using gcc 9570 if test "$host_cpu" = ia64; then 9571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9572 # chokes on -Wl,-G. The following line is correct: 9573 shared_flag='-G' 9574 else 9575 if test "$aix_use_runtimelinking" = yes; then 9576 shared_flag='${wl}-G' 9577 else 9578 shared_flag='${wl}-bM:SRE' 9579 fi 9580 fi 9581 fi 9582 9583 # It seems that -bexpall does not export symbols beginning with 9584 # underscore (_), so it is better to generate a list of symbols to export. 9585 always_export_symbols=yes 9586 if test "$aix_use_runtimelinking" = yes; then 9587 # Warning - without using the other runtime loading flags (-brtl), 9588 # -berok will link without error, but may produce a broken library. 9589 allow_undefined_flag='-berok' 9590 # Determine the default libpath from the value encoded in an 9591 # empty executable. 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593 /* end confdefs.h. */ 9594 9595 int 9596 main () 9597 { 9598 9599 ; 9600 return 0; 9601 } 9602 _ACEOF 9603 if ac_fn_c_try_link "$LINENO"; then : 9604 9605 lt_aix_libpath_sed=' 9606 /Import File Strings/,/^$/ { 9607 /^0/ { 9608 s/^0 *\(.*\)$/\1/ 9609 p 9610 } 9611 }' 9612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9613 # Check for a 64-bit object if we didn't find anything. 9614 if test -z "$aix_libpath"; then 9615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9616 fi 9617 fi 9618 rm -f core conftest.err conftest.$ac_objext \ 9619 conftest$ac_exeext conftest.$ac_ext 9620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9621 9622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9623 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" 9624 else 9625 if test "$host_cpu" = ia64; then 9626 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9627 allow_undefined_flag="-z nodefs" 9628 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" 9629 else 9630 # Determine the default libpath from the value encoded in an 9631 # empty executable. 9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633 /* end confdefs.h. */ 9634 9635 int 9636 main () 9637 { 9638 9639 ; 9640 return 0; 9641 } 9642 _ACEOF 9643 if ac_fn_c_try_link "$LINENO"; then : 9644 9645 lt_aix_libpath_sed=' 9646 /Import File Strings/,/^$/ { 9647 /^0/ { 9648 s/^0 *\(.*\)$/\1/ 9649 p 9650 } 9651 }' 9652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9653 # Check for a 64-bit object if we didn't find anything. 9654 if test -z "$aix_libpath"; then 9655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9656 fi 9657 fi 9658 rm -f core conftest.err conftest.$ac_objext \ 9659 conftest$ac_exeext conftest.$ac_ext 9660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9661 9662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9663 # Warning - without using the other run time loading flags, 9664 # -berok will link without error, but may produce a broken library. 9665 no_undefined_flag=' ${wl}-bernotok' 9666 allow_undefined_flag=' ${wl}-berok' 9667 # Exported symbols can be pulled into shared objects from archives 9668 whole_archive_flag_spec='$convenience' 9669 archive_cmds_need_lc=yes 9670 # This is similar to how AIX traditionally builds its shared libraries. 9671 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' 9672 fi 9673 fi 9674 ;; 9675 9676 amigaos*) 9677 case $host_cpu in 9678 powerpc) 9679 # see comment about AmigaOS4 .so support 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9681 archive_expsym_cmds='' 9682 ;; 9683 m68k) 9684 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)' 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 hardcode_minus_L=yes 9687 ;; 9688 esac 9689 ;; 9690 9691 bsdi[45]*) 9692 export_dynamic_flag_spec=-rdynamic 9693 ;; 9694 9695 cygwin* | mingw* | pw32*) 9696 # When not using gcc, we currently assume that we are using 9697 # Microsoft Visual C++. 9698 # hardcode_libdir_flag_spec is actually meaningless, as there is 9699 # no search path for DLLs. 9700 hardcode_libdir_flag_spec=' ' 9701 allow_undefined_flag=unsupported 9702 # Tell ltmain to make .lib files, not .a files. 9703 libext=lib 9704 # Tell ltmain to make .dll files, not .so files. 9705 shrext_cmds=".dll" 9706 # FIXME: Setting linknames here is a bad hack. 9707 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9708 # The linker will automatically build a .lib file if we build a DLL. 9709 old_archive_from_new_cmds='true' 9710 # FIXME: Should let the user specify the lib program. 9711 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9712 fix_srcfile_path='`cygpath -w "$srcfile"`' 9713 enable_shared_with_static_runtimes=yes 9714 ;; 9715 9716 darwin* | rhapsody*) 9717 9718 9719 archive_cmds_need_lc=no 9720 hardcode_direct=no 9721 hardcode_automatic=yes 9722 hardcode_shlibpath_var=unsupported 9723 whole_archive_flag_spec='' 9724 link_all_deplibs=yes 9725 allow_undefined_flag="$_lt_dar_allow_undefined" 9726 if test "$GCC" = "yes"; then 9727 output_verbose_link_cmd=echo 9728 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9729 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9730 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}" 9731 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}" 9732 9733 else 9734 ld_shlibs=no 9735 fi 9736 9737 ;; 9738 9739 dgux*) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 freebsd1*) 9746 ld_shlibs=no 9747 ;; 9748 9749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9750 # support. Future versions do this automatically, but an explicit c++rt0.o 9751 # does not break anything, and helps significantly (at the cost of a little 9752 # extra space). 9753 freebsd2.2*) 9754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9755 hardcode_libdir_flag_spec='-R$libdir' 9756 hardcode_direct=yes 9757 hardcode_shlibpath_var=no 9758 ;; 9759 9760 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9761 freebsd2*) 9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9763 hardcode_direct=yes 9764 hardcode_minus_L=yes 9765 hardcode_shlibpath_var=no 9766 ;; 9767 9768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9769 freebsd* | dragonfly*) 9770 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9771 hardcode_libdir_flag_spec='-R$libdir' 9772 hardcode_direct=yes 9773 hardcode_shlibpath_var=no 9774 ;; 9775 9776 hpux9*) 9777 if test "$GCC" = yes; then 9778 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' 9779 else 9780 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' 9781 fi 9782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9783 hardcode_libdir_separator=: 9784 hardcode_direct=yes 9785 9786 # hardcode_minus_L: Not really in the search PATH, 9787 # but as the default location of the library. 9788 hardcode_minus_L=yes 9789 export_dynamic_flag_spec='${wl}-E' 9790 ;; 9791 9792 hpux10*) 9793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9795 else 9796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9797 fi 9798 if test "$with_gnu_ld" = no; then 9799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9800 hardcode_libdir_flag_spec_ld='+b $libdir' 9801 hardcode_libdir_separator=: 9802 hardcode_direct=yes 9803 hardcode_direct_absolute=yes 9804 export_dynamic_flag_spec='${wl}-E' 9805 # hardcode_minus_L: Not really in the search PATH, 9806 # but as the default location of the library. 9807 hardcode_minus_L=yes 9808 fi 9809 ;; 9810 9811 hpux11*) 9812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9813 case $host_cpu in 9814 hppa*64*) 9815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 ;; 9817 ia64*) 9818 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9819 ;; 9820 *) 9821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9822 ;; 9823 esac 9824 else 9825 case $host_cpu in 9826 hppa*64*) 9827 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9828 ;; 9829 ia64*) 9830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9831 ;; 9832 *) 9833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9834 ;; 9835 esac 9836 fi 9837 if test "$with_gnu_ld" = no; then 9838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9839 hardcode_libdir_separator=: 9840 9841 case $host_cpu in 9842 hppa*64*|ia64*) 9843 hardcode_direct=no 9844 hardcode_shlibpath_var=no 9845 ;; 9846 *) 9847 hardcode_direct=yes 9848 hardcode_direct_absolute=yes 9849 export_dynamic_flag_spec='${wl}-E' 9850 9851 # hardcode_minus_L: Not really in the search PATH, 9852 # but as the default location of the library. 9853 hardcode_minus_L=yes 9854 ;; 9855 esac 9856 fi 9857 ;; 9858 9859 irix5* | irix6* | nonstopux*) 9860 if test "$GCC" = yes; then 9861 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' 9862 # Try to use the -exported_symbol ld option, if it does not 9863 # work, assume that -exports_file does not work either and 9864 # implicitly export all symbols. 9865 save_LDFLAGS="$LDFLAGS" 9866 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9868 /* end confdefs.h. */ 9869 int foo(void) {} 9870 _ACEOF 9871 if ac_fn_c_try_link "$LINENO"; then : 9872 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' 9873 9874 fi 9875 rm -f core conftest.err conftest.$ac_objext \ 9876 conftest$ac_exeext conftest.$ac_ext 9877 LDFLAGS="$save_LDFLAGS" 9878 else 9879 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' 9880 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' 9881 fi 9882 archive_cmds_need_lc='no' 9883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9884 hardcode_libdir_separator=: 9885 inherit_rpath=yes 9886 link_all_deplibs=yes 9887 ;; 9888 9889 netbsd*) 9890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9892 else 9893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9894 fi 9895 hardcode_libdir_flag_spec='-R$libdir' 9896 hardcode_direct=yes 9897 hardcode_shlibpath_var=no 9898 ;; 9899 9900 newsos6) 9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9902 hardcode_direct=yes 9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9904 hardcode_libdir_separator=: 9905 hardcode_shlibpath_var=no 9906 ;; 9907 9908 *nto* | *qnx*) 9909 ;; 9910 9911 openbsd*) 9912 if test -f /usr/libexec/ld.so; then 9913 hardcode_direct=yes 9914 hardcode_shlibpath_var=no 9915 hardcode_direct_absolute=yes 9916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9920 export_dynamic_flag_spec='${wl}-E' 9921 else 9922 case $host_os in 9923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9925 hardcode_libdir_flag_spec='-R$libdir' 9926 ;; 9927 *) 9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9930 ;; 9931 esac 9932 fi 9933 else 9934 ld_shlibs=no 9935 fi 9936 ;; 9937 9938 os2*) 9939 hardcode_libdir_flag_spec='-L$libdir' 9940 hardcode_minus_L=yes 9941 allow_undefined_flag=unsupported 9942 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' 9943 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9944 ;; 9945 9946 osf3*) 9947 if test "$GCC" = yes; then 9948 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9949 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' 9950 else 9951 allow_undefined_flag=' -expect_unresolved \*' 9952 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' 9953 fi 9954 archive_cmds_need_lc='no' 9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9956 hardcode_libdir_separator=: 9957 ;; 9958 9959 osf4* | osf5*) # as osf3* with the addition of -msym flag 9960 if test "$GCC" = yes; then 9961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9962 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' 9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9964 else 9965 allow_undefined_flag=' -expect_unresolved \*' 9966 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' 9967 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~ 9968 $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' 9969 9970 # Both c and cxx compiler support -rpath directly 9971 hardcode_libdir_flag_spec='-rpath $libdir' 9972 fi 9973 archive_cmds_need_lc='no' 9974 hardcode_libdir_separator=: 9975 ;; 9976 9977 solaris*) 9978 no_undefined_flag=' -z defs' 9979 if test "$GCC" = yes; then 9980 wlarc='${wl}' 9981 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9983 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9984 else 9985 case `$CC -V 2>&1` in 9986 *"Compilers 5.0"*) 9987 wlarc='' 9988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9991 ;; 9992 *) 9993 wlarc='${wl}' 9994 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9996 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9997 ;; 9998 esac 9999 fi 10000 hardcode_libdir_flag_spec='-R$libdir' 10001 hardcode_shlibpath_var=no 10002 case $host_os in 10003 solaris2.[0-5] | solaris2.[0-5].*) ;; 10004 *) 10005 # The compiler driver will combine and reorder linker options, 10006 # but understands `-z linker_flag'. GCC discards it without `$wl', 10007 # but is careful enough not to reorder. 10008 # Supported since Solaris 2.6 (maybe 2.5.1?) 10009 if test "$GCC" = yes; then 10010 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10011 else 10012 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10013 fi 10014 ;; 10015 esac 10016 link_all_deplibs=yes 10017 ;; 10018 10019 sunos4*) 10020 if test "x$host_vendor" = xsequent; then 10021 # Use $CC to link under sequent, because it throws in some extra .o 10022 # files that make .init and .fini sections work. 10023 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10024 else 10025 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10026 fi 10027 hardcode_libdir_flag_spec='-L$libdir' 10028 hardcode_direct=yes 10029 hardcode_minus_L=yes 10030 hardcode_shlibpath_var=no 10031 ;; 10032 10033 sysv4) 10034 case $host_vendor in 10035 sni) 10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10037 hardcode_direct=yes # is this really true??? 10038 ;; 10039 siemens) 10040 ## LD is ld it makes a PLAMLIB 10041 ## CC just makes a GrossModule. 10042 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10043 reload_cmds='$CC -r -o $output$reload_objs' 10044 hardcode_direct=no 10045 ;; 10046 motorola) 10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10048 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10049 ;; 10050 esac 10051 runpath_var='LD_RUN_PATH' 10052 hardcode_shlibpath_var=no 10053 ;; 10054 10055 sysv4.3*) 10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10057 hardcode_shlibpath_var=no 10058 export_dynamic_flag_spec='-Bexport' 10059 ;; 10060 10061 sysv4*MP*) 10062 if test -d /usr/nec; then 10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10064 hardcode_shlibpath_var=no 10065 runpath_var=LD_RUN_PATH 10066 hardcode_runpath_var=yes 10067 ld_shlibs=yes 10068 fi 10069 ;; 10070 10071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10072 no_undefined_flag='${wl}-z,text' 10073 archive_cmds_need_lc=no 10074 hardcode_shlibpath_var=no 10075 runpath_var='LD_RUN_PATH' 10076 10077 if test "$GCC" = yes; then 10078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10080 else 10081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10083 fi 10084 ;; 10085 10086 sysv5* | sco3.2v5* | sco5v6*) 10087 # Note: We can NOT use -z defs as we might desire, because we do not 10088 # link with -lc, and that would cause any symbols used from libc to 10089 # always be unresolved, which means just about no library would 10090 # ever link correctly. If we're not using GNU ld we use -z text 10091 # though, which does catch some bad symbols but isn't as heavy-handed 10092 # as -z defs. 10093 no_undefined_flag='${wl}-z,text' 10094 allow_undefined_flag='${wl}-z,nodefs' 10095 archive_cmds_need_lc=no 10096 hardcode_shlibpath_var=no 10097 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10098 hardcode_libdir_separator=':' 10099 link_all_deplibs=yes 10100 export_dynamic_flag_spec='${wl}-Bexport' 10101 runpath_var='LD_RUN_PATH' 10102 10103 if test "$GCC" = yes; then 10104 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10105 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10106 else 10107 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10108 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10109 fi 10110 ;; 10111 10112 uts4*) 10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10114 hardcode_libdir_flag_spec='-L$libdir' 10115 hardcode_shlibpath_var=no 10116 ;; 10117 10118 *) 10119 ld_shlibs=no 10120 ;; 10121 esac 10122 10123 if test x$host_vendor = xsni; then 10124 case $host in 10125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10126 export_dynamic_flag_spec='${wl}-Blargedynsym' 10127 ;; 10128 esac 10129 fi 10130 fi 10131 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10133 $as_echo "$ld_shlibs" >&6; } 10134 test "$ld_shlibs" = no && can_build_shared=no 10135 10136 with_gnu_ld=$with_gnu_ld 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 # 10153 # Do we need to explicitly link libc? 10154 # 10155 case "x$archive_cmds_need_lc" in 10156 x|xyes) 10157 # Assume -lc should be added 10158 archive_cmds_need_lc=yes 10159 10160 if test "$enable_shared" = yes && test "$GCC" = yes; then 10161 case $archive_cmds in 10162 *'~'*) 10163 # FIXME: we may have to deal with multi-command sequences. 10164 ;; 10165 '$CC '*) 10166 # Test whether the compiler implicitly links with -lc since on some 10167 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10168 # to ld, don't add -lc before -lgcc. 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10170 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10171 $RM conftest* 10172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10173 10174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10175 (eval $ac_compile) 2>&5 10176 ac_status=$? 10177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10178 test $ac_status = 0; } 2>conftest.err; then 10179 soname=conftest 10180 lib=conftest 10181 libobjs=conftest.$ac_objext 10182 deplibs= 10183 wl=$lt_prog_compiler_wl 10184 pic_flag=$lt_prog_compiler_pic 10185 compiler_flags=-v 10186 linker_flags=-v 10187 verstring= 10188 output_objdir=. 10189 libname=conftest 10190 lt_save_allow_undefined_flag=$allow_undefined_flag 10191 allow_undefined_flag= 10192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10193 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10194 ac_status=$? 10195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10196 test $ac_status = 0; } 10197 then 10198 archive_cmds_need_lc=no 10199 else 10200 archive_cmds_need_lc=yes 10201 fi 10202 allow_undefined_flag=$lt_save_allow_undefined_flag 10203 else 10204 cat conftest.err 1>&5 10205 fi 10206 $RM conftest* 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10208 $as_echo "$archive_cmds_need_lc" >&6; } 10209 ;; 10210 esac 10211 fi 10212 ;; 10213 esac 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10372 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10373 10374 if test "$GCC" = yes; then 10375 case $host_os in 10376 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10377 *) lt_awk_arg="/^libraries:/" ;; 10378 esac 10379 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10380 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10381 # if the path contains ";" then we assume it to be the separator 10382 # otherwise default to the standard path separator (i.e. ":") - it is 10383 # assumed that no part of a normal pathname contains ";" but that should 10384 # okay in the real world where ";" in dirpaths is itself problematic. 10385 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10386 else 10387 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10388 fi 10389 # Ok, now we have the path, separated by spaces, we can step through it 10390 # and add multilib dir if necessary. 10391 lt_tmp_lt_search_path_spec= 10392 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10393 for lt_sys_path in $lt_search_path_spec; do 10394 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10396 else 10397 test -d "$lt_sys_path" && \ 10398 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10399 fi 10400 done 10401 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10402 BEGIN {RS=" "; FS="/|\n";} { 10403 lt_foo=""; 10404 lt_count=0; 10405 for (lt_i = NF; lt_i > 0; lt_i--) { 10406 if ($lt_i != "" && $lt_i != ".") { 10407 if ($lt_i == "..") { 10408 lt_count++; 10409 } else { 10410 if (lt_count == 0) { 10411 lt_foo="/" $lt_i lt_foo; 10412 } else { 10413 lt_count--; 10414 } 10415 } 10416 } 10417 } 10418 if (lt_foo != "") { lt_freq[lt_foo]++; } 10419 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10420 }'` 10421 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10422 else 10423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10424 fi 10425 library_names_spec= 10426 libname_spec='lib$name' 10427 soname_spec= 10428 shrext_cmds=".so" 10429 postinstall_cmds= 10430 postuninstall_cmds= 10431 finish_cmds= 10432 finish_eval= 10433 shlibpath_var= 10434 shlibpath_overrides_runpath=unknown 10435 version_type=none 10436 dynamic_linker="$host_os ld.so" 10437 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10438 need_lib_prefix=unknown 10439 hardcode_into_libs=no 10440 10441 # when you set need_version to no, make sure it does not cause -set_version 10442 # flags to be left without arguments 10443 need_version=unknown 10444 10445 case $host_os in 10446 aix3*) 10447 version_type=linux 10448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10449 shlibpath_var=LIBPATH 10450 10451 # AIX 3 has no versioning support, so we append a major version to the name. 10452 soname_spec='${libname}${release}${shared_ext}$major' 10453 ;; 10454 10455 aix[4-9]*) 10456 version_type=linux 10457 need_lib_prefix=no 10458 need_version=no 10459 hardcode_into_libs=yes 10460 if test "$host_cpu" = ia64; then 10461 # AIX 5 supports IA64 10462 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10463 shlibpath_var=LD_LIBRARY_PATH 10464 else 10465 # With GCC up to 2.95.x, collect2 would create an import file 10466 # for dependence libraries. The import file would start with 10467 # the line `#! .'. This would cause the generated library to 10468 # depend on `.', always an invalid library. This was fixed in 10469 # development snapshots of GCC prior to 3.0. 10470 case $host_os in 10471 aix4 | aix4.[01] | aix4.[01].*) 10472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10473 echo ' yes ' 10474 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10475 : 10476 else 10477 can_build_shared=no 10478 fi 10479 ;; 10480 esac 10481 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10482 # soname into executable. Probably we can add versioning support to 10483 # collect2, so additional links can be useful in future. 10484 if test "$aix_use_runtimelinking" = yes; then 10485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10486 # instead of lib<name>.a to let people know that these are not 10487 # typical AIX shared libraries. 10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10489 else 10490 # We preserve .a as extension for shared libraries through AIX4.2 10491 # and later when we are not doing run time linking. 10492 library_names_spec='${libname}${release}.a $libname.a' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 fi 10495 shlibpath_var=LIBPATH 10496 fi 10497 ;; 10498 10499 amigaos*) 10500 case $host_cpu in 10501 powerpc) 10502 # Since July 2007 AmigaOS4 officially supports .so libraries. 10503 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10505 ;; 10506 m68k) 10507 library_names_spec='$libname.ixlibrary $libname.a' 10508 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10509 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' 10510 ;; 10511 esac 10512 ;; 10513 10514 beos*) 10515 library_names_spec='${libname}${shared_ext}' 10516 dynamic_linker="$host_os ld.so" 10517 shlibpath_var=LIBRARY_PATH 10518 ;; 10519 10520 bsdi[45]*) 10521 version_type=linux 10522 need_version=no 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10526 shlibpath_var=LD_LIBRARY_PATH 10527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10529 # the default ld.so.conf also contains /usr/contrib/lib and 10530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10531 # libtool to hard-code these into programs 10532 ;; 10533 10534 cygwin* | mingw* | pw32*) 10535 version_type=windows 10536 shrext_cmds=".dll" 10537 need_version=no 10538 need_lib_prefix=no 10539 10540 case $GCC,$host_os in 10541 yes,cygwin* | yes,mingw* | yes,pw32*) 10542 library_names_spec='$libname.dll.a' 10543 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10544 postinstall_cmds='base_file=`basename \${file}`~ 10545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10546 dldir=$destdir/`dirname \$dlpath`~ 10547 test -d \$dldir || mkdir -p \$dldir~ 10548 $install_prog $dir/$dlname \$dldir/$dlname~ 10549 chmod a+x \$dldir/$dlname~ 10550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10552 fi' 10553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10554 dlpath=$dir/\$dldll~ 10555 $RM \$dlpath' 10556 shlibpath_overrides_runpath=yes 10557 10558 case $host_os in 10559 cygwin*) 10560 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10562 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10563 ;; 10564 mingw*) 10565 # MinGW DLLs use traditional 'lib' prefix 10566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10567 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10568 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10569 # It is most probably a Windows format PATH printed by 10570 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10571 # path with ; separators, and with drive letters. We can handle the 10572 # drive letters (cygwin fileutils understands them), so leave them, 10573 # especially as we might pass files found there to a mingw objdump, 10574 # which wouldn't understand a cygwinified path. Ahh. 10575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10576 else 10577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10578 fi 10579 ;; 10580 pw32*) 10581 # pw32 DLLs use 'pw' prefix rather than 'lib' 10582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10583 ;; 10584 esac 10585 ;; 10586 10587 *) 10588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10589 ;; 10590 esac 10591 dynamic_linker='Win32 ld.exe' 10592 # FIXME: first we should search . and the directory the executable is in 10593 shlibpath_var=PATH 10594 ;; 10595 10596 darwin* | rhapsody*) 10597 dynamic_linker="$host_os dyld" 10598 version_type=darwin 10599 need_lib_prefix=no 10600 need_version=no 10601 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10602 soname_spec='${libname}${release}${major}$shared_ext' 10603 shlibpath_overrides_runpath=yes 10604 shlibpath_var=DYLD_LIBRARY_PATH 10605 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10606 10607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10609 ;; 10610 10611 dgux*) 10612 version_type=linux 10613 need_lib_prefix=no 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 shlibpath_var=LD_LIBRARY_PATH 10618 ;; 10619 10620 freebsd1*) 10621 dynamic_linker=no 10622 ;; 10623 10624 freebsd* | dragonfly*) 10625 # DragonFly does not have aout. When/if they implement a new 10626 # versioning mechanism, adjust this. 10627 if test -x /usr/bin/objformat; then 10628 objformat=`/usr/bin/objformat` 10629 else 10630 case $host_os in 10631 freebsd[123]*) objformat=aout ;; 10632 *) objformat=elf ;; 10633 esac 10634 fi 10635 version_type=freebsd-$objformat 10636 case $version_type in 10637 freebsd-elf*) 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10639 need_version=no 10640 need_lib_prefix=no 10641 ;; 10642 freebsd-*) 10643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10644 need_version=yes 10645 ;; 10646 esac 10647 shlibpath_var=LD_LIBRARY_PATH 10648 case $host_os in 10649 freebsd2*) 10650 shlibpath_overrides_runpath=yes 10651 ;; 10652 freebsd3.[01]* | freebsdelf3.[01]*) 10653 shlibpath_overrides_runpath=yes 10654 hardcode_into_libs=yes 10655 ;; 10656 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10657 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10658 shlibpath_overrides_runpath=no 10659 hardcode_into_libs=yes 10660 ;; 10661 *) # from 4.6 on, and DragonFly 10662 shlibpath_overrides_runpath=yes 10663 hardcode_into_libs=yes 10664 ;; 10665 esac 10666 ;; 10667 10668 gnu*) 10669 version_type=linux 10670 need_lib_prefix=no 10671 need_version=no 10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10673 soname_spec='${libname}${release}${shared_ext}$major' 10674 shlibpath_var=LD_LIBRARY_PATH 10675 hardcode_into_libs=yes 10676 ;; 10677 10678 hpux9* | hpux10* | hpux11*) 10679 # Give a soname corresponding to the major version so that dld.sl refuses to 10680 # link against other versions. 10681 version_type=sunos 10682 need_lib_prefix=no 10683 need_version=no 10684 case $host_cpu in 10685 ia64*) 10686 shrext_cmds='.so' 10687 hardcode_into_libs=yes 10688 dynamic_linker="$host_os dld.so" 10689 shlibpath_var=LD_LIBRARY_PATH 10690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10692 soname_spec='${libname}${release}${shared_ext}$major' 10693 if test "X$HPUX_IA64_MODE" = X32; then 10694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10695 else 10696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10697 fi 10698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10699 ;; 10700 hppa*64*) 10701 shrext_cmds='.sl' 10702 hardcode_into_libs=yes 10703 dynamic_linker="$host_os dld.sl" 10704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10710 ;; 10711 *) 10712 shrext_cmds='.sl' 10713 dynamic_linker="$host_os dld.sl" 10714 shlibpath_var=SHLIB_PATH 10715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10717 soname_spec='${libname}${release}${shared_ext}$major' 10718 ;; 10719 esac 10720 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10721 postinstall_cmds='chmod 555 $lib' 10722 ;; 10723 10724 interix[3-9]*) 10725 version_type=linux 10726 need_lib_prefix=no 10727 need_version=no 10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10729 soname_spec='${libname}${release}${shared_ext}$major' 10730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10731 shlibpath_var=LD_LIBRARY_PATH 10732 shlibpath_overrides_runpath=no 10733 hardcode_into_libs=yes 10734 ;; 10735 10736 irix5* | irix6* | nonstopux*) 10737 case $host_os in 10738 nonstopux*) version_type=nonstopux ;; 10739 *) 10740 if test "$lt_cv_prog_gnu_ld" = yes; then 10741 version_type=linux 10742 else 10743 version_type=irix 10744 fi ;; 10745 esac 10746 need_lib_prefix=no 10747 need_version=no 10748 soname_spec='${libname}${release}${shared_ext}$major' 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10750 case $host_os in 10751 irix5* | nonstopux*) 10752 libsuff= shlibsuff= 10753 ;; 10754 *) 10755 case $LD in # libtool.m4 will add one of these switches to LD 10756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10757 libsuff= shlibsuff= libmagic=32-bit;; 10758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10759 libsuff=32 shlibsuff=N32 libmagic=N32;; 10760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10761 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10762 *) libsuff= shlibsuff= libmagic=never-match;; 10763 esac 10764 ;; 10765 esac 10766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10767 shlibpath_overrides_runpath=no 10768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10770 hardcode_into_libs=yes 10771 ;; 10772 10773 # No shared lib support for Linux oldld, aout, or coff. 10774 linux*oldld* | linux*aout* | linux*coff*) 10775 dynamic_linker=no 10776 ;; 10777 10778 # This must be Linux ELF. 10779 linux* | k*bsd*-gnu) 10780 version_type=linux 10781 need_lib_prefix=no 10782 need_version=no 10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10784 soname_spec='${libname}${release}${shared_ext}$major' 10785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10786 shlibpath_var=LD_LIBRARY_PATH 10787 shlibpath_overrides_runpath=no 10788 # Some binutils ld are patched to set DT_RUNPATH 10789 save_LDFLAGS=$LDFLAGS 10790 save_libdir=$libdir 10791 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10792 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794 /* end confdefs.h. */ 10795 10796 int 10797 main () 10798 { 10799 10800 ; 10801 return 0; 10802 } 10803 _ACEOF 10804 if ac_fn_c_try_link "$LINENO"; then : 10805 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10806 shlibpath_overrides_runpath=yes 10807 fi 10808 fi 10809 rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811 LDFLAGS=$save_LDFLAGS 10812 libdir=$save_libdir 10813 10814 # This implies no fast_install, which is unacceptable. 10815 # Some rework will be needed to allow for fast_install 10816 # before this can be enabled. 10817 hardcode_into_libs=yes 10818 10819 # Append ld.so.conf contents to the search path 10820 if test -f /etc/ld.so.conf; then 10821 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' ' '` 10822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10823 fi 10824 10825 # We used to test for /lib/ld.so.1 and disable shared libraries on 10826 # powerpc, because MkLinux only supported shared libraries with the 10827 # GNU dynamic linker. Since this was broken with cross compilers, 10828 # most powerpc-linux boxes support dynamic linking these days and 10829 # people can always --disable-shared, the test was removed, and we 10830 # assume the GNU/Linux dynamic linker is in use. 10831 dynamic_linker='GNU/Linux ld.so' 10832 ;; 10833 10834 netbsd*) 10835 version_type=sunos 10836 need_lib_prefix=no 10837 need_version=no 10838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10841 dynamic_linker='NetBSD (a.out) ld.so' 10842 else 10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10844 soname_spec='${libname}${release}${shared_ext}$major' 10845 dynamic_linker='NetBSD ld.elf_so' 10846 fi 10847 shlibpath_var=LD_LIBRARY_PATH 10848 shlibpath_overrides_runpath=yes 10849 hardcode_into_libs=yes 10850 ;; 10851 10852 newsos6) 10853 version_type=linux 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10855 shlibpath_var=LD_LIBRARY_PATH 10856 shlibpath_overrides_runpath=yes 10857 ;; 10858 10859 *nto* | *qnx*) 10860 version_type=qnx 10861 need_lib_prefix=no 10862 need_version=no 10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10864 soname_spec='${libname}${release}${shared_ext}$major' 10865 shlibpath_var=LD_LIBRARY_PATH 10866 shlibpath_overrides_runpath=no 10867 hardcode_into_libs=yes 10868 dynamic_linker='ldqnx.so' 10869 ;; 10870 10871 openbsd*) 10872 version_type=sunos 10873 sys_lib_dlsearch_path_spec="/usr/lib" 10874 need_lib_prefix=no 10875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10876 case $host_os in 10877 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10878 *) need_version=no ;; 10879 esac 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10882 shlibpath_var=LD_LIBRARY_PATH 10883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10884 case $host_os in 10885 openbsd2.[89] | openbsd2.[89].*) 10886 shlibpath_overrides_runpath=no 10887 ;; 10888 *) 10889 shlibpath_overrides_runpath=yes 10890 ;; 10891 esac 10892 else 10893 shlibpath_overrides_runpath=yes 10894 fi 10895 ;; 10896 10897 os2*) 10898 libname_spec='$name' 10899 shrext_cmds=".dll" 10900 need_lib_prefix=no 10901 library_names_spec='$libname${shared_ext} $libname.a' 10902 dynamic_linker='OS/2 ld.exe' 10903 shlibpath_var=LIBPATH 10904 ;; 10905 10906 osf3* | osf4* | osf5*) 10907 version_type=osf 10908 need_lib_prefix=no 10909 need_version=no 10910 soname_spec='${libname}${release}${shared_ext}$major' 10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10912 shlibpath_var=LD_LIBRARY_PATH 10913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10915 ;; 10916 10917 rdos*) 10918 dynamic_linker=no 10919 ;; 10920 10921 solaris*) 10922 version_type=linux 10923 need_lib_prefix=no 10924 need_version=no 10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10926 soname_spec='${libname}${release}${shared_ext}$major' 10927 shlibpath_var=LD_LIBRARY_PATH 10928 shlibpath_overrides_runpath=yes 10929 hardcode_into_libs=yes 10930 # ldd complains unless libraries are executable 10931 postinstall_cmds='chmod +x $lib' 10932 ;; 10933 10934 sunos4*) 10935 version_type=sunos 10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 shlibpath_overrides_runpath=yes 10940 if test "$with_gnu_ld" = yes; then 10941 need_lib_prefix=no 10942 fi 10943 need_version=yes 10944 ;; 10945 10946 sysv4 | sysv4.3*) 10947 version_type=linux 10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10949 soname_spec='${libname}${release}${shared_ext}$major' 10950 shlibpath_var=LD_LIBRARY_PATH 10951 case $host_vendor in 10952 sni) 10953 shlibpath_overrides_runpath=no 10954 need_lib_prefix=no 10955 runpath_var=LD_RUN_PATH 10956 ;; 10957 siemens) 10958 need_lib_prefix=no 10959 ;; 10960 motorola) 10961 need_lib_prefix=no 10962 need_version=no 10963 shlibpath_overrides_runpath=no 10964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10965 ;; 10966 esac 10967 ;; 10968 10969 sysv4*MP*) 10970 if test -d /usr/nec ;then 10971 version_type=linux 10972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10973 soname_spec='$libname${shared_ext}.$major' 10974 shlibpath_var=LD_LIBRARY_PATH 10975 fi 10976 ;; 10977 10978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10979 version_type=freebsd-elf 10980 need_lib_prefix=no 10981 need_version=no 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10983 soname_spec='${libname}${release}${shared_ext}$major' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 shlibpath_overrides_runpath=yes 10986 hardcode_into_libs=yes 10987 if test "$with_gnu_ld" = yes; then 10988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10989 else 10990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10991 case $host_os in 10992 sco3.2v5*) 10993 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10994 ;; 10995 esac 10996 fi 10997 sys_lib_dlsearch_path_spec='/usr/lib' 10998 ;; 10999 11000 tpf*) 11001 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11002 version_type=linux 11003 need_lib_prefix=no 11004 need_version=no 11005 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11006 shlibpath_var=LD_LIBRARY_PATH 11007 shlibpath_overrides_runpath=no 11008 hardcode_into_libs=yes 11009 ;; 11010 11011 uts4*) 11012 version_type=linux 11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11014 soname_spec='${libname}${release}${shared_ext}$major' 11015 shlibpath_var=LD_LIBRARY_PATH 11016 ;; 11017 11018 *) 11019 dynamic_linker=no 11020 ;; 11021 esac 11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11023 $as_echo "$dynamic_linker" >&6; } 11024 test "$dynamic_linker" = no && can_build_shared=no 11025 11026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11027 if test "$GCC" = yes; then 11028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11029 fi 11030 11031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11033 fi 11034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11036 fi 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11125 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11126 hardcode_action= 11127 if test -n "$hardcode_libdir_flag_spec" || 11128 test -n "$runpath_var" || 11129 test "X$hardcode_automatic" = "Xyes" ; then 11130 11131 # We can hardcode non-existent directories. 11132 if test "$hardcode_direct" != no && 11133 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11134 # have to relink, otherwise we might link with an installed library 11135 # when we should be linking with a yet-to-be-installed one 11136 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11137 test "$hardcode_minus_L" != no; then 11138 # Linking always hardcodes the temporary library directory. 11139 hardcode_action=relink 11140 else 11141 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11142 hardcode_action=immediate 11143 fi 11144 else 11145 # We cannot hardcode anything, or else we can only hardcode existing 11146 # directories. 11147 hardcode_action=unsupported 11148 fi 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11150 $as_echo "$hardcode_action" >&6; } 11151 11152 if test "$hardcode_action" = relink || 11153 test "$inherit_rpath" = yes; then 11154 # Fast installation is not supported 11155 enable_fast_install=no 11156 elif test "$shlibpath_overrides_runpath" = yes || 11157 test "$enable_shared" = no; then 11158 # Fast installation is not necessary 11159 enable_fast_install=needless 11160 fi 11161 11162 11163 11164 11165 11166 11167 if test "x$enable_dlopen" != xyes; then 11168 enable_dlopen=unknown 11169 enable_dlopen_self=unknown 11170 enable_dlopen_self_static=unknown 11171 else 11172 lt_cv_dlopen=no 11173 lt_cv_dlopen_libs= 11174 11175 case $host_os in 11176 beos*) 11177 lt_cv_dlopen="load_add_on" 11178 lt_cv_dlopen_libs= 11179 lt_cv_dlopen_self=yes 11180 ;; 11181 11182 mingw* | pw32*) 11183 lt_cv_dlopen="LoadLibrary" 11184 lt_cv_dlopen_libs= 11185 ;; 11186 11187 cygwin*) 11188 lt_cv_dlopen="dlopen" 11189 lt_cv_dlopen_libs= 11190 ;; 11191 11192 darwin*) 11193 # if libdl is installed we need to link against it 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11195 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11196 if ${ac_cv_lib_dl_dlopen+:} false; then : 11197 $as_echo_n "(cached) " >&6 11198 else 11199 ac_check_lib_save_LIBS=$LIBS 11200 LIBS="-ldl $LIBS" 11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202 /* end confdefs.h. */ 11203 11204 /* Override any GCC internal prototype to avoid an error. 11205 Use char because int might match the return type of a GCC 11206 builtin and then its argument prototype would still apply. */ 11207 #ifdef __cplusplus 11208 extern "C" 11209 #endif 11210 char dlopen (); 11211 int 11212 main () 11213 { 11214 return dlopen (); 11215 ; 11216 return 0; 11217 } 11218 _ACEOF 11219 if ac_fn_c_try_link "$LINENO"; then : 11220 ac_cv_lib_dl_dlopen=yes 11221 else 11222 ac_cv_lib_dl_dlopen=no 11223 fi 11224 rm -f core conftest.err conftest.$ac_objext \ 11225 conftest$ac_exeext conftest.$ac_ext 11226 LIBS=$ac_check_lib_save_LIBS 11227 fi 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11229 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11230 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11232 else 11233 11234 lt_cv_dlopen="dyld" 11235 lt_cv_dlopen_libs= 11236 lt_cv_dlopen_self=yes 11237 11238 fi 11239 11240 ;; 11241 11242 *) 11243 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11244 if test "x$ac_cv_func_shl_load" = xyes; then : 11245 lt_cv_dlopen="shl_load" 11246 else 11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11248 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11249 if ${ac_cv_lib_dld_shl_load+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251 else 11252 ac_check_lib_save_LIBS=$LIBS 11253 LIBS="-ldld $LIBS" 11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255 /* end confdefs.h. */ 11256 11257 /* Override any GCC internal prototype to avoid an error. 11258 Use char because int might match the return type of a GCC 11259 builtin and then its argument prototype would still apply. */ 11260 #ifdef __cplusplus 11261 extern "C" 11262 #endif 11263 char shl_load (); 11264 int 11265 main () 11266 { 11267 return shl_load (); 11268 ; 11269 return 0; 11270 } 11271 _ACEOF 11272 if ac_fn_c_try_link "$LINENO"; then : 11273 ac_cv_lib_dld_shl_load=yes 11274 else 11275 ac_cv_lib_dld_shl_load=no 11276 fi 11277 rm -f core conftest.err conftest.$ac_objext \ 11278 conftest$ac_exeext conftest.$ac_ext 11279 LIBS=$ac_check_lib_save_LIBS 11280 fi 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11282 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11283 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11284 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11285 else 11286 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11287 if test "x$ac_cv_func_dlopen" = xyes; then : 11288 lt_cv_dlopen="dlopen" 11289 else 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11291 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11292 if ${ac_cv_lib_dl_dlopen+:} false; then : 11293 $as_echo_n "(cached) " >&6 11294 else 11295 ac_check_lib_save_LIBS=$LIBS 11296 LIBS="-ldl $LIBS" 11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11298 /* end confdefs.h. */ 11299 11300 /* Override any GCC internal prototype to avoid an error. 11301 Use char because int might match the return type of a GCC 11302 builtin and then its argument prototype would still apply. */ 11303 #ifdef __cplusplus 11304 extern "C" 11305 #endif 11306 char dlopen (); 11307 int 11308 main () 11309 { 11310 return dlopen (); 11311 ; 11312 return 0; 11313 } 11314 _ACEOF 11315 if ac_fn_c_try_link "$LINENO"; then : 11316 ac_cv_lib_dl_dlopen=yes 11317 else 11318 ac_cv_lib_dl_dlopen=no 11319 fi 11320 rm -f core conftest.err conftest.$ac_objext \ 11321 conftest$ac_exeext conftest.$ac_ext 11322 LIBS=$ac_check_lib_save_LIBS 11323 fi 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11328 else 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11330 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11331 if ${ac_cv_lib_svld_dlopen+:} false; then : 11332 $as_echo_n "(cached) " >&6 11333 else 11334 ac_check_lib_save_LIBS=$LIBS 11335 LIBS="-lsvld $LIBS" 11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11337 /* end confdefs.h. */ 11338 11339 /* Override any GCC internal prototype to avoid an error. 11340 Use char because int might match the return type of a GCC 11341 builtin and then its argument prototype would still apply. */ 11342 #ifdef __cplusplus 11343 extern "C" 11344 #endif 11345 char dlopen (); 11346 int 11347 main () 11348 { 11349 return dlopen (); 11350 ; 11351 return 0; 11352 } 11353 _ACEOF 11354 if ac_fn_c_try_link "$LINENO"; then : 11355 ac_cv_lib_svld_dlopen=yes 11356 else 11357 ac_cv_lib_svld_dlopen=no 11358 fi 11359 rm -f core conftest.err conftest.$ac_objext \ 11360 conftest$ac_exeext conftest.$ac_ext 11361 LIBS=$ac_check_lib_save_LIBS 11362 fi 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11364 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11365 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11367 else 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11369 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11370 if ${ac_cv_lib_dld_dld_link+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372 else 11373 ac_check_lib_save_LIBS=$LIBS 11374 LIBS="-ldld $LIBS" 11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376 /* end confdefs.h. */ 11377 11378 /* Override any GCC internal prototype to avoid an error. 11379 Use char because int might match the return type of a GCC 11380 builtin and then its argument prototype would still apply. */ 11381 #ifdef __cplusplus 11382 extern "C" 11383 #endif 11384 char dld_link (); 11385 int 11386 main () 11387 { 11388 return dld_link (); 11389 ; 11390 return 0; 11391 } 11392 _ACEOF 11393 if ac_fn_c_try_link "$LINENO"; then : 11394 ac_cv_lib_dld_dld_link=yes 11395 else 11396 ac_cv_lib_dld_dld_link=no 11397 fi 11398 rm -f core conftest.err conftest.$ac_objext \ 11399 conftest$ac_exeext conftest.$ac_ext 11400 LIBS=$ac_check_lib_save_LIBS 11401 fi 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11403 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11404 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11406 fi 11407 11408 11409 fi 11410 11411 11412 fi 11413 11414 11415 fi 11416 11417 11418 fi 11419 11420 11421 fi 11422 11423 ;; 11424 esac 11425 11426 if test "x$lt_cv_dlopen" != xno; then 11427 enable_dlopen=yes 11428 else 11429 enable_dlopen=no 11430 fi 11431 11432 case $lt_cv_dlopen in 11433 dlopen) 11434 save_CPPFLAGS="$CPPFLAGS" 11435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11436 11437 save_LDFLAGS="$LDFLAGS" 11438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11439 11440 save_LIBS="$LIBS" 11441 LIBS="$lt_cv_dlopen_libs $LIBS" 11442 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11444 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11445 if ${lt_cv_dlopen_self+:} false; then : 11446 $as_echo_n "(cached) " >&6 11447 else 11448 if test "$cross_compiling" = yes; then : 11449 lt_cv_dlopen_self=cross 11450 else 11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11452 lt_status=$lt_dlunknown 11453 cat > conftest.$ac_ext <<_LT_EOF 11454 #line 11454 "configure" 11455 #include "confdefs.h" 11456 11457 #if HAVE_DLFCN_H 11458 #include <dlfcn.h> 11459 #endif 11460 11461 #include <stdio.h> 11462 11463 #ifdef RTLD_GLOBAL 11464 # define LT_DLGLOBAL RTLD_GLOBAL 11465 #else 11466 # ifdef DL_GLOBAL 11467 # define LT_DLGLOBAL DL_GLOBAL 11468 # else 11469 # define LT_DLGLOBAL 0 11470 # endif 11471 #endif 11472 11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11474 find out it does not work in some platform. */ 11475 #ifndef LT_DLLAZY_OR_NOW 11476 # ifdef RTLD_LAZY 11477 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11478 # else 11479 # ifdef DL_LAZY 11480 # define LT_DLLAZY_OR_NOW DL_LAZY 11481 # else 11482 # ifdef RTLD_NOW 11483 # define LT_DLLAZY_OR_NOW RTLD_NOW 11484 # else 11485 # ifdef DL_NOW 11486 # define LT_DLLAZY_OR_NOW DL_NOW 11487 # else 11488 # define LT_DLLAZY_OR_NOW 0 11489 # endif 11490 # endif 11491 # endif 11492 # endif 11493 #endif 11494 11495 #ifdef __cplusplus 11496 extern "C" void exit (int); 11497 #endif 11498 11499 void fnord() { int i=42;} 11500 int main () 11501 { 11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11503 int status = $lt_dlunknown; 11504 11505 if (self) 11506 { 11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11509 /* dlclose (self); */ 11510 } 11511 else 11512 puts (dlerror ()); 11513 11514 exit (status); 11515 } 11516 _LT_EOF 11517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11518 (eval $ac_link) 2>&5 11519 ac_status=$? 11520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11521 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11522 (./conftest; exit; ) >&5 2>/dev/null 11523 lt_status=$? 11524 case x$lt_status in 11525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11528 esac 11529 else : 11530 # compilation failed 11531 lt_cv_dlopen_self=no 11532 fi 11533 fi 11534 rm -fr conftest* 11535 11536 11537 fi 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11539 $as_echo "$lt_cv_dlopen_self" >&6; } 11540 11541 if test "x$lt_cv_dlopen_self" = xyes; then 11542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11544 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11545 if ${lt_cv_dlopen_self_static+:} false; then : 11546 $as_echo_n "(cached) " >&6 11547 else 11548 if test "$cross_compiling" = yes; then : 11549 lt_cv_dlopen_self_static=cross 11550 else 11551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11552 lt_status=$lt_dlunknown 11553 cat > conftest.$ac_ext <<_LT_EOF 11554 #line 11554 "configure" 11555 #include "confdefs.h" 11556 11557 #if HAVE_DLFCN_H 11558 #include <dlfcn.h> 11559 #endif 11560 11561 #include <stdio.h> 11562 11563 #ifdef RTLD_GLOBAL 11564 # define LT_DLGLOBAL RTLD_GLOBAL 11565 #else 11566 # ifdef DL_GLOBAL 11567 # define LT_DLGLOBAL DL_GLOBAL 11568 # else 11569 # define LT_DLGLOBAL 0 11570 # endif 11571 #endif 11572 11573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11574 find out it does not work in some platform. */ 11575 #ifndef LT_DLLAZY_OR_NOW 11576 # ifdef RTLD_LAZY 11577 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11578 # else 11579 # ifdef DL_LAZY 11580 # define LT_DLLAZY_OR_NOW DL_LAZY 11581 # else 11582 # ifdef RTLD_NOW 11583 # define LT_DLLAZY_OR_NOW RTLD_NOW 11584 # else 11585 # ifdef DL_NOW 11586 # define LT_DLLAZY_OR_NOW DL_NOW 11587 # else 11588 # define LT_DLLAZY_OR_NOW 0 11589 # endif 11590 # endif 11591 # endif 11592 # endif 11593 #endif 11594 11595 #ifdef __cplusplus 11596 extern "C" void exit (int); 11597 #endif 11598 11599 void fnord() { int i=42;} 11600 int main () 11601 { 11602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11603 int status = $lt_dlunknown; 11604 11605 if (self) 11606 { 11607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11609 /* dlclose (self); */ 11610 } 11611 else 11612 puts (dlerror ()); 11613 11614 exit (status); 11615 } 11616 _LT_EOF 11617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11618 (eval $ac_link) 2>&5 11619 ac_status=$? 11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11621 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11622 (./conftest; exit; ) >&5 2>/dev/null 11623 lt_status=$? 11624 case x$lt_status in 11625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11628 esac 11629 else : 11630 # compilation failed 11631 lt_cv_dlopen_self_static=no 11632 fi 11633 fi 11634 rm -fr conftest* 11635 11636 11637 fi 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11639 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11640 fi 11641 11642 CPPFLAGS="$save_CPPFLAGS" 11643 LDFLAGS="$save_LDFLAGS" 11644 LIBS="$save_LIBS" 11645 ;; 11646 esac 11647 11648 case $lt_cv_dlopen_self in 11649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11650 *) enable_dlopen_self=unknown ;; 11651 esac 11652 11653 case $lt_cv_dlopen_self_static in 11654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11655 *) enable_dlopen_self_static=unknown ;; 11656 esac 11657 fi 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 striplib= 11676 old_striplib= 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11678 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11679 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11683 $as_echo "yes" >&6; } 11684 else 11685 # FIXME - insert some real tests, host_os isn't really good enough 11686 case $host_os in 11687 darwin*) 11688 if test -n "$STRIP" ; then 11689 striplib="$STRIP -x" 11690 old_striplib="$STRIP -S" 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11692 $as_echo "yes" >&6; } 11693 else 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11695 $as_echo "no" >&6; } 11696 fi 11697 ;; 11698 *) 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11700 $as_echo "no" >&6; } 11701 ;; 11702 esac 11703 fi 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 # Report which library types will actually be built 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11718 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11720 $as_echo "$can_build_shared" >&6; } 11721 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11723 $as_echo_n "checking whether to build shared libraries... " >&6; } 11724 test "$can_build_shared" = "no" && enable_shared=no 11725 11726 # On AIX, shared libraries and static libraries use the same namespace, and 11727 # are all built from PIC. 11728 case $host_os in 11729 aix3*) 11730 test "$enable_shared" = yes && enable_static=no 11731 if test -n "$RANLIB"; then 11732 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11733 postinstall_cmds='$RANLIB $lib' 11734 fi 11735 ;; 11736 11737 aix[4-9]*) 11738 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11739 test "$enable_shared" = yes && enable_static=no 11740 fi 11741 ;; 11742 esac 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11744 $as_echo "$enable_shared" >&6; } 11745 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11747 $as_echo_n "checking whether to build static libraries... " >&6; } 11748 # Make sure either enable_shared or enable_static is yes. 11749 test "$enable_shared" = yes || enable_static=yes 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11751 $as_echo "$enable_static" >&6; } 11752 11753 11754 11755 11756 fi 11757 ac_ext=cpp 11758 ac_cpp='$CXXCPP $CPPFLAGS' 11759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11762 11763 CC="$lt_save_CC" 11764 11765 11766 ac_ext=cpp 11767 ac_cpp='$CXXCPP $CPPFLAGS' 11768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11771 11772 archive_cmds_need_lc_CXX=no 11773 allow_undefined_flag_CXX= 11774 always_export_symbols_CXX=no 11775 archive_expsym_cmds_CXX= 11776 compiler_needs_object_CXX=no 11777 export_dynamic_flag_spec_CXX= 11778 hardcode_direct_CXX=no 11779 hardcode_direct_absolute_CXX=no 11780 hardcode_libdir_flag_spec_CXX= 11781 hardcode_libdir_flag_spec_ld_CXX= 11782 hardcode_libdir_separator_CXX= 11783 hardcode_minus_L_CXX=no 11784 hardcode_shlibpath_var_CXX=unsupported 11785 hardcode_automatic_CXX=no 11786 inherit_rpath_CXX=no 11787 module_cmds_CXX= 11788 module_expsym_cmds_CXX= 11789 link_all_deplibs_CXX=unknown 11790 old_archive_cmds_CXX=$old_archive_cmds 11791 no_undefined_flag_CXX= 11792 whole_archive_flag_spec_CXX= 11793 enable_shared_with_static_runtimes_CXX=no 11794 11795 # Source file extension for C++ test sources. 11796 ac_ext=cpp 11797 11798 # Object file extension for compiled C++ test sources. 11799 objext=o 11800 objext_CXX=$objext 11801 11802 # No sense in running all these tests if we already determined that 11803 # the CXX compiler isn't working. Some variables (like enable_shared) 11804 # are currently assumed to apply to all compilers on this platform, 11805 # and will be corrupted by setting them based on a non-working compiler. 11806 if test "$_lt_caught_CXX_error" != yes; then 11807 # Code to be used in simple compile tests 11808 lt_simple_compile_test_code="int some_variable = 0;" 11809 11810 # Code to be used in simple link tests 11811 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11812 11813 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11814 11815 11816 11817 11818 11819 11820 # If no C compiler was specified, use CC. 11821 LTCC=${LTCC-"$CC"} 11822 11823 # If no C compiler flags were specified, use CFLAGS. 11824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11825 11826 # Allow CC to be a program name with arguments. 11827 compiler=$CC 11828 11829 11830 # save warnings/boilerplate of simple test code 11831 ac_outfile=conftest.$ac_objext 11832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11834 _lt_compiler_boilerplate=`cat conftest.err` 11835 $RM conftest* 11836 11837 ac_outfile=conftest.$ac_objext 11838 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11840 _lt_linker_boilerplate=`cat conftest.err` 11841 $RM -r conftest* 11842 11843 11844 # Allow CC to be a program name with arguments. 11845 lt_save_CC=$CC 11846 lt_save_LD=$LD 11847 lt_save_GCC=$GCC 11848 GCC=$GXX 11849 lt_save_with_gnu_ld=$with_gnu_ld 11850 lt_save_path_LD=$lt_cv_path_LD 11851 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11852 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11853 else 11854 $as_unset lt_cv_prog_gnu_ld 11855 fi 11856 if test -n "${lt_cv_path_LDCXX+set}"; then 11857 lt_cv_path_LD=$lt_cv_path_LDCXX 11858 else 11859 $as_unset lt_cv_path_LD 11860 fi 11861 test -z "${LDCXX+set}" || LD=$LDCXX 11862 CC=${CXX-"c++"} 11863 compiler=$CC 11864 compiler_CXX=$CC 11865 for cc_temp in $compiler""; do 11866 case $cc_temp in 11867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11869 \-*) ;; 11870 *) break;; 11871 esac 11872 done 11873 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11874 11875 11876 if test -n "$compiler"; then 11877 # We don't want -fno-exception when compiling C++ code, so set the 11878 # no_builtin_flag separately 11879 if test "$GXX" = yes; then 11880 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11881 else 11882 lt_prog_compiler_no_builtin_flag_CXX= 11883 fi 11884 11885 if test "$GXX" = yes; then 11886 # Set up default GNU C++ configuration 11887 11888 11889 11890 # Check whether --with-gnu-ld was given. 11891 if test "${with_gnu_ld+set}" = set; then : 11892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11893 else 11894 with_gnu_ld=no 11895 fi 11896 11897 ac_prog=ld 11898 if test "$GCC" = yes; then 11899 # Check if gcc -print-prog-name=ld gives a path. 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11901 $as_echo_n "checking for ld used by $CC... " >&6; } 11902 case $host in 11903 *-*-mingw*) 11904 # gcc leaves a trailing carriage return which upsets mingw 11905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11906 *) 11907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11908 esac 11909 case $ac_prog in 11910 # Accept absolute paths. 11911 [\\/]* | ?:[\\/]*) 11912 re_direlt='/[^/][^/]*/\.\./' 11913 # Canonicalize the pathname of ld 11914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11917 done 11918 test -z "$LD" && LD="$ac_prog" 11919 ;; 11920 "") 11921 # If it fails, then pretend we aren't using GCC. 11922 ac_prog=ld 11923 ;; 11924 *) 11925 # If it is relative, then search for the first ld in PATH. 11926 with_gnu_ld=unknown 11927 ;; 11928 esac 11929 elif test "$with_gnu_ld" = yes; then 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11931 $as_echo_n "checking for GNU ld... " >&6; } 11932 else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11934 $as_echo_n "checking for non-GNU ld... " >&6; } 11935 fi 11936 if ${lt_cv_path_LD+:} false; then : 11937 $as_echo_n "(cached) " >&6 11938 else 11939 if test -z "$LD"; then 11940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11941 for ac_dir in $PATH; do 11942 IFS="$lt_save_ifs" 11943 test -z "$ac_dir" && ac_dir=. 11944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11945 lt_cv_path_LD="$ac_dir/$ac_prog" 11946 # Check to see if the program is GNU ld. I'd rather use --version, 11947 # but apparently some variants of GNU ld only accept -v. 11948 # Break only if it was the GNU/non-GNU ld that we prefer. 11949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11950 *GNU* | *'with BFD'*) 11951 test "$with_gnu_ld" != no && break 11952 ;; 11953 *) 11954 test "$with_gnu_ld" != yes && break 11955 ;; 11956 esac 11957 fi 11958 done 11959 IFS="$lt_save_ifs" 11960 else 11961 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11962 fi 11963 fi 11964 11965 LD="$lt_cv_path_LD" 11966 if test -n "$LD"; then 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11968 $as_echo "$LD" >&6; } 11969 else 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11971 $as_echo "no" >&6; } 11972 fi 11973 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11976 if ${lt_cv_prog_gnu_ld+:} false; then : 11977 $as_echo_n "(cached) " >&6 11978 else 11979 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11980 case `$LD -v 2>&1 </dev/null` in 11981 *GNU* | *'with BFD'*) 11982 lt_cv_prog_gnu_ld=yes 11983 ;; 11984 *) 11985 lt_cv_prog_gnu_ld=no 11986 ;; 11987 esac 11988 fi 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11990 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11991 with_gnu_ld=$lt_cv_prog_gnu_ld 11992 11993 11994 11995 11996 11997 11998 11999 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12000 # archiving commands below assume that GNU ld is being used. 12001 if test "$with_gnu_ld" = yes; then 12002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12003 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' 12004 12005 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12007 12008 # If archive_cmds runs LD, not CC, wlarc should be empty 12009 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12010 # investigate it a little bit more. (MM) 12011 wlarc='${wl}' 12012 12013 # ancient GNU ld didn't support --whole-archive et. al. 12014 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12015 $GREP 'no-whole-archive' > /dev/null; then 12016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12017 else 12018 whole_archive_flag_spec_CXX= 12019 fi 12020 else 12021 with_gnu_ld=no 12022 wlarc= 12023 12024 # A generic and very simple default shared library creation 12025 # command for GNU C++ for the case where it uses the native 12026 # linker, instead of GNU ld. If possible, this setting should 12027 # overridden to take advantage of the native linker features on 12028 # the platform it is being used on. 12029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12030 fi 12031 12032 # Commands to make compiler produce verbose output that lists 12033 # what "hidden" libraries, object files and flags are used when 12034 # linking a shared library. 12035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12036 12037 else 12038 GXX=no 12039 with_gnu_ld=no 12040 wlarc= 12041 fi 12042 12043 # PORTME: fill in a description of your system's C++ link characteristics 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12046 ld_shlibs_CXX=yes 12047 case $host_os in 12048 aix3*) 12049 # FIXME: insert proper C++ library support 12050 ld_shlibs_CXX=no 12051 ;; 12052 aix[4-9]*) 12053 if test "$host_cpu" = ia64; then 12054 # On IA64, the linker does run time linking by default, so we don't 12055 # have to do anything special. 12056 aix_use_runtimelinking=no 12057 exp_sym_flag='-Bexport' 12058 no_entry_flag="" 12059 else 12060 aix_use_runtimelinking=no 12061 12062 # Test if we are trying to use run time linking or normal 12063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12064 # need to do runtime linking. 12065 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12066 for ld_flag in $LDFLAGS; do 12067 case $ld_flag in 12068 *-brtl*) 12069 aix_use_runtimelinking=yes 12070 break 12071 ;; 12072 esac 12073 done 12074 ;; 12075 esac 12076 12077 exp_sym_flag='-bexport' 12078 no_entry_flag='-bnoentry' 12079 fi 12080 12081 # When large executables or shared objects are built, AIX ld can 12082 # have problems creating the table of contents. If linking a library 12083 # or program results in "error TOC overflow" add -mminimal-toc to 12084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12086 12087 archive_cmds_CXX='' 12088 hardcode_direct_CXX=yes 12089 hardcode_direct_absolute_CXX=yes 12090 hardcode_libdir_separator_CXX=':' 12091 link_all_deplibs_CXX=yes 12092 file_list_spec_CXX='${wl}-f,' 12093 12094 if test "$GXX" = yes; then 12095 case $host_os in aix4.[012]|aix4.[012].*) 12096 # We only want to do this on AIX 4.2 and lower, the check 12097 # below for broken collect2 doesn't work under 4.3+ 12098 collect2name=`${CC} -print-prog-name=collect2` 12099 if test -f "$collect2name" && 12100 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12101 then 12102 # We have reworked collect2 12103 : 12104 else 12105 # We have old collect2 12106 hardcode_direct_CXX=unsupported 12107 # It fails to find uninstalled libraries when the uninstalled 12108 # path is not listed in the libpath. Setting hardcode_minus_L 12109 # to unsupported forces relinking 12110 hardcode_minus_L_CXX=yes 12111 hardcode_libdir_flag_spec_CXX='-L$libdir' 12112 hardcode_libdir_separator_CXX= 12113 fi 12114 esac 12115 shared_flag='-shared' 12116 if test "$aix_use_runtimelinking" = yes; then 12117 shared_flag="$shared_flag "'${wl}-G' 12118 fi 12119 else 12120 # not using gcc 12121 if test "$host_cpu" = ia64; then 12122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12123 # chokes on -Wl,-G. The following line is correct: 12124 shared_flag='-G' 12125 else 12126 if test "$aix_use_runtimelinking" = yes; then 12127 shared_flag='${wl}-G' 12128 else 12129 shared_flag='${wl}-bM:SRE' 12130 fi 12131 fi 12132 fi 12133 12134 # It seems that -bexpall does not export symbols beginning with 12135 # underscore (_), so it is better to generate a list of symbols to 12136 # export. 12137 always_export_symbols_CXX=yes 12138 if test "$aix_use_runtimelinking" = yes; then 12139 # Warning - without using the other runtime loading flags (-brtl), 12140 # -berok will link without error, but may produce a broken library. 12141 allow_undefined_flag_CXX='-berok' 12142 # Determine the default libpath from the value encoded in an empty 12143 # executable. 12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145 /* end confdefs.h. */ 12146 12147 int 12148 main () 12149 { 12150 12151 ; 12152 return 0; 12153 } 12154 _ACEOF 12155 if ac_fn_cxx_try_link "$LINENO"; then : 12156 12157 lt_aix_libpath_sed=' 12158 /Import File Strings/,/^$/ { 12159 /^0/ { 12160 s/^0 *\(.*\)$/\1/ 12161 p 12162 } 12163 }' 12164 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12165 # Check for a 64-bit object if we didn't find anything. 12166 if test -z "$aix_libpath"; then 12167 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12168 fi 12169 fi 12170 rm -f core conftest.err conftest.$ac_objext \ 12171 conftest$ac_exeext conftest.$ac_ext 12172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12173 12174 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12175 12176 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" 12177 else 12178 if test "$host_cpu" = ia64; then 12179 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12180 allow_undefined_flag_CXX="-z nodefs" 12181 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" 12182 else 12183 # Determine the default libpath from the value encoded in an 12184 # empty executable. 12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12186 /* end confdefs.h. */ 12187 12188 int 12189 main () 12190 { 12191 12192 ; 12193 return 0; 12194 } 12195 _ACEOF 12196 if ac_fn_cxx_try_link "$LINENO"; then : 12197 12198 lt_aix_libpath_sed=' 12199 /Import File Strings/,/^$/ { 12200 /^0/ { 12201 s/^0 *\(.*\)$/\1/ 12202 p 12203 } 12204 }' 12205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12206 # Check for a 64-bit object if we didn't find anything. 12207 if test -z "$aix_libpath"; then 12208 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12209 fi 12210 fi 12211 rm -f core conftest.err conftest.$ac_objext \ 12212 conftest$ac_exeext conftest.$ac_ext 12213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12216 # Warning - without using the other run time loading flags, 12217 # -berok will link without error, but may produce a broken library. 12218 no_undefined_flag_CXX=' ${wl}-bernotok' 12219 allow_undefined_flag_CXX=' ${wl}-berok' 12220 # Exported symbols can be pulled into shared objects from archives 12221 whole_archive_flag_spec_CXX='$convenience' 12222 archive_cmds_need_lc_CXX=yes 12223 # This is similar to how AIX traditionally builds its shared 12224 # libraries. 12225 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' 12226 fi 12227 fi 12228 ;; 12229 12230 beos*) 12231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12232 allow_undefined_flag_CXX=unsupported 12233 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12234 # support --undefined. This deserves some investigation. FIXME 12235 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12236 else 12237 ld_shlibs_CXX=no 12238 fi 12239 ;; 12240 12241 chorus*) 12242 case $cc_basename in 12243 *) 12244 # FIXME: insert proper C++ library support 12245 ld_shlibs_CXX=no 12246 ;; 12247 esac 12248 ;; 12249 12250 cygwin* | mingw* | pw32*) 12251 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12252 # as there is no search path for DLLs. 12253 hardcode_libdir_flag_spec_CXX='-L$libdir' 12254 allow_undefined_flag_CXX=unsupported 12255 always_export_symbols_CXX=no 12256 enable_shared_with_static_runtimes_CXX=yes 12257 12258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12259 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' 12260 # If the export-symbols file already is a .def file (1st line 12261 # is EXPORTS), use it as is; otherwise, prepend... 12262 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12263 cp $export_symbols $output_objdir/$soname.def; 12264 else 12265 echo EXPORTS > $output_objdir/$soname.def; 12266 cat $export_symbols >> $output_objdir/$soname.def; 12267 fi~ 12268 $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' 12269 else 12270 ld_shlibs_CXX=no 12271 fi 12272 ;; 12273 darwin* | rhapsody*) 12274 12275 12276 archive_cmds_need_lc_CXX=no 12277 hardcode_direct_CXX=no 12278 hardcode_automatic_CXX=yes 12279 hardcode_shlibpath_var_CXX=unsupported 12280 whole_archive_flag_spec_CXX='' 12281 link_all_deplibs_CXX=yes 12282 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12283 if test "$GCC" = "yes"; then 12284 output_verbose_link_cmd=echo 12285 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}" 12286 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12287 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}" 12288 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}" 12289 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12290 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}" 12291 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}" 12292 fi 12293 12294 else 12295 ld_shlibs_CXX=no 12296 fi 12297 12298 ;; 12299 12300 dgux*) 12301 case $cc_basename in 12302 ec++*) 12303 # FIXME: insert proper C++ library support 12304 ld_shlibs_CXX=no 12305 ;; 12306 ghcx*) 12307 # Green Hills C++ Compiler 12308 # FIXME: insert proper C++ library support 12309 ld_shlibs_CXX=no 12310 ;; 12311 *) 12312 # FIXME: insert proper C++ library support 12313 ld_shlibs_CXX=no 12314 ;; 12315 esac 12316 ;; 12317 12318 freebsd[12]*) 12319 # C++ shared libraries reported to be fairly broken before 12320 # switch to ELF 12321 ld_shlibs_CXX=no 12322 ;; 12323 12324 freebsd-elf*) 12325 archive_cmds_need_lc_CXX=no 12326 ;; 12327 12328 freebsd* | dragonfly*) 12329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12330 # conventions 12331 ld_shlibs_CXX=yes 12332 ;; 12333 12334 gnu*) 12335 ;; 12336 12337 hpux9*) 12338 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12339 hardcode_libdir_separator_CXX=: 12340 export_dynamic_flag_spec_CXX='${wl}-E' 12341 hardcode_direct_CXX=yes 12342 hardcode_minus_L_CXX=yes # Not in the search PATH, 12343 # but as the default 12344 # location of the library. 12345 12346 case $cc_basename in 12347 CC*) 12348 # FIXME: insert proper C++ library support 12349 ld_shlibs_CXX=no 12350 ;; 12351 aCC*) 12352 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' 12353 # Commands to make compiler produce verbose output that lists 12354 # what "hidden" libraries, object files and flags are used when 12355 # linking a shared library. 12356 # 12357 # There doesn't appear to be a way to prevent this compiler from 12358 # explicitly linking system object files so we need to strip them 12359 # from the output so that they don't get included in the library 12360 # dependencies. 12361 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' 12362 ;; 12363 *) 12364 if test "$GXX" = yes; then 12365 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' 12366 else 12367 # FIXME: insert proper C++ library support 12368 ld_shlibs_CXX=no 12369 fi 12370 ;; 12371 esac 12372 ;; 12373 12374 hpux10*|hpux11*) 12375 if test $with_gnu_ld = no; then 12376 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12377 hardcode_libdir_separator_CXX=: 12378 12379 case $host_cpu in 12380 hppa*64*|ia64*) 12381 ;; 12382 *) 12383 export_dynamic_flag_spec_CXX='${wl}-E' 12384 ;; 12385 esac 12386 fi 12387 case $host_cpu in 12388 hppa*64*|ia64*) 12389 hardcode_direct_CXX=no 12390 hardcode_shlibpath_var_CXX=no 12391 ;; 12392 *) 12393 hardcode_direct_CXX=yes 12394 hardcode_direct_absolute_CXX=yes 12395 hardcode_minus_L_CXX=yes # Not in the search PATH, 12396 # but as the default 12397 # location of the library. 12398 ;; 12399 esac 12400 12401 case $cc_basename in 12402 CC*) 12403 # FIXME: insert proper C++ library support 12404 ld_shlibs_CXX=no 12405 ;; 12406 aCC*) 12407 case $host_cpu in 12408 hppa*64*) 12409 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12410 ;; 12411 ia64*) 12412 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12413 ;; 12414 *) 12415 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12416 ;; 12417 esac 12418 # Commands to make compiler produce verbose output that lists 12419 # what "hidden" libraries, object files and flags are used when 12420 # linking a shared library. 12421 # 12422 # There doesn't appear to be a way to prevent this compiler from 12423 # explicitly linking system object files so we need to strip them 12424 # from the output so that they don't get included in the library 12425 # dependencies. 12426 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' 12427 ;; 12428 *) 12429 if test "$GXX" = yes; then 12430 if test $with_gnu_ld = no; then 12431 case $host_cpu in 12432 hppa*64*) 12433 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12434 ;; 12435 ia64*) 12436 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12437 ;; 12438 *) 12439 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' 12440 ;; 12441 esac 12442 fi 12443 else 12444 # FIXME: insert proper C++ library support 12445 ld_shlibs_CXX=no 12446 fi 12447 ;; 12448 esac 12449 ;; 12450 12451 interix[3-9]*) 12452 hardcode_direct_CXX=no 12453 hardcode_shlibpath_var_CXX=no 12454 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12455 export_dynamic_flag_spec_CXX='${wl}-E' 12456 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12457 # Instead, shared libraries are loaded at an image base (0x10000000 by 12458 # default) and relocated if they conflict, which is a slow very memory 12459 # consuming and fragmenting process. To avoid this, we pick a random, 12460 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12461 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12462 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' 12463 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' 12464 ;; 12465 irix5* | irix6*) 12466 case $cc_basename in 12467 CC*) 12468 # SGI C++ 12469 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' 12470 12471 # Archives containing C++ object files must be created using 12472 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12473 # necessary to make sure instantiated templates are included 12474 # in the archive. 12475 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12476 ;; 12477 *) 12478 if test "$GXX" = yes; then 12479 if test "$with_gnu_ld" = no; then 12480 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' 12481 else 12482 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' 12483 fi 12484 fi 12485 link_all_deplibs_CXX=yes 12486 ;; 12487 esac 12488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12489 hardcode_libdir_separator_CXX=: 12490 inherit_rpath_CXX=yes 12491 ;; 12492 12493 linux* | k*bsd*-gnu) 12494 case $cc_basename in 12495 KCC*) 12496 # Kuck and Associates, Inc. (KAI) C++ Compiler 12497 12498 # KCC will only create a shared library if the output file 12499 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12500 # to its proper name (with version) after linking. 12501 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' 12502 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' 12503 # Commands to make compiler produce verbose output that lists 12504 # what "hidden" libraries, object files and flags are used when 12505 # linking a shared library. 12506 # 12507 # There doesn't appear to be a way to prevent this compiler from 12508 # explicitly linking system object files so we need to strip them 12509 # from the output so that they don't get included in the library 12510 # dependencies. 12511 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' 12512 12513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12515 12516 # Archives containing C++ object files must be created using 12517 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12518 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12519 ;; 12520 icpc* | ecpc* ) 12521 # Intel C++ 12522 with_gnu_ld=yes 12523 # version 8.0 and above of icpc choke on multiply defined symbols 12524 # if we add $predep_objects and $postdep_objects, however 7.1 and 12525 # earlier do not add the objects themselves. 12526 case `$CC -V 2>&1` in 12527 *"Version 7."*) 12528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12529 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' 12530 ;; 12531 *) # Version 8.0 or newer 12532 tmp_idyn= 12533 case $host_cpu in 12534 ia64*) tmp_idyn=' -i_dynamic';; 12535 esac 12536 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12537 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' 12538 ;; 12539 esac 12540 archive_cmds_need_lc_CXX=no 12541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12543 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12544 ;; 12545 pgCC* | pgcpp*) 12546 # Portland Group C++ compiler 12547 case `$CC -V` in 12548 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 12549 prelink_cmds_CXX='tpldir=Template.dir~ 12550 rm -rf $tpldir~ 12551 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12552 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12553 old_archive_cmds_CXX='tpldir=Template.dir~ 12554 rm -rf $tpldir~ 12555 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12556 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12557 $RANLIB $oldlib' 12558 archive_cmds_CXX='tpldir=Template.dir~ 12559 rm -rf $tpldir~ 12560 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12561 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12562 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12563 rm -rf $tpldir~ 12564 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12565 $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' 12566 ;; 12567 *) # Version 6 will use weak symbols 12568 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12569 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' 12570 ;; 12571 esac 12572 12573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12575 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' 12576 ;; 12577 cxx*) 12578 # Compaq C++ 12579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12580 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' 12581 12582 runpath_var=LD_RUN_PATH 12583 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12584 hardcode_libdir_separator_CXX=: 12585 12586 # Commands to make compiler produce verbose output that lists 12587 # what "hidden" libraries, object files and flags are used when 12588 # linking a shared library. 12589 # 12590 # There doesn't appear to be a way to prevent this compiler from 12591 # explicitly linking system object files so we need to strip them 12592 # from the output so that they don't get included in the library 12593 # dependencies. 12594 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' 12595 ;; 12596 xl*) 12597 # IBM XL 8.0 on PPC, with GNU ld 12598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12600 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12601 if test "x$supports_anon_versioning" = xyes; then 12602 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12604 echo "local: *; };" >> $output_objdir/$libname.ver~ 12605 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12606 fi 12607 ;; 12608 *) 12609 case `$CC -V 2>&1 | sed 5q` in 12610 *Sun\ C*) 12611 # Sun C++ 5.9 12612 no_undefined_flag_CXX=' -zdefs' 12613 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12614 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' 12615 hardcode_libdir_flag_spec_CXX='-R$libdir' 12616 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' 12617 compiler_needs_object_CXX=yes 12618 12619 # Not sure whether something based on 12620 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12621 # would be better. 12622 output_verbose_link_cmd='echo' 12623 12624 # Archives containing C++ object files must be created using 12625 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12626 # necessary to make sure instantiated templates are included 12627 # in the archive. 12628 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12629 ;; 12630 esac 12631 ;; 12632 esac 12633 ;; 12634 12635 lynxos*) 12636 # FIXME: insert proper C++ library support 12637 ld_shlibs_CXX=no 12638 ;; 12639 12640 m88k*) 12641 # FIXME: insert proper C++ library support 12642 ld_shlibs_CXX=no 12643 ;; 12644 12645 mvs*) 12646 case $cc_basename in 12647 cxx*) 12648 # FIXME: insert proper C++ library support 12649 ld_shlibs_CXX=no 12650 ;; 12651 *) 12652 # FIXME: insert proper C++ library support 12653 ld_shlibs_CXX=no 12654 ;; 12655 esac 12656 ;; 12657 12658 netbsd*) 12659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12660 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12661 wlarc= 12662 hardcode_libdir_flag_spec_CXX='-R$libdir' 12663 hardcode_direct_CXX=yes 12664 hardcode_shlibpath_var_CXX=no 12665 fi 12666 # Workaround some broken pre-1.5 toolchains 12667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12668 ;; 12669 12670 *nto* | *qnx*) 12671 ld_shlibs_CXX=yes 12672 ;; 12673 12674 openbsd2*) 12675 # C++ shared libraries are fairly broken 12676 ld_shlibs_CXX=no 12677 ;; 12678 12679 openbsd*) 12680 if test -f /usr/libexec/ld.so; then 12681 hardcode_direct_CXX=yes 12682 hardcode_shlibpath_var_CXX=no 12683 hardcode_direct_absolute_CXX=yes 12684 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12685 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12687 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12688 export_dynamic_flag_spec_CXX='${wl}-E' 12689 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12690 fi 12691 output_verbose_link_cmd=echo 12692 else 12693 ld_shlibs_CXX=no 12694 fi 12695 ;; 12696 12697 osf3* | osf4* | osf5*) 12698 case $cc_basename in 12699 KCC*) 12700 # Kuck and Associates, Inc. (KAI) C++ Compiler 12701 12702 # KCC will only create a shared library if the output file 12703 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12704 # to its proper name (with version) after linking. 12705 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' 12706 12707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12708 hardcode_libdir_separator_CXX=: 12709 12710 # Archives containing C++ object files must be created using 12711 # the KAI C++ compiler. 12712 case $host in 12713 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12714 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12715 esac 12716 ;; 12717 RCC*) 12718 # Rational C++ 2.4.1 12719 # FIXME: insert proper C++ library support 12720 ld_shlibs_CXX=no 12721 ;; 12722 cxx*) 12723 case $host in 12724 osf3*) 12725 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12726 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' 12727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12728 ;; 12729 *) 12730 allow_undefined_flag_CXX=' -expect_unresolved \*' 12731 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' 12732 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12733 echo "-hidden">> $lib.exp~ 12734 $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~ 12735 $RM $lib.exp' 12736 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12737 ;; 12738 esac 12739 12740 hardcode_libdir_separator_CXX=: 12741 12742 # Commands to make compiler produce verbose output that lists 12743 # what "hidden" libraries, object files and flags are used when 12744 # linking a shared library. 12745 # 12746 # There doesn't appear to be a way to prevent this compiler from 12747 # explicitly linking system object files so we need to strip them 12748 # from the output so that they don't get included in the library 12749 # dependencies. 12750 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' 12751 ;; 12752 *) 12753 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12754 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12755 case $host in 12756 osf3*) 12757 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' 12758 ;; 12759 *) 12760 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' 12761 ;; 12762 esac 12763 12764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12765 hardcode_libdir_separator_CXX=: 12766 12767 # Commands to make compiler produce verbose output that lists 12768 # what "hidden" libraries, object files and flags are used when 12769 # linking a shared library. 12770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12771 12772 else 12773 # FIXME: insert proper C++ library support 12774 ld_shlibs_CXX=no 12775 fi 12776 ;; 12777 esac 12778 ;; 12779 12780 psos*) 12781 # FIXME: insert proper C++ library support 12782 ld_shlibs_CXX=no 12783 ;; 12784 12785 sunos4*) 12786 case $cc_basename in 12787 CC*) 12788 # Sun C++ 4.x 12789 # FIXME: insert proper C++ library support 12790 ld_shlibs_CXX=no 12791 ;; 12792 lcc*) 12793 # Lucid 12794 # FIXME: insert proper C++ library support 12795 ld_shlibs_CXX=no 12796 ;; 12797 *) 12798 # FIXME: insert proper C++ library support 12799 ld_shlibs_CXX=no 12800 ;; 12801 esac 12802 ;; 12803 12804 solaris*) 12805 case $cc_basename in 12806 CC*) 12807 # Sun C++ 4.2, 5.x and Centerline C++ 12808 archive_cmds_need_lc_CXX=yes 12809 no_undefined_flag_CXX=' -zdefs' 12810 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12811 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12812 $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' 12813 12814 hardcode_libdir_flag_spec_CXX='-R$libdir' 12815 hardcode_shlibpath_var_CXX=no 12816 case $host_os in 12817 solaris2.[0-5] | solaris2.[0-5].*) ;; 12818 *) 12819 # The compiler driver will combine and reorder linker options, 12820 # but understands `-z linker_flag'. 12821 # Supported since Solaris 2.6 (maybe 2.5.1?) 12822 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12823 ;; 12824 esac 12825 link_all_deplibs_CXX=yes 12826 12827 output_verbose_link_cmd='echo' 12828 12829 # Archives containing C++ object files must be created using 12830 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12831 # necessary to make sure instantiated templates are included 12832 # in the archive. 12833 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12834 ;; 12835 gcx*) 12836 # Green Hills C++ Compiler 12837 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12838 12839 # The C++ compiler must be used to create the archive. 12840 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12841 ;; 12842 *) 12843 # GNU C++ compiler with Solaris linker 12844 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12845 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12846 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12847 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12848 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12849 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12850 12851 # Commands to make compiler produce verbose output that lists 12852 # what "hidden" libraries, object files and flags are used when 12853 # linking a shared library. 12854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12855 else 12856 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12857 # platform. 12858 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12859 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12860 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12861 12862 # Commands to make compiler produce verbose output that lists 12863 # what "hidden" libraries, object files and flags are used when 12864 # linking a shared library. 12865 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12866 fi 12867 12868 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12869 case $host_os in 12870 solaris2.[0-5] | solaris2.[0-5].*) ;; 12871 *) 12872 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12873 ;; 12874 esac 12875 fi 12876 ;; 12877 esac 12878 ;; 12879 12880 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12881 no_undefined_flag_CXX='${wl}-z,text' 12882 archive_cmds_need_lc_CXX=no 12883 hardcode_shlibpath_var_CXX=no 12884 runpath_var='LD_RUN_PATH' 12885 12886 case $cc_basename in 12887 CC*) 12888 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12889 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12890 ;; 12891 *) 12892 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12893 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12894 ;; 12895 esac 12896 ;; 12897 12898 sysv5* | sco3.2v5* | sco5v6*) 12899 # Note: We can NOT use -z defs as we might desire, because we do not 12900 # link with -lc, and that would cause any symbols used from libc to 12901 # always be unresolved, which means just about no library would 12902 # ever link correctly. If we're not using GNU ld we use -z text 12903 # though, which does catch some bad symbols but isn't as heavy-handed 12904 # as -z defs. 12905 no_undefined_flag_CXX='${wl}-z,text' 12906 allow_undefined_flag_CXX='${wl}-z,nodefs' 12907 archive_cmds_need_lc_CXX=no 12908 hardcode_shlibpath_var_CXX=no 12909 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12910 hardcode_libdir_separator_CXX=':' 12911 link_all_deplibs_CXX=yes 12912 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12913 runpath_var='LD_RUN_PATH' 12914 12915 case $cc_basename in 12916 CC*) 12917 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12918 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12919 ;; 12920 *) 12921 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12922 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12923 ;; 12924 esac 12925 ;; 12926 12927 tandem*) 12928 case $cc_basename in 12929 NCC*) 12930 # NonStop-UX NCC 3.20 12931 # FIXME: insert proper C++ library support 12932 ld_shlibs_CXX=no 12933 ;; 12934 *) 12935 # FIXME: insert proper C++ library support 12936 ld_shlibs_CXX=no 12937 ;; 12938 esac 12939 ;; 12940 12941 vxworks*) 12942 # FIXME: insert proper C++ library support 12943 ld_shlibs_CXX=no 12944 ;; 12945 12946 *) 12947 # FIXME: insert proper C++ library support 12948 ld_shlibs_CXX=no 12949 ;; 12950 esac 12951 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12953 $as_echo "$ld_shlibs_CXX" >&6; } 12954 test "$ld_shlibs_CXX" = no && can_build_shared=no 12955 12956 GCC_CXX="$GXX" 12957 LD_CXX="$LD" 12958 12959 ## CAVEAT EMPTOR: 12960 ## There is no encapsulation within the following macros, do not change 12961 ## the running order or otherwise move them around unless you know exactly 12962 ## what you are doing... 12963 # Dependencies to place before and after the object being linked: 12964 predep_objects_CXX= 12965 postdep_objects_CXX= 12966 predeps_CXX= 12967 postdeps_CXX= 12968 compiler_lib_search_path_CXX= 12969 12970 cat > conftest.$ac_ext <<_LT_EOF 12971 class Foo 12972 { 12973 public: 12974 Foo (void) { a = 0; } 12975 private: 12976 int a; 12977 }; 12978 _LT_EOF 12979 12980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12981 (eval $ac_compile) 2>&5 12982 ac_status=$? 12983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12984 test $ac_status = 0; }; then 12985 # Parse the compiler output and extract the necessary 12986 # objects, libraries and library flags. 12987 12988 # Sentinel used to keep track of whether or not we are before 12989 # the conftest object file. 12990 pre_test_object_deps_done=no 12991 12992 for p in `eval "$output_verbose_link_cmd"`; do 12993 case $p in 12994 12995 -L* | -R* | -l*) 12996 # Some compilers place space between "-{L,R}" and the path. 12997 # Remove the space. 12998 if test $p = "-L" || 12999 test $p = "-R"; then 13000 prev=$p 13001 continue 13002 else 13003 prev= 13004 fi 13005 13006 if test "$pre_test_object_deps_done" = no; then 13007 case $p in 13008 -L* | -R*) 13009 # Internal compiler library paths should come after those 13010 # provided the user. The postdeps already come after the 13011 # user supplied libs so there is no need to process them. 13012 if test -z "$compiler_lib_search_path_CXX"; then 13013 compiler_lib_search_path_CXX="${prev}${p}" 13014 else 13015 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13016 fi 13017 ;; 13018 # The "-l" case would never come before the object being 13019 # linked, so don't bother handling this case. 13020 esac 13021 else 13022 if test -z "$postdeps_CXX"; then 13023 postdeps_CXX="${prev}${p}" 13024 else 13025 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13026 fi 13027 fi 13028 ;; 13029 13030 *.$objext) 13031 # This assumes that the test object file only shows up 13032 # once in the compiler output. 13033 if test "$p" = "conftest.$objext"; then 13034 pre_test_object_deps_done=yes 13035 continue 13036 fi 13037 13038 if test "$pre_test_object_deps_done" = no; then 13039 if test -z "$predep_objects_CXX"; then 13040 predep_objects_CXX="$p" 13041 else 13042 predep_objects_CXX="$predep_objects_CXX $p" 13043 fi 13044 else 13045 if test -z "$postdep_objects_CXX"; then 13046 postdep_objects_CXX="$p" 13047 else 13048 postdep_objects_CXX="$postdep_objects_CXX $p" 13049 fi 13050 fi 13051 ;; 13052 13053 *) ;; # Ignore the rest. 13054 13055 esac 13056 done 13057 13058 # Clean up. 13059 rm -f a.out a.exe 13060 else 13061 echo "libtool.m4: error: problem compiling CXX test program" 13062 fi 13063 13064 $RM -f confest.$objext 13065 13066 # PORTME: override above test on systems where it is broken 13067 case $host_os in 13068 interix[3-9]*) 13069 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13070 # hack all around it, let's just trust "g++" to DTRT. 13071 predep_objects_CXX= 13072 postdep_objects_CXX= 13073 postdeps_CXX= 13074 ;; 13075 13076 linux*) 13077 case `$CC -V 2>&1 | sed 5q` in 13078 *Sun\ C*) 13079 # Sun C++ 5.9 13080 13081 # The more standards-conforming stlport4 library is 13082 # incompatible with the Cstd library. Avoid specifying 13083 # it if it's in CXXFLAGS. Ignore libCrun as 13084 # -library=stlport4 depends on it. 13085 case " $CXX $CXXFLAGS " in 13086 *" -library=stlport4 "*) 13087 solaris_use_stlport4=yes 13088 ;; 13089 esac 13090 13091 if test "$solaris_use_stlport4" != yes; then 13092 postdeps_CXX='-library=Cstd -library=Crun' 13093 fi 13094 ;; 13095 esac 13096 ;; 13097 13098 solaris*) 13099 case $cc_basename in 13100 CC*) 13101 # The more standards-conforming stlport4 library is 13102 # incompatible with the Cstd library. Avoid specifying 13103 # it if it's in CXXFLAGS. Ignore libCrun as 13104 # -library=stlport4 depends on it. 13105 case " $CXX $CXXFLAGS " in 13106 *" -library=stlport4 "*) 13107 solaris_use_stlport4=yes 13108 ;; 13109 esac 13110 13111 # Adding this requires a known-good setup of shared libraries for 13112 # Sun compiler versions before 5.6, else PIC objects from an old 13113 # archive will be linked into the output, leading to subtle bugs. 13114 if test "$solaris_use_stlport4" != yes; then 13115 postdeps_CXX='-library=Cstd -library=Crun' 13116 fi 13117 ;; 13118 esac 13119 ;; 13120 esac 13121 13122 13123 case " $postdeps_CXX " in 13124 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 13125 esac 13126 compiler_lib_search_dirs_CXX= 13127 if test -n "${compiler_lib_search_path_CXX}"; then 13128 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13129 fi 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 lt_prog_compiler_wl_CXX= 13162 lt_prog_compiler_pic_CXX= 13163 lt_prog_compiler_static_CXX= 13164 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13166 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13167 13168 # C++ specific cases for pic, static, wl, etc. 13169 if test "$GXX" = yes; then 13170 lt_prog_compiler_wl_CXX='-Wl,' 13171 lt_prog_compiler_static_CXX='-static' 13172 13173 case $host_os in 13174 aix*) 13175 # All AIX code is PIC. 13176 if test "$host_cpu" = ia64; then 13177 # AIX 5 now supports IA64 processor 13178 lt_prog_compiler_static_CXX='-Bstatic' 13179 fi 13180 ;; 13181 13182 amigaos*) 13183 case $host_cpu in 13184 powerpc) 13185 # see comment about AmigaOS4 .so support 13186 lt_prog_compiler_pic_CXX='-fPIC' 13187 ;; 13188 m68k) 13189 # FIXME: we need at least 68020 code to build shared libraries, but 13190 # adding the `-m68020' flag to GCC prevents building anything better, 13191 # like `-m68040'. 13192 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13193 ;; 13194 esac 13195 ;; 13196 13197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13198 # PIC is the default for these OSes. 13199 ;; 13200 mingw* | cygwin* | os2* | pw32*) 13201 # This hack is so that the source file can tell whether it is being 13202 # built for inclusion in a dll (and should export symbols for example). 13203 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13204 # (--disable-auto-import) libraries 13205 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13206 ;; 13207 darwin* | rhapsody*) 13208 # PIC is the default on this platform 13209 # Common symbols not allowed in MH_DYLIB files 13210 lt_prog_compiler_pic_CXX='-fno-common' 13211 ;; 13212 *djgpp*) 13213 # DJGPP does not support shared libraries at all 13214 lt_prog_compiler_pic_CXX= 13215 ;; 13216 interix[3-9]*) 13217 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13218 # Instead, we relocate shared libraries at runtime. 13219 ;; 13220 sysv4*MP*) 13221 if test -d /usr/nec; then 13222 lt_prog_compiler_pic_CXX=-Kconform_pic 13223 fi 13224 ;; 13225 hpux*) 13226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13227 # not for PA HP-UX. 13228 case $host_cpu in 13229 hppa*64*|ia64*) 13230 ;; 13231 *) 13232 lt_prog_compiler_pic_CXX='-fPIC' 13233 ;; 13234 esac 13235 ;; 13236 *qnx* | *nto*) 13237 # QNX uses GNU C++, but need to define -shared option too, otherwise 13238 # it will coredump. 13239 lt_prog_compiler_pic_CXX='-fPIC -shared' 13240 ;; 13241 *) 13242 lt_prog_compiler_pic_CXX='-fPIC' 13243 ;; 13244 esac 13245 else 13246 case $host_os in 13247 aix[4-9]*) 13248 # All AIX code is PIC. 13249 if test "$host_cpu" = ia64; then 13250 # AIX 5 now supports IA64 processor 13251 lt_prog_compiler_static_CXX='-Bstatic' 13252 else 13253 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13254 fi 13255 ;; 13256 chorus*) 13257 case $cc_basename in 13258 cxch68*) 13259 # Green Hills C++ Compiler 13260 # _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" 13261 ;; 13262 esac 13263 ;; 13264 dgux*) 13265 case $cc_basename in 13266 ec++*) 13267 lt_prog_compiler_pic_CXX='-KPIC' 13268 ;; 13269 ghcx*) 13270 # Green Hills C++ Compiler 13271 lt_prog_compiler_pic_CXX='-pic' 13272 ;; 13273 *) 13274 ;; 13275 esac 13276 ;; 13277 freebsd* | dragonfly*) 13278 # FreeBSD uses GNU C++ 13279 ;; 13280 hpux9* | hpux10* | hpux11*) 13281 case $cc_basename in 13282 CC*) 13283 lt_prog_compiler_wl_CXX='-Wl,' 13284 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13285 if test "$host_cpu" != ia64; then 13286 lt_prog_compiler_pic_CXX='+Z' 13287 fi 13288 ;; 13289 aCC*) 13290 lt_prog_compiler_wl_CXX='-Wl,' 13291 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13292 case $host_cpu in 13293 hppa*64*|ia64*) 13294 # +Z the default 13295 ;; 13296 *) 13297 lt_prog_compiler_pic_CXX='+Z' 13298 ;; 13299 esac 13300 ;; 13301 *) 13302 ;; 13303 esac 13304 ;; 13305 interix*) 13306 # This is c89, which is MS Visual C++ (no shared libs) 13307 # Anyone wants to do a port? 13308 ;; 13309 irix5* | irix6* | nonstopux*) 13310 case $cc_basename in 13311 CC*) 13312 lt_prog_compiler_wl_CXX='-Wl,' 13313 lt_prog_compiler_static_CXX='-non_shared' 13314 # CC pic flag -KPIC is the default. 13315 ;; 13316 *) 13317 ;; 13318 esac 13319 ;; 13320 linux* | k*bsd*-gnu) 13321 case $cc_basename in 13322 KCC*) 13323 # KAI C++ Compiler 13324 lt_prog_compiler_wl_CXX='--backend -Wl,' 13325 lt_prog_compiler_pic_CXX='-fPIC' 13326 ;; 13327 icpc* | ecpc* ) 13328 # Intel C++ 13329 lt_prog_compiler_wl_CXX='-Wl,' 13330 lt_prog_compiler_pic_CXX='-KPIC' 13331 lt_prog_compiler_static_CXX='-static' 13332 ;; 13333 pgCC* | pgcpp*) 13334 # Portland Group C++ compiler 13335 lt_prog_compiler_wl_CXX='-Wl,' 13336 lt_prog_compiler_pic_CXX='-fpic' 13337 lt_prog_compiler_static_CXX='-Bstatic' 13338 ;; 13339 cxx*) 13340 # Compaq C++ 13341 # Make sure the PIC flag is empty. It appears that all Alpha 13342 # Linux and Compaq Tru64 Unix objects are PIC. 13343 lt_prog_compiler_pic_CXX= 13344 lt_prog_compiler_static_CXX='-non_shared' 13345 ;; 13346 xlc* | xlC*) 13347 # IBM XL 8.0 on PPC 13348 lt_prog_compiler_wl_CXX='-Wl,' 13349 lt_prog_compiler_pic_CXX='-qpic' 13350 lt_prog_compiler_static_CXX='-qstaticlink' 13351 ;; 13352 *) 13353 case `$CC -V 2>&1 | sed 5q` in 13354 *Sun\ C*) 13355 # Sun C++ 5.9 13356 lt_prog_compiler_pic_CXX='-KPIC' 13357 lt_prog_compiler_static_CXX='-Bstatic' 13358 lt_prog_compiler_wl_CXX='-Qoption ld ' 13359 ;; 13360 esac 13361 ;; 13362 esac 13363 ;; 13364 lynxos*) 13365 ;; 13366 m88k*) 13367 ;; 13368 mvs*) 13369 case $cc_basename in 13370 cxx*) 13371 lt_prog_compiler_pic_CXX='-W c,exportall' 13372 ;; 13373 *) 13374 ;; 13375 esac 13376 ;; 13377 netbsd*) 13378 ;; 13379 *qnx* | *nto*) 13380 # QNX uses GNU C++, but need to define -shared option too, otherwise 13381 # it will coredump. 13382 lt_prog_compiler_pic_CXX='-fPIC -shared' 13383 ;; 13384 osf3* | osf4* | osf5*) 13385 case $cc_basename in 13386 KCC*) 13387 lt_prog_compiler_wl_CXX='--backend -Wl,' 13388 ;; 13389 RCC*) 13390 # Rational C++ 2.4.1 13391 lt_prog_compiler_pic_CXX='-pic' 13392 ;; 13393 cxx*) 13394 # Digital/Compaq C++ 13395 lt_prog_compiler_wl_CXX='-Wl,' 13396 # Make sure the PIC flag is empty. It appears that all Alpha 13397 # Linux and Compaq Tru64 Unix objects are PIC. 13398 lt_prog_compiler_pic_CXX= 13399 lt_prog_compiler_static_CXX='-non_shared' 13400 ;; 13401 *) 13402 ;; 13403 esac 13404 ;; 13405 psos*) 13406 ;; 13407 solaris*) 13408 case $cc_basename in 13409 CC*) 13410 # Sun C++ 4.2, 5.x and Centerline C++ 13411 lt_prog_compiler_pic_CXX='-KPIC' 13412 lt_prog_compiler_static_CXX='-Bstatic' 13413 lt_prog_compiler_wl_CXX='-Qoption ld ' 13414 ;; 13415 gcx*) 13416 # Green Hills C++ Compiler 13417 lt_prog_compiler_pic_CXX='-PIC' 13418 ;; 13419 *) 13420 ;; 13421 esac 13422 ;; 13423 sunos4*) 13424 case $cc_basename in 13425 CC*) 13426 # Sun C++ 4.x 13427 lt_prog_compiler_pic_CXX='-pic' 13428 lt_prog_compiler_static_CXX='-Bstatic' 13429 ;; 13430 lcc*) 13431 # Lucid 13432 lt_prog_compiler_pic_CXX='-pic' 13433 ;; 13434 *) 13435 ;; 13436 esac 13437 ;; 13438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13439 case $cc_basename in 13440 CC*) 13441 lt_prog_compiler_wl_CXX='-Wl,' 13442 lt_prog_compiler_pic_CXX='-KPIC' 13443 lt_prog_compiler_static_CXX='-Bstatic' 13444 ;; 13445 esac 13446 ;; 13447 tandem*) 13448 case $cc_basename in 13449 NCC*) 13450 # NonStop-UX NCC 3.20 13451 lt_prog_compiler_pic_CXX='-KPIC' 13452 ;; 13453 *) 13454 ;; 13455 esac 13456 ;; 13457 vxworks*) 13458 ;; 13459 *) 13460 lt_prog_compiler_can_build_shared_CXX=no 13461 ;; 13462 esac 13463 fi 13464 13465 case $host_os in 13466 # For platforms which do not support PIC, -DPIC is meaningless: 13467 *djgpp*) 13468 lt_prog_compiler_pic_CXX= 13469 ;; 13470 *) 13471 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13472 ;; 13473 esac 13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13475 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13476 13477 13478 13479 # 13480 # Check to make sure the PIC flag actually works. 13481 # 13482 if test -n "$lt_prog_compiler_pic_CXX"; then 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13484 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13485 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487 else 13488 lt_cv_prog_compiler_pic_works_CXX=no 13489 ac_outfile=conftest.$ac_objext 13490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13492 # Insert the option either (1) after the last *FLAGS variable, or 13493 # (2) before a word containing "conftest.", or (3) at the end. 13494 # Note that $ac_compile itself does not contain backslashes and begins 13495 # with a dollar sign (not a hyphen), so the echo should work correctly. 13496 # The option is referenced via a variable to avoid confusing sed. 13497 lt_compile=`echo "$ac_compile" | $SED \ 13498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13500 -e 's:$: $lt_compiler_flag:'` 13501 (eval echo "\"\$as_me:13501: $lt_compile\"" >&5) 13502 (eval "$lt_compile" 2>conftest.err) 13503 ac_status=$? 13504 cat conftest.err >&5 13505 echo "$as_me:13505: \$? = $ac_status" >&5 13506 if (exit $ac_status) && test -s "$ac_outfile"; then 13507 # The compiler can only warn and ignore the option if not recognized 13508 # So say no if there are warnings other than the usual output. 13509 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13512 lt_cv_prog_compiler_pic_works_CXX=yes 13513 fi 13514 fi 13515 $RM conftest* 13516 13517 fi 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13519 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13520 13521 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13522 case $lt_prog_compiler_pic_CXX in 13523 "" | " "*) ;; 13524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13525 esac 13526 else 13527 lt_prog_compiler_pic_CXX= 13528 lt_prog_compiler_can_build_shared_CXX=no 13529 fi 13530 13531 fi 13532 13533 13534 13535 # 13536 # Check to make sure the static flag actually works. 13537 # 13538 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13541 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543 else 13544 lt_cv_prog_compiler_static_works_CXX=no 13545 save_LDFLAGS="$LDFLAGS" 13546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13547 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13549 # The linker can only warn and ignore the option if not recognized 13550 # So say no if there are warnings 13551 if test -s conftest.err; then 13552 # Append any errors to the config.log. 13553 cat conftest.err 1>&5 13554 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13556 if diff conftest.exp conftest.er2 >/dev/null; then 13557 lt_cv_prog_compiler_static_works_CXX=yes 13558 fi 13559 else 13560 lt_cv_prog_compiler_static_works_CXX=yes 13561 fi 13562 fi 13563 $RM -r conftest* 13564 LDFLAGS="$save_LDFLAGS" 13565 13566 fi 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13568 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13569 13570 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13571 : 13572 else 13573 lt_prog_compiler_static_CXX= 13574 fi 13575 13576 13577 13578 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13581 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13582 $as_echo_n "(cached) " >&6 13583 else 13584 lt_cv_prog_compiler_c_o_CXX=no 13585 $RM -r conftest 2>/dev/null 13586 mkdir conftest 13587 cd conftest 13588 mkdir out 13589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13590 13591 lt_compiler_flag="-o out/conftest2.$ac_objext" 13592 # Insert the option either (1) after the last *FLAGS variable, or 13593 # (2) before a word containing "conftest.", or (3) at the end. 13594 # Note that $ac_compile itself does not contain backslashes and begins 13595 # with a dollar sign (not a hyphen), so the echo should work correctly. 13596 lt_compile=`echo "$ac_compile" | $SED \ 13597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13599 -e 's:$: $lt_compiler_flag:'` 13600 (eval echo "\"\$as_me:13600: $lt_compile\"" >&5) 13601 (eval "$lt_compile" 2>out/conftest.err) 13602 ac_status=$? 13603 cat out/conftest.err >&5 13604 echo "$as_me:13604: \$? = $ac_status" >&5 13605 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13606 then 13607 # The compiler can only warn and ignore the option if not recognized 13608 # So say no if there are warnings 13609 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13612 lt_cv_prog_compiler_c_o_CXX=yes 13613 fi 13614 fi 13615 chmod u+w . 2>&5 13616 $RM conftest* 13617 # SGI C++ compiler will create directory out/ii_files/ for 13618 # template instantiation 13619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13620 $RM out/* && rmdir out 13621 cd .. 13622 $RM -r conftest 13623 $RM conftest* 13624 13625 fi 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13627 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13628 13629 13630 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13633 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13634 $as_echo_n "(cached) " >&6 13635 else 13636 lt_cv_prog_compiler_c_o_CXX=no 13637 $RM -r conftest 2>/dev/null 13638 mkdir conftest 13639 cd conftest 13640 mkdir out 13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13642 13643 lt_compiler_flag="-o out/conftest2.$ac_objext" 13644 # Insert the option either (1) after the last *FLAGS variable, or 13645 # (2) before a word containing "conftest.", or (3) at the end. 13646 # Note that $ac_compile itself does not contain backslashes and begins 13647 # with a dollar sign (not a hyphen), so the echo should work correctly. 13648 lt_compile=`echo "$ac_compile" | $SED \ 13649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13651 -e 's:$: $lt_compiler_flag:'` 13652 (eval echo "\"\$as_me:13652: $lt_compile\"" >&5) 13653 (eval "$lt_compile" 2>out/conftest.err) 13654 ac_status=$? 13655 cat out/conftest.err >&5 13656 echo "$as_me:13656: \$? = $ac_status" >&5 13657 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13658 then 13659 # The compiler can only warn and ignore the option if not recognized 13660 # So say no if there are warnings 13661 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13664 lt_cv_prog_compiler_c_o_CXX=yes 13665 fi 13666 fi 13667 chmod u+w . 2>&5 13668 $RM conftest* 13669 # SGI C++ compiler will create directory out/ii_files/ for 13670 # template instantiation 13671 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13672 $RM out/* && rmdir out 13673 cd .. 13674 $RM -r conftest 13675 $RM conftest* 13676 13677 fi 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13679 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13680 13681 13682 13683 13684 hard_links="nottested" 13685 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13686 # do not overwrite the value of need_locks provided by the user 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13688 $as_echo_n "checking if we can lock with hard links... " >&6; } 13689 hard_links=yes 13690 $RM conftest* 13691 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13692 touch conftest.a 13693 ln conftest.a conftest.b 2>&5 || hard_links=no 13694 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13696 $as_echo "$hard_links" >&6; } 13697 if test "$hard_links" = no; then 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13699 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13700 need_locks=warn 13701 fi 13702 else 13703 need_locks=no 13704 fi 13705 13706 13707 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13709 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13710 13711 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13712 case $host_os in 13713 aix[4-9]*) 13714 # If we're using GNU nm, then we don't want the "-C" option. 13715 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13717 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' 13718 else 13719 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' 13720 fi 13721 ;; 13722 pw32*) 13723 export_symbols_cmds_CXX="$ltdll_cmds" 13724 ;; 13725 cygwin* | mingw*) 13726 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' 13727 ;; 13728 *) 13729 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13730 ;; 13731 esac 13732 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13733 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13735 $as_echo "$ld_shlibs_CXX" >&6; } 13736 test "$ld_shlibs_CXX" = no && can_build_shared=no 13737 13738 with_gnu_ld_CXX=$with_gnu_ld 13739 13740 13741 13742 13743 13744 13745 # 13746 # Do we need to explicitly link libc? 13747 # 13748 case "x$archive_cmds_need_lc_CXX" in 13749 x|xyes) 13750 # Assume -lc should be added 13751 archive_cmds_need_lc_CXX=yes 13752 13753 if test "$enable_shared" = yes && test "$GCC" = yes; then 13754 case $archive_cmds_CXX in 13755 *'~'*) 13756 # FIXME: we may have to deal with multi-command sequences. 13757 ;; 13758 '$CC '*) 13759 # Test whether the compiler implicitly links with -lc since on some 13760 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13761 # to ld, don't add -lc before -lgcc. 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13763 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13764 $RM conftest* 13765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13766 13767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13768 (eval $ac_compile) 2>&5 13769 ac_status=$? 13770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13771 test $ac_status = 0; } 2>conftest.err; then 13772 soname=conftest 13773 lib=conftest 13774 libobjs=conftest.$ac_objext 13775 deplibs= 13776 wl=$lt_prog_compiler_wl_CXX 13777 pic_flag=$lt_prog_compiler_pic_CXX 13778 compiler_flags=-v 13779 linker_flags=-v 13780 verstring= 13781 output_objdir=. 13782 libname=conftest 13783 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13784 allow_undefined_flag_CXX= 13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13786 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13787 ac_status=$? 13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13789 test $ac_status = 0; } 13790 then 13791 archive_cmds_need_lc_CXX=no 13792 else 13793 archive_cmds_need_lc_CXX=yes 13794 fi 13795 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13796 else 13797 cat conftest.err 1>&5 13798 fi 13799 $RM conftest* 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13801 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 13802 ;; 13803 esac 13804 fi 13805 ;; 13806 esac 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13872 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13873 13874 library_names_spec= 13875 libname_spec='lib$name' 13876 soname_spec= 13877 shrext_cmds=".so" 13878 postinstall_cmds= 13879 postuninstall_cmds= 13880 finish_cmds= 13881 finish_eval= 13882 shlibpath_var= 13883 shlibpath_overrides_runpath=unknown 13884 version_type=none 13885 dynamic_linker="$host_os ld.so" 13886 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13887 need_lib_prefix=unknown 13888 hardcode_into_libs=no 13889 13890 # when you set need_version to no, make sure it does not cause -set_version 13891 # flags to be left without arguments 13892 need_version=unknown 13893 13894 case $host_os in 13895 aix3*) 13896 version_type=linux 13897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13898 shlibpath_var=LIBPATH 13899 13900 # AIX 3 has no versioning support, so we append a major version to the name. 13901 soname_spec='${libname}${release}${shared_ext}$major' 13902 ;; 13903 13904 aix[4-9]*) 13905 version_type=linux 13906 need_lib_prefix=no 13907 need_version=no 13908 hardcode_into_libs=yes 13909 if test "$host_cpu" = ia64; then 13910 # AIX 5 supports IA64 13911 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13912 shlibpath_var=LD_LIBRARY_PATH 13913 else 13914 # With GCC up to 2.95.x, collect2 would create an import file 13915 # for dependence libraries. The import file would start with 13916 # the line `#! .'. This would cause the generated library to 13917 # depend on `.', always an invalid library. This was fixed in 13918 # development snapshots of GCC prior to 3.0. 13919 case $host_os in 13920 aix4 | aix4.[01] | aix4.[01].*) 13921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13922 echo ' yes ' 13923 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13924 : 13925 else 13926 can_build_shared=no 13927 fi 13928 ;; 13929 esac 13930 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13931 # soname into executable. Probably we can add versioning support to 13932 # collect2, so additional links can be useful in future. 13933 if test "$aix_use_runtimelinking" = yes; then 13934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13935 # instead of lib<name>.a to let people know that these are not 13936 # typical AIX shared libraries. 13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13938 else 13939 # We preserve .a as extension for shared libraries through AIX4.2 13940 # and later when we are not doing run time linking. 13941 library_names_spec='${libname}${release}.a $libname.a' 13942 soname_spec='${libname}${release}${shared_ext}$major' 13943 fi 13944 shlibpath_var=LIBPATH 13945 fi 13946 ;; 13947 13948 amigaos*) 13949 case $host_cpu in 13950 powerpc) 13951 # Since July 2007 AmigaOS4 officially supports .so libraries. 13952 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13954 ;; 13955 m68k) 13956 library_names_spec='$libname.ixlibrary $libname.a' 13957 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13958 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' 13959 ;; 13960 esac 13961 ;; 13962 13963 beos*) 13964 library_names_spec='${libname}${shared_ext}' 13965 dynamic_linker="$host_os ld.so" 13966 shlibpath_var=LIBRARY_PATH 13967 ;; 13968 13969 bsdi[45]*) 13970 version_type=linux 13971 need_version=no 13972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13973 soname_spec='${libname}${release}${shared_ext}$major' 13974 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13975 shlibpath_var=LD_LIBRARY_PATH 13976 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13977 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13978 # the default ld.so.conf also contains /usr/contrib/lib and 13979 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13980 # libtool to hard-code these into programs 13981 ;; 13982 13983 cygwin* | mingw* | pw32*) 13984 version_type=windows 13985 shrext_cmds=".dll" 13986 need_version=no 13987 need_lib_prefix=no 13988 13989 case $GCC,$host_os in 13990 yes,cygwin* | yes,mingw* | yes,pw32*) 13991 library_names_spec='$libname.dll.a' 13992 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13993 postinstall_cmds='base_file=`basename \${file}`~ 13994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13995 dldir=$destdir/`dirname \$dlpath`~ 13996 test -d \$dldir || mkdir -p \$dldir~ 13997 $install_prog $dir/$dlname \$dldir/$dlname~ 13998 chmod a+x \$dldir/$dlname~ 13999 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14000 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14001 fi' 14002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14003 dlpath=$dir/\$dldll~ 14004 $RM \$dlpath' 14005 shlibpath_overrides_runpath=yes 14006 14007 case $host_os in 14008 cygwin*) 14009 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14010 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14011 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14012 ;; 14013 mingw*) 14014 # MinGW DLLs use traditional 'lib' prefix 14015 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14016 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14017 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14018 # It is most probably a Windows format PATH printed by 14019 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14020 # path with ; separators, and with drive letters. We can handle the 14021 # drive letters (cygwin fileutils understands them), so leave them, 14022 # especially as we might pass files found there to a mingw objdump, 14023 # which wouldn't understand a cygwinified path. Ahh. 14024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14025 else 14026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14027 fi 14028 ;; 14029 pw32*) 14030 # pw32 DLLs use 'pw' prefix rather than 'lib' 14031 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14032 ;; 14033 esac 14034 ;; 14035 14036 *) 14037 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14038 ;; 14039 esac 14040 dynamic_linker='Win32 ld.exe' 14041 # FIXME: first we should search . and the directory the executable is in 14042 shlibpath_var=PATH 14043 ;; 14044 14045 darwin* | rhapsody*) 14046 dynamic_linker="$host_os dyld" 14047 version_type=darwin 14048 need_lib_prefix=no 14049 need_version=no 14050 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14051 soname_spec='${libname}${release}${major}$shared_ext' 14052 shlibpath_overrides_runpath=yes 14053 shlibpath_var=DYLD_LIBRARY_PATH 14054 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14055 14056 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14057 ;; 14058 14059 dgux*) 14060 version_type=linux 14061 need_lib_prefix=no 14062 need_version=no 14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14064 soname_spec='${libname}${release}${shared_ext}$major' 14065 shlibpath_var=LD_LIBRARY_PATH 14066 ;; 14067 14068 freebsd1*) 14069 dynamic_linker=no 14070 ;; 14071 14072 freebsd* | dragonfly*) 14073 # DragonFly does not have aout. When/if they implement a new 14074 # versioning mechanism, adjust this. 14075 if test -x /usr/bin/objformat; then 14076 objformat=`/usr/bin/objformat` 14077 else 14078 case $host_os in 14079 freebsd[123]*) objformat=aout ;; 14080 *) objformat=elf ;; 14081 esac 14082 fi 14083 version_type=freebsd-$objformat 14084 case $version_type in 14085 freebsd-elf*) 14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14087 need_version=no 14088 need_lib_prefix=no 14089 ;; 14090 freebsd-*) 14091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14092 need_version=yes 14093 ;; 14094 esac 14095 shlibpath_var=LD_LIBRARY_PATH 14096 case $host_os in 14097 freebsd2*) 14098 shlibpath_overrides_runpath=yes 14099 ;; 14100 freebsd3.[01]* | freebsdelf3.[01]*) 14101 shlibpath_overrides_runpath=yes 14102 hardcode_into_libs=yes 14103 ;; 14104 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14105 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14106 shlibpath_overrides_runpath=no 14107 hardcode_into_libs=yes 14108 ;; 14109 *) # from 4.6 on, and DragonFly 14110 shlibpath_overrides_runpath=yes 14111 hardcode_into_libs=yes 14112 ;; 14113 esac 14114 ;; 14115 14116 gnu*) 14117 version_type=linux 14118 need_lib_prefix=no 14119 need_version=no 14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14121 soname_spec='${libname}${release}${shared_ext}$major' 14122 shlibpath_var=LD_LIBRARY_PATH 14123 hardcode_into_libs=yes 14124 ;; 14125 14126 hpux9* | hpux10* | hpux11*) 14127 # Give a soname corresponding to the major version so that dld.sl refuses to 14128 # link against other versions. 14129 version_type=sunos 14130 need_lib_prefix=no 14131 need_version=no 14132 case $host_cpu in 14133 ia64*) 14134 shrext_cmds='.so' 14135 hardcode_into_libs=yes 14136 dynamic_linker="$host_os dld.so" 14137 shlibpath_var=LD_LIBRARY_PATH 14138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14140 soname_spec='${libname}${release}${shared_ext}$major' 14141 if test "X$HPUX_IA64_MODE" = X32; then 14142 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14143 else 14144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14145 fi 14146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14147 ;; 14148 hppa*64*) 14149 shrext_cmds='.sl' 14150 hardcode_into_libs=yes 14151 dynamic_linker="$host_os dld.sl" 14152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14155 soname_spec='${libname}${release}${shared_ext}$major' 14156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14158 ;; 14159 *) 14160 shrext_cmds='.sl' 14161 dynamic_linker="$host_os dld.sl" 14162 shlibpath_var=SHLIB_PATH 14163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14165 soname_spec='${libname}${release}${shared_ext}$major' 14166 ;; 14167 esac 14168 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14169 postinstall_cmds='chmod 555 $lib' 14170 ;; 14171 14172 interix[3-9]*) 14173 version_type=linux 14174 need_lib_prefix=no 14175 need_version=no 14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14177 soname_spec='${libname}${release}${shared_ext}$major' 14178 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14179 shlibpath_var=LD_LIBRARY_PATH 14180 shlibpath_overrides_runpath=no 14181 hardcode_into_libs=yes 14182 ;; 14183 14184 irix5* | irix6* | nonstopux*) 14185 case $host_os in 14186 nonstopux*) version_type=nonstopux ;; 14187 *) 14188 if test "$lt_cv_prog_gnu_ld" = yes; then 14189 version_type=linux 14190 else 14191 version_type=irix 14192 fi ;; 14193 esac 14194 need_lib_prefix=no 14195 need_version=no 14196 soname_spec='${libname}${release}${shared_ext}$major' 14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14198 case $host_os in 14199 irix5* | nonstopux*) 14200 libsuff= shlibsuff= 14201 ;; 14202 *) 14203 case $LD in # libtool.m4 will add one of these switches to LD 14204 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14205 libsuff= shlibsuff= libmagic=32-bit;; 14206 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14207 libsuff=32 shlibsuff=N32 libmagic=N32;; 14208 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14209 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14210 *) libsuff= shlibsuff= libmagic=never-match;; 14211 esac 14212 ;; 14213 esac 14214 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14215 shlibpath_overrides_runpath=no 14216 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14217 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14218 hardcode_into_libs=yes 14219 ;; 14220 14221 # No shared lib support for Linux oldld, aout, or coff. 14222 linux*oldld* | linux*aout* | linux*coff*) 14223 dynamic_linker=no 14224 ;; 14225 14226 # This must be Linux ELF. 14227 linux* | k*bsd*-gnu) 14228 version_type=linux 14229 need_lib_prefix=no 14230 need_version=no 14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14232 soname_spec='${libname}${release}${shared_ext}$major' 14233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14234 shlibpath_var=LD_LIBRARY_PATH 14235 shlibpath_overrides_runpath=no 14236 # Some binutils ld are patched to set DT_RUNPATH 14237 save_LDFLAGS=$LDFLAGS 14238 save_libdir=$libdir 14239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14242 /* end confdefs.h. */ 14243 14244 int 14245 main () 14246 { 14247 14248 ; 14249 return 0; 14250 } 14251 _ACEOF 14252 if ac_fn_cxx_try_link "$LINENO"; then : 14253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14254 shlibpath_overrides_runpath=yes 14255 fi 14256 fi 14257 rm -f core conftest.err conftest.$ac_objext \ 14258 conftest$ac_exeext conftest.$ac_ext 14259 LDFLAGS=$save_LDFLAGS 14260 libdir=$save_libdir 14261 14262 # This implies no fast_install, which is unacceptable. 14263 # Some rework will be needed to allow for fast_install 14264 # before this can be enabled. 14265 hardcode_into_libs=yes 14266 14267 # Append ld.so.conf contents to the search path 14268 if test -f /etc/ld.so.conf; then 14269 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' ' '` 14270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14271 fi 14272 14273 # We used to test for /lib/ld.so.1 and disable shared libraries on 14274 # powerpc, because MkLinux only supported shared libraries with the 14275 # GNU dynamic linker. Since this was broken with cross compilers, 14276 # most powerpc-linux boxes support dynamic linking these days and 14277 # people can always --disable-shared, the test was removed, and we 14278 # assume the GNU/Linux dynamic linker is in use. 14279 dynamic_linker='GNU/Linux ld.so' 14280 ;; 14281 14282 netbsd*) 14283 version_type=sunos 14284 need_lib_prefix=no 14285 need_version=no 14286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14289 dynamic_linker='NetBSD (a.out) ld.so' 14290 else 14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14292 soname_spec='${libname}${release}${shared_ext}$major' 14293 dynamic_linker='NetBSD ld.elf_so' 14294 fi 14295 shlibpath_var=LD_LIBRARY_PATH 14296 shlibpath_overrides_runpath=yes 14297 hardcode_into_libs=yes 14298 ;; 14299 14300 newsos6) 14301 version_type=linux 14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14303 shlibpath_var=LD_LIBRARY_PATH 14304 shlibpath_overrides_runpath=yes 14305 ;; 14306 14307 *nto* | *qnx*) 14308 version_type=qnx 14309 need_lib_prefix=no 14310 need_version=no 14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14312 soname_spec='${libname}${release}${shared_ext}$major' 14313 shlibpath_var=LD_LIBRARY_PATH 14314 shlibpath_overrides_runpath=no 14315 hardcode_into_libs=yes 14316 dynamic_linker='ldqnx.so' 14317 ;; 14318 14319 openbsd*) 14320 version_type=sunos 14321 sys_lib_dlsearch_path_spec="/usr/lib" 14322 need_lib_prefix=no 14323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14324 case $host_os in 14325 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14326 *) need_version=no ;; 14327 esac 14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14330 shlibpath_var=LD_LIBRARY_PATH 14331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14332 case $host_os in 14333 openbsd2.[89] | openbsd2.[89].*) 14334 shlibpath_overrides_runpath=no 14335 ;; 14336 *) 14337 shlibpath_overrides_runpath=yes 14338 ;; 14339 esac 14340 else 14341 shlibpath_overrides_runpath=yes 14342 fi 14343 ;; 14344 14345 os2*) 14346 libname_spec='$name' 14347 shrext_cmds=".dll" 14348 need_lib_prefix=no 14349 library_names_spec='$libname${shared_ext} $libname.a' 14350 dynamic_linker='OS/2 ld.exe' 14351 shlibpath_var=LIBPATH 14352 ;; 14353 14354 osf3* | osf4* | osf5*) 14355 version_type=osf 14356 need_lib_prefix=no 14357 need_version=no 14358 soname_spec='${libname}${release}${shared_ext}$major' 14359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14360 shlibpath_var=LD_LIBRARY_PATH 14361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14363 ;; 14364 14365 rdos*) 14366 dynamic_linker=no 14367 ;; 14368 14369 solaris*) 14370 version_type=linux 14371 need_lib_prefix=no 14372 need_version=no 14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14374 soname_spec='${libname}${release}${shared_ext}$major' 14375 shlibpath_var=LD_LIBRARY_PATH 14376 shlibpath_overrides_runpath=yes 14377 hardcode_into_libs=yes 14378 # ldd complains unless libraries are executable 14379 postinstall_cmds='chmod +x $lib' 14380 ;; 14381 14382 sunos4*) 14383 version_type=sunos 14384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14386 shlibpath_var=LD_LIBRARY_PATH 14387 shlibpath_overrides_runpath=yes 14388 if test "$with_gnu_ld" = yes; then 14389 need_lib_prefix=no 14390 fi 14391 need_version=yes 14392 ;; 14393 14394 sysv4 | sysv4.3*) 14395 version_type=linux 14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14397 soname_spec='${libname}${release}${shared_ext}$major' 14398 shlibpath_var=LD_LIBRARY_PATH 14399 case $host_vendor in 14400 sni) 14401 shlibpath_overrides_runpath=no 14402 need_lib_prefix=no 14403 runpath_var=LD_RUN_PATH 14404 ;; 14405 siemens) 14406 need_lib_prefix=no 14407 ;; 14408 motorola) 14409 need_lib_prefix=no 14410 need_version=no 14411 shlibpath_overrides_runpath=no 14412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14413 ;; 14414 esac 14415 ;; 14416 14417 sysv4*MP*) 14418 if test -d /usr/nec ;then 14419 version_type=linux 14420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14421 soname_spec='$libname${shared_ext}.$major' 14422 shlibpath_var=LD_LIBRARY_PATH 14423 fi 14424 ;; 14425 14426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14427 version_type=freebsd-elf 14428 need_lib_prefix=no 14429 need_version=no 14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14431 soname_spec='${libname}${release}${shared_ext}$major' 14432 shlibpath_var=LD_LIBRARY_PATH 14433 shlibpath_overrides_runpath=yes 14434 hardcode_into_libs=yes 14435 if test "$with_gnu_ld" = yes; then 14436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14437 else 14438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14439 case $host_os in 14440 sco3.2v5*) 14441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14442 ;; 14443 esac 14444 fi 14445 sys_lib_dlsearch_path_spec='/usr/lib' 14446 ;; 14447 14448 tpf*) 14449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14450 version_type=linux 14451 need_lib_prefix=no 14452 need_version=no 14453 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14454 shlibpath_var=LD_LIBRARY_PATH 14455 shlibpath_overrides_runpath=no 14456 hardcode_into_libs=yes 14457 ;; 14458 14459 uts4*) 14460 version_type=linux 14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14462 soname_spec='${libname}${release}${shared_ext}$major' 14463 shlibpath_var=LD_LIBRARY_PATH 14464 ;; 14465 14466 *) 14467 dynamic_linker=no 14468 ;; 14469 esac 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14471 $as_echo "$dynamic_linker" >&6; } 14472 test "$dynamic_linker" = no && can_build_shared=no 14473 14474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14475 if test "$GCC" = yes; then 14476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14477 fi 14478 14479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14481 fi 14482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14484 fi 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14522 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14523 hardcode_action_CXX= 14524 if test -n "$hardcode_libdir_flag_spec_CXX" || 14525 test -n "$runpath_var_CXX" || 14526 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14527 14528 # We can hardcode non-existent directories. 14529 if test "$hardcode_direct_CXX" != no && 14530 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14531 # have to relink, otherwise we might link with an installed library 14532 # when we should be linking with a yet-to-be-installed one 14533 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14534 test "$hardcode_minus_L_CXX" != no; then 14535 # Linking always hardcodes the temporary library directory. 14536 hardcode_action_CXX=relink 14537 else 14538 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14539 hardcode_action_CXX=immediate 14540 fi 14541 else 14542 # We cannot hardcode anything, or else we can only hardcode existing 14543 # directories. 14544 hardcode_action_CXX=unsupported 14545 fi 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14547 $as_echo "$hardcode_action_CXX" >&6; } 14548 14549 if test "$hardcode_action_CXX" = relink || 14550 test "$inherit_rpath_CXX" = yes; then 14551 # Fast installation is not supported 14552 enable_fast_install=no 14553 elif test "$shlibpath_overrides_runpath" = yes || 14554 test "$enable_shared" = no; then 14555 # Fast installation is not necessary 14556 enable_fast_install=needless 14557 fi 14558 14559 14560 14561 14562 14563 14564 14565 fi # test -n "$compiler" 14566 14567 CC=$lt_save_CC 14568 LDCXX=$LD 14569 LD=$lt_save_LD 14570 GCC=$lt_save_GCC 14571 with_gnu_ld=$lt_save_with_gnu_ld 14572 lt_cv_path_LDCXX=$lt_cv_path_LD 14573 lt_cv_path_LD=$lt_save_path_LD 14574 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14575 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14576 fi # test "$_lt_caught_CXX_error" != yes 14577 14578 ac_ext=cpp 14579 ac_cpp='$CXXCPP $CPPFLAGS' 14580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 ac_config_commands="$ac_config_commands libtool" 14597 14598 14599 14600 14601 # Only expand once: 14602 14603 14604 14605 # Checks for header files. 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14607 $as_echo_n "checking for ANSI C header files... " >&6; } 14608 if ${ac_cv_header_stdc+:} false; then : 14609 $as_echo_n "(cached) " >&6 14610 else 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612 /* end confdefs.h. */ 14613 #include <stdlib.h> 14614 #include <stdarg.h> 14615 #include <string.h> 14616 #include <float.h> 14617 14618 int 14619 main () 14620 { 14621 14622 ; 14623 return 0; 14624 } 14625 _ACEOF 14626 if ac_fn_cxx_try_compile "$LINENO"; then : 14627 ac_cv_header_stdc=yes 14628 else 14629 ac_cv_header_stdc=no 14630 fi 14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14632 14633 if test $ac_cv_header_stdc = yes; then 14634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14636 /* end confdefs.h. */ 14637 #include <string.h> 14638 14639 _ACEOF 14640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14641 $EGREP "memchr" >/dev/null 2>&1; then : 14642 14643 else 14644 ac_cv_header_stdc=no 14645 fi 14646 rm -f conftest* 14647 14648 fi 14649 14650 if test $ac_cv_header_stdc = yes; then 14651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653 /* end confdefs.h. */ 14654 #include <stdlib.h> 14655 14656 _ACEOF 14657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14658 $EGREP "free" >/dev/null 2>&1; then : 14659 14660 else 14661 ac_cv_header_stdc=no 14662 fi 14663 rm -f conftest* 14664 14665 fi 14666 14667 if test $ac_cv_header_stdc = yes; then 14668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14669 if test "$cross_compiling" = yes; then : 14670 : 14671 else 14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14673 /* end confdefs.h. */ 14674 #include <ctype.h> 14675 #include <stdlib.h> 14676 #if ((' ' & 0x0FF) == 0x020) 14677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14679 #else 14680 # define ISLOWER(c) \ 14681 (('a' <= (c) && (c) <= 'i') \ 14682 || ('j' <= (c) && (c) <= 'r') \ 14683 || ('s' <= (c) && (c) <= 'z')) 14684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14685 #endif 14686 14687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14688 int 14689 main () 14690 { 14691 int i; 14692 for (i = 0; i < 256; i++) 14693 if (XOR (islower (i), ISLOWER (i)) 14694 || toupper (i) != TOUPPER (i)) 14695 return 2; 14696 return 0; 14697 } 14698 _ACEOF 14699 if ac_fn_cxx_try_run "$LINENO"; then : 14700 14701 else 14702 ac_cv_header_stdc=no 14703 fi 14704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14705 conftest.$ac_objext conftest.beam conftest.$ac_ext 14706 fi 14707 14708 fi 14709 fi 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14711 $as_echo "$ac_cv_header_stdc" >&6; } 14712 if test $ac_cv_header_stdc = yes; then 14713 14714 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 14715 14716 fi 14717 14718 for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h 14719 do : 14720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14721 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14723 cat >>confdefs.h <<_ACEOF 14724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14725 _ACEOF 14726 14727 fi 14728 14729 done 14730 14731 14732 # Checks for library functions. 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 14734 $as_echo_n "checking for working memcmp... " >&6; } 14735 if ${ac_cv_func_memcmp_working+:} false; then : 14736 $as_echo_n "(cached) " >&6 14737 else 14738 if test "$cross_compiling" = yes; then : 14739 ac_cv_func_memcmp_working=no 14740 else 14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14742 /* end confdefs.h. */ 14743 $ac_includes_default 14744 int 14745 main () 14746 { 14747 14748 /* Some versions of memcmp are not 8-bit clean. */ 14749 char c0 = '\100', c1 = '\200', c2 = '\201'; 14750 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 14751 return 1; 14752 14753 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 14754 or more and with at least one buffer not starting on a 4-byte boundary. 14755 William Lewis provided this test program. */ 14756 { 14757 char foo[21]; 14758 char bar[21]; 14759 int i; 14760 for (i = 0; i < 4; i++) 14761 { 14762 char *a = foo + i; 14763 char *b = bar + i; 14764 strcpy (a, "--------01111111"); 14765 strcpy (b, "--------10000000"); 14766 if (memcmp (a, b, 16) >= 0) 14767 return 1; 14768 } 14769 return 0; 14770 } 14771 14772 ; 14773 return 0; 14774 } 14775 _ACEOF 14776 if ac_fn_cxx_try_run "$LINENO"; then : 14777 ac_cv_func_memcmp_working=yes 14778 else 14779 ac_cv_func_memcmp_working=no 14780 fi 14781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14782 conftest.$ac_objext conftest.beam conftest.$ac_ext 14783 fi 14784 14785 fi 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 14787 $as_echo "$ac_cv_func_memcmp_working" >&6; } 14788 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 14789 *" memcmp.$ac_objext "* ) ;; 14790 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 14791 ;; 14792 esac 14793 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 14796 $as_echo_n "checking for working strtod... " >&6; } 14797 if ${ac_cv_func_strtod+:} false; then : 14798 $as_echo_n "(cached) " >&6 14799 else 14800 if test "$cross_compiling" = yes; then : 14801 ac_cv_func_strtod=no 14802 else 14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14804 /* end confdefs.h. */ 14805 14806 $ac_includes_default 14807 #ifndef strtod 14808 double strtod (); 14809 #endif 14810 int 14811 main() 14812 { 14813 { 14814 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 14815 char *string = " +69"; 14816 char *term; 14817 double value; 14818 value = strtod (string, &term); 14819 if (value != 69 || term != (string + 4)) 14820 return 1; 14821 } 14822 14823 { 14824 /* Under Solaris 2.4, strtod returns the wrong value for the 14825 terminating character under some conditions. */ 14826 char *string = "NaN"; 14827 char *term; 14828 strtod (string, &term); 14829 if (term != string && *(term - 1) == 0) 14830 return 1; 14831 } 14832 return 0; 14833 } 14834 14835 _ACEOF 14836 if ac_fn_cxx_try_run "$LINENO"; then : 14837 ac_cv_func_strtod=yes 14838 else 14839 ac_cv_func_strtod=no 14840 fi 14841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14842 conftest.$ac_objext conftest.beam conftest.$ac_ext 14843 fi 14844 14845 fi 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 14847 $as_echo "$ac_cv_func_strtod" >&6; } 14848 if test $ac_cv_func_strtod = no; then 14849 case " $LIBOBJS " in 14850 *" strtod.$ac_objext "* ) ;; 14851 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 14852 ;; 14853 esac 14854 14855 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow" 14856 if test "x$ac_cv_func_pow" = xyes; then : 14857 14858 fi 14859 14860 if test $ac_cv_func_pow = no; then 14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 14862 $as_echo_n "checking for pow in -lm... " >&6; } 14863 if ${ac_cv_lib_m_pow+:} false; then : 14864 $as_echo_n "(cached) " >&6 14865 else 14866 ac_check_lib_save_LIBS=$LIBS 14867 LIBS="-lm $LIBS" 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869 /* end confdefs.h. */ 14870 14871 /* Override any GCC internal prototype to avoid an error. 14872 Use char because int might match the return type of a GCC 14873 builtin and then its argument prototype would still apply. */ 14874 #ifdef __cplusplus 14875 extern "C" 14876 #endif 14877 char pow (); 14878 int 14879 main () 14880 { 14881 return pow (); 14882 ; 14883 return 0; 14884 } 14885 _ACEOF 14886 if ac_fn_cxx_try_link "$LINENO"; then : 14887 ac_cv_lib_m_pow=yes 14888 else 14889 ac_cv_lib_m_pow=no 14890 fi 14891 rm -f core conftest.err conftest.$ac_objext \ 14892 conftest$ac_exeext conftest.$ac_ext 14893 LIBS=$ac_check_lib_save_LIBS 14894 fi 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 14896 $as_echo "$ac_cv_lib_m_pow" >&6; } 14897 if test "x$ac_cv_lib_m_pow" = xyes; then : 14898 POW_LIB=-lm 14899 else 14900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 14901 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 14902 fi 14903 14904 fi 14905 14906 fi 14907 14908 for ac_func in ftruncate memset mkdir strchr strerror strtol 14909 do : 14910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14911 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 14912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14913 cat >>confdefs.h <<_ACEOF 14914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14915 _ACEOF 14916 14917 fi 14918 done 14919 14920 14921 # Check for zlib. 14922 HAVE_ZLIB=0 14923 if test "$with_zlib" != no; then : 14924 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5 14926 $as_echo_n "checking zlib version... " >&6; } 14927 14928 # First check the zlib header version. 14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930 /* end confdefs.h. */ 14931 14932 #include <zlib.h> 14933 #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204) 14934 # error zlib version too old 14935 #endif 14936 14937 int 14938 main () 14939 { 14940 14941 ; 14942 return 0; 14943 } 14944 _ACEOF 14945 if ac_fn_cxx_try_compile "$LINENO"; then : 14946 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5 14948 $as_echo "ok (1.2.0.4 or later)" >&6; } 14949 14950 # Also need to add -lz to the linker flags and make sure this succeeds. 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 14952 $as_echo_n "checking for library containing zlibVersion... " >&6; } 14953 if ${ac_cv_search_zlibVersion+:} false; then : 14954 $as_echo_n "(cached) " >&6 14955 else 14956 ac_func_search_save_LIBS=$LIBS 14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14958 /* end confdefs.h. */ 14959 14960 /* Override any GCC internal prototype to avoid an error. 14961 Use char because int might match the return type of a GCC 14962 builtin and then its argument prototype would still apply. */ 14963 #ifdef __cplusplus 14964 extern "C" 14965 #endif 14966 char zlibVersion (); 14967 int 14968 main () 14969 { 14970 return zlibVersion (); 14971 ; 14972 return 0; 14973 } 14974 _ACEOF 14975 for ac_lib in '' z; do 14976 if test -z "$ac_lib"; then 14977 ac_res="none required" 14978 else 14979 ac_res=-l$ac_lib 14980 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14981 fi 14982 if ac_fn_cxx_try_link "$LINENO"; then : 14983 ac_cv_search_zlibVersion=$ac_res 14984 fi 14985 rm -f core conftest.err conftest.$ac_objext \ 14986 conftest$ac_exeext 14987 if ${ac_cv_search_zlibVersion+:} false; then : 14988 break 14989 fi 14990 done 14991 if ${ac_cv_search_zlibVersion+:} false; then : 14992 14993 else 14994 ac_cv_search_zlibVersion=no 14995 fi 14996 rm conftest.$ac_ext 14997 LIBS=$ac_func_search_save_LIBS 14998 fi 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 15000 $as_echo "$ac_cv_search_zlibVersion" >&6; } 15001 ac_res=$ac_cv_search_zlibVersion 15002 if test "$ac_res" != no; then : 15003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15004 15005 15006 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h 15007 15008 HAVE_ZLIB=1 15009 15010 else 15011 15012 if test "$with_zlib" != check; then : 15013 15014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15016 as_fn_error $? "--with-zlib was given, but no working zlib library was found 15017 See \`config.log' for more details" "$LINENO" 5; } 15018 15019 fi 15020 15021 fi 15022 15023 15024 else 15025 15026 if test "$with_zlib" = check; then : 15027 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5 15029 $as_echo "headers missing or too old (requires 1.2.0.4)" >&6; } 15030 15031 else 15032 15033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15035 as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4) 15036 See \`config.log' for more details" "$LINENO" 5; } 15037 15038 fi 15039 15040 fi 15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15042 15043 fi 15044 if test $HAVE_ZLIB = 1; then 15045 HAVE_ZLIB_TRUE= 15046 HAVE_ZLIB_FALSE='#' 15047 else 15048 HAVE_ZLIB_TRUE='#' 15049 HAVE_ZLIB_FALSE= 15050 fi 15051 15052 15053 if test "$with_protoc" != "no"; then : 15054 15055 PROTOC=$with_protoc 15056 if test "$with_protoc" == "yes"; then : 15057 15058 # No argument given. Use system protoc. 15059 PROTOC=protoc 15060 15061 fi 15062 if echo "$PROTOC" | grep -q '^[^/].*/'; then : 15063 15064 # Does not start with a slash, but contains a slash. So, it's a relative 15065 # path (as opposed to an absolute path or an executable in $PATH). 15066 # Since it will actually be executed from the src directory, prefix with 15067 # the current directory. We also insert $ac_top_build_prefix in case this 15068 # is a nested package and --with-protoc was actually given on the outer 15069 # package's configure script. 15070 PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC 15071 15072 fi 15073 15074 15075 fi 15076 if test "$with_protoc" != "no"; then 15077 USE_EXTERNAL_PROTOC_TRUE= 15078 USE_EXTERNAL_PROTOC_FALSE='#' 15079 else 15080 USE_EXTERNAL_PROTOC_TRUE='#' 15081 USE_EXTERNAL_PROTOC_FALSE= 15082 fi 15083 15084 15085 15086 15087 15088 ac_ext=c 15089 ac_cpp='$CPP $CPPFLAGS' 15090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15092 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15093 15094 acx_pthread_ok=no 15095 15096 # We used to check for pthread.h first, but this fails if pthread.h 15097 # requires special compiler flags (e.g. on True64 or Sequent). 15098 # It gets checked for in the link test anyway. 15099 15100 # First of all, check if the user has set any of the PTHREAD_LIBS, 15101 # etcetera environment variables, and if threads linking works using 15102 # them: 15103 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15104 save_CFLAGS="$CFLAGS" 15105 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15106 save_LIBS="$LIBS" 15107 LIBS="$PTHREAD_LIBS $LIBS" 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15109 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111 /* end confdefs.h. */ 15112 15113 /* Override any GCC internal prototype to avoid an error. 15114 Use char because int might match the return type of a GCC 15115 builtin and then its argument prototype would still apply. */ 15116 #ifdef __cplusplus 15117 extern "C" 15118 #endif 15119 char pthread_join (); 15120 int 15121 main () 15122 { 15123 return pthread_join (); 15124 ; 15125 return 0; 15126 } 15127 _ACEOF 15128 if ac_fn_c_try_link "$LINENO"; then : 15129 acx_pthread_ok=yes 15130 fi 15131 rm -f core conftest.err conftest.$ac_objext \ 15132 conftest$ac_exeext conftest.$ac_ext 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15134 $as_echo "$acx_pthread_ok" >&6; } 15135 if test x"$acx_pthread_ok" = xno; then 15136 PTHREAD_LIBS="" 15137 PTHREAD_CFLAGS="" 15138 fi 15139 LIBS="$save_LIBS" 15140 CFLAGS="$save_CFLAGS" 15141 fi 15142 15143 # We must check for the threads library under a number of different 15144 # names; the ordering is very important because some systems 15145 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15146 # libraries is broken (non-POSIX). 15147 15148 # Create a list of thread flags to try. Items starting with a "-" are 15149 # C compiler flags, and other items are library names, except for "none" 15150 # which indicates that we try without any flags at all, and "pthread-config" 15151 # which is a program returning the flags for the Pth emulation library. 15152 15153 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15154 15155 # The ordering *is* (sometimes) important. Some notes on the 15156 # individual items follow: 15157 15158 # pthreads: AIX (must check this before -lpthread) 15159 # none: in case threads are in libc; should be tried before -Kthread and 15160 # other compiler flags to prevent continual compiler warnings 15161 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15162 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15163 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15164 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15165 # -pthreads: Solaris/gcc 15166 # -mthreads: Mingw32/gcc, Lynx/gcc 15167 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15168 # doesn't hurt to check since this sometimes defines pthreads too; 15169 # also defines -D_REENTRANT) 15170 # ... -mt is also the pthreads flag for HP/aCC 15171 # pthread: Linux, etcetera 15172 # --thread-safe: KAI C++ 15173 # pthread-config: use pthread-config program (for GNU Pth library) 15174 15175 case "${host_cpu}-${host_os}" in 15176 *solaris*) 15177 15178 # On Solaris (at least, for some versions), libc contains stubbed 15179 # (non-functional) versions of the pthreads routines, so link-based 15180 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15181 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15182 # a function called by this macro, so we could check for that, but 15183 # who knows whether they'll stub that too in a future libc.) So, 15184 # we'll just look for -pthreads and -lpthread first: 15185 15186 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15187 ;; 15188 esac 15189 15190 if test x"$acx_pthread_ok" = xno; then 15191 for flag in $acx_pthread_flags; do 15192 15193 case $flag in 15194 none) 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15196 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 15197 ;; 15198 15199 -*) 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15201 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 15202 PTHREAD_CFLAGS="$flag" 15203 ;; 15204 15205 pthread-config) 15206 # Extract the first word of "pthread-config", so it can be a program name with args. 15207 set dummy pthread-config; ac_word=$2 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15209 $as_echo_n "checking for $ac_word... " >&6; } 15210 if ${ac_cv_prog_acx_pthread_config+:} false; then : 15211 $as_echo_n "(cached) " >&6 15212 else 15213 if test -n "$acx_pthread_config"; then 15214 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15215 else 15216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15217 for as_dir in $PATH 15218 do 15219 IFS=$as_save_IFS 15220 test -z "$as_dir" && as_dir=. 15221 for ac_exec_ext in '' $ac_executable_extensions; do 15222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15223 ac_cv_prog_acx_pthread_config="yes" 15224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15225 break 2 15226 fi 15227 done 15228 done 15229 IFS=$as_save_IFS 15230 15231 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15232 fi 15233 fi 15234 acx_pthread_config=$ac_cv_prog_acx_pthread_config 15235 if test -n "$acx_pthread_config"; then 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15237 $as_echo "$acx_pthread_config" >&6; } 15238 else 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15240 $as_echo "no" >&6; } 15241 fi 15242 15243 15244 if test x"$acx_pthread_config" = xno; then continue; fi 15245 PTHREAD_CFLAGS="`pthread-config --cflags`" 15246 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15247 ;; 15248 15249 *) 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15251 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15252 PTHREAD_LIBS="-l$flag" 15253 ;; 15254 esac 15255 15256 save_LIBS="$LIBS" 15257 save_CFLAGS="$CFLAGS" 15258 LIBS="$PTHREAD_LIBS $LIBS" 15259 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15260 15261 # Check for various functions. We must include pthread.h, 15262 # since some functions may be macros. (On the Sequent, we 15263 # need a special flag -Kthread to make this header compile.) 15264 # We check for pthread_join because it is in -lpthread on IRIX 15265 # while pthread_create is in libc. We check for pthread_attr_init 15266 # due to DEC craziness with -lpthreads. We check for 15267 # pthread_cleanup_push because it is one of the few pthread 15268 # functions on Solaris that doesn't have a non-functional libc stub. 15269 # We try pthread_create on general principles. 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271 /* end confdefs.h. */ 15272 #include <pthread.h> 15273 int 15274 main () 15275 { 15276 pthread_t th; pthread_join(th, 0); 15277 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15278 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15279 ; 15280 return 0; 15281 } 15282 _ACEOF 15283 if ac_fn_c_try_link "$LINENO"; then : 15284 acx_pthread_ok=yes 15285 fi 15286 rm -f core conftest.err conftest.$ac_objext \ 15287 conftest$ac_exeext conftest.$ac_ext 15288 15289 LIBS="$save_LIBS" 15290 CFLAGS="$save_CFLAGS" 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15293 $as_echo "$acx_pthread_ok" >&6; } 15294 if test "x$acx_pthread_ok" = xyes; then 15295 break; 15296 fi 15297 15298 PTHREAD_LIBS="" 15299 PTHREAD_CFLAGS="" 15300 done 15301 fi 15302 15303 # Various other checks: 15304 if test "x$acx_pthread_ok" = xyes; then 15305 save_LIBS="$LIBS" 15306 LIBS="$PTHREAD_LIBS $LIBS" 15307 save_CFLAGS="$CFLAGS" 15308 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15309 15310 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15312 $as_echo_n "checking for joinable pthread attribute... " >&6; } 15313 attr_name=unknown 15314 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316 /* end confdefs.h. */ 15317 #include <pthread.h> 15318 int 15319 main () 15320 { 15321 int attr=$attr; return attr; 15322 ; 15323 return 0; 15324 } 15325 _ACEOF 15326 if ac_fn_c_try_link "$LINENO"; then : 15327 attr_name=$attr; break 15328 fi 15329 rm -f core conftest.err conftest.$ac_objext \ 15330 conftest$ac_exeext conftest.$ac_ext 15331 done 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15333 $as_echo "$attr_name" >&6; } 15334 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15335 15336 cat >>confdefs.h <<_ACEOF 15337 #define PTHREAD_CREATE_JOINABLE $attr_name 15338 _ACEOF 15339 15340 fi 15341 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15343 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15344 flag=no 15345 case "${host_cpu}-${host_os}" in 15346 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15347 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15348 esac 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15350 $as_echo "${flag}" >&6; } 15351 if test "x$flag" != xno; then 15352 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15353 fi 15354 15355 LIBS="$save_LIBS" 15356 CFLAGS="$save_CFLAGS" 15357 # More AIX lossage: must compile with xlc_r or cc_r 15358 if test x"$GCC" != xyes; then 15359 for ac_prog in xlc_r cc_r 15360 do 15361 # Extract the first word of "$ac_prog", so it can be a program name with args. 15362 set dummy $ac_prog; ac_word=$2 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15364 $as_echo_n "checking for $ac_word... " >&6; } 15365 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15366 $as_echo_n "(cached) " >&6 15367 else 15368 if test -n "$PTHREAD_CC"; then 15369 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15370 else 15371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15372 for as_dir in $PATH 15373 do 15374 IFS=$as_save_IFS 15375 test -z "$as_dir" && as_dir=. 15376 for ac_exec_ext in '' $ac_executable_extensions; do 15377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15378 ac_cv_prog_PTHREAD_CC="$ac_prog" 15379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15380 break 2 15381 fi 15382 done 15383 done 15384 IFS=$as_save_IFS 15385 15386 fi 15387 fi 15388 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15389 if test -n "$PTHREAD_CC"; then 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15391 $as_echo "$PTHREAD_CC" >&6; } 15392 else 15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15394 $as_echo "no" >&6; } 15395 fi 15396 15397 15398 test -n "$PTHREAD_CC" && break 15399 done 15400 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15401 15402 else 15403 PTHREAD_CC=$CC 15404 fi 15405 15406 # The next part tries to detect GCC inconsistency with -shared on some 15407 # architectures and systems. The problem is that in certain 15408 # configurations, when -shared is specified, GCC "forgets" to 15409 # internally use various flags which are still necessary. 15410 15411 # 15412 # Prepare the flags 15413 # 15414 save_CFLAGS="$CFLAGS" 15415 save_LIBS="$LIBS" 15416 save_CC="$CC" 15417 15418 # Try with the flags determined by the earlier checks. 15419 # 15420 # -Wl,-z,defs forces link-time symbol resolution, so that the 15421 # linking checks with -shared actually have any value 15422 # 15423 # FIXME: -fPIC is required for -shared on many architectures, 15424 # so we specify it here, but the right way would probably be to 15425 # properly detect whether it is actually required. 15426 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 15427 LIBS="$PTHREAD_LIBS $LIBS" 15428 CC="$PTHREAD_CC" 15429 15430 # In order not to create several levels of indentation, we test 15431 # the value of "$done" until we find the cure or run out of ideas. 15432 done="no" 15433 15434 # First, make sure the CFLAGS we added are actually accepted by our 15435 # compiler. If not (and OS X's ld, for instance, does not accept -z), 15436 # then we can't do this test. 15437 if test x"$done" = xno; then 15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 15439 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441 /* end confdefs.h. */ 15442 15443 int 15444 main () 15445 { 15446 15447 ; 15448 return 0; 15449 } 15450 _ACEOF 15451 if ac_fn_c_try_link "$LINENO"; then : 15452 15453 else 15454 done=yes 15455 fi 15456 rm -f core conftest.err conftest.$ac_objext \ 15457 conftest$ac_exeext conftest.$ac_ext 15458 15459 if test "x$done" = xyes ; then 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15461 $as_echo "no" >&6; } 15462 else 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15464 $as_echo "yes" >&6; } 15465 fi 15466 fi 15467 15468 if test x"$done" = xno; then 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 15470 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472 /* end confdefs.h. */ 15473 #include <pthread.h> 15474 int 15475 main () 15476 { 15477 pthread_t th; pthread_join(th, 0); 15478 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15479 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15480 ; 15481 return 0; 15482 } 15483 _ACEOF 15484 if ac_fn_c_try_link "$LINENO"; then : 15485 done=yes 15486 fi 15487 rm -f core conftest.err conftest.$ac_objext \ 15488 conftest$ac_exeext conftest.$ac_ext 15489 15490 if test "x$done" = xyes; then 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15492 $as_echo "yes" >&6; } 15493 else 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15495 $as_echo "no" >&6; } 15496 fi 15497 fi 15498 15499 # 15500 # Linux gcc on some architectures such as mips/mipsel forgets 15501 # about -lpthread 15502 # 15503 if test x"$done" = xno; then 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 15505 $as_echo_n "checking whether -lpthread fixes that... " >&6; } 15506 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508 /* end confdefs.h. */ 15509 #include <pthread.h> 15510 int 15511 main () 15512 { 15513 pthread_t th; pthread_join(th, 0); 15514 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15515 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15516 ; 15517 return 0; 15518 } 15519 _ACEOF 15520 if ac_fn_c_try_link "$LINENO"; then : 15521 done=yes 15522 fi 15523 rm -f core conftest.err conftest.$ac_objext \ 15524 conftest$ac_exeext conftest.$ac_ext 15525 15526 if test "x$done" = xyes; then 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15528 $as_echo "yes" >&6; } 15529 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 15530 else 15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15532 $as_echo "no" >&6; } 15533 fi 15534 fi 15535 # 15536 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 15537 # 15538 if test x"$done" = xno; then 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 15540 $as_echo_n "checking whether -lc_r fixes that... " >&6; } 15541 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15543 /* end confdefs.h. */ 15544 #include <pthread.h> 15545 int 15546 main () 15547 { 15548 pthread_t th; pthread_join(th, 0); 15549 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15550 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15551 ; 15552 return 0; 15553 } 15554 _ACEOF 15555 if ac_fn_c_try_link "$LINENO"; then : 15556 done=yes 15557 fi 15558 rm -f core conftest.err conftest.$ac_objext \ 15559 conftest$ac_exeext conftest.$ac_ext 15560 15561 if test "x$done" = xyes; then 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15563 $as_echo "yes" >&6; } 15564 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 15565 else 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15567 $as_echo "no" >&6; } 15568 fi 15569 fi 15570 if test x"$done" = xno; then 15571 # OK, we have run out of ideas 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 15573 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 15574 15575 # so it's not safe to assume that we may use pthreads 15576 acx_pthread_ok=no 15577 fi 15578 15579 CFLAGS="$save_CFLAGS" 15580 LIBS="$save_LIBS" 15581 CC="$save_CC" 15582 else 15583 PTHREAD_CC="$CC" 15584 fi 15585 15586 15587 15588 15589 15590 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15591 if test x"$acx_pthread_ok" = xyes; then 15592 15593 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15594 15595 : 15596 else 15597 acx_pthread_ok=no 15598 15599 fi 15600 ac_ext=cpp 15601 ac_cpp='$CXXCPP $CPPFLAGS' 15602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15605 15606 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5 15608 $as_echo_n "checking the location of hash_map... " >&6; } 15609 15610 ac_ext=cpp 15611 ac_cpp='$CXXCPP $CPPFLAGS' 15612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15615 15616 ac_cv_cxx_hash_map_header="" 15617 ac_cv_cxx_hash_map_class="" 15618 for location in tr1/unordered_map ext/hash_map hash_map; do 15619 for namespace in std::tr1 __gnu_cxx "" std stdext; do 15620 for name in unordered_map hash_map; do 15621 15622 if test -z "$ac_cv_cxx_hash_map_header"; then 15623 15624 # On OSX 1.5 / GCC 4.0.1 (the standard compiler on that platform), 15625 # calling find() on a const unordered_map does not compile. So, we 15626 # include a call to find() in our test to detect this broken 15627 # implementation and avoid using it. Note that ext/hash_map works 15628 # fine on this platform, so we'll end up using that. 15629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15630 /* end confdefs.h. */ 15631 #include <$location> 15632 int 15633 main () 15634 { 15635 const ${namespace}::$name<int, int> t; 15636 t.find(1); 15637 ; 15638 return 0; 15639 } 15640 _ACEOF 15641 if ac_fn_cxx_try_compile "$LINENO"; then : 15642 ac_cv_cxx_hash_map_header="<$location>"; 15643 ac_cv_cxx_hash_namespace="$namespace"; 15644 ac_cv_cxx_hash_map_class="$name"; 15645 fi 15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15647 fi 15648 done 15649 done 15650 done 15651 ac_cv_cxx_hash_set_header=`echo "$ac_cv_cxx_hash_map_header" | sed s/map/set/`; 15652 ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`; 15653 if test -n "$ac_cv_cxx_hash_map_header"; then 15654 15655 $as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h 15656 15657 15658 $as_echo "#define HAVE_HASH_SET 1" >>confdefs.h 15659 15660 15661 cat >>confdefs.h <<_ACEOF 15662 #define HASH_MAP_H $ac_cv_cxx_hash_map_header 15663 _ACEOF 15664 15665 15666 cat >>confdefs.h <<_ACEOF 15667 #define HASH_SET_H $ac_cv_cxx_hash_set_header 15668 _ACEOF 15669 15670 15671 cat >>confdefs.h <<_ACEOF 15672 #define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class 15673 _ACEOF 15674 15675 15676 cat >>confdefs.h <<_ACEOF 15677 #define HASH_SET_CLASS $ac_cv_cxx_hash_set_class 15678 _ACEOF 15679 15680 15681 cat >>confdefs.h <<_ACEOF 15682 #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace 15683 _ACEOF 15684 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map_header" >&5 15686 $as_echo "$ac_cv_cxx_hash_map_header" >&6; } 15687 else 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15689 $as_echo "" >&6; } 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5 15691 $as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;} 15692 fi 15693 15694 15695 # HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS, 15696 # since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest 15697 # too. 15698 export CFLAGS 15699 export CXXFLAGS 15700 15701 15702 subdirs="$subdirs gtest" 15703 15704 15705 ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc" 15706 15707 cat >confcache <<\_ACEOF 15708 # This file is a shell script that caches the results of configure 15709 # tests run on this system so they can be shared between configure 15710 # scripts and configure runs, see configure's option --config-cache. 15711 # It is not useful on other systems. If it contains results you don't 15712 # want to keep, you may remove or edit it. 15713 # 15714 # config.status only pays attention to the cache file if you give it 15715 # the --recheck option to rerun configure. 15716 # 15717 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15718 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15719 # following values. 15720 15721 _ACEOF 15722 15723 # The following way of writing the cache mishandles newlines in values, 15724 # but we know of no workaround that is simple, portable, and efficient. 15725 # So, we kill variables containing newlines. 15726 # Ultrix sh set writes to stderr and can't be redirected directly, 15727 # and sets the high bit in the cache file unless we assign to the vars. 15728 ( 15729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15730 eval ac_val=\$$ac_var 15731 case $ac_val in #( 15732 *${as_nl}*) 15733 case $ac_var in #( 15734 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15736 esac 15737 case $ac_var in #( 15738 _ | IFS | as_nl) ;; #( 15739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15740 *) { eval $ac_var=; unset $ac_var;} ;; 15741 esac ;; 15742 esac 15743 done 15744 15745 (set) 2>&1 | 15746 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15747 *${as_nl}ac_space=\ *) 15748 # `set' does not quote correctly, so add quotes: double-quote 15749 # substitution turns \\\\ into \\, and sed turns \\ into \. 15750 sed -n \ 15751 "s/'/'\\\\''/g; 15752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15753 ;; #( 15754 *) 15755 # `set' quotes correctly as required by POSIX, so do not add quotes. 15756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15757 ;; 15758 esac | 15759 sort 15760 ) | 15761 sed ' 15762 /^ac_cv_env_/b end 15763 t clear 15764 :clear 15765 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15766 t end 15767 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15768 :end' >>confcache 15769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15770 if test -w "$cache_file"; then 15771 if test "x$cache_file" != "x/dev/null"; then 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15773 $as_echo "$as_me: updating cache $cache_file" >&6;} 15774 if test ! -f "$cache_file" || test -h "$cache_file"; then 15775 cat confcache >"$cache_file" 15776 else 15777 case $cache_file in #( 15778 */* | ?:*) 15779 mv -f confcache "$cache_file"$$ && 15780 mv -f "$cache_file"$$ "$cache_file" ;; #( 15781 *) 15782 mv -f confcache "$cache_file" ;; 15783 esac 15784 fi 15785 fi 15786 else 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15789 fi 15790 fi 15791 rm -f confcache 15792 15793 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15794 # Let make expand exec_prefix. 15795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15796 15797 DEFS=-DHAVE_CONFIG_H 15798 15799 ac_libobjs= 15800 ac_ltlibobjs= 15801 U= 15802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15803 # 1. Remove the extension, and $U if already installed. 15804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15805 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15807 # will be set to the directory where LIBOBJS objects are built. 15808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15810 done 15811 LIBOBJS=$ac_libobjs 15812 15813 LTLIBOBJS=$ac_ltlibobjs 15814 15815 15816 if test -n "$EXEEXT"; then 15817 am__EXEEXT_TRUE= 15818 am__EXEEXT_FALSE='#' 15819 else 15820 am__EXEEXT_TRUE='#' 15821 am__EXEEXT_FALSE= 15822 fi 15823 15824 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15825 as_fn_error $? "conditional \"AMDEP\" was never defined. 15826 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15827 fi 15828 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15829 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15830 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15831 fi 15832 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15833 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15834 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15835 fi 15836 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 15837 as_fn_error $? "conditional \"GCC\" was never defined. 15838 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15839 fi 15840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15841 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15842 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15843 fi 15844 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then 15845 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. 15846 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15847 fi 15848 if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then 15849 as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined. 15850 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15851 fi 15852 15853 : "${CONFIG_STATUS=./config.status}" 15854 ac_write_fail=0 15855 ac_clean_files_save=$ac_clean_files 15856 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15859 as_write_fail=0 15860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15861 #! $SHELL 15862 # Generated by $as_me. 15863 # Run this file to recreate the current configuration. 15864 # Compiler output produced by configure, useful for debugging 15865 # configure, is in config.log if it exists. 15866 15867 debug=false 15868 ac_cs_recheck=false 15869 ac_cs_silent=false 15870 15871 SHELL=\${CONFIG_SHELL-$SHELL} 15872 export SHELL 15873 _ASEOF 15874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15875 ## -------------------- ## 15876 ## M4sh Initialization. ## 15877 ## -------------------- ## 15878 15879 # Be more Bourne compatible 15880 DUALCASE=1; export DUALCASE # for MKS sh 15881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15882 emulate sh 15883 NULLCMD=: 15884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15885 # is contrary to our usage. Disable this feature. 15886 alias -g '${1+"$@"}'='"$@"' 15887 setopt NO_GLOB_SUBST 15888 else 15889 case `(set -o) 2>/dev/null` in #( 15890 *posix*) : 15891 set -o posix ;; #( 15892 *) : 15893 ;; 15894 esac 15895 fi 15896 15897 15898 as_nl=' 15899 ' 15900 export as_nl 15901 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15905 # Prefer a ksh shell builtin over an external printf program on Solaris, 15906 # but without wasting forks for bash or zsh. 15907 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15909 as_echo='print -r --' 15910 as_echo_n='print -rn --' 15911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15912 as_echo='printf %s\n' 15913 as_echo_n='printf %s' 15914 else 15915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15917 as_echo_n='/usr/ucb/echo -n' 15918 else 15919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15920 as_echo_n_body='eval 15921 arg=$1; 15922 case $arg in #( 15923 *"$as_nl"*) 15924 expr "X$arg" : "X\\(.*\\)$as_nl"; 15925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15926 esac; 15927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15928 ' 15929 export as_echo_n_body 15930 as_echo_n='sh -c $as_echo_n_body as_echo' 15931 fi 15932 export as_echo_body 15933 as_echo='sh -c $as_echo_body as_echo' 15934 fi 15935 15936 # The user is always right. 15937 if test "${PATH_SEPARATOR+set}" != set; then 15938 PATH_SEPARATOR=: 15939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15941 PATH_SEPARATOR=';' 15942 } 15943 fi 15944 15945 15946 # IFS 15947 # We need space, tab and new line, in precisely that order. Quoting is 15948 # there to prevent editors from complaining about space-tab. 15949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15950 # splitting by setting IFS to empty value.) 15951 IFS=" "" $as_nl" 15952 15953 # Find who we are. Look in the path if we contain no directory separator. 15954 as_myself= 15955 case $0 in #(( 15956 *[\\/]* ) as_myself=$0 ;; 15957 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15958 for as_dir in $PATH 15959 do 15960 IFS=$as_save_IFS 15961 test -z "$as_dir" && as_dir=. 15962 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15963 done 15964 IFS=$as_save_IFS 15965 15966 ;; 15967 esac 15968 # We did not find ourselves, most probably we were run as `sh COMMAND' 15969 # in which case we are not to be found in the path. 15970 if test "x$as_myself" = x; then 15971 as_myself=$0 15972 fi 15973 if test ! -f "$as_myself"; then 15974 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15975 exit 1 15976 fi 15977 15978 # Unset variables that we do not need and which cause bugs (e.g. in 15979 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15980 # suppresses any "Segmentation fault" message there. '((' could 15981 # trigger a bug in pdksh 5.2.14. 15982 for as_var in BASH_ENV ENV MAIL MAILPATH 15983 do eval test x\${$as_var+set} = xset \ 15984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15985 done 15986 PS1='$ ' 15987 PS2='> ' 15988 PS4='+ ' 15989 15990 # NLS nuisances. 15991 LC_ALL=C 15992 export LC_ALL 15993 LANGUAGE=C 15994 export LANGUAGE 15995 15996 # CDPATH. 15997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15998 15999 16000 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16001 # ---------------------------------------- 16002 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16003 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16004 # script with STATUS, using 1 if that was 0. 16005 as_fn_error () 16006 { 16007 as_status=$1; test $as_status -eq 0 && as_status=1 16008 if test "$4"; then 16009 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16010 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16011 fi 16012 $as_echo "$as_me: error: $2" >&2 16013 as_fn_exit $as_status 16014 } # as_fn_error 16015 16016 16017 # as_fn_set_status STATUS 16018 # ----------------------- 16019 # Set $? to STATUS, without forking. 16020 as_fn_set_status () 16021 { 16022 return $1 16023 } # as_fn_set_status 16024 16025 # as_fn_exit STATUS 16026 # ----------------- 16027 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16028 as_fn_exit () 16029 { 16030 set +e 16031 as_fn_set_status $1 16032 exit $1 16033 } # as_fn_exit 16034 16035 # as_fn_unset VAR 16036 # --------------- 16037 # Portably unset VAR. 16038 as_fn_unset () 16039 { 16040 { eval $1=; unset $1;} 16041 } 16042 as_unset=as_fn_unset 16043 # as_fn_append VAR VALUE 16044 # ---------------------- 16045 # Append the text in VALUE to the end of the definition contained in VAR. Take 16046 # advantage of any shell optimizations that allow amortized linear growth over 16047 # repeated appends, instead of the typical quadratic growth present in naive 16048 # implementations. 16049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16050 eval 'as_fn_append () 16051 { 16052 eval $1+=\$2 16053 }' 16054 else 16055 as_fn_append () 16056 { 16057 eval $1=\$$1\$2 16058 } 16059 fi # as_fn_append 16060 16061 # as_fn_arith ARG... 16062 # ------------------ 16063 # Perform arithmetic evaluation on the ARGs, and store the result in the 16064 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16065 # must be portable across $(()) and expr. 16066 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16067 eval 'as_fn_arith () 16068 { 16069 as_val=$(( $* )) 16070 }' 16071 else 16072 as_fn_arith () 16073 { 16074 as_val=`expr "$@" || test $? -eq 1` 16075 } 16076 fi # as_fn_arith 16077 16078 16079 if expr a : '\(a\)' >/dev/null 2>&1 && 16080 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16081 as_expr=expr 16082 else 16083 as_expr=false 16084 fi 16085 16086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16087 as_basename=basename 16088 else 16089 as_basename=false 16090 fi 16091 16092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16093 as_dirname=dirname 16094 else 16095 as_dirname=false 16096 fi 16097 16098 as_me=`$as_basename -- "$0" || 16099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16100 X"$0" : 'X\(//\)$' \| \ 16101 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16102 $as_echo X/"$0" | 16103 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16104 s//\1/ 16105 q 16106 } 16107 /^X\/\(\/\/\)$/{ 16108 s//\1/ 16109 q 16110 } 16111 /^X\/\(\/\).*/{ 16112 s//\1/ 16113 q 16114 } 16115 s/.*/./; q'` 16116 16117 # Avoid depending upon Character Ranges. 16118 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16121 as_cr_digits='0123456789' 16122 as_cr_alnum=$as_cr_Letters$as_cr_digits 16123 16124 ECHO_C= ECHO_N= ECHO_T= 16125 case `echo -n x` in #((((( 16126 -n*) 16127 case `echo 'xy\c'` in 16128 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16129 xy) ECHO_C='\c';; 16130 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16131 ECHO_T=' ';; 16132 esac;; 16133 *) 16134 ECHO_N='-n';; 16135 esac 16136 16137 rm -f conf$$ conf$$.exe conf$$.file 16138 if test -d conf$$.dir; then 16139 rm -f conf$$.dir/conf$$.file 16140 else 16141 rm -f conf$$.dir 16142 mkdir conf$$.dir 2>/dev/null 16143 fi 16144 if (echo >conf$$.file) 2>/dev/null; then 16145 if ln -s conf$$.file conf$$ 2>/dev/null; then 16146 as_ln_s='ln -s' 16147 # ... but there are two gotchas: 16148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16150 # In both cases, we have to default to `cp -p'. 16151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16152 as_ln_s='cp -p' 16153 elif ln conf$$.file conf$$ 2>/dev/null; then 16154 as_ln_s=ln 16155 else 16156 as_ln_s='cp -p' 16157 fi 16158 else 16159 as_ln_s='cp -p' 16160 fi 16161 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16162 rmdir conf$$.dir 2>/dev/null 16163 16164 16165 # as_fn_mkdir_p 16166 # ------------- 16167 # Create "$as_dir" as a directory, including parents if necessary. 16168 as_fn_mkdir_p () 16169 { 16170 16171 case $as_dir in #( 16172 -*) as_dir=./$as_dir;; 16173 esac 16174 test -d "$as_dir" || eval $as_mkdir_p || { 16175 as_dirs= 16176 while :; do 16177 case $as_dir in #( 16178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16179 *) as_qdir=$as_dir;; 16180 esac 16181 as_dirs="'$as_qdir' $as_dirs" 16182 as_dir=`$as_dirname -- "$as_dir" || 16183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16184 X"$as_dir" : 'X\(//\)[^/]' \| \ 16185 X"$as_dir" : 'X\(//\)$' \| \ 16186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16187 $as_echo X"$as_dir" | 16188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16189 s//\1/ 16190 q 16191 } 16192 /^X\(\/\/\)[^/].*/{ 16193 s//\1/ 16194 q 16195 } 16196 /^X\(\/\/\)$/{ 16197 s//\1/ 16198 q 16199 } 16200 /^X\(\/\).*/{ 16201 s//\1/ 16202 q 16203 } 16204 s/.*/./; q'` 16205 test -d "$as_dir" && break 16206 done 16207 test -z "$as_dirs" || eval "mkdir $as_dirs" 16208 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16209 16210 16211 } # as_fn_mkdir_p 16212 if mkdir -p . 2>/dev/null; then 16213 as_mkdir_p='mkdir -p "$as_dir"' 16214 else 16215 test -d ./-p && rmdir ./-p 16216 as_mkdir_p=false 16217 fi 16218 16219 if test -x / >/dev/null 2>&1; then 16220 as_test_x='test -x' 16221 else 16222 if ls -dL / >/dev/null 2>&1; then 16223 as_ls_L_option=L 16224 else 16225 as_ls_L_option= 16226 fi 16227 as_test_x=' 16228 eval sh -c '\'' 16229 if test -d "$1"; then 16230 test -d "$1/."; 16231 else 16232 case $1 in #( 16233 -*)set "./$1";; 16234 esac; 16235 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16236 ???[sx]*):;;*)false;;esac;fi 16237 '\'' sh 16238 ' 16239 fi 16240 as_executable_p=$as_test_x 16241 16242 # Sed expression to map a string onto a valid CPP name. 16243 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16244 16245 # Sed expression to map a string onto a valid variable name. 16246 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16247 16248 16249 exec 6>&1 16250 ## ----------------------------------- ## 16251 ## Main body of $CONFIG_STATUS script. ## 16252 ## ----------------------------------- ## 16253 _ASEOF 16254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16255 16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16257 # Save the log message, to keep $0 and so on meaningful, and to 16258 # report actual input values of CONFIG_FILES etc. instead of their 16259 # values after options handling. 16260 ac_log=" 16261 This file was extended by Protocol Buffers $as_me 2.3.0, which was 16262 generated by GNU Autoconf 2.68. Invocation command line was 16263 16264 CONFIG_FILES = $CONFIG_FILES 16265 CONFIG_HEADERS = $CONFIG_HEADERS 16266 CONFIG_LINKS = $CONFIG_LINKS 16267 CONFIG_COMMANDS = $CONFIG_COMMANDS 16268 $ $0 $@ 16269 16270 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16271 " 16272 16273 _ACEOF 16274 16275 case $ac_config_files in *" 16276 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16277 esac 16278 16279 case $ac_config_headers in *" 16280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16281 esac 16282 16283 16284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16285 # Files that config.status was made for. 16286 config_files="$ac_config_files" 16287 config_headers="$ac_config_headers" 16288 config_commands="$ac_config_commands" 16289 16290 _ACEOF 16291 16292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16293 ac_cs_usage="\ 16294 \`$as_me' instantiates files and other configuration actions 16295 from templates according to the current configuration. Unless the files 16296 and actions are specified as TAGs, all are instantiated by default. 16297 16298 Usage: $0 [OPTION]... [TAG]... 16299 16300 -h, --help print this help, then exit 16301 -V, --version print version number and configuration settings, then exit 16302 --config print configuration, then exit 16303 -q, --quiet, --silent 16304 do not print progress messages 16305 -d, --debug don't remove temporary files 16306 --recheck update $as_me by reconfiguring in the same conditions 16307 --file=FILE[:TEMPLATE] 16308 instantiate the configuration file FILE 16309 --header=FILE[:TEMPLATE] 16310 instantiate the configuration header FILE 16311 16312 Configuration files: 16313 $config_files 16314 16315 Configuration headers: 16316 $config_headers 16317 16318 Configuration commands: 16319 $config_commands 16320 16321 Report bugs to <protobuf (at] googlegroups.com>." 16322 16323 _ACEOF 16324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16325 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16326 ac_cs_version="\\ 16327 Protocol Buffers config.status 2.3.0 16328 configured by $0, generated by GNU Autoconf 2.68, 16329 with options \\"\$ac_cs_config\\" 16330 16331 Copyright (C) 2010 Free Software Foundation, Inc. 16332 This config.status script is free software; the Free Software Foundation 16333 gives unlimited permission to copy, distribute and modify it." 16334 16335 ac_pwd='$ac_pwd' 16336 srcdir='$srcdir' 16337 INSTALL='$INSTALL' 16338 MKDIR_P='$MKDIR_P' 16339 AWK='$AWK' 16340 test -n "\$AWK" || AWK=awk 16341 _ACEOF 16342 16343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16344 # The default lists apply if the user does not specify any file. 16345 ac_need_defaults=: 16346 while test $# != 0 16347 do 16348 case $1 in 16349 --*=?*) 16350 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16352 ac_shift=: 16353 ;; 16354 --*=) 16355 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16356 ac_optarg= 16357 ac_shift=: 16358 ;; 16359 *) 16360 ac_option=$1 16361 ac_optarg=$2 16362 ac_shift=shift 16363 ;; 16364 esac 16365 16366 case $ac_option in 16367 # Handling of the options. 16368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16369 ac_cs_recheck=: ;; 16370 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16371 $as_echo "$ac_cs_version"; exit ;; 16372 --config | --confi | --conf | --con | --co | --c ) 16373 $as_echo "$ac_cs_config"; exit ;; 16374 --debug | --debu | --deb | --de | --d | -d ) 16375 debug=: ;; 16376 --file | --fil | --fi | --f ) 16377 $ac_shift 16378 case $ac_optarg in 16379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16380 '') as_fn_error $? "missing file argument" ;; 16381 esac 16382 as_fn_append CONFIG_FILES " '$ac_optarg'" 16383 ac_need_defaults=false;; 16384 --header | --heade | --head | --hea ) 16385 $ac_shift 16386 case $ac_optarg in 16387 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16388 esac 16389 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16390 ac_need_defaults=false;; 16391 --he | --h) 16392 # Conflict between --help and --header 16393 as_fn_error $? "ambiguous option: \`$1' 16394 Try \`$0 --help' for more information.";; 16395 --help | --hel | -h ) 16396 $as_echo "$ac_cs_usage"; exit ;; 16397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16398 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16399 ac_cs_silent=: ;; 16400 16401 # This is an error. 16402 -*) as_fn_error $? "unrecognized option: \`$1' 16403 Try \`$0 --help' for more information." ;; 16404 16405 *) as_fn_append ac_config_targets " $1" 16406 ac_need_defaults=false ;; 16407 16408 esac 16409 shift 16410 done 16411 16412 ac_configure_extra_args= 16413 16414 if $ac_cs_silent; then 16415 exec 6>/dev/null 16416 ac_configure_extra_args="$ac_configure_extra_args --silent" 16417 fi 16418 16419 _ACEOF 16420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16421 if \$ac_cs_recheck; then 16422 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16423 shift 16424 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16425 CONFIG_SHELL='$SHELL' 16426 export CONFIG_SHELL 16427 exec "\$@" 16428 fi 16429 16430 _ACEOF 16431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16432 exec 5>>config.log 16433 { 16434 echo 16435 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16436 ## Running $as_me. ## 16437 _ASBOX 16438 $as_echo "$ac_log" 16439 } >&5 16440 16441 _ACEOF 16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16443 # 16444 # INIT-COMMANDS 16445 # 16446 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16447 16448 16449 # The HP-UX ksh and POSIX shell print the target directory to stdout 16450 # if CDPATH is set. 16451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16452 16453 sed_quote_subst='$sed_quote_subst' 16454 double_quote_subst='$double_quote_subst' 16455 delay_variable_subst='$delay_variable_subst' 16456 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16457 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16458 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16459 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16460 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16461 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16462 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16463 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16464 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16465 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16466 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16467 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16468 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16469 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16470 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16471 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16472 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16473 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16474 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16475 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16476 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16477 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16478 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16479 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16480 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16481 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16482 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16483 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16484 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16485 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16486 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16487 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16488 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16489 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16490 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16491 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16492 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16493 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16494 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16495 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16496 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16497 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16498 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16499 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"`' 16500 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"`' 16501 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16502 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16503 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16504 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16505 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16506 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16507 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16508 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16509 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16510 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16511 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16512 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16513 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16514 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16515 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16516 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16517 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16518 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16519 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16520 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16521 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16522 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16523 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16524 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16525 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16526 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16527 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16528 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16529 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16530 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16531 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16532 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16533 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16534 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16535 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16536 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16537 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16538 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16539 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16540 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16541 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16542 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16543 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16544 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16545 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16546 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16547 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16548 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16549 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16550 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16551 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16552 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16553 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16554 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16555 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16556 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16557 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16558 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16559 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16560 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16561 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16562 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16563 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16564 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16565 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16566 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16567 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16568 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16569 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16570 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16571 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16572 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16573 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 16574 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16575 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 16576 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 16577 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 16578 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 16579 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16580 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16581 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16582 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16583 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16584 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16585 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16586 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16587 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16588 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16589 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16590 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16591 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16592 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16593 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16594 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16595 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16596 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16597 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16598 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16599 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16600 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16601 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16602 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16603 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16604 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16605 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16606 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16607 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16608 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16609 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16610 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16611 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16612 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16613 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16614 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16615 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16616 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16617 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16618 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16619 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16620 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16621 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16622 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16623 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16624 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16625 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 16626 16627 LTCC='$LTCC' 16628 LTCFLAGS='$LTCFLAGS' 16629 compiler='$compiler_DEFAULT' 16630 16631 # Quote evaled strings. 16632 for var in SED \ 16633 GREP \ 16634 EGREP \ 16635 FGREP \ 16636 LD \ 16637 NM \ 16638 LN_S \ 16639 lt_SP2NL \ 16640 lt_NL2SP \ 16641 reload_flag \ 16642 deplibs_check_method \ 16643 file_magic_cmd \ 16644 AR \ 16645 AR_FLAGS \ 16646 STRIP \ 16647 RANLIB \ 16648 CC \ 16649 CFLAGS \ 16650 compiler \ 16651 lt_cv_sys_global_symbol_pipe \ 16652 lt_cv_sys_global_symbol_to_cdecl \ 16653 lt_cv_sys_global_symbol_to_c_name_address \ 16654 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16655 SHELL \ 16656 ECHO \ 16657 lt_prog_compiler_no_builtin_flag \ 16658 lt_prog_compiler_wl \ 16659 lt_prog_compiler_pic \ 16660 lt_prog_compiler_static \ 16661 lt_cv_prog_compiler_c_o \ 16662 need_locks \ 16663 DSYMUTIL \ 16664 NMEDIT \ 16665 LIPO \ 16666 OTOOL \ 16667 OTOOL64 \ 16668 shrext_cmds \ 16669 export_dynamic_flag_spec \ 16670 whole_archive_flag_spec \ 16671 compiler_needs_object \ 16672 with_gnu_ld \ 16673 allow_undefined_flag \ 16674 no_undefined_flag \ 16675 hardcode_libdir_flag_spec \ 16676 hardcode_libdir_flag_spec_ld \ 16677 hardcode_libdir_separator \ 16678 fix_srcfile_path \ 16679 exclude_expsyms \ 16680 include_expsyms \ 16681 file_list_spec \ 16682 variables_saved_for_relink \ 16683 libname_spec \ 16684 library_names_spec \ 16685 soname_spec \ 16686 finish_eval \ 16687 old_striplib \ 16688 striplib \ 16689 compiler_lib_search_dirs \ 16690 predep_objects \ 16691 postdep_objects \ 16692 predeps \ 16693 postdeps \ 16694 compiler_lib_search_path \ 16695 LD_CXX \ 16696 compiler_CXX \ 16697 lt_prog_compiler_no_builtin_flag_CXX \ 16698 lt_prog_compiler_wl_CXX \ 16699 lt_prog_compiler_pic_CXX \ 16700 lt_prog_compiler_static_CXX \ 16701 lt_cv_prog_compiler_c_o_CXX \ 16702 export_dynamic_flag_spec_CXX \ 16703 whole_archive_flag_spec_CXX \ 16704 compiler_needs_object_CXX \ 16705 with_gnu_ld_CXX \ 16706 allow_undefined_flag_CXX \ 16707 no_undefined_flag_CXX \ 16708 hardcode_libdir_flag_spec_CXX \ 16709 hardcode_libdir_flag_spec_ld_CXX \ 16710 hardcode_libdir_separator_CXX \ 16711 fix_srcfile_path_CXX \ 16712 exclude_expsyms_CXX \ 16713 include_expsyms_CXX \ 16714 file_list_spec_CXX \ 16715 compiler_lib_search_dirs_CXX \ 16716 predep_objects_CXX \ 16717 postdep_objects_CXX \ 16718 predeps_CXX \ 16719 postdeps_CXX \ 16720 compiler_lib_search_path_CXX; do 16721 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16722 *[\\\\\\\`\\"\\\$]*) 16723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16724 ;; 16725 *) 16726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16727 ;; 16728 esac 16729 done 16730 16731 # Double-quote double-evaled strings. 16732 for var in reload_cmds \ 16733 old_postinstall_cmds \ 16734 old_postuninstall_cmds \ 16735 old_archive_cmds \ 16736 extract_expsyms_cmds \ 16737 old_archive_from_new_cmds \ 16738 old_archive_from_expsyms_cmds \ 16739 archive_cmds \ 16740 archive_expsym_cmds \ 16741 module_cmds \ 16742 module_expsym_cmds \ 16743 export_symbols_cmds \ 16744 prelink_cmds \ 16745 postinstall_cmds \ 16746 postuninstall_cmds \ 16747 finish_cmds \ 16748 sys_lib_search_path_spec \ 16749 sys_lib_dlsearch_path_spec \ 16750 old_archive_cmds_CXX \ 16751 old_archive_from_new_cmds_CXX \ 16752 old_archive_from_expsyms_cmds_CXX \ 16753 archive_cmds_CXX \ 16754 archive_expsym_cmds_CXX \ 16755 module_cmds_CXX \ 16756 module_expsym_cmds_CXX \ 16757 export_symbols_cmds_CXX \ 16758 prelink_cmds_CXX; do 16759 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16760 *[\\\\\\\`\\"\\\$]*) 16761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16762 ;; 16763 *) 16764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16765 ;; 16766 esac 16767 done 16768 16769 # Fix-up fallback echo if it was mangled by the above quoting rules. 16770 case \$lt_ECHO in 16771 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16772 ;; 16773 esac 16774 16775 ac_aux_dir='$ac_aux_dir' 16776 xsi_shell='$xsi_shell' 16777 lt_shell_append='$lt_shell_append' 16778 16779 # See if we are running on zsh, and set the options which allow our 16780 # commands through without removal of \ escapes INIT. 16781 if test -n "\${ZSH_VERSION+set}" ; then 16782 setopt NO_GLOB_SUBST 16783 fi 16784 16785 16786 PACKAGE='$PACKAGE' 16787 VERSION='$VERSION' 16788 TIMESTAMP='$TIMESTAMP' 16789 RM='$RM' 16790 ofile='$ofile' 16791 16792 16793 16794 16795 16796 16797 _ACEOF 16798 16799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16800 16801 # Handling of arguments. 16802 for ac_config_target in $ac_config_targets 16803 do 16804 case $ac_config_target in 16805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16806 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16807 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16808 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16809 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16810 "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;; 16811 "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;; 16812 16813 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16814 esac 16815 done 16816 16817 16818 # If the user did not use the arguments to specify the items to instantiate, 16819 # then the envvar interface is used. Set only those that are not. 16820 # We use the long form for the default assignment because of an extremely 16821 # bizarre bug on SunOS 4.1.3. 16822 if $ac_need_defaults; then 16823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16826 fi 16827 16828 # Have a temporary directory for convenience. Make it in the build tree 16829 # simply because there is no reason against having it here, and in addition, 16830 # creating and moving files from /tmp can sometimes cause problems. 16831 # Hook for its removal unless debugging. 16832 # Note that there is a small window in which the directory will not be cleaned: 16833 # after its creation but before its name has been assigned to `$tmp'. 16834 $debug || 16835 { 16836 tmp= ac_tmp= 16837 trap 'exit_status=$? 16838 : "${ac_tmp:=$tmp}" 16839 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16840 ' 0 16841 trap 'as_fn_exit 1' 1 2 13 15 16842 } 16843 # Create a (secure) tmp directory for tmp files. 16844 16845 { 16846 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16847 test -d "$tmp" 16848 } || 16849 { 16850 tmp=./conf$$-$RANDOM 16851 (umask 077 && mkdir "$tmp") 16852 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16853 ac_tmp=$tmp 16854 16855 # Set up the scripts for CONFIG_FILES section. 16856 # No need to generate them if there are no CONFIG_FILES. 16857 # This happens for instance with `./config.status config.h'. 16858 if test -n "$CONFIG_FILES"; then 16859 16860 16861 ac_cr=`echo X | tr X '\015'` 16862 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16863 # But we know of no other shell where ac_cr would be empty at this 16864 # point, so we can use a bashism as a fallback. 16865 if test "x$ac_cr" = x; then 16866 eval ac_cr=\$\'\\r\' 16867 fi 16868 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16869 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16870 ac_cs_awk_cr='\\r' 16871 else 16872 ac_cs_awk_cr=$ac_cr 16873 fi 16874 16875 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16876 _ACEOF 16877 16878 16879 { 16880 echo "cat >conf$$subs.awk <<_ACEOF" && 16881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16882 echo "_ACEOF" 16883 } >conf$$subs.sh || 16884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16886 ac_delim='%!_!# ' 16887 for ac_last_try in false false false false false :; do 16888 . ./conf$$subs.sh || 16889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16890 16891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16892 if test $ac_delim_n = $ac_delim_num; then 16893 break 16894 elif $ac_last_try; then 16895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16896 else 16897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16898 fi 16899 done 16900 rm -f conf$$subs.sh 16901 16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16903 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16904 _ACEOF 16905 sed -n ' 16906 h 16907 s/^/S["/; s/!.*/"]=/ 16908 p 16909 g 16910 s/^[^!]*!// 16911 :repl 16912 t repl 16913 s/'"$ac_delim"'$// 16914 t delim 16915 :nl 16916 h 16917 s/\(.\{148\}\)..*/\1/ 16918 t more1 16919 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16920 p 16921 n 16922 b repl 16923 :more1 16924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16925 p 16926 g 16927 s/.\{148\}// 16928 t nl 16929 :delim 16930 h 16931 s/\(.\{148\}\)..*/\1/ 16932 t more2 16933 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16934 p 16935 b 16936 :more2 16937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16938 p 16939 g 16940 s/.\{148\}// 16941 t delim 16942 ' <conf$$subs.awk | sed ' 16943 /^[^""]/{ 16944 N 16945 s/\n// 16946 } 16947 ' >>$CONFIG_STATUS || ac_write_fail=1 16948 rm -f conf$$subs.awk 16949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16950 _ACAWK 16951 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16952 for (key in S) S_is_set[key] = 1 16953 FS = "" 16954 16955 } 16956 { 16957 line = $ 0 16958 nfields = split(line, field, "@") 16959 substed = 0 16960 len = length(field[1]) 16961 for (i = 2; i < nfields; i++) { 16962 key = field[i] 16963 keylen = length(key) 16964 if (S_is_set[key]) { 16965 value = S[key] 16966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16967 len += length(value) + length(field[++i]) 16968 substed = 1 16969 } else 16970 len += 1 + keylen 16971 } 16972 16973 print line 16974 } 16975 16976 _ACAWK 16977 _ACEOF 16978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16979 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16980 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16981 else 16982 cat 16983 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16984 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16985 _ACEOF 16986 16987 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16988 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16989 # trailing colons and then remove the whole line if VPATH becomes empty 16990 # (actually we leave an empty line to preserve line numbers). 16991 if test "x$srcdir" = x.; then 16992 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16993 h 16994 s/// 16995 s/^/:/ 16996 s/[ ]*$/:/ 16997 s/:\$(srcdir):/:/g 16998 s/:\${srcdir}:/:/g 16999 s/:@srcdir@:/:/g 17000 s/^:*// 17001 s/:*$// 17002 x 17003 s/\(=[ ]*\).*/\1/ 17004 G 17005 s/\n// 17006 s/^[^=]*=[ ]*$// 17007 }' 17008 fi 17009 17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17011 fi # test -n "$CONFIG_FILES" 17012 17013 # Set up the scripts for CONFIG_HEADERS section. 17014 # No need to generate them if there are no CONFIG_HEADERS. 17015 # This happens for instance with `./config.status Makefile'. 17016 if test -n "$CONFIG_HEADERS"; then 17017 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17018 BEGIN { 17019 _ACEOF 17020 17021 # Transform confdefs.h into an awk script `defines.awk', embedded as 17022 # here-document in config.status, that substitutes the proper values into 17023 # config.h.in to produce config.h. 17024 17025 # Create a delimiter string that does not exist in confdefs.h, to ease 17026 # handling of long lines. 17027 ac_delim='%!_!# ' 17028 for ac_last_try in false false :; do 17029 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17030 if test -z "$ac_tt"; then 17031 break 17032 elif $ac_last_try; then 17033 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17034 else 17035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17036 fi 17037 done 17038 17039 # For the awk script, D is an array of macro values keyed by name, 17040 # likewise P contains macro parameters if any. Preserve backslash 17041 # newline sequences. 17042 17043 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17044 sed -n ' 17045 s/.\{148\}/&'"$ac_delim"'/g 17046 t rset 17047 :rset 17048 s/^[ ]*#[ ]*define[ ][ ]*/ / 17049 t def 17050 d 17051 :def 17052 s/\\$// 17053 t bsnl 17054 s/["\\]/\\&/g 17055 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17056 D["\1"]=" \3"/p 17057 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17058 d 17059 :bsnl 17060 s/["\\]/\\&/g 17061 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17062 D["\1"]=" \3\\\\\\n"\\/p 17063 t cont 17064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17065 t cont 17066 d 17067 :cont 17068 n 17069 s/.\{148\}/&'"$ac_delim"'/g 17070 t clear 17071 :clear 17072 s/\\$// 17073 t bsnlc 17074 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17075 d 17076 :bsnlc 17077 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17078 b cont 17079 ' <confdefs.h | sed ' 17080 s/'"$ac_delim"'/"\\\ 17081 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17082 17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17084 for (key in D) D_is_set[key] = 1 17085 FS = "" 17086 } 17087 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17088 line = \$ 0 17089 split(line, arg, " ") 17090 if (arg[1] == "#") { 17091 defundef = arg[2] 17092 mac1 = arg[3] 17093 } else { 17094 defundef = substr(arg[1], 2) 17095 mac1 = arg[2] 17096 } 17097 split(mac1, mac2, "(") #) 17098 macro = mac2[1] 17099 prefix = substr(line, 1, index(line, defundef) - 1) 17100 if (D_is_set[macro]) { 17101 # Preserve the white space surrounding the "#". 17102 print prefix "define", macro P[macro] D[macro] 17103 next 17104 } else { 17105 # Replace #undef with comments. This is necessary, for example, 17106 # in the case of _POSIX_SOURCE, which is predefined and required 17107 # on some systems where configure will not decide to define it. 17108 if (defundef == "undef") { 17109 print "/*", prefix defundef, macro, "*/" 17110 next 17111 } 17112 } 17113 } 17114 { print } 17115 _ACAWK 17116 _ACEOF 17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17118 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17119 fi # test -n "$CONFIG_HEADERS" 17120 17121 17122 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17123 shift 17124 for ac_tag 17125 do 17126 case $ac_tag in 17127 :[FHLC]) ac_mode=$ac_tag; continue;; 17128 esac 17129 case $ac_mode$ac_tag in 17130 :[FHL]*:*);; 17131 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17132 :[FH]-) ac_tag=-:-;; 17133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17134 esac 17135 ac_save_IFS=$IFS 17136 IFS=: 17137 set x $ac_tag 17138 IFS=$ac_save_IFS 17139 shift 17140 ac_file=$1 17141 shift 17142 17143 case $ac_mode in 17144 :L) ac_source=$1;; 17145 :[FH]) 17146 ac_file_inputs= 17147 for ac_f 17148 do 17149 case $ac_f in 17150 -) ac_f="$ac_tmp/stdin";; 17151 *) # Look for the file first in the build tree, then in the source tree 17152 # (if the path is not absolute). The absolute path cannot be DOS-style, 17153 # because $ac_f cannot contain `:'. 17154 test -f "$ac_f" || 17155 case $ac_f in 17156 [\\/$]*) false;; 17157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17158 esac || 17159 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17160 esac 17161 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17162 as_fn_append ac_file_inputs " '$ac_f'" 17163 done 17164 17165 # Let's still pretend it is `configure' which instantiates (i.e., don't 17166 # use $as_me), people would be surprised to read: 17167 # /* config.h. Generated by config.status. */ 17168 configure_input='Generated from '` 17169 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17170 `' by configure.' 17171 if test x"$ac_file" != x-; then 17172 configure_input="$ac_file. $configure_input" 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17174 $as_echo "$as_me: creating $ac_file" >&6;} 17175 fi 17176 # Neutralize special characters interpreted by sed in replacement strings. 17177 case $configure_input in #( 17178 *\&* | *\|* | *\\* ) 17179 ac_sed_conf_input=`$as_echo "$configure_input" | 17180 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17181 *) ac_sed_conf_input=$configure_input;; 17182 esac 17183 17184 case $ac_tag in 17185 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17187 esac 17188 ;; 17189 esac 17190 17191 ac_dir=`$as_dirname -- "$ac_file" || 17192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17193 X"$ac_file" : 'X\(//\)[^/]' \| \ 17194 X"$ac_file" : 'X\(//\)$' \| \ 17195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17196 $as_echo X"$ac_file" | 17197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17198 s//\1/ 17199 q 17200 } 17201 /^X\(\/\/\)[^/].*/{ 17202 s//\1/ 17203 q 17204 } 17205 /^X\(\/\/\)$/{ 17206 s//\1/ 17207 q 17208 } 17209 /^X\(\/\).*/{ 17210 s//\1/ 17211 q 17212 } 17213 s/.*/./; q'` 17214 as_dir="$ac_dir"; as_fn_mkdir_p 17215 ac_builddir=. 17216 17217 case "$ac_dir" in 17218 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17219 *) 17220 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17221 # A ".." for each directory in $ac_dir_suffix. 17222 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17223 case $ac_top_builddir_sub in 17224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17226 esac ;; 17227 esac 17228 ac_abs_top_builddir=$ac_pwd 17229 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17230 # for backward compatibility: 17231 ac_top_builddir=$ac_top_build_prefix 17232 17233 case $srcdir in 17234 .) # We are building in place. 17235 ac_srcdir=. 17236 ac_top_srcdir=$ac_top_builddir_sub 17237 ac_abs_top_srcdir=$ac_pwd ;; 17238 [\\/]* | ?:[\\/]* ) # Absolute name. 17239 ac_srcdir=$srcdir$ac_dir_suffix; 17240 ac_top_srcdir=$srcdir 17241 ac_abs_top_srcdir=$srcdir ;; 17242 *) # Relative name. 17243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17244 ac_top_srcdir=$ac_top_build_prefix$srcdir 17245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17246 esac 17247 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17248 17249 17250 case $ac_mode in 17251 :F) 17252 # 17253 # CONFIG_FILE 17254 # 17255 17256 case $INSTALL in 17257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17258 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17259 esac 17260 ac_MKDIR_P=$MKDIR_P 17261 case $MKDIR_P in 17262 [\\/$]* | ?:[\\/]* ) ;; 17263 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17264 esac 17265 _ACEOF 17266 17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17268 # If the template does not know about datarootdir, expand it. 17269 # FIXME: This hack should be removed a few years after 2.60. 17270 ac_datarootdir_hack=; ac_datarootdir_seen= 17271 ac_sed_dataroot=' 17272 /datarootdir/ { 17273 p 17274 q 17275 } 17276 /@datadir@/p 17277 /@docdir@/p 17278 /@infodir@/p 17279 /@localedir@/p 17280 /@mandir@/p' 17281 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17282 *datarootdir*) ac_datarootdir_seen=yes;; 17283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17285 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17286 _ACEOF 17287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17288 ac_datarootdir_hack=' 17289 s&@datadir@&$datadir&g 17290 s&@docdir@&$docdir&g 17291 s&@infodir@&$infodir&g 17292 s&@localedir@&$localedir&g 17293 s&@mandir@&$mandir&g 17294 s&\\\${datarootdir}&$datarootdir&g' ;; 17295 esac 17296 _ACEOF 17297 17298 # Neutralize VPATH when `$srcdir' = `.'. 17299 # Shell code in configure.ac might set extrasub. 17300 # FIXME: do we really want to maintain this feature? 17301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17302 ac_sed_extra="$ac_vpsub 17303 $extrasub 17304 _ACEOF 17305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17306 :t 17307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17308 s|@configure_input@|$ac_sed_conf_input|;t t 17309 s&@top_builddir@&$ac_top_builddir_sub&;t t 17310 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17311 s&@srcdir@&$ac_srcdir&;t t 17312 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17313 s&@top_srcdir@&$ac_top_srcdir&;t t 17314 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17315 s&@builddir@&$ac_builddir&;t t 17316 s&@abs_builddir@&$ac_abs_builddir&;t t 17317 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17318 s&@INSTALL@&$ac_INSTALL&;t t 17319 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17320 $ac_datarootdir_hack 17321 " 17322 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17323 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17324 17325 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17326 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17327 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17328 "$ac_tmp/out"`; test -z "$ac_out"; } && 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17330 which seems to be undefined. Please make sure it is defined" >&5 17331 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17332 which seems to be undefined. Please make sure it is defined" >&2;} 17333 17334 rm -f "$ac_tmp/stdin" 17335 case $ac_file in 17336 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17337 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17338 esac \ 17339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17340 ;; 17341 :H) 17342 # 17343 # CONFIG_HEADER 17344 # 17345 if test x"$ac_file" != x-; then 17346 { 17347 $as_echo "/* $configure_input */" \ 17348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17349 } >"$ac_tmp/config.h" \ 17350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17353 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17354 else 17355 rm -f "$ac_file" 17356 mv "$ac_tmp/config.h" "$ac_file" \ 17357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17358 fi 17359 else 17360 $as_echo "/* $configure_input */" \ 17361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17362 || as_fn_error $? "could not create -" "$LINENO" 5 17363 fi 17364 # Compute "$ac_file"'s index in $config_headers. 17365 _am_arg="$ac_file" 17366 _am_stamp_count=1 17367 for _am_header in $config_headers :; do 17368 case $_am_header in 17369 $_am_arg | $_am_arg:* ) 17370 break ;; 17371 * ) 17372 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17373 esac 17374 done 17375 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17376 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17377 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17378 X"$_am_arg" : 'X\(//\)$' \| \ 17379 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17380 $as_echo X"$_am_arg" | 17381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17382 s//\1/ 17383 q 17384 } 17385 /^X\(\/\/\)[^/].*/{ 17386 s//\1/ 17387 q 17388 } 17389 /^X\(\/\/\)$/{ 17390 s//\1/ 17391 q 17392 } 17393 /^X\(\/\).*/{ 17394 s//\1/ 17395 q 17396 } 17397 s/.*/./; q'`/stamp-h$_am_stamp_count 17398 ;; 17399 17400 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17401 $as_echo "$as_me: executing $ac_file commands" >&6;} 17402 ;; 17403 esac 17404 17405 17406 case $ac_file$ac_mode in 17407 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17408 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17409 # are listed without --file. Let's play safe and only enable the eval 17410 # if we detect the quoting. 17411 case $CONFIG_FILES in 17412 *\'*) eval set x "$CONFIG_FILES" ;; 17413 *) set x $CONFIG_FILES ;; 17414 esac 17415 shift 17416 for mf 17417 do 17418 # Strip MF so we end up with the name of the file. 17419 mf=`echo "$mf" | sed -e 's/:.*$//'` 17420 # Check whether this is an Automake generated Makefile or not. 17421 # We used to match only the files named `Makefile.in', but 17422 # some people rename them; so instead we look at the file content. 17423 # Grep'ing the first line is not enough: some people post-process 17424 # each Makefile.in and add a new line on top of each file to say so. 17425 # Grep'ing the whole file is not good either: AIX grep has a line 17426 # limit of 2048, but all sed's we know have understand at least 4000. 17427 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17428 dirpart=`$as_dirname -- "$mf" || 17429 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17430 X"$mf" : 'X\(//\)[^/]' \| \ 17431 X"$mf" : 'X\(//\)$' \| \ 17432 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17433 $as_echo X"$mf" | 17434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17435 s//\1/ 17436 q 17437 } 17438 /^X\(\/\/\)[^/].*/{ 17439 s//\1/ 17440 q 17441 } 17442 /^X\(\/\/\)$/{ 17443 s//\1/ 17444 q 17445 } 17446 /^X\(\/\).*/{ 17447 s//\1/ 17448 q 17449 } 17450 s/.*/./; q'` 17451 else 17452 continue 17453 fi 17454 # Extract the definition of DEPDIR, am__include, and am__quote 17455 # from the Makefile without running `make'. 17456 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17457 test -z "$DEPDIR" && continue 17458 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17459 test -z "am__include" && continue 17460 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17461 # When using ansi2knr, U may be empty or an underscore; expand it 17462 U=`sed -n 's/^U = //p' < "$mf"` 17463 # Find all dependency output files, they are included files with 17464 # $(DEPDIR) in their names. We invoke sed twice because it is the 17465 # simplest approach to changing $(DEPDIR) to its actual value in the 17466 # expansion. 17467 for file in `sed -n " 17468 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17469 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17470 # Make sure the directory exists. 17471 test -f "$dirpart/$file" && continue 17472 fdir=`$as_dirname -- "$file" || 17473 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17474 X"$file" : 'X\(//\)[^/]' \| \ 17475 X"$file" : 'X\(//\)$' \| \ 17476 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17477 $as_echo X"$file" | 17478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17479 s//\1/ 17480 q 17481 } 17482 /^X\(\/\/\)[^/].*/{ 17483 s//\1/ 17484 q 17485 } 17486 /^X\(\/\/\)$/{ 17487 s//\1/ 17488 q 17489 } 17490 /^X\(\/\).*/{ 17491 s//\1/ 17492 q 17493 } 17494 s/.*/./; q'` 17495 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17496 # echo "creating $dirpart/$file" 17497 echo '# dummy' > "$dirpart/$file" 17498 done 17499 done 17500 } 17501 ;; 17502 "libtool":C) 17503 17504 # See if we are running on zsh, and set the options which allow our 17505 # commands through without removal of \ escapes. 17506 if test -n "${ZSH_VERSION+set}" ; then 17507 setopt NO_GLOB_SUBST 17508 fi 17509 17510 cfgfile="${ofile}T" 17511 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17512 $RM "$cfgfile" 17513 17514 cat <<_LT_EOF >> "$cfgfile" 17515 #! $SHELL 17516 17517 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17518 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17520 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17521 # 17522 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17523 # 2006, 2007, 2008 Free Software Foundation, Inc. 17524 # Written by Gordon Matzigkeit, 1996 17525 # 17526 # This file is part of GNU Libtool. 17527 # 17528 # GNU Libtool is free software; you can redistribute it and/or 17529 # modify it under the terms of the GNU General Public License as 17530 # published by the Free Software Foundation; either version 2 of 17531 # the License, or (at your option) any later version. 17532 # 17533 # As a special exception to the GNU General Public License, 17534 # if you distribute this file as part of a program or library that 17535 # is built using GNU Libtool, you may include this file under the 17536 # same distribution terms that you use for the rest of that program. 17537 # 17538 # GNU Libtool is distributed in the hope that it will be useful, 17539 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17540 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17541 # GNU General Public License for more details. 17542 # 17543 # You should have received a copy of the GNU General Public License 17544 # along with GNU Libtool; see the file COPYING. If not, a copy 17545 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17546 # obtained by writing to the Free Software Foundation, Inc., 17547 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17548 17549 17550 # The names of the tagged configurations supported by this script. 17551 available_tags="CXX " 17552 17553 # ### BEGIN LIBTOOL CONFIG 17554 17555 # Which release of libtool.m4 was used? 17556 macro_version=$macro_version 17557 macro_revision=$macro_revision 17558 17559 # Whether or not to build shared libraries. 17560 build_libtool_libs=$enable_shared 17561 17562 # Whether or not to build static libraries. 17563 build_old_libs=$enable_static 17564 17565 # What type of objects to build. 17566 pic_mode=$pic_mode 17567 17568 # Whether or not to optimize for fast installation. 17569 fast_install=$enable_fast_install 17570 17571 # The host system. 17572 host_alias=$host_alias 17573 host=$host 17574 host_os=$host_os 17575 17576 # The build system. 17577 build_alias=$build_alias 17578 build=$build 17579 build_os=$build_os 17580 17581 # A sed program that does not truncate output. 17582 SED=$lt_SED 17583 17584 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 17585 Xsed="\$SED -e 1s/^X//" 17586 17587 # A grep program that handles long lines. 17588 GREP=$lt_GREP 17589 17590 # An ERE matcher. 17591 EGREP=$lt_EGREP 17592 17593 # A literal string matcher. 17594 FGREP=$lt_FGREP 17595 17596 # A BSD- or MS-compatible name lister. 17597 NM=$lt_NM 17598 17599 # Whether we need soft or hard links. 17600 LN_S=$lt_LN_S 17601 17602 # What is the maximum length of a command? 17603 max_cmd_len=$max_cmd_len 17604 17605 # Object file suffix (normally "o"). 17606 objext=$ac_objext 17607 17608 # Executable file suffix (normally ""). 17609 exeext=$exeext 17610 17611 # whether the shell understands "unset". 17612 lt_unset=$lt_unset 17613 17614 # turn spaces into newlines. 17615 SP2NL=$lt_lt_SP2NL 17616 17617 # turn newlines into spaces. 17618 NL2SP=$lt_lt_NL2SP 17619 17620 # How to create reloadable object files. 17621 reload_flag=$lt_reload_flag 17622 reload_cmds=$lt_reload_cmds 17623 17624 # Method to check whether dependent libraries are shared objects. 17625 deplibs_check_method=$lt_deplibs_check_method 17626 17627 # Command to use when deplibs_check_method == "file_magic". 17628 file_magic_cmd=$lt_file_magic_cmd 17629 17630 # The archiver. 17631 AR=$lt_AR 17632 AR_FLAGS=$lt_AR_FLAGS 17633 17634 # A symbol stripping program. 17635 STRIP=$lt_STRIP 17636 17637 # Commands used to install an old-style archive. 17638 RANLIB=$lt_RANLIB 17639 old_postinstall_cmds=$lt_old_postinstall_cmds 17640 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17641 17642 # A C compiler. 17643 LTCC=$lt_CC 17644 17645 # LTCC compiler flags. 17646 LTCFLAGS=$lt_CFLAGS 17647 17648 # Take the output of nm and produce a listing of raw symbols and C names. 17649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17650 17651 # Transform the output of nm in a proper C declaration. 17652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17653 17654 # Transform the output of nm in a C name address pair. 17655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17656 17657 # Transform the output of nm in a C name address pair when lib prefix is needed. 17658 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17659 17660 # The name of the directory that contains temporary libtool files. 17661 objdir=$objdir 17662 17663 # Shell to use when invoking shell scripts. 17664 SHELL=$lt_SHELL 17665 17666 # An echo program that does not interpret backslashes. 17667 ECHO=$lt_ECHO 17668 17669 # Used to examine libraries when file_magic_cmd begins with "file". 17670 MAGIC_CMD=$MAGIC_CMD 17671 17672 # Must we lock files when doing compilation? 17673 need_locks=$lt_need_locks 17674 17675 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17676 DSYMUTIL=$lt_DSYMUTIL 17677 17678 # Tool to change global to local symbols on Mac OS X. 17679 NMEDIT=$lt_NMEDIT 17680 17681 # Tool to manipulate fat objects and archives on Mac OS X. 17682 LIPO=$lt_LIPO 17683 17684 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 17685 OTOOL=$lt_OTOOL 17686 17687 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17688 OTOOL64=$lt_OTOOL64 17689 17690 # Old archive suffix (normally "a"). 17691 libext=$libext 17692 17693 # Shared library suffix (normally ".so"). 17694 shrext_cmds=$lt_shrext_cmds 17695 17696 # The commands to extract the exported symbol list from a shared archive. 17697 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17698 17699 # Variables whose values should be saved in libtool wrapper scripts and 17700 # restored at link time. 17701 variables_saved_for_relink=$lt_variables_saved_for_relink 17702 17703 # Do we need the "lib" prefix for modules? 17704 need_lib_prefix=$need_lib_prefix 17705 17706 # Do we need a version for libraries? 17707 need_version=$need_version 17708 17709 # Library versioning type. 17710 version_type=$version_type 17711 17712 # Shared library runtime path variable. 17713 runpath_var=$runpath_var 17714 17715 # Shared library path variable. 17716 shlibpath_var=$shlibpath_var 17717 17718 # Is shlibpath searched before the hard-coded library search path? 17719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17720 17721 # Format of library name prefix. 17722 libname_spec=$lt_libname_spec 17723 17724 # List of archive names. First name is the real one, the rest are links. 17725 # The last name is the one that the linker finds with -lNAME 17726 library_names_spec=$lt_library_names_spec 17727 17728 # The coded name of the library, if different from the real name. 17729 soname_spec=$lt_soname_spec 17730 17731 # Command to use after installation of a shared archive. 17732 postinstall_cmds=$lt_postinstall_cmds 17733 17734 # Command to use after uninstallation of a shared archive. 17735 postuninstall_cmds=$lt_postuninstall_cmds 17736 17737 # Commands used to finish a libtool library installation in a directory. 17738 finish_cmds=$lt_finish_cmds 17739 17740 # As "finish_cmds", except a single script fragment to be evaled but 17741 # not shown. 17742 finish_eval=$lt_finish_eval 17743 17744 # Whether we should hardcode library paths into libraries. 17745 hardcode_into_libs=$hardcode_into_libs 17746 17747 # Compile-time system search path for libraries. 17748 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17749 17750 # Run-time system search path for libraries. 17751 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17752 17753 # Whether dlopen is supported. 17754 dlopen_support=$enable_dlopen 17755 17756 # Whether dlopen of programs is supported. 17757 dlopen_self=$enable_dlopen_self 17758 17759 # Whether dlopen of statically linked programs is supported. 17760 dlopen_self_static=$enable_dlopen_self_static 17761 17762 # Commands to strip libraries. 17763 old_striplib=$lt_old_striplib 17764 striplib=$lt_striplib 17765 17766 17767 # The linker used to build libraries. 17768 LD=$lt_LD 17769 17770 # Commands used to build an old-style archive. 17771 old_archive_cmds=$lt_old_archive_cmds 17772 17773 # A language specific compiler. 17774 CC=$lt_compiler 17775 17776 # Is the compiler the GNU compiler? 17777 with_gcc=$GCC 17778 17779 # Compiler flag to turn off builtin functions. 17780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17781 17782 # How to pass a linker flag through the compiler. 17783 wl=$lt_lt_prog_compiler_wl 17784 17785 # Additional compiler flags for building library objects. 17786 pic_flag=$lt_lt_prog_compiler_pic 17787 17788 # Compiler flag to prevent dynamic linking. 17789 link_static_flag=$lt_lt_prog_compiler_static 17790 17791 # Does compiler simultaneously support -c and -o options? 17792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17793 17794 # Whether or not to add -lc for building shared libraries. 17795 build_libtool_need_lc=$archive_cmds_need_lc 17796 17797 # Whether or not to disallow shared libs when runtime libs are static. 17798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17799 17800 # Compiler flag to allow reflexive dlopens. 17801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17802 17803 # Compiler flag to generate shared objects directly from archives. 17804 whole_archive_flag_spec=$lt_whole_archive_flag_spec 17805 17806 # Whether the compiler copes with passing no objects directly. 17807 compiler_needs_object=$lt_compiler_needs_object 17808 17809 # Create an old-style archive from a shared archive. 17810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17811 17812 # Create a temporary old-style archive to link instead of a shared archive. 17813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17814 17815 # Commands used to build a shared archive. 17816 archive_cmds=$lt_archive_cmds 17817 archive_expsym_cmds=$lt_archive_expsym_cmds 17818 17819 # Commands used to build a loadable module if different from building 17820 # a shared archive. 17821 module_cmds=$lt_module_cmds 17822 module_expsym_cmds=$lt_module_expsym_cmds 17823 17824 # Whether we are building with GNU ld or not. 17825 with_gnu_ld=$lt_with_gnu_ld 17826 17827 # Flag that allows shared libraries with undefined symbols to be built. 17828 allow_undefined_flag=$lt_allow_undefined_flag 17829 17830 # Flag that enforces no undefined symbols. 17831 no_undefined_flag=$lt_no_undefined_flag 17832 17833 # Flag to hardcode \$libdir into a binary during linking. 17834 # This must work even if \$libdir does not exist 17835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17836 17837 # If ld is used when linking, flag to hardcode \$libdir into a binary 17838 # during linking. This must work even if \$libdir does not exist. 17839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17840 17841 # Whether we need a single "-rpath" flag with a separated argument. 17842 hardcode_libdir_separator=$lt_hardcode_libdir_separator 17843 17844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17845 # DIR into the resulting binary. 17846 hardcode_direct=$hardcode_direct 17847 17848 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17849 # DIR into the resulting binary and the resulting library dependency is 17850 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17851 # library is relocated. 17852 hardcode_direct_absolute=$hardcode_direct_absolute 17853 17854 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17855 # into the resulting binary. 17856 hardcode_minus_L=$hardcode_minus_L 17857 17858 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17859 # into the resulting binary. 17860 hardcode_shlibpath_var=$hardcode_shlibpath_var 17861 17862 # Set to "yes" if building a shared library automatically hardcodes DIR 17863 # into the library and all subsequent libraries and executables linked 17864 # against it. 17865 hardcode_automatic=$hardcode_automatic 17866 17867 # Set to yes if linker adds runtime paths of dependent libraries 17868 # to runtime path list. 17869 inherit_rpath=$inherit_rpath 17870 17871 # Whether libtool must link a program against all its dependency libraries. 17872 link_all_deplibs=$link_all_deplibs 17873 17874 # Fix the shell variable \$srcfile for the compiler. 17875 fix_srcfile_path=$lt_fix_srcfile_path 17876 17877 # Set to "yes" if exported symbols are required. 17878 always_export_symbols=$always_export_symbols 17879 17880 # The commands to list exported symbols. 17881 export_symbols_cmds=$lt_export_symbols_cmds 17882 17883 # Symbols that should not be listed in the preloaded symbols. 17884 exclude_expsyms=$lt_exclude_expsyms 17885 17886 # Symbols that must always be exported. 17887 include_expsyms=$lt_include_expsyms 17888 17889 # Commands necessary for linking programs (against libraries) with templates. 17890 prelink_cmds=$lt_prelink_cmds 17891 17892 # Specify filename containing input files. 17893 file_list_spec=$lt_file_list_spec 17894 17895 # How to hardcode a shared library path into an executable. 17896 hardcode_action=$hardcode_action 17897 17898 # The directories searched by this compiler when creating a shared library. 17899 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17900 17901 # Dependencies to place before and after the objects being linked to 17902 # create a shared library. 17903 predep_objects=$lt_predep_objects 17904 postdep_objects=$lt_postdep_objects 17905 predeps=$lt_predeps 17906 postdeps=$lt_postdeps 17907 17908 # The library search path used internally by the compiler when linking 17909 # a shared library. 17910 compiler_lib_search_path=$lt_compiler_lib_search_path 17911 17912 # ### END LIBTOOL CONFIG 17913 17914 _LT_EOF 17915 17916 case $host_os in 17917 aix3*) 17918 cat <<\_LT_EOF >> "$cfgfile" 17919 # AIX sometimes has problems with the GCC collect2 program. For some 17920 # reason, if we set the COLLECT_NAMES environment variable, the problems 17921 # vanish in a puff of smoke. 17922 if test "X${COLLECT_NAMES+set}" != Xset; then 17923 COLLECT_NAMES= 17924 export COLLECT_NAMES 17925 fi 17926 _LT_EOF 17927 ;; 17928 esac 17929 17930 17931 ltmain="$ac_aux_dir/ltmain.sh" 17932 17933 17934 # We use sed instead of cat because bash on DJGPP gets confused if 17935 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17936 # text mode, it properly converts lines to CR/LF. This bash problem 17937 # is reportedly fixed, but why not run on old versions too? 17938 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17939 || (rm -f "$cfgfile"; exit 1) 17940 17941 case $xsi_shell in 17942 yes) 17943 cat << \_LT_EOF >> "$cfgfile" 17944 17945 # func_dirname file append nondir_replacement 17946 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 17947 # otherwise set result to NONDIR_REPLACEMENT. 17948 func_dirname () 17949 { 17950 case ${1} in 17951 */*) func_dirname_result="${1%/*}${2}" ;; 17952 * ) func_dirname_result="${3}" ;; 17953 esac 17954 } 17955 17956 # func_basename file 17957 func_basename () 17958 { 17959 func_basename_result="${1##*/}" 17960 } 17961 17962 # func_dirname_and_basename file append nondir_replacement 17963 # perform func_basename and func_dirname in a single function 17964 # call: 17965 # dirname: Compute the dirname of FILE. If nonempty, 17966 # add APPEND to the result, otherwise set result 17967 # to NONDIR_REPLACEMENT. 17968 # value returned in "$func_dirname_result" 17969 # basename: Compute filename of FILE. 17970 # value retuned in "$func_basename_result" 17971 # Implementation must be kept synchronized with func_dirname 17972 # and func_basename. For efficiency, we do not delegate to 17973 # those functions but instead duplicate the functionality here. 17974 func_dirname_and_basename () 17975 { 17976 case ${1} in 17977 */*) func_dirname_result="${1%/*}${2}" ;; 17978 * ) func_dirname_result="${3}" ;; 17979 esac 17980 func_basename_result="${1##*/}" 17981 } 17982 17983 # func_stripname prefix suffix name 17984 # strip PREFIX and SUFFIX off of NAME. 17985 # PREFIX and SUFFIX must not contain globbing or regex special 17986 # characters, hashes, percent signs, but SUFFIX may contain a leading 17987 # dot (in which case that matches only a dot). 17988 func_stripname () 17989 { 17990 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17991 # positional parameters, so assign one to ordinary parameter first. 17992 func_stripname_result=${3} 17993 func_stripname_result=${func_stripname_result#"${1}"} 17994 func_stripname_result=${func_stripname_result%"${2}"} 17995 } 17996 17997 # func_opt_split 17998 func_opt_split () 17999 { 18000 func_opt_split_opt=${1%%=*} 18001 func_opt_split_arg=${1#*=} 18002 } 18003 18004 # func_lo2o object 18005 func_lo2o () 18006 { 18007 case ${1} in 18008 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18009 *) func_lo2o_result=${1} ;; 18010 esac 18011 } 18012 18013 # func_xform libobj-or-source 18014 func_xform () 18015 { 18016 func_xform_result=${1%.*}.lo 18017 } 18018 18019 # func_arith arithmetic-term... 18020 func_arith () 18021 { 18022 func_arith_result=$(( $* )) 18023 } 18024 18025 # func_len string 18026 # STRING may not start with a hyphen. 18027 func_len () 18028 { 18029 func_len_result=${#1} 18030 } 18031 18032 _LT_EOF 18033 ;; 18034 *) # Bourne compatible functions. 18035 cat << \_LT_EOF >> "$cfgfile" 18036 18037 # func_dirname file append nondir_replacement 18038 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 18039 # otherwise set result to NONDIR_REPLACEMENT. 18040 func_dirname () 18041 { 18042 # Extract subdirectory from the argument. 18043 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 18044 if test "X$func_dirname_result" = "X${1}"; then 18045 func_dirname_result="${3}" 18046 else 18047 func_dirname_result="$func_dirname_result${2}" 18048 fi 18049 } 18050 18051 # func_basename file 18052 func_basename () 18053 { 18054 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 18055 } 18056 18057 18058 # func_stripname prefix suffix name 18059 # strip PREFIX and SUFFIX off of NAME. 18060 # PREFIX and SUFFIX must not contain globbing or regex special 18061 # characters, hashes, percent signs, but SUFFIX may contain a leading 18062 # dot (in which case that matches only a dot). 18063 # func_strip_suffix prefix name 18064 func_stripname () 18065 { 18066 case ${2} in 18067 .*) func_stripname_result=`$ECHO "X${3}" \ 18068 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 18069 *) func_stripname_result=`$ECHO "X${3}" \ 18070 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 18071 esac 18072 } 18073 18074 # sed scripts: 18075 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18076 my_sed_long_arg='1s/^-[^=]*=//' 18077 18078 # func_opt_split 18079 func_opt_split () 18080 { 18081 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 18082 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 18083 } 18084 18085 # func_lo2o object 18086 func_lo2o () 18087 { 18088 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 18089 } 18090 18091 # func_xform libobj-or-source 18092 func_xform () 18093 { 18094 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 18095 } 18096 18097 # func_arith arithmetic-term... 18098 func_arith () 18099 { 18100 func_arith_result=`expr "$@"` 18101 } 18102 18103 # func_len string 18104 # STRING may not start with a hyphen. 18105 func_len () 18106 { 18107 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18108 } 18109 18110 _LT_EOF 18111 esac 18112 18113 case $lt_shell_append in 18114 yes) 18115 cat << \_LT_EOF >> "$cfgfile" 18116 18117 # func_append var value 18118 # Append VALUE to the end of shell variable VAR. 18119 func_append () 18120 { 18121 eval "$1+=\$2" 18122 } 18123 _LT_EOF 18124 ;; 18125 *) 18126 cat << \_LT_EOF >> "$cfgfile" 18127 18128 # func_append var value 18129 # Append VALUE to the end of shell variable VAR. 18130 func_append () 18131 { 18132 eval "$1=\$$1\$2" 18133 } 18134 18135 _LT_EOF 18136 ;; 18137 esac 18138 18139 18140 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18141 || (rm -f "$cfgfile"; exit 1) 18142 18143 mv -f "$cfgfile" "$ofile" || 18144 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18145 chmod +x "$ofile" 18146 18147 18148 cat <<_LT_EOF >> "$ofile" 18149 18150 # ### BEGIN LIBTOOL TAG CONFIG: CXX 18151 18152 # The linker used to build libraries. 18153 LD=$lt_LD_CXX 18154 18155 # Commands used to build an old-style archive. 18156 old_archive_cmds=$lt_old_archive_cmds_CXX 18157 18158 # A language specific compiler. 18159 CC=$lt_compiler_CXX 18160 18161 # Is the compiler the GNU compiler? 18162 with_gcc=$GCC_CXX 18163 18164 # Compiler flag to turn off builtin functions. 18165 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18166 18167 # How to pass a linker flag through the compiler. 18168 wl=$lt_lt_prog_compiler_wl_CXX 18169 18170 # Additional compiler flags for building library objects. 18171 pic_flag=$lt_lt_prog_compiler_pic_CXX 18172 18173 # Compiler flag to prevent dynamic linking. 18174 link_static_flag=$lt_lt_prog_compiler_static_CXX 18175 18176 # Does compiler simultaneously support -c and -o options? 18177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18178 18179 # Whether or not to add -lc for building shared libraries. 18180 build_libtool_need_lc=$archive_cmds_need_lc_CXX 18181 18182 # Whether or not to disallow shared libs when runtime libs are static. 18183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18184 18185 # Compiler flag to allow reflexive dlopens. 18186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18187 18188 # Compiler flag to generate shared objects directly from archives. 18189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18190 18191 # Whether the compiler copes with passing no objects directly. 18192 compiler_needs_object=$lt_compiler_needs_object_CXX 18193 18194 # Create an old-style archive from a shared archive. 18195 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18196 18197 # Create a temporary old-style archive to link instead of a shared archive. 18198 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18199 18200 # Commands used to build a shared archive. 18201 archive_cmds=$lt_archive_cmds_CXX 18202 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18203 18204 # Commands used to build a loadable module if different from building 18205 # a shared archive. 18206 module_cmds=$lt_module_cmds_CXX 18207 module_expsym_cmds=$lt_module_expsym_cmds_CXX 18208 18209 # Whether we are building with GNU ld or not. 18210 with_gnu_ld=$lt_with_gnu_ld_CXX 18211 18212 # Flag that allows shared libraries with undefined symbols to be built. 18213 allow_undefined_flag=$lt_allow_undefined_flag_CXX 18214 18215 # Flag that enforces no undefined symbols. 18216 no_undefined_flag=$lt_no_undefined_flag_CXX 18217 18218 # Flag to hardcode \$libdir into a binary during linking. 18219 # This must work even if \$libdir does not exist 18220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18221 18222 # If ld is used when linking, flag to hardcode \$libdir into a binary 18223 # during linking. This must work even if \$libdir does not exist. 18224 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 18225 18226 # Whether we need a single "-rpath" flag with a separated argument. 18227 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18228 18229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18230 # DIR into the resulting binary. 18231 hardcode_direct=$hardcode_direct_CXX 18232 18233 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18234 # DIR into the resulting binary and the resulting library dependency is 18235 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18236 # library is relocated. 18237 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18238 18239 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18240 # into the resulting binary. 18241 hardcode_minus_L=$hardcode_minus_L_CXX 18242 18243 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18244 # into the resulting binary. 18245 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18246 18247 # Set to "yes" if building a shared library automatically hardcodes DIR 18248 # into the library and all subsequent libraries and executables linked 18249 # against it. 18250 hardcode_automatic=$hardcode_automatic_CXX 18251 18252 # Set to yes if linker adds runtime paths of dependent libraries 18253 # to runtime path list. 18254 inherit_rpath=$inherit_rpath_CXX 18255 18256 # Whether libtool must link a program against all its dependency libraries. 18257 link_all_deplibs=$link_all_deplibs_CXX 18258 18259 # Fix the shell variable \$srcfile for the compiler. 18260 fix_srcfile_path=$lt_fix_srcfile_path_CXX 18261 18262 # Set to "yes" if exported symbols are required. 18263 always_export_symbols=$always_export_symbols_CXX 18264 18265 # The commands to list exported symbols. 18266 export_symbols_cmds=$lt_export_symbols_cmds_CXX 18267 18268 # Symbols that should not be listed in the preloaded symbols. 18269 exclude_expsyms=$lt_exclude_expsyms_CXX 18270 18271 # Symbols that must always be exported. 18272 include_expsyms=$lt_include_expsyms_CXX 18273 18274 # Commands necessary for linking programs (against libraries) with templates. 18275 prelink_cmds=$lt_prelink_cmds_CXX 18276 18277 # Specify filename containing input files. 18278 file_list_spec=$lt_file_list_spec_CXX 18279 18280 # How to hardcode a shared library path into an executable. 18281 hardcode_action=$hardcode_action_CXX 18282 18283 # The directories searched by this compiler when creating a shared library. 18284 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18285 18286 # Dependencies to place before and after the objects being linked to 18287 # create a shared library. 18288 predep_objects=$lt_predep_objects_CXX 18289 postdep_objects=$lt_postdep_objects_CXX 18290 predeps=$lt_predeps_CXX 18291 postdeps=$lt_postdeps_CXX 18292 18293 # The library search path used internally by the compiler when linking 18294 # a shared library. 18295 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18296 18297 # ### END LIBTOOL TAG CONFIG: CXX 18298 _LT_EOF 18299 18300 ;; 18301 18302 esac 18303 done # for ac_tag 18304 18305 18306 as_fn_exit 0 18307 _ACEOF 18308 ac_clean_files=$ac_clean_files_save 18309 18310 test $ac_write_fail = 0 || 18311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18312 18313 18314 # configure is writing to config.log, and then calls config.status. 18315 # config.status does its own redirection, appending to config.log. 18316 # Unfortunately, on DOS this fails, as config.log is still kept open 18317 # by configure, so config.status won't be able to write to it; its 18318 # output is simply discarded. So we exec the FD to /dev/null, 18319 # effectively closing config.log, so it can be properly (re)opened and 18320 # appended to by config.status. When coming back to configure, we 18321 # need to make the FD available again. 18322 if test "$no_create" != yes; then 18323 ac_cs_success=: 18324 ac_config_status_args= 18325 test "$silent" = yes && 18326 ac_config_status_args="$ac_config_status_args --quiet" 18327 exec 5>/dev/null 18328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18329 exec 5>>config.log 18330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18331 # would make configure fail if this is the last instruction. 18332 $ac_cs_success || as_fn_exit 1 18333 fi 18334 18335 # 18336 # CONFIG_SUBDIRS section. 18337 # 18338 if test "$no_recursion" != yes; then 18339 18340 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 18341 # so they do not pile up. 18342 ac_sub_configure_args= 18343 ac_prev= 18344 eval "set x $ac_configure_args" 18345 shift 18346 for ac_arg 18347 do 18348 if test -n "$ac_prev"; then 18349 ac_prev= 18350 continue 18351 fi 18352 case $ac_arg in 18353 -cache-file | --cache-file | --cache-fil | --cache-fi \ 18354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 18355 ac_prev=cache_file ;; 18356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 18357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 18358 | --c=*) 18359 ;; 18360 --config-cache | -C) 18361 ;; 18362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 18363 ac_prev=srcdir ;; 18364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 18365 ;; 18366 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 18367 ac_prev=prefix ;; 18368 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 18369 ;; 18370 --disable-option-checking) 18371 ;; 18372 *) 18373 case $ac_arg in 18374 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18375 esac 18376 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 18377 esac 18378 done 18379 18380 # Always prepend --prefix to ensure using the same prefix 18381 # in subdir configurations. 18382 ac_arg="--prefix=$prefix" 18383 case $ac_arg in 18384 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 18385 esac 18386 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 18387 18388 # Pass --silent 18389 if test "$silent" = yes; then 18390 ac_sub_configure_args="--silent $ac_sub_configure_args" 18391 fi 18392 18393 # Always prepend --disable-option-checking to silence warnings, since 18394 # different subdirs can have different --enable and --with options. 18395 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 18396 18397 ac_popdir=`pwd` 18398 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 18399 18400 # Do not complain, so a configure script can configure whichever 18401 # parts of a large source tree are present. 18402 test -d "$srcdir/$ac_dir" || continue 18403 18404 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 18405 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 18406 $as_echo "$ac_msg" >&6 18407 as_dir="$ac_dir"; as_fn_mkdir_p 18408 ac_builddir=. 18409 18410 case "$ac_dir" in 18411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18412 *) 18413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18414 # A ".." for each directory in $ac_dir_suffix. 18415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18416 case $ac_top_builddir_sub in 18417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18419 esac ;; 18420 esac 18421 ac_abs_top_builddir=$ac_pwd 18422 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18423 # for backward compatibility: 18424 ac_top_builddir=$ac_top_build_prefix 18425 18426 case $srcdir in 18427 .) # We are building in place. 18428 ac_srcdir=. 18429 ac_top_srcdir=$ac_top_builddir_sub 18430 ac_abs_top_srcdir=$ac_pwd ;; 18431 [\\/]* | ?:[\\/]* ) # Absolute name. 18432 ac_srcdir=$srcdir$ac_dir_suffix; 18433 ac_top_srcdir=$srcdir 18434 ac_abs_top_srcdir=$srcdir ;; 18435 *) # Relative name. 18436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18437 ac_top_srcdir=$ac_top_build_prefix$srcdir 18438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18439 esac 18440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18441 18442 18443 cd "$ac_dir" 18444 18445 # Check for guested configure; otherwise get Cygnus style configure. 18446 if test -f "$ac_srcdir/configure.gnu"; then 18447 ac_sub_configure=$ac_srcdir/configure.gnu 18448 elif test -f "$ac_srcdir/configure"; then 18449 ac_sub_configure=$ac_srcdir/configure 18450 elif test -f "$ac_srcdir/configure.in"; then 18451 # This should be Cygnus configure. 18452 ac_sub_configure=$ac_aux_dir/configure 18453 else 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 18455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 18456 ac_sub_configure= 18457 fi 18458 18459 # The recursion is here. 18460 if test -n "$ac_sub_configure"; then 18461 # Make the cache file name correct relative to the subdirectory. 18462 case $cache_file in 18463 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 18464 *) # Relative name. 18465 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 18466 esac 18467 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 18469 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 18470 # The eval makes quoting arguments work. 18471 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 18472 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 18473 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 18474 fi 18475 18476 cd "$ac_popdir" 18477 done 18478 fi 18479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18482 fi 18483 18484