1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for Protocol Buffers 2.6.1. 4 # 5 # Report bugs to <protobuf (at] googlegroups.com>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 278 $0: protobuf (at] googlegroups.com about your system, including 279 $0: any error possibly output before this message. Then 280 $0: install a modern shell, or manually run the script 281 $0: under such a shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='Protocol Buffers' 592 PACKAGE_TARNAME='protobuf' 593 PACKAGE_VERSION='2.6.1' 594 PACKAGE_STRING='Protocol Buffers 2.6.1' 595 PACKAGE_BUGREPORT='protobuf (at] googlegroups.com' 596 PACKAGE_URL='' 597 598 ac_unique_file="src/google/protobuf/message.cc" 599 # Factoring default headers for most tests. 600 ac_includes_default="\ 601 #include <stdio.h> 602 #ifdef HAVE_SYS_TYPES_H 603 # include <sys/types.h> 604 #endif 605 #ifdef HAVE_SYS_STAT_H 606 # include <sys/stat.h> 607 #endif 608 #ifdef STDC_HEADERS 609 # include <stdlib.h> 610 # include <stddef.h> 611 #else 612 # ifdef HAVE_STDLIB_H 613 # include <stdlib.h> 614 # endif 615 #endif 616 #ifdef HAVE_STRING_H 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618 # include <memory.h> 619 # endif 620 # include <string.h> 621 #endif 622 #ifdef HAVE_STRINGS_H 623 # include <strings.h> 624 #endif 625 #ifdef HAVE_INTTYPES_H 626 # include <inttypes.h> 627 #endif 628 #ifdef HAVE_STDINT_H 629 # include <stdint.h> 630 #endif 631 #ifdef HAVE_UNISTD_H 632 # include <unistd.h> 633 #endif" 634 635 enable_option_checking=no 636 ac_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 subdirs 640 PTHREAD_CFLAGS 641 PTHREAD_LIBS 642 PTHREAD_CC 643 acx_pthread_config 644 USE_EXTERNAL_PROTOC_FALSE 645 USE_EXTERNAL_PROTOC_TRUE 646 PROTOC 647 HAVE_ZLIB_FALSE 648 HAVE_ZLIB_TRUE 649 POW_LIB 650 LIBOBJS 651 OTOOL64 652 OTOOL 653 LIPO 654 NMEDIT 655 DSYMUTIL 656 MANIFEST_TOOL 657 RANLIB 658 ac_ct_AR 659 AR 660 DLLTOOL 661 OBJDUMP 662 LN_S 663 NM 664 ac_ct_DUMPBIN 665 DUMPBIN 666 LD 667 FGREP 668 SED 669 LIBTOOL 670 ISAINFO 671 PROTOBUF_OPT_FLAG 672 GCC_FALSE 673 GCC_TRUE 674 EGREP 675 GREP 676 CXXCPP 677 am__fastdepCXX_FALSE 678 am__fastdepCXX_TRUE 679 CXXDEPMODE 680 ac_ct_CXX 681 CXXFLAGS 682 CXX 683 am__fastdepCC_FALSE 684 am__fastdepCC_TRUE 685 CCDEPMODE 686 am__nodep 687 AMDEPBACKSLASH 688 AMDEP_FALSE 689 AMDEP_TRUE 690 am__quote 691 am__include 692 DEPDIR 693 OBJEXT 694 EXEEXT 695 ac_ct_CC 696 CPPFLAGS 697 LDFLAGS 698 CFLAGS 699 CC 700 AM_BACKSLASH 701 AM_DEFAULT_VERBOSITY 702 AM_DEFAULT_V 703 AM_V 704 am__untar 705 am__tar 706 AMTAR 707 am__leading_dot 708 SET_MAKE 709 AWK 710 mkdir_p 711 MKDIR_P 712 INSTALL_STRIP_PROGRAM 713 STRIP 714 install_sh 715 MAKEINFO 716 AUTOHEADER 717 AUTOMAKE 718 AUTOCONF 719 ACLOCAL 720 VERSION 721 PACKAGE 722 CYGPATH_W 723 am__isrc 724 INSTALL_DATA 725 INSTALL_SCRIPT 726 INSTALL_PROGRAM 727 target_os 728 target_vendor 729 target_cpu 730 target 731 host_os 732 host_vendor 733 host_cpu 734 host 735 build_os 736 build_vendor 737 build_cpu 738 build 739 MAINT 740 MAINTAINER_MODE_FALSE 741 MAINTAINER_MODE_TRUE 742 target_alias 743 host_alias 744 build_alias 745 LIBS 746 ECHO_T 747 ECHO_N 748 ECHO_C 749 DEFS 750 mandir 751 localedir 752 libdir 753 psdir 754 pdfdir 755 dvidir 756 htmldir 757 infodir 758 docdir 759 oldincludedir 760 includedir 761 localstatedir 762 sharedstatedir 763 sysconfdir 764 datadir 765 datarootdir 766 libexecdir 767 sbindir 768 bindir 769 program_transform_name 770 prefix 771 exec_prefix 772 PACKAGE_URL 773 PACKAGE_BUGREPORT 774 PACKAGE_STRING 775 PACKAGE_VERSION 776 PACKAGE_TARNAME 777 PACKAGE_NAME 778 PATH_SEPARATOR 779 SHELL' 780 ac_subst_files='' 781 ac_user_opts=' 782 enable_option_checking 783 enable_maintainer_mode 784 enable_silent_rules 785 with_zlib 786 with_protoc 787 enable_dependency_tracking 788 enable_64bit_solaris 789 enable_shared 790 enable_static 791 with_pic 792 enable_fast_install 793 with_gnu_ld 794 with_sysroot 795 enable_libtool_lock 796 ' 797 ac_precious_vars='build_alias 798 host_alias 799 target_alias 800 CC 801 CFLAGS 802 LDFLAGS 803 LIBS 804 CPPFLAGS 805 CXX 806 CXXFLAGS 807 CCC 808 CXXCPP' 809 ac_subdirs_all='gtest' 810 811 # Initialize some variables set by options. 812 ac_init_help= 813 ac_init_version=false 814 ac_unrecognized_opts= 815 ac_unrecognized_sep= 816 # The variables have the same names as the options, with 817 # dashes changed to underlines. 818 cache_file=/dev/null 819 exec_prefix=NONE 820 no_create= 821 no_recursion= 822 prefix=NONE 823 program_prefix=NONE 824 program_suffix=NONE 825 program_transform_name=s,x,x, 826 silent= 827 site= 828 srcdir= 829 verbose= 830 x_includes=NONE 831 x_libraries=NONE 832 833 # Installation directory options. 834 # These are left unexpanded so users can "make install exec_prefix=/foo" 835 # and all the variables that are supposed to be based on exec_prefix 836 # by default will actually change. 837 # Use braces instead of parens because sh, perl, etc. also accept them. 838 # (The list follows the same order as the GNU Coding Standards.) 839 bindir='${exec_prefix}/bin' 840 sbindir='${exec_prefix}/sbin' 841 libexecdir='${exec_prefix}/libexec' 842 datarootdir='${prefix}/share' 843 datadir='${datarootdir}' 844 sysconfdir='${prefix}/etc' 845 sharedstatedir='${prefix}/com' 846 localstatedir='${prefix}/var' 847 includedir='${prefix}/include' 848 oldincludedir='/usr/include' 849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850 infodir='${datarootdir}/info' 851 htmldir='${docdir}' 852 dvidir='${docdir}' 853 pdfdir='${docdir}' 854 psdir='${docdir}' 855 libdir='${exec_prefix}/lib' 856 localedir='${datarootdir}/locale' 857 mandir='${datarootdir}/man' 858 859 ac_prev= 860 ac_dashdash= 861 for ac_option 862 do 863 # If the previous option needs an argument, assign it. 864 if test -n "$ac_prev"; then 865 eval $ac_prev=\$ac_option 866 ac_prev= 867 continue 868 fi 869 870 case $ac_option in 871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 872 *=) ac_optarg= ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 # Accept the important Cygnus configure options, so we can diagnose typos. 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923 "enable_$ac_useropt" 924 "*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949 "enable_$ac_useropt" 950 "*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=\$ac_optarg ;; 955 956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 958 | --exec | --exe | --ex) 959 ac_prev=exec_prefix ;; 960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 962 | --exec=* | --exe=* | --ex=*) 963 exec_prefix=$ac_optarg ;; 964 965 -gas | --gas | --ga | --g) 966 # Obsolete; use --with-gas. 967 with_gas=yes ;; 968 969 -help | --help | --hel | --he | -h) 970 ac_init_help=long ;; 971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 972 ac_init_help=recursive ;; 973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 974 ac_init_help=short ;; 975 976 -host | --host | --hos | --ho) 977 ac_prev=host_alias ;; 978 -host=* | --host=* | --hos=* | --ho=*) 979 host_alias=$ac_optarg ;; 980 981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 982 ac_prev=htmldir ;; 983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 984 | --ht=*) 985 htmldir=$ac_optarg ;; 986 987 -includedir | --includedir | --includedi | --included | --include \ 988 | --includ | --inclu | --incl | --inc) 989 ac_prev=includedir ;; 990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 991 | --includ=* | --inclu=* | --incl=* | --inc=*) 992 includedir=$ac_optarg ;; 993 994 -infodir | --infodir | --infodi | --infod | --info | --inf) 995 ac_prev=infodir ;; 996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 997 infodir=$ac_optarg ;; 998 999 -libdir | --libdir | --libdi | --libd) 1000 ac_prev=libdir ;; 1001 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1002 libdir=$ac_optarg ;; 1003 1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1005 | --libexe | --libex | --libe) 1006 ac_prev=libexecdir ;; 1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1008 | --libexe=* | --libex=* | --libe=*) 1009 libexecdir=$ac_optarg ;; 1010 1011 -localedir | --localedir | --localedi | --localed | --locale) 1012 ac_prev=localedir ;; 1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1014 localedir=$ac_optarg ;; 1015 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1017 | --localstate | --localstat | --localsta | --localst | --locals) 1018 ac_prev=localstatedir ;; 1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1021 localstatedir=$ac_optarg ;; 1022 1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1024 ac_prev=mandir ;; 1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1026 mandir=$ac_optarg ;; 1027 1028 -nfp | --nfp | --nf) 1029 # Obsolete; use --without-fp. 1030 with_fp=no ;; 1031 1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1033 | --no-cr | --no-c | -n) 1034 no_create=yes ;; 1035 1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1038 no_recursion=yes ;; 1039 1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1042 | --oldin | --oldi | --old | --ol | --o) 1043 ac_prev=oldincludedir ;; 1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1047 oldincludedir=$ac_optarg ;; 1048 1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1050 ac_prev=prefix ;; 1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1052 prefix=$ac_optarg ;; 1053 1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1055 | --program-pre | --program-pr | --program-p) 1056 ac_prev=program_prefix ;; 1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1059 program_prefix=$ac_optarg ;; 1060 1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1062 | --program-suf | --program-su | --program-s) 1063 ac_prev=program_suffix ;; 1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1066 program_suffix=$ac_optarg ;; 1067 1068 -program-transform-name | --program-transform-name \ 1069 | --program-transform-nam | --program-transform-na \ 1070 | --program-transform-n | --program-transform- \ 1071 | --program-transform | --program-transfor \ 1072 | --program-transfo | --program-transf \ 1073 | --program-trans | --program-tran \ 1074 | --progr-tra | --program-tr | --program-t) 1075 ac_prev=program_transform_name ;; 1076 -program-transform-name=* | --program-transform-name=* \ 1077 | --program-transform-nam=* | --program-transform-na=* \ 1078 | --program-transform-n=* | --program-transform-=* \ 1079 | --program-transform=* | --program-transfor=* \ 1080 | --program-transfo=* | --program-transf=* \ 1081 | --program-trans=* | --program-tran=* \ 1082 | --progr-tra=* | --program-tr=* | --program-t=*) 1083 program_transform_name=$ac_optarg ;; 1084 1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1086 ac_prev=pdfdir ;; 1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1088 pdfdir=$ac_optarg ;; 1089 1090 -psdir | --psdir | --psdi | --psd | --ps) 1091 ac_prev=psdir ;; 1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1093 psdir=$ac_optarg ;; 1094 1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1096 | -silent | --silent | --silen | --sile | --sil) 1097 silent=yes ;; 1098 1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1100 ac_prev=sbindir ;; 1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1102 | --sbi=* | --sb=*) 1103 sbindir=$ac_optarg ;; 1104 1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1107 | --sharedst | --shareds | --shared | --share | --shar \ 1108 | --sha | --sh) 1109 ac_prev=sharedstatedir ;; 1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1113 | --sha=* | --sh=*) 1114 sharedstatedir=$ac_optarg ;; 1115 1116 -site | --site | --sit) 1117 ac_prev=site ;; 1118 -site=* | --site=* | --sit=*) 1119 site=$ac_optarg ;; 1120 1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1122 ac_prev=srcdir ;; 1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1124 srcdir=$ac_optarg ;; 1125 1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1127 | --syscon | --sysco | --sysc | --sys | --sy) 1128 ac_prev=sysconfdir ;; 1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1131 sysconfdir=$ac_optarg ;; 1132 1133 -target | --target | --targe | --targ | --tar | --ta | --t) 1134 ac_prev=target_alias ;; 1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1136 target_alias=$ac_optarg ;; 1137 1138 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1139 verbose=yes ;; 1140 1141 -version | --version | --versio | --versi | --vers | -V) 1142 ac_init_version=: ;; 1143 1144 -with-* | --with-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid package name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153 "with_$ac_useropt" 1154 "*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval with_$ac_useropt=\$ac_optarg ;; 1159 1160 -without-* | --without-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169 "with_$ac_useropt" 1170 "*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=no ;; 1175 1176 --x) 1177 # Obsolete; use --with-x. 1178 with_x=yes ;; 1179 1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1181 | --x-incl | --x-inc | --x-in | --x-i) 1182 ac_prev=x_includes ;; 1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1185 x_includes=$ac_optarg ;; 1186 1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1189 ac_prev=x_libraries ;; 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1192 x_libraries=$ac_optarg ;; 1193 1194 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1195 Try \`$0 --help' for more information" 1196 ;; 1197 1198 *=*) 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1200 # Reject names that are not valid shell variable names. 1201 case $ac_envvar in #( 1202 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1204 esac 1205 eval $ac_envvar=\$ac_optarg 1206 export $ac_envvar ;; 1207 1208 *) 1209 # FIXME: should be removed in autoconf 3.0. 1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1214 ;; 1215 1216 esac 1217 done 1218 1219 if test -n "$ac_prev"; then 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1221 as_fn_error $? "missing argument to $ac_option" 1222 fi 1223 1224 if test -n "$ac_unrecognized_opts"; then 1225 case $enable_option_checking in 1226 no) ;; 1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1229 esac 1230 fi 1231 1232 # Check all directory arguments for consistency. 1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1234 datadir sysconfdir sharedstatedir localstatedir includedir \ 1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1236 libdir localedir mandir 1237 do 1238 eval ac_val=\$$ac_var 1239 # Remove trailing slashes. 1240 case $ac_val in 1241 */ ) 1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1243 eval $ac_var=\$ac_val;; 1244 esac 1245 # Be sure to have absolute directory names. 1246 case $ac_val in 1247 [\\/$]* | ?:[\\/]* ) continue;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1249 esac 1250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1251 done 1252 1253 # There might be people who depend on the old broken behavior: `$host' 1254 # used to hold the argument of --host etc. 1255 # FIXME: To remove some day. 1256 build=$build_alias 1257 host=$host_alias 1258 target=$target_alias 1259 1260 # FIXME: To remove some day. 1261 if test "x$host_alias" != x; then 1262 if test "x$build_alias" = x; then 1263 cross_compiling=maybe 1264 elif test "x$build_alias" != "x$host_alias"; then 1265 cross_compiling=yes 1266 fi 1267 fi 1268 1269 ac_tool_prefix= 1270 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1271 1272 test "$silent" = yes && exec 6>/dev/null 1273 1274 1275 ac_pwd=`pwd` && test -n "$ac_pwd" && 1276 ac_ls_di=`ls -di .` && 1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1278 as_fn_error $? "working directory cannot be determined" 1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1280 as_fn_error $? "pwd does not report name of working directory" 1281 1282 1283 # Find the source files, if location was not specified. 1284 if test -z "$srcdir"; then 1285 ac_srcdir_defaulted=yes 1286 # Try the directory containing this script, then the parent directory. 1287 ac_confdir=`$as_dirname -- "$as_myself" || 1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1289 X"$as_myself" : 'X\(//\)[^/]' \| \ 1290 X"$as_myself" : 'X\(//\)$' \| \ 1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1292 $as_echo X"$as_myself" | 1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)[^/].*/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\).*/{ 1306 s//\1/ 1307 q 1308 } 1309 s/.*/./; q'` 1310 srcdir=$ac_confdir 1311 if test ! -r "$srcdir/$ac_unique_file"; then 1312 srcdir=.. 1313 fi 1314 else 1315 ac_srcdir_defaulted=no 1316 fi 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1320 fi 1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1322 ac_abs_confdir=`( 1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1324 pwd)` 1325 # When building in place, set srcdir=. 1326 if test "$ac_abs_confdir" = "$ac_pwd"; then 1327 srcdir=. 1328 fi 1329 # Remove unnecessary trailing slashes from srcdir. 1330 # Double slashes in file names in object file debugging info 1331 # mess up M-x gdb in Emacs. 1332 case $srcdir in 1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1334 esac 1335 for ac_var in $ac_precious_vars; do 1336 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_env_${ac_var}_value=\$${ac_var} 1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1340 done 1341 1342 # 1343 # Report the --help message. 1344 # 1345 if test "$ac_init_help" = "long"; then 1346 # Omit some internal or obsolete options to make the list less imposing. 1347 # This message is too long to be a string in the A/UX 3.1 sh. 1348 cat <<_ACEOF 1349 \`configure' configures Protocol Buffers 2.6.1 to adapt to many kinds of systems. 1350 1351 Usage: $0 [OPTION]... [VAR=VALUE]... 1352 1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1354 VAR=VALUE. See below for descriptions of some of the useful variables. 1355 1356 Defaults for the options are specified in brackets. 1357 1358 Configuration: 1359 -h, --help display this help and exit 1360 --help=short display options specific to this package 1361 --help=recursive display the short help of all the included packages 1362 -V, --version display version information and exit 1363 -q, --quiet, --silent do not print \`checking ...' messages 1364 --cache-file=FILE cache test results in FILE [disabled] 1365 -C, --config-cache alias for \`--cache-file=config.cache' 1366 -n, --no-create do not create output files 1367 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1368 1369 Installation directories: 1370 --prefix=PREFIX install architecture-independent files in PREFIX 1371 [$ac_default_prefix] 1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1373 [PREFIX] 1374 1375 By default, \`make install' will install all the files in 1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1378 for instance \`--prefix=\$HOME'. 1379 1380 For better control, use the options below. 1381 1382 Fine tuning of the installation directories: 1383 --bindir=DIR user executables [EPREFIX/bin] 1384 --sbindir=DIR system admin executables [EPREFIX/sbin] 1385 --libexecdir=DIR program executables [EPREFIX/libexec] 1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402 _ACEOF 1403 1404 cat <<\_ACEOF 1405 1406 Program names: 1407 --program-prefix=PREFIX prepend PREFIX to installed program names 1408 --program-suffix=SUFFIX append SUFFIX to installed program names 1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1410 1411 System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414 --target=TARGET configure for building compilers for TARGET [HOST] 1415 _ACEOF 1416 fi 1417 1418 if test -n "$ac_init_help"; then 1419 case $ac_init_help in 1420 short | recursive ) echo "Configuration of Protocol Buffers 2.6.1:";; 1421 esac 1422 cat <<\_ACEOF 1423 1424 Optional Features: 1425 --disable-option-checking ignore unrecognized --enable/--with options 1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1428 --disable-maintainer-mode 1429 disable make rules and dependencies not useful (and 1430 sometimes confusing) to the casual installer 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --disable-64bit-solaris Build 64 bit binary on Solaris [default=on] 1438 --enable-shared[=PKGS] build shared libraries [default=yes] 1439 --enable-static[=PKGS] build static libraries [default=yes] 1440 --enable-fast-install[=PKGS] 1441 optimize for fast installation [default=yes] 1442 --disable-libtool-lock avoid locking (might break parallel builds) 1443 1444 Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-zlib include classes for streaming compressed data in and 1448 out [default=check] 1449 --with-protoc=COMMAND use the given protoc command instead of building a 1450 new one when building tests (useful for 1451 cross-compiling) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1455 --with-sysroot=DIR Search for dependent libraries within DIR 1456 (or the compiler's sysroot if not specified). 1457 1458 Some influential environment variables: 1459 CC C compiler command 1460 CFLAGS C compiler flags 1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1462 nonstandard directory <lib dir> 1463 LIBS libraries to pass to the linker, e.g. -l<library> 1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1465 you have headers in a nonstandard directory <include dir> 1466 CXX C++ compiler command 1467 CXXFLAGS C++ compiler flags 1468 CXXCPP C++ preprocessor 1469 1470 Use these variables to override the choices made by `configure' or to help 1471 it to find libraries and programs with nonstandard names/locations. 1472 1473 Report bugs to <protobuf (at] googlegroups.com>. 1474 _ACEOF 1475 ac_status=$? 1476 fi 1477 1478 if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486 case "$ac_dir" in 1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) 1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496 esac 1497 ac_abs_top_builddir=$ac_pwd 1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499 # for backward compatibility: 1500 ac_top_builddir=$ac_top_build_prefix 1501 1502 case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515 esac 1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for guested configure. 1520 if test -f "$ac_srcdir/configure.gnu"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1523 elif test -f "$ac_srcdir/configure"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure" --help=recursive 1526 else 1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1528 fi || ac_status=$? 1529 cd "$ac_pwd" || { ac_status=$?; break; } 1530 done 1531 fi 1532 1533 test -n "$ac_init_help" && exit $ac_status 1534 if $ac_init_version; then 1535 cat <<\_ACEOF 1536 Protocol Buffers configure 2.6.1 1537 generated by GNU Autoconf 2.69 1538 1539 Copyright (C) 2012 Free Software Foundation, Inc. 1540 This configure script is free software; the Free Software Foundation 1541 gives unlimited permission to copy, distribute and modify it. 1542 _ACEOF 1543 exit 1544 fi 1545 1546 ## ------------------------ ## 1547 ## Autoconf initialization. ## 1548 ## ------------------------ ## 1549 1550 # ac_fn_c_try_compile LINENO 1551 # -------------------------- 1552 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1553 ac_fn_c_try_compile () 1554 { 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 rm -f conftest.$ac_objext 1557 if { { ac_try="$ac_compile" 1558 case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561 esac 1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563 $as_echo "$ac_try_echo"; } >&5 1564 (eval "$ac_compile") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } && { 1573 test -z "$ac_c_werror_flag" || 1574 test ! -s conftest.err 1575 } && test -s conftest.$ac_objext; then : 1576 ac_retval=0 1577 else 1578 $as_echo "$as_me: failed program was:" >&5 1579 sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582 fi 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 as_fn_set_status $ac_retval 1585 1586 } # ac_fn_c_try_compile 1587 1588 # ac_fn_cxx_try_compile LINENO 1589 # ---------------------------- 1590 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1591 ac_fn_cxx_try_compile () 1592 { 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 rm -f conftest.$ac_objext 1595 if { { ac_try="$ac_compile" 1596 case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599 esac 1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601 $as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_compile") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } && { 1611 test -z "$ac_cxx_werror_flag" || 1612 test ! -s conftest.err 1613 } && test -s conftest.$ac_objext; then : 1614 ac_retval=0 1615 else 1616 $as_echo "$as_me: failed program was:" >&5 1617 sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620 fi 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624 } # ac_fn_cxx_try_compile 1625 1626 # ac_fn_cxx_try_cpp LINENO 1627 # ------------------------ 1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1629 ac_fn_cxx_try_cpp () 1630 { 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 if { { ac_try="$ac_cpp conftest.$ac_ext" 1633 case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636 esac 1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638 $as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } > conftest.i && { 1648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1649 test ! -s conftest.err 1650 }; then : 1651 ac_retval=0 1652 else 1653 $as_echo "$as_me: failed program was:" >&5 1654 sed 's/^/| /' conftest.$ac_ext >&5 1655 1656 ac_retval=1 1657 fi 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661 } # ac_fn_cxx_try_cpp 1662 1663 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1664 # --------------------------------------------------------- 1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1666 # the include files in INCLUDES and setting the cache variable VAR 1667 # accordingly. 1668 ac_fn_cxx_check_header_mongrel () 1669 { 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 if eval \${$3+:} false; then : 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1673 $as_echo_n "checking for $2... " >&6; } 1674 if eval \${$3+:} false; then : 1675 $as_echo_n "(cached) " >&6 1676 fi 1677 eval ac_res=\$$3 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679 $as_echo "$ac_res" >&6; } 1680 else 1681 # Is the header compilable? 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1683 $as_echo_n "checking $2 usability... " >&6; } 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685 /* end confdefs.h. */ 1686 $4 1687 #include <$2> 1688 _ACEOF 1689 if ac_fn_cxx_try_compile "$LINENO"; then : 1690 ac_header_compiler=yes 1691 else 1692 ac_header_compiler=no 1693 fi 1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1696 $as_echo "$ac_header_compiler" >&6; } 1697 1698 # Is the header present? 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1700 $as_echo_n "checking $2 presence... " >&6; } 1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702 /* end confdefs.h. */ 1703 #include <$2> 1704 _ACEOF 1705 if ac_fn_cxx_try_cpp "$LINENO"; then : 1706 ac_header_preproc=yes 1707 else 1708 ac_header_preproc=no 1709 fi 1710 rm -f conftest.err conftest.i conftest.$ac_ext 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1712 $as_echo "$ac_header_preproc" >&6; } 1713 1714 # So? What about this header? 1715 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1716 yes:no: ) 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1721 ;; 1722 no:yes:* ) 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1726 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1730 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1733 ( $as_echo "## ---------------------------------------- ## 1734 ## Report this to protobuf (at] googlegroups.com ## 1735 ## ---------------------------------------- ##" 1736 ) | sed "s/^/$as_me: WARNING: /" >&2 1737 ;; 1738 esac 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740 $as_echo_n "checking for $2... " >&6; } 1741 if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743 else 1744 eval "$3=\$ac_header_compiler" 1745 fi 1746 eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748 $as_echo "$ac_res" >&6; } 1749 fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 1752 } # ac_fn_cxx_check_header_mongrel 1753 1754 # ac_fn_cxx_try_run LINENO 1755 # ------------------------ 1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1757 # that executables *can* be run. 1758 ac_fn_cxx_try_run () 1759 { 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 if { { ac_try="$ac_link" 1762 case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765 esac 1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767 $as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_link") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1772 { { case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775 esac 1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777 $as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_try") 2>&5 1779 ac_status=$? 1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; }; }; then : 1782 ac_retval=0 1783 else 1784 $as_echo "$as_me: program exited with status $ac_status" >&5 1785 $as_echo "$as_me: failed program was:" >&5 1786 sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=$ac_status 1789 fi 1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 as_fn_set_status $ac_retval 1793 1794 } # ac_fn_cxx_try_run 1795 1796 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1797 # --------------------------------------------------------- 1798 # Tests whether HEADER exists and can be compiled using the include files in 1799 # INCLUDES, setting the cache variable VAR accordingly. 1800 ac_fn_cxx_check_header_compile () 1801 { 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804 $as_echo_n "checking for $2... " >&6; } 1805 if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807 else 1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809 /* end confdefs.h. */ 1810 $4 1811 #include <$2> 1812 _ACEOF 1813 if ac_fn_cxx_try_compile "$LINENO"; then : 1814 eval "$3=yes" 1815 else 1816 eval "$3=no" 1817 fi 1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1819 fi 1820 eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822 $as_echo "$ac_res" >&6; } 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 1825 } # ac_fn_cxx_check_header_compile 1826 1827 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 1828 # ----------------------------------------------- 1829 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1830 # accordingly. 1831 ac_fn_cxx_check_decl () 1832 { 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 as_decl_name=`echo $2|sed 's/ *(.*//'` 1835 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1837 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1838 if eval \${$3+:} false; then : 1839 $as_echo_n "(cached) " >&6 1840 else 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842 /* end confdefs.h. */ 1843 $4 1844 int 1845 main () 1846 { 1847 #ifndef $as_decl_name 1848 #ifdef __cplusplus 1849 (void) $as_decl_use; 1850 #else 1851 (void) $as_decl_name; 1852 #endif 1853 #endif 1854 1855 ; 1856 return 0; 1857 } 1858 _ACEOF 1859 if ac_fn_cxx_try_compile "$LINENO"; then : 1860 eval "$3=yes" 1861 else 1862 eval "$3=no" 1863 fi 1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1865 fi 1866 eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868 $as_echo "$ac_res" >&6; } 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1871 } # ac_fn_cxx_check_decl 1872 1873 # ac_fn_c_try_link LINENO 1874 # ----------------------- 1875 # Try to link conftest.$ac_ext, and return whether this succeeded. 1876 ac_fn_c_try_link () 1877 { 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 rm -f conftest.$ac_objext conftest$ac_exeext 1880 if { { ac_try="$ac_link" 1881 case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884 esac 1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886 $as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_link") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { 1896 test -z "$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 } && test -s conftest$ac_exeext && { 1899 test "$cross_compiling" = yes || 1900 test -x conftest$ac_exeext 1901 }; then : 1902 ac_retval=0 1903 else 1904 $as_echo "$as_me: failed program was:" >&5 1905 sed 's/^/| /' conftest.$ac_ext >&5 1906 1907 ac_retval=1 1908 fi 1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1911 # interfere with the next link command; also delete a directory that is 1912 # left behind by Apple's compiler. We do this before executing the actions. 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917 } # ac_fn_c_try_link 1918 1919 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1920 # ------------------------------------------------------- 1921 # Tests whether HEADER exists and can be compiled using the include files in 1922 # INCLUDES, setting the cache variable VAR accordingly. 1923 ac_fn_c_check_header_compile () 1924 { 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927 $as_echo_n "checking for $2... " >&6; } 1928 if eval \${$3+:} false; then : 1929 $as_echo_n "(cached) " >&6 1930 else 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932 /* end confdefs.h. */ 1933 $4 1934 #include <$2> 1935 _ACEOF 1936 if ac_fn_c_try_compile "$LINENO"; then : 1937 eval "$3=yes" 1938 else 1939 eval "$3=no" 1940 fi 1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1942 fi 1943 eval ac_res=\$$3 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945 $as_echo "$ac_res" >&6; } 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1947 1948 } # ac_fn_c_check_header_compile 1949 1950 # ac_fn_c_check_func LINENO FUNC VAR 1951 # ---------------------------------- 1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1953 ac_fn_c_check_func () 1954 { 1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957 $as_echo_n "checking for $2... " >&6; } 1958 if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960 else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962 /* end confdefs.h. */ 1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1965 #define $2 innocuous_$2 1966 1967 /* System header to define __stub macros and hopefully few prototypes, 1968 which can conflict with char $2 (); below. 1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1970 <limits.h> exists even on freestanding compilers. */ 1971 1972 #ifdef __STDC__ 1973 # include <limits.h> 1974 #else 1975 # include <assert.h> 1976 #endif 1977 1978 #undef $2 1979 1980 /* Override any GCC internal prototype to avoid an error. 1981 Use char because int might match the return type of a GCC 1982 builtin and then its argument prototype would still apply. */ 1983 #ifdef __cplusplus 1984 extern "C" 1985 #endif 1986 char $2 (); 1987 /* The GNU C library defines this for functions which it implements 1988 to always fail with ENOSYS. Some functions are actually named 1989 something starting with __ and the normal name is an alias. */ 1990 #if defined __stub_$2 || defined __stub___$2 1991 choke me 1992 #endif 1993 1994 int 1995 main () 1996 { 1997 return $2 (); 1998 ; 1999 return 0; 2000 } 2001 _ACEOF 2002 if ac_fn_c_try_link "$LINENO"; then : 2003 eval "$3=yes" 2004 else 2005 eval "$3=no" 2006 fi 2007 rm -f core conftest.err conftest.$ac_objext \ 2008 conftest$ac_exeext conftest.$ac_ext 2009 fi 2010 eval ac_res=\$$3 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2012 $as_echo "$ac_res" >&6; } 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015 } # ac_fn_c_check_func 2016 2017 # ac_fn_cxx_try_link LINENO 2018 # ------------------------- 2019 # Try to link conftest.$ac_ext, and return whether this succeeded. 2020 ac_fn_cxx_try_link () 2021 { 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 rm -f conftest.$ac_objext conftest$ac_exeext 2024 if { { ac_try="$ac_link" 2025 case "(($ac_try" in 2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2027 *) ac_try_echo=$ac_try;; 2028 esac 2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2030 $as_echo "$ac_try_echo"; } >&5 2031 (eval "$ac_link") 2>conftest.err 2032 ac_status=$? 2033 if test -s conftest.err; then 2034 grep -v '^ *+' conftest.err >conftest.er1 2035 cat conftest.er1 >&5 2036 mv -f conftest.er1 conftest.err 2037 fi 2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2039 test $ac_status = 0; } && { 2040 test -z "$ac_cxx_werror_flag" || 2041 test ! -s conftest.err 2042 } && test -s conftest$ac_exeext && { 2043 test "$cross_compiling" = yes || 2044 test -x conftest$ac_exeext 2045 }; then : 2046 ac_retval=0 2047 else 2048 $as_echo "$as_me: failed program was:" >&5 2049 sed 's/^/| /' conftest.$ac_ext >&5 2050 2051 ac_retval=1 2052 fi 2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2055 # interfere with the next link command; also delete a directory that is 2056 # left behind by Apple's compiler. We do this before executing the actions. 2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2059 as_fn_set_status $ac_retval 2060 2061 } # ac_fn_cxx_try_link 2062 2063 # ac_fn_cxx_check_func LINENO FUNC VAR 2064 # ------------------------------------ 2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2066 ac_fn_cxx_check_func () 2067 { 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2070 $as_echo_n "checking for $2... " >&6; } 2071 if eval \${$3+:} false; then : 2072 $as_echo_n "(cached) " >&6 2073 else 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075 /* end confdefs.h. */ 2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2078 #define $2 innocuous_$2 2079 2080 /* System header to define __stub macros and hopefully few prototypes, 2081 which can conflict with char $2 (); below. 2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2083 <limits.h> exists even on freestanding compilers. */ 2084 2085 #ifdef __STDC__ 2086 # include <limits.h> 2087 #else 2088 # include <assert.h> 2089 #endif 2090 2091 #undef $2 2092 2093 /* Override any GCC internal prototype to avoid an error. 2094 Use char because int might match the return type of a GCC 2095 builtin and then its argument prototype would still apply. */ 2096 #ifdef __cplusplus 2097 extern "C" 2098 #endif 2099 char $2 (); 2100 /* The GNU C library defines this for functions which it implements 2101 to always fail with ENOSYS. Some functions are actually named 2102 something starting with __ and the normal name is an alias. */ 2103 #if defined __stub_$2 || defined __stub___$2 2104 choke me 2105 #endif 2106 2107 int 2108 main () 2109 { 2110 return $2 (); 2111 ; 2112 return 0; 2113 } 2114 _ACEOF 2115 if ac_fn_cxx_try_link "$LINENO"; then : 2116 eval "$3=yes" 2117 else 2118 eval "$3=no" 2119 fi 2120 rm -f core conftest.err conftest.$ac_objext \ 2121 conftest$ac_exeext conftest.$ac_ext 2122 fi 2123 eval ac_res=\$$3 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2125 $as_echo "$ac_res" >&6; } 2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2127 2128 } # ac_fn_cxx_check_func 2129 cat >config.log <<_ACEOF 2130 This file contains any messages produced by compilers while 2131 running configure, to aid debugging if configure makes a mistake. 2132 2133 It was created by Protocol Buffers $as_me 2.6.1, which was 2134 generated by GNU Autoconf 2.69. Invocation command line was 2135 2136 $ $0 $@ 2137 2138 _ACEOF 2139 exec 5>>config.log 2140 { 2141 cat <<_ASUNAME 2142 ## --------- ## 2143 ## Platform. ## 2144 ## --------- ## 2145 2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2147 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2148 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2149 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2150 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2151 2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2154 2155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2158 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2162 2163 _ASUNAME 2164 2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2166 for as_dir in $PATH 2167 do 2168 IFS=$as_save_IFS 2169 test -z "$as_dir" && as_dir=. 2170 $as_echo "PATH: $as_dir" 2171 done 2172 IFS=$as_save_IFS 2173 2174 } >&5 2175 2176 cat >&5 <<_ACEOF 2177 2178 2179 ## ----------- ## 2180 ## Core tests. ## 2181 ## ----------- ## 2182 2183 _ACEOF 2184 2185 2186 # Keep a trace of the command line. 2187 # Strip out --no-create and --no-recursion so they do not pile up. 2188 # Strip out --silent because we don't want to record it for future runs. 2189 # Also quote any args containing shell meta-characters. 2190 # Make two passes to allow for proper duplicate-argument suppression. 2191 ac_configure_args= 2192 ac_configure_args0= 2193 ac_configure_args1= 2194 ac_must_keep_next=false 2195 for ac_pass in 1 2 2196 do 2197 for ac_arg 2198 do 2199 case $ac_arg in 2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2202 | -silent | --silent | --silen | --sile | --sil) 2203 continue ;; 2204 *\'*) 2205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2206 esac 2207 case $ac_pass in 2208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2209 2) 2210 as_fn_append ac_configure_args1 " '$ac_arg'" 2211 if test $ac_must_keep_next = true; then 2212 ac_must_keep_next=false # Got value, back to normal. 2213 else 2214 case $ac_arg in 2215 *=* | --config-cache | -C | -disable-* | --disable-* \ 2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2218 | -with-* | --with-* | -without-* | --without-* | --x) 2219 case "$ac_configure_args0 " in 2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2221 esac 2222 ;; 2223 -* ) ac_must_keep_next=true ;; 2224 esac 2225 fi 2226 as_fn_append ac_configure_args " '$ac_arg'" 2227 ;; 2228 esac 2229 done 2230 done 2231 { ac_configure_args0=; unset ac_configure_args0;} 2232 { ac_configure_args1=; unset ac_configure_args1;} 2233 2234 # When interrupted or exit'd, cleanup temporary files, and complete 2235 # config.log. We remove comments because anyway the quotes in there 2236 # would cause problems or look ugly. 2237 # WARNING: Use '\'' to represent an apostrophe within the trap. 2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2239 trap 'exit_status=$? 2240 # Save into config.log some information that might help in debugging. 2241 { 2242 echo 2243 2244 $as_echo "## ---------------- ## 2245 ## Cache variables. ## 2246 ## ---------------- ##" 2247 echo 2248 # The following way of writing the cache mishandles newlines in values, 2249 ( 2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2251 eval ac_val=\$$ac_var 2252 case $ac_val in #( 2253 *${as_nl}*) 2254 case $ac_var in #( 2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2257 esac 2258 case $ac_var in #( 2259 _ | IFS | as_nl) ;; #( 2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2261 *) { eval $ac_var=; unset $ac_var;} ;; 2262 esac ;; 2263 esac 2264 done 2265 (set) 2>&1 | 2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2267 *${as_nl}ac_space=\ *) 2268 sed -n \ 2269 "s/'\''/'\''\\\\'\'''\''/g; 2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2271 ;; #( 2272 *) 2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2274 ;; 2275 esac | 2276 sort 2277 ) 2278 echo 2279 2280 $as_echo "## ----------------- ## 2281 ## Output variables. ## 2282 ## ----------------- ##" 2283 echo 2284 for ac_var in $ac_subst_vars 2285 do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in 2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2289 esac 2290 $as_echo "$ac_var='\''$ac_val'\''" 2291 done | sort 2292 echo 2293 2294 if test -n "$ac_subst_files"; then 2295 $as_echo "## ------------------- ## 2296 ## File substitutions. ## 2297 ## ------------------- ##" 2298 echo 2299 for ac_var in $ac_subst_files 2300 do 2301 eval ac_val=\$$ac_var 2302 case $ac_val in 2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2304 esac 2305 $as_echo "$ac_var='\''$ac_val'\''" 2306 done | sort 2307 echo 2308 fi 2309 2310 if test -s confdefs.h; then 2311 $as_echo "## ----------- ## 2312 ## confdefs.h. ## 2313 ## ----------- ##" 2314 echo 2315 cat confdefs.h 2316 echo 2317 fi 2318 test "$ac_signal" != 0 && 2319 $as_echo "$as_me: caught signal $ac_signal" 2320 $as_echo "$as_me: exit $exit_status" 2321 } >&5 2322 rm -f core *.core core.conftest.* && 2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2324 exit $exit_status 2325 ' 0 2326 for ac_signal in 1 2 13 15; do 2327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2328 done 2329 ac_signal=0 2330 2331 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2332 rm -f -r conftest* confdefs.h 2333 2334 $as_echo "/* confdefs.h */" > confdefs.h 2335 2336 # Predefined preprocessor variables. 2337 2338 cat >>confdefs.h <<_ACEOF 2339 #define PACKAGE_NAME "$PACKAGE_NAME" 2340 _ACEOF 2341 2342 cat >>confdefs.h <<_ACEOF 2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2344 _ACEOF 2345 2346 cat >>confdefs.h <<_ACEOF 2347 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2348 _ACEOF 2349 2350 cat >>confdefs.h <<_ACEOF 2351 #define PACKAGE_STRING "$PACKAGE_STRING" 2352 _ACEOF 2353 2354 cat >>confdefs.h <<_ACEOF 2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2356 _ACEOF 2357 2358 cat >>confdefs.h <<_ACEOF 2359 #define PACKAGE_URL "$PACKAGE_URL" 2360 _ACEOF 2361 2362 2363 # Let the site file select an alternate cache file if it wants to. 2364 # Prefer an explicitly selected file to automatically selected ones. 2365 ac_site_file1=NONE 2366 ac_site_file2=NONE 2367 if test -n "$CONFIG_SITE"; then 2368 # We do not want a PATH search for config.site. 2369 case $CONFIG_SITE in #(( 2370 -*) ac_site_file1=./$CONFIG_SITE;; 2371 */*) ac_site_file1=$CONFIG_SITE;; 2372 *) ac_site_file1=./$CONFIG_SITE;; 2373 esac 2374 elif test "x$prefix" != xNONE; then 2375 ac_site_file1=$prefix/share/config.site 2376 ac_site_file2=$prefix/etc/config.site 2377 else 2378 ac_site_file1=$ac_default_prefix/share/config.site 2379 ac_site_file2=$ac_default_prefix/etc/config.site 2380 fi 2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2382 do 2383 test "x$ac_site_file" = xNONE && continue 2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2387 sed 's/^/| /' "$ac_site_file" >&5 2388 . "$ac_site_file" \ 2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2391 as_fn_error $? "failed to load site script $ac_site_file 2392 See \`config.log' for more details" "$LINENO" 5; } 2393 fi 2394 done 2395 2396 if test -r "$cache_file"; then 2397 # Some versions of bash will fail to source /dev/null (special files 2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2401 $as_echo "$as_me: loading cache $cache_file" >&6;} 2402 case $cache_file in 2403 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2404 *) . "./$cache_file";; 2405 esac 2406 fi 2407 else 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2409 $as_echo "$as_me: creating cache $cache_file" >&6;} 2410 >$cache_file 2411 fi 2412 2413 # Check that the precious variables saved in the cache have kept the same 2414 # value. 2415 ac_cache_corrupted=false 2416 for ac_var in $ac_precious_vars; do 2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2418 eval ac_new_set=\$ac_env_${ac_var}_set 2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2420 eval ac_new_val=\$ac_env_${ac_var}_value 2421 case $ac_old_set,$ac_new_set in 2422 set,) 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2425 ac_cache_corrupted=: ;; 2426 ,set) 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2429 ac_cache_corrupted=: ;; 2430 ,);; 2431 *) 2432 if test "x$ac_old_val" != "x$ac_new_val"; then 2433 # differences in whitespace do not lead to failure. 2434 ac_old_val_w=`echo x $ac_old_val` 2435 ac_new_val_w=`echo x $ac_new_val` 2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2439 ac_cache_corrupted=: 2440 else 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2443 eval $ac_var=\$ac_old_val 2444 fi 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2449 fi;; 2450 esac 2451 # Pass precious variables to config.status. 2452 if test "$ac_new_set" = set; then 2453 case $ac_new_val in 2454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2455 *) ac_arg=$ac_var=$ac_new_val ;; 2456 esac 2457 case " $ac_configure_args " in 2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2459 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2460 esac 2461 fi 2462 done 2463 if $ac_cache_corrupted; then 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2469 fi 2470 ## -------------------- ## 2471 ## Main body of script. ## 2472 ## -------------------- ## 2473 2474 ac_ext=c 2475 ac_cpp='$CPP $CPPFLAGS' 2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2479 2480 2481 2482 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2484 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2485 # Check whether --enable-maintainer-mode was given. 2486 if test "${enable_maintainer_mode+set}" = set; then : 2487 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2488 else 2489 USE_MAINTAINER_MODE=yes 2490 fi 2491 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2493 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2494 if test $USE_MAINTAINER_MODE = yes; then 2495 MAINTAINER_MODE_TRUE= 2496 MAINTAINER_MODE_FALSE='#' 2497 else 2498 MAINTAINER_MODE_TRUE='#' 2499 MAINTAINER_MODE_FALSE= 2500 fi 2501 2502 MAINT=$MAINTAINER_MODE_TRUE 2503 2504 2505 2506 2507 ac_config_headers="$ac_config_headers config.h" 2508 2509 2510 2511 # autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily 2512 # the best choice for libprotobuf. 2513 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then : 2514 CFLAGS="" 2515 fi 2516 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 2517 CXXFLAGS="" 2518 fi 2519 2520 ac_aux_dir= 2521 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2522 if test -f "$ac_dir/install-sh"; then 2523 ac_aux_dir=$ac_dir 2524 ac_install_sh="$ac_aux_dir/install-sh -c" 2525 break 2526 elif test -f "$ac_dir/install.sh"; then 2527 ac_aux_dir=$ac_dir 2528 ac_install_sh="$ac_aux_dir/install.sh -c" 2529 break 2530 elif test -f "$ac_dir/shtool"; then 2531 ac_aux_dir=$ac_dir 2532 ac_install_sh="$ac_aux_dir/shtool install -c" 2533 break 2534 fi 2535 done 2536 if test -z "$ac_aux_dir"; then 2537 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2538 fi 2539 2540 # These three variables are undocumented and unsupported, 2541 # and are intended to be withdrawn in a future Autoconf release. 2542 # They can cause serious problems if a builder's source tree is in a directory 2543 # whose full name contains unusual characters. 2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2546 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2547 2548 2549 # Make sure we can run config.sub. 2550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2552 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2554 $as_echo_n "checking build system type... " >&6; } 2555 if ${ac_cv_build+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557 else 2558 ac_build_alias=$build_alias 2559 test "x$ac_build_alias" = x && 2560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2561 test "x$ac_build_alias" = x && 2562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2565 2566 fi 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2568 $as_echo "$ac_cv_build" >&6; } 2569 case $ac_cv_build in 2570 *-*-*) ;; 2571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2572 esac 2573 build=$ac_cv_build 2574 ac_save_IFS=$IFS; IFS='-' 2575 set x $ac_cv_build 2576 shift 2577 build_cpu=$1 2578 build_vendor=$2 2579 shift; shift 2580 # Remember, the first character of IFS is used to create $*, 2581 # except with old shells: 2582 build_os=$* 2583 IFS=$ac_save_IFS 2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2585 2586 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2588 $as_echo_n "checking host system type... " >&6; } 2589 if ${ac_cv_host+:} false; then : 2590 $as_echo_n "(cached) " >&6 2591 else 2592 if test "x$host_alias" = x; then 2593 ac_cv_host=$ac_cv_build 2594 else 2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2597 fi 2598 2599 fi 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2601 $as_echo "$ac_cv_host" >&6; } 2602 case $ac_cv_host in 2603 *-*-*) ;; 2604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2605 esac 2606 host=$ac_cv_host 2607 ac_save_IFS=$IFS; IFS='-' 2608 set x $ac_cv_host 2609 shift 2610 host_cpu=$1 2611 host_vendor=$2 2612 shift; shift 2613 # Remember, the first character of IFS is used to create $*, 2614 # except with old shells: 2615 host_os=$* 2616 IFS=$ac_save_IFS 2617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2618 2619 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2621 $as_echo_n "checking target system type... " >&6; } 2622 if ${ac_cv_target+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624 else 2625 if test "x$target_alias" = x; then 2626 ac_cv_target=$ac_cv_host 2627 else 2628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2630 fi 2631 2632 fi 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2634 $as_echo "$ac_cv_target" >&6; } 2635 case $ac_cv_target in 2636 *-*-*) ;; 2637 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2638 esac 2639 target=$ac_cv_target 2640 ac_save_IFS=$IFS; IFS='-' 2641 set x $ac_cv_target 2642 shift 2643 target_cpu=$1 2644 target_vendor=$2 2645 shift; shift 2646 # Remember, the first character of IFS is used to create $*, 2647 # except with old shells: 2648 target_os=$* 2649 IFS=$ac_save_IFS 2650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2651 2652 2653 # The aliases save the names the user supplied, while $host etc. 2654 # will get canonicalized. 2655 test -n "$target_alias" && 2656 test "$program_prefix$program_suffix$program_transform_name" = \ 2657 NONENONEs,x,x, && 2658 program_prefix=${target_alias}- 2659 2660 am__api_version='1.14' 2661 2662 # Find a good install program. We prefer a C program (faster), 2663 # so one script is as good as another. But avoid the broken or 2664 # incompatible versions: 2665 # SysV /etc/install, /usr/sbin/install 2666 # SunOS /usr/etc/install 2667 # IRIX /sbin/install 2668 # AIX /bin/install 2669 # AmigaOS /C/install, which installs bootblocks on floppy discs 2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2673 # OS/2's system install, which has a completely different semantic 2674 # ./install, which can be erroneously created by make from ./install.sh. 2675 # Reject install programs that cannot install multiple files. 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2677 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2678 if test -z "$INSTALL"; then 2679 if ${ac_cv_path_install+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681 else 2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683 for as_dir in $PATH 2684 do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 # Account for people who put trailing slashes in PATH elements. 2688 case $as_dir/ in #(( 2689 ./ | .// | /[cC]/* | \ 2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2692 /usr/ucb/* ) ;; 2693 *) 2694 # OSF1 and SCO ODT 3.0 have their own names for install. 2695 # Don't use installbsd from OSF since it installs stuff as root 2696 # by default. 2697 for ac_prog in ginstall scoinst install; do 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2700 if test $ac_prog = install && 2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2702 # AIX install. It has an incompatible calling convention. 2703 : 2704 elif test $ac_prog = install && 2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2706 # program-specific install script used by HP pwplus--don't use. 2707 : 2708 else 2709 rm -rf conftest.one conftest.two conftest.dir 2710 echo one > conftest.one 2711 echo two > conftest.two 2712 mkdir conftest.dir 2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2714 test -s conftest.one && test -s conftest.two && 2715 test -s conftest.dir/conftest.one && 2716 test -s conftest.dir/conftest.two 2717 then 2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2719 break 3 2720 fi 2721 fi 2722 fi 2723 done 2724 done 2725 ;; 2726 esac 2727 2728 done 2729 IFS=$as_save_IFS 2730 2731 rm -rf conftest.one conftest.two conftest.dir 2732 2733 fi 2734 if test "${ac_cv_path_install+set}" = set; then 2735 INSTALL=$ac_cv_path_install 2736 else 2737 # As a last resort, use the slow shell script. Don't cache a 2738 # value for INSTALL within a source directory, because that will 2739 # break other packages using the cache if that directory is 2740 # removed, or if the value is a relative name. 2741 INSTALL=$ac_install_sh 2742 fi 2743 fi 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2745 $as_echo "$INSTALL" >&6; } 2746 2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2748 # It thinks the first close brace ends the variable substitution. 2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2750 2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2752 2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2754 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2756 $as_echo_n "checking whether build environment is sane... " >&6; } 2757 # Reject unsafe characters in $srcdir or the absolute working directory 2758 # name. Accept space and tab only in the latter. 2759 am_lf=' 2760 ' 2761 case `pwd` in 2762 *[\\\"\#\$\&\'\`$am_lf]*) 2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2764 esac 2765 case $srcdir in 2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2768 esac 2769 2770 # Do 'set' in a subshell so we don't clobber the current shell's 2771 # arguments. Must try -L first in case configure is actually a 2772 # symlink; some systems play weird games with the mod time of symlinks 2773 # (eg FreeBSD returns the mod time of the symlink's containing 2774 # directory). 2775 if ( 2776 am_has_slept=no 2777 for am_try in 1 2; do 2778 echo "timestamp, slept: $am_has_slept" > conftest.file 2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2780 if test "$*" = "X"; then 2781 # -L didn't work. 2782 set X `ls -t "$srcdir/configure" conftest.file` 2783 fi 2784 if test "$*" != "X $srcdir/configure conftest.file" \ 2785 && test "$*" != "X conftest.file $srcdir/configure"; then 2786 2787 # If neither matched, then we have a broken ls. This can happen 2788 # if, for instance, CONFIG_SHELL is bash and it inherits a 2789 # broken ls alias from the environment. This has actually 2790 # happened. Such a system could not be considered "sane". 2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2792 alias in your environment" "$LINENO" 5 2793 fi 2794 if test "$2" = conftest.file || test $am_try -eq 2; then 2795 break 2796 fi 2797 # Just in case. 2798 sleep 1 2799 am_has_slept=yes 2800 done 2801 test "$2" = conftest.file 2802 ) 2803 then 2804 # Ok. 2805 : 2806 else 2807 as_fn_error $? "newly created file is older than distributed files! 2808 Check your system clock" "$LINENO" 5 2809 fi 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2811 $as_echo "yes" >&6; } 2812 # If we didn't sleep, we still need to ensure time stamps of config.status and 2813 # generated files are strictly newer. 2814 am_sleep_pid= 2815 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2816 ( sleep 1 ) & 2817 am_sleep_pid=$! 2818 fi 2819 2820 rm -f conftest.file 2821 2822 test "$program_prefix" != NONE && 2823 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2824 # Use a double $ so make ignores it. 2825 test "$program_suffix" != NONE && 2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2827 # Double any \ or $. 2828 # By default was `s,x,x', remove it if useless. 2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2830 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2831 2832 # expand $ac_aux_dir to an absolute path 2833 am_aux_dir=`cd $ac_aux_dir && pwd` 2834 2835 if test x"${MISSING+set}" != xset; then 2836 case $am_aux_dir in 2837 *\ * | *\ *) 2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2839 *) 2840 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2841 esac 2842 fi 2843 # Use eval to expand $SHELL 2844 if eval "$MISSING --is-lightweight"; then 2845 am_missing_run="$MISSING " 2846 else 2847 am_missing_run= 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2849 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2850 fi 2851 2852 if test x"${install_sh}" != xset; then 2853 case $am_aux_dir in 2854 *\ * | *\ *) 2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2856 *) 2857 install_sh="\${SHELL} $am_aux_dir/install-sh" 2858 esac 2859 fi 2860 2861 # Installed binaries are usually stripped using 'strip' when the user 2862 # run "make install-strip". However 'strip' might not be the right 2863 # tool to use in cross-compilation environments, therefore Automake 2864 # will honor the 'STRIP' environment variable to overrule this program. 2865 if test "$cross_compiling" != no; then 2866 if test -n "$ac_tool_prefix"; then 2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2868 set dummy ${ac_tool_prefix}strip; ac_word=$2 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870 $as_echo_n "checking for $ac_word... " >&6; } 2871 if ${ac_cv_prog_STRIP+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873 else 2874 if test -n "$STRIP"; then 2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2876 else 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878 for as_dir in $PATH 2879 do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888 done 2889 done 2890 IFS=$as_save_IFS 2891 2892 fi 2893 fi 2894 STRIP=$ac_cv_prog_STRIP 2895 if test -n "$STRIP"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2897 $as_echo "$STRIP" >&6; } 2898 else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900 $as_echo "no" >&6; } 2901 fi 2902 2903 2904 fi 2905 if test -z "$ac_cv_prog_STRIP"; then 2906 ac_ct_STRIP=$STRIP 2907 # Extract the first word of "strip", so it can be a program name with args. 2908 set dummy strip; ac_word=$2 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910 $as_echo_n "checking for $ac_word... " >&6; } 2911 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913 else 2914 if test -n "$ac_ct_STRIP"; then 2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2916 else 2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918 for as_dir in $PATH 2919 do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_ac_ct_STRIP="strip" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928 done 2929 done 2930 IFS=$as_save_IFS 2931 2932 fi 2933 fi 2934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2935 if test -n "$ac_ct_STRIP"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2937 $as_echo "$ac_ct_STRIP" >&6; } 2938 else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940 $as_echo "no" >&6; } 2941 fi 2942 2943 if test "x$ac_ct_STRIP" = x; then 2944 STRIP=":" 2945 else 2946 case $cross_compiling:$ac_tool_warned in 2947 yes:) 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2950 ac_tool_warned=yes ;; 2951 esac 2952 STRIP=$ac_ct_STRIP 2953 fi 2954 else 2955 STRIP="$ac_cv_prog_STRIP" 2956 fi 2957 2958 fi 2959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2960 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2963 if test -z "$MKDIR_P"; then 2964 if ${ac_cv_path_mkdir+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966 else 2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2969 do 2970 IFS=$as_save_IFS 2971 test -z "$as_dir" && as_dir=. 2972 for ac_prog in mkdir gmkdir; do 2973 for ac_exec_ext in '' $ac_executable_extensions; do 2974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2976 'mkdir (GNU coreutils) '* | \ 2977 'mkdir (coreutils) '* | \ 2978 'mkdir (fileutils) '4.1*) 2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2980 break 3;; 2981 esac 2982 done 2983 done 2984 done 2985 IFS=$as_save_IFS 2986 2987 fi 2988 2989 test -d ./--version && rmdir ./--version 2990 if test "${ac_cv_path_mkdir+set}" = set; then 2991 MKDIR_P="$ac_cv_path_mkdir -p" 2992 else 2993 # As a last resort, use the slow shell script. Don't cache a 2994 # value for MKDIR_P within a source directory, because that will 2995 # break other packages using the cache if that directory is 2996 # removed, or if the value is a relative name. 2997 MKDIR_P="$ac_install_sh -d" 2998 fi 2999 fi 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3001 $as_echo "$MKDIR_P" >&6; } 3002 3003 for ac_prog in gawk mawk nawk awk 3004 do 3005 # Extract the first word of "$ac_prog", so it can be a program name with args. 3006 set dummy $ac_prog; ac_word=$2 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3008 $as_echo_n "checking for $ac_word... " >&6; } 3009 if ${ac_cv_prog_AWK+:} false; then : 3010 $as_echo_n "(cached) " >&6 3011 else 3012 if test -n "$AWK"; then 3013 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3014 else 3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016 for as_dir in $PATH 3017 do 3018 IFS=$as_save_IFS 3019 test -z "$as_dir" && as_dir=. 3020 for ac_exec_ext in '' $ac_executable_extensions; do 3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3022 ac_cv_prog_AWK="$ac_prog" 3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3024 break 2 3025 fi 3026 done 3027 done 3028 IFS=$as_save_IFS 3029 3030 fi 3031 fi 3032 AWK=$ac_cv_prog_AWK 3033 if test -n "$AWK"; then 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3035 $as_echo "$AWK" >&6; } 3036 else 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3038 $as_echo "no" >&6; } 3039 fi 3040 3041 3042 test -n "$AWK" && break 3043 done 3044 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3047 set x ${MAKE-make} 3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051 else 3052 cat >conftest.make <<\_ACEOF 3053 SHELL = /bin/sh 3054 all: 3055 @echo '@@@%%%=$(MAKE)=@@@%%%' 3056 _ACEOF 3057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3059 *@@@%%%=?*=@@@%%%*) 3060 eval ac_cv_prog_make_${ac_make}_set=yes;; 3061 *) 3062 eval ac_cv_prog_make_${ac_make}_set=no;; 3063 esac 3064 rm -f conftest.make 3065 fi 3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3068 $as_echo "yes" >&6; } 3069 SET_MAKE= 3070 else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072 $as_echo "no" >&6; } 3073 SET_MAKE="MAKE=${MAKE-make}" 3074 fi 3075 3076 rm -rf .tst 2>/dev/null 3077 mkdir .tst 2>/dev/null 3078 if test -d .tst; then 3079 am__leading_dot=. 3080 else 3081 am__leading_dot=_ 3082 fi 3083 rmdir .tst 2>/dev/null 3084 3085 # Check whether --enable-silent-rules was given. 3086 if test "${enable_silent_rules+set}" = set; then : 3087 enableval=$enable_silent_rules; 3088 fi 3089 3090 case $enable_silent_rules in # ((( 3091 yes) AM_DEFAULT_VERBOSITY=0;; 3092 no) AM_DEFAULT_VERBOSITY=1;; 3093 *) AM_DEFAULT_VERBOSITY=1;; 3094 esac 3095 am_make=${MAKE-make} 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3097 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3098 if ${am_cv_make_support_nested_variables+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100 else 3101 if $as_echo 'TRUE=$(BAR$(V)) 3102 BAR0=false 3103 BAR1=true 3104 V=1 3105 am__doit: 3106 @$(TRUE) 3107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3108 am_cv_make_support_nested_variables=yes 3109 else 3110 am_cv_make_support_nested_variables=no 3111 fi 3112 fi 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3114 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3115 if test $am_cv_make_support_nested_variables = yes; then 3116 AM_V='$(V)' 3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3118 else 3119 AM_V=$AM_DEFAULT_VERBOSITY 3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3121 fi 3122 AM_BACKSLASH='\' 3123 3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3126 # is not polluted with repeated "-I." 3127 am__isrc=' -I$(srcdir)' 3128 # test to see if srcdir already configured 3129 if test -f $srcdir/config.status; then 3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3131 fi 3132 fi 3133 3134 # test whether we have cygpath 3135 if test -z "$CYGPATH_W"; then 3136 if (cygpath --version) >/dev/null 2>/dev/null; then 3137 CYGPATH_W='cygpath -w' 3138 else 3139 CYGPATH_W=echo 3140 fi 3141 fi 3142 3143 3144 # Define the identity of the package. 3145 PACKAGE='protobuf' 3146 VERSION='2.6.1' 3147 3148 3149 cat >>confdefs.h <<_ACEOF 3150 #define PACKAGE "$PACKAGE" 3151 _ACEOF 3152 3153 3154 cat >>confdefs.h <<_ACEOF 3155 #define VERSION "$VERSION" 3156 _ACEOF 3157 3158 # Some tools Automake needs. 3159 3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3161 3162 3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3164 3165 3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3167 3168 3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3170 3171 3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3173 3174 # For better backward compatibility. To be removed once Automake 1.9.x 3175 # dies out for good. For more background, see: 3176 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3178 mkdir_p='$(MKDIR_P)' 3179 3180 # We need awk for the "check" target. The system "awk" is bad on 3181 # some platforms. 3182 # Always define AMTAR for backward compatibility. Yes, it's still used 3183 # in the wild :-( We should find a proper way to deprecate it ... 3184 AMTAR='$${TAR-tar}' 3185 3186 3187 # We'll loop over all known methods to create a tar archive until one works. 3188 _am_tools='gnutar pax cpio none' 3189 3190 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3191 3192 3193 3194 3195 3196 3197 # POSIX will say in a future version that running "rm -f" with no argument 3198 # is OK; and we want to be able to make that assumption in our Makefile 3199 # recipes. So use an aggressive probe to check that the usage we want is 3200 # actually supported "in the wild" to an acceptable degree. 3201 # See automake bug#10828. 3202 # To make any issue more visible, cause the running configure to be aborted 3203 # by default if the 'rm' program in use doesn't match our expectations; the 3204 # user can still override this though. 3205 if rm -f && rm -fr && rm -rf; then : OK; else 3206 cat >&2 <<'END' 3207 Oops! 3208 3209 Your 'rm' program seems unable to run without file operands specified 3210 on the command line, even when the '-f' option is present. This is contrary 3211 to the behaviour of most rm programs out there, and not conforming with 3212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3213 3214 Please tell bug-automake@gnu.org about your system, including the value 3215 of your $PATH and any error possibly output before this message. This 3216 can help us improve future automake versions. 3217 3218 END 3219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3220 echo 'Configuration will proceed anyway, since you have set the' >&2 3221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3222 echo >&2 3223 else 3224 cat >&2 <<'END' 3225 Aborting the configuration process, to ensure you take notice of the issue. 3226 3227 You can download and install GNU coreutils to get an 'rm' implementation 3228 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3229 3230 If you want to complete the configuration process using your problematic 3231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3232 to "yes", and re-run configure. 3233 3234 END 3235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3236 fi 3237 fi 3238 3239 3240 # Check whether --with-zlib was given. 3241 if test "${with_zlib+set}" = set; then : 3242 withval=$with_zlib; 3243 else 3244 with_zlib=check 3245 fi 3246 3247 3248 3249 # Check whether --with-protoc was given. 3250 if test "${with_protoc+set}" = set; then : 3251 withval=$with_protoc; 3252 else 3253 with_protoc=no 3254 fi 3255 3256 3257 # Checks for programs. 3258 ac_ext=c 3259 ac_cpp='$CPP $CPPFLAGS' 3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3263 if test -n "$ac_tool_prefix"; then 3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267 $as_echo_n "checking for $ac_word... " >&6; } 3268 if ${ac_cv_prog_CC+:} false; then : 3269 $as_echo_n "(cached) " >&6 3270 else 3271 if test -n "$CC"; then 3272 ac_cv_prog_CC="$CC" # Let the user override the test. 3273 else 3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275 for as_dir in $PATH 3276 do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285 done 3286 done 3287 IFS=$as_save_IFS 3288 3289 fi 3290 fi 3291 CC=$ac_cv_prog_CC 3292 if test -n "$CC"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3294 $as_echo "$CC" >&6; } 3295 else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297 $as_echo "no" >&6; } 3298 fi 3299 3300 3301 fi 3302 if test -z "$ac_cv_prog_CC"; then 3303 ac_ct_CC=$CC 3304 # Extract the first word of "gcc", so it can be a program name with args. 3305 set dummy gcc; ac_word=$2 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307 $as_echo_n "checking for $ac_word... " >&6; } 3308 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310 else 3311 if test -n "$ac_ct_CC"; then 3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3313 else 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315 for as_dir in $PATH 3316 do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3321 ac_cv_prog_ac_ct_CC="gcc" 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325 done 3326 done 3327 IFS=$as_save_IFS 3328 3329 fi 3330 fi 3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3332 if test -n "$ac_ct_CC"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334 $as_echo "$ac_ct_CC" >&6; } 3335 else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337 $as_echo "no" >&6; } 3338 fi 3339 3340 if test "x$ac_ct_CC" = x; then 3341 CC="" 3342 else 3343 case $cross_compiling:$ac_tool_warned in 3344 yes:) 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347 ac_tool_warned=yes ;; 3348 esac 3349 CC=$ac_ct_CC 3350 fi 3351 else 3352 CC="$ac_cv_prog_CC" 3353 fi 3354 3355 if test -z "$CC"; then 3356 if test -n "$ac_tool_prefix"; then 3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3358 set dummy ${ac_tool_prefix}cc; ac_word=$2 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360 $as_echo_n "checking for $ac_word... " >&6; } 3361 if ${ac_cv_prog_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363 else 3364 if test -n "$CC"; then 3365 ac_cv_prog_CC="$CC" # Let the user override the test. 3366 else 3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368 for as_dir in $PATH 3369 do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_CC="${ac_tool_prefix}cc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378 done 3379 done 3380 IFS=$as_save_IFS 3381 3382 fi 3383 fi 3384 CC=$ac_cv_prog_CC 3385 if test -n "$CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3387 $as_echo "$CC" >&6; } 3388 else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390 $as_echo "no" >&6; } 3391 fi 3392 3393 3394 fi 3395 fi 3396 if test -z "$CC"; then 3397 # Extract the first word of "cc", so it can be a program name with args. 3398 set dummy cc; ac_word=$2 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3400 $as_echo_n "checking for $ac_word... " >&6; } 3401 if ${ac_cv_prog_CC+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403 else 3404 if test -n "$CC"; then 3405 ac_cv_prog_CC="$CC" # Let the user override the test. 3406 else 3407 ac_prog_rejected=no 3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409 for as_dir in $PATH 3410 do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3416 ac_prog_rejected=yes 3417 continue 3418 fi 3419 ac_cv_prog_CC="cc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423 done 3424 done 3425 IFS=$as_save_IFS 3426 3427 if test $ac_prog_rejected = yes; then 3428 # We found a bogon in the path, so make sure we never use it. 3429 set dummy $ac_cv_prog_CC 3430 shift 3431 if test $# != 0; then 3432 # We chose a different compiler from the bogus one. 3433 # However, it has the same basename, so the bogon will be chosen 3434 # first if we set CC to just the basename; use the full file name. 3435 shift 3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3437 fi 3438 fi 3439 fi 3440 fi 3441 CC=$ac_cv_prog_CC 3442 if test -n "$CC"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3444 $as_echo "$CC" >&6; } 3445 else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447 $as_echo "no" >&6; } 3448 fi 3449 3450 3451 fi 3452 if test -z "$CC"; then 3453 if test -n "$ac_tool_prefix"; then 3454 for ac_prog in cl.exe 3455 do 3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459 $as_echo_n "checking for $ac_word... " >&6; } 3460 if ${ac_cv_prog_CC+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462 else 3463 if test -n "$CC"; then 3464 ac_cv_prog_CC="$CC" # Let the user override the test. 3465 else 3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3467 for as_dir in $PATH 3468 do 3469 IFS=$as_save_IFS 3470 test -z "$as_dir" && as_dir=. 3471 for ac_exec_ext in '' $ac_executable_extensions; do 3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477 done 3478 done 3479 IFS=$as_save_IFS 3480 3481 fi 3482 fi 3483 CC=$ac_cv_prog_CC 3484 if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486 $as_echo "$CC" >&6; } 3487 else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489 $as_echo "no" >&6; } 3490 fi 3491 3492 3493 test -n "$CC" && break 3494 done 3495 fi 3496 if test -z "$CC"; then 3497 ac_ct_CC=$CC 3498 for ac_prog in cl.exe 3499 do 3500 # Extract the first word of "$ac_prog", so it can be a program name with args. 3501 set dummy $ac_prog; ac_word=$2 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3503 $as_echo_n "checking for $ac_word... " >&6; } 3504 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3505 $as_echo_n "(cached) " >&6 3506 else 3507 if test -n "$ac_ct_CC"; then 3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3509 else 3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511 for as_dir in $PATH 3512 do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3517 ac_cv_prog_ac_ct_CC="$ac_prog" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521 done 3522 done 3523 IFS=$as_save_IFS 3524 3525 fi 3526 fi 3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3528 if test -n "$ac_ct_CC"; then 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3530 $as_echo "$ac_ct_CC" >&6; } 3531 else 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533 $as_echo "no" >&6; } 3534 fi 3535 3536 3537 test -n "$ac_ct_CC" && break 3538 done 3539 3540 if test "x$ac_ct_CC" = x; then 3541 CC="" 3542 else 3543 case $cross_compiling:$ac_tool_warned in 3544 yes:) 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3547 ac_tool_warned=yes ;; 3548 esac 3549 CC=$ac_ct_CC 3550 fi 3551 fi 3552 3553 fi 3554 3555 3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558 as_fn_error $? "no acceptable C compiler found in \$PATH 3559 See \`config.log' for more details" "$LINENO" 5; } 3560 3561 # Provide some information about the compiler. 3562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3563 set X $ac_compile 3564 ac_compiler=$2 3565 for ac_option in --version -v -V -qversion; do 3566 { { ac_try="$ac_compiler $ac_option >&5" 3567 case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570 esac 3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3572 $as_echo "$ac_try_echo"; } >&5 3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3574 ac_status=$? 3575 if test -s conftest.err; then 3576 sed '10a\ 3577 ... rest of stderr output deleted ... 3578 10q' conftest.err >conftest.er1 3579 cat conftest.er1 >&5 3580 fi 3581 rm -f conftest.er1 conftest.err 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; } 3584 done 3585 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587 /* end confdefs.h. */ 3588 3589 int 3590 main () 3591 { 3592 3593 ; 3594 return 0; 3595 } 3596 _ACEOF 3597 ac_clean_files_save=$ac_clean_files 3598 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3599 # Try to create an executable without -o first, disregard a.out. 3600 # It will help us diagnose broken compilers, and finding out an intuition 3601 # of exeext. 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3603 $as_echo_n "checking whether the C compiler works... " >&6; } 3604 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3605 3606 # The possible output files: 3607 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3608 3609 ac_rmfiles= 3610 for ac_file in $ac_files 3611 do 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3614 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3615 esac 3616 done 3617 rm -f $ac_rmfiles 3618 3619 if { { ac_try="$ac_link_default" 3620 case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623 esac 3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625 $as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_link_default") 2>&5 3627 ac_status=$? 3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3629 test $ac_status = 0; }; then : 3630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3631 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3632 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3633 # so that the user can short-circuit this test for compilers unknown to 3634 # Autoconf. 3635 for ac_file in $ac_files '' 3636 do 3637 test -f "$ac_file" || continue 3638 case $ac_file in 3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3640 ;; 3641 [ab].out ) 3642 # We found the default executable, but exeext='' is most 3643 # certainly right. 3644 break;; 3645 *.* ) 3646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3647 then :; else 3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3649 fi 3650 # We set ac_cv_exeext here because the later test for it is not 3651 # safe: cross compilers may not add the suffix if given an `-o' 3652 # argument, so we may need to know it at that point already. 3653 # Even if this section looks crufty: it has the advantage of 3654 # actually working. 3655 break;; 3656 * ) 3657 break;; 3658 esac 3659 done 3660 test "$ac_cv_exeext" = no && ac_cv_exeext= 3661 3662 else 3663 ac_file='' 3664 fi 3665 if test -z "$ac_file"; then : 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667 $as_echo "no" >&6; } 3668 $as_echo "$as_me: failed program was:" >&5 3669 sed 's/^/| /' conftest.$ac_ext >&5 3670 3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3673 as_fn_error 77 "C compiler cannot create executables 3674 See \`config.log' for more details" "$LINENO" 5; } 3675 else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3677 $as_echo "yes" >&6; } 3678 fi 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3680 $as_echo_n "checking for C compiler default output file name... " >&6; } 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3682 $as_echo "$ac_file" >&6; } 3683 ac_exeext=$ac_cv_exeext 3684 3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3686 ac_clean_files=$ac_clean_files_save 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3688 $as_echo_n "checking for suffix of executables... " >&6; } 3689 if { { ac_try="$ac_link" 3690 case "(($ac_try" in 3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3692 *) ac_try_echo=$ac_try;; 3693 esac 3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3695 $as_echo "$ac_try_echo"; } >&5 3696 (eval "$ac_link") 2>&5 3697 ac_status=$? 3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3699 test $ac_status = 0; }; then : 3700 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3702 # work properly (i.e., refer to `conftest.exe'), while it won't with 3703 # `rm'. 3704 for ac_file in conftest.exe conftest conftest.*; do 3705 test -f "$ac_file" || continue 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3709 break;; 3710 * ) break;; 3711 esac 3712 done 3713 else 3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3717 See \`config.log' for more details" "$LINENO" 5; } 3718 fi 3719 rm -f conftest conftest$ac_cv_exeext 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3721 $as_echo "$ac_cv_exeext" >&6; } 3722 3723 rm -f conftest.$ac_ext 3724 EXEEXT=$ac_cv_exeext 3725 ac_exeext=$EXEEXT 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727 /* end confdefs.h. */ 3728 #include <stdio.h> 3729 int 3730 main () 3731 { 3732 FILE *f = fopen ("conftest.out", "w"); 3733 return ferror (f) || fclose (f) != 0; 3734 3735 ; 3736 return 0; 3737 } 3738 _ACEOF 3739 ac_clean_files="$ac_clean_files conftest.out" 3740 # Check that the compiler produces executables we can run. If not, either 3741 # the compiler is broken, or we cross compile. 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3743 $as_echo_n "checking whether we are cross compiling... " >&6; } 3744 if test "$cross_compiling" != yes; then 3745 { { ac_try="$ac_link" 3746 case "(($ac_try" in 3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3748 *) ac_try_echo=$ac_try;; 3749 esac 3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3751 $as_echo "$ac_try_echo"; } >&5 3752 (eval "$ac_link") 2>&5 3753 ac_status=$? 3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3755 test $ac_status = 0; } 3756 if { ac_try='./conftest$ac_cv_exeext' 3757 { { case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760 esac 3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762 $as_echo "$ac_try_echo"; } >&5 3763 (eval "$ac_try") 2>&5 3764 ac_status=$? 3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; }; }; then 3767 cross_compiling=no 3768 else 3769 if test "$cross_compiling" = maybe; then 3770 cross_compiling=yes 3771 else 3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3774 as_fn_error $? "cannot run C compiled programs. 3775 If you meant to cross compile, use \`--host'. 3776 See \`config.log' for more details" "$LINENO" 5; } 3777 fi 3778 fi 3779 fi 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3781 $as_echo "$cross_compiling" >&6; } 3782 3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3784 ac_clean_files=$ac_clean_files_save 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3786 $as_echo_n "checking for suffix of object files... " >&6; } 3787 if ${ac_cv_objext+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789 else 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791 /* end confdefs.h. */ 3792 3793 int 3794 main () 3795 { 3796 3797 ; 3798 return 0; 3799 } 3800 _ACEOF 3801 rm -f conftest.o conftest.obj 3802 if { { ac_try="$ac_compile" 3803 case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806 esac 3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3808 $as_echo "$ac_try_echo"; } >&5 3809 (eval "$ac_compile") 2>&5 3810 ac_status=$? 3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3812 test $ac_status = 0; }; then : 3813 for ac_file in conftest.o conftest.obj conftest.*; do 3814 test -f "$ac_file" || continue; 3815 case $ac_file in 3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3818 break;; 3819 esac 3820 done 3821 else 3822 $as_echo "$as_me: failed program was:" >&5 3823 sed 's/^/| /' conftest.$ac_ext >&5 3824 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827 as_fn_error $? "cannot compute suffix of object files: cannot compile 3828 See \`config.log' for more details" "$LINENO" 5; } 3829 fi 3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3831 fi 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3833 $as_echo "$ac_cv_objext" >&6; } 3834 OBJEXT=$ac_cv_objext 3835 ac_objext=$OBJEXT 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3837 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3838 if ${ac_cv_c_compiler_gnu+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840 else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842 /* end confdefs.h. */ 3843 3844 int 3845 main () 3846 { 3847 #ifndef __GNUC__ 3848 choke me 3849 #endif 3850 3851 ; 3852 return 0; 3853 } 3854 _ACEOF 3855 if ac_fn_c_try_compile "$LINENO"; then : 3856 ac_compiler_gnu=yes 3857 else 3858 ac_compiler_gnu=no 3859 fi 3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3861 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3862 3863 fi 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3865 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3866 if test $ac_compiler_gnu = yes; then 3867 GCC=yes 3868 else 3869 GCC= 3870 fi 3871 ac_test_CFLAGS=${CFLAGS+set} 3872 ac_save_CFLAGS=$CFLAGS 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3874 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3875 if ${ac_cv_prog_cc_g+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877 else 3878 ac_save_c_werror_flag=$ac_c_werror_flag 3879 ac_c_werror_flag=yes 3880 ac_cv_prog_cc_g=no 3881 CFLAGS="-g" 3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3883 /* end confdefs.h. */ 3884 3885 int 3886 main () 3887 { 3888 3889 ; 3890 return 0; 3891 } 3892 _ACEOF 3893 if ac_fn_c_try_compile "$LINENO"; then : 3894 ac_cv_prog_cc_g=yes 3895 else 3896 CFLAGS="" 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898 /* end confdefs.h. */ 3899 3900 int 3901 main () 3902 { 3903 3904 ; 3905 return 0; 3906 } 3907 _ACEOF 3908 if ac_fn_c_try_compile "$LINENO"; then : 3909 3910 else 3911 ac_c_werror_flag=$ac_save_c_werror_flag 3912 CFLAGS="-g" 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914 /* end confdefs.h. */ 3915 3916 int 3917 main () 3918 { 3919 3920 ; 3921 return 0; 3922 } 3923 _ACEOF 3924 if ac_fn_c_try_compile "$LINENO"; then : 3925 ac_cv_prog_cc_g=yes 3926 fi 3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3928 fi 3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3930 fi 3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3932 ac_c_werror_flag=$ac_save_c_werror_flag 3933 fi 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3935 $as_echo "$ac_cv_prog_cc_g" >&6; } 3936 if test "$ac_test_CFLAGS" = set; then 3937 CFLAGS=$ac_save_CFLAGS 3938 elif test $ac_cv_prog_cc_g = yes; then 3939 if test "$GCC" = yes; then 3940 CFLAGS="-g -O2" 3941 else 3942 CFLAGS="-g" 3943 fi 3944 else 3945 if test "$GCC" = yes; then 3946 CFLAGS="-O2" 3947 else 3948 CFLAGS= 3949 fi 3950 fi 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3952 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3953 if ${ac_cv_prog_cc_c89+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955 else 3956 ac_cv_prog_cc_c89=no 3957 ac_save_CC=$CC 3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959 /* end confdefs.h. */ 3960 #include <stdarg.h> 3961 #include <stdio.h> 3962 struct stat; 3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3964 struct buf { int x; }; 3965 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3966 static char *e (p, i) 3967 char **p; 3968 int i; 3969 { 3970 return p[i]; 3971 } 3972 static char *f (char * (*g) (char **, int), char **p, ...) 3973 { 3974 char *s; 3975 va_list v; 3976 va_start (v,p); 3977 s = g (p, va_arg (v,int)); 3978 va_end (v); 3979 return s; 3980 } 3981 3982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3983 function prototypes and stuff, but not '\xHH' hex character constants. 3984 These don't provoke an error unfortunately, instead are silently treated 3985 as 'x'. The following induces an error, until -std is added to get 3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3987 array size at least. It's necessary to write '\x00'==0 to get something 3988 that's true only with -std. */ 3989 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3990 3991 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3992 inside strings and character constants. */ 3993 #define FOO(x) 'x' 3994 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3995 3996 int test (int i, double x); 3997 struct s1 {int (*f) (int a);}; 3998 struct s2 {int (*f) (double a);}; 3999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4000 int argc; 4001 char **argv; 4002 int 4003 main () 4004 { 4005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4006 ; 4007 return 0; 4008 } 4009 _ACEOF 4010 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4012 do 4013 CC="$ac_save_CC $ac_arg" 4014 if ac_fn_c_try_compile "$LINENO"; then : 4015 ac_cv_prog_cc_c89=$ac_arg 4016 fi 4017 rm -f core conftest.err conftest.$ac_objext 4018 test "x$ac_cv_prog_cc_c89" != "xno" && break 4019 done 4020 rm -f conftest.$ac_ext 4021 CC=$ac_save_CC 4022 4023 fi 4024 # AC_CACHE_VAL 4025 case "x$ac_cv_prog_cc_c89" in 4026 x) 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4028 $as_echo "none needed" >&6; } ;; 4029 xno) 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4031 $as_echo "unsupported" >&6; } ;; 4032 *) 4033 CC="$CC $ac_cv_prog_cc_c89" 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4035 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4036 esac 4037 if test "x$ac_cv_prog_cc_c89" != xno; then : 4038 4039 fi 4040 4041 ac_ext=c 4042 ac_cpp='$CPP $CPPFLAGS' 4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4046 4047 ac_ext=c 4048 ac_cpp='$CPP $CPPFLAGS' 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4053 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4054 if ${am_cv_prog_cc_c_o+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056 else 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058 /* end confdefs.h. */ 4059 4060 int 4061 main () 4062 { 4063 4064 ; 4065 return 0; 4066 } 4067 _ACEOF 4068 # Make sure it works both with $CC and with simple cc. 4069 # Following AC_PROG_CC_C_O, we do the test twice because some 4070 # compilers refuse to overwrite an existing .o file with -o, 4071 # though they will create one. 4072 am_cv_prog_cc_c_o=yes 4073 for am_i in 1 2; do 4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4076 ac_status=$? 4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4078 (exit $ac_status); } \ 4079 && test -f conftest2.$ac_objext; then 4080 : OK 4081 else 4082 am_cv_prog_cc_c_o=no 4083 break 4084 fi 4085 done 4086 rm -f core conftest* 4087 unset am_i 4088 fi 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4090 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4091 if test "$am_cv_prog_cc_c_o" != yes; then 4092 # Losing compiler, so override with the script. 4093 # FIXME: It is wrong to rewrite CC. 4094 # But if we don't then we get into trouble of one sort or another. 4095 # A longer-term fix would be to have automake use am__CC in this case, 4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4097 CC="$am_aux_dir/compile $CC" 4098 fi 4099 ac_ext=c 4100 ac_cpp='$CPP $CPPFLAGS' 4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4104 4105 DEPDIR="${am__leading_dot}deps" 4106 4107 ac_config_commands="$ac_config_commands depfiles" 4108 4109 4110 am_make=${MAKE-make} 4111 cat > confinc << 'END' 4112 am__doit: 4113 @echo this is the am__doit target 4114 .PHONY: am__doit 4115 END 4116 # If we don't find an include directive, just comment out the code. 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4118 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4119 am__include="#" 4120 am__quote= 4121 _am_result=none 4122 # First try GNU make style include. 4123 echo "include confinc" > confmf 4124 # Ignore all kinds of additional output from 'make'. 4125 case `$am_make -s -f confmf 2> /dev/null` in #( 4126 *the\ am__doit\ target*) 4127 am__include=include 4128 am__quote= 4129 _am_result=GNU 4130 ;; 4131 esac 4132 # Now try BSD make style include. 4133 if test "$am__include" = "#"; then 4134 echo '.include "confinc"' > confmf 4135 case `$am_make -s -f confmf 2> /dev/null` in #( 4136 *the\ am__doit\ target*) 4137 am__include=.include 4138 am__quote="\"" 4139 _am_result=BSD 4140 ;; 4141 esac 4142 fi 4143 4144 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4146 $as_echo "$_am_result" >&6; } 4147 rm -f confinc confmf 4148 4149 # Check whether --enable-dependency-tracking was given. 4150 if test "${enable_dependency_tracking+set}" = set; then : 4151 enableval=$enable_dependency_tracking; 4152 fi 4153 4154 if test "x$enable_dependency_tracking" != xno; then 4155 am_depcomp="$ac_aux_dir/depcomp" 4156 AMDEPBACKSLASH='\' 4157 am__nodep='_no' 4158 fi 4159 if test "x$enable_dependency_tracking" != xno; then 4160 AMDEP_TRUE= 4161 AMDEP_FALSE='#' 4162 else 4163 AMDEP_TRUE='#' 4164 AMDEP_FALSE= 4165 fi 4166 4167 4168 4169 depcc="$CC" am_compiler_list= 4170 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4172 $as_echo_n "checking dependency style of $depcc... " >&6; } 4173 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175 else 4176 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4177 # We make a subdir and do the tests there. Otherwise we can end up 4178 # making bogus files that we don't know about and never remove. For 4179 # instance it was reported that on HP-UX the gcc test will end up 4180 # making a dummy file named 'D' -- because '-MD' means "put the output 4181 # in D". 4182 rm -rf conftest.dir 4183 mkdir conftest.dir 4184 # Copy depcomp to subdir because otherwise we won't find it if we're 4185 # using a relative directory. 4186 cp "$am_depcomp" conftest.dir 4187 cd conftest.dir 4188 # We will build objects and dependencies in a subdirectory because 4189 # it helps to detect inapplicable dependency modes. For instance 4190 # both Tru64's cc and ICC support -MD to output dependencies as a 4191 # side effect of compilation, but ICC will put the dependencies in 4192 # the current directory while Tru64 will put them in the object 4193 # directory. 4194 mkdir sub 4195 4196 am_cv_CC_dependencies_compiler_type=none 4197 if test "$am_compiler_list" = ""; then 4198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4199 fi 4200 am__universal=false 4201 case " $depcc " in #( 4202 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4203 esac 4204 4205 for depmode in $am_compiler_list; do 4206 # Setup a source with many dependencies, because some compilers 4207 # like to wrap large dependency lists on column 80 (with \), and 4208 # we should not choose a depcomp mode which is confused by this. 4209 # 4210 # We need to recreate these files for each test, as the compiler may 4211 # overwrite some of them when testing with obscure command lines. 4212 # This happens at least with the AIX C compiler. 4213 : > sub/conftest.c 4214 for i in 1 2 3 4 5 6; do 4215 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4216 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4217 # Solaris 10 /bin/sh. 4218 echo '/* dummy */' > sub/conftst$i.h 4219 done 4220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4221 4222 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4223 # mode. It turns out that the SunPro C++ compiler does not properly 4224 # handle '-M -o', and we need to detect this. Also, some Intel 4225 # versions had trouble with output in subdirs. 4226 am__obj=sub/conftest.${OBJEXT-o} 4227 am__minus_obj="-o $am__obj" 4228 case $depmode in 4229 gcc) 4230 # This depmode causes a compiler race in universal mode. 4231 test "$am__universal" = false || continue 4232 ;; 4233 nosideeffect) 4234 # After this tag, mechanisms are not by side-effect, so they'll 4235 # only be used when explicitly requested. 4236 if test "x$enable_dependency_tracking" = xyes; then 4237 continue 4238 else 4239 break 4240 fi 4241 ;; 4242 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4243 # This compiler won't grok '-c -o', but also, the minuso test has 4244 # not run yet. These depmodes are late enough in the game, and 4245 # so weak that their functioning should not be impacted. 4246 am__obj=conftest.${OBJEXT-o} 4247 am__minus_obj= 4248 ;; 4249 none) break ;; 4250 esac 4251 if depmode=$depmode \ 4252 source=sub/conftest.c object=$am__obj \ 4253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4255 >/dev/null 2>conftest.err && 4256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4260 # icc doesn't choke on unknown options, it will just issue warnings 4261 # or remarks (even with -Werror). So we grep stderr for any message 4262 # that says an option was ignored or not supported. 4263 # When given -MP, icc 7.0 and 7.1 complain thusly: 4264 # icc: Command line warning: ignoring option '-M'; no argument required 4265 # The diagnosis changed in icc 8.0: 4266 # icc: Command line remark: option '-MP' not supported 4267 if (grep 'ignoring option' conftest.err || 4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4269 am_cv_CC_dependencies_compiler_type=$depmode 4270 break 4271 fi 4272 fi 4273 done 4274 4275 cd .. 4276 rm -rf conftest.dir 4277 else 4278 am_cv_CC_dependencies_compiler_type=none 4279 fi 4280 4281 fi 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4285 4286 if 4287 test "x$enable_dependency_tracking" != xno \ 4288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4289 am__fastdepCC_TRUE= 4290 am__fastdepCC_FALSE='#' 4291 else 4292 am__fastdepCC_TRUE='#' 4293 am__fastdepCC_FALSE= 4294 fi 4295 4296 4297 ac_ext=cpp 4298 ac_cpp='$CXXCPP $CPPFLAGS' 4299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4302 if test -z "$CXX"; then 4303 if test -n "$CCC"; then 4304 CXX=$CCC 4305 else 4306 if test -n "$ac_tool_prefix"; then 4307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4308 do 4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312 $as_echo_n "checking for $ac_word... " >&6; } 4313 if ${ac_cv_prog_CXX+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315 else 4316 if test -n "$CXX"; then 4317 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4318 else 4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320 for as_dir in $PATH 4321 do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330 done 4331 done 4332 IFS=$as_save_IFS 4333 4334 fi 4335 fi 4336 CXX=$ac_cv_prog_CXX 4337 if test -n "$CXX"; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4339 $as_echo "$CXX" >&6; } 4340 else 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342 $as_echo "no" >&6; } 4343 fi 4344 4345 4346 test -n "$CXX" && break 4347 done 4348 fi 4349 if test -z "$CXX"; then 4350 ac_ct_CXX=$CXX 4351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4352 do 4353 # Extract the first word of "$ac_prog", so it can be a program name with args. 4354 set dummy $ac_prog; ac_word=$2 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4356 $as_echo_n "checking for $ac_word... " >&6; } 4357 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359 else 4360 if test -n "$ac_ct_CXX"; then 4361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4362 else 4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4364 for as_dir in $PATH 4365 do 4366 IFS=$as_save_IFS 4367 test -z "$as_dir" && as_dir=. 4368 for ac_exec_ext in '' $ac_executable_extensions; do 4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4370 ac_cv_prog_ac_ct_CXX="$ac_prog" 4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4372 break 2 4373 fi 4374 done 4375 done 4376 IFS=$as_save_IFS 4377 4378 fi 4379 fi 4380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4381 if test -n "$ac_ct_CXX"; then 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4383 $as_echo "$ac_ct_CXX" >&6; } 4384 else 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4386 $as_echo "no" >&6; } 4387 fi 4388 4389 4390 test -n "$ac_ct_CXX" && break 4391 done 4392 4393 if test "x$ac_ct_CXX" = x; then 4394 CXX="g++" 4395 else 4396 case $cross_compiling:$ac_tool_warned in 4397 yes:) 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4400 ac_tool_warned=yes ;; 4401 esac 4402 CXX=$ac_ct_CXX 4403 fi 4404 fi 4405 4406 fi 4407 fi 4408 # Provide some information about the compiler. 4409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4410 set X $ac_compile 4411 ac_compiler=$2 4412 for ac_option in --version -v -V -qversion; do 4413 { { ac_try="$ac_compiler $ac_option >&5" 4414 case "(($ac_try" in 4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4416 *) ac_try_echo=$ac_try;; 4417 esac 4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4419 $as_echo "$ac_try_echo"; } >&5 4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4421 ac_status=$? 4422 if test -s conftest.err; then 4423 sed '10a\ 4424 ... rest of stderr output deleted ... 4425 10q' conftest.err >conftest.er1 4426 cat conftest.er1 >&5 4427 fi 4428 rm -f conftest.er1 conftest.err 4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4430 test $ac_status = 0; } 4431 done 4432 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4435 if ${ac_cv_cxx_compiler_gnu+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437 else 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439 /* end confdefs.h. */ 4440 4441 int 4442 main () 4443 { 4444 #ifndef __GNUC__ 4445 choke me 4446 #endif 4447 4448 ; 4449 return 0; 4450 } 4451 _ACEOF 4452 if ac_fn_cxx_try_compile "$LINENO"; then : 4453 ac_compiler_gnu=yes 4454 else 4455 ac_compiler_gnu=no 4456 fi 4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4459 4460 fi 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4463 if test $ac_compiler_gnu = yes; then 4464 GXX=yes 4465 else 4466 GXX= 4467 fi 4468 ac_test_CXXFLAGS=${CXXFLAGS+set} 4469 ac_save_CXXFLAGS=$CXXFLAGS 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4471 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4472 if ${ac_cv_prog_cxx_g+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474 else 4475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4476 ac_cxx_werror_flag=yes 4477 ac_cv_prog_cxx_g=no 4478 CXXFLAGS="-g" 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480 /* end confdefs.h. */ 4481 4482 int 4483 main () 4484 { 4485 4486 ; 4487 return 0; 4488 } 4489 _ACEOF 4490 if ac_fn_cxx_try_compile "$LINENO"; then : 4491 ac_cv_prog_cxx_g=yes 4492 else 4493 CXXFLAGS="" 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495 /* end confdefs.h. */ 4496 4497 int 4498 main () 4499 { 4500 4501 ; 4502 return 0; 4503 } 4504 _ACEOF 4505 if ac_fn_cxx_try_compile "$LINENO"; then : 4506 4507 else 4508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4509 CXXFLAGS="-g" 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511 /* end confdefs.h. */ 4512 4513 int 4514 main () 4515 { 4516 4517 ; 4518 return 0; 4519 } 4520 _ACEOF 4521 if ac_fn_cxx_try_compile "$LINENO"; then : 4522 ac_cv_prog_cxx_g=yes 4523 fi 4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4525 fi 4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4527 fi 4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4530 fi 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4532 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4533 if test "$ac_test_CXXFLAGS" = set; then 4534 CXXFLAGS=$ac_save_CXXFLAGS 4535 elif test $ac_cv_prog_cxx_g = yes; then 4536 if test "$GXX" = yes; then 4537 CXXFLAGS="-g -O2" 4538 else 4539 CXXFLAGS="-g" 4540 fi 4541 else 4542 if test "$GXX" = yes; then 4543 CXXFLAGS="-O2" 4544 else 4545 CXXFLAGS= 4546 fi 4547 fi 4548 ac_ext=c 4549 ac_cpp='$CPP $CPPFLAGS' 4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4553 4554 depcc="$CXX" am_compiler_list= 4555 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4557 $as_echo_n "checking dependency style of $depcc... " >&6; } 4558 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560 else 4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4562 # We make a subdir and do the tests there. Otherwise we can end up 4563 # making bogus files that we don't know about and never remove. For 4564 # instance it was reported that on HP-UX the gcc test will end up 4565 # making a dummy file named 'D' -- because '-MD' means "put the output 4566 # in D". 4567 rm -rf conftest.dir 4568 mkdir conftest.dir 4569 # Copy depcomp to subdir because otherwise we won't find it if we're 4570 # using a relative directory. 4571 cp "$am_depcomp" conftest.dir 4572 cd conftest.dir 4573 # We will build objects and dependencies in a subdirectory because 4574 # it helps to detect inapplicable dependency modes. For instance 4575 # both Tru64's cc and ICC support -MD to output dependencies as a 4576 # side effect of compilation, but ICC will put the dependencies in 4577 # the current directory while Tru64 will put them in the object 4578 # directory. 4579 mkdir sub 4580 4581 am_cv_CXX_dependencies_compiler_type=none 4582 if test "$am_compiler_list" = ""; then 4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4584 fi 4585 am__universal=false 4586 case " $depcc " in #( 4587 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4588 esac 4589 4590 for depmode in $am_compiler_list; do 4591 # Setup a source with many dependencies, because some compilers 4592 # like to wrap large dependency lists on column 80 (with \), and 4593 # we should not choose a depcomp mode which is confused by this. 4594 # 4595 # We need to recreate these files for each test, as the compiler may 4596 # overwrite some of them when testing with obscure command lines. 4597 # This happens at least with the AIX C compiler. 4598 : > sub/conftest.c 4599 for i in 1 2 3 4 5 6; do 4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4602 # Solaris 10 /bin/sh. 4603 echo '/* dummy */' > sub/conftst$i.h 4604 done 4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4606 4607 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4608 # mode. It turns out that the SunPro C++ compiler does not properly 4609 # handle '-M -o', and we need to detect this. Also, some Intel 4610 # versions had trouble with output in subdirs. 4611 am__obj=sub/conftest.${OBJEXT-o} 4612 am__minus_obj="-o $am__obj" 4613 case $depmode in 4614 gcc) 4615 # This depmode causes a compiler race in universal mode. 4616 test "$am__universal" = false || continue 4617 ;; 4618 nosideeffect) 4619 # After this tag, mechanisms are not by side-effect, so they'll 4620 # only be used when explicitly requested. 4621 if test "x$enable_dependency_tracking" = xyes; then 4622 continue 4623 else 4624 break 4625 fi 4626 ;; 4627 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4628 # This compiler won't grok '-c -o', but also, the minuso test has 4629 # not run yet. These depmodes are late enough in the game, and 4630 # so weak that their functioning should not be impacted. 4631 am__obj=conftest.${OBJEXT-o} 4632 am__minus_obj= 4633 ;; 4634 none) break ;; 4635 esac 4636 if depmode=$depmode \ 4637 source=sub/conftest.c object=$am__obj \ 4638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4640 >/dev/null 2>conftest.err && 4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4645 # icc doesn't choke on unknown options, it will just issue warnings 4646 # or remarks (even with -Werror). So we grep stderr for any message 4647 # that says an option was ignored or not supported. 4648 # When given -MP, icc 7.0 and 7.1 complain thusly: 4649 # icc: Command line warning: ignoring option '-M'; no argument required 4650 # The diagnosis changed in icc 8.0: 4651 # icc: Command line remark: option '-MP' not supported 4652 if (grep 'ignoring option' conftest.err || 4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4654 am_cv_CXX_dependencies_compiler_type=$depmode 4655 break 4656 fi 4657 fi 4658 done 4659 4660 cd .. 4661 rm -rf conftest.dir 4662 else 4663 am_cv_CXX_dependencies_compiler_type=none 4664 fi 4665 4666 fi 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4670 4671 if 4672 test "x$enable_dependency_tracking" != xno \ 4673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4674 am__fastdepCXX_TRUE= 4675 am__fastdepCXX_FALSE='#' 4676 else 4677 am__fastdepCXX_TRUE='#' 4678 am__fastdepCXX_FALSE= 4679 fi 4680 4681 4682 ac_ext=cpp 4683 ac_cpp='$CXXCPP $CPPFLAGS' 4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4687 4688 4689 ac_ext=cpp 4690 ac_cpp='$CXXCPP $CPPFLAGS' 4691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4696 if test -z "$CXXCPP"; then 4697 if ${ac_cv_prog_CXXCPP+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699 else 4700 # Double quotes because CXXCPP needs to be expanded 4701 for CXXCPP in "$CXX -E" "/lib/cpp" 4702 do 4703 ac_preproc_ok=false 4704 for ac_cxx_preproc_warn_flag in '' yes 4705 do 4706 # Use a header file that comes with gcc, so configuring glibc 4707 # with a fresh cross-compiler works. 4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4709 # <limits.h> exists even on freestanding compilers. 4710 # On the NeXT, cc -E runs the code through the compiler's parser, 4711 # not just through cpp. "Syntax error" is here to catch this case. 4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4713 /* end confdefs.h. */ 4714 #ifdef __STDC__ 4715 # include <limits.h> 4716 #else 4717 # include <assert.h> 4718 #endif 4719 Syntax error 4720 _ACEOF 4721 if ac_fn_cxx_try_cpp "$LINENO"; then : 4722 4723 else 4724 # Broken: fails on valid input. 4725 continue 4726 fi 4727 rm -f conftest.err conftest.i conftest.$ac_ext 4728 4729 # OK, works on sane cases. Now check whether nonexistent headers 4730 # can be detected and how. 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732 /* end confdefs.h. */ 4733 #include <ac_nonexistent.h> 4734 _ACEOF 4735 if ac_fn_cxx_try_cpp "$LINENO"; then : 4736 # Broken: success on invalid input. 4737 continue 4738 else 4739 # Passes both tests. 4740 ac_preproc_ok=: 4741 break 4742 fi 4743 rm -f conftest.err conftest.i conftest.$ac_ext 4744 4745 done 4746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4747 rm -f conftest.i conftest.err conftest.$ac_ext 4748 if $ac_preproc_ok; then : 4749 break 4750 fi 4751 4752 done 4753 ac_cv_prog_CXXCPP=$CXXCPP 4754 4755 fi 4756 CXXCPP=$ac_cv_prog_CXXCPP 4757 else 4758 ac_cv_prog_CXXCPP=$CXXCPP 4759 fi 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4761 $as_echo "$CXXCPP" >&6; } 4762 ac_preproc_ok=false 4763 for ac_cxx_preproc_warn_flag in '' yes 4764 do 4765 # Use a header file that comes with gcc, so configuring glibc 4766 # with a fresh cross-compiler works. 4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4768 # <limits.h> exists even on freestanding compilers. 4769 # On the NeXT, cc -E runs the code through the compiler's parser, 4770 # not just through cpp. "Syntax error" is here to catch this case. 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772 /* end confdefs.h. */ 4773 #ifdef __STDC__ 4774 # include <limits.h> 4775 #else 4776 # include <assert.h> 4777 #endif 4778 Syntax error 4779 _ACEOF 4780 if ac_fn_cxx_try_cpp "$LINENO"; then : 4781 4782 else 4783 # Broken: fails on valid input. 4784 continue 4785 fi 4786 rm -f conftest.err conftest.i conftest.$ac_ext 4787 4788 # OK, works on sane cases. Now check whether nonexistent headers 4789 # can be detected and how. 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791 /* end confdefs.h. */ 4792 #include <ac_nonexistent.h> 4793 _ACEOF 4794 if ac_fn_cxx_try_cpp "$LINENO"; then : 4795 # Broken: success on invalid input. 4796 continue 4797 else 4798 # Passes both tests. 4799 ac_preproc_ok=: 4800 break 4801 fi 4802 rm -f conftest.err conftest.i conftest.$ac_ext 4803 4804 done 4805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4806 rm -f conftest.i conftest.err conftest.$ac_ext 4807 if $ac_preproc_ok; then : 4808 4809 else 4810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4812 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4813 See \`config.log' for more details" "$LINENO" 5; } 4814 fi 4815 4816 ac_ext=cpp 4817 ac_cpp='$CXXCPP $CPPFLAGS' 4818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4821 4822 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4824 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4825 if ${ac_cv_path_GREP+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827 else 4828 if test -z "$GREP"; then 4829 ac_path_GREP_found=false 4830 # Loop through the user's path and test for each of PROGNAME-LIST 4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4833 do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_prog in grep ggrep; do 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4839 as_fn_executable_p "$ac_path_GREP" || continue 4840 # Check for GNU ac_path_GREP and select it if it is found. 4841 # Check for GNU $ac_path_GREP 4842 case `"$ac_path_GREP" --version 2>&1` in 4843 *GNU*) 4844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4845 *) 4846 ac_count=0 4847 $as_echo_n 0123456789 >"conftest.in" 4848 while : 4849 do 4850 cat "conftest.in" "conftest.in" >"conftest.tmp" 4851 mv "conftest.tmp" "conftest.in" 4852 cp "conftest.in" "conftest.nl" 4853 $as_echo 'GREP' >> "conftest.nl" 4854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4856 as_fn_arith $ac_count + 1 && ac_count=$as_val 4857 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4858 # Best one so far, save it but keep looking for a better one 4859 ac_cv_path_GREP="$ac_path_GREP" 4860 ac_path_GREP_max=$ac_count 4861 fi 4862 # 10*(2^10) chars as input seems more than enough 4863 test $ac_count -gt 10 && break 4864 done 4865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4866 esac 4867 4868 $ac_path_GREP_found && break 3 4869 done 4870 done 4871 done 4872 IFS=$as_save_IFS 4873 if test -z "$ac_cv_path_GREP"; then 4874 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4875 fi 4876 else 4877 ac_cv_path_GREP=$GREP 4878 fi 4879 4880 fi 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4882 $as_echo "$ac_cv_path_GREP" >&6; } 4883 GREP="$ac_cv_path_GREP" 4884 4885 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4887 $as_echo_n "checking for egrep... " >&6; } 4888 if ${ac_cv_path_EGREP+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890 else 4891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4892 then ac_cv_path_EGREP="$GREP -E" 4893 else 4894 if test -z "$EGREP"; then 4895 ac_path_EGREP_found=false 4896 # Loop through the user's path and test for each of PROGNAME-LIST 4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4899 do 4900 IFS=$as_save_IFS 4901 test -z "$as_dir" && as_dir=. 4902 for ac_prog in egrep; do 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4905 as_fn_executable_p "$ac_path_EGREP" || continue 4906 # Check for GNU ac_path_EGREP and select it if it is found. 4907 # Check for GNU $ac_path_EGREP 4908 case `"$ac_path_EGREP" --version 2>&1` in 4909 *GNU*) 4910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4911 *) 4912 ac_count=0 4913 $as_echo_n 0123456789 >"conftest.in" 4914 while : 4915 do 4916 cat "conftest.in" "conftest.in" >"conftest.tmp" 4917 mv "conftest.tmp" "conftest.in" 4918 cp "conftest.in" "conftest.nl" 4919 $as_echo 'EGREP' >> "conftest.nl" 4920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4922 as_fn_arith $ac_count + 1 && ac_count=$as_val 4923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4924 # Best one so far, save it but keep looking for a better one 4925 ac_cv_path_EGREP="$ac_path_EGREP" 4926 ac_path_EGREP_max=$ac_count 4927 fi 4928 # 10*(2^10) chars as input seems more than enough 4929 test $ac_count -gt 10 && break 4930 done 4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4932 esac 4933 4934 $ac_path_EGREP_found && break 3 4935 done 4936 done 4937 done 4938 IFS=$as_save_IFS 4939 if test -z "$ac_cv_path_EGREP"; then 4940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4941 fi 4942 else 4943 ac_cv_path_EGREP=$EGREP 4944 fi 4945 4946 fi 4947 fi 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4949 $as_echo "$ac_cv_path_EGREP" >&6; } 4950 EGREP="$ac_cv_path_EGREP" 4951 4952 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4954 $as_echo_n "checking for ANSI C header files... " >&6; } 4955 if ${ac_cv_header_stdc+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957 else 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959 /* end confdefs.h. */ 4960 #include <stdlib.h> 4961 #include <stdarg.h> 4962 #include <string.h> 4963 #include <float.h> 4964 4965 int 4966 main () 4967 { 4968 4969 ; 4970 return 0; 4971 } 4972 _ACEOF 4973 if ac_fn_cxx_try_compile "$LINENO"; then : 4974 ac_cv_header_stdc=yes 4975 else 4976 ac_cv_header_stdc=no 4977 fi 4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4979 4980 if test $ac_cv_header_stdc = yes; then 4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983 /* end confdefs.h. */ 4984 #include <string.h> 4985 4986 _ACEOF 4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4988 $EGREP "memchr" >/dev/null 2>&1; then : 4989 4990 else 4991 ac_cv_header_stdc=no 4992 fi 4993 rm -f conftest* 4994 4995 fi 4996 4997 if test $ac_cv_header_stdc = yes; then 4998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5000 /* end confdefs.h. */ 5001 #include <stdlib.h> 5002 5003 _ACEOF 5004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5005 $EGREP "free" >/dev/null 2>&1; then : 5006 5007 else 5008 ac_cv_header_stdc=no 5009 fi 5010 rm -f conftest* 5011 5012 fi 5013 5014 if test $ac_cv_header_stdc = yes; then 5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5016 if test "$cross_compiling" = yes; then : 5017 : 5018 else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020 /* end confdefs.h. */ 5021 #include <ctype.h> 5022 #include <stdlib.h> 5023 #if ((' ' & 0x0FF) == 0x020) 5024 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5025 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5026 #else 5027 # define ISLOWER(c) \ 5028 (('a' <= (c) && (c) <= 'i') \ 5029 || ('j' <= (c) && (c) <= 'r') \ 5030 || ('s' <= (c) && (c) <= 'z')) 5031 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5032 #endif 5033 5034 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5035 int 5036 main () 5037 { 5038 int i; 5039 for (i = 0; i < 256; i++) 5040 if (XOR (islower (i), ISLOWER (i)) 5041 || toupper (i) != TOUPPER (i)) 5042 return 2; 5043 return 0; 5044 } 5045 _ACEOF 5046 if ac_fn_cxx_try_run "$LINENO"; then : 5047 5048 else 5049 ac_cv_header_stdc=no 5050 fi 5051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5052 conftest.$ac_objext conftest.beam conftest.$ac_ext 5053 fi 5054 5055 fi 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5058 $as_echo "$ac_cv_header_stdc" >&6; } 5059 if test $ac_cv_header_stdc = yes; then 5060 5061 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5062 5063 fi 5064 5065 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5066 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5067 inttypes.h stdint.h unistd.h 5068 do : 5069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5070 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5071 " 5072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5073 cat >>confdefs.h <<_ACEOF 5074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5075 _ACEOF 5076 5077 fi 5078 5079 done 5080 5081 5082 5083 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5084 if test "x$ac_cv_header_minix_config_h" = xyes; then : 5085 MINIX=yes 5086 else 5087 MINIX= 5088 fi 5089 5090 5091 if test "$MINIX" = yes; then 5092 5093 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5094 5095 5096 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5097 5098 5099 $as_echo "#define _MINIX 1" >>confdefs.h 5100 5101 fi 5102 5103 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5105 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5106 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108 else 5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110 /* end confdefs.h. */ 5111 5112 # define __EXTENSIONS__ 1 5113 $ac_includes_default 5114 int 5115 main () 5116 { 5117 5118 ; 5119 return 0; 5120 } 5121 _ACEOF 5122 if ac_fn_cxx_try_compile "$LINENO"; then : 5123 ac_cv_safe_to_define___extensions__=yes 5124 else 5125 ac_cv_safe_to_define___extensions__=no 5126 fi 5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5128 fi 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5130 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5131 test $ac_cv_safe_to_define___extensions__ = yes && 5132 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5133 5134 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5135 5136 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5137 5138 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5139 5140 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5141 5142 5143 5144 5145 5146 5147 5148 if test "$GCC" = yes; then 5149 GCC_TRUE= 5150 GCC_FALSE='#' 5151 else 5152 GCC_TRUE='#' 5153 GCC_FALSE= 5154 fi 5155 # let the Makefile know if we're gcc 5156 5157 # test_util.cc takes forever to compile with GCC and optimization turned on. 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5 5159 $as_echo_n "checking C++ compiler flags...... " >&6; } 5160 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5161 5162 if test "$GCC" = "yes"; then : 5163 5164 PROTOBUF_OPT_FLAG="-O2" 5165 CXXFLAGS="${CXXFLAGS} -g" 5166 5167 fi 5168 5169 # Protocol Buffers contains several checks that are intended to be used only 5170 # for debugging and which might hurt performance. Most users are probably 5171 # end users who don't want these checks, so add -DNDEBUG by default. 5172 CXXFLAGS="$CXXFLAGS -DNDEBUG" 5173 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5 5175 $as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; } 5176 5177 else 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5 5180 $as_echo "use user-supplied: $CXXFLAGS" >&6; } 5181 5182 fi 5183 5184 5185 5186 5187 5188 ac_ext=cpp 5189 ac_cpp='$CXXCPP $CPPFLAGS' 5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5193 5194 ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default" 5195 if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then : 5196 SUNCC="yes" 5197 else 5198 SUNCC="no" 5199 fi 5200 5201 ac_ext=cpp 5202 ac_cpp='$CXXCPP $CPPFLAGS' 5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5206 5207 5208 5209 # Check whether --enable-64bit-solaris was given. 5210 if test "${enable_64bit_solaris+set}" = set; then : 5211 enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval" 5212 else 5213 ac_enable_64bit="yes" 5214 fi 5215 5216 5217 if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5218 5219 CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}" 5220 5221 fi 5222 5223 case $host_os in 5224 *solaris*) 5225 for ac_prog in isainfo 5226 do 5227 # Extract the first word of "$ac_prog", so it can be a program name with args. 5228 set dummy $ac_prog; ac_word=$2 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5230 $as_echo_n "checking for $ac_word... " >&6; } 5231 if ${ac_cv_prog_ISAINFO+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233 else 5234 if test -n "$ISAINFO"; then 5235 ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test. 5236 else 5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5238 for as_dir in $PATH 5239 do 5240 IFS=$as_save_IFS 5241 test -z "$as_dir" && as_dir=. 5242 for ac_exec_ext in '' $ac_executable_extensions; do 5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5244 ac_cv_prog_ISAINFO="$ac_prog" 5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5246 break 2 5247 fi 5248 done 5249 done 5250 IFS=$as_save_IFS 5251 5252 fi 5253 fi 5254 ISAINFO=$ac_cv_prog_ISAINFO 5255 if test -n "$ISAINFO"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5 5257 $as_echo "$ISAINFO" >&6; } 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 $as_echo "no" >&6; } 5261 fi 5262 5263 5264 test -n "$ISAINFO" && break 5265 done 5266 test -n "$ISAINFO" || ISAINFO="no" 5267 5268 if test "x$ISAINFO" != "xno"; then : 5269 isainfo_b=`${ISAINFO} -b` 5270 else 5271 isainfo_b="x" 5272 fi 5273 5274 if test "$isainfo_b" != "x"; then : 5275 5276 5277 isainfo_k=`${ISAINFO} -k` 5278 5279 if test "x$ac_enable_64bit" = "xyes"; then : 5280 5281 5282 5283 $as_echo "#define SOLARIS_64BIT_ENABLED 1" >>confdefs.h 5284 5285 if test "x$libdir" = "x\${exec_prefix}/lib"; then : 5286 5287 libdir="${libdir}/${isainfo_k}" 5288 5289 fi 5290 5291 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then : 5292 5293 CXXFLAGS="${CXXFLAGS} -m64" 5294 ac_cv_env_CXXFLAGS_set=set 5295 ac_cv_env_CXXFLAGS_value='-m64' 5296 5297 fi 5298 5299 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then : 5300 5301 CFLAGS="${CFLAGS} -m64" 5302 ac_cv_env_CFLAGS_set=set 5303 ac_cv_env_CFLAGS_value='-m64' 5304 5305 fi 5306 5307 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then : 5308 5309 CXXFLAGS="-xmemalign=8s ${CXXFLAGS}" 5310 5311 fi 5312 5313 fi 5314 5315 fi 5316 ;; 5317 esac 5318 5319 5320 5321 # Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd 5322 # to the link 5323 case `pwd` in 5324 *\ * | *\ *) 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5327 esac 5328 5329 5330 5331 macro_version='2.4.2' 5332 macro_revision='1.3337' 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 ltmain="$ac_aux_dir/ltmain.sh" 5347 5348 # Backslashify metacharacters that are still active within 5349 # double-quoted strings. 5350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5351 5352 # Same as above, but do not quote variable references. 5353 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5354 5355 # Sed substitution to delay expansion of an escaped shell variable in a 5356 # double_quote_subst'ed string. 5357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5358 5359 # Sed substitution to delay expansion of an escaped single quote. 5360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5361 5362 # Sed substitution to avoid accidental globbing in evaled expressions 5363 no_glob_subst='s/\*/\\\*/g' 5364 5365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5368 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5370 $as_echo_n "checking how to print strings... " >&6; } 5371 # Test print first, because it will be a builtin if present. 5372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5374 ECHO='print -r --' 5375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5376 ECHO='printf %s\n' 5377 else 5378 # Use this function as a fallback that always works. 5379 func_fallback_echo () 5380 { 5381 eval 'cat <<_LTECHO_EOF 5382 $1 5383 _LTECHO_EOF' 5384 } 5385 ECHO='func_fallback_echo' 5386 fi 5387 5388 # func_echo_all arg... 5389 # Invoke $ECHO with all args, space-separated. 5390 func_echo_all () 5391 { 5392 $ECHO "" 5393 } 5394 5395 case "$ECHO" in 5396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5397 $as_echo "printf" >&6; } ;; 5398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5399 $as_echo "print -r" >&6; } ;; 5400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5401 $as_echo "cat" >&6; } ;; 5402 esac 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5418 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5419 if ${ac_cv_path_SED+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421 else 5422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5423 for ac_i in 1 2 3 4 5 6 7; do 5424 ac_script="$ac_script$as_nl$ac_script" 5425 done 5426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5427 { ac_script=; unset ac_script;} 5428 if test -z "$SED"; then 5429 ac_path_SED_found=false 5430 # Loop through the user's path and test for each of PROGNAME-LIST 5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432 for as_dir in $PATH 5433 do 5434 IFS=$as_save_IFS 5435 test -z "$as_dir" && as_dir=. 5436 for ac_prog in sed gsed; do 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5439 as_fn_executable_p "$ac_path_SED" || continue 5440 # Check for GNU ac_path_SED and select it if it is found. 5441 # Check for GNU $ac_path_SED 5442 case `"$ac_path_SED" --version 2>&1` in 5443 *GNU*) 5444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5445 *) 5446 ac_count=0 5447 $as_echo_n 0123456789 >"conftest.in" 5448 while : 5449 do 5450 cat "conftest.in" "conftest.in" >"conftest.tmp" 5451 mv "conftest.tmp" "conftest.in" 5452 cp "conftest.in" "conftest.nl" 5453 $as_echo '' >> "conftest.nl" 5454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5456 as_fn_arith $ac_count + 1 && ac_count=$as_val 5457 if test $ac_count -gt ${ac_path_SED_max-0}; then 5458 # Best one so far, save it but keep looking for a better one 5459 ac_cv_path_SED="$ac_path_SED" 5460 ac_path_SED_max=$ac_count 5461 fi 5462 # 10*(2^10) chars as input seems more than enough 5463 test $ac_count -gt 10 && break 5464 done 5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5466 esac 5467 5468 $ac_path_SED_found && break 3 5469 done 5470 done 5471 done 5472 IFS=$as_save_IFS 5473 if test -z "$ac_cv_path_SED"; then 5474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5475 fi 5476 else 5477 ac_cv_path_SED=$SED 5478 fi 5479 5480 fi 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5482 $as_echo "$ac_cv_path_SED" >&6; } 5483 SED="$ac_cv_path_SED" 5484 rm -f conftest.sed 5485 5486 test -z "$SED" && SED=sed 5487 Xsed="$SED -e 1s/^X//" 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5500 $as_echo_n "checking for fgrep... " >&6; } 5501 if ${ac_cv_path_FGREP+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503 else 5504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5505 then ac_cv_path_FGREP="$GREP -F" 5506 else 5507 if test -z "$FGREP"; then 5508 ac_path_FGREP_found=false 5509 # Loop through the user's path and test for each of PROGNAME-LIST 5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5512 do 5513 IFS=$as_save_IFS 5514 test -z "$as_dir" && as_dir=. 5515 for ac_prog in fgrep; do 5516 for ac_exec_ext in '' $ac_executable_extensions; do 5517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5518 as_fn_executable_p "$ac_path_FGREP" || continue 5519 # Check for GNU ac_path_FGREP and select it if it is found. 5520 # Check for GNU $ac_path_FGREP 5521 case `"$ac_path_FGREP" --version 2>&1` in 5522 *GNU*) 5523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5524 *) 5525 ac_count=0 5526 $as_echo_n 0123456789 >"conftest.in" 5527 while : 5528 do 5529 cat "conftest.in" "conftest.in" >"conftest.tmp" 5530 mv "conftest.tmp" "conftest.in" 5531 cp "conftest.in" "conftest.nl" 5532 $as_echo 'FGREP' >> "conftest.nl" 5533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5535 as_fn_arith $ac_count + 1 && ac_count=$as_val 5536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5537 # Best one so far, save it but keep looking for a better one 5538 ac_cv_path_FGREP="$ac_path_FGREP" 5539 ac_path_FGREP_max=$ac_count 5540 fi 5541 # 10*(2^10) chars as input seems more than enough 5542 test $ac_count -gt 10 && break 5543 done 5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5545 esac 5546 5547 $ac_path_FGREP_found && break 3 5548 done 5549 done 5550 done 5551 IFS=$as_save_IFS 5552 if test -z "$ac_cv_path_FGREP"; then 5553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5554 fi 5555 else 5556 ac_cv_path_FGREP=$FGREP 5557 fi 5558 5559 fi 5560 fi 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5562 $as_echo "$ac_cv_path_FGREP" >&6; } 5563 FGREP="$ac_cv_path_FGREP" 5564 5565 5566 test -z "$GREP" && GREP=grep 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 # Check whether --with-gnu-ld was given. 5587 if test "${with_gnu_ld+set}" = set; then : 5588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5589 else 5590 with_gnu_ld=no 5591 fi 5592 5593 ac_prog=ld 5594 if test "$GCC" = yes; then 5595 # Check if gcc -print-prog-name=ld gives a path. 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5597 $as_echo_n "checking for ld used by $CC... " >&6; } 5598 case $host in 5599 *-*-mingw*) 5600 # gcc leaves a trailing carriage return which upsets mingw 5601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5602 *) 5603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5604 esac 5605 case $ac_prog in 5606 # Accept absolute paths. 5607 [\\/]* | ?:[\\/]*) 5608 re_direlt='/[^/][^/]*/\.\./' 5609 # Canonicalize the pathname of ld 5610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5613 done 5614 test -z "$LD" && LD="$ac_prog" 5615 ;; 5616 "") 5617 # If it fails, then pretend we aren't using GCC. 5618 ac_prog=ld 5619 ;; 5620 *) 5621 # If it is relative, then search for the first ld in PATH. 5622 with_gnu_ld=unknown 5623 ;; 5624 esac 5625 elif test "$with_gnu_ld" = yes; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5627 $as_echo_n "checking for GNU ld... " >&6; } 5628 else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5630 $as_echo_n "checking for non-GNU ld... " >&6; } 5631 fi 5632 if ${lt_cv_path_LD+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634 else 5635 if test -z "$LD"; then 5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5637 for ac_dir in $PATH; do 5638 IFS="$lt_save_ifs" 5639 test -z "$ac_dir" && ac_dir=. 5640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5641 lt_cv_path_LD="$ac_dir/$ac_prog" 5642 # Check to see if the program is GNU ld. I'd rather use --version, 5643 # but apparently some variants of GNU ld only accept -v. 5644 # Break only if it was the GNU/non-GNU ld that we prefer. 5645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5646 *GNU* | *'with BFD'*) 5647 test "$with_gnu_ld" != no && break 5648 ;; 5649 *) 5650 test "$with_gnu_ld" != yes && break 5651 ;; 5652 esac 5653 fi 5654 done 5655 IFS="$lt_save_ifs" 5656 else 5657 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5658 fi 5659 fi 5660 5661 LD="$lt_cv_path_LD" 5662 if test -n "$LD"; then 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5664 $as_echo "$LD" >&6; } 5665 else 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5667 $as_echo "no" >&6; } 5668 fi 5669 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5671 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5672 if ${lt_cv_prog_gnu_ld+:} false; then : 5673 $as_echo_n "(cached) " >&6 5674 else 5675 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5676 case `$LD -v 2>&1 </dev/null` in 5677 *GNU* | *'with BFD'*) 5678 lt_cv_prog_gnu_ld=yes 5679 ;; 5680 *) 5681 lt_cv_prog_gnu_ld=no 5682 ;; 5683 esac 5684 fi 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5686 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5687 with_gnu_ld=$lt_cv_prog_gnu_ld 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5698 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5699 if ${lt_cv_path_NM+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701 else 5702 if test -n "$NM"; then 5703 # Let the user override the test. 5704 lt_cv_path_NM="$NM" 5705 else 5706 lt_nm_to_check="${ac_tool_prefix}nm" 5707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5708 lt_nm_to_check="$lt_nm_to_check nm" 5709 fi 5710 for lt_tmp_nm in $lt_nm_to_check; do 5711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5713 IFS="$lt_save_ifs" 5714 test -z "$ac_dir" && ac_dir=. 5715 tmp_nm="$ac_dir/$lt_tmp_nm" 5716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5717 # Check to see if the nm accepts a BSD-compat flag. 5718 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5719 # nm: unknown option "B" ignored 5720 # Tru64's nm complains that /dev/null is an invalid object file 5721 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5722 */dev/null* | *'Invalid file or object type'*) 5723 lt_cv_path_NM="$tmp_nm -B" 5724 break 5725 ;; 5726 *) 5727 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5728 */dev/null*) 5729 lt_cv_path_NM="$tmp_nm -p" 5730 break 5731 ;; 5732 *) 5733 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5734 continue # so that we can try to find one that supports BSD flags 5735 ;; 5736 esac 5737 ;; 5738 esac 5739 fi 5740 done 5741 IFS="$lt_save_ifs" 5742 done 5743 : ${lt_cv_path_NM=no} 5744 fi 5745 fi 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5747 $as_echo "$lt_cv_path_NM" >&6; } 5748 if test "$lt_cv_path_NM" != "no"; then 5749 NM="$lt_cv_path_NM" 5750 else 5751 # Didn't find any BSD compatible name lister, look for dumpbin. 5752 if test -n "$DUMPBIN"; then : 5753 # Let the user override the test. 5754 else 5755 if test -n "$ac_tool_prefix"; then 5756 for ac_prog in dumpbin "link -dump" 5757 do 5758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761 $as_echo_n "checking for $ac_word... " >&6; } 5762 if ${ac_cv_prog_DUMPBIN+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764 else 5765 if test -n "$DUMPBIN"; then 5766 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5767 else 5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769 for as_dir in $PATH 5770 do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5775 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779 done 5780 done 5781 IFS=$as_save_IFS 5782 5783 fi 5784 fi 5785 DUMPBIN=$ac_cv_prog_DUMPBIN 5786 if test -n "$DUMPBIN"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5788 $as_echo "$DUMPBIN" >&6; } 5789 else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791 $as_echo "no" >&6; } 5792 fi 5793 5794 5795 test -n "$DUMPBIN" && break 5796 done 5797 fi 5798 if test -z "$DUMPBIN"; then 5799 ac_ct_DUMPBIN=$DUMPBIN 5800 for ac_prog in dumpbin "link -dump" 5801 do 5802 # Extract the first word of "$ac_prog", so it can be a program name with args. 5803 set dummy $ac_prog; ac_word=$2 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5805 $as_echo_n "checking for $ac_word... " >&6; } 5806 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808 else 5809 if test -n "$ac_ct_DUMPBIN"; then 5810 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5811 else 5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813 for as_dir in $PATH 5814 do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823 done 5824 done 5825 IFS=$as_save_IFS 5826 5827 fi 5828 fi 5829 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5830 if test -n "$ac_ct_DUMPBIN"; then 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5832 $as_echo "$ac_ct_DUMPBIN" >&6; } 5833 else 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5835 $as_echo "no" >&6; } 5836 fi 5837 5838 5839 test -n "$ac_ct_DUMPBIN" && break 5840 done 5841 5842 if test "x$ac_ct_DUMPBIN" = x; then 5843 DUMPBIN=":" 5844 else 5845 case $cross_compiling:$ac_tool_warned in 5846 yes:) 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5849 ac_tool_warned=yes ;; 5850 esac 5851 DUMPBIN=$ac_ct_DUMPBIN 5852 fi 5853 fi 5854 5855 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5856 *COFF*) 5857 DUMPBIN="$DUMPBIN -symbols" 5858 ;; 5859 *) 5860 DUMPBIN=: 5861 ;; 5862 esac 5863 fi 5864 5865 if test "$DUMPBIN" != ":"; then 5866 NM="$DUMPBIN" 5867 fi 5868 fi 5869 test -z "$NM" && NM=nm 5870 5871 5872 5873 5874 5875 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5877 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5878 if ${lt_cv_nm_interface+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880 else 5881 lt_cv_nm_interface="BSD nm" 5882 echo "int some_variable = 0;" > conftest.$ac_ext 5883 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5884 (eval "$ac_compile" 2>conftest.err) 5885 cat conftest.err >&5 5886 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5887 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5888 cat conftest.err >&5 5889 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5890 cat conftest.out >&5 5891 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5892 lt_cv_nm_interface="MS dumpbin" 5893 fi 5894 rm -f conftest* 5895 fi 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5897 $as_echo "$lt_cv_nm_interface" >&6; } 5898 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5900 $as_echo_n "checking whether ln -s works... " >&6; } 5901 LN_S=$as_ln_s 5902 if test "$LN_S" = "ln -s"; then 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5904 $as_echo "yes" >&6; } 5905 else 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5907 $as_echo "no, using $LN_S" >&6; } 5908 fi 5909 5910 # find the maximum length of command line arguments 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5912 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5913 if ${lt_cv_sys_max_cmd_len+:} false; then : 5914 $as_echo_n "(cached) " >&6 5915 else 5916 i=0 5917 teststring="ABCD" 5918 5919 case $build_os in 5920 msdosdjgpp*) 5921 # On DJGPP, this test can blow up pretty badly due to problems in libc 5922 # (any single argument exceeding 2000 bytes causes a buffer overrun 5923 # during glob expansion). Even if it were fixed, the result of this 5924 # check would be larger than it should be. 5925 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5926 ;; 5927 5928 gnu*) 5929 # Under GNU Hurd, this test is not required because there is 5930 # no limit to the length of command line arguments. 5931 # Libtool will interpret -1 as no limit whatsoever 5932 lt_cv_sys_max_cmd_len=-1; 5933 ;; 5934 5935 cygwin* | mingw* | cegcc*) 5936 # On Win9x/ME, this test blows up -- it succeeds, but takes 5937 # about 5 minutes as the teststring grows exponentially. 5938 # Worse, since 9x/ME are not pre-emptively multitasking, 5939 # you end up with a "frozen" computer, even though with patience 5940 # the test eventually succeeds (with a max line length of 256k). 5941 # Instead, let's just punt: use the minimum linelength reported by 5942 # all of the supported platforms: 8192 (on NT/2K/XP). 5943 lt_cv_sys_max_cmd_len=8192; 5944 ;; 5945 5946 mint*) 5947 # On MiNT this can take a long time and run out of memory. 5948 lt_cv_sys_max_cmd_len=8192; 5949 ;; 5950 5951 amigaos*) 5952 # On AmigaOS with pdksh, this test takes hours, literally. 5953 # So we just punt and use a minimum line length of 8192. 5954 lt_cv_sys_max_cmd_len=8192; 5955 ;; 5956 5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5958 # This has been around since 386BSD, at least. Likely further. 5959 if test -x /sbin/sysctl; then 5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5961 elif test -x /usr/sbin/sysctl; then 5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5963 else 5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5965 fi 5966 # And add a safety zone 5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5969 ;; 5970 5971 interix*) 5972 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5973 lt_cv_sys_max_cmd_len=196608 5974 ;; 5975 5976 os2*) 5977 # The test takes a long time on OS/2. 5978 lt_cv_sys_max_cmd_len=8192 5979 ;; 5980 5981 osf*) 5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5984 # nice to cause kernel panics so lets avoid the loop below. 5985 # First set a reasonable default. 5986 lt_cv_sys_max_cmd_len=16384 5987 # 5988 if test -x /sbin/sysconfig; then 5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5990 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5991 esac 5992 fi 5993 ;; 5994 sco3.2v5*) 5995 lt_cv_sys_max_cmd_len=102400 5996 ;; 5997 sysv5* | sco5v6* | sysv4.2uw2*) 5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5999 if test -n "$kargmax"; then 6000 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6001 else 6002 lt_cv_sys_max_cmd_len=32768 6003 fi 6004 ;; 6005 *) 6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6007 if test -n "$lt_cv_sys_max_cmd_len" && \ 6008 test undefined != "$lt_cv_sys_max_cmd_len"; then 6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6011 else 6012 # Make teststring a little bigger before we do anything with it. 6013 # a 1K string should be a reasonable start. 6014 for i in 1 2 3 4 5 6 7 8 ; do 6015 teststring=$teststring$teststring 6016 done 6017 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6018 # If test is not a shell built-in, we'll probably end up computing a 6019 # maximum length that is only half of the actual maximum length, but 6020 # we can't tell. 6021 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6022 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6023 test $i != 17 # 1/2 MB should be enough 6024 do 6025 i=`expr $i + 1` 6026 teststring=$teststring$teststring 6027 done 6028 # Only check the string length outside the loop. 6029 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6030 teststring= 6031 # Add a significant safety factor because C++ compilers can tack on 6032 # massive amounts of additional arguments before passing them to the 6033 # linker. It appears as though 1/2 is a usable value. 6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6035 fi 6036 ;; 6037 esac 6038 6039 fi 6040 6041 if test -n $lt_cv_sys_max_cmd_len ; then 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6043 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6044 else 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6046 $as_echo "none" >&6; } 6047 fi 6048 max_cmd_len=$lt_cv_sys_max_cmd_len 6049 6050 6051 6052 6053 6054 6055 : ${CP="cp -f"} 6056 : ${MV="mv -f"} 6057 : ${RM="rm -f"} 6058 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6060 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6061 # Try some XSI features 6062 xsi_shell=no 6063 ( _lt_dummy="a/b/c" 6064 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6065 = c,a/b,b/c, \ 6066 && eval 'test $(( 1 + 1 )) -eq 2 \ 6067 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6068 && xsi_shell=yes 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6070 $as_echo "$xsi_shell" >&6; } 6071 6072 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6074 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6075 lt_shell_append=no 6076 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6077 >/dev/null 2>&1 \ 6078 && lt_shell_append=yes 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6080 $as_echo "$lt_shell_append" >&6; } 6081 6082 6083 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6084 lt_unset=unset 6085 else 6086 lt_unset=false 6087 fi 6088 6089 6090 6091 6092 6093 # test EBCDIC or ASCII 6094 case `echo X|tr X '\101'` in 6095 A) # ASCII based system 6096 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6097 lt_SP2NL='tr \040 \012' 6098 lt_NL2SP='tr \015\012 \040\040' 6099 ;; 6100 *) # EBCDIC based system 6101 lt_SP2NL='tr \100 \n' 6102 lt_NL2SP='tr \r\n \100\100' 6103 ;; 6104 esac 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6115 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6116 if ${lt_cv_to_host_file_cmd+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118 else 6119 case $host in 6120 *-*-mingw* ) 6121 case $build in 6122 *-*-mingw* ) # actually msys 6123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6124 ;; 6125 *-*-cygwin* ) 6126 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6127 ;; 6128 * ) # otherwise, assume *nix 6129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6130 ;; 6131 esac 6132 ;; 6133 *-*-cygwin* ) 6134 case $build in 6135 *-*-mingw* ) # actually msys 6136 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6137 ;; 6138 *-*-cygwin* ) 6139 lt_cv_to_host_file_cmd=func_convert_file_noop 6140 ;; 6141 * ) # otherwise, assume *nix 6142 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6143 ;; 6144 esac 6145 ;; 6146 * ) # unhandled hosts (and "normal" native builds) 6147 lt_cv_to_host_file_cmd=func_convert_file_noop 6148 ;; 6149 esac 6150 6151 fi 6152 6153 to_host_file_cmd=$lt_cv_to_host_file_cmd 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6155 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 6156 6157 6158 6159 6160 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6162 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6163 if ${lt_cv_to_tool_file_cmd+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165 else 6166 #assume ordinary cross tools, or native build. 6167 lt_cv_to_tool_file_cmd=func_convert_file_noop 6168 case $host in 6169 *-*-mingw* ) 6170 case $build in 6171 *-*-mingw* ) # actually msys 6172 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6173 ;; 6174 esac 6175 ;; 6176 esac 6177 6178 fi 6179 6180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6182 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6183 6184 6185 6186 6187 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6189 $as_echo_n "checking for $LD option to reload object files... " >&6; } 6190 if ${lt_cv_ld_reload_flag+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192 else 6193 lt_cv_ld_reload_flag='-r' 6194 fi 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6196 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6197 reload_flag=$lt_cv_ld_reload_flag 6198 case $reload_flag in 6199 "" | " "*) ;; 6200 *) reload_flag=" $reload_flag" ;; 6201 esac 6202 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6203 case $host_os in 6204 cygwin* | mingw* | pw32* | cegcc*) 6205 if test "$GCC" != yes; then 6206 reload_cmds=false 6207 fi 6208 ;; 6209 darwin*) 6210 if test "$GCC" = yes; then 6211 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6212 else 6213 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6214 fi 6215 ;; 6216 esac 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6228 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230 $as_echo_n "checking for $ac_word... " >&6; } 6231 if ${ac_cv_prog_OBJDUMP+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233 else 6234 if test -n "$OBJDUMP"; then 6235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6236 else 6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238 for as_dir in $PATH 6239 do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248 done 6249 done 6250 IFS=$as_save_IFS 6251 6252 fi 6253 fi 6254 OBJDUMP=$ac_cv_prog_OBJDUMP 6255 if test -n "$OBJDUMP"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6257 $as_echo "$OBJDUMP" >&6; } 6258 else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260 $as_echo "no" >&6; } 6261 fi 6262 6263 6264 fi 6265 if test -z "$ac_cv_prog_OBJDUMP"; then 6266 ac_ct_OBJDUMP=$OBJDUMP 6267 # Extract the first word of "objdump", so it can be a program name with args. 6268 set dummy objdump; ac_word=$2 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270 $as_echo_n "checking for $ac_word... " >&6; } 6271 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273 else 6274 if test -n "$ac_ct_OBJDUMP"; then 6275 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6276 else 6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278 for as_dir in $PATH 6279 do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6284 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288 done 6289 done 6290 IFS=$as_save_IFS 6291 6292 fi 6293 fi 6294 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6295 if test -n "$ac_ct_OBJDUMP"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6297 $as_echo "$ac_ct_OBJDUMP" >&6; } 6298 else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300 $as_echo "no" >&6; } 6301 fi 6302 6303 if test "x$ac_ct_OBJDUMP" = x; then 6304 OBJDUMP="false" 6305 else 6306 case $cross_compiling:$ac_tool_warned in 6307 yes:) 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6310 ac_tool_warned=yes ;; 6311 esac 6312 OBJDUMP=$ac_ct_OBJDUMP 6313 fi 6314 else 6315 OBJDUMP="$ac_cv_prog_OBJDUMP" 6316 fi 6317 6318 test -z "$OBJDUMP" && OBJDUMP=objdump 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6329 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 6330 if ${lt_cv_deplibs_check_method+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332 else 6333 lt_cv_file_magic_cmd='$MAGIC_CMD' 6334 lt_cv_file_magic_test_file= 6335 lt_cv_deplibs_check_method='unknown' 6336 # Need to set the preceding variable on all platforms that support 6337 # interlibrary dependencies. 6338 # 'none' -- dependencies not supported. 6339 # `unknown' -- same as none, but documents that we really don't know. 6340 # 'pass_all' -- all dependencies passed with no checks. 6341 # 'test_compile' -- check by making test program. 6342 # 'file_magic [[regex]]' -- check by looking for files in library path 6343 # which responds to the $file_magic_cmd with a given extended regex. 6344 # If you have `file' or equivalent on your system and you're not sure 6345 # whether `pass_all' will *always* work, you probably want this one. 6346 6347 case $host_os in 6348 aix[4-9]*) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352 beos*) 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355 6356 bsdi[45]*) 6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6358 lt_cv_file_magic_cmd='/usr/bin/file -L' 6359 lt_cv_file_magic_test_file=/shlib/libc.so 6360 ;; 6361 6362 cygwin*) 6363 # func_win32_libid is a shell function defined in ltmain.sh 6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6365 lt_cv_file_magic_cmd='func_win32_libid' 6366 ;; 6367 6368 mingw* | pw32*) 6369 # Base MSYS/MinGW do not provide the 'file' command needed by 6370 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6371 # unless we find 'file', for example because we are cross-compiling. 6372 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6373 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6375 lt_cv_file_magic_cmd='func_win32_libid' 6376 else 6377 # Keep this pattern in sync with the one in func_win32_libid. 6378 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6379 lt_cv_file_magic_cmd='$OBJDUMP -f' 6380 fi 6381 ;; 6382 6383 cegcc*) 6384 # use the weaker test based on 'objdump'. See mingw*. 6385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6386 lt_cv_file_magic_cmd='$OBJDUMP -f' 6387 ;; 6388 6389 darwin* | rhapsody*) 6390 lt_cv_deplibs_check_method=pass_all 6391 ;; 6392 6393 freebsd* | dragonfly*) 6394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6395 case $host_cpu in 6396 i*86 ) 6397 # Not sure whether the presence of OpenBSD here was a mistake. 6398 # Let's accept both of them until this is cleared up. 6399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6400 lt_cv_file_magic_cmd=/usr/bin/file 6401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6402 ;; 6403 esac 6404 else 6405 lt_cv_deplibs_check_method=pass_all 6406 fi 6407 ;; 6408 6409 haiku*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 6413 hpux10.20* | hpux11*) 6414 lt_cv_file_magic_cmd=/usr/bin/file 6415 case $host_cpu in 6416 ia64*) 6417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6419 ;; 6420 hppa*64*) 6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6423 ;; 6424 *) 6425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6426 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6427 ;; 6428 esac 6429 ;; 6430 6431 interix[3-9]*) 6432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6434 ;; 6435 6436 irix5* | irix6* | nonstopux*) 6437 case $LD in 6438 *-32|*"-32 ") libmagic=32-bit;; 6439 *-n32|*"-n32 ") libmagic=N32;; 6440 *-64|*"-64 ") libmagic=64-bit;; 6441 *) libmagic=never-match;; 6442 esac 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 6446 # This must be glibc/ELF. 6447 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6448 lt_cv_deplibs_check_method=pass_all 6449 ;; 6450 6451 netbsd* | netbsdelf*-gnu) 6452 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6454 else 6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6456 fi 6457 ;; 6458 6459 newos6*) 6460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6461 lt_cv_file_magic_cmd=/usr/bin/file 6462 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6463 ;; 6464 6465 *nto* | *qnx*) 6466 lt_cv_deplibs_check_method=pass_all 6467 ;; 6468 6469 openbsd*) 6470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6472 else 6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6474 fi 6475 ;; 6476 6477 osf3* | osf4* | osf5*) 6478 lt_cv_deplibs_check_method=pass_all 6479 ;; 6480 6481 rdos*) 6482 lt_cv_deplibs_check_method=pass_all 6483 ;; 6484 6485 solaris*) 6486 lt_cv_deplibs_check_method=pass_all 6487 ;; 6488 6489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6490 lt_cv_deplibs_check_method=pass_all 6491 ;; 6492 6493 sysv4 | sysv4.3*) 6494 case $host_vendor in 6495 motorola) 6496 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]' 6497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6498 ;; 6499 ncr) 6500 lt_cv_deplibs_check_method=pass_all 6501 ;; 6502 sequent) 6503 lt_cv_file_magic_cmd='/bin/file' 6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6505 ;; 6506 sni) 6507 lt_cv_file_magic_cmd='/bin/file' 6508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6509 lt_cv_file_magic_test_file=/lib/libc.so 6510 ;; 6511 siemens) 6512 lt_cv_deplibs_check_method=pass_all 6513 ;; 6514 pc) 6515 lt_cv_deplibs_check_method=pass_all 6516 ;; 6517 esac 6518 ;; 6519 6520 tpf*) 6521 lt_cv_deplibs_check_method=pass_all 6522 ;; 6523 esac 6524 6525 fi 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6527 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6528 6529 file_magic_glob= 6530 want_nocaseglob=no 6531 if test "$build" = "$host"; then 6532 case $host_os in 6533 mingw* | pw32*) 6534 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6535 want_nocaseglob=yes 6536 else 6537 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6538 fi 6539 ;; 6540 esac 6541 fi 6542 6543 file_magic_cmd=$lt_cv_file_magic_cmd 6544 deplibs_check_method=$lt_cv_deplibs_check_method 6545 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 if test -n "$ac_tool_prefix"; then 6569 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6570 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6572 $as_echo_n "checking for $ac_word... " >&6; } 6573 if ${ac_cv_prog_DLLTOOL+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575 else 6576 if test -n "$DLLTOOL"; then 6577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6578 else 6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6580 for as_dir in $PATH 6581 do 6582 IFS=$as_save_IFS 6583 test -z "$as_dir" && as_dir=. 6584 for ac_exec_ext in '' $ac_executable_extensions; do 6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6586 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6588 break 2 6589 fi 6590 done 6591 done 6592 IFS=$as_save_IFS 6593 6594 fi 6595 fi 6596 DLLTOOL=$ac_cv_prog_DLLTOOL 6597 if test -n "$DLLTOOL"; then 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6599 $as_echo "$DLLTOOL" >&6; } 6600 else 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602 $as_echo "no" >&6; } 6603 fi 6604 6605 6606 fi 6607 if test -z "$ac_cv_prog_DLLTOOL"; then 6608 ac_ct_DLLTOOL=$DLLTOOL 6609 # Extract the first word of "dlltool", so it can be a program name with args. 6610 set dummy dlltool; ac_word=$2 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6612 $as_echo_n "checking for $ac_word... " >&6; } 6613 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615 else 6616 if test -n "$ac_ct_DLLTOOL"; then 6617 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6618 else 6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6620 for as_dir in $PATH 6621 do 6622 IFS=$as_save_IFS 6623 test -z "$as_dir" && as_dir=. 6624 for ac_exec_ext in '' $ac_executable_extensions; do 6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6626 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6628 break 2 6629 fi 6630 done 6631 done 6632 IFS=$as_save_IFS 6633 6634 fi 6635 fi 6636 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6637 if test -n "$ac_ct_DLLTOOL"; then 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6639 $as_echo "$ac_ct_DLLTOOL" >&6; } 6640 else 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6642 $as_echo "no" >&6; } 6643 fi 6644 6645 if test "x$ac_ct_DLLTOOL" = x; then 6646 DLLTOOL="false" 6647 else 6648 case $cross_compiling:$ac_tool_warned in 6649 yes:) 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6652 ac_tool_warned=yes ;; 6653 esac 6654 DLLTOOL=$ac_ct_DLLTOOL 6655 fi 6656 else 6657 DLLTOOL="$ac_cv_prog_DLLTOOL" 6658 fi 6659 6660 test -z "$DLLTOOL" && DLLTOOL=dlltool 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6672 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6673 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675 else 6676 lt_cv_sharedlib_from_linklib_cmd='unknown' 6677 6678 case $host_os in 6679 cygwin* | mingw* | pw32* | cegcc*) 6680 # two different shell functions defined in ltmain.sh 6681 # decide which to use based on capabilities of $DLLTOOL 6682 case `$DLLTOOL --help 2>&1` in 6683 *--identify-strict*) 6684 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6685 ;; 6686 *) 6687 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6688 ;; 6689 esac 6690 ;; 6691 *) 6692 # fallback: assume linklib IS sharedlib 6693 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6694 ;; 6695 esac 6696 6697 fi 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6699 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6700 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6701 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6702 6703 6704 6705 6706 6707 6708 6709 if test -n "$ac_tool_prefix"; then 6710 for ac_prog in ar 6711 do 6712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715 $as_echo_n "checking for $ac_word... " >&6; } 6716 if ${ac_cv_prog_AR+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718 else 6719 if test -n "$AR"; then 6720 ac_cv_prog_AR="$AR" # Let the user override the test. 6721 else 6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6723 for as_dir in $PATH 6724 do 6725 IFS=$as_save_IFS 6726 test -z "$as_dir" && as_dir=. 6727 for ac_exec_ext in '' $ac_executable_extensions; do 6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6729 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6731 break 2 6732 fi 6733 done 6734 done 6735 IFS=$as_save_IFS 6736 6737 fi 6738 fi 6739 AR=$ac_cv_prog_AR 6740 if test -n "$AR"; then 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6742 $as_echo "$AR" >&6; } 6743 else 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6745 $as_echo "no" >&6; } 6746 fi 6747 6748 6749 test -n "$AR" && break 6750 done 6751 fi 6752 if test -z "$AR"; then 6753 ac_ct_AR=$AR 6754 for ac_prog in ar 6755 do 6756 # Extract the first word of "$ac_prog", so it can be a program name with args. 6757 set dummy $ac_prog; ac_word=$2 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759 $as_echo_n "checking for $ac_word... " >&6; } 6760 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762 else 6763 if test -n "$ac_ct_AR"; then 6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6765 else 6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767 for as_dir in $PATH 6768 do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_ac_ct_AR="$ac_prog" 6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777 done 6778 done 6779 IFS=$as_save_IFS 6780 6781 fi 6782 fi 6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6784 if test -n "$ac_ct_AR"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6786 $as_echo "$ac_ct_AR" >&6; } 6787 else 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789 $as_echo "no" >&6; } 6790 fi 6791 6792 6793 test -n "$ac_ct_AR" && break 6794 done 6795 6796 if test "x$ac_ct_AR" = x; then 6797 AR="false" 6798 else 6799 case $cross_compiling:$ac_tool_warned in 6800 yes:) 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6803 ac_tool_warned=yes ;; 6804 esac 6805 AR=$ac_ct_AR 6806 fi 6807 fi 6808 6809 : ${AR=ar} 6810 : ${AR_FLAGS=cru} 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6823 $as_echo_n "checking for archiver @FILE support... " >&6; } 6824 if ${lt_cv_ar_at_file+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826 else 6827 lt_cv_ar_at_file=no 6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829 /* end confdefs.h. */ 6830 6831 int 6832 main () 6833 { 6834 6835 ; 6836 return 0; 6837 } 6838 _ACEOF 6839 if ac_fn_cxx_try_compile "$LINENO"; then : 6840 echo conftest.$ac_objext > conftest.lst 6841 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6843 (eval $lt_ar_try) 2>&5 6844 ac_status=$? 6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6846 test $ac_status = 0; } 6847 if test "$ac_status" -eq 0; then 6848 # Ensure the archiver fails upon bogus file names. 6849 rm -f conftest.$ac_objext libconftest.a 6850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6851 (eval $lt_ar_try) 2>&5 6852 ac_status=$? 6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6854 test $ac_status = 0; } 6855 if test "$ac_status" -ne 0; then 6856 lt_cv_ar_at_file=@ 6857 fi 6858 fi 6859 rm -f conftest.* libconftest.a 6860 6861 fi 6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6863 6864 fi 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6866 $as_echo "$lt_cv_ar_at_file" >&6; } 6867 6868 if test "x$lt_cv_ar_at_file" = xno; then 6869 archiver_list_spec= 6870 else 6871 archiver_list_spec=$lt_cv_ar_at_file 6872 fi 6873 6874 6875 6876 6877 6878 6879 6880 if test -n "$ac_tool_prefix"; then 6881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6882 set dummy ${ac_tool_prefix}strip; ac_word=$2 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884 $as_echo_n "checking for $ac_word... " >&6; } 6885 if ${ac_cv_prog_STRIP+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887 else 6888 if test -n "$STRIP"; then 6889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6890 else 6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6892 for as_dir in $PATH 6893 do 6894 IFS=$as_save_IFS 6895 test -z "$as_dir" && as_dir=. 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6898 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6900 break 2 6901 fi 6902 done 6903 done 6904 IFS=$as_save_IFS 6905 6906 fi 6907 fi 6908 STRIP=$ac_cv_prog_STRIP 6909 if test -n "$STRIP"; then 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6911 $as_echo "$STRIP" >&6; } 6912 else 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6914 $as_echo "no" >&6; } 6915 fi 6916 6917 6918 fi 6919 if test -z "$ac_cv_prog_STRIP"; then 6920 ac_ct_STRIP=$STRIP 6921 # Extract the first word of "strip", so it can be a program name with args. 6922 set dummy strip; ac_word=$2 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6924 $as_echo_n "checking for $ac_word... " >&6; } 6925 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927 else 6928 if test -n "$ac_ct_STRIP"; then 6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6930 else 6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932 for as_dir in $PATH 6933 do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 for ac_exec_ext in '' $ac_executable_extensions; do 6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6938 ac_cv_prog_ac_ct_STRIP="strip" 6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6940 break 2 6941 fi 6942 done 6943 done 6944 IFS=$as_save_IFS 6945 6946 fi 6947 fi 6948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6949 if test -n "$ac_ct_STRIP"; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6951 $as_echo "$ac_ct_STRIP" >&6; } 6952 else 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6954 $as_echo "no" >&6; } 6955 fi 6956 6957 if test "x$ac_ct_STRIP" = x; then 6958 STRIP=":" 6959 else 6960 case $cross_compiling:$ac_tool_warned in 6961 yes:) 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6964 ac_tool_warned=yes ;; 6965 esac 6966 STRIP=$ac_ct_STRIP 6967 fi 6968 else 6969 STRIP="$ac_cv_prog_STRIP" 6970 fi 6971 6972 test -z "$STRIP" && STRIP=: 6973 6974 6975 6976 6977 6978 6979 if test -n "$ac_tool_prefix"; then 6980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983 $as_echo_n "checking for $ac_word... " >&6; } 6984 if ${ac_cv_prog_RANLIB+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986 else 6987 if test -n "$RANLIB"; then 6988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6989 else 6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991 for as_dir in $PATH 6992 do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001 done 7002 done 7003 IFS=$as_save_IFS 7004 7005 fi 7006 fi 7007 RANLIB=$ac_cv_prog_RANLIB 7008 if test -n "$RANLIB"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7010 $as_echo "$RANLIB" >&6; } 7011 else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013 $as_echo "no" >&6; } 7014 fi 7015 7016 7017 fi 7018 if test -z "$ac_cv_prog_RANLIB"; then 7019 ac_ct_RANLIB=$RANLIB 7020 # Extract the first word of "ranlib", so it can be a program name with args. 7021 set dummy ranlib; ac_word=$2 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023 $as_echo_n "checking for $ac_word... " >&6; } 7024 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026 else 7027 if test -n "$ac_ct_RANLIB"; then 7028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7029 else 7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031 for as_dir in $PATH 7032 do 7033 IFS=$as_save_IFS 7034 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_ac_ct_RANLIB="ranlib" 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041 done 7042 done 7043 IFS=$as_save_IFS 7044 7045 fi 7046 fi 7047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7048 if test -n "$ac_ct_RANLIB"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7050 $as_echo "$ac_ct_RANLIB" >&6; } 7051 else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053 $as_echo "no" >&6; } 7054 fi 7055 7056 if test "x$ac_ct_RANLIB" = x; then 7057 RANLIB=":" 7058 else 7059 case $cross_compiling:$ac_tool_warned in 7060 yes:) 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7063 ac_tool_warned=yes ;; 7064 esac 7065 RANLIB=$ac_ct_RANLIB 7066 fi 7067 else 7068 RANLIB="$ac_cv_prog_RANLIB" 7069 fi 7070 7071 test -z "$RANLIB" && RANLIB=: 7072 7073 7074 7075 7076 7077 7078 # Determine commands to create old-style static archives. 7079 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7080 old_postinstall_cmds='chmod 644 $oldlib' 7081 old_postuninstall_cmds= 7082 7083 if test -n "$RANLIB"; then 7084 case $host_os in 7085 openbsd*) 7086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7087 ;; 7088 *) 7089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7090 ;; 7091 esac 7092 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7093 fi 7094 7095 case $host_os in 7096 darwin*) 7097 lock_old_archive_extraction=yes ;; 7098 *) 7099 lock_old_archive_extraction=no ;; 7100 esac 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 # If no C compiler was specified, use CC. 7141 LTCC=${LTCC-"$CC"} 7142 7143 # If no C compiler flags were specified, use CFLAGS. 7144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7145 7146 # Allow CC to be a program name with arguments. 7147 compiler=$CC 7148 7149 7150 # Check for command to grab the raw symbol name followed by C symbol from nm. 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7152 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7153 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155 else 7156 7157 # These are sane defaults that work on at least a few old systems. 7158 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7159 7160 # Character class describing NM global symbol codes. 7161 symcode='[BCDEGRST]' 7162 7163 # Regexp to match symbols that can be accessed directly from C. 7164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7165 7166 # Define system-specific variables. 7167 case $host_os in 7168 aix*) 7169 symcode='[BCDT]' 7170 ;; 7171 cygwin* | mingw* | pw32* | cegcc*) 7172 symcode='[ABCDGISTW]' 7173 ;; 7174 hpux*) 7175 if test "$host_cpu" = ia64; then 7176 symcode='[ABCDEGRST]' 7177 fi 7178 ;; 7179 irix* | nonstopux*) 7180 symcode='[BCDEGRST]' 7181 ;; 7182 osf*) 7183 symcode='[BCDEGQRST]' 7184 ;; 7185 solaris*) 7186 symcode='[BDRT]' 7187 ;; 7188 sco3.2v5*) 7189 symcode='[DT]' 7190 ;; 7191 sysv4.2uw2*) 7192 symcode='[DT]' 7193 ;; 7194 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7195 symcode='[ABDT]' 7196 ;; 7197 sysv4) 7198 symcode='[DFNSTU]' 7199 ;; 7200 esac 7201 7202 # If we're using GNU nm, then use its standard symbol codes. 7203 case `$NM -V 2>&1` in 7204 *GNU* | *'with BFD'*) 7205 symcode='[ABCDGIRSTW]' ;; 7206 esac 7207 7208 # Transform an extracted symbol line into a proper C declaration. 7209 # Some systems (esp. on ia64) link data and code symbols differently, 7210 # so use this general approach. 7211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7212 7213 # Transform an extracted symbol line into symbol name and symbol address 7214 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7215 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'" 7216 7217 # Handle CRLF in mingw tool chain 7218 opt_cr= 7219 case $build_os in 7220 mingw*) 7221 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7222 ;; 7223 esac 7224 7225 # Try without a prefix underscore, then with it. 7226 for ac_symprfx in "" "_"; do 7227 7228 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7229 symxfrm="\\1 $ac_symprfx\\2 \\2" 7230 7231 # Write the raw and C identifiers. 7232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7233 # Fake it for dumpbin and say T for any non-static function 7234 # and D for any global variable. 7235 # Also find C++ and __fastcall symbols from MSVC++, 7236 # which start with @ or ?. 7237 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7238 " {last_section=section; section=\$ 3};"\ 7239 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7240 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7241 " \$ 0!~/External *\|/{next};"\ 7242 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7243 " {if(hide[section]) next};"\ 7244 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7245 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7246 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7247 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7248 " ' prfx=^$ac_symprfx" 7249 else 7250 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7251 fi 7252 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7253 7254 # Check to see that the pipe works correctly. 7255 pipe_works=no 7256 7257 rm -f conftest* 7258 cat > conftest.$ac_ext <<_LT_EOF 7259 #ifdef __cplusplus 7260 extern "C" { 7261 #endif 7262 char nm_test_var; 7263 void nm_test_func(void); 7264 void nm_test_func(void){} 7265 #ifdef __cplusplus 7266 } 7267 #endif 7268 int main(){nm_test_var='a';nm_test_func();return(0);} 7269 _LT_EOF 7270 7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7272 (eval $ac_compile) 2>&5 7273 ac_status=$? 7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7275 test $ac_status = 0; }; then 7276 # Now try to grab the symbols. 7277 nlist=conftest.nm 7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7279 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7280 ac_status=$? 7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7282 test $ac_status = 0; } && test -s "$nlist"; then 7283 # Try sorting and uniquifying the output. 7284 if sort "$nlist" | uniq > "$nlist"T; then 7285 mv -f "$nlist"T "$nlist" 7286 else 7287 rm -f "$nlist"T 7288 fi 7289 7290 # Make sure that we snagged all the symbols we need. 7291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7293 cat <<_LT_EOF > conftest.$ac_ext 7294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7295 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7296 /* DATA imports from DLLs on WIN32 con't be const, because runtime 7297 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7298 # define LT_DLSYM_CONST 7299 #elif defined(__osf__) 7300 /* This system does not cope well with relocations in const data. */ 7301 # define LT_DLSYM_CONST 7302 #else 7303 # define LT_DLSYM_CONST const 7304 #endif 7305 7306 #ifdef __cplusplus 7307 extern "C" { 7308 #endif 7309 7310 _LT_EOF 7311 # Now generate the symbol file. 7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7313 7314 cat <<_LT_EOF >> conftest.$ac_ext 7315 7316 /* The mapping between symbol names and symbols. */ 7317 LT_DLSYM_CONST struct { 7318 const char *name; 7319 void *address; 7320 } 7321 lt__PROGRAM__LTX_preloaded_symbols[] = 7322 { 7323 { "@PROGRAM@", (void *) 0 }, 7324 _LT_EOF 7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7326 cat <<\_LT_EOF >> conftest.$ac_ext 7327 {0, (void *) 0} 7328 }; 7329 7330 /* This works around a problem in FreeBSD linker */ 7331 #ifdef FREEBSD_WORKAROUND 7332 static const void *lt_preloaded_setup() { 7333 return lt__PROGRAM__LTX_preloaded_symbols; 7334 } 7335 #endif 7336 7337 #ifdef __cplusplus 7338 } 7339 #endif 7340 _LT_EOF 7341 # Now try linking the two files. 7342 mv conftest.$ac_objext conftstm.$ac_objext 7343 lt_globsym_save_LIBS=$LIBS 7344 lt_globsym_save_CFLAGS=$CFLAGS 7345 LIBS="conftstm.$ac_objext" 7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7348 (eval $ac_link) 2>&5 7349 ac_status=$? 7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7352 pipe_works=yes 7353 fi 7354 LIBS=$lt_globsym_save_LIBS 7355 CFLAGS=$lt_globsym_save_CFLAGS 7356 else 7357 echo "cannot find nm_test_func in $nlist" >&5 7358 fi 7359 else 7360 echo "cannot find nm_test_var in $nlist" >&5 7361 fi 7362 else 7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7364 fi 7365 else 7366 echo "$progname: failed program was:" >&5 7367 cat conftest.$ac_ext >&5 7368 fi 7369 rm -rf conftest* conftst* 7370 7371 # Do not use the global_symbol_pipe unless it works. 7372 if test "$pipe_works" = yes; then 7373 break 7374 else 7375 lt_cv_sys_global_symbol_pipe= 7376 fi 7377 done 7378 7379 fi 7380 7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7382 lt_cv_sys_global_symbol_to_cdecl= 7383 fi 7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7386 $as_echo "failed" >&6; } 7387 else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7389 $as_echo "ok" >&6; } 7390 fi 7391 7392 # Response file support. 7393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7394 nm_file_list_spec='@' 7395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7396 nm_file_list_spec='@' 7397 fi 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7426 $as_echo_n "checking for sysroot... " >&6; } 7427 7428 # Check whether --with-sysroot was given. 7429 if test "${with_sysroot+set}" = set; then : 7430 withval=$with_sysroot; 7431 else 7432 with_sysroot=no 7433 fi 7434 7435 7436 lt_sysroot= 7437 case ${with_sysroot} in #( 7438 yes) 7439 if test "$GCC" = yes; then 7440 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7441 fi 7442 ;; #( 7443 /*) 7444 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7445 ;; #( 7446 no|'') 7447 ;; #( 7448 *) 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7450 $as_echo "${with_sysroot}" >&6; } 7451 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7452 ;; 7453 esac 7454 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7456 $as_echo "${lt_sysroot:-no}" >&6; } 7457 7458 7459 7460 7461 7462 7463 # Check whether --enable-libtool-lock was given. 7464 if test "${enable_libtool_lock+set}" = set; then : 7465 enableval=$enable_libtool_lock; 7466 fi 7467 7468 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7469 7470 # Some flags need to be propagated to the compiler or linker for good 7471 # libtool support. 7472 case $host in 7473 ia64-*-hpux*) 7474 # Find out which ABI we are using. 7475 echo 'int i;' > conftest.$ac_ext 7476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7477 (eval $ac_compile) 2>&5 7478 ac_status=$? 7479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7480 test $ac_status = 0; }; then 7481 case `/usr/bin/file conftest.$ac_objext` in 7482 *ELF-32*) 7483 HPUX_IA64_MODE="32" 7484 ;; 7485 *ELF-64*) 7486 HPUX_IA64_MODE="64" 7487 ;; 7488 esac 7489 fi 7490 rm -rf conftest* 7491 ;; 7492 *-*-irix6*) 7493 # Find out which ABI we are using. 7494 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7496 (eval $ac_compile) 2>&5 7497 ac_status=$? 7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7499 test $ac_status = 0; }; then 7500 if test "$lt_cv_prog_gnu_ld" = yes; then 7501 case `/usr/bin/file conftest.$ac_objext` in 7502 *32-bit*) 7503 LD="${LD-ld} -melf32bsmip" 7504 ;; 7505 *N32*) 7506 LD="${LD-ld} -melf32bmipn32" 7507 ;; 7508 *64-bit*) 7509 LD="${LD-ld} -melf64bmip" 7510 ;; 7511 esac 7512 else 7513 case `/usr/bin/file conftest.$ac_objext` in 7514 *32-bit*) 7515 LD="${LD-ld} -32" 7516 ;; 7517 *N32*) 7518 LD="${LD-ld} -n32" 7519 ;; 7520 *64-bit*) 7521 LD="${LD-ld} -64" 7522 ;; 7523 esac 7524 fi 7525 fi 7526 rm -rf conftest* 7527 ;; 7528 7529 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7530 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7531 # Find out which ABI we are using. 7532 echo 'int i;' > conftest.$ac_ext 7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7534 (eval $ac_compile) 2>&5 7535 ac_status=$? 7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7537 test $ac_status = 0; }; then 7538 case `/usr/bin/file conftest.o` in 7539 *32-bit*) 7540 case $host in 7541 x86_64-*kfreebsd*-gnu) 7542 LD="${LD-ld} -m elf_i386_fbsd" 7543 ;; 7544 x86_64-*linux*) 7545 case `/usr/bin/file conftest.o` in 7546 *x86-64*) 7547 LD="${LD-ld} -m elf32_x86_64" 7548 ;; 7549 *) 7550 LD="${LD-ld} -m elf_i386" 7551 ;; 7552 esac 7553 ;; 7554 powerpc64le-*) 7555 LD="${LD-ld} -m elf32lppclinux" 7556 ;; 7557 powerpc64-*) 7558 LD="${LD-ld} -m elf32ppclinux" 7559 ;; 7560 s390x-*linux*) 7561 LD="${LD-ld} -m elf_s390" 7562 ;; 7563 sparc64-*linux*) 7564 LD="${LD-ld} -m elf32_sparc" 7565 ;; 7566 esac 7567 ;; 7568 *64-bit*) 7569 case $host in 7570 x86_64-*kfreebsd*-gnu) 7571 LD="${LD-ld} -m elf_x86_64_fbsd" 7572 ;; 7573 x86_64-*linux*) 7574 LD="${LD-ld} -m elf_x86_64" 7575 ;; 7576 powerpcle-*) 7577 LD="${LD-ld} -m elf64lppc" 7578 ;; 7579 powerpc-*) 7580 LD="${LD-ld} -m elf64ppc" 7581 ;; 7582 s390*-*linux*|s390*-*tpf*) 7583 LD="${LD-ld} -m elf64_s390" 7584 ;; 7585 sparc*-*linux*) 7586 LD="${LD-ld} -m elf64_sparc" 7587 ;; 7588 esac 7589 ;; 7590 esac 7591 fi 7592 rm -rf conftest* 7593 ;; 7594 7595 *-*-sco3.2v5*) 7596 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7597 SAVE_CFLAGS="$CFLAGS" 7598 CFLAGS="$CFLAGS -belf" 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7600 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7601 if ${lt_cv_cc_needs_belf+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603 else 7604 ac_ext=c 7605 ac_cpp='$CPP $CPPFLAGS' 7606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7609 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611 /* end confdefs.h. */ 7612 7613 int 7614 main () 7615 { 7616 7617 ; 7618 return 0; 7619 } 7620 _ACEOF 7621 if ac_fn_c_try_link "$LINENO"; then : 7622 lt_cv_cc_needs_belf=yes 7623 else 7624 lt_cv_cc_needs_belf=no 7625 fi 7626 rm -f core conftest.err conftest.$ac_objext \ 7627 conftest$ac_exeext conftest.$ac_ext 7628 ac_ext=c 7629 ac_cpp='$CPP $CPPFLAGS' 7630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7633 7634 fi 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7636 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7639 CFLAGS="$SAVE_CFLAGS" 7640 fi 7641 ;; 7642 *-*solaris*) 7643 # Find out which ABI we are using. 7644 echo 'int i;' > conftest.$ac_ext 7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7646 (eval $ac_compile) 2>&5 7647 ac_status=$? 7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7649 test $ac_status = 0; }; then 7650 case `/usr/bin/file conftest.o` in 7651 *64-bit*) 7652 case $lt_cv_prog_gnu_ld in 7653 yes*) 7654 case $host in 7655 i?86-*-solaris*) 7656 LD="${LD-ld} -m elf_x86_64" 7657 ;; 7658 sparc*-*-solaris*) 7659 LD="${LD-ld} -m elf64_sparc" 7660 ;; 7661 esac 7662 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7663 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7664 LD="${LD-ld}_sol2" 7665 fi 7666 ;; 7667 *) 7668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7669 LD="${LD-ld} -64" 7670 fi 7671 ;; 7672 esac 7673 ;; 7674 esac 7675 fi 7676 rm -rf conftest* 7677 ;; 7678 esac 7679 7680 need_locks="$enable_libtool_lock" 7681 7682 if test -n "$ac_tool_prefix"; then 7683 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7684 set dummy ${ac_tool_prefix}mt; ac_word=$2 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686 $as_echo_n "checking for $ac_word... " >&6; } 7687 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689 else 7690 if test -n "$MANIFEST_TOOL"; then 7691 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7692 else 7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7694 for as_dir in $PATH 7695 do 7696 IFS=$as_save_IFS 7697 test -z "$as_dir" && as_dir=. 7698 for ac_exec_ext in '' $ac_executable_extensions; do 7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7700 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7702 break 2 7703 fi 7704 done 7705 done 7706 IFS=$as_save_IFS 7707 7708 fi 7709 fi 7710 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7711 if test -n "$MANIFEST_TOOL"; then 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7713 $as_echo "$MANIFEST_TOOL" >&6; } 7714 else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7716 $as_echo "no" >&6; } 7717 fi 7718 7719 7720 fi 7721 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7722 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7723 # Extract the first word of "mt", so it can be a program name with args. 7724 set dummy mt; ac_word=$2 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7726 $as_echo_n "checking for $ac_word... " >&6; } 7727 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729 else 7730 if test -n "$ac_ct_MANIFEST_TOOL"; then 7731 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7732 else 7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734 for as_dir in $PATH 7735 do 7736 IFS=$as_save_IFS 7737 test -z "$as_dir" && as_dir=. 7738 for ac_exec_ext in '' $ac_executable_extensions; do 7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7740 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7742 break 2 7743 fi 7744 done 7745 done 7746 IFS=$as_save_IFS 7747 7748 fi 7749 fi 7750 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7751 if test -n "$ac_ct_MANIFEST_TOOL"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7753 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7754 else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756 $as_echo "no" >&6; } 7757 fi 7758 7759 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7760 MANIFEST_TOOL=":" 7761 else 7762 case $cross_compiling:$ac_tool_warned in 7763 yes:) 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7766 ac_tool_warned=yes ;; 7767 esac 7768 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7769 fi 7770 else 7771 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7772 fi 7773 7774 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7776 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7777 if ${lt_cv_path_mainfest_tool+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779 else 7780 lt_cv_path_mainfest_tool=no 7781 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7782 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7783 cat conftest.err >&5 7784 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7785 lt_cv_path_mainfest_tool=yes 7786 fi 7787 rm -f conftest* 7788 fi 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7790 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7791 if test "x$lt_cv_path_mainfest_tool" != xyes; then 7792 MANIFEST_TOOL=: 7793 fi 7794 7795 7796 7797 7798 7799 7800 case $host_os in 7801 rhapsody* | darwin*) 7802 if test -n "$ac_tool_prefix"; then 7803 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7804 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7806 $as_echo_n "checking for $ac_word... " >&6; } 7807 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809 else 7810 if test -n "$DSYMUTIL"; then 7811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7812 else 7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7814 for as_dir in $PATH 7815 do 7816 IFS=$as_save_IFS 7817 test -z "$as_dir" && as_dir=. 7818 for ac_exec_ext in '' $ac_executable_extensions; do 7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7822 break 2 7823 fi 7824 done 7825 done 7826 IFS=$as_save_IFS 7827 7828 fi 7829 fi 7830 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7831 if test -n "$DSYMUTIL"; then 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7833 $as_echo "$DSYMUTIL" >&6; } 7834 else 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7836 $as_echo "no" >&6; } 7837 fi 7838 7839 7840 fi 7841 if test -z "$ac_cv_prog_DSYMUTIL"; then 7842 ac_ct_DSYMUTIL=$DSYMUTIL 7843 # Extract the first word of "dsymutil", so it can be a program name with args. 7844 set dummy dsymutil; ac_word=$2 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7846 $as_echo_n "checking for $ac_word... " >&6; } 7847 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849 else 7850 if test -n "$ac_ct_DSYMUTIL"; then 7851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7852 else 7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7854 for as_dir in $PATH 7855 do 7856 IFS=$as_save_IFS 7857 test -z "$as_dir" && as_dir=. 7858 for ac_exec_ext in '' $ac_executable_extensions; do 7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7862 break 2 7863 fi 7864 done 7865 done 7866 IFS=$as_save_IFS 7867 7868 fi 7869 fi 7870 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7871 if test -n "$ac_ct_DSYMUTIL"; then 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7873 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7874 else 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7876 $as_echo "no" >&6; } 7877 fi 7878 7879 if test "x$ac_ct_DSYMUTIL" = x; then 7880 DSYMUTIL=":" 7881 else 7882 case $cross_compiling:$ac_tool_warned in 7883 yes:) 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7886 ac_tool_warned=yes ;; 7887 esac 7888 DSYMUTIL=$ac_ct_DSYMUTIL 7889 fi 7890 else 7891 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7892 fi 7893 7894 if test -n "$ac_tool_prefix"; then 7895 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7896 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7898 $as_echo_n "checking for $ac_word... " >&6; } 7899 if ${ac_cv_prog_NMEDIT+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901 else 7902 if test -n "$NMEDIT"; then 7903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7904 else 7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906 for as_dir in $PATH 7907 do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916 done 7917 done 7918 IFS=$as_save_IFS 7919 7920 fi 7921 fi 7922 NMEDIT=$ac_cv_prog_NMEDIT 7923 if test -n "$NMEDIT"; then 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7925 $as_echo "$NMEDIT" >&6; } 7926 else 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7928 $as_echo "no" >&6; } 7929 fi 7930 7931 7932 fi 7933 if test -z "$ac_cv_prog_NMEDIT"; then 7934 ac_ct_NMEDIT=$NMEDIT 7935 # Extract the first word of "nmedit", so it can be a program name with args. 7936 set dummy nmedit; ac_word=$2 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7938 $as_echo_n "checking for $ac_word... " >&6; } 7939 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941 else 7942 if test -n "$ac_ct_NMEDIT"; then 7943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7944 else 7945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7946 for as_dir in $PATH 7947 do 7948 IFS=$as_save_IFS 7949 test -z "$as_dir" && as_dir=. 7950 for ac_exec_ext in '' $ac_executable_extensions; do 7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7952 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7954 break 2 7955 fi 7956 done 7957 done 7958 IFS=$as_save_IFS 7959 7960 fi 7961 fi 7962 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7963 if test -n "$ac_ct_NMEDIT"; then 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7965 $as_echo "$ac_ct_NMEDIT" >&6; } 7966 else 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7968 $as_echo "no" >&6; } 7969 fi 7970 7971 if test "x$ac_ct_NMEDIT" = x; then 7972 NMEDIT=":" 7973 else 7974 case $cross_compiling:$ac_tool_warned in 7975 yes:) 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7978 ac_tool_warned=yes ;; 7979 esac 7980 NMEDIT=$ac_ct_NMEDIT 7981 fi 7982 else 7983 NMEDIT="$ac_cv_prog_NMEDIT" 7984 fi 7985 7986 if test -n "$ac_tool_prefix"; then 7987 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7988 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7990 $as_echo_n "checking for $ac_word... " >&6; } 7991 if ${ac_cv_prog_LIPO+:} false; then : 7992 $as_echo_n "(cached) " >&6 7993 else 7994 if test -n "$LIPO"; then 7995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7996 else 7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7998 for as_dir in $PATH 7999 do 8000 IFS=$as_save_IFS 8001 test -z "$as_dir" && as_dir=. 8002 for ac_exec_ext in '' $ac_executable_extensions; do 8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8006 break 2 8007 fi 8008 done 8009 done 8010 IFS=$as_save_IFS 8011 8012 fi 8013 fi 8014 LIPO=$ac_cv_prog_LIPO 8015 if test -n "$LIPO"; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8017 $as_echo "$LIPO" >&6; } 8018 else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020 $as_echo "no" >&6; } 8021 fi 8022 8023 8024 fi 8025 if test -z "$ac_cv_prog_LIPO"; then 8026 ac_ct_LIPO=$LIPO 8027 # Extract the first word of "lipo", so it can be a program name with args. 8028 set dummy lipo; ac_word=$2 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8030 $as_echo_n "checking for $ac_word... " >&6; } 8031 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8032 $as_echo_n "(cached) " >&6 8033 else 8034 if test -n "$ac_ct_LIPO"; then 8035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8036 else 8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8038 for as_dir in $PATH 8039 do 8040 IFS=$as_save_IFS 8041 test -z "$as_dir" && as_dir=. 8042 for ac_exec_ext in '' $ac_executable_extensions; do 8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8044 ac_cv_prog_ac_ct_LIPO="lipo" 8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8046 break 2 8047 fi 8048 done 8049 done 8050 IFS=$as_save_IFS 8051 8052 fi 8053 fi 8054 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8055 if test -n "$ac_ct_LIPO"; then 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8057 $as_echo "$ac_ct_LIPO" >&6; } 8058 else 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8060 $as_echo "no" >&6; } 8061 fi 8062 8063 if test "x$ac_ct_LIPO" = x; then 8064 LIPO=":" 8065 else 8066 case $cross_compiling:$ac_tool_warned in 8067 yes:) 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8070 ac_tool_warned=yes ;; 8071 esac 8072 LIPO=$ac_ct_LIPO 8073 fi 8074 else 8075 LIPO="$ac_cv_prog_LIPO" 8076 fi 8077 8078 if test -n "$ac_tool_prefix"; then 8079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8080 set dummy ${ac_tool_prefix}otool; ac_word=$2 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082 $as_echo_n "checking for $ac_word... " >&6; } 8083 if ${ac_cv_prog_OTOOL+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085 else 8086 if test -n "$OTOOL"; then 8087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8088 else 8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090 for as_dir in $PATH 8091 do 8092 IFS=$as_save_IFS 8093 test -z "$as_dir" && as_dir=. 8094 for ac_exec_ext in '' $ac_executable_extensions; do 8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8098 break 2 8099 fi 8100 done 8101 done 8102 IFS=$as_save_IFS 8103 8104 fi 8105 fi 8106 OTOOL=$ac_cv_prog_OTOOL 8107 if test -n "$OTOOL"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8109 $as_echo "$OTOOL" >&6; } 8110 else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112 $as_echo "no" >&6; } 8113 fi 8114 8115 8116 fi 8117 if test -z "$ac_cv_prog_OTOOL"; then 8118 ac_ct_OTOOL=$OTOOL 8119 # Extract the first word of "otool", so it can be a program name with args. 8120 set dummy otool; ac_word=$2 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8122 $as_echo_n "checking for $ac_word... " >&6; } 8123 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125 else 8126 if test -n "$ac_ct_OTOOL"; then 8127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8128 else 8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8130 for as_dir in $PATH 8131 do 8132 IFS=$as_save_IFS 8133 test -z "$as_dir" && as_dir=. 8134 for ac_exec_ext in '' $ac_executable_extensions; do 8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8136 ac_cv_prog_ac_ct_OTOOL="otool" 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8138 break 2 8139 fi 8140 done 8141 done 8142 IFS=$as_save_IFS 8143 8144 fi 8145 fi 8146 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8147 if test -n "$ac_ct_OTOOL"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8149 $as_echo "$ac_ct_OTOOL" >&6; } 8150 else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152 $as_echo "no" >&6; } 8153 fi 8154 8155 if test "x$ac_ct_OTOOL" = x; then 8156 OTOOL=":" 8157 else 8158 case $cross_compiling:$ac_tool_warned in 8159 yes:) 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8162 ac_tool_warned=yes ;; 8163 esac 8164 OTOOL=$ac_ct_OTOOL 8165 fi 8166 else 8167 OTOOL="$ac_cv_prog_OTOOL" 8168 fi 8169 8170 if test -n "$ac_tool_prefix"; then 8171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8172 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8174 $as_echo_n "checking for $ac_word... " >&6; } 8175 if ${ac_cv_prog_OTOOL64+:} false; then : 8176 $as_echo_n "(cached) " >&6 8177 else 8178 if test -n "$OTOOL64"; then 8179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8180 else 8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182 for as_dir in $PATH 8183 do 8184 IFS=$as_save_IFS 8185 test -z "$as_dir" && as_dir=. 8186 for ac_exec_ext in '' $ac_executable_extensions; do 8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8190 break 2 8191 fi 8192 done 8193 done 8194 IFS=$as_save_IFS 8195 8196 fi 8197 fi 8198 OTOOL64=$ac_cv_prog_OTOOL64 8199 if test -n "$OTOOL64"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8201 $as_echo "$OTOOL64" >&6; } 8202 else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204 $as_echo "no" >&6; } 8205 fi 8206 8207 8208 fi 8209 if test -z "$ac_cv_prog_OTOOL64"; then 8210 ac_ct_OTOOL64=$OTOOL64 8211 # Extract the first word of "otool64", so it can be a program name with args. 8212 set dummy otool64; ac_word=$2 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8214 $as_echo_n "checking for $ac_word... " >&6; } 8215 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217 else 8218 if test -n "$ac_ct_OTOOL64"; then 8219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8220 else 8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222 for as_dir in $PATH 8223 do 8224 IFS=$as_save_IFS 8225 test -z "$as_dir" && as_dir=. 8226 for ac_exec_ext in '' $ac_executable_extensions; do 8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8228 ac_cv_prog_ac_ct_OTOOL64="otool64" 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8230 break 2 8231 fi 8232 done 8233 done 8234 IFS=$as_save_IFS 8235 8236 fi 8237 fi 8238 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8239 if test -n "$ac_ct_OTOOL64"; then 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8241 $as_echo "$ac_ct_OTOOL64" >&6; } 8242 else 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8244 $as_echo "no" >&6; } 8245 fi 8246 8247 if test "x$ac_ct_OTOOL64" = x; then 8248 OTOOL64=":" 8249 else 8250 case $cross_compiling:$ac_tool_warned in 8251 yes:) 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8254 ac_tool_warned=yes ;; 8255 esac 8256 OTOOL64=$ac_ct_OTOOL64 8257 fi 8258 else 8259 OTOOL64="$ac_cv_prog_OTOOL64" 8260 fi 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8289 $as_echo_n "checking for -single_module linker flag... " >&6; } 8290 if ${lt_cv_apple_cc_single_mod+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292 else 8293 lt_cv_apple_cc_single_mod=no 8294 if test -z "${LT_MULTI_MODULE}"; then 8295 # By default we will add the -single_module flag. You can override 8296 # by either setting the environment variable LT_MULTI_MODULE 8297 # non-empty at configure time, or by adding -multi_module to the 8298 # link flags. 8299 rm -rf libconftest.dylib* 8300 echo "int foo(void){return 1;}" > conftest.c 8301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8302 -dynamiclib -Wl,-single_module conftest.c" >&5 8303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8305 _lt_result=$? 8306 # If there is a non-empty error log, and "single_module" 8307 # appears in it, assume the flag caused a linker warning 8308 if test -s conftest.err && $GREP single_module conftest.err; then 8309 cat conftest.err >&5 8310 # Otherwise, if the output was created with a 0 exit code from 8311 # the compiler, it worked. 8312 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8313 lt_cv_apple_cc_single_mod=yes 8314 else 8315 cat conftest.err >&5 8316 fi 8317 rm -rf libconftest.dylib* 8318 rm -f conftest.* 8319 fi 8320 fi 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8322 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8323 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8325 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8326 if ${lt_cv_ld_exported_symbols_list+:} false; then : 8327 $as_echo_n "(cached) " >&6 8328 else 8329 lt_cv_ld_exported_symbols_list=no 8330 save_LDFLAGS=$LDFLAGS 8331 echo "_main" > conftest.sym 8332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334 /* end confdefs.h. */ 8335 8336 int 8337 main () 8338 { 8339 8340 ; 8341 return 0; 8342 } 8343 _ACEOF 8344 if ac_fn_c_try_link "$LINENO"; then : 8345 lt_cv_ld_exported_symbols_list=yes 8346 else 8347 lt_cv_ld_exported_symbols_list=no 8348 fi 8349 rm -f core conftest.err conftest.$ac_objext \ 8350 conftest$ac_exeext conftest.$ac_ext 8351 LDFLAGS="$save_LDFLAGS" 8352 8353 fi 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8355 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8358 $as_echo_n "checking for -force_load linker flag... " >&6; } 8359 if ${lt_cv_ld_force_load+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361 else 8362 lt_cv_ld_force_load=no 8363 cat > conftest.c << _LT_EOF 8364 int forced_loaded() { return 2;} 8365 _LT_EOF 8366 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8367 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8368 echo "$AR cru libconftest.a conftest.o" >&5 8369 $AR cru libconftest.a conftest.o 2>&5 8370 echo "$RANLIB libconftest.a" >&5 8371 $RANLIB libconftest.a 2>&5 8372 cat > conftest.c << _LT_EOF 8373 int main() { return 0;} 8374 _LT_EOF 8375 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8376 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8377 _lt_result=$? 8378 if test -s conftest.err && $GREP force_load conftest.err; then 8379 cat conftest.err >&5 8380 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8381 lt_cv_ld_force_load=yes 8382 else 8383 cat conftest.err >&5 8384 fi 8385 rm -f conftest.err libconftest.a conftest conftest.c 8386 rm -rf conftest.dSYM 8387 8388 fi 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8390 $as_echo "$lt_cv_ld_force_load" >&6; } 8391 case $host_os in 8392 rhapsody* | darwin1.[012]) 8393 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8394 darwin1.*) 8395 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8396 darwin*) # darwin 5.x on 8397 # if running on 10.5 or later, the deployment target defaults 8398 # to the OS version, if on x86, and 10.4, the deployment 8399 # target defaults to 10.4. Don't you love it? 8400 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8401 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8403 10.[012]*) 8404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8405 10.*) 8406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8407 esac 8408 ;; 8409 esac 8410 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8411 _lt_dar_single_mod='$single_module' 8412 fi 8413 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8414 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8415 else 8416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8417 fi 8418 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8419 _lt_dsymutil='~$DSYMUTIL $lib || :' 8420 else 8421 _lt_dsymutil= 8422 fi 8423 ;; 8424 esac 8425 8426 for ac_header in dlfcn.h 8427 do : 8428 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8429 " 8430 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8431 cat >>confdefs.h <<_ACEOF 8432 #define HAVE_DLFCN_H 1 8433 _ACEOF 8434 8435 fi 8436 8437 done 8438 8439 8440 8441 func_stripname_cnf () 8442 { 8443 case ${2} in 8444 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8445 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8446 esac 8447 } # func_stripname_cnf 8448 8449 8450 8451 8452 8453 # Set options 8454 8455 8456 8457 enable_dlopen=no 8458 8459 8460 enable_win32_dll=no 8461 8462 8463 # Check whether --enable-shared was given. 8464 if test "${enable_shared+set}" = set; then : 8465 enableval=$enable_shared; p=${PACKAGE-default} 8466 case $enableval in 8467 yes) enable_shared=yes ;; 8468 no) enable_shared=no ;; 8469 *) 8470 enable_shared=no 8471 # Look at the argument we got. We use all the common list separators. 8472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8473 for pkg in $enableval; do 8474 IFS="$lt_save_ifs" 8475 if test "X$pkg" = "X$p"; then 8476 enable_shared=yes 8477 fi 8478 done 8479 IFS="$lt_save_ifs" 8480 ;; 8481 esac 8482 else 8483 enable_shared=yes 8484 fi 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 # Check whether --enable-static was given. 8495 if test "${enable_static+set}" = set; then : 8496 enableval=$enable_static; p=${PACKAGE-default} 8497 case $enableval in 8498 yes) enable_static=yes ;; 8499 no) enable_static=no ;; 8500 *) 8501 enable_static=no 8502 # Look at the argument we got. We use all the common list separators. 8503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8504 for pkg in $enableval; do 8505 IFS="$lt_save_ifs" 8506 if test "X$pkg" = "X$p"; then 8507 enable_static=yes 8508 fi 8509 done 8510 IFS="$lt_save_ifs" 8511 ;; 8512 esac 8513 else 8514 enable_static=yes 8515 fi 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 # Check whether --with-pic was given. 8527 if test "${with_pic+set}" = set; then : 8528 withval=$with_pic; lt_p=${PACKAGE-default} 8529 case $withval in 8530 yes|no) pic_mode=$withval ;; 8531 *) 8532 pic_mode=default 8533 # Look at the argument we got. We use all the common list separators. 8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8535 for lt_pkg in $withval; do 8536 IFS="$lt_save_ifs" 8537 if test "X$lt_pkg" = "X$lt_p"; then 8538 pic_mode=yes 8539 fi 8540 done 8541 IFS="$lt_save_ifs" 8542 ;; 8543 esac 8544 else 8545 pic_mode=default 8546 fi 8547 8548 8549 test -z "$pic_mode" && pic_mode=default 8550 8551 8552 8553 8554 8555 8556 8557 # Check whether --enable-fast-install was given. 8558 if test "${enable_fast_install+set}" = set; then : 8559 enableval=$enable_fast_install; p=${PACKAGE-default} 8560 case $enableval in 8561 yes) enable_fast_install=yes ;; 8562 no) enable_fast_install=no ;; 8563 *) 8564 enable_fast_install=no 8565 # Look at the argument we got. We use all the common list separators. 8566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8567 for pkg in $enableval; do 8568 IFS="$lt_save_ifs" 8569 if test "X$pkg" = "X$p"; then 8570 enable_fast_install=yes 8571 fi 8572 done 8573 IFS="$lt_save_ifs" 8574 ;; 8575 esac 8576 else 8577 enable_fast_install=yes 8578 fi 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 # This can be used to rebuild libtool when needed 8591 LIBTOOL_DEPS="$ltmain" 8592 8593 # Always use our own libtool. 8594 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 test -z "$LN_S" && LN_S="ln -s" 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 if test -n "${ZSH_VERSION+set}" ; then 8641 setopt NO_GLOB_SUBST 8642 fi 8643 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8645 $as_echo_n "checking for objdir... " >&6; } 8646 if ${lt_cv_objdir+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648 else 8649 rm -f .libs 2>/dev/null 8650 mkdir .libs 2>/dev/null 8651 if test -d .libs; then 8652 lt_cv_objdir=.libs 8653 else 8654 # MS-DOS does not allow filenames that begin with a dot. 8655 lt_cv_objdir=_libs 8656 fi 8657 rmdir .libs 2>/dev/null 8658 fi 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8660 $as_echo "$lt_cv_objdir" >&6; } 8661 objdir=$lt_cv_objdir 8662 8663 8664 8665 8666 8667 cat >>confdefs.h <<_ACEOF 8668 #define LT_OBJDIR "$lt_cv_objdir/" 8669 _ACEOF 8670 8671 8672 8673 8674 case $host_os in 8675 aix3*) 8676 # AIX sometimes has problems with the GCC collect2 program. For some 8677 # reason, if we set the COLLECT_NAMES environment variable, the problems 8678 # vanish in a puff of smoke. 8679 if test "X${COLLECT_NAMES+set}" != Xset; then 8680 COLLECT_NAMES= 8681 export COLLECT_NAMES 8682 fi 8683 ;; 8684 esac 8685 8686 # Global variables: 8687 ofile=libtool 8688 can_build_shared=yes 8689 8690 # All known linkers require a `.a' archive for static linking (except MSVC, 8691 # which needs '.lib'). 8692 libext=a 8693 8694 with_gnu_ld="$lt_cv_prog_gnu_ld" 8695 8696 old_CC="$CC" 8697 old_CFLAGS="$CFLAGS" 8698 8699 # Set sane defaults for various variables 8700 test -z "$CC" && CC=cc 8701 test -z "$LTCC" && LTCC=$CC 8702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8703 test -z "$LD" && LD=ld 8704 test -z "$ac_objext" && ac_objext=o 8705 8706 for cc_temp in $compiler""; do 8707 case $cc_temp in 8708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8710 \-*) ;; 8711 *) break;; 8712 esac 8713 done 8714 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8715 8716 8717 # Only perform the check for file, if the check method requires it 8718 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8719 case $deplibs_check_method in 8720 file_magic*) 8721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8723 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8724 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8725 $as_echo_n "(cached) " >&6 8726 else 8727 case $MAGIC_CMD in 8728 [\\/*] | ?:[\\/]*) 8729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8730 ;; 8731 *) 8732 lt_save_MAGIC_CMD="$MAGIC_CMD" 8733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8735 for ac_dir in $ac_dummy; do 8736 IFS="$lt_save_ifs" 8737 test -z "$ac_dir" && ac_dir=. 8738 if test -f $ac_dir/${ac_tool_prefix}file; then 8739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8740 if test -n "$file_magic_test_file"; then 8741 case $deplibs_check_method in 8742 "file_magic "*) 8743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8746 $EGREP "$file_magic_regex" > /dev/null; then 8747 : 8748 else 8749 cat <<_LT_EOF 1>&2 8750 8751 *** Warning: the command libtool uses to detect shared libraries, 8752 *** $file_magic_cmd, produces output that libtool cannot recognize. 8753 *** The result is that libtool may fail to recognize shared libraries 8754 *** as such. This will affect the creation of libtool libraries that 8755 *** depend on shared libraries, but programs linked with such libtool 8756 *** libraries will work regardless of this problem. Nevertheless, you 8757 *** may want to report the problem to your system manager and/or to 8758 *** bug-libtool@gnu.org 8759 8760 _LT_EOF 8761 fi ;; 8762 esac 8763 fi 8764 break 8765 fi 8766 done 8767 IFS="$lt_save_ifs" 8768 MAGIC_CMD="$lt_save_MAGIC_CMD" 8769 ;; 8770 esac 8771 fi 8772 8773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8774 if test -n "$MAGIC_CMD"; then 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8776 $as_echo "$MAGIC_CMD" >&6; } 8777 else 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8779 $as_echo "no" >&6; } 8780 fi 8781 8782 8783 8784 8785 8786 if test -z "$lt_cv_path_MAGIC_CMD"; then 8787 if test -n "$ac_tool_prefix"; then 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8789 $as_echo_n "checking for file... " >&6; } 8790 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792 else 8793 case $MAGIC_CMD in 8794 [\\/*] | ?:[\\/]*) 8795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8796 ;; 8797 *) 8798 lt_save_MAGIC_CMD="$MAGIC_CMD" 8799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8801 for ac_dir in $ac_dummy; do 8802 IFS="$lt_save_ifs" 8803 test -z "$ac_dir" && ac_dir=. 8804 if test -f $ac_dir/file; then 8805 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8806 if test -n "$file_magic_test_file"; then 8807 case $deplibs_check_method in 8808 "file_magic "*) 8809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8812 $EGREP "$file_magic_regex" > /dev/null; then 8813 : 8814 else 8815 cat <<_LT_EOF 1>&2 8816 8817 *** Warning: the command libtool uses to detect shared libraries, 8818 *** $file_magic_cmd, produces output that libtool cannot recognize. 8819 *** The result is that libtool may fail to recognize shared libraries 8820 *** as such. This will affect the creation of libtool libraries that 8821 *** depend on shared libraries, but programs linked with such libtool 8822 *** libraries will work regardless of this problem. Nevertheless, you 8823 *** may want to report the problem to your system manager and/or to 8824 *** bug-libtool@gnu.org 8825 8826 _LT_EOF 8827 fi ;; 8828 esac 8829 fi 8830 break 8831 fi 8832 done 8833 IFS="$lt_save_ifs" 8834 MAGIC_CMD="$lt_save_MAGIC_CMD" 8835 ;; 8836 esac 8837 fi 8838 8839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8840 if test -n "$MAGIC_CMD"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8842 $as_echo "$MAGIC_CMD" >&6; } 8843 else 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8845 $as_echo "no" >&6; } 8846 fi 8847 8848 8849 else 8850 MAGIC_CMD=: 8851 fi 8852 fi 8853 8854 fi 8855 ;; 8856 esac 8857 8858 # Use C for the default configuration in the libtool script 8859 8860 lt_save_CC="$CC" 8861 ac_ext=c 8862 ac_cpp='$CPP $CPPFLAGS' 8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8866 8867 8868 # Source file extension for C test sources. 8869 ac_ext=c 8870 8871 # Object file extension for compiled C test sources. 8872 objext=o 8873 objext=$objext 8874 8875 # Code to be used in simple compile tests 8876 lt_simple_compile_test_code="int some_variable = 0;" 8877 8878 # Code to be used in simple link tests 8879 lt_simple_link_test_code='int main(){return(0);}' 8880 8881 8882 8883 8884 8885 8886 8887 # If no C compiler was specified, use CC. 8888 LTCC=${LTCC-"$CC"} 8889 8890 # If no C compiler flags were specified, use CFLAGS. 8891 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8892 8893 # Allow CC to be a program name with arguments. 8894 compiler=$CC 8895 8896 # Save the default compiler, since it gets overwritten when the other 8897 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8898 compiler_DEFAULT=$CC 8899 8900 # save warnings/boilerplate of simple test code 8901 ac_outfile=conftest.$ac_objext 8902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8904 _lt_compiler_boilerplate=`cat conftest.err` 8905 $RM conftest* 8906 8907 ac_outfile=conftest.$ac_objext 8908 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8910 _lt_linker_boilerplate=`cat conftest.err` 8911 $RM -r conftest* 8912 8913 8914 ## CAVEAT EMPTOR: 8915 ## There is no encapsulation within the following macros, do not change 8916 ## the running order or otherwise move them around unless you know exactly 8917 ## what you are doing... 8918 if test -n "$compiler"; then 8919 8920 lt_prog_compiler_no_builtin_flag= 8921 8922 if test "$GCC" = yes; then 8923 case $cc_basename in 8924 nvcc*) 8925 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8926 *) 8927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8928 esac 8929 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8931 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8932 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934 else 8935 lt_cv_prog_compiler_rtti_exceptions=no 8936 ac_outfile=conftest.$ac_objext 8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8938 lt_compiler_flag="-fno-rtti -fno-exceptions" 8939 # Insert the option either (1) after the last *FLAGS variable, or 8940 # (2) before a word containing "conftest.", or (3) at the end. 8941 # Note that $ac_compile itself does not contain backslashes and begins 8942 # with a dollar sign (not a hyphen), so the echo should work correctly. 8943 # The option is referenced via a variable to avoid confusing sed. 8944 lt_compile=`echo "$ac_compile" | $SED \ 8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8947 -e 's:$: $lt_compiler_flag:'` 8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8949 (eval "$lt_compile" 2>conftest.err) 8950 ac_status=$? 8951 cat conftest.err >&5 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 if (exit $ac_status) && test -s "$ac_outfile"; then 8954 # The compiler can only warn and ignore the option if not recognized 8955 # So say no if there are warnings other than the usual output. 8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8959 lt_cv_prog_compiler_rtti_exceptions=yes 8960 fi 8961 fi 8962 $RM conftest* 8963 8964 fi 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8966 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8967 8968 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8970 else 8971 : 8972 fi 8973 8974 fi 8975 8976 8977 8978 8979 8980 8981 lt_prog_compiler_wl= 8982 lt_prog_compiler_pic= 8983 lt_prog_compiler_static= 8984 8985 8986 if test "$GCC" = yes; then 8987 lt_prog_compiler_wl='-Wl,' 8988 lt_prog_compiler_static='-static' 8989 8990 case $host_os in 8991 aix*) 8992 # All AIX code is PIC. 8993 if test "$host_cpu" = ia64; then 8994 # AIX 5 now supports IA64 processor 8995 lt_prog_compiler_static='-Bstatic' 8996 fi 8997 ;; 8998 8999 amigaos*) 9000 case $host_cpu in 9001 powerpc) 9002 # see comment about AmigaOS4 .so support 9003 lt_prog_compiler_pic='-fPIC' 9004 ;; 9005 m68k) 9006 # FIXME: we need at least 68020 code to build shared libraries, but 9007 # adding the `-m68020' flag to GCC prevents building anything better, 9008 # like `-m68040'. 9009 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9010 ;; 9011 esac 9012 ;; 9013 9014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9015 # PIC is the default for these OSes. 9016 ;; 9017 9018 mingw* | cygwin* | pw32* | os2* | cegcc*) 9019 # This hack is so that the source file can tell whether it is being 9020 # built for inclusion in a dll (and should export symbols for example). 9021 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9022 # (--disable-auto-import) libraries 9023 lt_prog_compiler_pic='-DDLL_EXPORT' 9024 ;; 9025 9026 darwin* | rhapsody*) 9027 # PIC is the default on this platform 9028 # Common symbols not allowed in MH_DYLIB files 9029 lt_prog_compiler_pic='-fno-common' 9030 ;; 9031 9032 haiku*) 9033 # PIC is the default for Haiku. 9034 # The "-static" flag exists, but is broken. 9035 lt_prog_compiler_static= 9036 ;; 9037 9038 hpux*) 9039 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9040 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9041 # sets the default TLS model and affects inlining. 9042 case $host_cpu in 9043 hppa*64*) 9044 # +Z the default 9045 ;; 9046 *) 9047 lt_prog_compiler_pic='-fPIC' 9048 ;; 9049 esac 9050 ;; 9051 9052 interix[3-9]*) 9053 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9054 # Instead, we relocate shared libraries at runtime. 9055 ;; 9056 9057 msdosdjgpp*) 9058 # Just because we use GCC doesn't mean we suddenly get shared libraries 9059 # on systems that don't support them. 9060 lt_prog_compiler_can_build_shared=no 9061 enable_shared=no 9062 ;; 9063 9064 *nto* | *qnx*) 9065 # QNX uses GNU C++, but need to define -shared option too, otherwise 9066 # it will coredump. 9067 lt_prog_compiler_pic='-fPIC -shared' 9068 ;; 9069 9070 sysv4*MP*) 9071 if test -d /usr/nec; then 9072 lt_prog_compiler_pic=-Kconform_pic 9073 fi 9074 ;; 9075 9076 *) 9077 lt_prog_compiler_pic='-fPIC' 9078 ;; 9079 esac 9080 9081 case $cc_basename in 9082 nvcc*) # Cuda Compiler Driver 2.2 9083 lt_prog_compiler_wl='-Xlinker ' 9084 if test -n "$lt_prog_compiler_pic"; then 9085 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9086 fi 9087 ;; 9088 esac 9089 else 9090 # PORTME Check for flag to pass linker flags through the system compiler. 9091 case $host_os in 9092 aix*) 9093 lt_prog_compiler_wl='-Wl,' 9094 if test "$host_cpu" = ia64; then 9095 # AIX 5 now supports IA64 processor 9096 lt_prog_compiler_static='-Bstatic' 9097 else 9098 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9099 fi 9100 ;; 9101 9102 mingw* | cygwin* | pw32* | os2* | cegcc*) 9103 # This hack is so that the source file can tell whether it is being 9104 # built for inclusion in a dll (and should export symbols for example). 9105 lt_prog_compiler_pic='-DDLL_EXPORT' 9106 ;; 9107 9108 hpux9* | hpux10* | hpux11*) 9109 lt_prog_compiler_wl='-Wl,' 9110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9111 # not for PA HP-UX. 9112 case $host_cpu in 9113 hppa*64*|ia64*) 9114 # +Z the default 9115 ;; 9116 *) 9117 lt_prog_compiler_pic='+Z' 9118 ;; 9119 esac 9120 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9121 lt_prog_compiler_static='${wl}-a ${wl}archive' 9122 ;; 9123 9124 irix5* | irix6* | nonstopux*) 9125 lt_prog_compiler_wl='-Wl,' 9126 # PIC (with -KPIC) is the default. 9127 lt_prog_compiler_static='-non_shared' 9128 ;; 9129 9130 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9131 case $cc_basename in 9132 # old Intel for x86_64 which still supported -KPIC. 9133 ecc*) 9134 lt_prog_compiler_wl='-Wl,' 9135 lt_prog_compiler_pic='-KPIC' 9136 lt_prog_compiler_static='-static' 9137 ;; 9138 # icc used to be incompatible with GCC. 9139 # ICC 10 doesn't accept -KPIC any more. 9140 icc* | ifort*) 9141 lt_prog_compiler_wl='-Wl,' 9142 lt_prog_compiler_pic='-fPIC' 9143 lt_prog_compiler_static='-static' 9144 ;; 9145 # Lahey Fortran 8.1. 9146 lf95*) 9147 lt_prog_compiler_wl='-Wl,' 9148 lt_prog_compiler_pic='--shared' 9149 lt_prog_compiler_static='--static' 9150 ;; 9151 nagfor*) 9152 # NAG Fortran compiler 9153 lt_prog_compiler_wl='-Wl,-Wl,,' 9154 lt_prog_compiler_pic='-PIC' 9155 lt_prog_compiler_static='-Bstatic' 9156 ;; 9157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9158 # Portland Group compilers (*not* the Pentium gcc compiler, 9159 # which looks to be a dead project) 9160 lt_prog_compiler_wl='-Wl,' 9161 lt_prog_compiler_pic='-fpic' 9162 lt_prog_compiler_static='-Bstatic' 9163 ;; 9164 ccc*) 9165 lt_prog_compiler_wl='-Wl,' 9166 # All Alpha code is PIC. 9167 lt_prog_compiler_static='-non_shared' 9168 ;; 9169 xl* | bgxl* | bgf* | mpixl*) 9170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9171 lt_prog_compiler_wl='-Wl,' 9172 lt_prog_compiler_pic='-qpic' 9173 lt_prog_compiler_static='-qstaticlink' 9174 ;; 9175 *) 9176 case `$CC -V 2>&1 | sed 5q` in 9177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9178 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9179 lt_prog_compiler_pic='-KPIC' 9180 lt_prog_compiler_static='-Bstatic' 9181 lt_prog_compiler_wl='' 9182 ;; 9183 *Sun\ F* | *Sun*Fortran*) 9184 lt_prog_compiler_pic='-KPIC' 9185 lt_prog_compiler_static='-Bstatic' 9186 lt_prog_compiler_wl='-Qoption ld ' 9187 ;; 9188 *Sun\ C*) 9189 # Sun C 5.9 9190 lt_prog_compiler_pic='-KPIC' 9191 lt_prog_compiler_static='-Bstatic' 9192 lt_prog_compiler_wl='-Wl,' 9193 ;; 9194 *Intel*\ [CF]*Compiler*) 9195 lt_prog_compiler_wl='-Wl,' 9196 lt_prog_compiler_pic='-fPIC' 9197 lt_prog_compiler_static='-static' 9198 ;; 9199 *Portland\ Group*) 9200 lt_prog_compiler_wl='-Wl,' 9201 lt_prog_compiler_pic='-fpic' 9202 lt_prog_compiler_static='-Bstatic' 9203 ;; 9204 esac 9205 ;; 9206 esac 9207 ;; 9208 9209 newsos6) 9210 lt_prog_compiler_pic='-KPIC' 9211 lt_prog_compiler_static='-Bstatic' 9212 ;; 9213 9214 *nto* | *qnx*) 9215 # QNX uses GNU C++, but need to define -shared option too, otherwise 9216 # it will coredump. 9217 lt_prog_compiler_pic='-fPIC -shared' 9218 ;; 9219 9220 osf3* | osf4* | osf5*) 9221 lt_prog_compiler_wl='-Wl,' 9222 # All OSF/1 code is PIC. 9223 lt_prog_compiler_static='-non_shared' 9224 ;; 9225 9226 rdos*) 9227 lt_prog_compiler_static='-non_shared' 9228 ;; 9229 9230 solaris*) 9231 lt_prog_compiler_pic='-KPIC' 9232 lt_prog_compiler_static='-Bstatic' 9233 case $cc_basename in 9234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9235 lt_prog_compiler_wl='-Qoption ld ';; 9236 *) 9237 lt_prog_compiler_wl='-Wl,';; 9238 esac 9239 ;; 9240 9241 sunos4*) 9242 lt_prog_compiler_wl='-Qoption ld ' 9243 lt_prog_compiler_pic='-PIC' 9244 lt_prog_compiler_static='-Bstatic' 9245 ;; 9246 9247 sysv4 | sysv4.2uw2* | sysv4.3*) 9248 lt_prog_compiler_wl='-Wl,' 9249 lt_prog_compiler_pic='-KPIC' 9250 lt_prog_compiler_static='-Bstatic' 9251 ;; 9252 9253 sysv4*MP*) 9254 if test -d /usr/nec ;then 9255 lt_prog_compiler_pic='-Kconform_pic' 9256 lt_prog_compiler_static='-Bstatic' 9257 fi 9258 ;; 9259 9260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9261 lt_prog_compiler_wl='-Wl,' 9262 lt_prog_compiler_pic='-KPIC' 9263 lt_prog_compiler_static='-Bstatic' 9264 ;; 9265 9266 unicos*) 9267 lt_prog_compiler_wl='-Wl,' 9268 lt_prog_compiler_can_build_shared=no 9269 ;; 9270 9271 uts4*) 9272 lt_prog_compiler_pic='-pic' 9273 lt_prog_compiler_static='-Bstatic' 9274 ;; 9275 9276 *) 9277 lt_prog_compiler_can_build_shared=no 9278 ;; 9279 esac 9280 fi 9281 9282 case $host_os in 9283 # For platforms which do not support PIC, -DPIC is meaningless: 9284 *djgpp*) 9285 lt_prog_compiler_pic= 9286 ;; 9287 *) 9288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9289 ;; 9290 esac 9291 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9293 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9294 if ${lt_cv_prog_compiler_pic+:} false; then : 9295 $as_echo_n "(cached) " >&6 9296 else 9297 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9298 fi 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9300 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 9301 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9302 9303 # 9304 # Check to make sure the PIC flag actually works. 9305 # 9306 if test -n "$lt_prog_compiler_pic"; then 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9308 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9309 if ${lt_cv_prog_compiler_pic_works+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311 else 9312 lt_cv_prog_compiler_pic_works=no 9313 ac_outfile=conftest.$ac_objext 9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9316 # Insert the option either (1) after the last *FLAGS variable, or 9317 # (2) before a word containing "conftest.", or (3) at the end. 9318 # Note that $ac_compile itself does not contain backslashes and begins 9319 # with a dollar sign (not a hyphen), so the echo should work correctly. 9320 # The option is referenced via a variable to avoid confusing sed. 9321 lt_compile=`echo "$ac_compile" | $SED \ 9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9324 -e 's:$: $lt_compiler_flag:'` 9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9326 (eval "$lt_compile" 2>conftest.err) 9327 ac_status=$? 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 if (exit $ac_status) && test -s "$ac_outfile"; then 9331 # The compiler can only warn and ignore the option if not recognized 9332 # So say no if there are warnings other than the usual output. 9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9336 lt_cv_prog_compiler_pic_works=yes 9337 fi 9338 fi 9339 $RM conftest* 9340 9341 fi 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9343 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9344 9345 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9346 case $lt_prog_compiler_pic in 9347 "" | " "*) ;; 9348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9349 esac 9350 else 9351 lt_prog_compiler_pic= 9352 lt_prog_compiler_can_build_shared=no 9353 fi 9354 9355 fi 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 #