1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for glu 9.0.2. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/mesa/glu/issues>. 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 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || 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: https://gitlab.freedesktop.org/mesa/glu/issues about 279 $0: your system, including any error possibly output before 280 $0: this message. Then install a modern shell, or manually 281 $0: run the script 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='glu' 592 PACKAGE_TARNAME='glu' 593 PACKAGE_VERSION='9.0.2' 594 PACKAGE_STRING='glu 9.0.2' 595 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/mesa/glu/issues' 596 PACKAGE_URL='' 597 598 ac_unique_file="Makefile.am" 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 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 VISIBILITY_CXXFLAGS 640 VISIBILITY_CFLAGS 641 WARNCXXFLAGS 642 WARNCFLAGS 643 GLU_REQUIRES 644 GL_LIBS 645 GL_CFLAGS 646 OSMESA_LIBS 647 OSMESA_CFLAGS 648 LIBGLVND_LIBS 649 LIBGLVND_CFLAGS 650 PKG_CONFIG_LIBDIR 651 PKG_CONFIG_PATH 652 PKG_CONFIG 653 CXXCPP 654 am__fastdepCXX_FALSE 655 am__fastdepCXX_TRUE 656 CXXDEPMODE 657 ac_ct_CXX 658 CXXFLAGS 659 CXX 660 CPP 661 LT_SYS_LIBRARY_PATH 662 OTOOL64 663 OTOOL 664 LIPO 665 NMEDIT 666 DSYMUTIL 667 MANIFEST_TOOL 668 RANLIB 669 ac_ct_AR 670 AR 671 DLLTOOL 672 OBJDUMP 673 LN_S 674 NM 675 ac_ct_DUMPBIN 676 DUMPBIN 677 LD 678 FGREP 679 EGREP 680 GREP 681 SED 682 am__fastdepCC_FALSE 683 am__fastdepCC_TRUE 684 CCDEPMODE 685 am__nodep 686 AMDEPBACKSLASH 687 AMDEP_FALSE 688 AMDEP_TRUE 689 am__include 690 DEPDIR 691 OBJEXT 692 EXEEXT 693 ac_ct_CC 694 CPPFLAGS 695 LDFLAGS 696 CFLAGS 697 CC 698 LIBTOOL 699 AM_BACKSLASH 700 AM_DEFAULT_VERBOSITY 701 AM_DEFAULT_V 702 AM_V 703 am__untar 704 am__tar 705 AMTAR 706 am__leading_dot 707 SET_MAKE 708 AWK 709 mkdir_p 710 MKDIR_P 711 INSTALL_STRIP_PROGRAM 712 STRIP 713 install_sh 714 MAKEINFO 715 AUTOHEADER 716 AUTOMAKE 717 AUTOCONF 718 ACLOCAL 719 VERSION 720 PACKAGE 721 CYGPATH_W 722 am__isrc 723 INSTALL_DATA 724 INSTALL_SCRIPT 725 INSTALL_PROGRAM 726 host_os 727 host_vendor 728 host_cpu 729 host 730 build_os 731 build_vendor 732 build_cpu 733 build 734 target_alias 735 host_alias 736 build_alias 737 LIBS 738 ECHO_T 739 ECHO_N 740 ECHO_C 741 DEFS 742 mandir 743 localedir 744 libdir 745 psdir 746 pdfdir 747 dvidir 748 htmldir 749 infodir 750 docdir 751 oldincludedir 752 includedir 753 runstatedir 754 localstatedir 755 sharedstatedir 756 sysconfdir 757 datadir 758 datarootdir 759 libexecdir 760 sbindir 761 bindir 762 program_transform_name 763 prefix 764 exec_prefix 765 PACKAGE_URL 766 PACKAGE_BUGREPORT 767 PACKAGE_STRING 768 PACKAGE_VERSION 769 PACKAGE_TARNAME 770 PACKAGE_NAME 771 PATH_SEPARATOR 772 SHELL 773 am__quote' 774 ac_subst_files='' 775 ac_user_opts=' 776 enable_option_checking 777 enable_silent_rules 778 enable_shared 779 enable_static 780 with_pic 781 enable_fast_install 782 with_aix_soname 783 enable_dependency_tracking 784 with_gnu_ld 785 with_sysroot 786 enable_libtool_lock 787 enable_debug 788 enable_libglvnd 789 enable_osmesa 790 ' 791 ac_precious_vars='build_alias 792 host_alias 793 target_alias 794 CC 795 CFLAGS 796 LDFLAGS 797 LIBS 798 CPPFLAGS 799 LT_SYS_LIBRARY_PATH 800 CPP 801 CXX 802 CXXFLAGS 803 CCC 804 CXXCPP 805 PKG_CONFIG 806 PKG_CONFIG_PATH 807 PKG_CONFIG_LIBDIR 808 LIBGLVND_CFLAGS 809 LIBGLVND_LIBS 810 OSMESA_CFLAGS 811 OSMESA_LIBS 812 GL_CFLAGS 813 GL_LIBS' 814 815 816 # Initialize some variables set by options. 817 ac_init_help= 818 ac_init_version=false 819 ac_unrecognized_opts= 820 ac_unrecognized_sep= 821 # The variables have the same names as the options, with 822 # dashes changed to underlines. 823 cache_file=/dev/null 824 exec_prefix=NONE 825 no_create= 826 no_recursion= 827 prefix=NONE 828 program_prefix=NONE 829 program_suffix=NONE 830 program_transform_name=s,x,x, 831 silent= 832 site= 833 srcdir= 834 verbose= 835 x_includes=NONE 836 x_libraries=NONE 837 838 # Installation directory options. 839 # These are left unexpanded so users can "make install exec_prefix=/foo" 840 # and all the variables that are supposed to be based on exec_prefix 841 # by default will actually change. 842 # Use braces instead of parens because sh, perl, etc. also accept them. 843 # (The list follows the same order as the GNU Coding Standards.) 844 bindir='${exec_prefix}/bin' 845 sbindir='${exec_prefix}/sbin' 846 libexecdir='${exec_prefix}/libexec' 847 datarootdir='${prefix}/share' 848 datadir='${datarootdir}' 849 sysconfdir='${prefix}/etc' 850 sharedstatedir='${prefix}/com' 851 localstatedir='${prefix}/var' 852 runstatedir='${localstatedir}/run' 853 includedir='${prefix}/include' 854 oldincludedir='/usr/include' 855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856 infodir='${datarootdir}/info' 857 htmldir='${docdir}' 858 dvidir='${docdir}' 859 pdfdir='${docdir}' 860 psdir='${docdir}' 861 libdir='${exec_prefix}/lib' 862 localedir='${datarootdir}/locale' 863 mandir='${datarootdir}/man' 864 865 ac_prev= 866 ac_dashdash= 867 for ac_option 868 do 869 # If the previous option needs an argument, assign it. 870 if test -n "$ac_prev"; then 871 eval $ac_prev=\$ac_option 872 ac_prev= 873 continue 874 fi 875 876 case $ac_option in 877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 878 *=) ac_optarg= ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929 "enable_$ac_useropt" 930 "*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955 "enable_$ac_useropt" 956 "*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1106 | --runstate | --runstat | --runsta | --runst | --runs \ 1107 | --run | --ru | --r) 1108 ac_prev=runstatedir ;; 1109 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1110 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1111 | --run=* | --ru=* | --r=*) 1112 runstatedir=$ac_optarg ;; 1113 1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1115 ac_prev=sbindir ;; 1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1117 | --sbi=* | --sb=*) 1118 sbindir=$ac_optarg ;; 1119 1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1122 | --sharedst | --shareds | --shared | --share | --shar \ 1123 | --sha | --sh) 1124 ac_prev=sharedstatedir ;; 1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1128 | --sha=* | --sh=*) 1129 sharedstatedir=$ac_optarg ;; 1130 1131 -site | --site | --sit) 1132 ac_prev=site ;; 1133 -site=* | --site=* | --sit=*) 1134 site=$ac_optarg ;; 1135 1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1137 ac_prev=srcdir ;; 1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1139 srcdir=$ac_optarg ;; 1140 1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1142 | --syscon | --sysco | --sysc | --sys | --sy) 1143 ac_prev=sysconfdir ;; 1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1146 sysconfdir=$ac_optarg ;; 1147 1148 -target | --target | --targe | --targ | --tar | --ta | --t) 1149 ac_prev=target_alias ;; 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1151 target_alias=$ac_optarg ;; 1152 1153 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1154 verbose=yes ;; 1155 1156 -version | --version | --versio | --versi | --vers | -V) 1157 ac_init_version=: ;; 1158 1159 -with-* | --with-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168 "with_$ac_useropt" 1169 "*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=\$ac_optarg ;; 1174 1175 -without-* | --without-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184 "with_$ac_useropt" 1185 "*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=no ;; 1190 1191 --x) 1192 # Obsolete; use --with-x. 1193 with_x=yes ;; 1194 1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1196 | --x-incl | --x-inc | --x-in | --x-i) 1197 ac_prev=x_includes ;; 1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1200 x_includes=$ac_optarg ;; 1201 1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1204 ac_prev=x_libraries ;; 1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1207 x_libraries=$ac_optarg ;; 1208 1209 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1210 Try \`$0 --help' for more information" 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 case $ac_envvar in #( 1217 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1219 esac 1220 eval $ac_envvar=\$ac_optarg 1221 export $ac_envvar ;; 1222 1223 *) 1224 # FIXME: should be removed in autoconf 3.0. 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1229 ;; 1230 1231 esac 1232 done 1233 1234 if test -n "$ac_prev"; then 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1236 as_fn_error $? "missing argument to $ac_option" 1237 fi 1238 1239 if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1244 esac 1245 fi 1246 1247 # Check all directory arguments for consistency. 1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1249 datadir sysconfdir sharedstatedir localstatedir includedir \ 1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1251 libdir localedir mandir runstatedir 1252 do 1253 eval ac_val=\$$ac_var 1254 # Remove trailing slashes. 1255 case $ac_val in 1256 */ ) 1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1258 eval $ac_var=\$ac_val;; 1259 esac 1260 # Be sure to have absolute directory names. 1261 case $ac_val in 1262 [\\/$]* | ?:[\\/]* ) continue;; 1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1264 esac 1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1266 done 1267 1268 # There might be people who depend on the old broken behavior: `$host' 1269 # used to hold the argument of --host etc. 1270 # FIXME: To remove some day. 1271 build=$build_alias 1272 host=$host_alias 1273 target=$target_alias 1274 1275 # FIXME: To remove some day. 1276 if test "x$host_alias" != x; then 1277 if test "x$build_alias" = x; then 1278 cross_compiling=maybe 1279 elif test "x$build_alias" != "x$host_alias"; then 1280 cross_compiling=yes 1281 fi 1282 fi 1283 1284 ac_tool_prefix= 1285 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1286 1287 test "$silent" = yes && exec 6>/dev/null 1288 1289 1290 ac_pwd=`pwd` && test -n "$ac_pwd" && 1291 ac_ls_di=`ls -di .` && 1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1293 as_fn_error $? "working directory cannot be determined" 1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1295 as_fn_error $? "pwd does not report name of working directory" 1296 1297 1298 # Find the source files, if location was not specified. 1299 if test -z "$srcdir"; then 1300 ac_srcdir_defaulted=yes 1301 # Try the directory containing this script, then the parent directory. 1302 ac_confdir=`$as_dirname -- "$as_myself" || 1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1304 X"$as_myself" : 'X\(//\)[^/]' \| \ 1305 X"$as_myself" : 'X\(//\)$' \| \ 1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1307 $as_echo X"$as_myself" | 1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)[^/].*/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\).*/{ 1321 s//\1/ 1322 q 1323 } 1324 s/.*/./; q'` 1325 srcdir=$ac_confdir 1326 if test ! -r "$srcdir/$ac_unique_file"; then 1327 srcdir=.. 1328 fi 1329 else 1330 ac_srcdir_defaulted=no 1331 fi 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1335 fi 1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337 ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1339 pwd)` 1340 # When building in place, set srcdir=. 1341 if test "$ac_abs_confdir" = "$ac_pwd"; then 1342 srcdir=. 1343 fi 1344 # Remove unnecessary trailing slashes from srcdir. 1345 # Double slashes in file names in object file debugging info 1346 # mess up M-x gdb in Emacs. 1347 case $srcdir in 1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1349 esac 1350 for ac_var in $ac_precious_vars; do 1351 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1352 eval ac_env_${ac_var}_value=\$${ac_var} 1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1355 done 1356 1357 # 1358 # Report the --help message. 1359 # 1360 if test "$ac_init_help" = "long"; then 1361 # Omit some internal or obsolete options to make the list less imposing. 1362 # This message is too long to be a string in the A/UX 3.1 sh. 1363 cat <<_ACEOF 1364 \`configure' configures glu 9.0.2 to adapt to many kinds of systems. 1365 1366 Usage: $0 [OPTION]... [VAR=VALUE]... 1367 1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1369 VAR=VALUE. See below for descriptions of some of the useful variables. 1370 1371 Defaults for the options are specified in brackets. 1372 1373 Configuration: 1374 -h, --help display this help and exit 1375 --help=short display options specific to this package 1376 --help=recursive display the short help of all the included packages 1377 -V, --version display version information and exit 1378 -q, --quiet, --silent do not print \`checking ...' messages 1379 --cache-file=FILE cache test results in FILE [disabled] 1380 -C, --config-cache alias for \`--cache-file=config.cache' 1381 -n, --no-create do not create output files 1382 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1383 1384 Installation directories: 1385 --prefix=PREFIX install architecture-independent files in PREFIX 1386 [$ac_default_prefix] 1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1388 [PREFIX] 1389 1390 By default, \`make install' will install all the files in 1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1393 for instance \`--prefix=\$HOME'. 1394 1395 For better control, use the options below. 1396 1397 Fine tuning of the installation directories: 1398 --bindir=DIR user executables [EPREFIX/bin] 1399 --sbindir=DIR system admin executables [EPREFIX/sbin] 1400 --libexecdir=DIR program executables [EPREFIX/libexec] 1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1404 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/glu] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418 _ACEOF 1419 1420 cat <<\_ACEOF 1421 1422 Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427 System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430 _ACEOF 1431 fi 1432 1433 if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of glu 9.0.2:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439 Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-shared[=PKGS] build shared libraries [default=yes] 1446 --enable-static[=PKGS] build static libraries [default=yes] 1447 --enable-fast-install[=PKGS] 1448 optimize for fast installation [default=yes] 1449 --enable-dependency-tracking 1450 do not reject slow dependency extractors 1451 --disable-dependency-tracking 1452 speeds up one-time build 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1454 --enable-debug Enable debugging information 1455 --enable-libglvnd Enable use of libglvnd 1456 --enable-osmesa Enable use of OSMesa instead of libGL 1457 1458 Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-aix-soname=aix|svr4|both 1464 shared library versioning (aka "SONAME") variant to 1465 provide on AIX, [default=aix]. 1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1468 compiler's sysroot if not specified). 1469 1470 Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 LT_SYS_LIBRARY_PATH 1479 User-defined run-time library search path. 1480 CPP C preprocessor 1481 CXX C++ compiler command 1482 CXXFLAGS C++ compiler flags 1483 CXXCPP C++ preprocessor 1484 PKG_CONFIG path to pkg-config utility 1485 PKG_CONFIG_PATH 1486 directories to add to pkg-config's search path 1487 PKG_CONFIG_LIBDIR 1488 path overriding pkg-config's built-in search path 1489 LIBGLVND_CFLAGS 1490 C compiler flags for LIBGLVND, overriding pkg-config 1491 LIBGLVND_LIBS 1492 linker flags for LIBGLVND, overriding pkg-config 1493 OSMESA_CFLAGS 1494 C compiler flags for OSMESA, overriding pkg-config 1495 OSMESA_LIBS linker flags for OSMESA, overriding pkg-config 1496 GL_CFLAGS C compiler flags for GL, overriding pkg-config 1497 GL_LIBS linker flags for GL, overriding pkg-config 1498 1499 Use these variables to override the choices made by `configure' or to help 1500 it to find libraries and programs with nonstandard names/locations. 1501 1502 Report bugs to <https://gitlab.freedesktop.org/mesa/glu/issues>. 1503 _ACEOF 1504 ac_status=$? 1505 fi 1506 1507 if test "$ac_init_help" = "recursive"; then 1508 # If there are subdirs, report their specific --help. 1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1510 test -d "$ac_dir" || 1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1512 continue 1513 ac_builddir=. 1514 1515 case "$ac_dir" in 1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1517 *) 1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1519 # A ".." for each directory in $ac_dir_suffix. 1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1521 case $ac_top_builddir_sub in 1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1524 esac ;; 1525 esac 1526 ac_abs_top_builddir=$ac_pwd 1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1528 # for backward compatibility: 1529 ac_top_builddir=$ac_top_build_prefix 1530 1531 case $srcdir in 1532 .) # We are building in place. 1533 ac_srcdir=. 1534 ac_top_srcdir=$ac_top_builddir_sub 1535 ac_abs_top_srcdir=$ac_pwd ;; 1536 [\\/]* | ?:[\\/]* ) # Absolute name. 1537 ac_srcdir=$srcdir$ac_dir_suffix; 1538 ac_top_srcdir=$srcdir 1539 ac_abs_top_srcdir=$srcdir ;; 1540 *) # Relative name. 1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1542 ac_top_srcdir=$ac_top_build_prefix$srcdir 1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1544 esac 1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1546 1547 cd "$ac_dir" || { ac_status=$?; continue; } 1548 # Check for guested configure. 1549 if test -f "$ac_srcdir/configure.gnu"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1552 elif test -f "$ac_srcdir/configure"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure" --help=recursive 1555 else 1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1557 fi || ac_status=$? 1558 cd "$ac_pwd" || { ac_status=$?; break; } 1559 done 1560 fi 1561 1562 test -n "$ac_init_help" && exit $ac_status 1563 if $ac_init_version; then 1564 cat <<\_ACEOF 1565 glu configure 9.0.2 1566 generated by GNU Autoconf 2.69 1567 1568 Copyright (C) 2012 Free Software Foundation, Inc. 1569 This configure script is free software; the Free Software Foundation 1570 gives unlimited permission to copy, distribute and modify it. 1571 _ACEOF 1572 exit 1573 fi 1574 1575 ## ------------------------ ## 1576 ## Autoconf initialization. ## 1577 ## ------------------------ ## 1578 1579 # ac_fn_c_try_compile LINENO 1580 # -------------------------- 1581 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1582 ac_fn_c_try_compile () 1583 { 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext 1586 if { { ac_try="$ac_compile" 1587 case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590 esac 1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592 $as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_compile") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest.$ac_objext; then : 1605 ac_retval=0 1606 else 1607 $as_echo "$as_me: failed program was:" >&5 1608 sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611 fi 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615 } # ac_fn_c_try_compile 1616 1617 # ac_fn_c_try_link LINENO 1618 # ----------------------- 1619 # Try to link conftest.$ac_ext, and return whether this succeeded. 1620 ac_fn_c_try_link () 1621 { 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext conftest$ac_exeext 1624 if { { ac_try="$ac_link" 1625 case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628 esac 1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630 $as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_link") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest$ac_exeext && { 1643 test "$cross_compiling" = yes || 1644 test -x conftest$ac_exeext 1645 }; then : 1646 ac_retval=0 1647 else 1648 $as_echo "$as_me: failed program was:" >&5 1649 sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652 fi 1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1655 # interfere with the next link command; also delete a directory that is 1656 # left behind by Apple's compiler. We do this before executing the actions. 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661 } # ac_fn_c_try_link 1662 1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664 # ------------------------------------------------------- 1665 # Tests whether HEADER exists and can be compiled using the include files in 1666 # INCLUDES, setting the cache variable VAR accordingly. 1667 ac_fn_c_check_header_compile () 1668 { 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671 $as_echo_n "checking for $2... " >&6; } 1672 if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674 else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676 /* end confdefs.h. */ 1677 $4 1678 #include <$2> 1679 _ACEOF 1680 if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682 else 1683 eval "$3=no" 1684 fi 1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686 fi 1687 eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689 $as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692 } # ac_fn_c_check_header_compile 1693 1694 # ac_fn_c_try_cpp LINENO 1695 # ---------------------- 1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1697 ac_fn_c_try_cpp () 1698 { 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_cpp conftest.$ac_ext" 1701 case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704 esac 1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706 $as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } > conftest.i && { 1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 }; then : 1719 ac_retval=0 1720 else 1721 $as_echo "$as_me: failed program was:" >&5 1722 sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=1 1725 fi 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729 } # ac_fn_c_try_cpp 1730 1731 # ac_fn_c_try_run LINENO 1732 # ---------------------- 1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1734 # that executables *can* be run. 1735 ac_fn_c_try_run () 1736 { 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 if { { ac_try="$ac_link" 1739 case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742 esac 1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744 $as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_link") 2>&5 1746 ac_status=$? 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1749 { { case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752 esac 1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754 $as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_try") 2>&5 1756 ac_status=$? 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; }; }; then : 1759 ac_retval=0 1760 else 1761 $as_echo "$as_me: program exited with status $ac_status" >&5 1762 $as_echo "$as_me: failed program was:" >&5 1763 sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=$ac_status 1766 fi 1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 as_fn_set_status $ac_retval 1770 1771 } # ac_fn_c_try_run 1772 1773 # ac_fn_c_check_func LINENO FUNC VAR 1774 # ---------------------------------- 1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1776 ac_fn_c_check_func () 1777 { 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780 $as_echo_n "checking for $2... " >&6; } 1781 if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783 else 1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1785 /* end confdefs.h. */ 1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1788 #define $2 innocuous_$2 1789 1790 /* System header to define __stub macros and hopefully few prototypes, 1791 which can conflict with char $2 (); below. 1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1793 <limits.h> exists even on freestanding compilers. */ 1794 1795 #ifdef __STDC__ 1796 # include <limits.h> 1797 #else 1798 # include <assert.h> 1799 #endif 1800 1801 #undef $2 1802 1803 /* Override any GCC internal prototype to avoid an error. 1804 Use char because int might match the return type of a GCC 1805 builtin and then its argument prototype would still apply. */ 1806 #ifdef __cplusplus 1807 extern "C" 1808 #endif 1809 char $2 (); 1810 /* The GNU C library defines this for functions which it implements 1811 to always fail with ENOSYS. Some functions are actually named 1812 something starting with __ and the normal name is an alias. */ 1813 #if defined __stub_$2 || defined __stub___$2 1814 choke me 1815 #endif 1816 1817 int 1818 main () 1819 { 1820 return $2 (); 1821 ; 1822 return 0; 1823 } 1824 _ACEOF 1825 if ac_fn_c_try_link "$LINENO"; then : 1826 eval "$3=yes" 1827 else 1828 eval "$3=no" 1829 fi 1830 rm -f core conftest.err conftest.$ac_objext \ 1831 conftest$ac_exeext conftest.$ac_ext 1832 fi 1833 eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835 $as_echo "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838 } # ac_fn_c_check_func 1839 1840 # ac_fn_cxx_try_compile LINENO 1841 # ---------------------------- 1842 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1843 ac_fn_cxx_try_compile () 1844 { 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 rm -f conftest.$ac_objext 1847 if { { ac_try="$ac_compile" 1848 case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851 esac 1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853 $as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_compile") 2>conftest.err 1855 ac_status=$? 1856 if test -s conftest.err; then 1857 grep -v '^ *+' conftest.err >conftest.er1 1858 cat conftest.er1 >&5 1859 mv -f conftest.er1 conftest.err 1860 fi 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { 1863 test -z "$ac_cxx_werror_flag" || 1864 test ! -s conftest.err 1865 } && test -s conftest.$ac_objext; then : 1866 ac_retval=0 1867 else 1868 $as_echo "$as_me: failed program was:" >&5 1869 sed 's/^/| /' conftest.$ac_ext >&5 1870 1871 ac_retval=1 1872 fi 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876 } # ac_fn_cxx_try_compile 1877 1878 # ac_fn_cxx_try_cpp LINENO 1879 # ------------------------ 1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1881 ac_fn_cxx_try_cpp () 1882 { 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 if { { ac_try="$ac_cpp conftest.$ac_ext" 1885 case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888 esac 1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890 $as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } > conftest.i && { 1900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1901 test ! -s conftest.err 1902 }; then : 1903 ac_retval=0 1904 else 1905 $as_echo "$as_me: failed program was:" >&5 1906 sed 's/^/| /' conftest.$ac_ext >&5 1907 1908 ac_retval=1 1909 fi 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 as_fn_set_status $ac_retval 1912 1913 } # ac_fn_cxx_try_cpp 1914 1915 # ac_fn_cxx_try_link LINENO 1916 # ------------------------- 1917 # Try to link conftest.$ac_ext, and return whether this succeeded. 1918 ac_fn_cxx_try_link () 1919 { 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 rm -f conftest.$ac_objext conftest$ac_exeext 1922 if { { ac_try="$ac_link" 1923 case "(($ac_try" in 1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1925 *) ac_try_echo=$ac_try;; 1926 esac 1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1928 $as_echo "$ac_try_echo"; } >&5 1929 (eval "$ac_link") 2>conftest.err 1930 ac_status=$? 1931 if test -s conftest.err; then 1932 grep -v '^ *+' conftest.err >conftest.er1 1933 cat conftest.er1 >&5 1934 mv -f conftest.er1 conftest.err 1935 fi 1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1937 test $ac_status = 0; } && { 1938 test -z "$ac_cxx_werror_flag" || 1939 test ! -s conftest.err 1940 } && test -s conftest$ac_exeext && { 1941 test "$cross_compiling" = yes || 1942 test -x conftest$ac_exeext 1943 }; then : 1944 ac_retval=0 1945 else 1946 $as_echo "$as_me: failed program was:" >&5 1947 sed 's/^/| /' conftest.$ac_ext >&5 1948 1949 ac_retval=1 1950 fi 1951 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1952 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1953 # interfere with the next link command; also delete a directory that is 1954 # left behind by Apple's compiler. We do this before executing the actions. 1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1957 as_fn_set_status $ac_retval 1958 1959 } # ac_fn_cxx_try_link 1960 1961 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1962 # ------------------------------------------------------- 1963 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1964 # the include files in INCLUDES and setting the cache variable VAR 1965 # accordingly. 1966 ac_fn_c_check_header_mongrel () 1967 { 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 if eval \${$3+:} false; then : 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1971 $as_echo_n "checking for $2... " >&6; } 1972 if eval \${$3+:} false; then : 1973 $as_echo_n "(cached) " >&6 1974 fi 1975 eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977 $as_echo "$ac_res" >&6; } 1978 else 1979 # Is the header compilable? 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1981 $as_echo_n "checking $2 usability... " >&6; } 1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983 /* end confdefs.h. */ 1984 $4 1985 #include <$2> 1986 _ACEOF 1987 if ac_fn_c_try_compile "$LINENO"; then : 1988 ac_header_compiler=yes 1989 else 1990 ac_header_compiler=no 1991 fi 1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1994 $as_echo "$ac_header_compiler" >&6; } 1995 1996 # Is the header present? 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1998 $as_echo_n "checking $2 presence... " >&6; } 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000 /* end confdefs.h. */ 2001 #include <$2> 2002 _ACEOF 2003 if ac_fn_c_try_cpp "$LINENO"; then : 2004 ac_header_preproc=yes 2005 else 2006 ac_header_preproc=no 2007 fi 2008 rm -f conftest.err conftest.i conftest.$ac_ext 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2010 $as_echo "$ac_header_preproc" >&6; } 2011 2012 # So? What about this header? 2013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2014 yes:no: ) 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2016 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2019 ;; 2020 no:yes:* ) 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2022 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2024 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2026 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2028 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2031 ( $as_echo "## ------------------------------------------------------------- ## 2032 ## Report this to https://gitlab.freedesktop.org/mesa/glu/issues ## 2033 ## ------------------------------------------------------------- ##" 2034 ) | sed "s/^/$as_me: WARNING: /" >&2 2035 ;; 2036 esac 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2038 $as_echo_n "checking for $2... " >&6; } 2039 if eval \${$3+:} false; then : 2040 $as_echo_n "(cached) " >&6 2041 else 2042 eval "$3=\$ac_header_compiler" 2043 fi 2044 eval ac_res=\$$3 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2046 $as_echo "$ac_res" >&6; } 2047 fi 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 2050 } # ac_fn_c_check_header_mongrel 2051 2052 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2053 # --------------------------------------------- 2054 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2055 # accordingly. 2056 ac_fn_c_check_decl () 2057 { 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 as_decl_name=`echo $2|sed 's/ *(.*//'` 2060 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2062 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2063 if eval \${$3+:} false; then : 2064 $as_echo_n "(cached) " >&6 2065 else 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2067 /* end confdefs.h. */ 2068 $4 2069 int 2070 main () 2071 { 2072 #ifndef $as_decl_name 2073 #ifdef __cplusplus 2074 (void) $as_decl_use; 2075 #else 2076 (void) $as_decl_name; 2077 #endif 2078 #endif 2079 2080 ; 2081 return 0; 2082 } 2083 _ACEOF 2084 if ac_fn_c_try_compile "$LINENO"; then : 2085 eval "$3=yes" 2086 else 2087 eval "$3=no" 2088 fi 2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090 fi 2091 eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093 $as_echo "$ac_res" >&6; } 2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2095 2096 } # ac_fn_c_check_decl 2097 cat >config.log <<_ACEOF 2098 This file contains any messages produced by compilers while 2099 running configure, to aid debugging if configure makes a mistake. 2100 2101 It was created by glu $as_me 9.0.2, which was 2102 generated by GNU Autoconf 2.69. Invocation command line was 2103 2104 $ $0 $@ 2105 2106 _ACEOF 2107 exec 5>>config.log 2108 { 2109 cat <<_ASUNAME 2110 ## --------- ## 2111 ## Platform. ## 2112 ## --------- ## 2113 2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2115 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2116 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2117 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2118 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2119 2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2122 2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2130 2131 _ASUNAME 2132 2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2134 for as_dir in $PATH 2135 do 2136 IFS=$as_save_IFS 2137 test -z "$as_dir" && as_dir=. 2138 $as_echo "PATH: $as_dir" 2139 done 2140 IFS=$as_save_IFS 2141 2142 } >&5 2143 2144 cat >&5 <<_ACEOF 2145 2146 2147 ## ----------- ## 2148 ## Core tests. ## 2149 ## ----------- ## 2150 2151 _ACEOF 2152 2153 2154 # Keep a trace of the command line. 2155 # Strip out --no-create and --no-recursion so they do not pile up. 2156 # Strip out --silent because we don't want to record it for future runs. 2157 # Also quote any args containing shell meta-characters. 2158 # Make two passes to allow for proper duplicate-argument suppression. 2159 ac_configure_args= 2160 ac_configure_args0= 2161 ac_configure_args1= 2162 ac_must_keep_next=false 2163 for ac_pass in 1 2 2164 do 2165 for ac_arg 2166 do 2167 case $ac_arg in 2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2170 | -silent | --silent | --silen | --sile | --sil) 2171 continue ;; 2172 *\'*) 2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2174 esac 2175 case $ac_pass in 2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2177 2) 2178 as_fn_append ac_configure_args1 " '$ac_arg'" 2179 if test $ac_must_keep_next = true; then 2180 ac_must_keep_next=false # Got value, back to normal. 2181 else 2182 case $ac_arg in 2183 *=* | --config-cache | -C | -disable-* | --disable-* \ 2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2186 | -with-* | --with-* | -without-* | --without-* | --x) 2187 case "$ac_configure_args0 " in 2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2189 esac 2190 ;; 2191 -* ) ac_must_keep_next=true ;; 2192 esac 2193 fi 2194 as_fn_append ac_configure_args " '$ac_arg'" 2195 ;; 2196 esac 2197 done 2198 done 2199 { ac_configure_args0=; unset ac_configure_args0;} 2200 { ac_configure_args1=; unset ac_configure_args1;} 2201 2202 # When interrupted or exit'd, cleanup temporary files, and complete 2203 # config.log. We remove comments because anyway the quotes in there 2204 # would cause problems or look ugly. 2205 # WARNING: Use '\'' to represent an apostrophe within the trap. 2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2207 trap 'exit_status=$? 2208 # Save into config.log some information that might help in debugging. 2209 { 2210 echo 2211 2212 $as_echo "## ---------------- ## 2213 ## Cache variables. ## 2214 ## ---------------- ##" 2215 echo 2216 # The following way of writing the cache mishandles newlines in values, 2217 ( 2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2219 eval ac_val=\$$ac_var 2220 case $ac_val in #( 2221 *${as_nl}*) 2222 case $ac_var in #( 2223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2225 esac 2226 case $ac_var in #( 2227 _ | IFS | as_nl) ;; #( 2228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2229 *) { eval $ac_var=; unset $ac_var;} ;; 2230 esac ;; 2231 esac 2232 done 2233 (set) 2>&1 | 2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2235 *${as_nl}ac_space=\ *) 2236 sed -n \ 2237 "s/'\''/'\''\\\\'\'''\''/g; 2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2239 ;; #( 2240 *) 2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2242 ;; 2243 esac | 2244 sort 2245 ) 2246 echo 2247 2248 $as_echo "## ----------------- ## 2249 ## Output variables. ## 2250 ## ----------------- ##" 2251 echo 2252 for ac_var in $ac_subst_vars 2253 do 2254 eval ac_val=\$$ac_var 2255 case $ac_val in 2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2257 esac 2258 $as_echo "$ac_var='\''$ac_val'\''" 2259 done | sort 2260 echo 2261 2262 if test -n "$ac_subst_files"; then 2263 $as_echo "## ------------------- ## 2264 ## File substitutions. ## 2265 ## ------------------- ##" 2266 echo 2267 for ac_var in $ac_subst_files 2268 do 2269 eval ac_val=\$$ac_var 2270 case $ac_val in 2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2272 esac 2273 $as_echo "$ac_var='\''$ac_val'\''" 2274 done | sort 2275 echo 2276 fi 2277 2278 if test -s confdefs.h; then 2279 $as_echo "## ----------- ## 2280 ## confdefs.h. ## 2281 ## ----------- ##" 2282 echo 2283 cat confdefs.h 2284 echo 2285 fi 2286 test "$ac_signal" != 0 && 2287 $as_echo "$as_me: caught signal $ac_signal" 2288 $as_echo "$as_me: exit $exit_status" 2289 } >&5 2290 rm -f core *.core core.conftest.* && 2291 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2292 exit $exit_status 2293 ' 0 2294 for ac_signal in 1 2 13 15; do 2295 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2296 done 2297 ac_signal=0 2298 2299 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2300 rm -f -r conftest* confdefs.h 2301 2302 $as_echo "/* confdefs.h */" > confdefs.h 2303 2304 # Predefined preprocessor variables. 2305 2306 cat >>confdefs.h <<_ACEOF 2307 #define PACKAGE_NAME "$PACKAGE_NAME" 2308 _ACEOF 2309 2310 cat >>confdefs.h <<_ACEOF 2311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2312 _ACEOF 2313 2314 cat >>confdefs.h <<_ACEOF 2315 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2316 _ACEOF 2317 2318 cat >>confdefs.h <<_ACEOF 2319 #define PACKAGE_STRING "$PACKAGE_STRING" 2320 _ACEOF 2321 2322 cat >>confdefs.h <<_ACEOF 2323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2324 _ACEOF 2325 2326 cat >>confdefs.h <<_ACEOF 2327 #define PACKAGE_URL "$PACKAGE_URL" 2328 _ACEOF 2329 2330 2331 # Let the site file select an alternate cache file if it wants to. 2332 # Prefer an explicitly selected file to automatically selected ones. 2333 ac_site_file1=NONE 2334 ac_site_file2=NONE 2335 if test -n "$CONFIG_SITE"; then 2336 # We do not want a PATH search for config.site. 2337 case $CONFIG_SITE in #(( 2338 -*) ac_site_file1=./$CONFIG_SITE;; 2339 */*) ac_site_file1=$CONFIG_SITE;; 2340 *) ac_site_file1=./$CONFIG_SITE;; 2341 esac 2342 elif test "x$prefix" != xNONE; then 2343 ac_site_file1=$prefix/share/config.site 2344 ac_site_file2=$prefix/etc/config.site 2345 else 2346 ac_site_file1=$ac_default_prefix/share/config.site 2347 ac_site_file2=$ac_default_prefix/etc/config.site 2348 fi 2349 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2350 do 2351 test "x$ac_site_file" = xNONE && continue 2352 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2354 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2355 sed 's/^/| /' "$ac_site_file" >&5 2356 . "$ac_site_file" \ 2357 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2359 as_fn_error $? "failed to load site script $ac_site_file 2360 See \`config.log' for more details" "$LINENO" 5; } 2361 fi 2362 done 2363 2364 if test -r "$cache_file"; then 2365 # Some versions of bash will fail to source /dev/null (special files 2366 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2369 $as_echo "$as_me: loading cache $cache_file" >&6;} 2370 case $cache_file in 2371 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2372 *) . "./$cache_file";; 2373 esac 2374 fi 2375 else 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2377 $as_echo "$as_me: creating cache $cache_file" >&6;} 2378 >$cache_file 2379 fi 2380 2381 # Check that the precious variables saved in the cache have kept the same 2382 # value. 2383 ac_cache_corrupted=false 2384 for ac_var in $ac_precious_vars; do 2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2386 eval ac_new_set=\$ac_env_${ac_var}_set 2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2388 eval ac_new_val=\$ac_env_${ac_var}_value 2389 case $ac_old_set,$ac_new_set in 2390 set,) 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2393 ac_cache_corrupted=: ;; 2394 ,set) 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2397 ac_cache_corrupted=: ;; 2398 ,);; 2399 *) 2400 if test "x$ac_old_val" != "x$ac_new_val"; then 2401 # differences in whitespace do not lead to failure. 2402 ac_old_val_w=`echo x $ac_old_val` 2403 ac_new_val_w=`echo x $ac_new_val` 2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2407 ac_cache_corrupted=: 2408 else 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2411 eval $ac_var=\$ac_old_val 2412 fi 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2417 fi;; 2418 esac 2419 # Pass precious variables to config.status. 2420 if test "$ac_new_set" = set; then 2421 case $ac_new_val in 2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2423 *) ac_arg=$ac_var=$ac_new_val ;; 2424 esac 2425 case " $ac_configure_args " in 2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2428 esac 2429 fi 2430 done 2431 if $ac_cache_corrupted; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2437 fi 2438 ## -------------------- ## 2439 ## Main body of script. ## 2440 ## -------------------- ## 2441 2442 ac_ext=c 2443 ac_cpp='$CPP $CPPFLAGS' 2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2447 2448 2449 2450 ac_aux_dir= 2451 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2452 if test -f "$ac_dir/install-sh"; then 2453 ac_aux_dir=$ac_dir 2454 ac_install_sh="$ac_aux_dir/install-sh -c" 2455 break 2456 elif test -f "$ac_dir/install.sh"; then 2457 ac_aux_dir=$ac_dir 2458 ac_install_sh="$ac_aux_dir/install.sh -c" 2459 break 2460 elif test -f "$ac_dir/shtool"; then 2461 ac_aux_dir=$ac_dir 2462 ac_install_sh="$ac_aux_dir/shtool install -c" 2463 break 2464 fi 2465 done 2466 if test -z "$ac_aux_dir"; then 2467 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2468 fi 2469 2470 # These three variables are undocumented and unsupported, 2471 # and are intended to be withdrawn in a future Autoconf release. 2472 # They can cause serious problems if a builder's source tree is in a directory 2473 # whose full name contains unusual characters. 2474 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2475 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2476 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2477 2478 2479 # Make sure we can run config.sub. 2480 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2481 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2482 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2484 $as_echo_n "checking build system type... " >&6; } 2485 if ${ac_cv_build+:} false; then : 2486 $as_echo_n "(cached) " >&6 2487 else 2488 ac_build_alias=$build_alias 2489 test "x$ac_build_alias" = x && 2490 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2491 test "x$ac_build_alias" = x && 2492 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2493 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2495 2496 fi 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2498 $as_echo "$ac_cv_build" >&6; } 2499 case $ac_cv_build in 2500 *-*-*) ;; 2501 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2502 esac 2503 build=$ac_cv_build 2504 ac_save_IFS=$IFS; IFS='-' 2505 set x $ac_cv_build 2506 shift 2507 build_cpu=$1 2508 build_vendor=$2 2509 shift; shift 2510 # Remember, the first character of IFS is used to create $*, 2511 # except with old shells: 2512 build_os=$* 2513 IFS=$ac_save_IFS 2514 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2515 2516 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2518 $as_echo_n "checking host system type... " >&6; } 2519 if ${ac_cv_host+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521 else 2522 if test "x$host_alias" = x; then 2523 ac_cv_host=$ac_cv_build 2524 else 2525 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2527 fi 2528 2529 fi 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2531 $as_echo "$ac_cv_host" >&6; } 2532 case $ac_cv_host in 2533 *-*-*) ;; 2534 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2535 esac 2536 host=$ac_cv_host 2537 ac_save_IFS=$IFS; IFS='-' 2538 set x $ac_cv_host 2539 shift 2540 host_cpu=$1 2541 host_vendor=$2 2542 shift; shift 2543 # Remember, the first character of IFS is used to create $*, 2544 # except with old shells: 2545 host_os=$* 2546 IFS=$ac_save_IFS 2547 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2548 2549 2550 2551 am__api_version='1.16' 2552 2553 # Find a good install program. We prefer a C program (faster), 2554 # so one script is as good as another. But avoid the broken or 2555 # incompatible versions: 2556 # SysV /etc/install, /usr/sbin/install 2557 # SunOS /usr/etc/install 2558 # IRIX /sbin/install 2559 # AIX /bin/install 2560 # AmigaOS /C/install, which installs bootblocks on floppy discs 2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2564 # OS/2's system install, which has a completely different semantic 2565 # ./install, which can be erroneously created by make from ./install.sh. 2566 # Reject install programs that cannot install multiple files. 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2568 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2569 if test -z "$INSTALL"; then 2570 if ${ac_cv_path_install+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572 else 2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574 for as_dir in $PATH 2575 do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 # Account for people who put trailing slashes in PATH elements. 2579 case $as_dir/ in #(( 2580 ./ | .// | /[cC]/* | \ 2581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2583 /usr/ucb/* ) ;; 2584 *) 2585 # OSF1 and SCO ODT 3.0 have their own names for install. 2586 # Don't use installbsd from OSF since it installs stuff as root 2587 # by default. 2588 for ac_prog in ginstall scoinst install; do 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2591 if test $ac_prog = install && 2592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2593 # AIX install. It has an incompatible calling convention. 2594 : 2595 elif test $ac_prog = install && 2596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2597 # program-specific install script used by HP pwplus--don't use. 2598 : 2599 else 2600 rm -rf conftest.one conftest.two conftest.dir 2601 echo one > conftest.one 2602 echo two > conftest.two 2603 mkdir conftest.dir 2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2605 test -s conftest.one && test -s conftest.two && 2606 test -s conftest.dir/conftest.one && 2607 test -s conftest.dir/conftest.two 2608 then 2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2610 break 3 2611 fi 2612 fi 2613 fi 2614 done 2615 done 2616 ;; 2617 esac 2618 2619 done 2620 IFS=$as_save_IFS 2621 2622 rm -rf conftest.one conftest.two conftest.dir 2623 2624 fi 2625 if test "${ac_cv_path_install+set}" = set; then 2626 INSTALL=$ac_cv_path_install 2627 else 2628 # As a last resort, use the slow shell script. Don't cache a 2629 # value for INSTALL within a source directory, because that will 2630 # break other packages using the cache if that directory is 2631 # removed, or if the value is a relative name. 2632 INSTALL=$ac_install_sh 2633 fi 2634 fi 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2636 $as_echo "$INSTALL" >&6; } 2637 2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2639 # It thinks the first close brace ends the variable substitution. 2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2641 2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2643 2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2645 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2647 $as_echo_n "checking whether build environment is sane... " >&6; } 2648 # Reject unsafe characters in $srcdir or the absolute working directory 2649 # name. Accept space and tab only in the latter. 2650 am_lf=' 2651 ' 2652 case `pwd` in 2653 *[\\\"\#\$\&\'\`$am_lf]*) 2654 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2655 esac 2656 case $srcdir in 2657 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2658 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2659 esac 2660 2661 # Do 'set' in a subshell so we don't clobber the current shell's 2662 # arguments. Must try -L first in case configure is actually a 2663 # symlink; some systems play weird games with the mod time of symlinks 2664 # (eg FreeBSD returns the mod time of the symlink's containing 2665 # directory). 2666 if ( 2667 am_has_slept=no 2668 for am_try in 1 2; do 2669 echo "timestamp, slept: $am_has_slept" > conftest.file 2670 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2671 if test "$*" = "X"; then 2672 # -L didn't work. 2673 set X `ls -t "$srcdir/configure" conftest.file` 2674 fi 2675 if test "$*" != "X $srcdir/configure conftest.file" \ 2676 && test "$*" != "X conftest.file $srcdir/configure"; then 2677 2678 # If neither matched, then we have a broken ls. This can happen 2679 # if, for instance, CONFIG_SHELL is bash and it inherits a 2680 # broken ls alias from the environment. This has actually 2681 # happened. Such a system could not be considered "sane". 2682 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2683 alias in your environment" "$LINENO" 5 2684 fi 2685 if test "$2" = conftest.file || test $am_try -eq 2; then 2686 break 2687 fi 2688 # Just in case. 2689 sleep 1 2690 am_has_slept=yes 2691 done 2692 test "$2" = conftest.file 2693 ) 2694 then 2695 # Ok. 2696 : 2697 else 2698 as_fn_error $? "newly created file is older than distributed files! 2699 Check your system clock" "$LINENO" 5 2700 fi 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2702 $as_echo "yes" >&6; } 2703 # If we didn't sleep, we still need to ensure time stamps of config.status and 2704 # generated files are strictly newer. 2705 am_sleep_pid= 2706 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2707 ( sleep 1 ) & 2708 am_sleep_pid=$! 2709 fi 2710 2711 rm -f conftest.file 2712 2713 test "$program_prefix" != NONE && 2714 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2715 # Use a double $ so make ignores it. 2716 test "$program_suffix" != NONE && 2717 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2718 # Double any \ or $. 2719 # By default was `s,x,x', remove it if useless. 2720 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2721 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2722 2723 # Expand $ac_aux_dir to an absolute path. 2724 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2725 2726 if test x"${MISSING+set}" != xset; then 2727 MISSING="\${SHELL} '$am_aux_dir/missing'" 2728 fi 2729 # Use eval to expand $SHELL 2730 if eval "$MISSING --is-lightweight"; then 2731 am_missing_run="$MISSING " 2732 else 2733 am_missing_run= 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2735 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2736 fi 2737 2738 if test x"${install_sh+set}" != xset; then 2739 case $am_aux_dir in 2740 *\ * | *\ *) 2741 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2742 *) 2743 install_sh="\${SHELL} $am_aux_dir/install-sh" 2744 esac 2745 fi 2746 2747 # Installed binaries are usually stripped using 'strip' when the user 2748 # run "make install-strip". However 'strip' might not be the right 2749 # tool to use in cross-compilation environments, therefore Automake 2750 # will honor the 'STRIP' environment variable to overrule this program. 2751 if test "$cross_compiling" != no; then 2752 if test -n "$ac_tool_prefix"; then 2753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2754 set dummy ${ac_tool_prefix}strip; ac_word=$2 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2756 $as_echo_n "checking for $ac_word... " >&6; } 2757 if ${ac_cv_prog_STRIP+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759 else 2760 if test -n "$STRIP"; then 2761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2762 else 2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764 for as_dir in $PATH 2765 do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2770 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 break 2 2773 fi 2774 done 2775 done 2776 IFS=$as_save_IFS 2777 2778 fi 2779 fi 2780 STRIP=$ac_cv_prog_STRIP 2781 if test -n "$STRIP"; then 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2783 $as_echo "$STRIP" >&6; } 2784 else 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786 $as_echo "no" >&6; } 2787 fi 2788 2789 2790 fi 2791 if test -z "$ac_cv_prog_STRIP"; then 2792 ac_ct_STRIP=$STRIP 2793 # Extract the first word of "strip", so it can be a program name with args. 2794 set dummy strip; ac_word=$2 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796 $as_echo_n "checking for $ac_word... " >&6; } 2797 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799 else 2800 if test -n "$ac_ct_STRIP"; then 2801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2802 else 2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804 for as_dir in $PATH 2805 do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2810 ac_cv_prog_ac_ct_STRIP="strip" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814 done 2815 done 2816 IFS=$as_save_IFS 2817 2818 fi 2819 fi 2820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2821 if test -n "$ac_ct_STRIP"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2823 $as_echo "$ac_ct_STRIP" >&6; } 2824 else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826 $as_echo "no" >&6; } 2827 fi 2828 2829 if test "x$ac_ct_STRIP" = x; then 2830 STRIP=":" 2831 else 2832 case $cross_compiling:$ac_tool_warned in 2833 yes:) 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2836 ac_tool_warned=yes ;; 2837 esac 2838 STRIP=$ac_ct_STRIP 2839 fi 2840 else 2841 STRIP="$ac_cv_prog_STRIP" 2842 fi 2843 2844 fi 2845 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2846 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2848 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2849 if test -z "$MKDIR_P"; then 2850 if ${ac_cv_path_mkdir+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852 else 2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2855 do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_prog in mkdir gmkdir; do 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2861 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2862 'mkdir (GNU coreutils) '* | \ 2863 'mkdir (coreutils) '* | \ 2864 'mkdir (fileutils) '4.1*) 2865 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2866 break 3;; 2867 esac 2868 done 2869 done 2870 done 2871 IFS=$as_save_IFS 2872 2873 fi 2874 2875 test -d ./--version && rmdir ./--version 2876 if test "${ac_cv_path_mkdir+set}" = set; then 2877 MKDIR_P="$ac_cv_path_mkdir -p" 2878 else 2879 # As a last resort, use the slow shell script. Don't cache a 2880 # value for MKDIR_P within a source directory, because that will 2881 # break other packages using the cache if that directory is 2882 # removed, or if the value is a relative name. 2883 MKDIR_P="$ac_install_sh -d" 2884 fi 2885 fi 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2887 $as_echo "$MKDIR_P" >&6; } 2888 2889 for ac_prog in gawk mawk nawk awk 2890 do 2891 # Extract the first word of "$ac_prog", so it can be a program name with args. 2892 set dummy $ac_prog; ac_word=$2 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894 $as_echo_n "checking for $ac_word... " >&6; } 2895 if ${ac_cv_prog_AWK+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897 else 2898 if test -n "$AWK"; then 2899 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2900 else 2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902 for as_dir in $PATH 2903 do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_AWK="$ac_prog" 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912 done 2913 done 2914 IFS=$as_save_IFS 2915 2916 fi 2917 fi 2918 AWK=$ac_cv_prog_AWK 2919 if test -n "$AWK"; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2921 $as_echo "$AWK" >&6; } 2922 else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924 $as_echo "no" >&6; } 2925 fi 2926 2927 2928 test -n "$AWK" && break 2929 done 2930 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2932 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2933 set x ${MAKE-make} 2934 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2935 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937 else 2938 cat >conftest.make <<\_ACEOF 2939 SHELL = /bin/sh 2940 all: 2941 @echo '@@@%%%=$(MAKE)=@@@%%%' 2942 _ACEOF 2943 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2944 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2945 *@@@%%%=?*=@@@%%%*) 2946 eval ac_cv_prog_make_${ac_make}_set=yes;; 2947 *) 2948 eval ac_cv_prog_make_${ac_make}_set=no;; 2949 esac 2950 rm -f conftest.make 2951 fi 2952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2954 $as_echo "yes" >&6; } 2955 SET_MAKE= 2956 else 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2958 $as_echo "no" >&6; } 2959 SET_MAKE="MAKE=${MAKE-make}" 2960 fi 2961 2962 rm -rf .tst 2>/dev/null 2963 mkdir .tst 2>/dev/null 2964 if test -d .tst; then 2965 am__leading_dot=. 2966 else 2967 am__leading_dot=_ 2968 fi 2969 rmdir .tst 2>/dev/null 2970 2971 # Check whether --enable-silent-rules was given. 2972 if test "${enable_silent_rules+set}" = set; then : 2973 enableval=$enable_silent_rules; 2974 fi 2975 2976 case $enable_silent_rules in # ((( 2977 yes) AM_DEFAULT_VERBOSITY=0;; 2978 no) AM_DEFAULT_VERBOSITY=1;; 2979 *) AM_DEFAULT_VERBOSITY=1;; 2980 esac 2981 am_make=${MAKE-make} 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2983 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2984 if ${am_cv_make_support_nested_variables+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986 else 2987 if $as_echo 'TRUE=$(BAR$(V)) 2988 BAR0=false 2989 BAR1=true 2990 V=1 2991 am__doit: 2992 @$(TRUE) 2993 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2994 am_cv_make_support_nested_variables=yes 2995 else 2996 am_cv_make_support_nested_variables=no 2997 fi 2998 fi 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3000 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3001 if test $am_cv_make_support_nested_variables = yes; then 3002 AM_V='$(V)' 3003 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3004 else 3005 AM_V=$AM_DEFAULT_VERBOSITY 3006 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3007 fi 3008 AM_BACKSLASH='\' 3009 3010 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3011 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3012 # is not polluted with repeated "-I." 3013 am__isrc=' -I$(srcdir)' 3014 # test to see if srcdir already configured 3015 if test -f $srcdir/config.status; then 3016 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3017 fi 3018 fi 3019 3020 # test whether we have cygpath 3021 if test -z "$CYGPATH_W"; then 3022 if (cygpath --version) >/dev/null 2>/dev/null; then 3023 CYGPATH_W='cygpath -w' 3024 else 3025 CYGPATH_W=echo 3026 fi 3027 fi 3028 3029 3030 # Define the identity of the package. 3031 PACKAGE='glu' 3032 VERSION='9.0.2' 3033 3034 3035 cat >>confdefs.h <<_ACEOF 3036 #define PACKAGE "$PACKAGE" 3037 _ACEOF 3038 3039 3040 cat >>confdefs.h <<_ACEOF 3041 #define VERSION "$VERSION" 3042 _ACEOF 3043 3044 # Some tools Automake needs. 3045 3046 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3047 3048 3049 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3050 3051 3052 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3053 3054 3055 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3056 3057 3058 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3059 3060 # For better backward compatibility. To be removed once Automake 1.9.x 3061 # dies out for good. For more background, see: 3062 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3063 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3064 mkdir_p='$(MKDIR_P)' 3065 3066 # We need awk for the "check" target (and possibly the TAP driver). The 3067 # system "awk" is bad on some platforms. 3068 # Always define AMTAR for backward compatibility. Yes, it's still used 3069 # in the wild :-( We should find a proper way to deprecate it ... 3070 AMTAR='$${TAR-tar}' 3071 3072 3073 # We'll loop over all known methods to create a tar archive until one works. 3074 _am_tools='gnutar pax cpio none' 3075 3076 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3077 3078 3079 3080 3081 3082 3083 # POSIX will say in a future version that running "rm -f" with no argument 3084 # is OK; and we want to be able to make that assumption in our Makefile 3085 # recipes. So use an aggressive probe to check that the usage we want is 3086 # actually supported "in the wild" to an acceptable degree. 3087 # See automake bug#10828. 3088 # To make any issue more visible, cause the running configure to be aborted 3089 # by default if the 'rm' program in use doesn't match our expectations; the 3090 # user can still override this though. 3091 if rm -f && rm -fr && rm -rf; then : OK; else 3092 cat >&2 <<'END' 3093 Oops! 3094 3095 Your 'rm' program seems unable to run without file operands specified 3096 on the command line, even when the '-f' option is present. This is contrary 3097 to the behaviour of most rm programs out there, and not conforming with 3098 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3099 3100 Please tell bug-automake@gnu.org about your system, including the value 3101 of your $PATH and any error possibly output before this message. This 3102 can help us improve future automake versions. 3103 3104 END 3105 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3106 echo 'Configuration will proceed anyway, since you have set the' >&2 3107 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3108 echo >&2 3109 else 3110 cat >&2 <<'END' 3111 Aborting the configuration process, to ensure you take notice of the issue. 3112 3113 You can download and install GNU coreutils to get an 'rm' implementation 3114 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3115 3116 If you want to complete the configuration process using your problematic 3117 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3118 to "yes", and re-run configure. 3119 3120 END 3121 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3122 fi 3123 fi 3124 3125 3126 3127 case `pwd` in 3128 *\ * | *\ *) 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3130 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3131 esac 3132 3133 3134 3135 macro_version='2.4.6' 3136 macro_revision='2.4.6' 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 ltmain=$ac_aux_dir/ltmain.sh 3151 3152 # Backslashify metacharacters that are still active within 3153 # double-quoted strings. 3154 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3155 3156 # Same as above, but do not quote variable references. 3157 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3158 3159 # Sed substitution to delay expansion of an escaped shell variable in a 3160 # double_quote_subst'ed string. 3161 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3162 3163 # Sed substitution to delay expansion of an escaped single quote. 3164 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3165 3166 # Sed substitution to avoid accidental globbing in evaled expressions 3167 no_glob_subst='s/\*/\\\*/g' 3168 3169 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3171 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3172 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3174 $as_echo_n "checking how to print strings... " >&6; } 3175 # Test print first, because it will be a builtin if present. 3176 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3178 ECHO='print -r --' 3179 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3180 ECHO='printf %s\n' 3181 else 3182 # Use this function as a fallback that always works. 3183 func_fallback_echo () 3184 { 3185 eval 'cat <<_LTECHO_EOF 3186 $1 3187 _LTECHO_EOF' 3188 } 3189 ECHO='func_fallback_echo' 3190 fi 3191 3192 # func_echo_all arg... 3193 # Invoke $ECHO with all args, space-separated. 3194 func_echo_all () 3195 { 3196 $ECHO "" 3197 } 3198 3199 case $ECHO in 3200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3201 $as_echo "printf" >&6; } ;; 3202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3203 $as_echo "print -r" >&6; } ;; 3204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3205 $as_echo "cat" >&6; } ;; 3206 esac 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 DEPDIR="${am__leading_dot}deps" 3222 3223 ac_config_commands="$ac_config_commands depfiles" 3224 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3226 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3227 cat > confinc.mk << 'END' 3228 am__doit: 3229 @echo this is the am__doit target >confinc.out 3230 .PHONY: am__doit 3231 END 3232 am__include="#" 3233 am__quote= 3234 # BSD make does it like this. 3235 echo '.include "confinc.mk" # ignored' > confmf.BSD 3236 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3237 echo 'include confinc.mk # ignored' > confmf.GNU 3238 _am_result=no 3239 for s in GNU BSD; do 3240 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3241 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3242 ac_status=$? 3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3244 (exit $ac_status); } 3245 case $?:`cat confinc.out 2>/dev/null` in #( 3246 '0:this is the am__doit target') : 3247 case $s in #( 3248 BSD) : 3249 am__include='.include' am__quote='"' ;; #( 3250 *) : 3251 am__include='include' am__quote='' ;; 3252 esac ;; #( 3253 *) : 3254 ;; 3255 esac 3256 if test "$am__include" != "#"; then 3257 _am_result="yes ($s style)" 3258 break 3259 fi 3260 done 3261 rm -f confinc.* confmf.* 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3263 $as_echo "${_am_result}" >&6; } 3264 3265 # Check whether --enable-dependency-tracking was given. 3266 if test "${enable_dependency_tracking+set}" = set; then : 3267 enableval=$enable_dependency_tracking; 3268 fi 3269 3270 if test "x$enable_dependency_tracking" != xno; then 3271 am_depcomp="$ac_aux_dir/depcomp" 3272 AMDEPBACKSLASH='\' 3273 am__nodep='_no' 3274 fi 3275 if test "x$enable_dependency_tracking" != xno; then 3276 AMDEP_TRUE= 3277 AMDEP_FALSE='#' 3278 else 3279 AMDEP_TRUE='#' 3280 AMDEP_FALSE= 3281 fi 3282 3283 3284 ac_ext=c 3285 ac_cpp='$CPP $CPPFLAGS' 3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3289 if test -n "$ac_tool_prefix"; then 3290 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3291 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3293 $as_echo_n "checking for $ac_word... " >&6; } 3294 if ${ac_cv_prog_CC+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296 else 3297 if test -n "$CC"; then 3298 ac_cv_prog_CC="$CC" # Let the user override the test. 3299 else 3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301 for as_dir in $PATH 3302 do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3307 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311 done 3312 done 3313 IFS=$as_save_IFS 3314 3315 fi 3316 fi 3317 CC=$ac_cv_prog_CC 3318 if test -n "$CC"; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3320 $as_echo "$CC" >&6; } 3321 else 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323 $as_echo "no" >&6; } 3324 fi 3325 3326 3327 fi 3328 if test -z "$ac_cv_prog_CC"; then 3329 ac_ct_CC=$CC 3330 # Extract the first word of "gcc", so it can be a program name with args. 3331 set dummy gcc; ac_word=$2 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333 $as_echo_n "checking for $ac_word... " >&6; } 3334 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336 else 3337 if test -n "$ac_ct_CC"; then 3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3339 else 3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341 for as_dir in $PATH 3342 do 3343 IFS=$as_save_IFS 3344 test -z "$as_dir" && as_dir=. 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_ac_ct_CC="gcc" 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351 done 3352 done 3353 IFS=$as_save_IFS 3354 3355 fi 3356 fi 3357 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3358 if test -n "$ac_ct_CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3360 $as_echo "$ac_ct_CC" >&6; } 3361 else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363 $as_echo "no" >&6; } 3364 fi 3365 3366 if test "x$ac_ct_CC" = x; then 3367 CC="" 3368 else 3369 case $cross_compiling:$ac_tool_warned in 3370 yes:) 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3373 ac_tool_warned=yes ;; 3374 esac 3375 CC=$ac_ct_CC 3376 fi 3377 else 3378 CC="$ac_cv_prog_CC" 3379 fi 3380 3381 if test -z "$CC"; then 3382 if test -n "$ac_tool_prefix"; then 3383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3384 set dummy ${ac_tool_prefix}cc; ac_word=$2 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386 $as_echo_n "checking for $ac_word... " >&6; } 3387 if ${ac_cv_prog_CC+:} false; then : 3388 $as_echo_n "(cached) " >&6 3389 else 3390 if test -n "$CC"; then 3391 ac_cv_prog_CC="$CC" # Let the user override the test. 3392 else 3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394 for as_dir in $PATH 3395 do 3396 IFS=$as_save_IFS 3397 test -z "$as_dir" && as_dir=. 3398 for ac_exec_ext in '' $ac_executable_extensions; do 3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3400 ac_cv_prog_CC="${ac_tool_prefix}cc" 3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3402 break 2 3403 fi 3404 done 3405 done 3406 IFS=$as_save_IFS 3407 3408 fi 3409 fi 3410 CC=$ac_cv_prog_CC 3411 if test -n "$CC"; then 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3413 $as_echo "$CC" >&6; } 3414 else 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416 $as_echo "no" >&6; } 3417 fi 3418 3419 3420 fi 3421 fi 3422 if test -z "$CC"; then 3423 # Extract the first word of "cc", so it can be a program name with args. 3424 set dummy cc; ac_word=$2 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3426 $as_echo_n "checking for $ac_word... " >&6; } 3427 if ${ac_cv_prog_CC+:} false; then : 3428 $as_echo_n "(cached) " >&6 3429 else 3430 if test -n "$CC"; then 3431 ac_cv_prog_CC="$CC" # Let the user override the test. 3432 else 3433 ac_prog_rejected=no 3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3435 for as_dir in $PATH 3436 do 3437 IFS=$as_save_IFS 3438 test -z "$as_dir" && as_dir=. 3439 for ac_exec_ext in '' $ac_executable_extensions; do 3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3442 ac_prog_rejected=yes 3443 continue 3444 fi 3445 ac_cv_prog_CC="cc" 3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449 done 3450 done 3451 IFS=$as_save_IFS 3452 3453 if test $ac_prog_rejected = yes; then 3454 # We found a bogon in the path, so make sure we never use it. 3455 set dummy $ac_cv_prog_CC 3456 shift 3457 if test $# != 0; then 3458 # We chose a different compiler from the bogus one. 3459 # However, it has the same basename, so the bogon will be chosen 3460 # first if we set CC to just the basename; use the full file name. 3461 shift 3462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3463 fi 3464 fi 3465 fi 3466 fi 3467 CC=$ac_cv_prog_CC 3468 if test -n "$CC"; then 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3470 $as_echo "$CC" >&6; } 3471 else 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473 $as_echo "no" >&6; } 3474 fi 3475 3476 3477 fi 3478 if test -z "$CC"; then 3479 if test -n "$ac_tool_prefix"; then 3480 for ac_prog in cl.exe 3481 do 3482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485 $as_echo_n "checking for $ac_word... " >&6; } 3486 if ${ac_cv_prog_CC+:} false; then : 3487 $as_echo_n "(cached) " >&6 3488 else 3489 if test -n "$CC"; then 3490 ac_cv_prog_CC="$CC" # Let the user override the test. 3491 else 3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493 for as_dir in $PATH 3494 do 3495 IFS=$as_save_IFS 3496 test -z "$as_dir" && as_dir=. 3497 for ac_exec_ext in '' $ac_executable_extensions; do 3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503 done 3504 done 3505 IFS=$as_save_IFS 3506 3507 fi 3508 fi 3509 CC=$ac_cv_prog_CC 3510 if test -n "$CC"; then 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3512 $as_echo "$CC" >&6; } 3513 else 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515 $as_echo "no" >&6; } 3516 fi 3517 3518 3519 test -n "$CC" && break 3520 done 3521 fi 3522 if test -z "$CC"; then 3523 ac_ct_CC=$CC 3524 for ac_prog in cl.exe 3525 do 3526 # Extract the first word of "$ac_prog", so it can be a program name with args. 3527 set dummy $ac_prog; ac_word=$2 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529 $as_echo_n "checking for $ac_word... " >&6; } 3530 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532 else 3533 if test -n "$ac_ct_CC"; then 3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3535 else 3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537 for as_dir in $PATH 3538 do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3543 ac_cv_prog_ac_ct_CC="$ac_prog" 3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547 done 3548 done 3549 IFS=$as_save_IFS 3550 3551 fi 3552 fi 3553 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3554 if test -n "$ac_ct_CC"; then 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3556 $as_echo "$ac_ct_CC" >&6; } 3557 else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559 $as_echo "no" >&6; } 3560 fi 3561 3562 3563 test -n "$ac_ct_CC" && break 3564 done 3565 3566 if test "x$ac_ct_CC" = x; then 3567 CC="" 3568 else 3569 case $cross_compiling:$ac_tool_warned in 3570 yes:) 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3573 ac_tool_warned=yes ;; 3574 esac 3575 CC=$ac_ct_CC 3576 fi 3577 fi 3578 3579 fi 3580 3581 3582 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584 as_fn_error $? "no acceptable C compiler found in \$PATH 3585 See \`config.log' for more details" "$LINENO" 5; } 3586 3587 # Provide some information about the compiler. 3588 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3589 set X $ac_compile 3590 ac_compiler=$2 3591 for ac_option in --version -v -V -qversion; do 3592 { { ac_try="$ac_compiler $ac_option >&5" 3593 case "(($ac_try" in 3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3595 *) ac_try_echo=$ac_try;; 3596 esac 3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3598 $as_echo "$ac_try_echo"; } >&5 3599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3600 ac_status=$? 3601 if test -s conftest.err; then 3602 sed '10a\ 3603 ... rest of stderr output deleted ... 3604 10q' conftest.err >conftest.er1 3605 cat conftest.er1 >&5 3606 fi 3607 rm -f conftest.er1 conftest.err 3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3609 test $ac_status = 0; } 3610 done 3611 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613 /* end confdefs.h. */ 3614 3615 int 3616 main () 3617 { 3618 3619 ; 3620 return 0; 3621 } 3622 _ACEOF 3623 ac_clean_files_save=$ac_clean_files 3624 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3625 # Try to create an executable without -o first, disregard a.out. 3626 # It will help us diagnose broken compilers, and finding out an intuition 3627 # of exeext. 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3629 $as_echo_n "checking whether the C compiler works... " >&6; } 3630 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3631 3632 # The possible output files: 3633 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3634 3635 ac_rmfiles= 3636 for ac_file in $ac_files 3637 do 3638 case $ac_file in 3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3640 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3641 esac 3642 done 3643 rm -f $ac_rmfiles 3644 3645 if { { ac_try="$ac_link_default" 3646 case "(($ac_try" in 3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3648 *) ac_try_echo=$ac_try;; 3649 esac 3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3651 $as_echo "$ac_try_echo"; } >&5 3652 (eval "$ac_link_default") 2>&5 3653 ac_status=$? 3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3655 test $ac_status = 0; }; then : 3656 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3657 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3658 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3659 # so that the user can short-circuit this test for compilers unknown to 3660 # Autoconf. 3661 for ac_file in $ac_files '' 3662 do 3663 test -f "$ac_file" || continue 3664 case $ac_file in 3665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3666 ;; 3667 [ab].out ) 3668 # We found the default executable, but exeext='' is most 3669 # certainly right. 3670 break;; 3671 *.* ) 3672 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3673 then :; else 3674 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3675 fi 3676 # We set ac_cv_exeext here because the later test for it is not 3677 # safe: cross compilers may not add the suffix if given an `-o' 3678 # argument, so we may need to know it at that point already. 3679 # Even if this section looks crufty: it has the advantage of 3680 # actually working. 3681 break;; 3682 * ) 3683 break;; 3684 esac 3685 done 3686 test "$ac_cv_exeext" = no && ac_cv_exeext= 3687 3688 else 3689 ac_file='' 3690 fi 3691 if test -z "$ac_file"; then : 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3693 $as_echo "no" >&6; } 3694 $as_echo "$as_me: failed program was:" >&5 3695 sed 's/^/| /' conftest.$ac_ext >&5 3696 3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3699 as_fn_error 77 "C compiler cannot create executables 3700 See \`config.log' for more details" "$LINENO" 5; } 3701 else 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3703 $as_echo "yes" >&6; } 3704 fi 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3706 $as_echo_n "checking for C compiler default output file name... " >&6; } 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3708 $as_echo "$ac_file" >&6; } 3709 ac_exeext=$ac_cv_exeext 3710 3711 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3712 ac_clean_files=$ac_clean_files_save 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3714 $as_echo_n "checking for suffix of executables... " >&6; } 3715 if { { ac_try="$ac_link" 3716 case "(($ac_try" in 3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *) ac_try_echo=$ac_try;; 3719 esac 3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721 $as_echo "$ac_try_echo"; } >&5 3722 (eval "$ac_link") 2>&5 3723 ac_status=$? 3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3725 test $ac_status = 0; }; then : 3726 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3727 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3728 # work properly (i.e., refer to `conftest.exe'), while it won't with 3729 # `rm'. 3730 for ac_file in conftest.exe conftest conftest.*; do 3731 test -f "$ac_file" || continue 3732 case $ac_file in 3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3735 break;; 3736 * ) break;; 3737 esac 3738 done 3739 else 3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3742 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3743 See \`config.log' for more details" "$LINENO" 5; } 3744 fi 3745 rm -f conftest conftest$ac_cv_exeext 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3747 $as_echo "$ac_cv_exeext" >&6; } 3748 3749 rm -f conftest.$ac_ext 3750 EXEEXT=$ac_cv_exeext 3751 ac_exeext=$EXEEXT 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3753 /* end confdefs.h. */ 3754 #include <stdio.h> 3755 int 3756 main () 3757 { 3758 FILE *f = fopen ("conftest.out", "w"); 3759 return ferror (f) || fclose (f) != 0; 3760 3761 ; 3762 return 0; 3763 } 3764 _ACEOF 3765 ac_clean_files="$ac_clean_files conftest.out" 3766 # Check that the compiler produces executables we can run. If not, either 3767 # the compiler is broken, or we cross compile. 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3769 $as_echo_n "checking whether we are cross compiling... " >&6; } 3770 if test "$cross_compiling" != yes; then 3771 { { ac_try="$ac_link" 3772 case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775 esac 3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3777 $as_echo "$ac_try_echo"; } >&5 3778 (eval "$ac_link") 2>&5 3779 ac_status=$? 3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3781 test $ac_status = 0; } 3782 if { ac_try='./conftest$ac_cv_exeext' 3783 { { case "(($ac_try" in 3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3785 *) ac_try_echo=$ac_try;; 3786 esac 3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3788 $as_echo "$ac_try_echo"; } >&5 3789 (eval "$ac_try") 2>&5 3790 ac_status=$? 3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3792 test $ac_status = 0; }; }; then 3793 cross_compiling=no 3794 else 3795 if test "$cross_compiling" = maybe; then 3796 cross_compiling=yes 3797 else 3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3800 as_fn_error $? "cannot run C compiled programs. 3801 If you meant to cross compile, use \`--host'. 3802 See \`config.log' for more details" "$LINENO" 5; } 3803 fi 3804 fi 3805 fi 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3807 $as_echo "$cross_compiling" >&6; } 3808 3809 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3810 ac_clean_files=$ac_clean_files_save 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3812 $as_echo_n "checking for suffix of object files... " >&6; } 3813 if ${ac_cv_objext+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815 else 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817 /* end confdefs.h. */ 3818 3819 int 3820 main () 3821 { 3822 3823 ; 3824 return 0; 3825 } 3826 _ACEOF 3827 rm -f conftest.o conftest.obj 3828 if { { ac_try="$ac_compile" 3829 case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832 esac 3833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834 $as_echo "$ac_try_echo"; } >&5 3835 (eval "$ac_compile") 2>&5 3836 ac_status=$? 3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 test $ac_status = 0; }; then : 3839 for ac_file in conftest.o conftest.obj conftest.*; do 3840 test -f "$ac_file" || continue; 3841 case $ac_file in 3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3843 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3844 break;; 3845 esac 3846 done 3847 else 3848 $as_echo "$as_me: failed program was:" >&5 3849 sed 's/^/| /' conftest.$ac_ext >&5 3850 3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3853 as_fn_error $? "cannot compute suffix of object files: cannot compile 3854 See \`config.log' for more details" "$LINENO" 5; } 3855 fi 3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3857 fi 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3859 $as_echo "$ac_cv_objext" >&6; } 3860 OBJEXT=$ac_cv_objext 3861 ac_objext=$OBJEXT 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3863 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3864 if ${ac_cv_c_compiler_gnu+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866 else 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868 /* end confdefs.h. */ 3869 3870 int 3871 main () 3872 { 3873 #ifndef __GNUC__ 3874 choke me 3875 #endif 3876 3877 ; 3878 return 0; 3879 } 3880 _ACEOF 3881 if ac_fn_c_try_compile "$LINENO"; then : 3882 ac_compiler_gnu=yes 3883 else 3884 ac_compiler_gnu=no 3885 fi 3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3888 3889 fi 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3891 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3892 if test $ac_compiler_gnu = yes; then 3893 GCC=yes 3894 else 3895 GCC= 3896 fi 3897 ac_test_CFLAGS=${CFLAGS+set} 3898 ac_save_CFLAGS=$CFLAGS 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3900 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3901 if ${ac_cv_prog_cc_g+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903 else 3904 ac_save_c_werror_flag=$ac_c_werror_flag 3905 ac_c_werror_flag=yes 3906 ac_cv_prog_cc_g=no 3907 CFLAGS="-g" 3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909 /* end confdefs.h. */ 3910 3911 int 3912 main () 3913 { 3914 3915 ; 3916 return 0; 3917 } 3918 _ACEOF 3919 if ac_fn_c_try_compile "$LINENO"; then : 3920 ac_cv_prog_cc_g=yes 3921 else 3922 CFLAGS="" 3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924 /* end confdefs.h. */ 3925 3926 int 3927 main () 3928 { 3929 3930 ; 3931 return 0; 3932 } 3933 _ACEOF 3934 if ac_fn_c_try_compile "$LINENO"; then : 3935 3936 else 3937 ac_c_werror_flag=$ac_save_c_werror_flag 3938 CFLAGS="-g" 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940 /* end confdefs.h. */ 3941 3942 int 3943 main () 3944 { 3945 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 if ac_fn_c_try_compile "$LINENO"; then : 3951 ac_cv_prog_cc_g=yes 3952 fi 3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3954 fi 3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3956 fi 3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3958 ac_c_werror_flag=$ac_save_c_werror_flag 3959 fi 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3961 $as_echo "$ac_cv_prog_cc_g" >&6; } 3962 if test "$ac_test_CFLAGS" = set; then 3963 CFLAGS=$ac_save_CFLAGS 3964 elif test $ac_cv_prog_cc_g = yes; then 3965 if test "$GCC" = yes; then 3966 CFLAGS="-g -O2" 3967 else 3968 CFLAGS="-g" 3969 fi 3970 else 3971 if test "$GCC" = yes; then 3972 CFLAGS="-O2" 3973 else 3974 CFLAGS= 3975 fi 3976 fi 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3978 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3979 if ${ac_cv_prog_cc_c89+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981 else 3982 ac_cv_prog_cc_c89=no 3983 ac_save_CC=$CC 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985 /* end confdefs.h. */ 3986 #include <stdarg.h> 3987 #include <stdio.h> 3988 struct stat; 3989 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3990 struct buf { int x; }; 3991 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3992 static char *e (p, i) 3993 char **p; 3994 int i; 3995 { 3996 return p[i]; 3997 } 3998 static char *f (char * (*g) (char **, int), char **p, ...) 3999 { 4000 char *s; 4001 va_list v; 4002 va_start (v,p); 4003 s = g (p, va_arg (v,int)); 4004 va_end (v); 4005 return s; 4006 } 4007 4008 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4009 function prototypes and stuff, but not '\xHH' hex character constants. 4010 These don't provoke an error unfortunately, instead are silently treated 4011 as 'x'. The following induces an error, until -std is added to get 4012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4013 array size at least. It's necessary to write '\x00'==0 to get something 4014 that's true only with -std. */ 4015 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4016 4017 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4018 inside strings and character constants. */ 4019 #define FOO(x) 'x' 4020 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4021 4022 int test (int i, double x); 4023 struct s1 {int (*f) (int a);}; 4024 struct s2 {int (*f) (double a);}; 4025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4026 int argc; 4027 char **argv; 4028 int 4029 main () 4030 { 4031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4032 ; 4033 return 0; 4034 } 4035 _ACEOF 4036 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4038 do 4039 CC="$ac_save_CC $ac_arg" 4040 if ac_fn_c_try_compile "$LINENO"; then : 4041 ac_cv_prog_cc_c89=$ac_arg 4042 fi 4043 rm -f core conftest.err conftest.$ac_objext 4044 test "x$ac_cv_prog_cc_c89" != "xno" && break 4045 done 4046 rm -f conftest.$ac_ext 4047 CC=$ac_save_CC 4048 4049 fi 4050 # AC_CACHE_VAL 4051 case "x$ac_cv_prog_cc_c89" in 4052 x) 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4054 $as_echo "none needed" >&6; } ;; 4055 xno) 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4057 $as_echo "unsupported" >&6; } ;; 4058 *) 4059 CC="$CC $ac_cv_prog_cc_c89" 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4061 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4062 esac 4063 if test "x$ac_cv_prog_cc_c89" != xno; then : 4064 4065 fi 4066 4067 ac_ext=c 4068 ac_cpp='$CPP $CPPFLAGS' 4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4072 4073 ac_ext=c 4074 ac_cpp='$CPP $CPPFLAGS' 4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4079 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4080 if ${am_cv_prog_cc_c_o+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082 else 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084 /* end confdefs.h. */ 4085 4086 int 4087 main () 4088 { 4089 4090 ; 4091 return 0; 4092 } 4093 _ACEOF 4094 # Make sure it works both with $CC and with simple cc. 4095 # Following AC_PROG_CC_C_O, we do the test twice because some 4096 # compilers refuse to overwrite an existing .o file with -o, 4097 # though they will create one. 4098 am_cv_prog_cc_c_o=yes 4099 for am_i in 1 2; do 4100 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4101 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4102 ac_status=$? 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } \ 4105 && test -f conftest2.$ac_objext; then 4106 : OK 4107 else 4108 am_cv_prog_cc_c_o=no 4109 break 4110 fi 4111 done 4112 rm -f core conftest* 4113 unset am_i 4114 fi 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4116 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4117 if test "$am_cv_prog_cc_c_o" != yes; then 4118 # Losing compiler, so override with the script. 4119 # FIXME: It is wrong to rewrite CC. 4120 # But if we don't then we get into trouble of one sort or another. 4121 # A longer-term fix would be to have automake use am__CC in this case, 4122 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4123 CC="$am_aux_dir/compile $CC" 4124 fi 4125 ac_ext=c 4126 ac_cpp='$CPP $CPPFLAGS' 4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4130 4131 4132 depcc="$CC" am_compiler_list= 4133 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4135 $as_echo_n "checking dependency style of $depcc... " >&6; } 4136 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4137 $as_echo_n "(cached) " >&6 4138 else 4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4140 # We make a subdir and do the tests there. Otherwise we can end up 4141 # making bogus files that we don't know about and never remove. For 4142 # instance it was reported that on HP-UX the gcc test will end up 4143 # making a dummy file named 'D' -- because '-MD' means "put the output 4144 # in D". 4145 rm -rf conftest.dir 4146 mkdir conftest.dir 4147 # Copy depcomp to subdir because otherwise we won't find it if we're 4148 # using a relative directory. 4149 cp "$am_depcomp" conftest.dir 4150 cd conftest.dir 4151 # We will build objects and dependencies in a subdirectory because 4152 # it helps to detect inapplicable dependency modes. For instance 4153 # both Tru64's cc and ICC support -MD to output dependencies as a 4154 # side effect of compilation, but ICC will put the dependencies in 4155 # the current directory while Tru64 will put them in the object 4156 # directory. 4157 mkdir sub 4158 4159 am_cv_CC_dependencies_compiler_type=none 4160 if test "$am_compiler_list" = ""; then 4161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4162 fi 4163 am__universal=false 4164 case " $depcc " in #( 4165 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4166 esac 4167 4168 for depmode in $am_compiler_list; do 4169 # Setup a source with many dependencies, because some compilers 4170 # like to wrap large dependency lists on column 80 (with \), and 4171 # we should not choose a depcomp mode which is confused by this. 4172 # 4173 # We need to recreate these files for each test, as the compiler may 4174 # overwrite some of them when testing with obscure command lines. 4175 # This happens at least with the AIX C compiler. 4176 : > sub/conftest.c 4177 for i in 1 2 3 4 5 6; do 4178 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4179 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4180 # Solaris 10 /bin/sh. 4181 echo '/* dummy */' > sub/conftst$i.h 4182 done 4183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4184 4185 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4186 # mode. It turns out that the SunPro C++ compiler does not properly 4187 # handle '-M -o', and we need to detect this. Also, some Intel 4188 # versions had trouble with output in subdirs. 4189 am__obj=sub/conftest.${OBJEXT-o} 4190 am__minus_obj="-o $am__obj" 4191 case $depmode in 4192 gcc) 4193 # This depmode causes a compiler race in universal mode. 4194 test "$am__universal" = false || continue 4195 ;; 4196 nosideeffect) 4197 # After this tag, mechanisms are not by side-effect, so they'll 4198 # only be used when explicitly requested. 4199 if test "x$enable_dependency_tracking" = xyes; then 4200 continue 4201 else 4202 break 4203 fi 4204 ;; 4205 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4206 # This compiler won't grok '-c -o', but also, the minuso test has 4207 # not run yet. These depmodes are late enough in the game, and 4208 # so weak that their functioning should not be impacted. 4209 am__obj=conftest.${OBJEXT-o} 4210 am__minus_obj= 4211 ;; 4212 none) break ;; 4213 esac 4214 if depmode=$depmode \ 4215 source=sub/conftest.c object=$am__obj \ 4216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4217 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4218 >/dev/null 2>conftest.err && 4219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4221 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4223 # icc doesn't choke on unknown options, it will just issue warnings 4224 # or remarks (even with -Werror). So we grep stderr for any message 4225 # that says an option was ignored or not supported. 4226 # When given -MP, icc 7.0 and 7.1 complain thusly: 4227 # icc: Command line warning: ignoring option '-M'; no argument required 4228 # The diagnosis changed in icc 8.0: 4229 # icc: Command line remark: option '-MP' not supported 4230 if (grep 'ignoring option' conftest.err || 4231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4232 am_cv_CC_dependencies_compiler_type=$depmode 4233 break 4234 fi 4235 fi 4236 done 4237 4238 cd .. 4239 rm -rf conftest.dir 4240 else 4241 am_cv_CC_dependencies_compiler_type=none 4242 fi 4243 4244 fi 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4246 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4248 4249 if 4250 test "x$enable_dependency_tracking" != xno \ 4251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4252 am__fastdepCC_TRUE= 4253 am__fastdepCC_FALSE='#' 4254 else 4255 am__fastdepCC_TRUE='#' 4256 am__fastdepCC_FALSE= 4257 fi 4258 4259 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4261 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4262 if ${ac_cv_path_SED+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264 else 4265 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4266 for ac_i in 1 2 3 4 5 6 7; do 4267 ac_script="$ac_script$as_nl$ac_script" 4268 done 4269 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4270 { ac_script=; unset ac_script;} 4271 if test -z "$SED"; then 4272 ac_path_SED_found=false 4273 # Loop through the user's path and test for each of PROGNAME-LIST 4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4275 for as_dir in $PATH 4276 do 4277 IFS=$as_save_IFS 4278 test -z "$as_dir" && as_dir=. 4279 for ac_prog in sed gsed; do 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4282 as_fn_executable_p "$ac_path_SED" || continue 4283 # Check for GNU ac_path_SED and select it if it is found. 4284 # Check for GNU $ac_path_SED 4285 case `"$ac_path_SED" --version 2>&1` in 4286 *GNU*) 4287 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4288 *) 4289 ac_count=0 4290 $as_echo_n 0123456789 >"conftest.in" 4291 while : 4292 do 4293 cat "conftest.in" "conftest.in" >"conftest.tmp" 4294 mv "conftest.tmp" "conftest.in" 4295 cp "conftest.in" "conftest.nl" 4296 $as_echo '' >> "conftest.nl" 4297 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4299 as_fn_arith $ac_count + 1 && ac_count=$as_val 4300 if test $ac_count -gt ${ac_path_SED_max-0}; then 4301 # Best one so far, save it but keep looking for a better one 4302 ac_cv_path_SED="$ac_path_SED" 4303 ac_path_SED_max=$ac_count 4304 fi 4305 # 10*(2^10) chars as input seems more than enough 4306 test $ac_count -gt 10 && break 4307 done 4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4309 esac 4310 4311 $ac_path_SED_found && break 3 4312 done 4313 done 4314 done 4315 IFS=$as_save_IFS 4316 if test -z "$ac_cv_path_SED"; then 4317 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4318 fi 4319 else 4320 ac_cv_path_SED=$SED 4321 fi 4322 4323 fi 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4325 $as_echo "$ac_cv_path_SED" >&6; } 4326 SED="$ac_cv_path_SED" 4327 rm -f conftest.sed 4328 4329 test -z "$SED" && SED=sed 4330 Xsed="$SED -e 1s/^X//" 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4343 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4344 if ${ac_cv_path_GREP+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346 else 4347 if test -z "$GREP"; then 4348 ac_path_GREP_found=false 4349 # Loop through the user's path and test for each of PROGNAME-LIST 4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4352 do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_prog in grep ggrep; do 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4358 as_fn_executable_p "$ac_path_GREP" || continue 4359 # Check for GNU ac_path_GREP and select it if it is found. 4360 # Check for GNU $ac_path_GREP 4361 case `"$ac_path_GREP" --version 2>&1` in 4362 *GNU*) 4363 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4364 *) 4365 ac_count=0 4366 $as_echo_n 0123456789 >"conftest.in" 4367 while : 4368 do 4369 cat "conftest.in" "conftest.in" >"conftest.tmp" 4370 mv "conftest.tmp" "conftest.in" 4371 cp "conftest.in" "conftest.nl" 4372 $as_echo 'GREP' >> "conftest.nl" 4373 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4375 as_fn_arith $ac_count + 1 && ac_count=$as_val 4376 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4377 # Best one so far, save it but keep looking for a better one 4378 ac_cv_path_GREP="$ac_path_GREP" 4379 ac_path_GREP_max=$ac_count 4380 fi 4381 # 10*(2^10) chars as input seems more than enough 4382 test $ac_count -gt 10 && break 4383 done 4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4385 esac 4386 4387 $ac_path_GREP_found && break 3 4388 done 4389 done 4390 done 4391 IFS=$as_save_IFS 4392 if test -z "$ac_cv_path_GREP"; then 4393 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4394 fi 4395 else 4396 ac_cv_path_GREP=$GREP 4397 fi 4398 4399 fi 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4401 $as_echo "$ac_cv_path_GREP" >&6; } 4402 GREP="$ac_cv_path_GREP" 4403 4404 4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4406 $as_echo_n "checking for egrep... " >&6; } 4407 if ${ac_cv_path_EGREP+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409 else 4410 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4411 then ac_cv_path_EGREP="$GREP -E" 4412 else 4413 if test -z "$EGREP"; then 4414 ac_path_EGREP_found=false 4415 # Loop through the user's path and test for each of PROGNAME-LIST 4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4418 do 4419 IFS=$as_save_IFS 4420 test -z "$as_dir" && as_dir=. 4421 for ac_prog in egrep; do 4422 for ac_exec_ext in '' $ac_executable_extensions; do 4423 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4424 as_fn_executable_p "$ac_path_EGREP" || continue 4425 # Check for GNU ac_path_EGREP and select it if it is found. 4426 # Check for GNU $ac_path_EGREP 4427 case `"$ac_path_EGREP" --version 2>&1` in 4428 *GNU*) 4429 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4430 *) 4431 ac_count=0 4432 $as_echo_n 0123456789 >"conftest.in" 4433 while : 4434 do 4435 cat "conftest.in" "conftest.in" >"conftest.tmp" 4436 mv "conftest.tmp" "conftest.in" 4437 cp "conftest.in" "conftest.nl" 4438 $as_echo 'EGREP' >> "conftest.nl" 4439 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4441 as_fn_arith $ac_count + 1 && ac_count=$as_val 4442 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4443 # Best one so far, save it but keep looking for a better one 4444 ac_cv_path_EGREP="$ac_path_EGREP" 4445 ac_path_EGREP_max=$ac_count 4446 fi 4447 # 10*(2^10) chars as input seems more than enough 4448 test $ac_count -gt 10 && break 4449 done 4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4451 esac 4452 4453 $ac_path_EGREP_found && break 3 4454 done 4455 done 4456 done 4457 IFS=$as_save_IFS 4458 if test -z "$ac_cv_path_EGREP"; then 4459 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4460 fi 4461 else 4462 ac_cv_path_EGREP=$EGREP 4463 fi 4464 4465 fi 4466 fi 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4468 $as_echo "$ac_cv_path_EGREP" >&6; } 4469 EGREP="$ac_cv_path_EGREP" 4470 4471 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4473 $as_echo_n "checking for fgrep... " >&6; } 4474 if ${ac_cv_path_FGREP+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476 else 4477 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4478 then ac_cv_path_FGREP="$GREP -F" 4479 else 4480 if test -z "$FGREP"; then 4481 ac_path_FGREP_found=false 4482 # Loop through the user's path and test for each of PROGNAME-LIST 4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4485 do 4486 IFS=$as_save_IFS 4487 test -z "$as_dir" && as_dir=. 4488 for ac_prog in fgrep; do 4489 for ac_exec_ext in '' $ac_executable_extensions; do 4490 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4491 as_fn_executable_p "$ac_path_FGREP" || continue 4492 # Check for GNU ac_path_FGREP and select it if it is found. 4493 # Check for GNU $ac_path_FGREP 4494 case `"$ac_path_FGREP" --version 2>&1` in 4495 *GNU*) 4496 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4497 *) 4498 ac_count=0 4499 $as_echo_n 0123456789 >"conftest.in" 4500 while : 4501 do 4502 cat "conftest.in" "conftest.in" >"conftest.tmp" 4503 mv "conftest.tmp" "conftest.in" 4504 cp "conftest.in" "conftest.nl" 4505 $as_echo 'FGREP' >> "conftest.nl" 4506 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4508 as_fn_arith $ac_count + 1 && ac_count=$as_val 4509 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4510 # Best one so far, save it but keep looking for a better one 4511 ac_cv_path_FGREP="$ac_path_FGREP" 4512 ac_path_FGREP_max=$ac_count 4513 fi 4514 # 10*(2^10) chars as input seems more than enough 4515 test $ac_count -gt 10 && break 4516 done 4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4518 esac 4519 4520 $ac_path_FGREP_found && break 3 4521 done 4522 done 4523 done 4524 IFS=$as_save_IFS 4525 if test -z "$ac_cv_path_FGREP"; then 4526 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4527 fi 4528 else 4529 ac_cv_path_FGREP=$FGREP 4530 fi 4531 4532 fi 4533 fi 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4535 $as_echo "$ac_cv_path_FGREP" >&6; } 4536 FGREP="$ac_cv_path_FGREP" 4537 4538 4539 test -z "$GREP" && GREP=grep 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 # Check whether --with-gnu-ld was given. 4560 if test "${with_gnu_ld+set}" = set; then : 4561 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4562 else 4563 with_gnu_ld=no 4564 fi 4565 4566 ac_prog=ld 4567 if test yes = "$GCC"; then 4568 # Check if gcc -print-prog-name=ld gives a path. 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4570 $as_echo_n "checking for ld used by $CC... " >&6; } 4571 case $host in 4572 *-*-mingw*) 4573 # gcc leaves a trailing carriage return, which upsets mingw 4574 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4575 *) 4576 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4577 esac 4578 case $ac_prog in 4579 # Accept absolute paths. 4580 [\\/]* | ?:[\\/]*) 4581 re_direlt='/[^/][^/]*/\.\./' 4582 # Canonicalize the pathname of ld 4583 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4584 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4585 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4586 done 4587 test -z "$LD" && LD=$ac_prog 4588 ;; 4589 "") 4590 # If it fails, then pretend we aren't using GCC. 4591 ac_prog=ld 4592 ;; 4593 *) 4594 # If it is relative, then search for the first ld in PATH. 4595 with_gnu_ld=unknown 4596 ;; 4597 esac 4598 elif test yes = "$with_gnu_ld"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4600 $as_echo_n "checking for GNU ld... " >&6; } 4601 else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4603 $as_echo_n "checking for non-GNU ld... " >&6; } 4604 fi 4605 if ${lt_cv_path_LD+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607 else 4608 if test -z "$LD"; then 4609 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4610 for ac_dir in $PATH; do 4611 IFS=$lt_save_ifs 4612 test -z "$ac_dir" && ac_dir=. 4613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4614 lt_cv_path_LD=$ac_dir/$ac_prog 4615 # Check to see if the program is GNU ld. I'd rather use --version, 4616 # but apparently some variants of GNU ld only accept -v. 4617 # Break only if it was the GNU/non-GNU ld that we prefer. 4618 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4619 *GNU* | *'with BFD'*) 4620 test no != "$with_gnu_ld" && break 4621 ;; 4622 *) 4623 test yes != "$with_gnu_ld" && break 4624 ;; 4625 esac 4626 fi 4627 done 4628 IFS=$lt_save_ifs 4629 else 4630 lt_cv_path_LD=$LD # Let the user override the test with a path. 4631 fi 4632 fi 4633 4634 LD=$lt_cv_path_LD 4635 if test -n "$LD"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4637 $as_echo "$LD" >&6; } 4638 else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640 $as_echo "no" >&6; } 4641 fi 4642 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4644 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4645 if ${lt_cv_prog_gnu_ld+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647 else 4648 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4649 case `$LD -v 2>&1 </dev/null` in 4650 *GNU* | *'with BFD'*) 4651 lt_cv_prog_gnu_ld=yes 4652 ;; 4653 *) 4654 lt_cv_prog_gnu_ld=no 4655 ;; 4656 esac 4657 fi 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4659 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4660 with_gnu_ld=$lt_cv_prog_gnu_ld 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4671 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4672 if ${lt_cv_path_NM+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674 else 4675 if test -n "$NM"; then 4676 # Let the user override the test. 4677 lt_cv_path_NM=$NM 4678 else 4679 lt_nm_to_check=${ac_tool_prefix}nm 4680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4681 lt_nm_to_check="$lt_nm_to_check nm" 4682 fi 4683 for lt_tmp_nm in $lt_nm_to_check; do 4684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4686 IFS=$lt_save_ifs 4687 test -z "$ac_dir" && ac_dir=. 4688 tmp_nm=$ac_dir/$lt_tmp_nm 4689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4690 # Check to see if the nm accepts a BSD-compat flag. 4691 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4692 # nm: unknown option "B" ignored 4693 # Tru64's nm complains that /dev/null is an invalid object file 4694 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4695 case $build_os in 4696 mingw*) lt_bad_file=conftest.nm/nofile ;; 4697 *) lt_bad_file=/dev/null ;; 4698 esac 4699 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4700 *$lt_bad_file* | *'Invalid file or object type'*) 4701 lt_cv_path_NM="$tmp_nm -B" 4702 break 2 4703 ;; 4704 *) 4705 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4706 */dev/null*) 4707 lt_cv_path_NM="$tmp_nm -p" 4708 break 2 4709 ;; 4710 *) 4711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4712 continue # so that we can try to find one that supports BSD flags 4713 ;; 4714 esac 4715 ;; 4716 esac 4717 fi 4718 done 4719 IFS=$lt_save_ifs 4720 done 4721 : ${lt_cv_path_NM=no} 4722 fi 4723 fi 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4725 $as_echo "$lt_cv_path_NM" >&6; } 4726 if test no != "$lt_cv_path_NM"; then 4727 NM=$lt_cv_path_NM 4728 else 4729 # Didn't find any BSD compatible name lister, look for dumpbin. 4730 if test -n "$DUMPBIN"; then : 4731 # Let the user override the test. 4732 else 4733 if test -n "$ac_tool_prefix"; then 4734 for ac_prog in dumpbin "link -dump" 4735 do 4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4739 $as_echo_n "checking for $ac_word... " >&6; } 4740 if ${ac_cv_prog_DUMPBIN+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742 else 4743 if test -n "$DUMPBIN"; then 4744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4745 else 4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747 for as_dir in $PATH 4748 do 4749 IFS=$as_save_IFS 4750 test -z "$as_dir" && as_dir=. 4751 for ac_exec_ext in '' $ac_executable_extensions; do 4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4753 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4755 break 2 4756 fi 4757 done 4758 done 4759 IFS=$as_save_IFS 4760 4761 fi 4762 fi 4763 DUMPBIN=$ac_cv_prog_DUMPBIN 4764 if test -n "$DUMPBIN"; then 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4766 $as_echo "$DUMPBIN" >&6; } 4767 else 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4769 $as_echo "no" >&6; } 4770 fi 4771 4772 4773 test -n "$DUMPBIN" && break 4774 done 4775 fi 4776 if test -z "$DUMPBIN"; then 4777 ac_ct_DUMPBIN=$DUMPBIN 4778 for ac_prog in dumpbin "link -dump" 4779 do 4780 # Extract the first word of "$ac_prog", so it can be a program name with args. 4781 set dummy $ac_prog; ac_word=$2 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4783 $as_echo_n "checking for $ac_word... " >&6; } 4784 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786 else 4787 if test -n "$ac_ct_DUMPBIN"; then 4788 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4789 else 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791 for as_dir in $PATH 4792 do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4797 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801 done 4802 done 4803 IFS=$as_save_IFS 4804 4805 fi 4806 fi 4807 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4808 if test -n "$ac_ct_DUMPBIN"; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4810 $as_echo "$ac_ct_DUMPBIN" >&6; } 4811 else 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813 $as_echo "no" >&6; } 4814 fi 4815 4816 4817 test -n "$ac_ct_DUMPBIN" && break 4818 done 4819 4820 if test "x$ac_ct_DUMPBIN" = x; then 4821 DUMPBIN=":" 4822 else 4823 case $cross_compiling:$ac_tool_warned in 4824 yes:) 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4827 ac_tool_warned=yes ;; 4828 esac 4829 DUMPBIN=$ac_ct_DUMPBIN 4830 fi 4831 fi 4832 4833 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4834 *COFF*) 4835 DUMPBIN="$DUMPBIN -symbols -headers" 4836 ;; 4837 *) 4838 DUMPBIN=: 4839 ;; 4840 esac 4841 fi 4842 4843 if test : != "$DUMPBIN"; then 4844 NM=$DUMPBIN 4845 fi 4846 fi 4847 test -z "$NM" && NM=nm 4848 4849 4850 4851 4852 4853 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4855 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4856 if ${lt_cv_nm_interface+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858 else 4859 lt_cv_nm_interface="BSD nm" 4860 echo "int some_variable = 0;" > conftest.$ac_ext 4861 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4862 (eval "$ac_compile" 2>conftest.err) 4863 cat conftest.err >&5 4864 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4865 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4866 cat conftest.err >&5 4867 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4868 cat conftest.out >&5 4869 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4870 lt_cv_nm_interface="MS dumpbin" 4871 fi 4872 rm -f conftest* 4873 fi 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4875 $as_echo "$lt_cv_nm_interface" >&6; } 4876 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4878 $as_echo_n "checking whether ln -s works... " >&6; } 4879 LN_S=$as_ln_s 4880 if test "$LN_S" = "ln -s"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4882 $as_echo "yes" >&6; } 4883 else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4885 $as_echo "no, using $LN_S" >&6; } 4886 fi 4887 4888 # find the maximum length of command line arguments 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4890 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4891 if ${lt_cv_sys_max_cmd_len+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893 else 4894 i=0 4895 teststring=ABCD 4896 4897 case $build_os in 4898 msdosdjgpp*) 4899 # On DJGPP, this test can blow up pretty badly due to problems in libc 4900 # (any single argument exceeding 2000 bytes causes a buffer overrun 4901 # during glob expansion). Even if it were fixed, the result of this 4902 # check would be larger than it should be. 4903 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4904 ;; 4905 4906 gnu*) 4907 # Under GNU Hurd, this test is not required because there is 4908 # no limit to the length of command line arguments. 4909 # Libtool will interpret -1 as no limit whatsoever 4910 lt_cv_sys_max_cmd_len=-1; 4911 ;; 4912 4913 cygwin* | mingw* | cegcc*) 4914 # On Win9x/ME, this test blows up -- it succeeds, but takes 4915 # about 5 minutes as the teststring grows exponentially. 4916 # Worse, since 9x/ME are not pre-emptively multitasking, 4917 # you end up with a "frozen" computer, even though with patience 4918 # the test eventually succeeds (with a max line length of 256k). 4919 # Instead, let's just punt: use the minimum linelength reported by 4920 # all of the supported platforms: 8192 (on NT/2K/XP). 4921 lt_cv_sys_max_cmd_len=8192; 4922 ;; 4923 4924 mint*) 4925 # On MiNT this can take a long time and run out of memory. 4926 lt_cv_sys_max_cmd_len=8192; 4927 ;; 4928 4929 mint*) 4930 # On MiNT this can take a long time and run out of memory. 4931 lt_cv_sys_max_cmd_len=8192; 4932 ;; 4933 4934 amigaos*) 4935 # On AmigaOS with pdksh, this test takes hours, literally. 4936 # So we just punt and use a minimum line length of 8192. 4937 lt_cv_sys_max_cmd_len=8192; 4938 ;; 4939 4940 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4941 # This has been around since 386BSD, at least. Likely further. 4942 if test -x /sbin/sysctl; then 4943 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4944 elif test -x /usr/sbin/sysctl; then 4945 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4946 else 4947 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4948 fi 4949 # And add a safety zone 4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4952 ;; 4953 4954 interix*) 4955 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4956 lt_cv_sys_max_cmd_len=196608 4957 ;; 4958 4959 os2*) 4960 # The test takes a long time on OS/2. 4961 lt_cv_sys_max_cmd_len=8192 4962 ;; 4963 4964 osf*) 4965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4967 # nice to cause kernel panics so lets avoid the loop below. 4968 # First set a reasonable default. 4969 lt_cv_sys_max_cmd_len=16384 4970 # 4971 if test -x /sbin/sysconfig; then 4972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4973 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4974 esac 4975 fi 4976 ;; 4977 sco3.2v5*) 4978 lt_cv_sys_max_cmd_len=102400 4979 ;; 4980 sysv5* | sco5v6* | sysv4.2uw2*) 4981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4982 if test -n "$kargmax"; then 4983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4984 else 4985 lt_cv_sys_max_cmd_len=32768 4986 fi 4987 ;; 4988 *) 4989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4990 if test -n "$lt_cv_sys_max_cmd_len" && \ 4991 test undefined != "$lt_cv_sys_max_cmd_len"; then 4992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4994 else 4995 # Make teststring a little bigger before we do anything with it. 4996 # a 1K string should be a reasonable start. 4997 for i in 1 2 3 4 5 6 7 8; do 4998 teststring=$teststring$teststring 4999 done 5000 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5001 # If test is not a shell built-in, we'll probably end up computing a 5002 # maximum length that is only half of the actual maximum length, but 5003 # we can't tell. 5004 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5005 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5006 test 17 != "$i" # 1/2 MB should be enough 5007 do 5008 i=`expr $i + 1` 5009 teststring=$teststring$teststring 5010 done 5011 # Only check the string length outside the loop. 5012 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5013 teststring= 5014 # Add a significant safety factor because C++ compilers can tack on 5015 # massive amounts of additional arguments before passing them to the 5016 # linker. It appears as though 1/2 is a usable value. 5017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5018 fi 5019 ;; 5020 esac 5021 5022 fi 5023 5024 if test -n "$lt_cv_sys_max_cmd_len"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5026 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5027 else 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5029 $as_echo "none" >&6; } 5030 fi 5031 max_cmd_len=$lt_cv_sys_max_cmd_len 5032 5033 5034 5035 5036 5037 5038 : ${CP="cp -f"} 5039 : ${MV="mv -f"} 5040 : ${RM="rm -f"} 5041 5042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5043 lt_unset=unset 5044 else 5045 lt_unset=false 5046 fi 5047 5048 5049 5050 5051 5052 # test EBCDIC or ASCII 5053 case `echo X|tr X '\101'` in 5054 A) # ASCII based system 5055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5056 lt_SP2NL='tr \040 \012' 5057 lt_NL2SP='tr \015\012 \040\040' 5058 ;; 5059 *) # EBCDIC based system 5060 lt_SP2NL='tr \100 \n' 5061 lt_NL2SP='tr \r\n \100\100' 5062 ;; 5063 esac 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5074 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5075 if ${lt_cv_to_host_file_cmd+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077 else 5078 case $host in 5079 *-*-mingw* ) 5080 case $build in 5081 *-*-mingw* ) # actually msys 5082 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5083 ;; 5084 *-*-cygwin* ) 5085 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5086 ;; 5087 * ) # otherwise, assume *nix 5088 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5089 ;; 5090 esac 5091 ;; 5092 *-*-cygwin* ) 5093 case $build in 5094 *-*-mingw* ) # actually msys 5095 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5096 ;; 5097 *-*-cygwin* ) 5098 lt_cv_to_host_file_cmd=func_convert_file_noop 5099 ;; 5100 * ) # otherwise, assume *nix 5101 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5102 ;; 5103 esac 5104 ;; 5105 * ) # unhandled hosts (and "normal" native builds) 5106 lt_cv_to_host_file_cmd=func_convert_file_noop 5107 ;; 5108 esac 5109 5110 fi 5111 5112 to_host_file_cmd=$lt_cv_to_host_file_cmd 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5114 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5115 5116 5117 5118 5119 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5121 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5122 if ${lt_cv_to_tool_file_cmd+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124 else 5125 #assume ordinary cross tools, or native build. 5126 lt_cv_to_tool_file_cmd=func_convert_file_noop 5127 case $host in 5128 *-*-mingw* ) 5129 case $build in 5130 *-*-mingw* ) # actually msys 5131 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5132 ;; 5133 esac 5134 ;; 5135 esac 5136 5137 fi 5138 5139 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5141 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5142 5143 5144 5145 5146 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5148 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5149 if ${lt_cv_ld_reload_flag+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151 else 5152 lt_cv_ld_reload_flag='-r' 5153 fi 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5155 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5156 reload_flag=$lt_cv_ld_reload_flag 5157 case $reload_flag in 5158 "" | " "*) ;; 5159 *) reload_flag=" $reload_flag" ;; 5160 esac 5161 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5162 case $host_os in 5163 cygwin* | mingw* | pw32* | cegcc*) 5164 if test yes != "$GCC"; then 5165 reload_cmds=false 5166 fi 5167 ;; 5168 darwin*) 5169 if test yes = "$GCC"; then 5170 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5171 else 5172 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5173 fi 5174 ;; 5175 esac 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 if test -n "$ac_tool_prefix"; then 5186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5187 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5189 $as_echo_n "checking for $ac_word... " >&6; } 5190 if ${ac_cv_prog_OBJDUMP+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192 else 5193 if test -n "$OBJDUMP"; then 5194 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5195 else 5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197 for as_dir in $PATH 5198 do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207 done 5208 done 5209 IFS=$as_save_IFS 5210 5211 fi 5212 fi 5213 OBJDUMP=$ac_cv_prog_OBJDUMP 5214 if test -n "$OBJDUMP"; then 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5216 $as_echo "$OBJDUMP" >&6; } 5217 else 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5219 $as_echo "no" >&6; } 5220 fi 5221 5222 5223 fi 5224 if test -z "$ac_cv_prog_OBJDUMP"; then 5225 ac_ct_OBJDUMP=$OBJDUMP 5226 # Extract the first word of "objdump", so it can be a program name with args. 5227 set dummy objdump; ac_word=$2 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229 $as_echo_n "checking for $ac_word... " >&6; } 5230 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232 else 5233 if test -n "$ac_ct_OBJDUMP"; then 5234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5235 else 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237 for as_dir in $PATH 5238 do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247 done 5248 done 5249 IFS=$as_save_IFS 5250 5251 fi 5252 fi 5253 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5254 if test -n "$ac_ct_OBJDUMP"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5256 $as_echo "$ac_ct_OBJDUMP" >&6; } 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259 $as_echo "no" >&6; } 5260 fi 5261 5262 if test "x$ac_ct_OBJDUMP" = x; then 5263 OBJDUMP="false" 5264 else 5265 case $cross_compiling:$ac_tool_warned in 5266 yes:) 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5269 ac_tool_warned=yes ;; 5270 esac 5271 OBJDUMP=$ac_ct_OBJDUMP 5272 fi 5273 else 5274 OBJDUMP="$ac_cv_prog_OBJDUMP" 5275 fi 5276 5277 test -z "$OBJDUMP" && OBJDUMP=objdump 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5288 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5289 if ${lt_cv_deplibs_check_method+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291 else 5292 lt_cv_file_magic_cmd='$MAGIC_CMD' 5293 lt_cv_file_magic_test_file= 5294 lt_cv_deplibs_check_method='unknown' 5295 # Need to set the preceding variable on all platforms that support 5296 # interlibrary dependencies. 5297 # 'none' -- dependencies not supported. 5298 # 'unknown' -- same as none, but documents that we really don't know. 5299 # 'pass_all' -- all dependencies passed with no checks. 5300 # 'test_compile' -- check by making test program. 5301 # 'file_magic [[regex]]' -- check by looking for files in library path 5302 # that responds to the $file_magic_cmd with a given extended regex. 5303 # If you have 'file' or equivalent on your system and you're not sure 5304 # whether 'pass_all' will *always* work, you probably want this one. 5305 5306 case $host_os in 5307 aix[4-9]*) 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 5311 beos*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315 bsdi[45]*) 5316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5317 lt_cv_file_magic_cmd='/usr/bin/file -L' 5318 lt_cv_file_magic_test_file=/shlib/libc.so 5319 ;; 5320 5321 cygwin*) 5322 # func_win32_libid is a shell function defined in ltmain.sh 5323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5324 lt_cv_file_magic_cmd='func_win32_libid' 5325 ;; 5326 5327 mingw* | pw32*) 5328 # Base MSYS/MinGW do not provide the 'file' command needed by 5329 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5330 # unless we find 'file', for example because we are cross-compiling. 5331 if ( file / ) >/dev/null 2>&1; then 5332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5333 lt_cv_file_magic_cmd='func_win32_libid' 5334 else 5335 # Keep this pattern in sync with the one in func_win32_libid. 5336 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5337 lt_cv_file_magic_cmd='$OBJDUMP -f' 5338 fi 5339 ;; 5340 5341 cegcc*) 5342 # use the weaker test based on 'objdump'. See mingw*. 5343 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5344 lt_cv_file_magic_cmd='$OBJDUMP -f' 5345 ;; 5346 5347 darwin* | rhapsody*) 5348 lt_cv_deplibs_check_method=pass_all 5349 ;; 5350 5351 freebsd* | dragonfly*) 5352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5353 case $host_cpu in 5354 i*86 ) 5355 # Not sure whether the presence of OpenBSD here was a mistake. 5356 # Let's accept both of them until this is cleared up. 5357 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5358 lt_cv_file_magic_cmd=/usr/bin/file 5359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5360 ;; 5361 esac 5362 else 5363 lt_cv_deplibs_check_method=pass_all 5364 fi 5365 ;; 5366 5367 haiku*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371 hpux10.20* | hpux11*) 5372 lt_cv_file_magic_cmd=/usr/bin/file 5373 case $host_cpu in 5374 ia64*) 5375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5377 ;; 5378 hppa*64*) 5379 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]' 5380 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5381 ;; 5382 *) 5383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5384 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5385 ;; 5386 esac 5387 ;; 5388 5389 interix[3-9]*) 5390 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5392 ;; 5393 5394 irix5* | irix6* | nonstopux*) 5395 case $LD in 5396 *-32|*"-32 ") libmagic=32-bit;; 5397 *-n32|*"-n32 ") libmagic=N32;; 5398 *-64|*"-64 ") libmagic=64-bit;; 5399 *) libmagic=never-match;; 5400 esac 5401 lt_cv_deplibs_check_method=pass_all 5402 ;; 5403 5404 # This must be glibc/ELF. 5405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5406 lt_cv_deplibs_check_method=pass_all 5407 ;; 5408 5409 netbsd*) 5410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5412 else 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5414 fi 5415 ;; 5416 5417 newos6*) 5418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5419 lt_cv_file_magic_cmd=/usr/bin/file 5420 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5421 ;; 5422 5423 *nto* | *qnx*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 5427 openbsd* | bitrig*) 5428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5430 else 5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5432 fi 5433 ;; 5434 5435 osf3* | osf4* | osf5*) 5436 lt_cv_deplibs_check_method=pass_all 5437 ;; 5438 5439 rdos*) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 5443 solaris*) 5444 lt_cv_deplibs_check_method=pass_all 5445 ;; 5446 5447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5448 lt_cv_deplibs_check_method=pass_all 5449 ;; 5450 5451 sysv4 | sysv4.3*) 5452 case $host_vendor in 5453 motorola) 5454 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]' 5455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5456 ;; 5457 ncr) 5458 lt_cv_deplibs_check_method=pass_all 5459 ;; 5460 sequent) 5461 lt_cv_file_magic_cmd='/bin/file' 5462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5463 ;; 5464 sni) 5465 lt_cv_file_magic_cmd='/bin/file' 5466 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5467 lt_cv_file_magic_test_file=/lib/libc.so 5468 ;; 5469 siemens) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 pc) 5473 lt_cv_deplibs_check_method=pass_all 5474 ;; 5475 esac 5476 ;; 5477 5478 tpf*) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 os2*) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 esac 5485 5486 fi 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5488 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5489 5490 file_magic_glob= 5491 want_nocaseglob=no 5492 if test "$build" = "$host"; then 5493 case $host_os in 5494 mingw* | pw32*) 5495 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5496 want_nocaseglob=yes 5497 else 5498 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5499 fi 5500 ;; 5501 esac 5502 fi 5503 5504 file_magic_cmd=$lt_cv_file_magic_cmd 5505 deplibs_check_method=$lt_cv_deplibs_check_method 5506 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 if test -n "$ac_tool_prefix"; then 5530 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5531 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5533 $as_echo_n "checking for $ac_word... " >&6; } 5534 if ${ac_cv_prog_DLLTOOL+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536 else 5537 if test -n "$DLLTOOL"; then 5538 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5539 else 5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5541 for as_dir in $PATH 5542 do 5543 IFS=$as_save_IFS 5544 test -z "$as_dir" && as_dir=. 5545 for ac_exec_ext in '' $ac_executable_extensions; do 5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5547 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5549 break 2 5550 fi 5551 done 5552 done 5553 IFS=$as_save_IFS 5554 5555 fi 5556 fi 5557 DLLTOOL=$ac_cv_prog_DLLTOOL 5558 if test -n "$DLLTOOL"; then 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5560 $as_echo "$DLLTOOL" >&6; } 5561 else 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5563 $as_echo "no" >&6; } 5564 fi 5565 5566 5567 fi 5568 if test -z "$ac_cv_prog_DLLTOOL"; then 5569 ac_ct_DLLTOOL=$DLLTOOL 5570 # Extract the first word of "dlltool", so it can be a program name with args. 5571 set dummy dlltool; ac_word=$2 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573 $as_echo_n "checking for $ac_word... " >&6; } 5574 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576 else 5577 if test -n "$ac_ct_DLLTOOL"; then 5578 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5579 else 5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5581 for as_dir in $PATH 5582 do 5583 IFS=$as_save_IFS 5584 test -z "$as_dir" && as_dir=. 5585 for ac_exec_ext in '' $ac_executable_extensions; do 5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5587 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5589 break 2 5590 fi 5591 done 5592 done 5593 IFS=$as_save_IFS 5594 5595 fi 5596 fi 5597 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5598 if test -n "$ac_ct_DLLTOOL"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5600 $as_echo "$ac_ct_DLLTOOL" >&6; } 5601 else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603 $as_echo "no" >&6; } 5604 fi 5605 5606 if test "x$ac_ct_DLLTOOL" = x; then 5607 DLLTOOL="false" 5608 else 5609 case $cross_compiling:$ac_tool_warned in 5610 yes:) 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5613 ac_tool_warned=yes ;; 5614 esac 5615 DLLTOOL=$ac_ct_DLLTOOL 5616 fi 5617 else 5618 DLLTOOL="$ac_cv_prog_DLLTOOL" 5619 fi 5620 5621 test -z "$DLLTOOL" && DLLTOOL=dlltool 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5633 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5634 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636 else 5637 lt_cv_sharedlib_from_linklib_cmd='unknown' 5638 5639 case $host_os in 5640 cygwin* | mingw* | pw32* | cegcc*) 5641 # two different shell functions defined in ltmain.sh; 5642 # decide which one to use based on capabilities of $DLLTOOL 5643 case `$DLLTOOL --help 2>&1` in 5644 *--identify-strict*) 5645 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5646 ;; 5647 *) 5648 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5649 ;; 5650 esac 5651 ;; 5652 *) 5653 # fallback: assume linklib IS sharedlib 5654 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5655 ;; 5656 esac 5657 5658 fi 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5660 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5661 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5662 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5663 5664 5665 5666 5667 5668 5669 5670 5671 if test -n "$ac_tool_prefix"; then 5672 for ac_prog in ar 5673 do 5674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5677 $as_echo_n "checking for $ac_word... " >&6; } 5678 if ${ac_cv_prog_AR+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680 else 5681 if test -n "$AR"; then 5682 ac_cv_prog_AR="$AR" # Let the user override the test. 5683 else 5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685 for as_dir in $PATH 5686 do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for ac_exec_ext in '' $ac_executable_extensions; do 5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5693 break 2 5694 fi 5695 done 5696 done 5697 IFS=$as_save_IFS 5698 5699 fi 5700 fi 5701 AR=$ac_cv_prog_AR 5702 if test -n "$AR"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5704 $as_echo "$AR" >&6; } 5705 else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5707 $as_echo "no" >&6; } 5708 fi 5709 5710 5711 test -n "$AR" && break 5712 done 5713 fi 5714 if test -z "$AR"; then 5715 ac_ct_AR=$AR 5716 for ac_prog in ar 5717 do 5718 # Extract the first word of "$ac_prog", so it can be a program name with args. 5719 set dummy $ac_prog; ac_word=$2 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5721 $as_echo_n "checking for $ac_word... " >&6; } 5722 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724 else 5725 if test -n "$ac_ct_AR"; then 5726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5727 else 5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5729 for as_dir in $PATH 5730 do 5731 IFS=$as_save_IFS 5732 test -z "$as_dir" && as_dir=. 5733 for ac_exec_ext in '' $ac_executable_extensions; do 5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5735 ac_cv_prog_ac_ct_AR="$ac_prog" 5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5737 break 2 5738 fi 5739 done 5740 done 5741 IFS=$as_save_IFS 5742 5743 fi 5744 fi 5745 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5746 if test -n "$ac_ct_AR"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5748 $as_echo "$ac_ct_AR" >&6; } 5749 else 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5751 $as_echo "no" >&6; } 5752 fi 5753 5754 5755 test -n "$ac_ct_AR" && break 5756 done 5757 5758 if test "x$ac_ct_AR" = x; then 5759 AR="false" 5760 else 5761 case $cross_compiling:$ac_tool_warned in 5762 yes:) 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5765 ac_tool_warned=yes ;; 5766 esac 5767 AR=$ac_ct_AR 5768 fi 5769 fi 5770 5771 : ${AR=ar} 5772 : ${AR_FLAGS=cru} 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5785 $as_echo_n "checking for archiver @FILE support... " >&6; } 5786 if ${lt_cv_ar_at_file+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788 else 5789 lt_cv_ar_at_file=no 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791 /* end confdefs.h. */ 5792 5793 int 5794 main () 5795 { 5796 5797 ; 5798 return 0; 5799 } 5800 _ACEOF 5801 if ac_fn_c_try_compile "$LINENO"; then : 5802 echo conftest.$ac_objext > conftest.lst 5803 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5805 (eval $lt_ar_try) 2>&5 5806 ac_status=$? 5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5808 test $ac_status = 0; } 5809 if test 0 -eq "$ac_status"; then 5810 # Ensure the archiver fails upon bogus file names. 5811 rm -f conftest.$ac_objext libconftest.a 5812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5813 (eval $lt_ar_try) 2>&5 5814 ac_status=$? 5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5816 test $ac_status = 0; } 5817 if test 0 -ne "$ac_status"; then 5818 lt_cv_ar_at_file=@ 5819 fi 5820 fi 5821 rm -f conftest.* libconftest.a 5822 5823 fi 5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5825 5826 fi 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5828 $as_echo "$lt_cv_ar_at_file" >&6; } 5829 5830 if test no = "$lt_cv_ar_at_file"; then 5831 archiver_list_spec= 5832 else 5833 archiver_list_spec=$lt_cv_ar_at_file 5834 fi 5835 5836 5837 5838 5839 5840 5841 5842 if test -n "$ac_tool_prefix"; then 5843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5844 set dummy ${ac_tool_prefix}strip; ac_word=$2 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5846 $as_echo_n "checking for $ac_word... " >&6; } 5847 if ${ac_cv_prog_STRIP+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849 else 5850 if test -n "$STRIP"; then 5851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5852 else 5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5854 for as_dir in $PATH 5855 do 5856 IFS=$as_save_IFS 5857 test -z "$as_dir" && as_dir=. 5858 for ac_exec_ext in '' $ac_executable_extensions; do 5859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5860 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5862 break 2 5863 fi 5864 done 5865 done 5866 IFS=$as_save_IFS 5867 5868 fi 5869 fi 5870 STRIP=$ac_cv_prog_STRIP 5871 if test -n "$STRIP"; then 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5873 $as_echo "$STRIP" >&6; } 5874 else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876 $as_echo "no" >&6; } 5877 fi 5878 5879 5880 fi 5881 if test -z "$ac_cv_prog_STRIP"; then 5882 ac_ct_STRIP=$STRIP 5883 # Extract the first word of "strip", so it can be a program name with args. 5884 set dummy strip; ac_word=$2 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5886 $as_echo_n "checking for $ac_word... " >&6; } 5887 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889 else 5890 if test -n "$ac_ct_STRIP"; then 5891 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5892 else 5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894 for as_dir in $PATH 5895 do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5900 ac_cv_prog_ac_ct_STRIP="strip" 5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904 done 5905 done 5906 IFS=$as_save_IFS 5907 5908 fi 5909 fi 5910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5911 if test -n "$ac_ct_STRIP"; then 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5913 $as_echo "$ac_ct_STRIP" >&6; } 5914 else 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5916 $as_echo "no" >&6; } 5917 fi 5918 5919 if test "x$ac_ct_STRIP" = x; then 5920 STRIP=":" 5921 else 5922 case $cross_compiling:$ac_tool_warned in 5923 yes:) 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5926 ac_tool_warned=yes ;; 5927 esac 5928 STRIP=$ac_ct_STRIP 5929 fi 5930 else 5931 STRIP="$ac_cv_prog_STRIP" 5932 fi 5933 5934 test -z "$STRIP" && STRIP=: 5935 5936 5937 5938 5939 5940 5941 if test -n "$ac_tool_prefix"; then 5942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5945 $as_echo_n "checking for $ac_word... " >&6; } 5946 if ${ac_cv_prog_RANLIB+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948 else 5949 if test -n "$RANLIB"; then 5950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5951 else 5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953 for as_dir in $PATH 5954 do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963 done 5964 done 5965 IFS=$as_save_IFS 5966 5967 fi 5968 fi 5969 RANLIB=$ac_cv_prog_RANLIB 5970 if test -n "$RANLIB"; then 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5972 $as_echo "$RANLIB" >&6; } 5973 else 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5975 $as_echo "no" >&6; } 5976 fi 5977 5978 5979 fi 5980 if test -z "$ac_cv_prog_RANLIB"; then 5981 ac_ct_RANLIB=$RANLIB 5982 # Extract the first word of "ranlib", so it can be a program name with args. 5983 set dummy ranlib; ac_word=$2 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5985 $as_echo_n "checking for $ac_word... " >&6; } 5986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988 else 5989 if test -n "$ac_ct_RANLIB"; then 5990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5991 else 5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5993 for as_dir in $PATH 5994 do 5995 IFS=$as_save_IFS 5996 test -z "$as_dir" && as_dir=. 5997 for ac_exec_ext in '' $ac_executable_extensions; do 5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5999 ac_cv_prog_ac_ct_RANLIB="ranlib" 6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6001 break 2 6002 fi 6003 done 6004 done 6005 IFS=$as_save_IFS 6006 6007 fi 6008 fi 6009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6010 if test -n "$ac_ct_RANLIB"; then 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6012 $as_echo "$ac_ct_RANLIB" >&6; } 6013 else 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6015 $as_echo "no" >&6; } 6016 fi 6017 6018 if test "x$ac_ct_RANLIB" = x; then 6019 RANLIB=":" 6020 else 6021 case $cross_compiling:$ac_tool_warned in 6022 yes:) 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6025 ac_tool_warned=yes ;; 6026 esac 6027 RANLIB=$ac_ct_RANLIB 6028 fi 6029 else 6030 RANLIB="$ac_cv_prog_RANLIB" 6031 fi 6032 6033 test -z "$RANLIB" && RANLIB=: 6034 6035 6036 6037 6038 6039 6040 # Determine commands to create old-style static archives. 6041 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6042 old_postinstall_cmds='chmod 644 $oldlib' 6043 old_postuninstall_cmds= 6044 6045 if test -n "$RANLIB"; then 6046 case $host_os in 6047 bitrig* | openbsd*) 6048 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6049 ;; 6050 *) 6051 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6052 ;; 6053 esac 6054 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6055 fi 6056 6057 case $host_os in 6058 darwin*) 6059 lock_old_archive_extraction=yes ;; 6060 *) 6061 lock_old_archive_extraction=no ;; 6062 esac 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 # If no C compiler was specified, use CC. 6103 LTCC=${LTCC-"$CC"} 6104 6105 # If no C compiler flags were specified, use CFLAGS. 6106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6107 6108 # Allow CC to be a program name with arguments. 6109 compiler=$CC 6110 6111 6112 # Check for command to grab the raw symbol name followed by C symbol from nm. 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6114 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6115 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6116 $as_echo_n "(cached) " >&6 6117 else 6118 6119 # These are sane defaults that work on at least a few old systems. 6120 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6121 6122 # Character class describing NM global symbol codes. 6123 symcode='[BCDEGRST]' 6124 6125 # Regexp to match symbols that can be accessed directly from C. 6126 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6127 6128 # Define system-specific variables. 6129 case $host_os in 6130 aix*) 6131 symcode='[BCDT]' 6132 ;; 6133 cygwin* | mingw* | pw32* | cegcc*) 6134 symcode='[ABCDGISTW]' 6135 ;; 6136 hpux*) 6137 if test ia64 = "$host_cpu"; then 6138 symcode='[ABCDEGRST]' 6139 fi 6140 ;; 6141 irix* | nonstopux*) 6142 symcode='[BCDEGRST]' 6143 ;; 6144 osf*) 6145 symcode='[BCDEGQRST]' 6146 ;; 6147 solaris*) 6148 symcode='[BDRT]' 6149 ;; 6150 sco3.2v5*) 6151 symcode='[DT]' 6152 ;; 6153 sysv4.2uw2*) 6154 symcode='[DT]' 6155 ;; 6156 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6157 symcode='[ABDT]' 6158 ;; 6159 sysv4) 6160 symcode='[DFNSTU]' 6161 ;; 6162 esac 6163 6164 # If we're using GNU nm, then use its standard symbol codes. 6165 case `$NM -V 2>&1` in 6166 *GNU* | *'with BFD'*) 6167 symcode='[ABCDGIRSTW]' ;; 6168 esac 6169 6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6171 # Gets list of data symbols to import. 6172 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6173 # Adjust the below global symbol transforms to fixup imported variables. 6174 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6175 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6176 lt_c_name_lib_hook="\ 6177 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6178 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6179 else 6180 # Disable hooks by default. 6181 lt_cv_sys_global_symbol_to_import= 6182 lt_cdecl_hook= 6183 lt_c_name_hook= 6184 lt_c_name_lib_hook= 6185 fi 6186 6187 # Transform an extracted symbol line into a proper C declaration. 6188 # Some systems (esp. on ia64) link data and code symbols differently, 6189 # so use this general approach. 6190 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6191 $lt_cdecl_hook\ 6192 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6193 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6194 6195 # Transform an extracted symbol line into symbol name and symbol address 6196 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6197 $lt_c_name_hook\ 6198 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6199 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6200 6201 # Transform an extracted symbol line into symbol name with lib prefix and 6202 # symbol address. 6203 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6204 $lt_c_name_lib_hook\ 6205 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6206 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6207 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6208 6209 # Handle CRLF in mingw tool chain 6210 opt_cr= 6211 case $build_os in 6212 mingw*) 6213 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6214 ;; 6215 esac 6216 6217 # Try without a prefix underscore, then with it. 6218 for ac_symprfx in "" "_"; do 6219 6220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6221 symxfrm="\\1 $ac_symprfx\\2 \\2" 6222 6223 # Write the raw and C identifiers. 6224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6225 # Fake it for dumpbin and say T for any non-static function, 6226 # D for any global variable and I for any imported variable. 6227 # Also find C++ and __fastcall symbols from MSVC++, 6228 # which start with @ or ?. 6229 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6230 " {last_section=section; section=\$ 3};"\ 6231 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6232 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6233 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6234 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6235 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6236 " \$ 0!~/External *\|/{next};"\ 6237 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6238 " {if(hide[section]) next};"\ 6239 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6240 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6241 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6242 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6243 " ' prfx=^$ac_symprfx" 6244 else 6245 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6246 fi 6247 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6248 6249 # Check to see that the pipe works correctly. 6250 pipe_works=no 6251 6252 rm -f conftest* 6253 cat > conftest.$ac_ext <<_LT_EOF 6254 #ifdef __cplusplus 6255 extern "C" { 6256 #endif 6257 char nm_test_var; 6258 void nm_test_func(void); 6259 void nm_test_func(void){} 6260 #ifdef __cplusplus 6261 } 6262 #endif 6263 int main(){nm_test_var='a';nm_test_func();return(0);} 6264 _LT_EOF 6265 6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6267 (eval $ac_compile) 2>&5 6268 ac_status=$? 6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6270 test $ac_status = 0; }; then 6271 # Now try to grab the symbols. 6272 nlist=conftest.nm 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6274 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6275 ac_status=$? 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6277 test $ac_status = 0; } && test -s "$nlist"; then 6278 # Try sorting and uniquifying the output. 6279 if sort "$nlist" | uniq > "$nlist"T; then 6280 mv -f "$nlist"T "$nlist" 6281 else 6282 rm -f "$nlist"T 6283 fi 6284 6285 # Make sure that we snagged all the symbols we need. 6286 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6287 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6288 cat <<_LT_EOF > conftest.$ac_ext 6289 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6290 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6291 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6292 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6293 # define LT_DLSYM_CONST 6294 #elif defined __osf__ 6295 /* This system does not cope well with relocations in const data. */ 6296 # define LT_DLSYM_CONST 6297 #else 6298 # define LT_DLSYM_CONST const 6299 #endif 6300 6301 #ifdef __cplusplus 6302 extern "C" { 6303 #endif 6304 6305 _LT_EOF 6306 # Now generate the symbol file. 6307 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6308 6309 cat <<_LT_EOF >> conftest.$ac_ext 6310 6311 /* The mapping between symbol names and symbols. */ 6312 LT_DLSYM_CONST struct { 6313 const char *name; 6314 void *address; 6315 } 6316 lt__PROGRAM__LTX_preloaded_symbols[] = 6317 { 6318 { "@PROGRAM@", (void *) 0 }, 6319 _LT_EOF 6320 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6321 cat <<\_LT_EOF >> conftest.$ac_ext 6322 {0, (void *) 0} 6323 }; 6324 6325 /* This works around a problem in FreeBSD linker */ 6326 #ifdef FREEBSD_WORKAROUND 6327 static const void *lt_preloaded_setup() { 6328 return lt__PROGRAM__LTX_preloaded_symbols; 6329 } 6330 #endif 6331 6332 #ifdef __cplusplus 6333 } 6334 #endif 6335 _LT_EOF 6336 # Now try linking the two files. 6337 mv conftest.$ac_objext conftstm.$ac_objext 6338 lt_globsym_save_LIBS=$LIBS 6339 lt_globsym_save_CFLAGS=$CFLAGS 6340 LIBS=conftstm.$ac_objext 6341 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6343 (eval $ac_link) 2>&5 6344 ac_status=$? 6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6346 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6347 pipe_works=yes 6348 fi 6349 LIBS=$lt_globsym_save_LIBS 6350 CFLAGS=$lt_globsym_save_CFLAGS 6351 else 6352 echo "cannot find nm_test_func in $nlist" >&5 6353 fi 6354 else 6355 echo "cannot find nm_test_var in $nlist" >&5 6356 fi 6357 else 6358 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6359 fi 6360 else 6361 echo "$progname: failed program was:" >&5 6362 cat conftest.$ac_ext >&5 6363 fi 6364 rm -rf conftest* conftst* 6365 6366 # Do not use the global_symbol_pipe unless it works. 6367 if test yes = "$pipe_works"; then 6368 break 6369 else 6370 lt_cv_sys_global_symbol_pipe= 6371 fi 6372 done 6373 6374 fi 6375 6376 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6377 lt_cv_sys_global_symbol_to_cdecl= 6378 fi 6379 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6381 $as_echo "failed" >&6; } 6382 else 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6384 $as_echo "ok" >&6; } 6385 fi 6386 6387 # Response file support. 6388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6389 nm_file_list_spec='@' 6390 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6391 nm_file_list_spec='@' 6392 fi 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6431 $as_echo_n "checking for sysroot... " >&6; } 6432 6433 # Check whether --with-sysroot was given. 6434 if test "${with_sysroot+set}" = set; then : 6435 withval=$with_sysroot; 6436 else 6437 with_sysroot=no 6438 fi 6439 6440 6441 lt_sysroot= 6442 case $with_sysroot in #( 6443 yes) 6444 if test yes = "$GCC"; then 6445 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6446 fi 6447 ;; #( 6448 /*) 6449 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6450 ;; #( 6451 no|'') 6452 ;; #( 6453 *) 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6455 $as_echo "$with_sysroot" >&6; } 6456 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6457 ;; 6458 esac 6459 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6461 $as_echo "${lt_sysroot:-no}" >&6; } 6462 6463 6464 6465 6466 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6468 $as_echo_n "checking for a working dd... " >&6; } 6469 if ${ac_cv_path_lt_DD+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471 else 6472 printf 0123456789abcdef0123456789abcdef >conftest.i 6473 cat conftest.i conftest.i >conftest2.i 6474 : ${lt_DD:=$DD} 6475 if test -z "$lt_DD"; then 6476 ac_path_lt_DD_found=false 6477 # Loop through the user's path and test for each of PROGNAME-LIST 6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479 for as_dir in $PATH 6480 do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_prog in dd; do 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6486 as_fn_executable_p "$ac_path_lt_DD" || continue 6487 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6488 cmp -s conftest.i conftest.out \ 6489 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6490 fi 6491 $ac_path_lt_DD_found && break 3 6492 done 6493 done 6494 done 6495 IFS=$as_save_IFS 6496 if test -z "$ac_cv_path_lt_DD"; then 6497 : 6498 fi 6499 else 6500 ac_cv_path_lt_DD=$lt_DD 6501 fi 6502 6503 rm -f conftest.i conftest2.i conftest.out 6504 fi 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6506 $as_echo "$ac_cv_path_lt_DD" >&6; } 6507 6508 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6510 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6511 if ${lt_cv_truncate_bin+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513 else 6514 printf 0123456789abcdef0123456789abcdef >conftest.i 6515 cat conftest.i conftest.i >conftest2.i 6516 lt_cv_truncate_bin= 6517 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6518 cmp -s conftest.i conftest.out \ 6519 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6520 fi 6521 rm -f conftest.i conftest2.i conftest.out 6522 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6523 fi 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6525 $as_echo "$lt_cv_truncate_bin" >&6; } 6526 6527 6528 6529 6530 6531 6532 6533 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6534 func_cc_basename () 6535 { 6536 for cc_temp in $*""; do 6537 case $cc_temp in 6538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6540 \-*) ;; 6541 *) break;; 6542 esac 6543 done 6544 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6545 } 6546 6547 # Check whether --enable-libtool-lock was given. 6548 if test "${enable_libtool_lock+set}" = set; then : 6549 enableval=$enable_libtool_lock; 6550 fi 6551 6552 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6553 6554 # Some flags need to be propagated to the compiler or linker for good 6555 # libtool support. 6556 case $host in 6557 ia64-*-hpux*) 6558 # Find out what ABI is being produced by ac_compile, and set mode 6559 # options accordingly. 6560 echo 'int i;' > conftest.$ac_ext 6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6562 (eval $ac_compile) 2>&5 6563 ac_status=$? 6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6565 test $ac_status = 0; }; then 6566 case `/usr/bin/file conftest.$ac_objext` in 6567 *ELF-32*) 6568 HPUX_IA64_MODE=32 6569 ;; 6570 *ELF-64*) 6571 HPUX_IA64_MODE=64 6572 ;; 6573 esac 6574 fi 6575 rm -rf conftest* 6576 ;; 6577 *-*-irix6*) 6578 # Find out what ABI is being produced by ac_compile, and set linker 6579 # options accordingly. 6580 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6582 (eval $ac_compile) 2>&5 6583 ac_status=$? 6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6585 test $ac_status = 0; }; then 6586 if test yes = "$lt_cv_prog_gnu_ld"; then 6587 case `/usr/bin/file conftest.$ac_objext` in 6588 *32-bit*) 6589 LD="${LD-ld} -melf32bsmip" 6590 ;; 6591 *N32*) 6592 LD="${LD-ld} -melf32bmipn32" 6593 ;; 6594 *64-bit*) 6595 LD="${LD-ld} -melf64bmip" 6596 ;; 6597 esac 6598 else 6599 case `/usr/bin/file conftest.$ac_objext` in 6600 *32-bit*) 6601 LD="${LD-ld} -32" 6602 ;; 6603 *N32*) 6604 LD="${LD-ld} -n32" 6605 ;; 6606 *64-bit*) 6607 LD="${LD-ld} -64" 6608 ;; 6609 esac 6610 fi 6611 fi 6612 rm -rf conftest* 6613 ;; 6614 6615 mips64*-*linux*) 6616 # Find out what ABI is being produced by ac_compile, and set linker 6617 # options accordingly. 6618 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6620 (eval $ac_compile) 2>&5 6621 ac_status=$? 6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6623 test $ac_status = 0; }; then 6624 emul=elf 6625 case `/usr/bin/file conftest.$ac_objext` in 6626 *32-bit*) 6627 emul="${emul}32" 6628 ;; 6629 *64-bit*) 6630 emul="${emul}64" 6631 ;; 6632 esac 6633 case `/usr/bin/file conftest.$ac_objext` in 6634 *MSB*) 6635 emul="${emul}btsmip" 6636 ;; 6637 *LSB*) 6638 emul="${emul}ltsmip" 6639 ;; 6640 esac 6641 case `/usr/bin/file conftest.$ac_objext` in 6642 *N32*) 6643 emul="${emul}n32" 6644 ;; 6645 esac 6646 LD="${LD-ld} -m $emul" 6647 fi 6648 rm -rf conftest* 6649 ;; 6650 6651 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6652 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6653 # Find out what ABI is being produced by ac_compile, and set linker 6654 # options accordingly. Note that the listed cases only cover the 6655 # situations where additional linker options are needed (such as when 6656 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6657 # vice versa); the common cases where no linker options are needed do 6658 # not appear in the list. 6659 echo 'int i;' > conftest.$ac_ext 6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6661 (eval $ac_compile) 2>&5 6662 ac_status=$? 6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6664 test $ac_status = 0; }; then 6665 case `/usr/bin/file conftest.o` in 6666 *32-bit*) 6667 case $host in 6668 x86_64-*kfreebsd*-gnu) 6669 LD="${LD-ld} -m elf_i386_fbsd" 6670 ;; 6671 x86_64-*linux*) 6672 case `/usr/bin/file conftest.o` in 6673 *x86-64*) 6674 LD="${LD-ld} -m elf32_x86_64" 6675 ;; 6676 *) 6677 LD="${LD-ld} -m elf_i386" 6678 ;; 6679 esac 6680 ;; 6681 powerpc64le-*linux*) 6682 LD="${LD-ld} -m elf32lppclinux" 6683 ;; 6684 powerpc64-*linux*) 6685 LD="${LD-ld} -m elf32ppclinux" 6686 ;; 6687 s390x-*linux*) 6688 LD="${LD-ld} -m elf_s390" 6689 ;; 6690 sparc64-*linux*) 6691 LD="${LD-ld} -m elf32_sparc" 6692 ;; 6693 esac 6694 ;; 6695 *64-bit*) 6696 case $host in 6697 x86_64-*kfreebsd*-gnu) 6698 LD="${LD-ld} -m elf_x86_64_fbsd" 6699 ;; 6700 x86_64-*linux*) 6701 LD="${LD-ld} -m elf_x86_64" 6702 ;; 6703 powerpcle-*linux*|powerpc64le-*linux*) 6704 LD="${LD-ld} -m elf64lppc" 6705 ;; 6706 powerpc-*linux*|powerpc64-*linux*) 6707 LD="${LD-ld} -m elf64ppc" 6708 ;; 6709 s390*-*linux*|s390*-*tpf*) 6710 LD="${LD-ld} -m elf64_s390" 6711 ;; 6712 sparc*-*linux*) 6713 LD="${LD-ld} -m elf64_sparc" 6714 ;; 6715 esac 6716 ;; 6717 esac 6718 fi 6719 rm -rf conftest* 6720 ;; 6721 6722 *-*-sco3.2v5*) 6723 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6724 SAVE_CFLAGS=$CFLAGS 6725 CFLAGS="$CFLAGS -belf" 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6727 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6728 if ${lt_cv_cc_needs_belf+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730 else 6731 ac_ext=c 6732 ac_cpp='$CPP $CPPFLAGS' 6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6736 6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6738 /* end confdefs.h. */ 6739 6740 int 6741 main () 6742 { 6743 6744 ; 6745 return 0; 6746 } 6747 _ACEOF 6748 if ac_fn_c_try_link "$LINENO"; then : 6749 lt_cv_cc_needs_belf=yes 6750 else 6751 lt_cv_cc_needs_belf=no 6752 fi 6753 rm -f core conftest.err conftest.$ac_objext \ 6754 conftest$ac_exeext conftest.$ac_ext 6755 ac_ext=c 6756 ac_cpp='$CPP $CPPFLAGS' 6757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6759 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6760 6761 fi 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6763 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6764 if test yes != "$lt_cv_cc_needs_belf"; then 6765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6766 CFLAGS=$SAVE_CFLAGS 6767 fi 6768 ;; 6769 *-*solaris*) 6770 # Find out what ABI is being produced by ac_compile, and set linker 6771 # options accordingly. 6772 echo 'int i;' > conftest.$ac_ext 6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6774 (eval $ac_compile) 2>&5 6775 ac_status=$? 6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6777 test $ac_status = 0; }; then 6778 case `/usr/bin/file conftest.o` in 6779 *64-bit*) 6780 case $lt_cv_prog_gnu_ld in 6781 yes*) 6782 case $host in 6783 i?86-*-solaris*|x86_64-*-solaris*) 6784 LD="${LD-ld} -m elf_x86_64" 6785 ;; 6786 sparc*-*-solaris*) 6787 LD="${LD-ld} -m elf64_sparc" 6788 ;; 6789 esac 6790 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6791 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6792 LD=${LD-ld}_sol2 6793 fi 6794 ;; 6795 *) 6796 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6797 LD="${LD-ld} -64" 6798 fi 6799 ;; 6800 esac 6801 ;; 6802 esac 6803 fi 6804 rm -rf conftest* 6805 ;; 6806 esac 6807 6808 need_locks=$enable_libtool_lock 6809 6810 if test -n "$ac_tool_prefix"; then 6811 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6812 set dummy ${ac_tool_prefix}mt; ac_word=$2 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6814 $as_echo_n "checking for $ac_word... " >&6; } 6815 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817 else 6818 if test -n "$MANIFEST_TOOL"; then 6819 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6820 else 6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822 for as_dir in $PATH 6823 do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6828 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832 done 6833 done 6834 IFS=$as_save_IFS 6835 6836 fi 6837 fi 6838 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6839 if test -n "$MANIFEST_TOOL"; then 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6841 $as_echo "$MANIFEST_TOOL" >&6; } 6842 else 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844 $as_echo "no" >&6; } 6845 fi 6846 6847 6848 fi 6849 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6850 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6851 # Extract the first word of "mt", so it can be a program name with args. 6852 set dummy mt; ac_word=$2 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854 $as_echo_n "checking for $ac_word... " >&6; } 6855 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857 else 6858 if test -n "$ac_ct_MANIFEST_TOOL"; then 6859 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6860 else 6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862 for as_dir in $PATH 6863 do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6868 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872 done 6873 done 6874 IFS=$as_save_IFS 6875 6876 fi 6877 fi 6878 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6879 if test -n "$ac_ct_MANIFEST_TOOL"; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6881 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6882 else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6884 $as_echo "no" >&6; } 6885 fi 6886 6887 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6888 MANIFEST_TOOL=":" 6889 else 6890 case $cross_compiling:$ac_tool_warned in 6891 yes:) 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6894 ac_tool_warned=yes ;; 6895 esac 6896 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6897 fi 6898 else 6899 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6900 fi 6901 6902 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6904 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6905 if ${lt_cv_path_mainfest_tool+:} false; then : 6906 $as_echo_n "(cached) " >&6 6907 else 6908 lt_cv_path_mainfest_tool=no 6909 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6910 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6911 cat conftest.err >&5 6912 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6913 lt_cv_path_mainfest_tool=yes 6914 fi 6915 rm -f conftest* 6916 fi 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6918 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6919 if test yes != "$lt_cv_path_mainfest_tool"; then 6920 MANIFEST_TOOL=: 6921 fi 6922 6923 6924 6925 6926 6927 6928 case $host_os in 6929 rhapsody* | darwin*) 6930 if test -n "$ac_tool_prefix"; then 6931 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6932 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6934 $as_echo_n "checking for $ac_word... " >&6; } 6935 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937 else 6938 if test -n "$DSYMUTIL"; then 6939 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6940 else 6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6942 for as_dir in $PATH 6943 do 6944 IFS=$as_save_IFS 6945 test -z "$as_dir" && as_dir=. 6946 for ac_exec_ext in '' $ac_executable_extensions; do 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6948 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6950 break 2 6951 fi 6952 done 6953 done 6954 IFS=$as_save_IFS 6955 6956 fi 6957 fi 6958 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6959 if test -n "$DSYMUTIL"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6961 $as_echo "$DSYMUTIL" >&6; } 6962 else 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6964 $as_echo "no" >&6; } 6965 fi 6966 6967 6968 fi 6969 if test -z "$ac_cv_prog_DSYMUTIL"; then 6970 ac_ct_DSYMUTIL=$DSYMUTIL 6971 # Extract the first word of "dsymutil", so it can be a program name with args. 6972 set dummy dsymutil; ac_word=$2 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6974 $as_echo_n "checking for $ac_word... " >&6; } 6975 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6976 $as_echo_n "(cached) " >&6 6977 else 6978 if test -n "$ac_ct_DSYMUTIL"; then 6979 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6980 else 6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6982 for as_dir in $PATH 6983 do 6984 IFS=$as_save_IFS 6985 test -z "$as_dir" && as_dir=. 6986 for ac_exec_ext in '' $ac_executable_extensions; do 6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6988 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6990 break 2 6991 fi 6992 done 6993 done 6994 IFS=$as_save_IFS 6995 6996 fi 6997 fi 6998 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6999 if test -n "$ac_ct_DSYMUTIL"; then 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7001 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7002 else 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7004 $as_echo "no" >&6; } 7005 fi 7006 7007 if test "x$ac_ct_DSYMUTIL" = x; then 7008 DSYMUTIL=":" 7009 else 7010 case $cross_compiling:$ac_tool_warned in 7011 yes:) 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7014 ac_tool_warned=yes ;; 7015 esac 7016 DSYMUTIL=$ac_ct_DSYMUTIL 7017 fi 7018 else 7019 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7020 fi 7021 7022 if test -n "$ac_tool_prefix"; then 7023 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7024 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7026 $as_echo_n "checking for $ac_word... " >&6; } 7027 if ${ac_cv_prog_NMEDIT+:} false; then : 7028 $as_echo_n "(cached) " >&6 7029 else 7030 if test -n "$NMEDIT"; then 7031 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7032 else 7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7034 for as_dir in $PATH 7035 do 7036 IFS=$as_save_IFS 7037 test -z "$as_dir" && as_dir=. 7038 for ac_exec_ext in '' $ac_executable_extensions; do 7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7040 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7042 break 2 7043 fi 7044 done 7045 done 7046 IFS=$as_save_IFS 7047 7048 fi 7049 fi 7050 NMEDIT=$ac_cv_prog_NMEDIT 7051 if test -n "$NMEDIT"; then 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7053 $as_echo "$NMEDIT" >&6; } 7054 else 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7056 $as_echo "no" >&6; } 7057 fi 7058 7059 7060 fi 7061 if test -z "$ac_cv_prog_NMEDIT"; then 7062 ac_ct_NMEDIT=$NMEDIT 7063 # Extract the first word of "nmedit", so it can be a program name with args. 7064 set dummy nmedit; ac_word=$2 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066 $as_echo_n "checking for $ac_word... " >&6; } 7067 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069 else 7070 if test -n "$ac_ct_NMEDIT"; then 7071 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7072 else 7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7074 for as_dir in $PATH 7075 do 7076 IFS=$as_save_IFS 7077 test -z "$as_dir" && as_dir=. 7078 for ac_exec_ext in '' $ac_executable_extensions; do 7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7080 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7082 break 2 7083 fi 7084 done 7085 done 7086 IFS=$as_save_IFS 7087 7088 fi 7089 fi 7090 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7091 if test -n "$ac_ct_NMEDIT"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7093 $as_echo "$ac_ct_NMEDIT" >&6; } 7094 else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7096 $as_echo "no" >&6; } 7097 fi 7098 7099 if test "x$ac_ct_NMEDIT" = x; then 7100 NMEDIT=":" 7101 else 7102 case $cross_compiling:$ac_tool_warned in 7103 yes:) 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7106 ac_tool_warned=yes ;; 7107 esac 7108 NMEDIT=$ac_ct_NMEDIT 7109 fi 7110 else 7111 NMEDIT="$ac_cv_prog_NMEDIT" 7112 fi 7113 7114 if test -n "$ac_tool_prefix"; then 7115 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7116 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7118 $as_echo_n "checking for $ac_word... " >&6; } 7119 if ${ac_cv_prog_LIPO+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121 else 7122 if test -n "$LIPO"; then 7123 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7124 else 7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126 for as_dir in $PATH 7127 do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7132 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136 done 7137 done 7138 IFS=$as_save_IFS 7139 7140 fi 7141 fi 7142 LIPO=$ac_cv_prog_LIPO 7143 if test -n "$LIPO"; then 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7145 $as_echo "$LIPO" >&6; } 7146 else 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7148 $as_echo "no" >&6; } 7149 fi 7150 7151 7152 fi 7153 if test -z "$ac_cv_prog_LIPO"; then 7154 ac_ct_LIPO=$LIPO 7155 # Extract the first word of "lipo", so it can be a program name with args. 7156 set dummy lipo; ac_word=$2 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7158 $as_echo_n "checking for $ac_word... " >&6; } 7159 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161 else 7162 if test -n "$ac_ct_LIPO"; then 7163 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7164 else 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166 for as_dir in $PATH 7167 do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7172 ac_cv_prog_ac_ct_LIPO="lipo" 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176 done 7177 done 7178 IFS=$as_save_IFS 7179 7180 fi 7181 fi 7182 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7183 if test -n "$ac_ct_LIPO"; then 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7185 $as_echo "$ac_ct_LIPO" >&6; } 7186 else 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7188 $as_echo "no" >&6; } 7189 fi 7190 7191 if test "x$ac_ct_LIPO" = x; then 7192 LIPO=":" 7193 else 7194 case $cross_compiling:$ac_tool_warned in 7195 yes:) 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7198 ac_tool_warned=yes ;; 7199 esac 7200 LIPO=$ac_ct_LIPO 7201 fi 7202 else 7203 LIPO="$ac_cv_prog_LIPO" 7204 fi 7205 7206 if test -n "$ac_tool_prefix"; then 7207 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7208 set dummy ${ac_tool_prefix}otool; ac_word=$2 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7210 $as_echo_n "checking for $ac_word... " >&6; } 7211 if ${ac_cv_prog_OTOOL+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213 else 7214 if test -n "$OTOOL"; then 7215 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7216 else 7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7218 for as_dir in $PATH 7219 do 7220 IFS=$as_save_IFS 7221 test -z "$as_dir" && as_dir=. 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7224 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7226 break 2 7227 fi 7228 done 7229 done 7230 IFS=$as_save_IFS 7231 7232 fi 7233 fi 7234 OTOOL=$ac_cv_prog_OTOOL 7235 if test -n "$OTOOL"; then 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7237 $as_echo "$OTOOL" >&6; } 7238 else 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240 $as_echo "no" >&6; } 7241 fi 7242 7243 7244 fi 7245 if test -z "$ac_cv_prog_OTOOL"; then 7246 ac_ct_OTOOL=$OTOOL 7247 # Extract the first word of "otool", so it can be a program name with args. 7248 set dummy otool; ac_word=$2 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250 $as_echo_n "checking for $ac_word... " >&6; } 7251 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253 else 7254 if test -n "$ac_ct_OTOOL"; then 7255 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7256 else 7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258 for as_dir in $PATH 7259 do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_prog_ac_ct_OTOOL="otool" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268 done 7269 done 7270 IFS=$as_save_IFS 7271 7272 fi 7273 fi 7274 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7275 if test -n "$ac_ct_OTOOL"; then 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7277 $as_echo "$ac_ct_OTOOL" >&6; } 7278 else 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7280 $as_echo "no" >&6; } 7281 fi 7282 7283 if test "x$ac_ct_OTOOL" = x; then 7284 OTOOL=":" 7285 else 7286 case $cross_compiling:$ac_tool_warned in 7287 yes:) 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7290 ac_tool_warned=yes ;; 7291 esac 7292 OTOOL=$ac_ct_OTOOL 7293 fi 7294 else 7295 OTOOL="$ac_cv_prog_OTOOL" 7296 fi 7297 7298 if test -n "$ac_tool_prefix"; then 7299 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7300 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7302 $as_echo_n "checking for $ac_word... " >&6; } 7303 if ${ac_cv_prog_OTOOL64+:} false; then : 7304 $as_echo_n "(cached) " >&6 7305 else 7306 if test -n "$OTOOL64"; then 7307 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7308 else 7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310 for as_dir in $PATH 7311 do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7316 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320 done 7321 done 7322 IFS=$as_save_IFS 7323 7324 fi 7325 fi 7326 OTOOL64=$ac_cv_prog_OTOOL64 7327 if test -n "$OTOOL64"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7329 $as_echo "$OTOOL64" >&6; } 7330 else 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7332 $as_echo "no" >&6; } 7333 fi 7334 7335 7336 fi 7337 if test -z "$ac_cv_prog_OTOOL64"; then 7338 ac_ct_OTOOL64=$OTOOL64 7339 # Extract the first word of "otool64", so it can be a program name with args. 7340 set dummy otool64; ac_word=$2 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7342 $as_echo_n "checking for $ac_word... " >&6; } 7343 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345 else 7346 if test -n "$ac_ct_OTOOL64"; then 7347 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7348 else 7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350 for as_dir in $PATH 7351 do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7356 ac_cv_prog_ac_ct_OTOOL64="otool64" 7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360 done 7361 done 7362 IFS=$as_save_IFS 7363 7364 fi 7365 fi 7366 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7367 if test -n "$ac_ct_OTOOL64"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7369 $as_echo "$ac_ct_OTOOL64" >&6; } 7370 else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372 $as_echo "no" >&6; } 7373 fi 7374 7375 if test "x$ac_ct_OTOOL64" = x; then 7376 OTOOL64=":" 7377 else 7378 case $cross_compiling:$ac_tool_warned in 7379 yes:) 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7382 ac_tool_warned=yes ;; 7383 esac 7384 OTOOL64=$ac_ct_OTOOL64 7385 fi 7386 else 7387 OTOOL64="$ac_cv_prog_OTOOL64" 7388 fi 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7417 $as_echo_n "checking for -single_module linker flag... " >&6; } 7418 if ${lt_cv_apple_cc_single_mod+:} false; then : 7419 $as_echo_n "(cached) " >&6 7420 else 7421 lt_cv_apple_cc_single_mod=no 7422 if test -z "$LT_MULTI_MODULE"; then 7423 # By default we will add the -single_module flag. You can override 7424 # by either setting the environment variable LT_MULTI_MODULE 7425 # non-empty at configure time, or by adding -multi_module to the 7426 # link flags. 7427 rm -rf libconftest.dylib* 7428 echo "int foo(void){return 1;}" > conftest.c 7429 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7430 -dynamiclib -Wl,-single_module conftest.c" >&5 7431 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7432 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7433 _lt_result=$? 7434 # If there is a non-empty error log, and "single_module" 7435 # appears in it, assume the flag caused a linker warning 7436 if test -s conftest.err && $GREP single_module conftest.err; then 7437 cat conftest.err >&5 7438 # Otherwise, if the output was created with a 0 exit code from 7439 # the compiler, it worked. 7440 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7441 lt_cv_apple_cc_single_mod=yes 7442 else 7443 cat conftest.err >&5 7444 fi 7445 rm -rf libconftest.dylib* 7446 rm -f conftest.* 7447 fi 7448 fi 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7450 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7451 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7453 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7454 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456 else 7457 lt_cv_ld_exported_symbols_list=no 7458 save_LDFLAGS=$LDFLAGS 7459 echo "_main" > conftest.sym 7460 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462 /* end confdefs.h. */ 7463 7464 int 7465 main () 7466 { 7467 7468 ; 7469 return 0; 7470 } 7471 _ACEOF 7472 if ac_fn_c_try_link "$LINENO"; then : 7473 lt_cv_ld_exported_symbols_list=yes 7474 else 7475 lt_cv_ld_exported_symbols_list=no 7476 fi 7477 rm -f core conftest.err conftest.$ac_objext \ 7478 conftest$ac_exeext conftest.$ac_ext 7479 LDFLAGS=$save_LDFLAGS 7480 7481 fi 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7483 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7484 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7486 $as_echo_n "checking for -force_load linker flag... " >&6; } 7487 if ${lt_cv_ld_force_load+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489 else 7490 lt_cv_ld_force_load=no 7491 cat > conftest.c << _LT_EOF 7492 int forced_loaded() { return 2;} 7493 _LT_EOF 7494 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7495 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7496 echo "$AR cru libconftest.a conftest.o" >&5 7497 $AR cru libconftest.a conftest.o 2>&5 7498 echo "$RANLIB libconftest.a" >&5 7499 $RANLIB libconftest.a 2>&5 7500 cat > conftest.c << _LT_EOF 7501 int main() { return 0;} 7502 _LT_EOF 7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7504 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7505 _lt_result=$? 7506 if test -s conftest.err && $GREP force_load conftest.err; then 7507 cat conftest.err >&5 7508 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7509 lt_cv_ld_force_load=yes 7510 else 7511 cat conftest.err >&5 7512 fi 7513 rm -f conftest.err libconftest.a conftest conftest.c 7514 rm -rf conftest.dSYM 7515 7516 fi 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7518 $as_echo "$lt_cv_ld_force_load" >&6; } 7519 case $host_os in 7520 rhapsody* | darwin1.[012]) 7521 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7522 darwin1.*) 7523 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7524 darwin*) # darwin 5.x on 7525 # if running on 10.5 or later, the deployment target defaults 7526 # to the OS version, if on x86, and 10.4, the deployment 7527 # target defaults to 10.4. Don't you love it? 7528 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7529 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7530 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7531 10.[012][,.]*) 7532 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7533 10.*) 7534 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7535 esac 7536 ;; 7537 esac 7538 if test yes = "$lt_cv_apple_cc_single_mod"; then 7539 _lt_dar_single_mod='$single_module' 7540 fi 7541 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7542 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7543 else 7544 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7545 fi 7546 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7547 _lt_dsymutil='~$DSYMUTIL $lib || :' 7548 else 7549 _lt_dsymutil= 7550 fi 7551 ;; 7552 esac 7553 7554 # func_munge_path_list VARIABLE PATH 7555 # ----------------------------------- 7556 # VARIABLE is name of variable containing _space_ separated list of 7557 # directories to be munged by the contents of PATH, which is string 7558 # having a format: 7559 # "DIR[:DIR]:" 7560 # string "DIR[ DIR]" will be prepended to VARIABLE 7561 # ":DIR[:DIR]" 7562 # string "DIR[ DIR]" will be appended to VARIABLE 7563 # "DIRP[:DIRP]::[DIRA:]DIRA" 7564 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7565 # "DIRA[ DIRA]" will be appended to VARIABLE 7566 # "DIR[:DIR]" 7567 # VARIABLE will be replaced by "DIR[ DIR]" 7568 func_munge_path_list () 7569 { 7570 case x$2 in 7571 x) 7572 ;; 7573 *:) 7574 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7575 ;; 7576 x:*) 7577 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7578 ;; 7579 *::*) 7580 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7581 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7582 ;; 7583 *) 7584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7585 ;; 7586 esac 7587 } 7588 7589 ac_ext=c 7590 ac_cpp='$CPP $CPPFLAGS' 7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7595 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7596 # On Suns, sometimes $CPP names a directory. 7597 if test -n "$CPP" && test -d "$CPP"; then 7598 CPP= 7599 fi 7600 if test -z "$CPP"; then 7601 if ${ac_cv_prog_CPP+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603 else 7604 # Double quotes because CPP needs to be expanded 7605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7606 do 7607 ac_preproc_ok=false 7608 for ac_c_preproc_warn_flag in '' yes 7609 do 7610 # Use a header file that comes with gcc, so configuring glibc 7611 # with a fresh cross-compiler works. 7612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7613 # <limits.h> exists even on freestanding compilers. 7614 # On the NeXT, cc -E runs the code through the compiler's parser, 7615 # not just through cpp. "Syntax error" is here to catch this case. 7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7617 /* end confdefs.h. */ 7618 #ifdef __STDC__ 7619 # include <limits.h> 7620 #else 7621 # include <assert.h> 7622 #endif 7623 Syntax error 7624 _ACEOF 7625 if ac_fn_c_try_cpp "$LINENO"; then : 7626 7627 else 7628 # Broken: fails on valid input. 7629 continue 7630 fi 7631 rm -f conftest.err conftest.i conftest.$ac_ext 7632 7633 # OK, works on sane cases. Now check whether nonexistent headers 7634 # can be detected and how. 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636 /* end confdefs.h. */ 7637 #include <ac_nonexistent.h> 7638 _ACEOF 7639 if ac_fn_c_try_cpp "$LINENO"; then : 7640 # Broken: success on invalid input. 7641 continue 7642 else 7643 # Passes both tests. 7644 ac_preproc_ok=: 7645 break 7646 fi 7647 rm -f conftest.err conftest.i conftest.$ac_ext 7648 7649 done 7650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7651 rm -f conftest.i conftest.err conftest.$ac_ext 7652 if $ac_preproc_ok; then : 7653 break 7654 fi 7655 7656 done 7657 ac_cv_prog_CPP=$CPP 7658 7659 fi 7660 CPP=$ac_cv_prog_CPP 7661 else 7662 ac_cv_prog_CPP=$CPP 7663 fi 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7665 $as_echo "$CPP" >&6; } 7666 ac_preproc_ok=false 7667 for ac_c_preproc_warn_flag in '' yes 7668 do 7669 # Use a header file that comes with gcc, so configuring glibc 7670 # with a fresh cross-compiler works. 7671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7672 # <limits.h> exists even on freestanding compilers. 7673 # On the NeXT, cc -E runs the code through the compiler's parser, 7674 # not just through cpp. "Syntax error" is here to catch this case. 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676 /* end confdefs.h. */ 7677 #ifdef __STDC__ 7678 # include <limits.h> 7679 #else 7680 # include <assert.h> 7681 #endif 7682 Syntax error 7683 _ACEOF 7684 if ac_fn_c_try_cpp "$LINENO"; then : 7685 7686 else 7687 # Broken: fails on valid input. 7688 continue 7689 fi 7690 rm -f conftest.err conftest.i conftest.$ac_ext 7691 7692 # OK, works on sane cases. Now check whether nonexistent headers 7693 # can be detected and how. 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695 /* end confdefs.h. */ 7696 #include <ac_nonexistent.h> 7697 _ACEOF 7698 if ac_fn_c_try_cpp "$LINENO"; then : 7699 # Broken: success on invalid input. 7700 continue 7701 else 7702 # Passes both tests. 7703 ac_preproc_ok=: 7704 break 7705 fi 7706 rm -f conftest.err conftest.i conftest.$ac_ext 7707 7708 done 7709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7710 rm -f conftest.i conftest.err conftest.$ac_ext 7711 if $ac_preproc_ok; then : 7712 7713 else 7714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7716 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7717 See \`config.log' for more details" "$LINENO" 5; } 7718 fi 7719 7720 ac_ext=c 7721 ac_cpp='$CPP $CPPFLAGS' 7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7725 7726 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7728 $as_echo_n "checking for ANSI C header files... " >&6; } 7729 if ${ac_cv_header_stdc+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731 else 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733 /* end confdefs.h. */ 7734 #include <stdlib.h> 7735 #include <stdarg.h> 7736 #include <string.h> 7737 #include <float.h> 7738 7739 int 7740 main () 7741 { 7742 7743 ; 7744 return 0; 7745 } 7746 _ACEOF 7747 if ac_fn_c_try_compile "$LINENO"; then : 7748 ac_cv_header_stdc=yes 7749 else 7750 ac_cv_header_stdc=no 7751 fi 7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7753 7754 if test $ac_cv_header_stdc = yes; then 7755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757 /* end confdefs.h. */ 7758 #include <string.h> 7759 7760 _ACEOF 7761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7762 $EGREP "memchr" >/dev/null 2>&1; then : 7763 7764 else 7765 ac_cv_header_stdc=no 7766 fi 7767 rm -f conftest* 7768 7769 fi 7770 7771 if test $ac_cv_header_stdc = yes; then 7772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774 /* end confdefs.h. */ 7775 #include <stdlib.h> 7776 7777 _ACEOF 7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7779 $EGREP "free" >/dev/null 2>&1; then : 7780 7781 else 7782 ac_cv_header_stdc=no 7783 fi 7784 rm -f conftest* 7785 7786 fi 7787 7788 if test $ac_cv_header_stdc = yes; then 7789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7790 if test "$cross_compiling" = yes; then : 7791 : 7792 else 7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794 /* end confdefs.h. */ 7795 #include <ctype.h> 7796 #include <stdlib.h> 7797 #if ((' ' & 0x0FF) == 0x020) 7798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7800 #else 7801 # define ISLOWER(c) \ 7802 (('a' <= (c) && (c) <= 'i') \ 7803 || ('j' <= (c) && (c) <= 'r') \ 7804 || ('s' <= (c) && (c) <= 'z')) 7805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7806 #endif 7807 7808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7809 int 7810 main () 7811 { 7812 int i; 7813 for (i = 0; i < 256; i++) 7814 if (XOR (islower (i), ISLOWER (i)) 7815 || toupper (i) != TOUPPER (i)) 7816 return 2; 7817 return 0; 7818 } 7819 _ACEOF 7820 if ac_fn_c_try_run "$LINENO"; then : 7821 7822 else 7823 ac_cv_header_stdc=no 7824 fi 7825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7826 conftest.$ac_objext conftest.beam conftest.$ac_ext 7827 fi 7828 7829 fi 7830 fi 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7832 $as_echo "$ac_cv_header_stdc" >&6; } 7833 if test $ac_cv_header_stdc = yes; then 7834 7835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7836 7837 fi 7838 7839 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7841 inttypes.h stdint.h unistd.h 7842 do : 7843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7845 " 7846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7847 cat >>confdefs.h <<_ACEOF 7848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7849 _ACEOF 7850 7851 fi 7852 7853 done 7854 7855 7856 for ac_header in dlfcn.h 7857 do : 7858 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7859 " 7860 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7861 cat >>confdefs.h <<_ACEOF 7862 #define HAVE_DLFCN_H 1 7863 _ACEOF 7864 7865 fi 7866 7867 done 7868 7869 7870 7871 7872 7873 # Set options 7874 7875 7876 7877 enable_dlopen=no 7878 7879 7880 enable_win32_dll=no 7881 7882 7883 # Check whether --enable-shared was given. 7884 if test "${enable_shared+set}" = set; then : 7885 enableval=$enable_shared; p=${PACKAGE-default} 7886 case $enableval in 7887 yes) enable_shared=yes ;; 7888 no) enable_shared=no ;; 7889 *) 7890 enable_shared=no 7891 # Look at the argument we got. We use all the common list separators. 7892 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7893 for pkg in $enableval; do 7894 IFS=$lt_save_ifs 7895 if test "X$pkg" = "X$p"; then 7896 enable_shared=yes 7897 fi 7898 done 7899 IFS=$lt_save_ifs 7900 ;; 7901 esac 7902 else 7903 enable_shared=yes 7904 fi 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 # Check whether --enable-static was given. 7915 if test "${enable_static+set}" = set; then : 7916 enableval=$enable_static; p=${PACKAGE-default} 7917 case $enableval in 7918 yes) enable_static=yes ;; 7919 no) enable_static=no ;; 7920 *) 7921 enable_static=no 7922 # Look at the argument we got. We use all the common list separators. 7923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7924 for pkg in $enableval; do 7925 IFS=$lt_save_ifs 7926 if test "X$pkg" = "X$p"; then 7927 enable_static=yes 7928 fi 7929 done 7930 IFS=$lt_save_ifs 7931 ;; 7932 esac 7933 else 7934 enable_static=yes 7935 fi 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 # Check whether --with-pic was given. 7947 if test "${with_pic+set}" = set; then : 7948 withval=$with_pic; lt_p=${PACKAGE-default} 7949 case $withval in 7950 yes|no) pic_mode=$withval ;; 7951 *) 7952 pic_mode=default 7953 # Look at the argument we got. We use all the common list separators. 7954 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7955 for lt_pkg in $withval; do 7956 IFS=$lt_save_ifs 7957 if test "X$lt_pkg" = "X$lt_p"; then 7958 pic_mode=yes 7959 fi 7960 done 7961 IFS=$lt_save_ifs 7962 ;; 7963 esac 7964 else 7965 pic_mode=default 7966 fi 7967 7968 7969 7970 7971 7972 7973 7974 7975 # Check whether --enable-fast-install was given. 7976 if test "${enable_fast_install+set}" = set; then : 7977 enableval=$enable_fast_install; p=${PACKAGE-default} 7978 case $enableval in 7979 yes) enable_fast_install=yes ;; 7980 no) enable_fast_install=no ;; 7981 *) 7982 enable_fast_install=no 7983 # Look at the argument we got. We use all the common list separators. 7984 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7985 for pkg in $enableval; do 7986 IFS=$lt_save_ifs 7987 if test "X$pkg" = "X$p"; then 7988 enable_fast_install=yes 7989 fi 7990 done 7991 IFS=$lt_save_ifs 7992 ;; 7993 esac 7994 else 7995 enable_fast_install=yes 7996 fi 7997 7998 7999 8000 8001 8002 8003 8004 8005 shared_archive_member_spec= 8006 case $host,$enable_shared in 8007 power*-*-aix[5-9]*,yes) 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8009 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8010 8011 # Check whether --with-aix-soname was given. 8012 if test "${with_aix_soname+set}" = set; then : 8013 withval=$with_aix_soname; case $withval in 8014 aix|svr4|both) 8015 ;; 8016 *) 8017 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8018 ;; 8019 esac 8020 lt_cv_with_aix_soname=$with_aix_soname 8021 else 8022 if ${lt_cv_with_aix_soname+:} false; then : 8023 $as_echo_n "(cached) " >&6 8024 else 8025 lt_cv_with_aix_soname=aix 8026 fi 8027 8028 with_aix_soname=$lt_cv_with_aix_soname 8029 fi 8030 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8032 $as_echo "$with_aix_soname" >&6; } 8033 if test aix != "$with_aix_soname"; then 8034 # For the AIX way of multilib, we name the shared archive member 8035 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8036 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8037 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8038 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8039 if test 64 = "${OBJECT_MODE-32}"; then 8040 shared_archive_member_spec=shr_64 8041 else 8042 shared_archive_member_spec=shr 8043 fi 8044 fi 8045 ;; 8046 *) 8047 with_aix_soname=aix 8048 ;; 8049 esac 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 # This can be used to rebuild libtool when needed 8061 LIBTOOL_DEPS=$ltmain 8062 8063 # Always use our own libtool. 8064 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 test -z "$LN_S" && LN_S="ln -s" 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 if test -n "${ZSH_VERSION+set}"; then 8111 setopt NO_GLOB_SUBST 8112 fi 8113 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8115 $as_echo_n "checking for objdir... " >&6; } 8116 if ${lt_cv_objdir+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118 else 8119 rm -f .libs 2>/dev/null 8120 mkdir .libs 2>/dev/null 8121 if test -d .libs; then 8122 lt_cv_objdir=.libs 8123 else 8124 # MS-DOS does not allow filenames that begin with a dot. 8125 lt_cv_objdir=_libs 8126 fi 8127 rmdir .libs 2>/dev/null 8128 fi 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8130 $as_echo "$lt_cv_objdir" >&6; } 8131 objdir=$lt_cv_objdir 8132 8133 8134 8135 8136 8137 cat >>confdefs.h <<_ACEOF 8138 #define LT_OBJDIR "$lt_cv_objdir/" 8139 _ACEOF 8140 8141 8142 8143 8144 case $host_os in 8145 aix3*) 8146 # AIX sometimes has problems with the GCC collect2 program. For some 8147 # reason, if we set the COLLECT_NAMES environment variable, the problems 8148 # vanish in a puff of smoke. 8149 if test set != "${COLLECT_NAMES+set}"; then 8150 COLLECT_NAMES= 8151 export COLLECT_NAMES 8152 fi 8153 ;; 8154 esac 8155 8156 # Global variables: 8157 ofile=libtool 8158 can_build_shared=yes 8159 8160 # All known linkers require a '.a' archive for static linking (except MSVC, 8161 # which needs '.lib'). 8162 libext=a 8163 8164 with_gnu_ld=$lt_cv_prog_gnu_ld 8165 8166 old_CC=$CC 8167 old_CFLAGS=$CFLAGS 8168 8169 # Set sane defaults for various variables 8170 test -z "$CC" && CC=cc 8171 test -z "$LTCC" && LTCC=$CC 8172 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8173 test -z "$LD" && LD=ld 8174 test -z "$ac_objext" && ac_objext=o 8175 8176 func_cc_basename $compiler 8177 cc_basename=$func_cc_basename_result 8178 8179 8180 # Only perform the check for file, if the check method requires it 8181 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8182 case $deplibs_check_method in 8183 file_magic*) 8184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8186 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8187 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189 else 8190 case $MAGIC_CMD in 8191 [\\/*] | ?:[\\/]*) 8192 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8193 ;; 8194 *) 8195 lt_save_MAGIC_CMD=$MAGIC_CMD 8196 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8198 for ac_dir in $ac_dummy; do 8199 IFS=$lt_save_ifs 8200 test -z "$ac_dir" && ac_dir=. 8201 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8202 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8203 if test -n "$file_magic_test_file"; then 8204 case $deplibs_check_method in 8205 "file_magic "*) 8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8209 $EGREP "$file_magic_regex" > /dev/null; then 8210 : 8211 else 8212 cat <<_LT_EOF 1>&2 8213 8214 *** Warning: the command libtool uses to detect shared libraries, 8215 *** $file_magic_cmd, produces output that libtool cannot recognize. 8216 *** The result is that libtool may fail to recognize shared libraries 8217 *** as such. This will affect the creation of libtool libraries that 8218 *** depend on shared libraries, but programs linked with such libtool 8219 *** libraries will work regardless of this problem. Nevertheless, you 8220 *** may want to report the problem to your system manager and/or to 8221 *** bug-libtool (at] gnu.org 8222 8223 _LT_EOF 8224 fi ;; 8225 esac 8226 fi 8227 break 8228 fi 8229 done 8230 IFS=$lt_save_ifs 8231 MAGIC_CMD=$lt_save_MAGIC_CMD 8232 ;; 8233 esac 8234 fi 8235 8236 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8237 if test -n "$MAGIC_CMD"; then 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8239 $as_echo "$MAGIC_CMD" >&6; } 8240 else 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8242 $as_echo "no" >&6; } 8243 fi 8244 8245 8246 8247 8248 8249 if test -z "$lt_cv_path_MAGIC_CMD"; then 8250 if test -n "$ac_tool_prefix"; then 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8252 $as_echo_n "checking for file... " >&6; } 8253 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8254 $as_echo_n "(cached) " >&6 8255 else 8256 case $MAGIC_CMD in 8257 [\\/*] | ?:[\\/]*) 8258 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8259 ;; 8260 *) 8261 lt_save_MAGIC_CMD=$MAGIC_CMD 8262 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8263 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8264 for ac_dir in $ac_dummy; do 8265 IFS=$lt_save_ifs 8266 test -z "$ac_dir" && ac_dir=. 8267 if test -f "$ac_dir/file"; then 8268 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8269 if test -n "$file_magic_test_file"; then 8270 case $deplibs_check_method in 8271 "file_magic "*) 8272 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8273 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8274 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8275 $EGREP "$file_magic_regex" > /dev/null; then 8276 : 8277 else 8278 cat <<_LT_EOF 1>&2 8279 8280 *** Warning: the command libtool uses to detect shared libraries, 8281 *** $file_magic_cmd, produces output that libtool cannot recognize. 8282 *** The result is that libtool may fail to recognize shared libraries 8283 *** as such. This will affect the creation of libtool libraries that 8284 *** depend on shared libraries, but programs linked with such libtool 8285 *** libraries will work regardless of this problem. Nevertheless, you 8286 *** may want to report the problem to your system manager and/or to 8287 *** bug-libtool (at] gnu.org 8288 8289 _LT_EOF 8290 fi ;; 8291 esac 8292 fi 8293 break 8294 fi 8295 done 8296 IFS=$lt_save_ifs 8297 MAGIC_CMD=$lt_save_MAGIC_CMD 8298 ;; 8299 esac 8300 fi 8301 8302 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8303 if test -n "$MAGIC_CMD"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8305 $as_echo "$MAGIC_CMD" >&6; } 8306 else 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8308 $as_echo "no" >&6; } 8309 fi 8310 8311 8312 else 8313 MAGIC_CMD=: 8314 fi 8315 fi 8316 8317 fi 8318 ;; 8319 esac 8320 8321 # Use C for the default configuration in the libtool script 8322 8323 lt_save_CC=$CC 8324 ac_ext=c 8325 ac_cpp='$CPP $CPPFLAGS' 8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8329 8330 8331 # Source file extension for C test sources. 8332 ac_ext=c 8333 8334 # Object file extension for compiled C test sources. 8335 objext=o 8336 objext=$objext 8337 8338 # Code to be used in simple compile tests 8339 lt_simple_compile_test_code="int some_variable = 0;" 8340 8341 # Code to be used in simple link tests 8342 lt_simple_link_test_code='int main(){return(0);}' 8343 8344 8345 8346 8347 8348 8349 8350 # If no C compiler was specified, use CC. 8351 LTCC=${LTCC-"$CC"} 8352 8353 # If no C compiler flags were specified, use CFLAGS. 8354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8355 8356 # Allow CC to be a program name with arguments. 8357 compiler=$CC 8358 8359 # Save the default compiler, since it gets overwritten when the other 8360 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8361 compiler_DEFAULT=$CC 8362 8363 # save warnings/boilerplate of simple test code 8364 ac_outfile=conftest.$ac_objext 8365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8367 _lt_compiler_boilerplate=`cat conftest.err` 8368 $RM conftest* 8369 8370 ac_outfile=conftest.$ac_objext 8371 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8373 _lt_linker_boilerplate=`cat conftest.err` 8374 $RM -r conftest* 8375 8376 8377 if test -n "$compiler"; then 8378 8379 lt_prog_compiler_no_builtin_flag= 8380 8381 if test yes = "$GCC"; then 8382 case $cc_basename in 8383 nvcc*) 8384 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8385 *) 8386 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8387 esac 8388 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8390 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8391 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8392 $as_echo_n "(cached) " >&6 8393 else 8394 lt_cv_prog_compiler_rtti_exceptions=no 8395 ac_outfile=conftest.$ac_objext 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8398 # Insert the option either (1) after the last *FLAGS variable, or 8399 # (2) before a word containing "conftest.", or (3) at the end. 8400 # Note that $ac_compile itself does not contain backslashes and begins 8401 # with a dollar sign (not a hyphen), so the echo should work correctly. 8402 # The option is referenced via a variable to avoid confusing sed. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>conftest.err) 8409 ac_status=$? 8410 cat conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s "$ac_outfile"; then 8413 # The compiler can only warn and ignore the option if not recognized 8414 # So say no if there are warnings other than the usual output. 8415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8418 lt_cv_prog_compiler_rtti_exceptions=yes 8419 fi 8420 fi 8421 $RM conftest* 8422 8423 fi 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8425 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8426 8427 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8429 else 8430 : 8431 fi 8432 8433 fi 8434 8435 8436 8437 8438 8439 8440 lt_prog_compiler_wl= 8441 lt_prog_compiler_pic= 8442 lt_prog_compiler_static= 8443 8444 8445 if test yes = "$GCC"; then 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_static='-static' 8448 8449 case $host_os in 8450 aix*) 8451 # All AIX code is PIC. 8452 if test ia64 = "$host_cpu"; then 8453 # AIX 5 now supports IA64 processor 8454 lt_prog_compiler_static='-Bstatic' 8455 fi 8456 lt_prog_compiler_pic='-fPIC' 8457 ;; 8458 8459 amigaos*) 8460 case $host_cpu in 8461 powerpc) 8462 # see comment about AmigaOS4 .so support 8463 lt_prog_compiler_pic='-fPIC' 8464 ;; 8465 m68k) 8466 # FIXME: we need at least 68020 code to build shared libraries, but 8467 # adding the '-m68020' flag to GCC prevents building anything better, 8468 # like '-m68040'. 8469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8470 ;; 8471 esac 8472 ;; 8473 8474 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8475 # PIC is the default for these OSes. 8476 ;; 8477 8478 mingw* | cygwin* | pw32* | os2* | cegcc*) 8479 # This hack is so that the source file can tell whether it is being 8480 # built for inclusion in a dll (and should export symbols for example). 8481 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8482 # (--disable-auto-import) libraries 8483 lt_prog_compiler_pic='-DDLL_EXPORT' 8484 case $host_os in 8485 os2*) 8486 lt_prog_compiler_static='$wl-static' 8487 ;; 8488 esac 8489 ;; 8490 8491 darwin* | rhapsody*) 8492 # PIC is the default on this platform 8493 # Common symbols not allowed in MH_DYLIB files 8494 lt_prog_compiler_pic='-fno-common' 8495 ;; 8496 8497 haiku*) 8498 # PIC is the default for Haiku. 8499 # The "-static" flag exists, but is broken. 8500 lt_prog_compiler_static= 8501 ;; 8502 8503 hpux*) 8504 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8505 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8506 # sets the default TLS model and affects inlining. 8507 case $host_cpu in 8508 hppa*64*) 8509 # +Z the default 8510 ;; 8511 *) 8512 lt_prog_compiler_pic='-fPIC' 8513 ;; 8514 esac 8515 ;; 8516 8517 interix[3-9]*) 8518 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8519 # Instead, we relocate shared libraries at runtime. 8520 ;; 8521 8522 msdosdjgpp*) 8523 # Just because we use GCC doesn't mean we suddenly get shared libraries 8524 # on systems that don't support them. 8525 lt_prog_compiler_can_build_shared=no 8526 enable_shared=no 8527 ;; 8528 8529 *nto* | *qnx*) 8530 # QNX uses GNU C++, but need to define -shared option too, otherwise 8531 # it will coredump. 8532 lt_prog_compiler_pic='-fPIC -shared' 8533 ;; 8534 8535 sysv4*MP*) 8536 if test -d /usr/nec; then 8537 lt_prog_compiler_pic=-Kconform_pic 8538 fi 8539 ;; 8540 8541 *) 8542 lt_prog_compiler_pic='-fPIC' 8543 ;; 8544 esac 8545 8546 case $cc_basename in 8547 nvcc*) # Cuda Compiler Driver 2.2 8548 lt_prog_compiler_wl='-Xlinker ' 8549 if test -n "$lt_prog_compiler_pic"; then 8550 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8551 fi 8552 ;; 8553 esac 8554 else 8555 # PORTME Check for flag to pass linker flags through the system compiler. 8556 case $host_os in 8557 aix*) 8558 lt_prog_compiler_wl='-Wl,' 8559 if test ia64 = "$host_cpu"; then 8560 # AIX 5 now supports IA64 processor 8561 lt_prog_compiler_static='-Bstatic' 8562 else 8563 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8564 fi 8565 ;; 8566 8567 darwin* | rhapsody*) 8568 # PIC is the default on this platform 8569 # Common symbols not allowed in MH_DYLIB files 8570 lt_prog_compiler_pic='-fno-common' 8571 case $cc_basename in 8572 nagfor*) 8573 # NAG Fortran compiler 8574 lt_prog_compiler_wl='-Wl,-Wl,,' 8575 lt_prog_compiler_pic='-PIC' 8576 lt_prog_compiler_static='-Bstatic' 8577 ;; 8578 esac 8579 ;; 8580 8581 mingw* | cygwin* | pw32* | os2* | cegcc*) 8582 # This hack is so that the source file can tell whether it is being 8583 # built for inclusion in a dll (and should export symbols for example). 8584 lt_prog_compiler_pic='-DDLL_EXPORT' 8585 case $host_os in 8586 os2*) 8587 lt_prog_compiler_static='$wl-static' 8588 ;; 8589 esac 8590 ;; 8591 8592 hpux9* | hpux10* | hpux11*) 8593 lt_prog_compiler_wl='-Wl,' 8594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8595 # not for PA HP-UX. 8596 case $host_cpu in 8597 hppa*64*|ia64*) 8598 # +Z the default 8599 ;; 8600 *) 8601 lt_prog_compiler_pic='+Z' 8602 ;; 8603 esac 8604 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8605 lt_prog_compiler_static='$wl-a ${wl}archive' 8606 ;; 8607 8608 irix5* | irix6* | nonstopux*) 8609 lt_prog_compiler_wl='-Wl,' 8610 # PIC (with -KPIC) is the default. 8611 lt_prog_compiler_static='-non_shared' 8612 ;; 8613 8614 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8615 case $cc_basename in 8616 # old Intel for x86_64, which still supported -KPIC. 8617 ecc*) 8618 lt_prog_compiler_wl='-Wl,' 8619 lt_prog_compiler_pic='-KPIC' 8620 lt_prog_compiler_static='-static' 8621 ;; 8622 # icc used to be incompatible with GCC. 8623 # ICC 10 doesn't accept -KPIC any more. 8624 icc* | ifort*) 8625 lt_prog_compiler_wl='-Wl,' 8626 lt_prog_compiler_pic='-fPIC' 8627 lt_prog_compiler_static='-static' 8628 ;; 8629 # Lahey Fortran 8.1. 8630 lf95*) 8631 lt_prog_compiler_wl='-Wl,' 8632 lt_prog_compiler_pic='--shared' 8633 lt_prog_compiler_static='--static' 8634 ;; 8635 nagfor*) 8636 # NAG Fortran compiler 8637 lt_prog_compiler_wl='-Wl,-Wl,,' 8638 lt_prog_compiler_pic='-PIC' 8639 lt_prog_compiler_static='-Bstatic' 8640 ;; 8641 tcc*) 8642 # Fabrice Bellard et al's Tiny C Compiler 8643 lt_prog_compiler_wl='-Wl,' 8644 lt_prog_compiler_pic='-fPIC' 8645 lt_prog_compiler_static='-static' 8646 ;; 8647 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8648 # Portland Group compilers (*not* the Pentium gcc compiler, 8649 # which looks to be a dead project) 8650 lt_prog_compiler_wl='-Wl,' 8651 lt_prog_compiler_pic='-fpic' 8652 lt_prog_compiler_static='-Bstatic' 8653 ;; 8654 ccc*) 8655 lt_prog_compiler_wl='-Wl,' 8656 # All Alpha code is PIC. 8657 lt_prog_compiler_static='-non_shared' 8658 ;; 8659 xl* | bgxl* | bgf* | mpixl*) 8660 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='-qpic' 8663 lt_prog_compiler_static='-qstaticlink' 8664 ;; 8665 *) 8666 case `$CC -V 2>&1 | sed 5q` in 8667 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8668 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 lt_prog_compiler_wl='' 8672 ;; 8673 *Sun\ F* | *Sun*Fortran*) 8674 lt_prog_compiler_pic='-KPIC' 8675 lt_prog_compiler_static='-Bstatic' 8676 lt_prog_compiler_wl='-Qoption ld ' 8677 ;; 8678 *Sun\ C*) 8679 # Sun C 5.9 8680 lt_prog_compiler_pic='-KPIC' 8681 lt_prog_compiler_static='-Bstatic' 8682 lt_prog_compiler_wl='-Wl,' 8683 ;; 8684 *Intel*\ [CF]*Compiler*) 8685 lt_prog_compiler_wl='-Wl,' 8686 lt_prog_compiler_pic='-fPIC' 8687 lt_prog_compiler_static='-static' 8688 ;; 8689 *Portland\ Group*) 8690 lt_prog_compiler_wl='-Wl,' 8691 lt_prog_compiler_pic='-fpic' 8692 lt_prog_compiler_static='-Bstatic' 8693 ;; 8694 esac 8695 ;; 8696 esac 8697 ;; 8698 8699 newsos6) 8700 lt_prog_compiler_pic='-KPIC' 8701 lt_prog_compiler_static='-Bstatic' 8702 ;; 8703 8704 *nto* | *qnx*) 8705 # QNX uses GNU C++, but need to define -shared option too, otherwise 8706 # it will coredump. 8707 lt_prog_compiler_pic='-fPIC -shared' 8708 ;; 8709 8710 osf3* | osf4* | osf5*) 8711 lt_prog_compiler_wl='-Wl,' 8712 # All OSF/1 code is PIC. 8713 lt_prog_compiler_static='-non_shared' 8714 ;; 8715 8716 rdos*) 8717 lt_prog_compiler_static='-non_shared' 8718 ;; 8719 8720 solaris*) 8721 lt_prog_compiler_pic='-KPIC' 8722 lt_prog_compiler_static='-Bstatic' 8723 case $cc_basename in 8724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8725 lt_prog_compiler_wl='-Qoption ld ';; 8726 *) 8727 lt_prog_compiler_wl='-Wl,';; 8728 esac 8729 ;; 8730 8731 sunos4*) 8732 lt_prog_compiler_wl='-Qoption ld ' 8733 lt_prog_compiler_pic='-PIC' 8734 lt_prog_compiler_static='-Bstatic' 8735 ;; 8736 8737 sysv4 | sysv4.2uw2* | sysv4.3*) 8738 lt_prog_compiler_wl='-Wl,' 8739 lt_prog_compiler_pic='-KPIC' 8740 lt_prog_compiler_static='-Bstatic' 8741 ;; 8742 8743 sysv4*MP*) 8744 if test -d /usr/nec; then 8745 lt_prog_compiler_pic='-Kconform_pic' 8746 lt_prog_compiler_static='-Bstatic' 8747 fi 8748 ;; 8749 8750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8751 lt_prog_compiler_wl='-Wl,' 8752 lt_prog_compiler_pic='-KPIC' 8753 lt_prog_compiler_static='-Bstatic' 8754 ;; 8755 8756 unicos*) 8757 lt_prog_compiler_wl='-Wl,' 8758 lt_prog_compiler_can_build_shared=no 8759 ;; 8760 8761 uts4*) 8762 lt_prog_compiler_pic='-pic' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 8766 *) 8767 lt_prog_compiler_can_build_shared=no 8768 ;; 8769 esac 8770 fi 8771 8772 case $host_os in 8773 # For platforms that do not support PIC, -DPIC is meaningless: 8774 *djgpp*) 8775 lt_prog_compiler_pic= 8776 ;; 8777 *) 8778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8779 ;; 8780 esac 8781 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8783 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8784 if ${lt_cv_prog_compiler_pic+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786 else 8787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8788 fi 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8790 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8791 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8792 8793 # 8794 # Check to make sure the PIC flag actually works. 8795 # 8796 if test -n "$lt_prog_compiler_pic"; then 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8798 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8799 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801 else 8802 lt_cv_prog_compiler_pic_works=no 8803 ac_outfile=conftest.$ac_objext 8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8806 # Insert the option either (1) after the last *FLAGS variable, or 8807 # (2) before a word containing "conftest.", or (3) at the end. 8808 # Note that $ac_compile itself does not contain backslashes and begins 8809 # with a dollar sign (not a hyphen), so the echo should work correctly. 8810 # The option is referenced via a variable to avoid confusing sed. 8811 lt_compile=`echo "$ac_compile" | $SED \ 8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8814 -e 's:$: $lt_compiler_flag:'` 8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8816 (eval "$lt_compile" 2>conftest.err) 8817 ac_status=$? 8818 cat conftest.err >&5 8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8820 if (exit $ac_status) && test -s "$ac_outfile"; then 8821 # The compiler can only warn and ignore the option if not recognized 8822 # So say no if there are warnings other than the usual output. 8823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8826 lt_cv_prog_compiler_pic_works=yes 8827 fi 8828 fi 8829 $RM conftest* 8830 8831 fi 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8833 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8834 8835 if test yes = "$lt_cv_prog_compiler_pic_works"; then 8836 case $lt_prog_compiler_pic in 8837 "" | " "*) ;; 8838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8839 esac 8840 else 8841 lt_prog_compiler_pic= 8842 lt_prog_compiler_can_build_shared=no 8843 fi 8844 8845 fi 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 # 8858 # Check to make sure the static flag actually works. 8859 # 8860 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8862 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8863 if ${lt_cv_prog_compiler_static_works+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865 else 8866 lt_cv_prog_compiler_static_works=no 8867 save_LDFLAGS=$LDFLAGS 8868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8869 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8871 # The linker can only warn and ignore the option if not recognized 8872 # So say no if there are warnings 8873 if test -s conftest.err; then 8874 # Append any errors to the config.log. 8875 cat conftest.err 1>&5 8876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8878 if diff conftest.exp conftest.er2 >/dev/null; then 8879 lt_cv_prog_compiler_static_works=yes 8880 fi 8881 else 8882 lt_cv_prog_compiler_static_works=yes 8883 fi 8884 fi 8885 $RM -r conftest* 8886 LDFLAGS=$save_LDFLAGS 8887 8888 fi 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8890 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8891 8892 if test yes = "$lt_cv_prog_compiler_static_works"; then 8893 : 8894 else 8895 lt_prog_compiler_static= 8896 fi 8897 8898 8899 8900 8901 8902 8903 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8906 if ${lt_cv_prog_compiler_c_o+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908 else 8909 lt_cv_prog_compiler_c_o=no 8910 $RM -r conftest 2>/dev/null 8911 mkdir conftest 8912 cd conftest 8913 mkdir out 8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8915 8916 lt_compiler_flag="-o out/conftest2.$ac_objext" 8917 # Insert the option either (1) after the last *FLAGS variable, or 8918 # (2) before a word containing "conftest.", or (3) at the end. 8919 # Note that $ac_compile itself does not contain backslashes and begins 8920 # with a dollar sign (not a hyphen), so the echo should work correctly. 8921 lt_compile=`echo "$ac_compile" | $SED \ 8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8924 -e 's:$: $lt_compiler_flag:'` 8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8926 (eval "$lt_compile" 2>out/conftest.err) 8927 ac_status=$? 8928 cat out/conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8931 then 8932 # The compiler can only warn and ignore the option if not recognized 8933 # So say no if there are warnings 8934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8937 lt_cv_prog_compiler_c_o=yes 8938 fi 8939 fi 8940 chmod u+w . 2>&5 8941 $RM conftest* 8942 # SGI C++ compiler will create directory out/ii_files/ for 8943 # template instantiation 8944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8945 $RM out/* && rmdir out 8946 cd .. 8947 $RM -r conftest 8948 $RM conftest* 8949 8950 fi 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8953 8954 8955 8956 8957 8958 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8961 if ${lt_cv_prog_compiler_c_o+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963 else 8964 lt_cv_prog_compiler_c_o=no 8965 $RM -r conftest 2>/dev/null 8966 mkdir conftest 8967 cd conftest 8968 mkdir out 8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8970 8971 lt_compiler_flag="-o out/conftest2.$ac_objext" 8972 # Insert the option either (1) after the last *FLAGS variable, or 8973 # (2) before a word containing "conftest.", or (3) at the end. 8974 # Note that $ac_compile itself does not contain backslashes and begins 8975 # with a dollar sign (not a hyphen), so the echo should work correctly. 8976 lt_compile=`echo "$ac_compile" | $SED \ 8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8979 -e 's:$: $lt_compiler_flag:'` 8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8981 (eval "$lt_compile" 2>out/conftest.err) 8982 ac_status=$? 8983 cat out/conftest.err >&5 8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8986 then 8987 # The compiler can only warn and ignore the option if not recognized 8988 # So say no if there are warnings 8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8992 lt_cv_prog_compiler_c_o=yes 8993 fi 8994 fi 8995 chmod u+w . 2>&5 8996 $RM conftest* 8997 # SGI C++ compiler will create directory out/ii_files/ for 8998 # template instantiation 8999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9000 $RM out/* && rmdir out 9001 cd .. 9002 $RM -r conftest 9003 $RM conftest* 9004 9005 fi 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9008 9009 9010 9011 9012 hard_links=nottested 9013 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9014 # do not overwrite the value of need_locks provided by the user 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9016 $as_echo_n "checking if we can lock with hard links... " >&6; } 9017 hard_links=yes 9018 $RM conftest* 9019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9020 touch conftest.a 9021 ln conftest.a conftest.b 2>&5 || hard_links=no 9022 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9024 $as_echo "$hard_links" >&6; } 9025 if test no = "$hard_links"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9027 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9028 need_locks=warn 9029 fi 9030 else 9031 need_locks=no 9032 fi 9033 9034 9035 9036 9037 9038 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9041 9042 runpath_var= 9043 allow_undefined_flag= 9044 always_export_symbols=no 9045 archive_cmds= 9046 archive_expsym_cmds= 9047 compiler_needs_object=no 9048 enable_shared_with_static_runtimes=no 9049 export_dynamic_flag_spec= 9050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9051 hardcode_automatic=no 9052 hardcode_direct=no 9053 hardcode_direct_absolute=no 9054 hardcode_libdir_flag_spec= 9055 hardcode_libdir_separator= 9056 hardcode_minus_L=no 9057 hardcode_shlibpath_var=unsupported 9058 inherit_rpath=no 9059 link_all_deplibs=unknown 9060 module_cmds= 9061 module_expsym_cmds= 9062 old_archive_from_new_cmds= 9063 old_archive_from_expsyms_cmds= 9064 thread_safe_flag_spec= 9065 whole_archive_flag_spec= 9066 # include_expsyms should be a list of space-separated symbols to be *always* 9067 # included in the symbol list 9068 include_expsyms= 9069 # exclude_expsyms can be an extended regexp of symbols to exclude 9070 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9071 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9072 # as well as any symbol that contains 'd'. 9073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9075 # platforms (ab)use it in PIC code, but their linkers get confused if 9076 # the symbol is explicitly referenced. Since portable code cannot 9077 # rely on this symbol name, it's probably fine to never include it in 9078 # preloaded symbol tables. 9079 # Exclude shared library initialization/finalization symbols. 9080 extract_expsyms_cmds= 9081 9082 case $host_os in 9083 cygwin* | mingw* | pw32* | cegcc*) 9084 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9085 # When not using gcc, we currently assume that we are using 9086 # Microsoft Visual C++. 9087 if test yes != "$GCC"; then 9088 with_gnu_ld=no 9089 fi 9090 ;; 9091 interix*) 9092 # we just hope/assume this is gcc and not c89 (= MSVC++) 9093 with_gnu_ld=yes 9094 ;; 9095 openbsd* | bitrig*) 9096 with_gnu_ld=no 9097 ;; 9098 esac 9099 9100 ld_shlibs=yes 9101 9102 # On some targets, GNU ld is compatible enough with the native linker 9103 # that we're better off using the native interface for both. 9104 lt_use_gnu_ld_interface=no 9105 if test yes = "$with_gnu_ld"; then 9106 case $host_os in 9107 aix*) 9108 # The AIX port of GNU ld has always aspired to compatibility 9109 # with the native linker. However, as the warning in the GNU ld 9110 # block says, versions before 2.19.5* couldn't really create working 9111 # shared libraries, regardless of the interface used. 9112 case `$LD -v 2>&1` in 9113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9115 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9116 *) 9117 lt_use_gnu_ld_interface=yes 9118 ;; 9119 esac 9120 ;; 9121 *) 9122 lt_use_gnu_ld_interface=yes 9123 ;; 9124 esac 9125 fi 9126 9127 if test yes = "$lt_use_gnu_ld_interface"; then 9128 # If archive_cmds runs LD, not CC, wlarc should be empty 9129 wlarc='$wl' 9130 9131 # Set some defaults for GNU ld with shared library support. These 9132 # are reset later if shared libraries are not supported. Putting them 9133 # here allows them to be overridden if necessary. 9134 runpath_var=LD_RUN_PATH 9135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9136 export_dynamic_flag_spec='$wl--export-dynamic' 9137 # ancient GNU ld didn't support --whole-archive et. al. 9138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9139 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9140 else 9141 whole_archive_flag_spec= 9142 fi 9143 supports_anon_versioning=no 9144 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9145 *GNU\ gold*) supports_anon_versioning=yes ;; 9146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9149 *\ 2.11.*) ;; # other 2.11 versions 9150 *) supports_anon_versioning=yes ;; 9151 esac 9152 9153 # See if GNU ld supports shared libraries. 9154 case $host_os in 9155 aix[3-9]*) 9156 # On AIX/PPC, the GNU linker is very broken 9157 if test ia64 != "$host_cpu"; then 9158 ld_shlibs=no 9159 cat <<_LT_EOF 1>&2 9160 9161 *** Warning: the GNU linker, at least up to release 2.19, is reported 9162 *** to be unable to reliably create shared libraries on AIX. 9163 *** Therefore, libtool is disabling shared libraries support. If you 9164 *** really care for shared libraries, you may want to install binutils 9165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9166 *** You will then need to restart the configuration process. 9167 9168 _LT_EOF 9169 fi 9170 ;; 9171 9172 amigaos*) 9173 case $host_cpu in 9174 powerpc) 9175 # see comment about AmigaOS4 .so support 9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9177 archive_expsym_cmds='' 9178 ;; 9179 m68k) 9180 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9181 hardcode_libdir_flag_spec='-L$libdir' 9182 hardcode_minus_L=yes 9183 ;; 9184 esac 9185 ;; 9186 9187 beos*) 9188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9189 allow_undefined_flag=unsupported 9190 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9191 # support --undefined. This deserves some investigation. FIXME 9192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9193 else 9194 ld_shlibs=no 9195 fi 9196 ;; 9197 9198 cygwin* | mingw* | pw32* | cegcc*) 9199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9200 # as there is no search path for DLLs. 9201 hardcode_libdir_flag_spec='-L$libdir' 9202 export_dynamic_flag_spec='$wl--export-all-symbols' 9203 allow_undefined_flag=unsupported 9204 always_export_symbols=no 9205 enable_shared_with_static_runtimes=yes 9206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9207 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9208 9209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9211 # If the export-symbols file already is a .def file, use it as 9212 # is; otherwise, prepend EXPORTS... 9213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9214 cp $export_symbols $output_objdir/$soname.def; 9215 else 9216 echo EXPORTS > $output_objdir/$soname.def; 9217 cat $export_symbols >> $output_objdir/$soname.def; 9218 fi~ 9219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9220 else 9221 ld_shlibs=no 9222 fi 9223 ;; 9224 9225 haiku*) 9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9227 link_all_deplibs=yes 9228 ;; 9229 9230 os2*) 9231 hardcode_libdir_flag_spec='-L$libdir' 9232 hardcode_minus_L=yes 9233 allow_undefined_flag=unsupported 9234 shrext_cmds=.dll 9235 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9236 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9237 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9238 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9239 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9241 emximp -o $lib $output_objdir/$libname.def' 9242 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9245 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9246 prefix_cmds="$SED"~ 9247 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9248 prefix_cmds="$prefix_cmds -e 1d"; 9249 fi~ 9250 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9251 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9252 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9253 emximp -o $lib $output_objdir/$libname.def' 9254 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9255 enable_shared_with_static_runtimes=yes 9256 ;; 9257 9258 interix[3-9]*) 9259 hardcode_direct=no 9260 hardcode_shlibpath_var=no 9261 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9262 export_dynamic_flag_spec='$wl-E' 9263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9264 # Instead, shared libraries are loaded at an image base (0x10000000 by 9265 # default) and relocated if they conflict, which is a slow very memory 9266 # consuming and fragmenting process. To avoid this, we pick a random, 9267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9268 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9270 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9271 ;; 9272 9273 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9274 tmp_diet=no 9275 if test linux-dietlibc = "$host_os"; then 9276 case $cc_basename in 9277 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9278 esac 9279 fi 9280 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9281 && test no = "$tmp_diet" 9282 then 9283 tmp_addflag=' $pic_flag' 9284 tmp_sharedflag='-shared' 9285 case $cc_basename,$host_cpu in 9286 pgcc*) # Portland Group C compiler 9287 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9288 tmp_addflag=' $pic_flag' 9289 ;; 9290 pgf77* | pgf90* | pgf95* | pgfortran*) 9291 # Portland Group f77 and f90 compilers 9292 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9293 tmp_addflag=' $pic_flag -Mnomain' ;; 9294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9295 tmp_addflag=' -i_dynamic' ;; 9296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9297 tmp_addflag=' -i_dynamic -nofor_main' ;; 9298 ifc* | ifort*) # Intel Fortran compiler 9299 tmp_addflag=' -nofor_main' ;; 9300 lf95*) # Lahey Fortran 8.1 9301 whole_archive_flag_spec= 9302 tmp_sharedflag='--shared' ;; 9303 nagfor*) # NAGFOR 5.3 9304 tmp_sharedflag='-Wl,-shared' ;; 9305 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9306 tmp_sharedflag='-qmkshrobj' 9307 tmp_addflag= ;; 9308 nvcc*) # Cuda Compiler Driver 2.2 9309 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9310 compiler_needs_object=yes 9311 ;; 9312 esac 9313 case `$CC -V 2>&1 | sed 5q` in 9314 *Sun\ C*) # Sun C 5.9 9315 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9316 compiler_needs_object=yes 9317 tmp_sharedflag='-G' ;; 9318 *Sun\ F*) # Sun Fortran 8.3 9319 tmp_sharedflag='-G' ;; 9320 esac 9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9322 9323 if test yes = "$supports_anon_versioning"; then 9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9326 echo "local: *; };" >> $output_objdir/$libname.ver~ 9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9328 fi 9329 9330 case $cc_basename in 9331 tcc*) 9332 export_dynamic_flag_spec='-rdynamic' 9333 ;; 9334 xlf* | bgf* | bgxlf* | mpixlf*) 9335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9338 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9339 if test yes = "$supports_anon_versioning"; then 9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9342 echo "local: *; };" >> $output_objdir/$libname.ver~ 9343 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9344 fi 9345 ;; 9346 esac 9347 else 9348 ld_shlibs=no 9349 fi 9350 ;; 9351 9352 netbsd*) 9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9355 wlarc= 9356 else 9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9359 fi 9360 ;; 9361 9362 solaris*) 9363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9364 ld_shlibs=no 9365 cat <<_LT_EOF 1>&2 9366 9367 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9368 *** create shared libraries on Solaris systems. Therefore, libtool 9369 *** is disabling shared libraries support. We urge you to upgrade GNU 9370 *** binutils to release 2.9.1 or newer. Another option is to modify 9371 *** your PATH or compiler configuration so that the native linker is 9372 *** used, and then restart. 9373 9374 _LT_EOF 9375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9377 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9378 else 9379 ld_shlibs=no 9380 fi 9381 ;; 9382 9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9384 case `$LD -v 2>&1` in 9385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9386 ld_shlibs=no 9387 cat <<_LT_EOF 1>&2 9388 9389 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9390 *** reliably create shared libraries on SCO systems. Therefore, libtool 9391 *** is disabling shared libraries support. We urge you to upgrade GNU 9392 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9393 *** your PATH or compiler configuration so that the native linker is 9394 *** used, and then restart. 9395 9396 _LT_EOF 9397 ;; 9398 *) 9399 # For security reasons, it is highly recommended that you always 9400 # use absolute paths for naming shared libraries, and exclude the 9401 # DT_RUNPATH tag from executables and libraries. But doing so 9402 # requires that you compile everything twice, which is a pain. 9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 esac 9412 ;; 9413 9414 sunos4*) 9415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9416 wlarc= 9417 hardcode_direct=yes 9418 hardcode_shlibpath_var=no 9419 ;; 9420 9421 *) 9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9423 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9424 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9425 else 9426 ld_shlibs=no 9427 fi 9428 ;; 9429 esac 9430 9431 if test no = "$ld_shlibs"; then 9432 runpath_var= 9433 hardcode_libdir_flag_spec= 9434 export_dynamic_flag_spec= 9435 whole_archive_flag_spec= 9436 fi 9437 else 9438 # PORTME fill in a description of your system's linker (not GNU ld) 9439 case $host_os in 9440 aix3*) 9441 allow_undefined_flag=unsupported 9442 always_export_symbols=yes 9443 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9444 # Note: this linker hardcodes the directories in LIBPATH if there 9445 # are no directories specified by -L. 9446 hardcode_minus_L=yes 9447 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9448 # Neither direct hardcoding nor static linking is supported with a 9449 # broken collect2. 9450 hardcode_direct=unsupported 9451 fi 9452 ;; 9453 9454 aix[4-9]*) 9455 if test ia64 = "$host_cpu"; then 9456 # On IA64, the linker does run time linking by default, so we don't 9457 # have to do anything special. 9458 aix_use_runtimelinking=no 9459 exp_sym_flag='-Bexport' 9460 no_entry_flag= 9461 else 9462 # If we're using GNU nm, then we don't want the "-C" option. 9463 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9464 # Without the "-l" option, or with the "-B" option, AIX nm treats 9465 # weak defined symbols like other global defined symbols, whereas 9466 # GNU nm marks them as "W". 9467 # While the 'weak' keyword is ignored in the Export File, we need 9468 # it in the Import File for the 'aix-soname' feature, so we have 9469 # to replace the "-B" option with "-P" for AIX nm. 9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9472 else 9473 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9474 fi 9475 aix_use_runtimelinking=no 9476 9477 # Test if we are trying to use run time linking or normal 9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9479 # have runtime linking enabled, and use it for executables. 9480 # For shared libraries, we enable/disable runtime linking 9481 # depending on the kind of the shared library created - 9482 # when "with_aix_soname,aix_use_runtimelinking" is: 9483 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9484 # "aix,yes" lib.so shared, rtl:yes, for executables 9485 # lib.a static archive 9486 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9487 # lib.a(lib.so.V) shared, rtl:no, for executables 9488 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9489 # lib.a(lib.so.V) shared, rtl:no 9490 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9491 # lib.a static archive 9492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9493 for ld_flag in $LDFLAGS; do 9494 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9495 aix_use_runtimelinking=yes 9496 break 9497 fi 9498 done 9499 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9500 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9501 # so we don't have lib.a shared libs to link our executables. 9502 # We have to force runtime linking in this case. 9503 aix_use_runtimelinking=yes 9504 LDFLAGS="$LDFLAGS -Wl,-brtl" 9505 fi 9506 ;; 9507 esac 9508 9509 exp_sym_flag='-bexport' 9510 no_entry_flag='-bnoentry' 9511 fi 9512 9513 # When large executables or shared objects are built, AIX ld can 9514 # have problems creating the table of contents. If linking a library 9515 # or program results in "error TOC overflow" add -mminimal-toc to 9516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9518 9519 archive_cmds='' 9520 hardcode_direct=yes 9521 hardcode_direct_absolute=yes 9522 hardcode_libdir_separator=':' 9523 link_all_deplibs=yes 9524 file_list_spec='$wl-f,' 9525 case $with_aix_soname,$aix_use_runtimelinking in 9526 aix,*) ;; # traditional, no import file 9527 svr4,* | *,yes) # use import file 9528 # The Import File defines what to hardcode. 9529 hardcode_direct=no 9530 hardcode_direct_absolute=no 9531 ;; 9532 esac 9533 9534 if test yes = "$GCC"; then 9535 case $host_os in aix4.[012]|aix4.[012].*) 9536 # We only want to do this on AIX 4.2 and lower, the check 9537 # below for broken collect2 doesn't work under 4.3+ 9538 collect2name=`$CC -print-prog-name=collect2` 9539 if test -f "$collect2name" && 9540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9541 then 9542 # We have reworked collect2 9543 : 9544 else 9545 # We have old collect2 9546 hardcode_direct=unsupported 9547 # It fails to find uninstalled libraries when the uninstalled 9548 # path is not listed in the libpath. Setting hardcode_minus_L 9549 # to unsupported forces relinking 9550 hardcode_minus_L=yes 9551 hardcode_libdir_flag_spec='-L$libdir' 9552 hardcode_libdir_separator= 9553 fi 9554 ;; 9555 esac 9556 shared_flag='-shared' 9557 if test yes = "$aix_use_runtimelinking"; then 9558 shared_flag="$shared_flag "'$wl-G' 9559 fi 9560 # Need to ensure runtime linking is disabled for the traditional 9561 # shared library, or the linker may eventually find shared libraries 9562 # /with/ Import File - we do not want to mix them. 9563 shared_flag_aix='-shared' 9564 shared_flag_svr4='-shared $wl-G' 9565 else 9566 # not using gcc 9567 if test ia64 = "$host_cpu"; then 9568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9569 # chokes on -Wl,-G. The following line is correct: 9570 shared_flag='-G' 9571 else 9572 if test yes = "$aix_use_runtimelinking"; then 9573 shared_flag='$wl-G' 9574 else 9575 shared_flag='$wl-bM:SRE' 9576 fi 9577 shared_flag_aix='$wl-bM:SRE' 9578 shared_flag_svr4='$wl-G' 9579 fi 9580 fi 9581 9582 export_dynamic_flag_spec='$wl-bexpall' 9583 # It seems that -bexpall does not export symbols beginning with 9584 # underscore (_), so it is better to generate a list of symbols to export. 9585 always_export_symbols=yes 9586 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9587 # Warning - without using the other runtime loading flags (-brtl), 9588 # -berok will link without error, but may produce a broken library. 9589 allow_undefined_flag='-berok' 9590 # Determine the default libpath from the value encoded in an 9591 # empty executable. 9592 if test set = "${lt_cv_aix_libpath+set}"; then 9593 aix_libpath=$lt_cv_aix_libpath 9594 else 9595 if ${lt_cv_aix_libpath_+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597 else 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599 /* end confdefs.h. */ 9600 9601 int 9602 main () 9603 { 9604 9605 ; 9606 return 0; 9607 } 9608 _ACEOF 9609 if ac_fn_c_try_link "$LINENO"; then : 9610 9611 lt_aix_libpath_sed=' 9612 /Import File Strings/,/^$/ { 9613 /^0/ { 9614 s/^0 *\([^ ]*\) *$/\1/ 9615 p 9616 } 9617 }' 9618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9619 # Check for a 64-bit object if we didn't find anything. 9620 if test -z "$lt_cv_aix_libpath_"; then 9621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9622 fi 9623 fi 9624 rm -f core conftest.err conftest.$ac_objext \ 9625 conftest$ac_exeext conftest.$ac_ext 9626 if test -z "$lt_cv_aix_libpath_"; then 9627 lt_cv_aix_libpath_=/usr/lib:/lib 9628 fi 9629 9630 fi 9631 9632 aix_libpath=$lt_cv_aix_libpath_ 9633 fi 9634 9635 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9636 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9637 else 9638 if test ia64 = "$host_cpu"; then 9639 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9640 allow_undefined_flag="-z nodefs" 9641 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9642 else 9643 # Determine the default libpath from the value encoded in an 9644 # empty executable. 9645 if test set = "${lt_cv_aix_libpath+set}"; then 9646 aix_libpath=$lt_cv_aix_libpath 9647 else 9648 if ${lt_cv_aix_libpath_+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650 else 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652 /* end confdefs.h. */ 9653 9654 int 9655 main () 9656 { 9657 9658 ; 9659 return 0; 9660 } 9661 _ACEOF 9662 if ac_fn_c_try_link "$LINENO"; then : 9663 9664 lt_aix_libpath_sed=' 9665 /Import File Strings/,/^$/ { 9666 /^0/ { 9667 s/^0 *\([^ ]*\) *$/\1/ 9668 p 9669 } 9670 }' 9671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9672 # Check for a 64-bit object if we didn't find anything. 9673 if test -z "$lt_cv_aix_libpath_"; then 9674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9675 fi 9676 fi 9677 rm -f core conftest.err conftest.$ac_objext \ 9678 conftest$ac_exeext conftest.$ac_ext 9679 if test -z "$lt_cv_aix_libpath_"; then 9680 lt_cv_aix_libpath_=/usr/lib:/lib 9681 fi 9682 9683 fi 9684 9685 aix_libpath=$lt_cv_aix_libpath_ 9686 fi 9687 9688 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9689 # Warning - without using the other run time loading flags, 9690 # -berok will link without error, but may produce a broken library. 9691 no_undefined_flag=' $wl-bernotok' 9692 allow_undefined_flag=' $wl-berok' 9693 if test yes = "$with_gnu_ld"; then 9694 # We only use this code for GNU lds that support --whole-archive. 9695 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9696 else 9697 # Exported symbols can be pulled into shared objects from archives 9698 whole_archive_flag_spec='$convenience' 9699 fi 9700 archive_cmds_need_lc=yes 9701 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9702 # -brtl affects multiple linker settings, -berok does not and is overridden later 9703 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9704 if test svr4 != "$with_aix_soname"; then 9705 # This is similar to how AIX traditionally builds its shared libraries. 9706 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9707 fi 9708 if test aix != "$with_aix_soname"; then 9709 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9710 else 9711 # used by -dlpreopen to get the symbols 9712 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9713 fi 9714 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9715 fi 9716 fi 9717 ;; 9718 9719 amigaos*) 9720 case $host_cpu in 9721 powerpc) 9722 # see comment about AmigaOS4 .so support 9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9724 archive_expsym_cmds='' 9725 ;; 9726 m68k) 9727 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9728 hardcode_libdir_flag_spec='-L$libdir' 9729 hardcode_minus_L=yes 9730 ;; 9731 esac 9732 ;; 9733 9734 bsdi[45]*) 9735 export_dynamic_flag_spec=-rdynamic 9736 ;; 9737 9738 cygwin* | mingw* | pw32* | cegcc*) 9739 # When not using gcc, we currently assume that we are using 9740 # Microsoft Visual C++. 9741 # hardcode_libdir_flag_spec is actually meaningless, as there is 9742 # no search path for DLLs. 9743 case $cc_basename in 9744 cl*) 9745 # Native MSVC 9746 hardcode_libdir_flag_spec=' ' 9747 allow_undefined_flag=unsupported 9748 always_export_symbols=yes 9749 file_list_spec='@' 9750 # Tell ltmain to make .lib files, not .a files. 9751 libext=lib 9752 # Tell ltmain to make .dll files, not .so files. 9753 shrext_cmds=.dll 9754 # FIXME: Setting linknames here is a bad hack. 9755 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9757 cp "$export_symbols" "$output_objdir/$soname.def"; 9758 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9759 else 9760 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9761 fi~ 9762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9763 linknames=' 9764 # The linker will not automatically build a static lib if we build a DLL. 9765 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9766 enable_shared_with_static_runtimes=yes 9767 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9769 # Don't use ranlib 9770 old_postinstall_cmds='chmod 644 $oldlib' 9771 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9772 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9773 case $lt_outputfile in 9774 *.exe|*.EXE) ;; 9775 *) 9776 lt_outputfile=$lt_outputfile.exe 9777 lt_tool_outputfile=$lt_tool_outputfile.exe 9778 ;; 9779 esac~ 9780 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9781 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9782 $RM "$lt_outputfile.manifest"; 9783 fi' 9784 ;; 9785 *) 9786 # Assume MSVC wrapper 9787 hardcode_libdir_flag_spec=' ' 9788 allow_undefined_flag=unsupported 9789 # Tell ltmain to make .lib files, not .a files. 9790 libext=lib 9791 # Tell ltmain to make .dll files, not .so files. 9792 shrext_cmds=.dll 9793 # FIXME: Setting linknames here is a bad hack. 9794 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9795 # The linker will automatically build a .lib file if we build a DLL. 9796 old_archive_from_new_cmds='true' 9797 # FIXME: Should let the user specify the lib program. 9798 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9799 enable_shared_with_static_runtimes=yes 9800 ;; 9801 esac 9802 ;; 9803 9804 darwin* | rhapsody*) 9805 9806 9807 archive_cmds_need_lc=no 9808 hardcode_direct=no 9809 hardcode_automatic=yes 9810 hardcode_shlibpath_var=unsupported 9811 if test yes = "$lt_cv_ld_force_load"; then 9812 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9813 9814 else 9815 whole_archive_flag_spec='' 9816 fi 9817 link_all_deplibs=yes 9818 allow_undefined_flag=$_lt_dar_allow_undefined 9819 case $cc_basename in 9820 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9821 *) _lt_dar_can_shared=$GCC ;; 9822 esac 9823 if test yes = "$_lt_dar_can_shared"; then 9824 output_verbose_link_cmd=func_echo_all 9825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9827 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 9828 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 9829 9830 else 9831 ld_shlibs=no 9832 fi 9833 9834 ;; 9835 9836 dgux*) 9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9838 hardcode_libdir_flag_spec='-L$libdir' 9839 hardcode_shlibpath_var=no 9840 ;; 9841 9842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9843 # support. Future versions do this automatically, but an explicit c++rt0.o 9844 # does not break anything, and helps significantly (at the cost of a little 9845 # extra space). 9846 freebsd2.2*) 9847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9848 hardcode_libdir_flag_spec='-R$libdir' 9849 hardcode_direct=yes 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9854 freebsd2.*) 9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9856 hardcode_direct=yes 9857 hardcode_minus_L=yes 9858 hardcode_shlibpath_var=no 9859 ;; 9860 9861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9862 freebsd* | dragonfly*) 9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9864 hardcode_libdir_flag_spec='-R$libdir' 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 hpux9*) 9870 if test yes = "$GCC"; then 9871 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9872 else 9873 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9874 fi 9875 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9876 hardcode_libdir_separator=: 9877 hardcode_direct=yes 9878 9879 # hardcode_minus_L: Not really in the search PATH, 9880 # but as the default location of the library. 9881 hardcode_minus_L=yes 9882 export_dynamic_flag_spec='$wl-E' 9883 ;; 9884 9885 hpux10*) 9886 if test yes,no = "$GCC,$with_gnu_ld"; then 9887 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9888 else 9889 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9890 fi 9891 if test no = "$with_gnu_ld"; then 9892 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9893 hardcode_libdir_separator=: 9894 hardcode_direct=yes 9895 hardcode_direct_absolute=yes 9896 export_dynamic_flag_spec='$wl-E' 9897 # hardcode_minus_L: Not really in the search PATH, 9898 # but as the default location of the library. 9899 hardcode_minus_L=yes 9900 fi 9901 ;; 9902 9903 hpux11*) 9904 if test yes,no = "$GCC,$with_gnu_ld"; then 9905 case $host_cpu in 9906 hppa*64*) 9907 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9908 ;; 9909 ia64*) 9910 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9911 ;; 9912 *) 9913 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9914 ;; 9915 esac 9916 else 9917 case $host_cpu in 9918 hppa*64*) 9919 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9920 ;; 9921 ia64*) 9922 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9923 ;; 9924 *) 9925 9926 # Older versions of the 11.00 compiler do not understand -b yet 9927 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9929 $as_echo_n "checking if $CC understands -b... " >&6; } 9930 if ${lt_cv_prog_compiler__b+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932 else 9933 lt_cv_prog_compiler__b=no 9934 save_LDFLAGS=$LDFLAGS 9935 LDFLAGS="$LDFLAGS -b" 9936 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9938 # The linker can only warn and ignore the option if not recognized 9939 # So say no if there are warnings 9940 if test -s conftest.err; then 9941 # Append any errors to the config.log. 9942 cat conftest.err 1>&5 9943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9945 if diff conftest.exp conftest.er2 >/dev/null; then 9946 lt_cv_prog_compiler__b=yes 9947 fi 9948 else 9949 lt_cv_prog_compiler__b=yes 9950 fi 9951 fi 9952 $RM -r conftest* 9953 LDFLAGS=$save_LDFLAGS 9954 9955 fi 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9957 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9958 9959 if test yes = "$lt_cv_prog_compiler__b"; then 9960 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9961 else 9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9963 fi 9964 9965 ;; 9966 esac 9967 fi 9968 if test no = "$with_gnu_ld"; then 9969 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9970 hardcode_libdir_separator=: 9971 9972 case $host_cpu in 9973 hppa*64*|ia64*) 9974 hardcode_direct=no 9975 hardcode_shlibpath_var=no 9976 ;; 9977 *) 9978 hardcode_direct=yes 9979 hardcode_direct_absolute=yes 9980 export_dynamic_flag_spec='$wl-E' 9981 9982 # hardcode_minus_L: Not really in the search PATH, 9983 # but as the default location of the library. 9984 hardcode_minus_L=yes 9985 ;; 9986 esac 9987 fi 9988 ;; 9989 9990 irix5* | irix6* | nonstopux*) 9991 if test yes = "$GCC"; then 9992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9993 # Try to use the -exported_symbol ld option, if it does not 9994 # work, assume that -exports_file does not work either and 9995 # implicitly export all symbols. 9996 # This should be the same for all languages, so no per-tag cache variable. 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9998 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9999 if ${lt_cv_irix_exported_symbol+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001 else 10002 save_LDFLAGS=$LDFLAGS 10003 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005 /* end confdefs.h. */ 10006 int foo (void) { return 0; } 10007 _ACEOF 10008 if ac_fn_c_try_link "$LINENO"; then : 10009 lt_cv_irix_exported_symbol=yes 10010 else 10011 lt_cv_irix_exported_symbol=no 10012 fi 10013 rm -f core conftest.err conftest.$ac_objext \ 10014 conftest$ac_exeext conftest.$ac_ext 10015 LDFLAGS=$save_LDFLAGS 10016 fi 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10018 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10019 if test yes = "$lt_cv_irix_exported_symbol"; then 10020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10021 fi 10022 else 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10025 fi 10026 archive_cmds_need_lc='no' 10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10028 hardcode_libdir_separator=: 10029 inherit_rpath=yes 10030 link_all_deplibs=yes 10031 ;; 10032 10033 linux*) 10034 case $cc_basename in 10035 tcc*) 10036 # Fabrice Bellard et al's Tiny C Compiler 10037 ld_shlibs=yes 10038 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10039 ;; 10040 esac 10041 ;; 10042 10043 netbsd*) 10044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10046 else 10047 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10048 fi 10049 hardcode_libdir_flag_spec='-R$libdir' 10050 hardcode_direct=yes 10051 hardcode_shlibpath_var=no 10052 ;; 10053 10054 newsos6) 10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10056 hardcode_direct=yes 10057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10058 hardcode_libdir_separator=: 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 *nto* | *qnx*) 10063 ;; 10064 10065 openbsd* | bitrig*) 10066 if test -f /usr/libexec/ld.so; then 10067 hardcode_direct=yes 10068 hardcode_shlibpath_var=no 10069 hardcode_direct_absolute=yes 10070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10072 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10074 export_dynamic_flag_spec='$wl-E' 10075 else 10076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10078 fi 10079 else 10080 ld_shlibs=no 10081 fi 10082 ;; 10083 10084 os2*) 10085 hardcode_libdir_flag_spec='-L$libdir' 10086 hardcode_minus_L=yes 10087 allow_undefined_flag=unsupported 10088 shrext_cmds=.dll 10089 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10090 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10091 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10092 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10093 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10094 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10095 emximp -o $lib $output_objdir/$libname.def' 10096 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10097 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10098 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10099 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10100 prefix_cmds="$SED"~ 10101 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10102 prefix_cmds="$prefix_cmds -e 1d"; 10103 fi~ 10104 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10105 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10106 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10107 emximp -o $lib $output_objdir/$libname.def' 10108 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10109 enable_shared_with_static_runtimes=yes 10110 ;; 10111 10112 osf3*) 10113 if test yes = "$GCC"; then 10114 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10115 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10116 else 10117 allow_undefined_flag=' -expect_unresolved \*' 10118 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10119 fi 10120 archive_cmds_need_lc='no' 10121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10122 hardcode_libdir_separator=: 10123 ;; 10124 10125 osf4* | osf5*) # as osf3* with the addition of -msym flag 10126 if test yes = "$GCC"; then 10127 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10128 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10130 else 10131 allow_undefined_flag=' -expect_unresolved \*' 10132 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10133 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10134 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10135 10136 # Both c and cxx compiler support -rpath directly 10137 hardcode_libdir_flag_spec='-rpath $libdir' 10138 fi 10139 archive_cmds_need_lc='no' 10140 hardcode_libdir_separator=: 10141 ;; 10142 10143 solaris*) 10144 no_undefined_flag=' -z defs' 10145 if test yes = "$GCC"; then 10146 wlarc='$wl' 10147 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10149 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10150 else 10151 case `$CC -V 2>&1` in 10152 *"Compilers 5.0"*) 10153 wlarc='' 10154 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10156 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10157 ;; 10158 *) 10159 wlarc='$wl' 10160 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10162 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10163 ;; 10164 esac 10165 fi 10166 hardcode_libdir_flag_spec='-R$libdir' 10167 hardcode_shlibpath_var=no 10168 case $host_os in 10169 solaris2.[0-5] | solaris2.[0-5].*) ;; 10170 *) 10171 # The compiler driver will combine and reorder linker options, 10172 # but understands '-z linker_flag'. GCC discards it without '$wl', 10173 # but is careful enough not to reorder. 10174 # Supported since Solaris 2.6 (maybe 2.5.1?) 10175 if test yes = "$GCC"; then 10176 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10177 else 10178 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10179 fi 10180 ;; 10181 esac 10182 link_all_deplibs=yes 10183 ;; 10184 10185 sunos4*) 10186 if test sequent = "$host_vendor"; then 10187 # Use $CC to link under sequent, because it throws in some extra .o 10188 # files that make .init and .fini sections work. 10189 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10190 else 10191 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10192 fi 10193 hardcode_libdir_flag_spec='-L$libdir' 10194 hardcode_direct=yes 10195 hardcode_minus_L=yes 10196 hardcode_shlibpath_var=no 10197 ;; 10198 10199 sysv4) 10200 case $host_vendor in 10201 sni) 10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10203 hardcode_direct=yes # is this really true??? 10204 ;; 10205 siemens) 10206 ## LD is ld it makes a PLAMLIB 10207 ## CC just makes a GrossModule. 10208 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10209 reload_cmds='$CC -r -o $output$reload_objs' 10210 hardcode_direct=no 10211 ;; 10212 motorola) 10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10214 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10215 ;; 10216 esac 10217 runpath_var='LD_RUN_PATH' 10218 hardcode_shlibpath_var=no 10219 ;; 10220 10221 sysv4.3*) 10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10223 hardcode_shlibpath_var=no 10224 export_dynamic_flag_spec='-Bexport' 10225 ;; 10226 10227 sysv4*MP*) 10228 if test -d /usr/nec; then 10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10230 hardcode_shlibpath_var=no 10231 runpath_var=LD_RUN_PATH 10232 hardcode_runpath_var=yes 10233 ld_shlibs=yes 10234 fi 10235 ;; 10236 10237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10238 no_undefined_flag='$wl-z,text' 10239 archive_cmds_need_lc=no 10240 hardcode_shlibpath_var=no 10241 runpath_var='LD_RUN_PATH' 10242 10243 if test yes = "$GCC"; then 10244 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10245 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10246 else 10247 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10248 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10249 fi 10250 ;; 10251 10252 sysv5* | sco3.2v5* | sco5v6*) 10253 # Note: We CANNOT use -z defs as we might desire, because we do not 10254 # link with -lc, and that would cause any symbols used from libc to 10255 # always be unresolved, which means just about no library would 10256 # ever link correctly. If we're not using GNU ld we use -z text 10257 # though, which does catch some bad symbols but isn't as heavy-handed 10258 # as -z defs. 10259 no_undefined_flag='$wl-z,text' 10260 allow_undefined_flag='$wl-z,nodefs' 10261 archive_cmds_need_lc=no 10262 hardcode_shlibpath_var=no 10263 hardcode_libdir_flag_spec='$wl-R,$libdir' 10264 hardcode_libdir_separator=':' 10265 link_all_deplibs=yes 10266 export_dynamic_flag_spec='$wl-Bexport' 10267 runpath_var='LD_RUN_PATH' 10268 10269 if test yes = "$GCC"; then 10270 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10271 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10272 else 10273 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10274 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 fi 10276 ;; 10277 10278 uts4*) 10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10280 hardcode_libdir_flag_spec='-L$libdir' 10281 hardcode_shlibpath_var=no 10282 ;; 10283 10284 *) 10285 ld_shlibs=no 10286 ;; 10287 esac 10288 10289 if test sni = "$host_vendor"; then 10290 case $host in 10291 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10292 export_dynamic_flag_spec='$wl-Blargedynsym' 10293 ;; 10294 esac 10295 fi 10296 fi 10297 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10299 $as_echo "$ld_shlibs" >&6; } 10300 test no = "$ld_shlibs" && can_build_shared=no 10301 10302 with_gnu_ld=$with_gnu_ld 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 # 10319 # Do we need to explicitly link libc? 10320 # 10321 case "x$archive_cmds_need_lc" in 10322 x|xyes) 10323 # Assume -lc should be added 10324 archive_cmds_need_lc=yes 10325 10326 if test yes,yes = "$GCC,$enable_shared"; then 10327 case $archive_cmds in 10328 *'~'*) 10329 # FIXME: we may have to deal with multi-command sequences. 10330 ;; 10331 '$CC '*) 10332 # Test whether the compiler implicitly links with -lc since on some 10333 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10334 # to ld, don't add -lc before -lgcc. 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10337 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339 else 10340 $RM conftest* 10341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10342 10343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10344 (eval $ac_compile) 2>&5 10345 ac_status=$? 10346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10347 test $ac_status = 0; } 2>conftest.err; then 10348 soname=conftest 10349 lib=conftest 10350 libobjs=conftest.$ac_objext 10351 deplibs= 10352 wl=$lt_prog_compiler_wl 10353 pic_flag=$lt_prog_compiler_pic 10354 compiler_flags=-v 10355 linker_flags=-v 10356 verstring= 10357 output_objdir=. 10358 libname=conftest 10359 lt_save_allow_undefined_flag=$allow_undefined_flag 10360 allow_undefined_flag= 10361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10362 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10363 ac_status=$? 10364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10365 test $ac_status = 0; } 10366 then 10367 lt_cv_archive_cmds_need_lc=no 10368 else 10369 lt_cv_archive_cmds_need_lc=yes 10370 fi 10371 allow_undefined_flag=$lt_save_allow_undefined_flag 10372 else 10373 cat conftest.err 1>&5 10374 fi 10375 $RM conftest* 10376 10377 fi 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10379 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10380 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10381 ;; 10382 esac 10383 fi 10384 ;; 10385 esac 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10539 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10540 10541 if test yes = "$GCC"; then 10542 case $host_os in 10543 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10544 *) lt_awk_arg='/^libraries:/' ;; 10545 esac 10546 case $host_os in 10547 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10548 *) lt_sed_strip_eq='s|=/|/|g' ;; 10549 esac 10550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10551 case $lt_search_path_spec in 10552 *\;*) 10553 # if the path contains ";" then we assume it to be the separator 10554 # otherwise default to the standard path separator (i.e. ":") - it is 10555 # assumed that no part of a normal pathname contains ";" but that should 10556 # okay in the real world where ";" in dirpaths is itself problematic. 10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10558 ;; 10559 *) 10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10561 ;; 10562 esac 10563 # Ok, now we have the path, separated by spaces, we can step through it 10564 # and add multilib dir if necessary... 10565 lt_tmp_lt_search_path_spec= 10566 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10567 # ...but if some path component already ends with the multilib dir we assume 10568 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10569 case "$lt_multi_os_dir; $lt_search_path_spec " in 10570 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10571 lt_multi_os_dir= 10572 ;; 10573 esac 10574 for lt_sys_path in $lt_search_path_spec; do 10575 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10577 elif test -n "$lt_multi_os_dir"; then 10578 test -d "$lt_sys_path" && \ 10579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10580 fi 10581 done 10582 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10583 BEGIN {RS = " "; FS = "/|\n";} { 10584 lt_foo = ""; 10585 lt_count = 0; 10586 for (lt_i = NF; lt_i > 0; lt_i--) { 10587 if ($lt_i != "" && $lt_i != ".") { 10588 if ($lt_i == "..") { 10589 lt_count++; 10590 } else { 10591 if (lt_count == 0) { 10592 lt_foo = "/" $lt_i lt_foo; 10593 } else { 10594 lt_count--; 10595 } 10596 } 10597 } 10598 } 10599 if (lt_foo != "") { lt_freq[lt_foo]++; } 10600 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10601 }'` 10602 # AWK program above erroneously prepends '/' to C:/dos/paths 10603 # for these hosts. 10604 case $host_os in 10605 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10606 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10607 esac 10608 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10609 else 10610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10611 fi 10612 library_names_spec= 10613 libname_spec='lib$name' 10614 soname_spec= 10615 shrext_cmds=.so 10616 postinstall_cmds= 10617 postuninstall_cmds= 10618 finish_cmds= 10619 finish_eval= 10620 shlibpath_var= 10621 shlibpath_overrides_runpath=unknown 10622 version_type=none 10623 dynamic_linker="$host_os ld.so" 10624 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10625 need_lib_prefix=unknown 10626 hardcode_into_libs=no 10627 10628 # when you set need_version to no, make sure it does not cause -set_version 10629 # flags to be left without arguments 10630 need_version=unknown 10631 10632 10633 10634 case $host_os in 10635 aix3*) 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10638 shlibpath_var=LIBPATH 10639 10640 # AIX 3 has no versioning support, so we append a major version to the name. 10641 soname_spec='$libname$release$shared_ext$major' 10642 ;; 10643 10644 aix[4-9]*) 10645 version_type=linux # correct to gnu/linux during the next big refactor 10646 need_lib_prefix=no 10647 need_version=no 10648 hardcode_into_libs=yes 10649 if test ia64 = "$host_cpu"; then 10650 # AIX 5 supports IA64 10651 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10652 shlibpath_var=LD_LIBRARY_PATH 10653 else 10654 # With GCC up to 2.95.x, collect2 would create an import file 10655 # for dependence libraries. The import file would start with 10656 # the line '#! .'. This would cause the generated library to 10657 # depend on '.', always an invalid library. This was fixed in 10658 # development snapshots of GCC prior to 3.0. 10659 case $host_os in 10660 aix4 | aix4.[01] | aix4.[01].*) 10661 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10662 echo ' yes ' 10663 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10664 : 10665 else 10666 can_build_shared=no 10667 fi 10668 ;; 10669 esac 10670 # Using Import Files as archive members, it is possible to support 10671 # filename-based versioning of shared library archives on AIX. While 10672 # this would work for both with and without runtime linking, it will 10673 # prevent static linking of such archives. So we do filename-based 10674 # shared library versioning with .so extension only, which is used 10675 # when both runtime linking and shared linking is enabled. 10676 # Unfortunately, runtime linking may impact performance, so we do 10677 # not want this to be the default eventually. Also, we use the 10678 # versioned .so libs for executables only if there is the -brtl 10679 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10680 # To allow for filename-based versioning support, we need to create 10681 # libNAME.so.V as an archive file, containing: 10682 # *) an Import File, referring to the versioned filename of the 10683 # archive as well as the shared archive member, telling the 10684 # bitwidth (32 or 64) of that shared object, and providing the 10685 # list of exported symbols of that shared object, eventually 10686 # decorated with the 'weak' keyword 10687 # *) the shared object with the F_LOADONLY flag set, to really avoid 10688 # it being seen by the linker. 10689 # At run time we better use the real file rather than another symlink, 10690 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10691 10692 case $with_aix_soname,$aix_use_runtimelinking in 10693 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10694 # soname into executable. Probably we can add versioning support to 10695 # collect2, so additional links can be useful in future. 10696 aix,yes) # traditional libtool 10697 dynamic_linker='AIX unversionable lib.so' 10698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10699 # instead of lib<name>.a to let people know that these are not 10700 # typical AIX shared libraries. 10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10702 ;; 10703 aix,no) # traditional AIX only 10704 dynamic_linker='AIX lib.a(lib.so.V)' 10705 # We preserve .a as extension for shared libraries through AIX4.2 10706 # and later when we are not doing run time linking. 10707 library_names_spec='$libname$release.a $libname.a' 10708 soname_spec='$libname$release$shared_ext$major' 10709 ;; 10710 svr4,*) # full svr4 only 10711 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10712 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10713 # We do not specify a path in Import Files, so LIBPATH fires. 10714 shlibpath_overrides_runpath=yes 10715 ;; 10716 *,yes) # both, prefer svr4 10717 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10718 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10719 # unpreferred sharedlib libNAME.a needs extra handling 10720 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10721 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10722 # We do not specify a path in Import Files, so LIBPATH fires. 10723 shlibpath_overrides_runpath=yes 10724 ;; 10725 *,no) # both, prefer aix 10726 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10727 library_names_spec='$libname$release.a $libname.a' 10728 soname_spec='$libname$release$shared_ext$major' 10729 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10730 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10731 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10732 ;; 10733 esac 10734 shlibpath_var=LIBPATH 10735 fi 10736 ;; 10737 10738 amigaos*) 10739 case $host_cpu in 10740 powerpc) 10741 # Since July 2007 AmigaOS4 officially supports .so libraries. 10742 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10744 ;; 10745 m68k) 10746 library_names_spec='$libname.ixlibrary $libname.a' 10747 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10748 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10749 ;; 10750 esac 10751 ;; 10752 10753 beos*) 10754 library_names_spec='$libname$shared_ext' 10755 dynamic_linker="$host_os ld.so" 10756 shlibpath_var=LIBRARY_PATH 10757 ;; 10758 10759 bsdi[45]*) 10760 version_type=linux # correct to gnu/linux during the next big refactor 10761 need_version=no 10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10763 soname_spec='$libname$release$shared_ext$major' 10764 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10767 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10768 # the default ld.so.conf also contains /usr/contrib/lib and 10769 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10770 # libtool to hard-code these into programs 10771 ;; 10772 10773 cygwin* | mingw* | pw32* | cegcc*) 10774 version_type=windows 10775 shrext_cmds=.dll 10776 need_version=no 10777 need_lib_prefix=no 10778 10779 case $GCC,$cc_basename in 10780 yes,*) 10781 # gcc 10782 library_names_spec='$libname.dll.a' 10783 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10784 postinstall_cmds='base_file=`basename \$file`~ 10785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10786 dldir=$destdir/`dirname \$dlpath`~ 10787 test -d \$dldir || mkdir -p \$dldir~ 10788 $install_prog $dir/$dlname \$dldir/$dlname~ 10789 chmod a+x \$dldir/$dlname~ 10790 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10791 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10792 fi' 10793 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10794 dlpath=$dir/\$dldll~ 10795 $RM \$dlpath' 10796 shlibpath_overrides_runpath=yes 10797 10798 case $host_os in 10799 cygwin*) 10800 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10801 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10802 10803 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10804 ;; 10805 mingw* | cegcc*) 10806 # MinGW DLLs use traditional 'lib' prefix 10807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10808 ;; 10809 pw32*) 10810 # pw32 DLLs use 'pw' prefix rather than 'lib' 10811 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10812 ;; 10813 esac 10814 dynamic_linker='Win32 ld.exe' 10815 ;; 10816 10817 *,cl*) 10818 # Native MSVC 10819 libname_spec='$name' 10820 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10821 library_names_spec='$libname.dll.lib' 10822 10823 case $build_os in 10824 mingw*) 10825 sys_lib_search_path_spec= 10826 lt_save_ifs=$IFS 10827 IFS=';' 10828 for lt_path in $LIB 10829 do 10830 IFS=$lt_save_ifs 10831 # Let DOS variable expansion print the short 8.3 style file name. 10832 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10833 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10834 done 10835 IFS=$lt_save_ifs 10836 # Convert to MSYS style. 10837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10838 ;; 10839 cygwin*) 10840 # Convert to unix form, then to dos form, then back to unix form 10841 # but this time dos style (no spaces!) so that the unix form looks 10842 # like /cygdrive/c/PROGRA~1:/cygdr... 10843 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10844 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10845 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10846 ;; 10847 *) 10848 sys_lib_search_path_spec=$LIB 10849 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10850 # It is most probably a Windows format PATH. 10851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10852 else 10853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10854 fi 10855 # FIXME: find the short name or the path components, as spaces are 10856 # common. (e.g. "Program Files" -> "PROGRA~1") 10857 ;; 10858 esac 10859 10860 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10861 postinstall_cmds='base_file=`basename \$file`~ 10862 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10863 dldir=$destdir/`dirname \$dlpath`~ 10864 test -d \$dldir || mkdir -p \$dldir~ 10865 $install_prog $dir/$dlname \$dldir/$dlname' 10866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10867 dlpath=$dir/\$dldll~ 10868 $RM \$dlpath' 10869 shlibpath_overrides_runpath=yes 10870 dynamic_linker='Win32 link.exe' 10871 ;; 10872 10873 *) 10874 # Assume MSVC wrapper 10875 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10876 dynamic_linker='Win32 ld.exe' 10877 ;; 10878 esac 10879 # FIXME: first we should search . and the directory the executable is in 10880 shlibpath_var=PATH 10881 ;; 10882 10883 darwin* | rhapsody*) 10884 dynamic_linker="$host_os dyld" 10885 version_type=darwin 10886 need_lib_prefix=no 10887 need_version=no 10888 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 10889 soname_spec='$libname$release$major$shared_ext' 10890 shlibpath_overrides_runpath=yes 10891 shlibpath_var=DYLD_LIBRARY_PATH 10892 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 10893 10894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10896 ;; 10897 10898 dgux*) 10899 version_type=linux # correct to gnu/linux during the next big refactor 10900 need_lib_prefix=no 10901 need_version=no 10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10903 soname_spec='$libname$release$shared_ext$major' 10904 shlibpath_var=LD_LIBRARY_PATH 10905 ;; 10906 10907 freebsd* | dragonfly*) 10908 # DragonFly does not have aout. When/if they implement a new 10909 # versioning mechanism, adjust this. 10910 if test -x /usr/bin/objformat; then 10911 objformat=`/usr/bin/objformat` 10912 else 10913 case $host_os in 10914 freebsd[23].*) objformat=aout ;; 10915 *) objformat=elf ;; 10916 esac 10917 fi 10918 # Handle Gentoo/FreeBSD as it was Linux 10919 case $host_vendor in 10920 gentoo) 10921 version_type=linux ;; 10922 *) 10923 version_type=freebsd-$objformat ;; 10924 esac 10925 10926 case $version_type in 10927 freebsd-elf*) 10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10929 soname_spec='$libname$release$shared_ext$major' 10930 need_version=no 10931 need_lib_prefix=no 10932 ;; 10933 freebsd-*) 10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10935 need_version=yes 10936 ;; 10937 linux) 10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10939 soname_spec='${libname}${release}${shared_ext}$major' 10940 need_lib_prefix=no 10941 need_version=no 10942 ;; 10943 esac 10944 shlibpath_var=LD_LIBRARY_PATH 10945 case $host_os in 10946 freebsd2.*) 10947 shlibpath_overrides_runpath=yes 10948 ;; 10949 freebsd3.[01]* | freebsdelf3.[01]*) 10950 shlibpath_overrides_runpath=yes 10951 hardcode_into_libs=yes 10952 ;; 10953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10955 shlibpath_overrides_runpath=no 10956 hardcode_into_libs=yes 10957 ;; 10958 *) # from 4.6 on, and DragonFly 10959 shlibpath_overrides_runpath=yes 10960 hardcode_into_libs=yes 10961 ;; 10962 esac 10963 ;; 10964 10965 haiku*) 10966 version_type=linux # correct to gnu/linux during the next big refactor 10967 need_lib_prefix=no 10968 need_version=no 10969 dynamic_linker="$host_os runtime_loader" 10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10971 soname_spec='$libname$release$shared_ext$major' 10972 shlibpath_var=LIBRARY_PATH 10973 shlibpath_overrides_runpath=no 10974 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10975 hardcode_into_libs=yes 10976 ;; 10977 10978 hpux9* | hpux10* | hpux11*) 10979 # Give a soname corresponding to the major version so that dld.sl refuses to 10980 # link against other versions. 10981 version_type=sunos 10982 need_lib_prefix=no 10983 need_version=no 10984 case $host_cpu in 10985 ia64*) 10986 shrext_cmds='.so' 10987 hardcode_into_libs=yes 10988 dynamic_linker="$host_os dld.so" 10989 shlibpath_var=LD_LIBRARY_PATH 10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10992 soname_spec='$libname$release$shared_ext$major' 10993 if test 32 = "$HPUX_IA64_MODE"; then 10994 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10995 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10996 else 10997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10998 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10999 fi 11000 ;; 11001 hppa*64*) 11002 shrext_cmds='.sl' 11003 hardcode_into_libs=yes 11004 dynamic_linker="$host_os dld.sl" 11005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11008 soname_spec='$libname$release$shared_ext$major' 11009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11011 ;; 11012 *) 11013 shrext_cmds='.sl' 11014 dynamic_linker="$host_os dld.sl" 11015 shlibpath_var=SHLIB_PATH 11016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11018 soname_spec='$libname$release$shared_ext$major' 11019 ;; 11020 esac 11021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11022 postinstall_cmds='chmod 555 $lib' 11023 # or fails outright, so override atomically: 11024 install_override_mode=555 11025 ;; 11026 11027 interix[3-9]*) 11028 version_type=linux # correct to gnu/linux during the next big refactor 11029 need_lib_prefix=no 11030 need_version=no 11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11032 soname_spec='$libname$release$shared_ext$major' 11033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11034 shlibpath_var=LD_LIBRARY_PATH 11035 shlibpath_overrides_runpath=no 11036 hardcode_into_libs=yes 11037 ;; 11038 11039 irix5* | irix6* | nonstopux*) 11040 case $host_os in 11041 nonstopux*) version_type=nonstopux ;; 11042 *) 11043 if test yes = "$lt_cv_prog_gnu_ld"; then 11044 version_type=linux # correct to gnu/linux during the next big refactor 11045 else 11046 version_type=irix 11047 fi ;; 11048 esac 11049 need_lib_prefix=no 11050 need_version=no 11051 soname_spec='$libname$release$shared_ext$major' 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11053 case $host_os in 11054 irix5* | nonstopux*) 11055 libsuff= shlibsuff= 11056 ;; 11057 *) 11058 case $LD in # libtool.m4 will add one of these switches to LD 11059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11060 libsuff= shlibsuff= libmagic=32-bit;; 11061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11062 libsuff=32 shlibsuff=N32 libmagic=N32;; 11063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11064 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11065 *) libsuff= shlibsuff= libmagic=never-match;; 11066 esac 11067 ;; 11068 esac 11069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11070 shlibpath_overrides_runpath=no 11071 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11072 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11073 hardcode_into_libs=yes 11074 ;; 11075 11076 # No shared lib support for Linux oldld, aout, or coff. 11077 linux*oldld* | linux*aout* | linux*coff*) 11078 dynamic_linker=no 11079 ;; 11080 11081 linux*android*) 11082 version_type=none # Android doesn't support versioned libraries. 11083 need_lib_prefix=no 11084 need_version=no 11085 library_names_spec='$libname$release$shared_ext' 11086 soname_spec='$libname$release$shared_ext' 11087 finish_cmds= 11088 shlibpath_var=LD_LIBRARY_PATH 11089 shlibpath_overrides_runpath=yes 11090 11091 # This implies no fast_install, which is unacceptable. 11092 # Some rework will be needed to allow for fast_install 11093 # before this can be enabled. 11094 hardcode_into_libs=yes 11095 11096 dynamic_linker='Android linker' 11097 # Don't embed -rpath directories since the linker doesn't support them. 11098 hardcode_libdir_flag_spec='-L$libdir' 11099 ;; 11100 11101 # This must be glibc/ELF. 11102 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11103 version_type=linux # correct to gnu/linux during the next big refactor 11104 need_lib_prefix=no 11105 need_version=no 11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11107 soname_spec='$libname$release$shared_ext$major' 11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11109 shlibpath_var=LD_LIBRARY_PATH 11110 shlibpath_overrides_runpath=no 11111 11112 # Some binutils ld are patched to set DT_RUNPATH 11113 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11114 $as_echo_n "(cached) " >&6 11115 else 11116 lt_cv_shlibpath_overrides_runpath=no 11117 save_LDFLAGS=$LDFLAGS 11118 save_libdir=$libdir 11119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11122 /* end confdefs.h. */ 11123 11124 int 11125 main () 11126 { 11127 11128 ; 11129 return 0; 11130 } 11131 _ACEOF 11132 if ac_fn_c_try_link "$LINENO"; then : 11133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11134 lt_cv_shlibpath_overrides_runpath=yes 11135 fi 11136 fi 11137 rm -f core conftest.err conftest.$ac_objext \ 11138 conftest$ac_exeext conftest.$ac_ext 11139 LDFLAGS=$save_LDFLAGS 11140 libdir=$save_libdir 11141 11142 fi 11143 11144 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11145 11146 # This implies no fast_install, which is unacceptable. 11147 # Some rework will be needed to allow for fast_install 11148 # before this can be enabled. 11149 hardcode_into_libs=yes 11150 11151 # Ideally, we could use ldconfig to report *all* directores which are 11152 # searched for libraries, however this is still not possible. Aside from not 11153 # being certain /sbin/ldconfig is available, command 11154 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11155 # even though it is searched at run-time. Try to do the best guess by 11156 # appending ld.so.conf contents (and includes) to the search path. 11157 if test -f /etc/ld.so.conf; then 11158 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11160 fi 11161 11162 # We used to test for /lib/ld.so.1 and disable shared libraries on 11163 # powerpc, because MkLinux only supported shared libraries with the 11164 # GNU dynamic linker. Since this was broken with cross compilers, 11165 # most powerpc-linux boxes support dynamic linking these days and 11166 # people can always --disable-shared, the test was removed, and we 11167 # assume the GNU/Linux dynamic linker is in use. 11168 dynamic_linker='GNU/Linux ld.so' 11169 ;; 11170 11171 netbsd*) 11172 version_type=sunos 11173 need_lib_prefix=no 11174 need_version=no 11175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11178 dynamic_linker='NetBSD (a.out) ld.so' 11179 else 11180 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11181 soname_spec='$libname$release$shared_ext$major' 11182 dynamic_linker='NetBSD ld.elf_so' 11183 fi 11184 shlibpath_var=LD_LIBRARY_PATH 11185 shlibpath_overrides_runpath=yes 11186 hardcode_into_libs=yes 11187 ;; 11188 11189 newsos6) 11190 version_type=linux # correct to gnu/linux during the next big refactor 11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11192 shlibpath_var=LD_LIBRARY_PATH 11193 shlibpath_overrides_runpath=yes 11194 ;; 11195 11196 *nto* | *qnx*) 11197 version_type=qnx 11198 need_lib_prefix=no 11199 need_version=no 11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11201 soname_spec='$libname$release$shared_ext$major' 11202 shlibpath_var=LD_LIBRARY_PATH 11203 shlibpath_overrides_runpath=no 11204 hardcode_into_libs=yes 11205 dynamic_linker='ldqnx.so' 11206 ;; 11207 11208 openbsd* | bitrig*) 11209 version_type=sunos 11210 sys_lib_dlsearch_path_spec=/usr/lib 11211 need_lib_prefix=no 11212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11213 need_version=no 11214 else 11215 need_version=yes 11216 fi 11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11219 shlibpath_var=LD_LIBRARY_PATH 11220 shlibpath_overrides_runpath=yes 11221 ;; 11222 11223 os2*) 11224 libname_spec='$name' 11225 version_type=windows 11226 shrext_cmds=.dll 11227 need_version=no 11228 need_lib_prefix=no 11229 # OS/2 can only load a DLL with a base name of 8 characters or less. 11230 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11231 v=$($ECHO $release$versuffix | tr -d .-); 11232 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11233 $ECHO $n$v`$shared_ext' 11234 library_names_spec='${libname}_dll.$libext' 11235 dynamic_linker='OS/2 ld.exe' 11236 shlibpath_var=BEGINLIBPATH 11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11239 postinstall_cmds='base_file=`basename \$file`~ 11240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11241 dldir=$destdir/`dirname \$dlpath`~ 11242 test -d \$dldir || mkdir -p \$dldir~ 11243 $install_prog $dir/$dlname \$dldir/$dlname~ 11244 chmod a+x \$dldir/$dlname~ 11245 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11246 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11247 fi' 11248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11249 dlpath=$dir/\$dldll~ 11250 $RM \$dlpath' 11251 ;; 11252 11253 osf3* | osf4* | osf5*) 11254 version_type=osf 11255 need_lib_prefix=no 11256 need_version=no 11257 soname_spec='$libname$release$shared_ext$major' 11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11259 shlibpath_var=LD_LIBRARY_PATH 11260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11262 ;; 11263 11264 rdos*) 11265 dynamic_linker=no 11266 ;; 11267 11268 solaris*) 11269 version_type=linux # correct to gnu/linux during the next big refactor 11270 need_lib_prefix=no 11271 need_version=no 11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11273 soname_spec='$libname$release$shared_ext$major' 11274 shlibpath_var=LD_LIBRARY_PATH 11275 shlibpath_overrides_runpath=yes 11276 hardcode_into_libs=yes 11277 # ldd complains unless libraries are executable 11278 postinstall_cmds='chmod +x $lib' 11279 ;; 11280 11281 sunos4*) 11282 version_type=sunos 11283 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11285 shlibpath_var=LD_LIBRARY_PATH 11286 shlibpath_overrides_runpath=yes 11287 if test yes = "$with_gnu_ld"; then 11288 need_lib_prefix=no 11289 fi 11290 need_version=yes 11291 ;; 11292 11293 sysv4 | sysv4.3*) 11294 version_type=linux # correct to gnu/linux during the next big refactor 11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11296 soname_spec='$libname$release$shared_ext$major' 11297 shlibpath_var=LD_LIBRARY_PATH 11298 case $host_vendor in 11299 sni) 11300 shlibpath_overrides_runpath=no 11301 need_lib_prefix=no 11302 runpath_var=LD_RUN_PATH 11303 ;; 11304 siemens) 11305 need_lib_prefix=no 11306 ;; 11307 motorola) 11308 need_lib_prefix=no 11309 need_version=no 11310 shlibpath_overrides_runpath=no 11311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11312 ;; 11313 esac 11314 ;; 11315 11316 sysv4*MP*) 11317 if test -d /usr/nec; then 11318 version_type=linux # correct to gnu/linux during the next big refactor 11319 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11320 soname_spec='$libname$shared_ext.$major' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 fi 11323 ;; 11324 11325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11326 version_type=sco 11327 need_lib_prefix=no 11328 need_version=no 11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11330 soname_spec='$libname$release$shared_ext$major' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 shlibpath_overrides_runpath=yes 11333 hardcode_into_libs=yes 11334 if test yes = "$with_gnu_ld"; then 11335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11336 else 11337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11338 case $host_os in 11339 sco3.2v5*) 11340 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11341 ;; 11342 esac 11343 fi 11344 sys_lib_dlsearch_path_spec='/usr/lib' 11345 ;; 11346 11347 tpf*) 11348 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11349 version_type=linux # correct to gnu/linux during the next big refactor 11350 need_lib_prefix=no 11351 need_version=no 11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 shlibpath_overrides_runpath=no 11355 hardcode_into_libs=yes 11356 ;; 11357 11358 uts4*) 11359 version_type=linux # correct to gnu/linux during the next big refactor 11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11361 soname_spec='$libname$release$shared_ext$major' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 ;; 11364 11365 *) 11366 dynamic_linker=no 11367 ;; 11368 esac 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11370 $as_echo "$dynamic_linker" >&6; } 11371 test no = "$dynamic_linker" && can_build_shared=no 11372 11373 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11374 if test yes = "$GCC"; then 11375 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11376 fi 11377 11378 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11379 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11380 fi 11381 11382 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11383 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11384 fi 11385 11386 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11387 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11388 11389 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11390 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11391 11392 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11393 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11492 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11493 hardcode_action= 11494 if test -n "$hardcode_libdir_flag_spec" || 11495 test -n "$runpath_var" || 11496 test yes = "$hardcode_automatic"; then 11497 11498 # We can hardcode non-existent directories. 11499 if test no != "$hardcode_direct" && 11500 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11501 # have to relink, otherwise we might link with an installed library 11502 # when we should be linking with a yet-to-be-installed one 11503 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11504 test no != "$hardcode_minus_L"; then 11505 # Linking always hardcodes the temporary library directory. 11506 hardcode_action=relink 11507 else 11508 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11509 hardcode_action=immediate 11510 fi 11511 else 11512 # We cannot hardcode anything, or else we can only hardcode existing 11513 # directories. 11514 hardcode_action=unsupported 11515 fi 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11517 $as_echo "$hardcode_action" >&6; } 11518 11519 if test relink = "$hardcode_action" || 11520 test yes = "$inherit_rpath"; then 11521 # Fast installation is not supported 11522 enable_fast_install=no 11523 elif test yes = "$shlibpath_overrides_runpath" || 11524 test no = "$enable_shared"; then 11525 # Fast installation is not necessary 11526 enable_fast_install=needless 11527 fi 11528 11529 11530 11531 11532 11533 11534 if test yes != "$enable_dlopen"; then 11535 enable_dlopen=unknown 11536 enable_dlopen_self=unknown 11537 enable_dlopen_self_static=unknown 11538 else 11539 lt_cv_dlopen=no 11540 lt_cv_dlopen_libs= 11541 11542 case $host_os in 11543 beos*) 11544 lt_cv_dlopen=load_add_on 11545 lt_cv_dlopen_libs= 11546 lt_cv_dlopen_self=yes 11547 ;; 11548 11549 mingw* | pw32* | cegcc*) 11550 lt_cv_dlopen=LoadLibrary 11551 lt_cv_dlopen_libs= 11552 ;; 11553 11554 cygwin*) 11555 lt_cv_dlopen=dlopen 11556 lt_cv_dlopen_libs= 11557 ;; 11558 11559 darwin*) 11560 # if libdl is installed we need to link against it 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11562 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11563 if ${ac_cv_lib_dl_dlopen+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565 else 11566 ac_check_lib_save_LIBS=$LIBS 11567 LIBS="-ldl $LIBS" 11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11569 /* end confdefs.h. */ 11570 11571 /* Override any GCC internal prototype to avoid an error. 11572 Use char because int might match the return type of a GCC 11573 builtin and then its argument prototype would still apply. */ 11574 #ifdef __cplusplus 11575 extern "C" 11576 #endif 11577 char dlopen (); 11578 int 11579 main () 11580 { 11581 return dlopen (); 11582 ; 11583 return 0; 11584 } 11585 _ACEOF 11586 if ac_fn_c_try_link "$LINENO"; then : 11587 ac_cv_lib_dl_dlopen=yes 11588 else 11589 ac_cv_lib_dl_dlopen=no 11590 fi 11591 rm -f core conftest.err conftest.$ac_objext \ 11592 conftest$ac_exeext conftest.$ac_ext 11593 LIBS=$ac_check_lib_save_LIBS 11594 fi 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11598 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11599 else 11600 11601 lt_cv_dlopen=dyld 11602 lt_cv_dlopen_libs= 11603 lt_cv_dlopen_self=yes 11604 11605 fi 11606 11607 ;; 11608 11609 tpf*) 11610 # Don't try to run any link tests for TPF. We know it's impossible 11611 # because TPF is a cross-compiler, and we know how we open DSOs. 11612 lt_cv_dlopen=dlopen 11613 lt_cv_dlopen_libs= 11614 lt_cv_dlopen_self=no 11615 ;; 11616 11617 *) 11618 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11619 if test "x$ac_cv_func_shl_load" = xyes; then : 11620 lt_cv_dlopen=shl_load 11621 else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11623 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11624 if ${ac_cv_lib_dld_shl_load+:} false; then : 11625 $as_echo_n "(cached) " >&6 11626 else 11627 ac_check_lib_save_LIBS=$LIBS 11628 LIBS="-ldld $LIBS" 11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11630 /* end confdefs.h. */ 11631 11632 /* Override any GCC internal prototype to avoid an error. 11633 Use char because int might match the return type of a GCC 11634 builtin and then its argument prototype would still apply. */ 11635 #ifdef __cplusplus 11636 extern "C" 11637 #endif 11638 char shl_load (); 11639 int 11640 main () 11641 { 11642 return shl_load (); 11643 ; 11644 return 0; 11645 } 11646 _ACEOF 11647 if ac_fn_c_try_link "$LINENO"; then : 11648 ac_cv_lib_dld_shl_load=yes 11649 else 11650 ac_cv_lib_dld_shl_load=no 11651 fi 11652 rm -f core conftest.err conftest.$ac_objext \ 11653 conftest$ac_exeext conftest.$ac_ext 11654 LIBS=$ac_check_lib_save_LIBS 11655 fi 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11657 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11658 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11659 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11660 else 11661 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11662 if test "x$ac_cv_func_dlopen" = xyes; then : 11663 lt_cv_dlopen=dlopen 11664 else 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11666 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11667 if ${ac_cv_lib_dl_dlopen+:} false; then : 11668 $as_echo_n "(cached) " >&6 11669 else 11670 ac_check_lib_save_LIBS=$LIBS 11671 LIBS="-ldl $LIBS" 11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673 /* end confdefs.h. */ 11674 11675 /* Override any GCC internal prototype to avoid an error. 11676 Use char because int might match the return type of a GCC 11677 builtin and then its argument prototype would still apply. */ 11678 #ifdef __cplusplus 11679 extern "C" 11680 #endif 11681 char dlopen (); 11682 int 11683 main () 11684 { 11685 return dlopen (); 11686 ; 11687 return 0; 11688 } 11689 _ACEOF 11690 if ac_fn_c_try_link "$LINENO"; then : 11691 ac_cv_lib_dl_dlopen=yes 11692 else 11693 ac_cv_lib_dl_dlopen=no 11694 fi 11695 rm -f core conftest.err conftest.$ac_objext \ 11696 conftest$ac_exeext conftest.$ac_ext 11697 LIBS=$ac_check_lib_save_LIBS 11698 fi 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11702 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11703 else 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11705 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11706 if ${ac_cv_lib_svld_dlopen+:} false; then : 11707 $as_echo_n "(cached) " >&6 11708 else 11709 ac_check_lib_save_LIBS=$LIBS 11710 LIBS="-lsvld $LIBS" 11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11712 /* end confdefs.h. */ 11713 11714 /* Override any GCC internal prototype to avoid an error. 11715 Use char because int might match the return type of a GCC 11716 builtin and then its argument prototype would still apply. */ 11717 #ifdef __cplusplus 11718 extern "C" 11719 #endif 11720 char dlopen (); 11721 int 11722 main () 11723 { 11724 return dlopen (); 11725 ; 11726 return 0; 11727 } 11728 _ACEOF 11729 if ac_fn_c_try_link "$LINENO"; then : 11730 ac_cv_lib_svld_dlopen=yes 11731 else 11732 ac_cv_lib_svld_dlopen=no 11733 fi 11734 rm -f core conftest.err conftest.$ac_objext \ 11735 conftest$ac_exeext conftest.$ac_ext 11736 LIBS=$ac_check_lib_save_LIBS 11737 fi 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11740 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11741 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11742 else 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11744 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11745 if ${ac_cv_lib_dld_dld_link+:} false; then : 11746 $as_echo_n "(cached) " >&6 11747 else 11748 ac_check_lib_save_LIBS=$LIBS 11749 LIBS="-ldld $LIBS" 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751 /* end confdefs.h. */ 11752 11753 /* Override any GCC internal prototype to avoid an error. 11754 Use char because int might match the return type of a GCC 11755 builtin and then its argument prototype would still apply. */ 11756 #ifdef __cplusplus 11757 extern "C" 11758 #endif 11759 char dld_link (); 11760 int 11761 main () 11762 { 11763 return dld_link (); 11764 ; 11765 return 0; 11766 } 11767 _ACEOF 11768 if ac_fn_c_try_link "$LINENO"; then : 11769 ac_cv_lib_dld_dld_link=yes 11770 else 11771 ac_cv_lib_dld_dld_link=no 11772 fi 11773 rm -f core conftest.err conftest.$ac_objext \ 11774 conftest$ac_exeext conftest.$ac_ext 11775 LIBS=$ac_check_lib_save_LIBS 11776 fi 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11779 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11780 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11781 fi 11782 11783 11784 fi 11785 11786 11787 fi 11788 11789 11790 fi 11791 11792 11793 fi 11794 11795 11796 fi 11797 11798 ;; 11799 esac 11800 11801 if test no = "$lt_cv_dlopen"; then 11802 enable_dlopen=no 11803 else 11804 enable_dlopen=yes 11805 fi 11806 11807 case $lt_cv_dlopen in 11808 dlopen) 11809 save_CPPFLAGS=$CPPFLAGS 11810 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11811 11812 save_LDFLAGS=$LDFLAGS 11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11814 11815 save_LIBS=$LIBS 11816 LIBS="$lt_cv_dlopen_libs $LIBS" 11817 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11819 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11820 if ${lt_cv_dlopen_self+:} false; then : 11821 $as_echo_n "(cached) " >&6 11822 else 11823 if test yes = "$cross_compiling"; then : 11824 lt_cv_dlopen_self=cross 11825 else 11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11827 lt_status=$lt_dlunknown 11828 cat > conftest.$ac_ext <<_LT_EOF 11829 #line $LINENO "configure" 11830 #include "confdefs.h" 11831 11832 #if HAVE_DLFCN_H 11833 #include <dlfcn.h> 11834 #endif 11835 11836 #include <stdio.h> 11837 11838 #ifdef RTLD_GLOBAL 11839 # define LT_DLGLOBAL RTLD_GLOBAL 11840 #else 11841 # ifdef DL_GLOBAL 11842 # define LT_DLGLOBAL DL_GLOBAL 11843 # else 11844 # define LT_DLGLOBAL 0 11845 # endif 11846 #endif 11847 11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11849 find out it does not work in some platform. */ 11850 #ifndef LT_DLLAZY_OR_NOW 11851 # ifdef RTLD_LAZY 11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11853 # else 11854 # ifdef DL_LAZY 11855 # define LT_DLLAZY_OR_NOW DL_LAZY 11856 # else 11857 # ifdef RTLD_NOW 11858 # define LT_DLLAZY_OR_NOW RTLD_NOW 11859 # else 11860 # ifdef DL_NOW 11861 # define LT_DLLAZY_OR_NOW DL_NOW 11862 # else 11863 # define LT_DLLAZY_OR_NOW 0 11864 # endif 11865 # endif 11866 # endif 11867 # endif 11868 #endif 11869 11870 /* When -fvisibility=hidden is used, assume the code has been annotated 11871 correspondingly for the symbols needed. */ 11872 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11873 int fnord () __attribute__((visibility("default"))); 11874 #endif 11875 11876 int fnord () { return 42; } 11877 int main () 11878 { 11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11880 int status = $lt_dlunknown; 11881 11882 if (self) 11883 { 11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11885 else 11886 { 11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11888 else puts (dlerror ()); 11889 } 11890 /* dlclose (self); */ 11891 } 11892 else 11893 puts (dlerror ()); 11894 11895 return status; 11896 } 11897 _LT_EOF 11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11899 (eval $ac_link) 2>&5 11900 ac_status=$? 11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11902 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11903 (./conftest; exit; ) >&5 2>/dev/null 11904 lt_status=$? 11905 case x$lt_status in 11906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11909 esac 11910 else : 11911 # compilation failed 11912 lt_cv_dlopen_self=no 11913 fi 11914 fi 11915 rm -fr conftest* 11916 11917 11918 fi 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11920 $as_echo "$lt_cv_dlopen_self" >&6; } 11921 11922 if test yes = "$lt_cv_dlopen_self"; then 11923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11926 if ${lt_cv_dlopen_self_static+:} false; then : 11927 $as_echo_n "(cached) " >&6 11928 else 11929 if test yes = "$cross_compiling"; then : 11930 lt_cv_dlopen_self_static=cross 11931 else 11932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11933 lt_status=$lt_dlunknown 11934 cat > conftest.$ac_ext <<_LT_EOF 11935 #line $LINENO "configure" 11936 #include "confdefs.h" 11937 11938 #if HAVE_DLFCN_H 11939 #include <dlfcn.h> 11940 #endif 11941 11942 #include <stdio.h> 11943 11944 #ifdef RTLD_GLOBAL 11945 # define LT_DLGLOBAL RTLD_GLOBAL 11946 #else 11947 # ifdef DL_GLOBAL 11948 # define LT_DLGLOBAL DL_GLOBAL 11949 # else 11950 # define LT_DLGLOBAL 0 11951 # endif 11952 #endif 11953 11954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11955 find out it does not work in some platform. */ 11956 #ifndef LT_DLLAZY_OR_NOW 11957 # ifdef RTLD_LAZY 11958 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11959 # else 11960 # ifdef DL_LAZY 11961 # define LT_DLLAZY_OR_NOW DL_LAZY 11962 # else 11963 # ifdef RTLD_NOW 11964 # define LT_DLLAZY_OR_NOW RTLD_NOW 11965 # else 11966 # ifdef DL_NOW 11967 # define LT_DLLAZY_OR_NOW DL_NOW 11968 # else 11969 # define LT_DLLAZY_OR_NOW 0 11970 # endif 11971 # endif 11972 # endif 11973 # endif 11974 #endif 11975 11976 /* When -fvisibility=hidden is used, assume the code has been annotated 11977 correspondingly for the symbols needed. */ 11978 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11979 int fnord () __attribute__((visibility("default"))); 11980 #endif 11981 11982 int fnord () { return 42; } 11983 int main () 11984 { 11985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11986 int status = $lt_dlunknown; 11987 11988 if (self) 11989 { 11990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11991 else 11992 { 11993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11994 else puts (dlerror ()); 11995 } 11996 /* dlclose (self); */ 11997 } 11998 else 11999 puts (dlerror ()); 12000 12001 return status; 12002 } 12003 _LT_EOF 12004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12005 (eval $ac_link) 2>&5 12006 ac_status=$? 12007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12009 (./conftest; exit; ) >&5 2>/dev/null 12010 lt_status=$? 12011 case x$lt_status in 12012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12015 esac 12016 else : 12017 # compilation failed 12018 lt_cv_dlopen_self_static=no 12019 fi 12020 fi 12021 rm -fr conftest* 12022 12023 12024 fi 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12026 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12027 fi 12028 12029 CPPFLAGS=$save_CPPFLAGS 12030 LDFLAGS=$save_LDFLAGS 12031 LIBS=$save_LIBS 12032 ;; 12033 esac 12034 12035 case $lt_cv_dlopen_self in 12036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12037 *) enable_dlopen_self=unknown ;; 12038 esac 12039 12040 case $lt_cv_dlopen_self_static in 12041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12042 *) enable_dlopen_self_static=unknown ;; 12043 esac 12044 fi 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 striplib= 12063 old_striplib= 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12065 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12068 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12070 $as_echo "yes" >&6; } 12071 else 12072 # FIXME - insert some real tests, host_os isn't really good enough 12073 case $host_os in 12074 darwin*) 12075 if test -n "$STRIP"; then 12076 striplib="$STRIP -x" 12077 old_striplib="$STRIP -S" 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12079 $as_echo "yes" >&6; } 12080 else 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12082 $as_echo "no" >&6; } 12083 fi 12084 ;; 12085 *) 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12087 $as_echo "no" >&6; } 12088 ;; 12089 esac 12090 fi 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 # Report what library types will actually be built 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12105 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12107 $as_echo "$can_build_shared" >&6; } 12108 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12110 $as_echo_n "checking whether to build shared libraries... " >&6; } 12111 test no = "$can_build_shared" && enable_shared=no 12112 12113 # On AIX, shared libraries and static libraries use the same namespace, and 12114 # are all built from PIC. 12115 case $host_os in 12116 aix3*) 12117 test yes = "$enable_shared" && enable_static=no 12118 if test -n "$RANLIB"; then 12119 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12120 postinstall_cmds='$RANLIB $lib' 12121 fi 12122 ;; 12123 12124 aix[4-9]*) 12125 if test ia64 != "$host_cpu"; then 12126 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12127 yes,aix,yes) ;; # shared object as lib.so file only 12128 yes,svr4,*) ;; # shared object as lib.so archive member only 12129 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12130 esac 12131 fi 12132 ;; 12133 esac 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12135 $as_echo "$enable_shared" >&6; } 12136 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12138 $as_echo_n "checking whether to build static libraries... " >&6; } 12139 # Make sure either enable_shared or enable_static is yes. 12140 test yes = "$enable_shared" || enable_static=yes 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12142 $as_echo "$enable_static" >&6; } 12143 12144 12145 12146 12147 fi 12148 ac_ext=c 12149 ac_cpp='$CPP $CPPFLAGS' 12150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12152 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12153 12154 CC=$lt_save_CC 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 ac_config_commands="$ac_config_commands libtool" 12171 12172 12173 12174 12175 # Only expand once: 12176 12177 12178 12179 ac_ext=c 12180 ac_cpp='$CPP $CPPFLAGS' 12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12185 $as_echo_n "checking how to run the C preprocessor... " >&6; } 12186 # On Suns, sometimes $CPP names a directory. 12187 if test -n "$CPP" && test -d "$CPP"; then 12188 CPP= 12189 fi 12190 if test -z "$CPP"; then 12191 if ${ac_cv_prog_CPP+:} false; then : 12192 $as_echo_n "(cached) " >&6 12193 else 12194 # Double quotes because CPP needs to be expanded 12195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12196 do 12197 ac_preproc_ok=false 12198 for ac_c_preproc_warn_flag in '' yes 12199 do 12200 # Use a header file that comes with gcc, so configuring glibc 12201 # with a fresh cross-compiler works. 12202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12203 # <limits.h> exists even on freestanding compilers. 12204 # On the NeXT, cc -E runs the code through the compiler's parser, 12205 # not just through cpp. "Syntax error" is here to catch this case. 12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12207 /* end confdefs.h. */ 12208 #ifdef __STDC__ 12209 # include <limits.h> 12210 #else 12211 # include <assert.h> 12212 #endif 12213 Syntax error 12214 _ACEOF 12215 if ac_fn_c_try_cpp "$LINENO"; then : 12216 12217 else 12218 # Broken: fails on valid input. 12219 continue 12220 fi 12221 rm -f conftest.err conftest.i conftest.$ac_ext 12222 12223 # OK, works on sane cases. Now check whether nonexistent headers 12224 # can be detected and how. 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12226 /* end confdefs.h. */ 12227 #include <ac_nonexistent.h> 12228 _ACEOF 12229 if ac_fn_c_try_cpp "$LINENO"; then : 12230 # Broken: success on invalid input. 12231 continue 12232 else 12233 # Passes both tests. 12234 ac_preproc_ok=: 12235 break 12236 fi 12237 rm -f conftest.err conftest.i conftest.$ac_ext 12238 12239 done 12240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12241 rm -f conftest.i conftest.err conftest.$ac_ext 12242 if $ac_preproc_ok; then : 12243 break 12244 fi 12245 12246 done 12247 ac_cv_prog_CPP=$CPP 12248 12249 fi 12250 CPP=$ac_cv_prog_CPP 12251 else 12252 ac_cv_prog_CPP=$CPP 12253 fi 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12255 $as_echo "$CPP" >&6; } 12256 ac_preproc_ok=false 12257 for ac_c_preproc_warn_flag in '' yes 12258 do 12259 # Use a header file that comes with gcc, so configuring glibc 12260 # with a fresh cross-compiler works. 12261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12262 # <limits.h> exists even on freestanding compilers. 12263 # On the NeXT, cc -E runs the code through the compiler's parser, 12264 # not just through cpp. "Syntax error" is here to catch this case. 12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12266 /* end confdefs.h. */ 12267 #ifdef __STDC__ 12268 # include <limits.h> 12269 #else 12270 # include <assert.h> 12271 #endif 12272 Syntax error 12273 _ACEOF 12274 if ac_fn_c_try_cpp "$LINENO"; then : 12275 12276 else 12277 # Broken: fails on valid input. 12278 continue 12279 fi 12280 rm -f conftest.err conftest.i conftest.$ac_ext 12281 12282 # OK, works on sane cases. Now check whether nonexistent headers 12283 # can be detected and how. 12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12285 /* end confdefs.h. */ 12286 #include <ac_nonexistent.h> 12287 _ACEOF 12288 if ac_fn_c_try_cpp "$LINENO"; then : 12289 # Broken: success on invalid input. 12290 continue 12291 else 12292 # Passes both tests. 12293 ac_preproc_ok=: 12294 break 12295 fi 12296 rm -f conftest.err conftest.i conftest.$ac_ext 12297 12298 done 12299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12300 rm -f conftest.i conftest.err conftest.$ac_ext 12301 if $ac_preproc_ok; then : 12302 12303 else 12304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12306 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12307 See \`config.log' for more details" "$LINENO" 5; } 12308 fi 12309 12310 ac_ext=c 12311 ac_cpp='$CPP $CPPFLAGS' 12312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12314 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12315 12316 ac_ext=c 12317 ac_cpp='$CPP $CPPFLAGS' 12318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12320 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12321 if test -n "$ac_tool_prefix"; then 12322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12323 set dummy ${ac_tool_prefix}gcc; ac_word=$2 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12325 $as_echo_n "checking for $ac_word... " >&6; } 12326 if ${ac_cv_prog_CC+:} false; then : 12327 $as_echo_n "(cached) " >&6 12328 else 12329 if test -n "$CC"; then 12330 ac_cv_prog_CC="$CC" # Let the user override the test. 12331 else 12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12333 for as_dir in $PATH 12334 do 12335 IFS=$as_save_IFS 12336 test -z "$as_dir" && as_dir=. 12337 for ac_exec_ext in '' $ac_executable_extensions; do 12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12339 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12341 break 2 12342 fi 12343 done 12344 done 12345 IFS=$as_save_IFS 12346 12347 fi 12348 fi 12349 CC=$ac_cv_prog_CC 12350 if test -n "$CC"; then 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12352 $as_echo "$CC" >&6; } 12353 else 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12355 $as_echo "no" >&6; } 12356 fi 12357 12358 12359 fi 12360 if test -z "$ac_cv_prog_CC"; then 12361 ac_ct_CC=$CC 12362 # Extract the first word of "gcc", so it can be a program name with args. 12363 set dummy gcc; ac_word=$2 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12365 $as_echo_n "checking for $ac_word... " >&6; } 12366 if ${ac_cv_prog_ac_ct_CC+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368 else 12369 if test -n "$ac_ct_CC"; then 12370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12371 else 12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12373 for as_dir in $PATH 12374 do 12375 IFS=$as_save_IFS 12376 test -z "$as_dir" && as_dir=. 12377 for ac_exec_ext in '' $ac_executable_extensions; do 12378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12379 ac_cv_prog_ac_ct_CC="gcc" 12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12381 break 2 12382 fi 12383 done 12384 done 12385 IFS=$as_save_IFS 12386 12387 fi 12388 fi 12389 ac_ct_CC=$ac_cv_prog_ac_ct_CC 12390 if test -n "$ac_ct_CC"; then 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12392 $as_echo "$ac_ct_CC" >&6; } 12393 else 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12395 $as_echo "no" >&6; } 12396 fi 12397 12398 if test "x$ac_ct_CC" = x; then 12399 CC="" 12400 else 12401 case $cross_compiling:$ac_tool_warned in 12402 yes:) 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12405 ac_tool_warned=yes ;; 12406 esac 12407 CC=$ac_ct_CC 12408 fi 12409 else 12410 CC="$ac_cv_prog_CC" 12411 fi 12412 12413 if test -z "$CC"; then 12414 if test -n "$ac_tool_prefix"; then 12415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12416 set dummy ${ac_tool_prefix}cc; ac_word=$2 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12418 $as_echo_n "checking for $ac_word... " >&6; } 12419 if ${ac_cv_prog_CC+:} false; then : 12420 $as_echo_n "(cached) " >&6 12421 else 12422 if test -n "$CC"; then 12423 ac_cv_prog_CC="$CC" # Let the user override the test. 12424 else 12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12426 for as_dir in $PATH 12427 do 12428 IFS=$as_save_IFS 12429 test -z "$as_dir" && as_dir=. 12430 for ac_exec_ext in '' $ac_executable_extensions; do 12431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12432 ac_cv_prog_CC="${ac_tool_prefix}cc" 12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12434 break 2 12435 fi 12436 done 12437 done 12438 IFS=$as_save_IFS 12439 12440 fi 12441 fi 12442 CC=$ac_cv_prog_CC 12443 if test -n "$CC"; then 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12445 $as_echo "$CC" >&6; } 12446 else 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12448 $as_echo "no" >&6; } 12449 fi 12450 12451 12452 fi 12453 fi 12454 if test -z "$CC"; then 12455 # Extract the first word of "cc", so it can be a program name with args. 12456 set dummy cc; ac_word=$2 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12458 $as_echo_n "checking for $ac_word... " >&6; } 12459 if ${ac_cv_prog_CC+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461 else 12462 if test -n "$CC"; then 12463 ac_cv_prog_CC="$CC" # Let the user override the test. 12464 else 12465 ac_prog_rejected=no 12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12467 for as_dir in $PATH 12468 do 12469 IFS=$as_save_IFS 12470 test -z "$as_dir" && as_dir=. 12471 for ac_exec_ext in '' $ac_executable_extensions; do 12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12474 ac_prog_rejected=yes 12475 continue 12476 fi 12477 ac_cv_prog_CC="cc" 12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12479 break 2 12480 fi 12481 done 12482 done 12483 IFS=$as_save_IFS 12484 12485 if test $ac_prog_rejected = yes; then 12486 # We found a bogon in the path, so make sure we never use it. 12487 set dummy $ac_cv_prog_CC 12488 shift 12489 if test $# != 0; then 12490 # We chose a different compiler from the bogus one. 12491 # However, it has the same basename, so the bogon will be chosen 12492 # first if we set CC to just the basename; use the full file name. 12493 shift 12494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12495 fi 12496 fi 12497 fi 12498 fi 12499 CC=$ac_cv_prog_CC 12500 if test -n "$CC"; then 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12502 $as_echo "$CC" >&6; } 12503 else 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12505 $as_echo "no" >&6; } 12506 fi 12507 12508 12509 fi 12510 if test -z "$CC"; then 12511 if test -n "$ac_tool_prefix"; then 12512 for ac_prog in cl.exe 12513 do 12514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12517 $as_echo_n "checking for $ac_word... " >&6; } 12518 if ${ac_cv_prog_CC+:} false; then : 12519 $as_echo_n "(cached) " >&6 12520 else 12521 if test -n "$CC"; then 12522 ac_cv_prog_CC="$CC" # Let the user override the test. 12523 else 12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12525 for as_dir in $PATH 12526 do 12527 IFS=$as_save_IFS 12528 test -z "$as_dir" && as_dir=. 12529 for ac_exec_ext in '' $ac_executable_extensions; do 12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12533 break 2 12534 fi 12535 done 12536 done 12537 IFS=$as_save_IFS 12538 12539 fi 12540 fi 12541 CC=$ac_cv_prog_CC 12542 if test -n "$CC"; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12544 $as_echo "$CC" >&6; } 12545 else 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12547 $as_echo "no" >&6; } 12548 fi 12549 12550 12551 test -n "$CC" && break 12552 done 12553 fi 12554 if test -z "$CC"; then 12555 ac_ct_CC=$CC 12556 for ac_prog in cl.exe 12557 do 12558 # Extract the first word of "$ac_prog", so it can be a program name with args. 12559 set dummy $ac_prog; ac_word=$2 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12561 $as_echo_n "checking for $ac_word... " >&6; } 12562 if ${ac_cv_prog_ac_ct_CC+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564 else 12565 if test -n "$ac_ct_CC"; then 12566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12567 else 12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12569 for as_dir in $PATH 12570 do 12571 IFS=$as_save_IFS 12572 test -z "$as_dir" && as_dir=. 12573 for ac_exec_ext in '' $ac_executable_extensions; do 12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12575 ac_cv_prog_ac_ct_CC="$ac_prog" 12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12577 break 2 12578 fi 12579 done 12580 done 12581 IFS=$as_save_IFS 12582 12583 fi 12584 fi 12585 ac_ct_CC=$ac_cv_prog_ac_ct_CC 12586 if test -n "$ac_ct_CC"; then 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12588 $as_echo "$ac_ct_CC" >&6; } 12589 else 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12591 $as_echo "no" >&6; } 12592 fi 12593 12594 12595 test -n "$ac_ct_CC" && break 12596 done 12597 12598 if test "x$ac_ct_CC" = x; then 12599 CC="" 12600 else 12601 case $cross_compiling:$ac_tool_warned in 12602 yes:) 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12605 ac_tool_warned=yes ;; 12606 esac 12607 CC=$ac_ct_CC 12608 fi 12609 fi 12610 12611 fi 12612 12613 12614 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12616 as_fn_error $? "no acceptable C compiler found in \$PATH 12617 See \`config.log' for more details" "$LINENO" 5; } 12618 12619 # Provide some information about the compiler. 12620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12621 set X $ac_compile 12622 ac_compiler=$2 12623 for ac_option in --version -v -V -qversion; do 12624 { { ac_try="$ac_compiler $ac_option >&5" 12625 case "(($ac_try" in 12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12627 *) ac_try_echo=$ac_try;; 12628 esac 12629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12630 $as_echo "$ac_try_echo"; } >&5 12631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12632 ac_status=$? 12633 if test -s conftest.err; then 12634 sed '10a\ 12635 ... rest of stderr output deleted ... 12636 10q' conftest.err >conftest.er1 12637 cat conftest.er1 >&5 12638 fi 12639 rm -f conftest.er1 conftest.err 12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12641 test $ac_status = 0; } 12642 done 12643 12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12646 if ${ac_cv_c_compiler_gnu+:} false; then : 12647 $as_echo_n "(cached) " >&6 12648 else 12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650 /* end confdefs.h. */ 12651 12652 int 12653 main () 12654 { 12655 #ifndef __GNUC__ 12656 choke me 12657 #endif 12658 12659 ; 12660 return 0; 12661 } 12662 _ACEOF 12663 if ac_fn_c_try_compile "$LINENO"; then : 12664 ac_compiler_gnu=yes 12665 else 12666 ac_compiler_gnu=no 12667 fi 12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12669 ac_cv_c_compiler_gnu=$ac_compiler_gnu 12670 12671 fi 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12673 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 12674 if test $ac_compiler_gnu = yes; then 12675 GCC=yes 12676 else 12677 GCC= 12678 fi 12679 ac_test_CFLAGS=${CFLAGS+set} 12680 ac_save_CFLAGS=$CFLAGS 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12682 $as_echo_n "checking whether $CC accepts -g... " >&6; } 12683 if ${ac_cv_prog_cc_g+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685 else 12686 ac_save_c_werror_flag=$ac_c_werror_flag 12687 ac_c_werror_flag=yes 12688 ac_cv_prog_cc_g=no 12689 CFLAGS="-g" 12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691 /* end confdefs.h. */ 12692 12693 int 12694 main () 12695 { 12696 12697 ; 12698 return 0; 12699 } 12700 _ACEOF 12701 if ac_fn_c_try_compile "$LINENO"; then : 12702 ac_cv_prog_cc_g=yes 12703 else 12704 CFLAGS="" 12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12706 /* end confdefs.h. */ 12707 12708 int 12709 main () 12710 { 12711 12712 ; 12713 return 0; 12714 } 12715 _ACEOF 12716 if ac_fn_c_try_compile "$LINENO"; then : 12717 12718 else 12719 ac_c_werror_flag=$ac_save_c_werror_flag 12720 CFLAGS="-g" 12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12722 /* end confdefs.h. */ 12723 12724 int 12725 main () 12726 { 12727 12728 ; 12729 return 0; 12730 } 12731 _ACEOF 12732 if ac_fn_c_try_compile "$LINENO"; then : 12733 ac_cv_prog_cc_g=yes 12734 fi 12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12736 fi 12737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12738 fi 12739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12740 ac_c_werror_flag=$ac_save_c_werror_flag 12741 fi 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12743 $as_echo "$ac_cv_prog_cc_g" >&6; } 12744 if test "$ac_test_CFLAGS" = set; then 12745 CFLAGS=$ac_save_CFLAGS 12746 elif test $ac_cv_prog_cc_g = yes; then 12747 if test "$GCC" = yes; then 12748 CFLAGS="-g -O2" 12749 else 12750 CFLAGS="-g" 12751 fi 12752 else 12753 if test "$GCC" = yes; then 12754 CFLAGS="-O2" 12755 else 12756 CFLAGS= 12757 fi 12758 fi 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12761 if ${ac_cv_prog_cc_c89+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763 else 12764 ac_cv_prog_cc_c89=no 12765 ac_save_CC=$CC 12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767 /* end confdefs.h. */ 12768 #include <stdarg.h> 12769 #include <stdio.h> 12770 struct stat; 12771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12772 struct buf { int x; }; 12773 FILE * (*rcsopen) (struct buf *, struct stat *, int); 12774 static char *e (p, i) 12775 char **p; 12776 int i; 12777 { 12778 return p[i]; 12779 } 12780 static char *f (char * (*g) (char **, int), char **p, ...) 12781 { 12782 char *s; 12783 va_list v; 12784 va_start (v,p); 12785 s = g (p, va_arg (v,int)); 12786 va_end (v); 12787 return s; 12788 } 12789 12790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12791 function prototypes and stuff, but not '\xHH' hex character constants. 12792 These don't provoke an error unfortunately, instead are silently treated 12793 as 'x'. The following induces an error, until -std is added to get 12794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12795 array size at least. It's necessary to write '\x00'==0 to get something 12796 that's true only with -std. */ 12797 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12798 12799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12800 inside strings and character constants. */ 12801 #define FOO(x) 'x' 12802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12803 12804 int test (int i, double x); 12805 struct s1 {int (*f) (int a);}; 12806 struct s2 {int (*f) (double a);}; 12807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12808 int argc; 12809 char **argv; 12810 int 12811 main () 12812 { 12813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12814 ; 12815 return 0; 12816 } 12817 _ACEOF 12818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12820 do 12821 CC="$ac_save_CC $ac_arg" 12822 if ac_fn_c_try_compile "$LINENO"; then : 12823 ac_cv_prog_cc_c89=$ac_arg 12824 fi 12825 rm -f core conftest.err conftest.$ac_objext 12826 test "x$ac_cv_prog_cc_c89" != "xno" && break 12827 done 12828 rm -f conftest.$ac_ext 12829 CC=$ac_save_CC 12830 12831 fi 12832 # AC_CACHE_VAL 12833 case "x$ac_cv_prog_cc_c89" in 12834 x) 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12836 $as_echo "none needed" >&6; } ;; 12837 xno) 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12839 $as_echo "unsupported" >&6; } ;; 12840 *) 12841 CC="$CC $ac_cv_prog_cc_c89" 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12844 esac 12845 if test "x$ac_cv_prog_cc_c89" != xno; then : 12846 12847 fi 12848 12849 ac_ext=c 12850 ac_cpp='$CPP $CPPFLAGS' 12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12854 12855 ac_ext=c 12856 ac_cpp='$CPP $CPPFLAGS' 12857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12859 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12861 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12862 if ${am_cv_prog_cc_c_o+:} false; then : 12863 $as_echo_n "(cached) " >&6 12864 else 12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12866 /* end confdefs.h. */ 12867 12868 int 12869 main () 12870 { 12871 12872 ; 12873 return 0; 12874 } 12875 _ACEOF 12876 # Make sure it works both with $CC and with simple cc. 12877 # Following AC_PROG_CC_C_O, we do the test twice because some 12878 # compilers refuse to overwrite an existing .o file with -o, 12879 # though they will create one. 12880 am_cv_prog_cc_c_o=yes 12881 for am_i in 1 2; do 12882 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12883 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12884 ac_status=$? 12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12886 (exit $ac_status); } \ 12887 && test -f conftest2.$ac_objext; then 12888 : OK 12889 else 12890 am_cv_prog_cc_c_o=no 12891 break 12892 fi 12893 done 12894 rm -f core conftest* 12895 unset am_i 12896 fi 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12898 $as_echo "$am_cv_prog_cc_c_o" >&6; } 12899 if test "$am_cv_prog_cc_c_o" != yes; then 12900 # Losing compiler, so override with the script. 12901 # FIXME: It is wrong to rewrite CC. 12902 # But if we don't then we get into trouble of one sort or another. 12903 # A longer-term fix would be to have automake use am__CC in this case, 12904 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12905 CC="$am_aux_dir/compile $CC" 12906 fi 12907 ac_ext=c 12908 ac_cpp='$CPP $CPPFLAGS' 12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12912 12913 12914 depcc="$CC" am_compiler_list= 12915 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12917 $as_echo_n "checking dependency style of $depcc... " >&6; } 12918 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12919 $as_echo_n "(cached) " >&6 12920 else 12921 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12922 # We make a subdir and do the tests there. Otherwise we can end up 12923 # making bogus files that we don't know about and never remove. For 12924 # instance it was reported that on HP-UX the gcc test will end up 12925 # making a dummy file named 'D' -- because '-MD' means "put the output 12926 # in D". 12927 rm -rf conftest.dir 12928 mkdir conftest.dir 12929 # Copy depcomp to subdir because otherwise we won't find it if we're 12930 # using a relative directory. 12931 cp "$am_depcomp" conftest.dir 12932 cd conftest.dir 12933 # We will build objects and dependencies in a subdirectory because 12934 # it helps to detect inapplicable dependency modes. For instance 12935 # both Tru64's cc and ICC support -MD to output dependencies as a 12936 # side effect of compilation, but ICC will put the dependencies in 12937 # the current directory while Tru64 will put them in the object 12938 # directory. 12939 mkdir sub 12940 12941 am_cv_CC_dependencies_compiler_type=none 12942 if test "$am_compiler_list" = ""; then 12943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12944 fi 12945 am__universal=false 12946 case " $depcc " in #( 12947 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12948 esac 12949 12950 for depmode in $am_compiler_list; do 12951 # Setup a source with many dependencies, because some compilers 12952 # like to wrap large dependency lists on column 80 (with \), and 12953 # we should not choose a depcomp mode which is confused by this. 12954 # 12955 # We need to recreate these files for each test, as the compiler may 12956 # overwrite some of them when testing with obscure command lines. 12957 # This happens at least with the AIX C compiler. 12958 : > sub/conftest.c 12959 for i in 1 2 3 4 5 6; do 12960 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12961 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12962 # Solaris 10 /bin/sh. 12963 echo '/* dummy */' > sub/conftst$i.h 12964 done 12965 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12966 12967 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12968 # mode. It turns out that the SunPro C++ compiler does not properly 12969 # handle '-M -o', and we need to detect this. Also, some Intel 12970 # versions had trouble with output in subdirs. 12971 am__obj=sub/conftest.${OBJEXT-o} 12972 am__minus_obj="-o $am__obj" 12973 case $depmode in 12974 gcc) 12975 # This depmode causes a compiler race in universal mode. 12976 test "$am__universal" = false || continue 12977 ;; 12978 nosideeffect) 12979 # After this tag, mechanisms are not by side-effect, so they'll 12980 # only be used when explicitly requested. 12981 if test "x$enable_dependency_tracking" = xyes; then 12982 continue 12983 else 12984 break 12985 fi 12986 ;; 12987 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12988 # This compiler won't grok '-c -o', but also, the minuso test has 12989 # not run yet. These depmodes are late enough in the game, and 12990 # so weak that their functioning should not be impacted. 12991 am__obj=conftest.${OBJEXT-o} 12992 am__minus_obj= 12993 ;; 12994 none) break ;; 12995 esac 12996 if depmode=$depmode \ 12997 source=sub/conftest.c object=$am__obj \ 12998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12999 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13000 >/dev/null 2>conftest.err && 13001 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13002 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13003 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13004 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13005 # icc doesn't choke on unknown options, it will just issue warnings 13006 # or remarks (even with -Werror). So we grep stderr for any message 13007 # that says an option was ignored or not supported. 13008 # When given -MP, icc 7.0 and 7.1 complain thusly: 13009 # icc: Command line warning: ignoring option '-M'; no argument required 13010 # The diagnosis changed in icc 8.0: 13011 # icc: Command line remark: option '-MP' not supported 13012 if (grep 'ignoring option' conftest.err || 13013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13014 am_cv_CC_dependencies_compiler_type=$depmode 13015 break 13016 fi 13017 fi 13018 done 13019 13020 cd .. 13021 rm -rf conftest.dir 13022 else 13023 am_cv_CC_dependencies_compiler_type=none 13024 fi 13025 13026 fi 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13028 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13029 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13030 13031 if 13032 test "x$enable_dependency_tracking" != xno \ 13033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13034 am__fastdepCC_TRUE= 13035 am__fastdepCC_FALSE='#' 13036 else 13037 am__fastdepCC_TRUE='#' 13038 am__fastdepCC_FALSE= 13039 fi 13040 13041 13042 ac_ext=cpp 13043 ac_cpp='$CXXCPP $CPPFLAGS' 13044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13047 if test -z "$CXX"; then 13048 if test -n "$CCC"; then 13049 CXX=$CCC 13050 else 13051 if test -n "$ac_tool_prefix"; then 13052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13053 do 13054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13057 $as_echo_n "checking for $ac_word... " >&6; } 13058 if ${ac_cv_prog_CXX+:} false; then : 13059 $as_echo_n "(cached) " >&6 13060 else 13061 if test -n "$CXX"; then 13062 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13063 else 13064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13065 for as_dir in $PATH 13066 do 13067 IFS=$as_save_IFS 13068 test -z "$as_dir" && as_dir=. 13069 for ac_exec_ext in '' $ac_executable_extensions; do 13070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13073 break 2 13074 fi 13075 done 13076 done 13077 IFS=$as_save_IFS 13078 13079 fi 13080 fi 13081 CXX=$ac_cv_prog_CXX 13082 if test -n "$CXX"; then 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13084 $as_echo "$CXX" >&6; } 13085 else 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087 $as_echo "no" >&6; } 13088 fi 13089 13090 13091 test -n "$CXX" && break 13092 done 13093 fi 13094 if test -z "$CXX"; then 13095 ac_ct_CXX=$CXX 13096 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13097 do 13098 # Extract the first word of "$ac_prog", so it can be a program name with args. 13099 set dummy $ac_prog; ac_word=$2 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13101 $as_echo_n "checking for $ac_word... " >&6; } 13102 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13103 $as_echo_n "(cached) " >&6 13104 else 13105 if test -n "$ac_ct_CXX"; then 13106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13107 else 13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13109 for as_dir in $PATH 13110 do 13111 IFS=$as_save_IFS 13112 test -z "$as_dir" && as_dir=. 13113 for ac_exec_ext in '' $ac_executable_extensions; do 13114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13115 ac_cv_prog_ac_ct_CXX="$ac_prog" 13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13117 break 2 13118 fi 13119 done 13120 done 13121 IFS=$as_save_IFS 13122 13123 fi 13124 fi 13125 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13126 if test -n "$ac_ct_CXX"; then 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13128 $as_echo "$ac_ct_CXX" >&6; } 13129 else 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13131 $as_echo "no" >&6; } 13132 fi 13133 13134 13135 test -n "$ac_ct_CXX" && break 13136 done 13137 13138 if test "x$ac_ct_CXX" = x; then 13139 CXX="g++" 13140 else 13141 case $cross_compiling:$ac_tool_warned in 13142 yes:) 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13145 ac_tool_warned=yes ;; 13146 esac 13147 CXX=$ac_ct_CXX 13148 fi 13149 fi 13150 13151 fi 13152 fi 13153 # Provide some information about the compiler. 13154 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13155 set X $ac_compile 13156 ac_compiler=$2 13157 for ac_option in --version -v -V -qversion; do 13158 { { ac_try="$ac_compiler $ac_option >&5" 13159 case "(($ac_try" in 13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13161 *) ac_try_echo=$ac_try;; 13162 esac 13163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13164 $as_echo "$ac_try_echo"; } >&5 13165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13166 ac_status=$? 13167 if test -s conftest.err; then 13168 sed '10a\ 13169 ... rest of stderr output deleted ... 13170 10q' conftest.err >conftest.er1 13171 cat conftest.er1 >&5 13172 fi 13173 rm -f conftest.er1 conftest.err 13174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13175 test $ac_status = 0; } 13176 done 13177 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13179 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13180 if ${ac_cv_cxx_compiler_gnu+:} false; then : 13181 $as_echo_n "(cached) " >&6 13182 else 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184 /* end confdefs.h. */ 13185 13186 int 13187 main () 13188 { 13189 #ifndef __GNUC__ 13190 choke me 13191 #endif 13192 13193 ; 13194 return 0; 13195 } 13196 _ACEOF 13197 if ac_fn_cxx_try_compile "$LINENO"; then : 13198 ac_compiler_gnu=yes 13199 else 13200 ac_compiler_gnu=no 13201 fi 13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13203 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13204 13205 fi 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13207 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13208 if test $ac_compiler_gnu = yes; then 13209 GXX=yes 13210 else 13211 GXX= 13212 fi 13213 ac_test_CXXFLAGS=${CXXFLAGS+set} 13214 ac_save_CXXFLAGS=$CXXFLAGS 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13216 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 13217 if ${ac_cv_prog_cxx_g+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219 else 13220 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13221 ac_cxx_werror_flag=yes 13222 ac_cv_prog_cxx_g=no 13223 CXXFLAGS="-g" 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225 /* end confdefs.h. */ 13226 13227 int 13228 main () 13229 { 13230 13231 ; 13232 return 0; 13233 } 13234 _ACEOF 13235 if ac_fn_cxx_try_compile "$LINENO"; then : 13236 ac_cv_prog_cxx_g=yes 13237 else 13238 CXXFLAGS="" 13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13240 /* end confdefs.h. */ 13241 13242 int 13243 main () 13244 { 13245 13246 ; 13247 return 0; 13248 } 13249 _ACEOF 13250 if ac_fn_cxx_try_compile "$LINENO"; then : 13251 13252 else 13253 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13254 CXXFLAGS="-g" 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256 /* end confdefs.h. */ 13257 13258 int 13259 main () 13260 { 13261 13262 ; 13263 return 0; 13264 } 13265 _ACEOF 13266 if ac_fn_cxx_try_compile "$LINENO"; then : 13267 ac_cv_prog_cxx_g=yes 13268 fi 13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13270 fi 13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13272 fi 13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13275 fi 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13277 $as_echo "$ac_cv_prog_cxx_g" >&6; } 13278 if test "$ac_test_CXXFLAGS" = set; then 13279 CXXFLAGS=$ac_save_CXXFLAGS 13280 elif test $ac_cv_prog_cxx_g = yes; then 13281 if test "$GXX" = yes; then 13282 CXXFLAGS="-g -O2" 13283 else 13284 CXXFLAGS="-g" 13285 fi 13286 else 13287 if test "$GXX" = yes; then 13288 CXXFLAGS="-O2" 13289 else 13290 CXXFLAGS= 13291 fi 13292 fi 13293 ac_ext=c 13294 ac_cpp='$CPP $CPPFLAGS' 13295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13297 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13298 13299 depcc="$CXX" am_compiler_list= 13300 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13302 $as_echo_n "checking dependency style of $depcc... " >&6; } 13303 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305 else 13306 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13307 # We make a subdir and do the tests there. Otherwise we can end up 13308 # making bogus files that we don't know about and never remove. For 13309 # instance it was reported that on HP-UX the gcc test will end up 13310 # making a dummy file named 'D' -- because '-MD' means "put the output 13311 # in D". 13312 rm -rf conftest.dir 13313 mkdir conftest.dir 13314 # Copy depcomp to subdir because otherwise we won't find it if we're 13315 # using a relative directory. 13316 cp "$am_depcomp" conftest.dir 13317 cd conftest.dir 13318 # We will build objects and dependencies in a subdirectory because 13319 # it helps to detect inapplicable dependency modes. For instance 13320 # both Tru64's cc and ICC support -MD to output dependencies as a 13321 # side effect of compilation, but ICC will put the dependencies in 13322 # the current directory while Tru64 will put them in the object 13323 # directory. 13324 mkdir sub 13325 13326 am_cv_CXX_dependencies_compiler_type=none 13327 if test "$am_compiler_list" = ""; then 13328 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13329 fi 13330 am__universal=false 13331 case " $depcc " in #( 13332 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13333 esac 13334 13335 for depmode in $am_compiler_list; do 13336 # Setup a source with many dependencies, because some compilers 13337 # like to wrap large dependency lists on column 80 (with \), and 13338 # we should not choose a depcomp mode which is confused by this. 13339 # 13340 # We need to recreate these files for each test, as the compiler may 13341 # overwrite some of them when testing with obscure command lines. 13342 # This happens at least with the AIX C compiler. 13343 : > sub/conftest.c 13344 for i in 1 2 3 4 5 6; do 13345 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13346 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13347 # Solaris 10 /bin/sh. 13348 echo '/* dummy */' > sub/conftst$i.h 13349 done 13350 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13351 13352 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13353 # mode. It turns out that the SunPro C++ compiler does not properly 13354 # handle '-M -o', and we need to detect this. Also, some Intel 13355 # versions had trouble with output in subdirs. 13356 am__obj=sub/conftest.${OBJEXT-o} 13357 am__minus_obj="-o $am__obj" 13358 case $depmode in 13359 gcc) 13360 # This depmode causes a compiler race in universal mode. 13361 test "$am__universal" = false || continue 13362 ;; 13363 nosideeffect) 13364 # After this tag, mechanisms are not by side-effect, so they'll 13365 # only be used when explicitly requested. 13366 if test "x$enable_dependency_tracking" = xyes; then 13367 continue 13368 else 13369 break 13370 fi 13371 ;; 13372 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13373 # This compiler won't grok '-c -o', but also, the minuso test has 13374 # not run yet. These depmodes are late enough in the game, and 13375 # so weak that their functioning should not be impacted. 13376 am__obj=conftest.${OBJEXT-o} 13377 am__minus_obj= 13378 ;; 13379 none) break ;; 13380 esac 13381 if depmode=$depmode \ 13382 source=sub/conftest.c object=$am__obj \ 13383 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13384 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13385 >/dev/null 2>conftest.err && 13386 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13387 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13388 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13389 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13390 # icc doesn't choke on unknown options, it will just issue warnings 13391 # or remarks (even with -Werror). So we grep stderr for any message 13392 # that says an option was ignored or not supported. 13393 # When given -MP, icc 7.0 and 7.1 complain thusly: 13394 # icc: Command line warning: ignoring option '-M'; no argument required 13395 # The diagnosis changed in icc 8.0: 13396 # icc: Command line remark: option '-MP' not supported 13397 if (grep 'ignoring option' conftest.err || 13398 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13399 am_cv_CXX_dependencies_compiler_type=$depmode 13400 break 13401 fi 13402 fi 13403 done 13404 13405 cd .. 13406 rm -rf conftest.dir 13407 else 13408 am_cv_CXX_dependencies_compiler_type=none 13409 fi 13410 13411 fi 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13413 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13414 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13415 13416 if 13417 test "x$enable_dependency_tracking" != xno \ 13418 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13419 am__fastdepCXX_TRUE= 13420 am__fastdepCXX_FALSE='#' 13421 else 13422 am__fastdepCXX_TRUE='#' 13423 am__fastdepCXX_FALSE= 13424 fi 13425 13426 13427 13428 13429 func_stripname_cnf () 13430 { 13431 case $2 in 13432 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13433 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13434 esac 13435 } # func_stripname_cnf 13436 13437 if test -n "$CXX" && ( test no != "$CXX" && 13438 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13439 (test g++ != "$CXX"))); then 13440 ac_ext=cpp 13441 ac_cpp='$CXXCPP $CPPFLAGS' 13442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13446 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13447 if test -z "$CXXCPP"; then 13448 if ${ac_cv_prog_CXXCPP+:} false; then : 13449 $as_echo_n "(cached) " >&6 13450 else 13451 # Double quotes because CXXCPP needs to be expanded 13452 for CXXCPP in "$CXX -E" "/lib/cpp" 13453 do 13454 ac_preproc_ok=false 13455 for ac_cxx_preproc_warn_flag in '' yes 13456 do 13457 # Use a header file that comes with gcc, so configuring glibc 13458 # with a fresh cross-compiler works. 13459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13460 # <limits.h> exists even on freestanding compilers. 13461 # On the NeXT, cc -E runs the code through the compiler's parser, 13462 # not just through cpp. "Syntax error" is here to catch this case. 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464 /* end confdefs.h. */ 13465 #ifdef __STDC__ 13466 # include <limits.h> 13467 #else 13468 # include <assert.h> 13469 #endif 13470 Syntax error 13471 _ACEOF 13472 if ac_fn_cxx_try_cpp "$LINENO"; then : 13473 13474 else 13475 # Broken: fails on valid input. 13476 continue 13477 fi 13478 rm -f conftest.err conftest.i conftest.$ac_ext 13479 13480 # OK, works on sane cases. Now check whether nonexistent headers 13481 # can be detected and how. 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483 /* end confdefs.h. */ 13484 #include <ac_nonexistent.h> 13485 _ACEOF 13486 if ac_fn_cxx_try_cpp "$LINENO"; then : 13487 # Broken: success on invalid input. 13488 continue 13489 else 13490 # Passes both tests. 13491 ac_preproc_ok=: 13492 break 13493 fi 13494 rm -f conftest.err conftest.i conftest.$ac_ext 13495 13496 done 13497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13498 rm -f conftest.i conftest.err conftest.$ac_ext 13499 if $ac_preproc_ok; then : 13500 break 13501 fi 13502 13503 done 13504 ac_cv_prog_CXXCPP=$CXXCPP 13505 13506 fi 13507 CXXCPP=$ac_cv_prog_CXXCPP 13508 else 13509 ac_cv_prog_CXXCPP=$CXXCPP 13510 fi 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13512 $as_echo "$CXXCPP" >&6; } 13513 ac_preproc_ok=false 13514 for ac_cxx_preproc_warn_flag in '' yes 13515 do 13516 # Use a header file that comes with gcc, so configuring glibc 13517 # with a fresh cross-compiler works. 13518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13519 # <limits.h> exists even on freestanding compilers. 13520 # On the NeXT, cc -E runs the code through the compiler's parser, 13521 # not just through cpp. "Syntax error" is here to catch this case. 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13523 /* end confdefs.h. */ 13524 #ifdef __STDC__ 13525 # include <limits.h> 13526 #else 13527 # include <assert.h> 13528 #endif 13529 Syntax error 13530 _ACEOF 13531 if ac_fn_cxx_try_cpp "$LINENO"; then : 13532 13533 else 13534 # Broken: fails on valid input. 13535 continue 13536 fi 13537 rm -f conftest.err conftest.i conftest.$ac_ext 13538 13539 # OK, works on sane cases. Now check whether nonexistent headers 13540 # can be detected and how. 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542 /* end confdefs.h. */ 13543 #include <ac_nonexistent.h> 13544 _ACEOF 13545 if ac_fn_cxx_try_cpp "$LINENO"; then : 13546 # Broken: success on invalid input. 13547 continue 13548 else 13549 # Passes both tests. 13550 ac_preproc_ok=: 13551 break 13552 fi 13553 rm -f conftest.err conftest.i conftest.$ac_ext 13554 13555 done 13556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13557 rm -f conftest.i conftest.err conftest.$ac_ext 13558 if $ac_preproc_ok; then : 13559 13560 else 13561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13563 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13564 See \`config.log' for more details" "$LINENO" 5; } 13565 fi 13566 13567 ac_ext=c 13568 ac_cpp='$CPP $CPPFLAGS' 13569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13571 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13572 13573 else 13574 _lt_caught_CXX_error=yes 13575 fi 13576 13577 ac_ext=cpp 13578 ac_cpp='$CXXCPP $CPPFLAGS' 13579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13582 13583 archive_cmds_need_lc_CXX=no 13584 allow_undefined_flag_CXX= 13585 always_export_symbols_CXX=no 13586 archive_expsym_cmds_CXX= 13587 compiler_needs_object_CXX=no 13588 export_dynamic_flag_spec_CXX= 13589 hardcode_direct_CXX=no 13590 hardcode_direct_absolute_CXX=no 13591 hardcode_libdir_flag_spec_CXX= 13592 hardcode_libdir_separator_CXX= 13593 hardcode_minus_L_CXX=no 13594 hardcode_shlibpath_var_CXX=unsupported 13595 hardcode_automatic_CXX=no 13596 inherit_rpath_CXX=no 13597 module_cmds_CXX= 13598 module_expsym_cmds_CXX= 13599 link_all_deplibs_CXX=unknown 13600 old_archive_cmds_CXX=$old_archive_cmds 13601 reload_flag_CXX=$reload_flag 13602 reload_cmds_CXX=$reload_cmds 13603 no_undefined_flag_CXX= 13604 whole_archive_flag_spec_CXX= 13605 enable_shared_with_static_runtimes_CXX=no 13606 13607 # Source file extension for C++ test sources. 13608 ac_ext=cpp 13609 13610 # Object file extension for compiled C++ test sources. 13611 objext=o 13612 objext_CXX=$objext 13613 13614 # No sense in running all these tests if we already determined that 13615 # the CXX compiler isn't working. Some variables (like enable_shared) 13616 # are currently assumed to apply to all compilers on this platform, 13617 # and will be corrupted by setting them based on a non-working compiler. 13618 if test yes != "$_lt_caught_CXX_error"; then 13619 # Code to be used in simple compile tests 13620 lt_simple_compile_test_code="int some_variable = 0;" 13621 13622 # Code to be used in simple link tests 13623 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13624 13625 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13626 13627 13628 13629 13630 13631 13632 # If no C compiler was specified, use CC. 13633 LTCC=${LTCC-"$CC"} 13634 13635 # If no C compiler flags were specified, use CFLAGS. 13636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13637 13638 # Allow CC to be a program name with arguments. 13639 compiler=$CC 13640 13641 13642 # save warnings/boilerplate of simple test code 13643 ac_outfile=conftest.$ac_objext 13644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13646 _lt_compiler_boilerplate=`cat conftest.err` 13647 $RM conftest* 13648 13649 ac_outfile=conftest.$ac_objext 13650 echo "$lt_simple_link_test_code" >conftest.$ac_ext 13651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13652 _lt_linker_boilerplate=`cat conftest.err` 13653 $RM -r conftest* 13654 13655 13656 # Allow CC to be a program name with arguments. 13657 lt_save_CC=$CC 13658 lt_save_CFLAGS=$CFLAGS 13659 lt_save_LD=$LD 13660 lt_save_GCC=$GCC 13661 GCC=$GXX 13662 lt_save_with_gnu_ld=$with_gnu_ld 13663 lt_save_path_LD=$lt_cv_path_LD 13664 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13665 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13666 else 13667 $as_unset lt_cv_prog_gnu_ld 13668 fi 13669 if test -n "${lt_cv_path_LDCXX+set}"; then 13670 lt_cv_path_LD=$lt_cv_path_LDCXX 13671 else 13672 $as_unset lt_cv_path_LD 13673 fi 13674 test -z "${LDCXX+set}" || LD=$LDCXX 13675 CC=${CXX-"c++"} 13676 CFLAGS=$CXXFLAGS 13677 compiler=$CC 13678 compiler_CXX=$CC 13679 func_cc_basename $compiler 13680 cc_basename=$func_cc_basename_result 13681 13682 13683 if test -n "$compiler"; then 13684 # We don't want -fno-exception when compiling C++ code, so set the 13685 # no_builtin_flag separately 13686 if test yes = "$GXX"; then 13687 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13688 else 13689 lt_prog_compiler_no_builtin_flag_CXX= 13690 fi 13691 13692 if test yes = "$GXX"; then 13693 # Set up default GNU C++ configuration 13694 13695 13696 13697 # Check whether --with-gnu-ld was given. 13698 if test "${with_gnu_ld+set}" = set; then : 13699 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13700 else 13701 with_gnu_ld=no 13702 fi 13703 13704 ac_prog=ld 13705 if test yes = "$GCC"; then 13706 # Check if gcc -print-prog-name=ld gives a path. 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13708 $as_echo_n "checking for ld used by $CC... " >&6; } 13709 case $host in 13710 *-*-mingw*) 13711 # gcc leaves a trailing carriage return, which upsets mingw 13712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13713 *) 13714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13715 esac 13716 case $ac_prog in 13717 # Accept absolute paths. 13718 [\\/]* | ?:[\\/]*) 13719 re_direlt='/[^/][^/]*/\.\./' 13720 # Canonicalize the pathname of ld 13721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13724 done 13725 test -z "$LD" && LD=$ac_prog 13726 ;; 13727 "") 13728 # If it fails, then pretend we aren't using GCC. 13729 ac_prog=ld 13730 ;; 13731 *) 13732 # If it is relative, then search for the first ld in PATH. 13733 with_gnu_ld=unknown 13734 ;; 13735 esac 13736 elif test yes = "$with_gnu_ld"; then 13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13738 $as_echo_n "checking for GNU ld... " >&6; } 13739 else 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13741 $as_echo_n "checking for non-GNU ld... " >&6; } 13742 fi 13743 if ${lt_cv_path_LD+:} false; then : 13744 $as_echo_n "(cached) " >&6 13745 else 13746 if test -z "$LD"; then 13747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13748 for ac_dir in $PATH; do 13749 IFS=$lt_save_ifs 13750 test -z "$ac_dir" && ac_dir=. 13751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13752 lt_cv_path_LD=$ac_dir/$ac_prog 13753 # Check to see if the program is GNU ld. I'd rather use --version, 13754 # but apparently some variants of GNU ld only accept -v. 13755 # Break only if it was the GNU/non-GNU ld that we prefer. 13756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13757 *GNU* | *'with BFD'*) 13758 test no != "$with_gnu_ld" && break 13759 ;; 13760 *) 13761 test yes != "$with_gnu_ld" && break 13762 ;; 13763 esac 13764 fi 13765 done 13766 IFS=$lt_save_ifs 13767 else 13768 lt_cv_path_LD=$LD # Let the user override the test with a path. 13769 fi 13770 fi 13771 13772 LD=$lt_cv_path_LD 13773 if test -n "$LD"; then 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13775 $as_echo "$LD" >&6; } 13776 else 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13778 $as_echo "no" >&6; } 13779 fi 13780 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13782 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13783 if ${lt_cv_prog_gnu_ld+:} false; then : 13784 $as_echo_n "(cached) " >&6 13785 else 13786 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13787 case `$LD -v 2>&1 </dev/null` in 13788 *GNU* | *'with BFD'*) 13789 lt_cv_prog_gnu_ld=yes 13790 ;; 13791 *) 13792 lt_cv_prog_gnu_ld=no 13793 ;; 13794 esac 13795 fi 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13797 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 13798 with_gnu_ld=$lt_cv_prog_gnu_ld 13799 13800 13801 13802 13803 13804 13805 13806 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13807 # archiving commands below assume that GNU ld is being used. 13808 if test yes = "$with_gnu_ld"; then 13809 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13810 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13811 13812 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13813 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13814 13815 # If archive_cmds runs LD, not CC, wlarc should be empty 13816 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13817 # investigate it a little bit more. (MM) 13818 wlarc='$wl' 13819 13820 # ancient GNU ld didn't support --whole-archive et. al. 13821 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13822 $GREP 'no-whole-archive' > /dev/null; then 13823 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13824 else 13825 whole_archive_flag_spec_CXX= 13826 fi 13827 else 13828 with_gnu_ld=no 13829 wlarc= 13830 13831 # A generic and very simple default shared library creation 13832 # command for GNU C++ for the case where it uses the native 13833 # linker, instead of GNU ld. If possible, this setting should 13834 # overridden to take advantage of the native linker features on 13835 # the platform it is being used on. 13836 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13837 fi 13838 13839 # Commands to make compiler produce verbose output that lists 13840 # what "hidden" libraries, object files and flags are used when 13841 # linking a shared library. 13842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13843 13844 else 13845 GXX=no 13846 with_gnu_ld=no 13847 wlarc= 13848 fi 13849 13850 # PORTME: fill in a description of your system's C++ link characteristics 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13853 ld_shlibs_CXX=yes 13854 case $host_os in 13855 aix3*) 13856 # FIXME: insert proper C++ library support 13857 ld_shlibs_CXX=no 13858 ;; 13859 aix[4-9]*) 13860 if test ia64 = "$host_cpu"; then 13861 # On IA64, the linker does run time linking by default, so we don't 13862 # have to do anything special. 13863 aix_use_runtimelinking=no 13864 exp_sym_flag='-Bexport' 13865 no_entry_flag= 13866 else 13867 aix_use_runtimelinking=no 13868 13869 # Test if we are trying to use run time linking or normal 13870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13871 # have runtime linking enabled, and use it for executables. 13872 # For shared libraries, we enable/disable runtime linking 13873 # depending on the kind of the shared library created - 13874 # when "with_aix_soname,aix_use_runtimelinking" is: 13875 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13876 # "aix,yes" lib.so shared, rtl:yes, for executables 13877 # lib.a static archive 13878 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13879 # lib.a(lib.so.V) shared, rtl:no, for executables 13880 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13881 # lib.a(lib.so.V) shared, rtl:no 13882 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13883 # lib.a static archive 13884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13885 for ld_flag in $LDFLAGS; do 13886 case $ld_flag in 13887 *-brtl*) 13888 aix_use_runtimelinking=yes 13889 break 13890 ;; 13891 esac 13892 done 13893 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13894 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13895 # so we don't have lib.a shared libs to link our executables. 13896 # We have to force runtime linking in this case. 13897 aix_use_runtimelinking=yes 13898 LDFLAGS="$LDFLAGS -Wl,-brtl" 13899 fi 13900 ;; 13901 esac 13902 13903 exp_sym_flag='-bexport' 13904 no_entry_flag='-bnoentry' 13905 fi 13906 13907 # When large executables or shared objects are built, AIX ld can 13908 # have problems creating the table of contents. If linking a library 13909 # or program results in "error TOC overflow" add -mminimal-toc to 13910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13912 13913 archive_cmds_CXX='' 13914 hardcode_direct_CXX=yes 13915 hardcode_direct_absolute_CXX=yes 13916 hardcode_libdir_separator_CXX=':' 13917 link_all_deplibs_CXX=yes 13918 file_list_spec_CXX='$wl-f,' 13919 case $with_aix_soname,$aix_use_runtimelinking in 13920 aix,*) ;; # no import file 13921 svr4,* | *,yes) # use import file 13922 # The Import File defines what to hardcode. 13923 hardcode_direct_CXX=no 13924 hardcode_direct_absolute_CXX=no 13925 ;; 13926 esac 13927 13928 if test yes = "$GXX"; then 13929 case $host_os in aix4.[012]|aix4.[012].*) 13930 # We only want to do this on AIX 4.2 and lower, the check 13931 # below for broken collect2 doesn't work under 4.3+ 13932 collect2name=`$CC -print-prog-name=collect2` 13933 if test -f "$collect2name" && 13934 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13935 then 13936 # We have reworked collect2 13937 : 13938 else 13939 # We have old collect2 13940 hardcode_direct_CXX=unsupported 13941 # It fails to find uninstalled libraries when the uninstalled 13942 # path is not listed in the libpath. Setting hardcode_minus_L 13943 # to unsupported forces relinking 13944 hardcode_minus_L_CXX=yes 13945 hardcode_libdir_flag_spec_CXX='-L$libdir' 13946 hardcode_libdir_separator_CXX= 13947 fi 13948 esac 13949 shared_flag='-shared' 13950 if test yes = "$aix_use_runtimelinking"; then 13951 shared_flag=$shared_flag' $wl-G' 13952 fi 13953 # Need to ensure runtime linking is disabled for the traditional 13954 # shared library, or the linker may eventually find shared libraries 13955 # /with/ Import File - we do not want to mix them. 13956 shared_flag_aix='-shared' 13957 shared_flag_svr4='-shared $wl-G' 13958 else 13959 # not using gcc 13960 if test ia64 = "$host_cpu"; then 13961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13962 # chokes on -Wl,-G. The following line is correct: 13963 shared_flag='-G' 13964 else 13965 if test yes = "$aix_use_runtimelinking"; then 13966 shared_flag='$wl-G' 13967 else 13968 shared_flag='$wl-bM:SRE' 13969 fi 13970 shared_flag_aix='$wl-bM:SRE' 13971 shared_flag_svr4='$wl-G' 13972 fi 13973 fi 13974 13975 export_dynamic_flag_spec_CXX='$wl-bexpall' 13976 # It seems that -bexpall does not export symbols beginning with 13977 # underscore (_), so it is better to generate a list of symbols to 13978 # export. 13979 always_export_symbols_CXX=yes 13980 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13981 # Warning - without using the other runtime loading flags (-brtl), 13982 # -berok will link without error, but may produce a broken library. 13983 # The "-G" linker flag allows undefined symbols. 13984 no_undefined_flag_CXX='-bernotok' 13985 # Determine the default libpath from the value encoded in an empty 13986 # executable. 13987 if test set = "${lt_cv_aix_libpath+set}"; then 13988 aix_libpath=$lt_cv_aix_libpath 13989 else 13990 if ${lt_cv_aix_libpath__CXX+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992 else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994 /* end confdefs.h. */ 13995 13996 int 13997 main () 13998 { 13999 14000 ; 14001 return 0; 14002 } 14003 _ACEOF 14004 if ac_fn_cxx_try_link "$LINENO"; then : 14005 14006 lt_aix_libpath_sed=' 14007 /Import File Strings/,/^$/ { 14008 /^0/ { 14009 s/^0 *\([^ ]*\) *$/\1/ 14010 p 14011 } 14012 }' 14013 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14014 # Check for a 64-bit object if we didn't find anything. 14015 if test -z "$lt_cv_aix_libpath__CXX"; then 14016 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14017 fi 14018 fi 14019 rm -f core conftest.err conftest.$ac_objext \ 14020 conftest$ac_exeext conftest.$ac_ext 14021 if test -z "$lt_cv_aix_libpath__CXX"; then 14022 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14023 fi 14024 14025 fi 14026 14027 aix_libpath=$lt_cv_aix_libpath__CXX 14028 fi 14029 14030 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14031 14032 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14033 else 14034 if test ia64 = "$host_cpu"; then 14035 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14036 allow_undefined_flag_CXX="-z nodefs" 14037 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 14038 else 14039 # Determine the default libpath from the value encoded in an 14040 # empty executable. 14041 if test set = "${lt_cv_aix_libpath+set}"; then 14042 aix_libpath=$lt_cv_aix_libpath 14043 else 14044 if ${lt_cv_aix_libpath__CXX+:} false; then : 14045 $as_echo_n "(cached) " >&6 14046 else 14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048 /* end confdefs.h. */ 14049 14050 int 14051 main () 14052 { 14053 14054 ; 14055 return 0; 14056 } 14057 _ACEOF 14058 if ac_fn_cxx_try_link "$LINENO"; then : 14059 14060 lt_aix_libpath_sed=' 14061 /Import File Strings/,/^$/ { 14062 /^0/ { 14063 s/^0 *\([^ ]*\) *$/\1/ 14064 p 14065 } 14066 }' 14067 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14068 # Check for a 64-bit object if we didn't find anything. 14069 if test -z "$lt_cv_aix_libpath__CXX"; then 14070 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14071 fi 14072 fi 14073 rm -f core conftest.err conftest.$ac_objext \ 14074 conftest$ac_exeext conftest.$ac_ext 14075 if test -z "$lt_cv_aix_libpath__CXX"; then 14076 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14077 fi 14078 14079 fi 14080 14081 aix_libpath=$lt_cv_aix_libpath__CXX 14082 fi 14083 14084 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14085 # Warning - without using the other run time loading flags, 14086 # -berok will link without error, but may produce a broken library. 14087 no_undefined_flag_CXX=' $wl-bernotok' 14088 allow_undefined_flag_CXX=' $wl-berok' 14089 if test yes = "$with_gnu_ld"; then 14090 # We only use this code for GNU lds that support --whole-archive. 14091 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14092 else 14093 # Exported symbols can be pulled into shared objects from archives 14094 whole_archive_flag_spec_CXX='$convenience' 14095 fi 14096 archive_cmds_need_lc_CXX=yes 14097 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14098 # -brtl affects multiple linker settings, -berok does not and is overridden later 14099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14100 if test svr4 != "$with_aix_soname"; then 14101 # This is similar to how AIX traditionally builds its shared 14102 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14103 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14104 fi 14105 if test aix != "$with_aix_soname"; then 14106 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14107 else 14108 # used by -dlpreopen to get the symbols 14109 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14110 fi 14111 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14112 fi 14113 fi 14114 ;; 14115 14116 beos*) 14117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14118 allow_undefined_flag_CXX=unsupported 14119 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14120 # support --undefined. This deserves some investigation. FIXME 14121 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14122 else 14123 ld_shlibs_CXX=no 14124 fi 14125 ;; 14126 14127 chorus*) 14128 case $cc_basename in 14129 *) 14130 # FIXME: insert proper C++ library support 14131 ld_shlibs_CXX=no 14132 ;; 14133 esac 14134 ;; 14135 14136 cygwin* | mingw* | pw32* | cegcc*) 14137 case $GXX,$cc_basename in 14138 ,cl* | no,cl*) 14139 # Native MSVC 14140 # hardcode_libdir_flag_spec is actually meaningless, as there is 14141 # no search path for DLLs. 14142 hardcode_libdir_flag_spec_CXX=' ' 14143 allow_undefined_flag_CXX=unsupported 14144 always_export_symbols_CXX=yes 14145 file_list_spec_CXX='@' 14146 # Tell ltmain to make .lib files, not .a files. 14147 libext=lib 14148 # Tell ltmain to make .dll files, not .so files. 14149 shrext_cmds=.dll 14150 # FIXME: Setting linknames here is a bad hack. 14151 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14152 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14153 cp "$export_symbols" "$output_objdir/$soname.def"; 14154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14155 else 14156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14157 fi~ 14158 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14159 linknames=' 14160 # The linker will not automatically build a static lib if we build a DLL. 14161 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14162 enable_shared_with_static_runtimes_CXX=yes 14163 # Don't use ranlib 14164 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14165 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14166 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14167 case $lt_outputfile in 14168 *.exe|*.EXE) ;; 14169 *) 14170 lt_outputfile=$lt_outputfile.exe 14171 lt_tool_outputfile=$lt_tool_outputfile.exe 14172 ;; 14173 esac~ 14174 func_to_tool_file "$lt_outputfile"~ 14175 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14176 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14177 $RM "$lt_outputfile.manifest"; 14178 fi' 14179 ;; 14180 *) 14181 # g++ 14182 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14183 # as there is no search path for DLLs. 14184 hardcode_libdir_flag_spec_CXX='-L$libdir' 14185 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14186 allow_undefined_flag_CXX=unsupported 14187 always_export_symbols_CXX=no 14188 enable_shared_with_static_runtimes_CXX=yes 14189 14190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14192 # If the export-symbols file already is a .def file, use it as 14193 # is; otherwise, prepend EXPORTS... 14194 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14195 cp $export_symbols $output_objdir/$soname.def; 14196 else 14197 echo EXPORTS > $output_objdir/$soname.def; 14198 cat $export_symbols >> $output_objdir/$soname.def; 14199 fi~ 14200 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14201 else 14202 ld_shlibs_CXX=no 14203 fi 14204 ;; 14205 esac 14206 ;; 14207 darwin* | rhapsody*) 14208 14209 14210 archive_cmds_need_lc_CXX=no 14211 hardcode_direct_CXX=no 14212 hardcode_automatic_CXX=yes 14213 hardcode_shlibpath_var_CXX=unsupported 14214 if test yes = "$lt_cv_ld_force_load"; then 14215 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14216 14217 else 14218 whole_archive_flag_spec_CXX='' 14219 fi 14220 link_all_deplibs_CXX=yes 14221 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14222 case $cc_basename in 14223 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14224 *) _lt_dar_can_shared=$GCC ;; 14225 esac 14226 if test yes = "$_lt_dar_can_shared"; then 14227 output_verbose_link_cmd=func_echo_all 14228 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14229 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14230 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 14231 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 14232 if test yes != "$lt_cv_apple_cc_single_mod"; then 14233 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14234 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14235 fi 14236 14237 else 14238 ld_shlibs_CXX=no 14239 fi 14240 14241 ;; 14242 14243 os2*) 14244 hardcode_libdir_flag_spec_CXX='-L$libdir' 14245 hardcode_minus_L_CXX=yes 14246 allow_undefined_flag_CXX=unsupported 14247 shrext_cmds=.dll 14248 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14251 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14254 emximp -o $lib $output_objdir/$libname.def' 14255 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14258 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14259 prefix_cmds="$SED"~ 14260 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14261 prefix_cmds="$prefix_cmds -e 1d"; 14262 fi~ 14263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14266 emximp -o $lib $output_objdir/$libname.def' 14267 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14268 enable_shared_with_static_runtimes_CXX=yes 14269 ;; 14270 14271 dgux*) 14272 case $cc_basename in 14273 ec++*) 14274 # FIXME: insert proper C++ library support 14275 ld_shlibs_CXX=no 14276 ;; 14277 ghcx*) 14278 # Green Hills C++ Compiler 14279 # FIXME: insert proper C++ library support 14280 ld_shlibs_CXX=no 14281 ;; 14282 *) 14283 # FIXME: insert proper C++ library support 14284 ld_shlibs_CXX=no 14285 ;; 14286 esac 14287 ;; 14288 14289 freebsd2.*) 14290 # C++ shared libraries reported to be fairly broken before 14291 # switch to ELF 14292 ld_shlibs_CXX=no 14293 ;; 14294 14295 freebsd-elf*) 14296 archive_cmds_need_lc_CXX=no 14297 ;; 14298 14299 freebsd* | dragonfly*) 14300 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14301 # conventions 14302 ld_shlibs_CXX=yes 14303 ;; 14304 14305 haiku*) 14306 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14307 link_all_deplibs_CXX=yes 14308 ;; 14309 14310 hpux9*) 14311 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14312 hardcode_libdir_separator_CXX=: 14313 export_dynamic_flag_spec_CXX='$wl-E' 14314 hardcode_direct_CXX=yes 14315 hardcode_minus_L_CXX=yes # Not in the search PATH, 14316 # but as the default 14317 # location of the library. 14318 14319 case $cc_basename in 14320 CC*) 14321 # FIXME: insert proper C++ library support 14322 ld_shlibs_CXX=no 14323 ;; 14324 aCC*) 14325 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14326 # Commands to make compiler produce verbose output that lists 14327 # what "hidden" libraries, object files and flags are used when 14328 # linking a shared library. 14329 # 14330 # There doesn't appear to be a way to prevent this compiler from 14331 # explicitly linking system object files so we need to strip them 14332 # from the output so that they don't get included in the library 14333 # dependencies. 14334 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14335 ;; 14336 *) 14337 if test yes = "$GXX"; then 14338 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14339 else 14340 # FIXME: insert proper C++ library support 14341 ld_shlibs_CXX=no 14342 fi 14343 ;; 14344 esac 14345 ;; 14346 14347 hpux10*|hpux11*) 14348 if test no = "$with_gnu_ld"; then 14349 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14350 hardcode_libdir_separator_CXX=: 14351 14352 case $host_cpu in 14353 hppa*64*|ia64*) 14354 ;; 14355 *) 14356 export_dynamic_flag_spec_CXX='$wl-E' 14357 ;; 14358 esac 14359 fi 14360 case $host_cpu in 14361 hppa*64*|ia64*) 14362 hardcode_direct_CXX=no 14363 hardcode_shlibpath_var_CXX=no 14364 ;; 14365 *) 14366 hardcode_direct_CXX=yes 14367 hardcode_direct_absolute_CXX=yes 14368 hardcode_minus_L_CXX=yes # Not in the search PATH, 14369 # but as the default 14370 # location of the library. 14371 ;; 14372 esac 14373 14374 case $cc_basename in 14375 CC*) 14376 # FIXME: insert proper C++ library support 14377 ld_shlibs_CXX=no 14378 ;; 14379 aCC*) 14380 case $host_cpu in 14381 hppa*64*) 14382 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14383 ;; 14384 ia64*) 14385 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14386 ;; 14387 *) 14388 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14389 ;; 14390 esac 14391 # Commands to make compiler produce verbose output that lists 14392 # what "hidden" libraries, object files and flags are used when 14393 # linking a shared library. 14394 # 14395 # There doesn't appear to be a way to prevent this compiler from 14396 # explicitly linking system object files so we need to strip them 14397 # from the output so that they don't get included in the library 14398 # dependencies. 14399 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14400 ;; 14401 *) 14402 if test yes = "$GXX"; then 14403 if test no = "$with_gnu_ld"; then 14404 case $host_cpu in 14405 hppa*64*) 14406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14407 ;; 14408 ia64*) 14409 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14410 ;; 14411 *) 14412 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14413 ;; 14414 esac 14415 fi 14416 else 14417 # FIXME: insert proper C++ library support 14418 ld_shlibs_CXX=no 14419 fi 14420 ;; 14421 esac 14422 ;; 14423 14424 interix[3-9]*) 14425 hardcode_direct_CXX=no 14426 hardcode_shlibpath_var_CXX=no 14427 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14428 export_dynamic_flag_spec_CXX='$wl-E' 14429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14430 # Instead, shared libraries are loaded at an image base (0x10000000 by 14431 # default) and relocated if they conflict, which is a slow very memory 14432 # consuming and fragmenting process. To avoid this, we pick a random, 14433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14434 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14435 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14436 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14437 ;; 14438 irix5* | irix6*) 14439 case $cc_basename in 14440 CC*) 14441 # SGI C++ 14442 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14443 14444 # Archives containing C++ object files must be created using 14445 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14446 # necessary to make sure instantiated templates are included 14447 # in the archive. 14448 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14449 ;; 14450 *) 14451 if test yes = "$GXX"; then 14452 if test no = "$with_gnu_ld"; then 14453 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14454 else 14455 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14456 fi 14457 fi 14458 link_all_deplibs_CXX=yes 14459 ;; 14460 esac 14461 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14462 hardcode_libdir_separator_CXX=: 14463 inherit_rpath_CXX=yes 14464 ;; 14465 14466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14467 case $cc_basename in 14468 KCC*) 14469 # Kuck and Associates, Inc. (KAI) C++ Compiler 14470 14471 # KCC will only create a shared library if the output file 14472 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14473 # to its proper name (with version) after linking. 14474 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14475 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14476 # Commands to make compiler produce verbose output that lists 14477 # what "hidden" libraries, object files and flags are used when 14478 # linking a shared library. 14479 # 14480 # There doesn't appear to be a way to prevent this compiler from 14481 # explicitly linking system object files so we need to strip them 14482 # from the output so that they don't get included in the library 14483 # dependencies. 14484 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14485 14486 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14487 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14488 14489 # Archives containing C++ object files must be created using 14490 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14491 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14492 ;; 14493 icpc* | ecpc* ) 14494 # Intel C++ 14495 with_gnu_ld=yes 14496 # version 8.0 and above of icpc choke on multiply defined symbols 14497 # if we add $predep_objects and $postdep_objects, however 7.1 and 14498 # earlier do not add the objects themselves. 14499 case `$CC -V 2>&1` in 14500 *"Version 7."*) 14501 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14502 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14503 ;; 14504 *) # Version 8.0 or newer 14505 tmp_idyn= 14506 case $host_cpu in 14507 ia64*) tmp_idyn=' -i_dynamic';; 14508 esac 14509 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14510 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14511 ;; 14512 esac 14513 archive_cmds_need_lc_CXX=no 14514 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14515 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14516 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14517 ;; 14518 pgCC* | pgcpp*) 14519 # Portland Group C++ compiler 14520 case `$CC -V` in 14521 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14522 prelink_cmds_CXX='tpldir=Template.dir~ 14523 rm -rf $tpldir~ 14524 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14525 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14526 old_archive_cmds_CXX='tpldir=Template.dir~ 14527 rm -rf $tpldir~ 14528 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14529 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14530 $RANLIB $oldlib' 14531 archive_cmds_CXX='tpldir=Template.dir~ 14532 rm -rf $tpldir~ 14533 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14534 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14535 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14536 rm -rf $tpldir~ 14537 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14538 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14539 ;; 14540 *) # Version 6 and above use weak symbols 14541 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14542 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14543 ;; 14544 esac 14545 14546 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14547 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14548 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14549 ;; 14550 cxx*) 14551 # Compaq C++ 14552 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14553 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14554 14555 runpath_var=LD_RUN_PATH 14556 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14557 hardcode_libdir_separator_CXX=: 14558 14559 # Commands to make compiler produce verbose output that lists 14560 # what "hidden" libraries, object files and flags are used when 14561 # linking a shared library. 14562 # 14563 # There doesn't appear to be a way to prevent this compiler from 14564 # explicitly linking system object files so we need to strip them 14565 # from the output so that they don't get included in the library 14566 # dependencies. 14567 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14568 ;; 14569 xl* | mpixl* | bgxl*) 14570 # IBM XL 8.0 on PPC, with GNU ld 14571 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14572 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14573 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14574 if test yes = "$supports_anon_versioning"; then 14575 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14577 echo "local: *; };" >> $output_objdir/$libname.ver~ 14578 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14579 fi 14580 ;; 14581 *) 14582 case `$CC -V 2>&1 | sed 5q` in 14583 *Sun\ C*) 14584 # Sun C++ 5.9 14585 no_undefined_flag_CXX=' -zdefs' 14586 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14587 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14588 hardcode_libdir_flag_spec_CXX='-R$libdir' 14589 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 14590 compiler_needs_object_CXX=yes 14591 14592 # Not sure whether something based on 14593 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14594 # would be better. 14595 output_verbose_link_cmd='func_echo_all' 14596 14597 # Archives containing C++ object files must be created using 14598 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14599 # necessary to make sure instantiated templates are included 14600 # in the archive. 14601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14602 ;; 14603 esac 14604 ;; 14605 esac 14606 ;; 14607 14608 lynxos*) 14609 # FIXME: insert proper C++ library support 14610 ld_shlibs_CXX=no 14611 ;; 14612 14613 m88k*) 14614 # FIXME: insert proper C++ library support 14615 ld_shlibs_CXX=no 14616 ;; 14617 14618 mvs*) 14619 case $cc_basename in 14620 cxx*) 14621 # FIXME: insert proper C++ library support 14622 ld_shlibs_CXX=no 14623 ;; 14624 *) 14625 # FIXME: insert proper C++ library support 14626 ld_shlibs_CXX=no 14627 ;; 14628 esac 14629 ;; 14630 14631 netbsd*) 14632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14633 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14634 wlarc= 14635 hardcode_libdir_flag_spec_CXX='-R$libdir' 14636 hardcode_direct_CXX=yes 14637 hardcode_shlibpath_var_CXX=no 14638 fi 14639 # Workaround some broken pre-1.5 toolchains 14640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14641 ;; 14642 14643 *nto* | *qnx*) 14644 ld_shlibs_CXX=yes 14645 ;; 14646 14647 openbsd* | bitrig*) 14648 if test -f /usr/libexec/ld.so; then 14649 hardcode_direct_CXX=yes 14650 hardcode_shlibpath_var_CXX=no 14651 hardcode_direct_absolute_CXX=yes 14652 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14653 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14655 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14656 export_dynamic_flag_spec_CXX='$wl-E' 14657 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14658 fi 14659 output_verbose_link_cmd=func_echo_all 14660 else 14661 ld_shlibs_CXX=no 14662 fi 14663 ;; 14664 14665 osf3* | osf4* | osf5*) 14666 case $cc_basename in 14667 KCC*) 14668 # Kuck and Associates, Inc. (KAI) C++ Compiler 14669 14670 # KCC will only create a shared library if the output file 14671 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14672 # to its proper name (with version) after linking. 14673 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14674 14675 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14676 hardcode_libdir_separator_CXX=: 14677 14678 # Archives containing C++ object files must be created using 14679 # the KAI C++ compiler. 14680 case $host in 14681 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14682 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14683 esac 14684 ;; 14685 RCC*) 14686 # Rational C++ 2.4.1 14687 # FIXME: insert proper C++ library support 14688 ld_shlibs_CXX=no 14689 ;; 14690 cxx*) 14691 case $host in 14692 osf3*) 14693 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14694 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14695 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14696 ;; 14697 *) 14698 allow_undefined_flag_CXX=' -expect_unresolved \*' 14699 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14700 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14701 echo "-hidden">> $lib.exp~ 14702 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14703 $RM $lib.exp' 14704 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14705 ;; 14706 esac 14707 14708 hardcode_libdir_separator_CXX=: 14709 14710 # Commands to make compiler produce verbose output that lists 14711 # what "hidden" libraries, object files and flags are used when 14712 # linking a shared library. 14713 # 14714 # There doesn't appear to be a way to prevent this compiler from 14715 # explicitly linking system object files so we need to strip them 14716 # from the output so that they don't get included in the library 14717 # dependencies. 14718 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14719 ;; 14720 *) 14721 if test yes,no = "$GXX,$with_gnu_ld"; then 14722 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14723 case $host in 14724 osf3*) 14725 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14726 ;; 14727 *) 14728 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 14729 ;; 14730 esac 14731 14732 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14733 hardcode_libdir_separator_CXX=: 14734 14735 # Commands to make compiler produce verbose output that lists 14736 # what "hidden" libraries, object files and flags are used when 14737 # linking a shared library. 14738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14739 14740 else 14741 # FIXME: insert proper C++ library support 14742 ld_shlibs_CXX=no 14743 fi 14744 ;; 14745 esac 14746 ;; 14747 14748 psos*) 14749 # FIXME: insert proper C++ library support 14750 ld_shlibs_CXX=no 14751 ;; 14752 14753 sunos4*) 14754 case $cc_basename in 14755 CC*) 14756 # Sun C++ 4.x 14757 # FIXME: insert proper C++ library support 14758 ld_shlibs_CXX=no 14759 ;; 14760 lcc*) 14761 # Lucid 14762 # FIXME: insert proper C++ library support 14763 ld_shlibs_CXX=no 14764 ;; 14765 *) 14766 # FIXME: insert proper C++ library support 14767 ld_shlibs_CXX=no 14768 ;; 14769 esac 14770 ;; 14771 14772 solaris*) 14773 case $cc_basename in 14774 CC* | sunCC*) 14775 # Sun C++ 4.2, 5.x and Centerline C++ 14776 archive_cmds_need_lc_CXX=yes 14777 no_undefined_flag_CXX=' -zdefs' 14778 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14779 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14780 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14781 14782 hardcode_libdir_flag_spec_CXX='-R$libdir' 14783 hardcode_shlibpath_var_CXX=no 14784 case $host_os in 14785 solaris2.[0-5] | solaris2.[0-5].*) ;; 14786 *) 14787 # The compiler driver will combine and reorder linker options, 14788 # but understands '-z linker_flag'. 14789 # Supported since Solaris 2.6 (maybe 2.5.1?) 14790 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14791 ;; 14792 esac 14793 link_all_deplibs_CXX=yes 14794 14795 output_verbose_link_cmd='func_echo_all' 14796 14797 # Archives containing C++ object files must be created using 14798 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14799 # necessary to make sure instantiated templates are included 14800 # in the archive. 14801 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14802 ;; 14803 gcx*) 14804 # Green Hills C++ Compiler 14805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14806 14807 # The C++ compiler must be used to create the archive. 14808 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14809 ;; 14810 *) 14811 # GNU C++ compiler with Solaris linker 14812 if test yes,no = "$GXX,$with_gnu_ld"; then 14813 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14814 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14815 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14817 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14818 14819 # Commands to make compiler produce verbose output that lists 14820 # what "hidden" libraries, object files and flags are used when 14821 # linking a shared library. 14822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14823 else 14824 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14825 # platform. 14826 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14827 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14828 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14829 14830 # Commands to make compiler produce verbose output that lists 14831 # what "hidden" libraries, object files and flags are used when 14832 # linking a shared library. 14833 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14834 fi 14835 14836 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14837 case $host_os in 14838 solaris2.[0-5] | solaris2.[0-5].*) ;; 14839 *) 14840 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14841 ;; 14842 esac 14843 fi 14844 ;; 14845 esac 14846 ;; 14847 14848 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14849 no_undefined_flag_CXX='$wl-z,text' 14850 archive_cmds_need_lc_CXX=no 14851 hardcode_shlibpath_var_CXX=no 14852 runpath_var='LD_RUN_PATH' 14853 14854 case $cc_basename in 14855 CC*) 14856 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14858 ;; 14859 *) 14860 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14861 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14862 ;; 14863 esac 14864 ;; 14865 14866 sysv5* | sco3.2v5* | sco5v6*) 14867 # Note: We CANNOT use -z defs as we might desire, because we do not 14868 # link with -lc, and that would cause any symbols used from libc to 14869 # always be unresolved, which means just about no library would 14870 # ever link correctly. If we're not using GNU ld we use -z text 14871 # though, which does catch some bad symbols but isn't as heavy-handed 14872 # as -z defs. 14873 no_undefined_flag_CXX='$wl-z,text' 14874 allow_undefined_flag_CXX='$wl-z,nodefs' 14875 archive_cmds_need_lc_CXX=no 14876 hardcode_shlibpath_var_CXX=no 14877 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14878 hardcode_libdir_separator_CXX=':' 14879 link_all_deplibs_CXX=yes 14880 export_dynamic_flag_spec_CXX='$wl-Bexport' 14881 runpath_var='LD_RUN_PATH' 14882 14883 case $cc_basename in 14884 CC*) 14885 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14886 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14887 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14888 '"$old_archive_cmds_CXX" 14889 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14890 '"$reload_cmds_CXX" 14891 ;; 14892 *) 14893 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14894 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14895 ;; 14896 esac 14897 ;; 14898 14899 tandem*) 14900 case $cc_basename in 14901 NCC*) 14902 # NonStop-UX NCC 3.20 14903 # FIXME: insert proper C++ library support 14904 ld_shlibs_CXX=no 14905 ;; 14906 *) 14907 # FIXME: insert proper C++ library support 14908 ld_shlibs_CXX=no 14909 ;; 14910 esac 14911 ;; 14912 14913 vxworks*) 14914 # FIXME: insert proper C++ library support 14915 ld_shlibs_CXX=no 14916 ;; 14917 14918 *) 14919 # FIXME: insert proper C++ library support 14920 ld_shlibs_CXX=no 14921 ;; 14922 esac 14923 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14925 $as_echo "$ld_shlibs_CXX" >&6; } 14926 test no = "$ld_shlibs_CXX" && can_build_shared=no 14927 14928 GCC_CXX=$GXX 14929 LD_CXX=$LD 14930 14931 ## CAVEAT EMPTOR: 14932 ## There is no encapsulation within the following macros, do not change 14933 ## the running order or otherwise move them around unless you know exactly 14934 ## what you are doing... 14935 # Dependencies to place before and after the object being linked: 14936 predep_objects_CXX= 14937 postdep_objects_CXX= 14938 predeps_CXX= 14939 postdeps_CXX= 14940 compiler_lib_search_path_CXX= 14941 14942 cat > conftest.$ac_ext <<_LT_EOF 14943 class Foo 14944 { 14945 public: 14946 Foo (void) { a = 0; } 14947 private: 14948 int a; 14949 }; 14950 _LT_EOF 14951 14952 14953 _lt_libdeps_save_CFLAGS=$CFLAGS 14954 case "$CC $CFLAGS " in #( 14955 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14956 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14957 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14958 esac 14959 14960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14961 (eval $ac_compile) 2>&5 14962 ac_status=$? 14963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14964 test $ac_status = 0; }; then 14965 # Parse the compiler output and extract the necessary 14966 # objects, libraries and library flags. 14967 14968 # Sentinel used to keep track of whether or not we are before 14969 # the conftest object file. 14970 pre_test_object_deps_done=no 14971 14972 for p in `eval "$output_verbose_link_cmd"`; do 14973 case $prev$p in 14974 14975 -L* | -R* | -l*) 14976 # Some compilers place space between "-{L,R}" and the path. 14977 # Remove the space. 14978 if test x-L = "$p" || 14979 test x-R = "$p"; then 14980 prev=$p 14981 continue 14982 fi 14983 14984 # Expand the sysroot to ease extracting the directories later. 14985 if test -z "$prev"; then 14986 case $p in 14987 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14988 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14989 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14990 esac 14991 fi 14992 case $p in 14993 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14994 esac 14995 if test no = "$pre_test_object_deps_done"; then 14996 case $prev in 14997 -L | -R) 14998 # Internal compiler library paths should come after those 14999 # provided the user. The postdeps already come after the 15000 # user supplied libs so there is no need to process them. 15001 if test -z "$compiler_lib_search_path_CXX"; then 15002 compiler_lib_search_path_CXX=$prev$p 15003 else 15004 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15005 fi 15006 ;; 15007 # The "-l" case would never come before the object being 15008 # linked, so don't bother handling this case. 15009 esac 15010 else 15011 if test -z "$postdeps_CXX"; then 15012 postdeps_CXX=$prev$p 15013 else 15014 postdeps_CXX="${postdeps_CXX} $prev$p" 15015 fi 15016 fi 15017 prev= 15018 ;; 15019 15020 *.lto.$objext) ;; # Ignore GCC LTO objects 15021 *.$objext) 15022 # This assumes that the test object file only shows up 15023 # once in the compiler output. 15024 if test "$p" = "conftest.$objext"; then 15025 pre_test_object_deps_done=yes 15026 continue 15027 fi 15028 15029 if test no = "$pre_test_object_deps_done"; then 15030 if test -z "$predep_objects_CXX"; then 15031 predep_objects_CXX=$p 15032 else 15033 predep_objects_CXX="$predep_objects_CXX $p" 15034 fi 15035 else 15036 if test -z "$postdep_objects_CXX"; then 15037 postdep_objects_CXX=$p 15038 else 15039 postdep_objects_CXX="$postdep_objects_CXX $p" 15040 fi 15041 fi 15042 ;; 15043 15044 *) ;; # Ignore the rest. 15045 15046 esac 15047 done 15048 15049 # Clean up. 15050 rm -f a.out a.exe 15051 else 15052 echo "libtool.m4: error: problem compiling CXX test program" 15053 fi 15054 15055 $RM -f confest.$objext 15056 CFLAGS=$_lt_libdeps_save_CFLAGS 15057 15058 # PORTME: override above test on systems where it is broken 15059 case $host_os in 15060 interix[3-9]*) 15061 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15062 # hack all around it, let's just trust "g++" to DTRT. 15063 predep_objects_CXX= 15064 postdep_objects_CXX= 15065 postdeps_CXX= 15066 ;; 15067 esac 15068 15069 15070 case " $postdeps_CXX " in 15071 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 15072 esac 15073 compiler_lib_search_dirs_CXX= 15074 if test -n "${compiler_lib_search_path_CXX}"; then 15075 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15076 fi 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 lt_prog_compiler_wl_CXX= 15109 lt_prog_compiler_pic_CXX= 15110 lt_prog_compiler_static_CXX= 15111 15112 15113 # C++ specific cases for pic, static, wl, etc. 15114 if test yes = "$GXX"; then 15115 lt_prog_compiler_wl_CXX='-Wl,' 15116 lt_prog_compiler_static_CXX='-static' 15117 15118 case $host_os in 15119 aix*) 15120 # All AIX code is PIC. 15121 if test ia64 = "$host_cpu"; then 15122 # AIX 5 now supports IA64 processor 15123 lt_prog_compiler_static_CXX='-Bstatic' 15124 fi 15125 lt_prog_compiler_pic_CXX='-fPIC' 15126 ;; 15127 15128 amigaos*) 15129 case $host_cpu in 15130 powerpc) 15131 # see comment about AmigaOS4 .so support 15132 lt_prog_compiler_pic_CXX='-fPIC' 15133 ;; 15134 m68k) 15135 # FIXME: we need at least 68020 code to build shared libraries, but 15136 # adding the '-m68020' flag to GCC prevents building anything better, 15137 # like '-m68040'. 15138 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15139 ;; 15140 esac 15141 ;; 15142 15143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15144 # PIC is the default for these OSes. 15145 ;; 15146 mingw* | cygwin* | os2* | pw32* | cegcc*) 15147 # This hack is so that the source file can tell whether it is being 15148 # built for inclusion in a dll (and should export symbols for example). 15149 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15150 # (--disable-auto-import) libraries 15151 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15152 case $host_os in 15153 os2*) 15154 lt_prog_compiler_static_CXX='$wl-static' 15155 ;; 15156 esac 15157 ;; 15158 darwin* | rhapsody*) 15159 # PIC is the default on this platform 15160 # Common symbols not allowed in MH_DYLIB files 15161 lt_prog_compiler_pic_CXX='-fno-common' 15162 ;; 15163 *djgpp*) 15164 # DJGPP does not support shared libraries at all 15165 lt_prog_compiler_pic_CXX= 15166 ;; 15167 haiku*) 15168 # PIC is the default for Haiku. 15169 # The "-static" flag exists, but is broken. 15170 lt_prog_compiler_static_CXX= 15171 ;; 15172 interix[3-9]*) 15173 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15174 # Instead, we relocate shared libraries at runtime. 15175 ;; 15176 sysv4*MP*) 15177 if test -d /usr/nec; then 15178 lt_prog_compiler_pic_CXX=-Kconform_pic 15179 fi 15180 ;; 15181 hpux*) 15182 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15183 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15184 # sets the default TLS model and affects inlining. 15185 case $host_cpu in 15186 hppa*64*) 15187 ;; 15188 *) 15189 lt_prog_compiler_pic_CXX='-fPIC' 15190 ;; 15191 esac 15192 ;; 15193 *qnx* | *nto*) 15194 # QNX uses GNU C++, but need to define -shared option too, otherwise 15195 # it will coredump. 15196 lt_prog_compiler_pic_CXX='-fPIC -shared' 15197 ;; 15198 *) 15199 lt_prog_compiler_pic_CXX='-fPIC' 15200 ;; 15201 esac 15202 else 15203 case $host_os in 15204 aix[4-9]*) 15205 # All AIX code is PIC. 15206 if test ia64 = "$host_cpu"; then 15207 # AIX 5 now supports IA64 processor 15208 lt_prog_compiler_static_CXX='-Bstatic' 15209 else 15210 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15211 fi 15212 ;; 15213 chorus*) 15214 case $cc_basename in 15215 cxch68*) 15216 # Green Hills C++ Compiler 15217 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15218 ;; 15219 esac 15220 ;; 15221 mingw* | cygwin* | os2* | pw32* | cegcc*) 15222 # This hack is so that the source file can tell whether it is being 15223 # built for inclusion in a dll (and should export symbols for example). 15224 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15225 ;; 15226 dgux*) 15227 case $cc_basename in 15228 ec++*) 15229 lt_prog_compiler_pic_CXX='-KPIC' 15230 ;; 15231 ghcx*) 15232 # Green Hills C++ Compiler 15233 lt_prog_compiler_pic_CXX='-pic' 15234 ;; 15235 *) 15236 ;; 15237 esac 15238 ;; 15239 freebsd* | dragonfly*) 15240 # FreeBSD uses GNU C++ 15241 ;; 15242 hpux9* | hpux10* | hpux11*) 15243 case $cc_basename in 15244 CC*) 15245 lt_prog_compiler_wl_CXX='-Wl,' 15246 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15247 if test ia64 != "$host_cpu"; then 15248 lt_prog_compiler_pic_CXX='+Z' 15249 fi 15250 ;; 15251 aCC*) 15252 lt_prog_compiler_wl_CXX='-Wl,' 15253 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15254 case $host_cpu in 15255 hppa*64*|ia64*) 15256 # +Z the default 15257 ;; 15258 *) 15259 lt_prog_compiler_pic_CXX='+Z' 15260 ;; 15261 esac 15262 ;; 15263 *) 15264 ;; 15265 esac 15266 ;; 15267 interix*) 15268 # This is c89, which is MS Visual C++ (no shared libs) 15269 # Anyone wants to do a port? 15270 ;; 15271 irix5* | irix6* | nonstopux*) 15272 case $cc_basename in 15273 CC*) 15274 lt_prog_compiler_wl_CXX='-Wl,' 15275 lt_prog_compiler_static_CXX='-non_shared' 15276 # CC pic flag -KPIC is the default. 15277 ;; 15278 *) 15279 ;; 15280 esac 15281 ;; 15282 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15283 case $cc_basename in 15284 KCC*) 15285 # KAI C++ Compiler 15286 lt_prog_compiler_wl_CXX='--backend -Wl,' 15287 lt_prog_compiler_pic_CXX='-fPIC' 15288 ;; 15289 ecpc* ) 15290 # old Intel C++ for x86_64, which still supported -KPIC. 15291 lt_prog_compiler_wl_CXX='-Wl,' 15292 lt_prog_compiler_pic_CXX='-KPIC' 15293 lt_prog_compiler_static_CXX='-static' 15294 ;; 15295 icpc* ) 15296 # Intel C++, used to be incompatible with GCC. 15297 # ICC 10 doesn't accept -KPIC any more. 15298 lt_prog_compiler_wl_CXX='-Wl,' 15299 lt_prog_compiler_pic_CXX='-fPIC' 15300 lt_prog_compiler_static_CXX='-static' 15301 ;; 15302 pgCC* | pgcpp*) 15303 # Portland Group C++ compiler 15304 lt_prog_compiler_wl_CXX='-Wl,' 15305 lt_prog_compiler_pic_CXX='-fpic' 15306 lt_prog_compiler_static_CXX='-Bstatic' 15307 ;; 15308 cxx*) 15309 # Compaq C++ 15310 # Make sure the PIC flag is empty. It appears that all Alpha 15311 # Linux and Compaq Tru64 Unix objects are PIC. 15312 lt_prog_compiler_pic_CXX= 15313 lt_prog_compiler_static_CXX='-non_shared' 15314 ;; 15315 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15316 # IBM XL 8.0, 9.0 on PPC and BlueGene 15317 lt_prog_compiler_wl_CXX='-Wl,' 15318 lt_prog_compiler_pic_CXX='-qpic' 15319 lt_prog_compiler_static_CXX='-qstaticlink' 15320 ;; 15321 *) 15322 case `$CC -V 2>&1 | sed 5q` in 15323 *Sun\ C*) 15324 # Sun C++ 5.9 15325 lt_prog_compiler_pic_CXX='-KPIC' 15326 lt_prog_compiler_static_CXX='-Bstatic' 15327 lt_prog_compiler_wl_CXX='-Qoption ld ' 15328 ;; 15329 esac 15330 ;; 15331 esac 15332 ;; 15333 lynxos*) 15334 ;; 15335 m88k*) 15336 ;; 15337 mvs*) 15338 case $cc_basename in 15339 cxx*) 15340 lt_prog_compiler_pic_CXX='-W c,exportall' 15341 ;; 15342 *) 15343 ;; 15344 esac 15345 ;; 15346 netbsd*) 15347 ;; 15348 *qnx* | *nto*) 15349 # QNX uses GNU C++, but need to define -shared option too, otherwise 15350 # it will coredump. 15351 lt_prog_compiler_pic_CXX='-fPIC -shared' 15352 ;; 15353 osf3* | osf4* | osf5*) 15354 case $cc_basename in 15355 KCC*) 15356 lt_prog_compiler_wl_CXX='--backend -Wl,' 15357 ;; 15358 RCC*) 15359 # Rational C++ 2.4.1 15360 lt_prog_compiler_pic_CXX='-pic' 15361 ;; 15362 cxx*) 15363 # Digital/Compaq C++ 15364 lt_prog_compiler_wl_CXX='-Wl,' 15365 # Make sure the PIC flag is empty. It appears that all Alpha 15366 # Linux and Compaq Tru64 Unix objects are PIC. 15367 lt_prog_compiler_pic_CXX= 15368 lt_prog_compiler_static_CXX='-non_shared' 15369 ;; 15370 *) 15371 ;; 15372 esac 15373 ;; 15374 psos*) 15375 ;; 15376 solaris*) 15377 case $cc_basename in 15378 CC* | sunCC*) 15379 # Sun C++ 4.2, 5.x and Centerline C++ 15380 lt_prog_compiler_pic_CXX='-KPIC' 15381 lt_prog_compiler_static_CXX='-Bstatic' 15382 lt_prog_compiler_wl_CXX='-Qoption ld ' 15383 ;; 15384 gcx*) 15385 # Green Hills C++ Compiler 15386 lt_prog_compiler_pic_CXX='-PIC' 15387 ;; 15388 *) 15389 ;; 15390 esac 15391 ;; 15392 sunos4*) 15393 case $cc_basename in 15394 CC*) 15395 # Sun C++ 4.x 15396 lt_prog_compiler_pic_CXX='-pic' 15397 lt_prog_compiler_static_CXX='-Bstatic' 15398 ;; 15399 lcc*) 15400 # Lucid 15401 lt_prog_compiler_pic_CXX='-pic' 15402 ;; 15403 *) 15404 ;; 15405 esac 15406 ;; 15407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15408 case $cc_basename in 15409 CC*) 15410 lt_prog_compiler_wl_CXX='-Wl,' 15411 lt_prog_compiler_pic_CXX='-KPIC' 15412 lt_prog_compiler_static_CXX='-Bstatic' 15413 ;; 15414 esac 15415 ;; 15416 tandem*) 15417 case $cc_basename in 15418 NCC*) 15419 # NonStop-UX NCC 3.20 15420 lt_prog_compiler_pic_CXX='-KPIC' 15421 ;; 15422 *) 15423 ;; 15424 esac 15425 ;; 15426 vxworks*) 15427 ;; 15428 *) 15429 lt_prog_compiler_can_build_shared_CXX=no 15430 ;; 15431 esac 15432 fi 15433 15434 case $host_os in 15435 # For platforms that do not support PIC, -DPIC is meaningless: 15436 *djgpp*) 15437 lt_prog_compiler_pic_CXX= 15438 ;; 15439 *) 15440 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15441 ;; 15442 esac 15443 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15446 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15447 $as_echo_n "(cached) " >&6 15448 else 15449 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15450 fi 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15452 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15453 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15454 15455 # 15456 # Check to make sure the PIC flag actually works. 15457 # 15458 if test -n "$lt_prog_compiler_pic_CXX"; then 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15460 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15461 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463 else 15464 lt_cv_prog_compiler_pic_works_CXX=no 15465 ac_outfile=conftest.$ac_objext 15466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15467 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15468 # Insert the option either (1) after the last *FLAGS variable, or 15469 # (2) before a word containing "conftest.", or (3) at the end. 15470 # Note that $ac_compile itself does not contain backslashes and begins 15471 # with a dollar sign (not a hyphen), so the echo should work correctly. 15472 # The option is referenced via a variable to avoid confusing sed. 15473 lt_compile=`echo "$ac_compile" | $SED \ 15474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15476 -e 's:$: $lt_compiler_flag:'` 15477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15478 (eval "$lt_compile" 2>conftest.err) 15479 ac_status=$? 15480 cat conftest.err >&5 15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15482 if (exit $ac_status) && test -s "$ac_outfile"; then 15483 # The compiler can only warn and ignore the option if not recognized 15484 # So say no if there are warnings other than the usual output. 15485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15488 lt_cv_prog_compiler_pic_works_CXX=yes 15489 fi 15490 fi 15491 $RM conftest* 15492 15493 fi 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15495 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15496 15497 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15498 case $lt_prog_compiler_pic_CXX in 15499 "" | " "*) ;; 15500 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15501 esac 15502 else 15503 lt_prog_compiler_pic_CXX= 15504 lt_prog_compiler_can_build_shared_CXX=no 15505 fi 15506 15507 fi 15508 15509 15510 15511 15512 15513 # 15514 # Check to make sure the static flag actually works. 15515 # 15516 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15519 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521 else 15522 lt_cv_prog_compiler_static_works_CXX=no 15523 save_LDFLAGS=$LDFLAGS 15524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15525 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15527 # The linker can only warn and ignore the option if not recognized 15528 # So say no if there are warnings 15529 if test -s conftest.err; then 15530 # Append any errors to the config.log. 15531 cat conftest.err 1>&5 15532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15534 if diff conftest.exp conftest.er2 >/dev/null; then 15535 lt_cv_prog_compiler_static_works_CXX=yes 15536 fi 15537 else 15538 lt_cv_prog_compiler_static_works_CXX=yes 15539 fi 15540 fi 15541 $RM -r conftest* 15542 LDFLAGS=$save_LDFLAGS 15543 15544 fi 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15546 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15547 15548 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15549 : 15550 else 15551 lt_prog_compiler_static_CXX= 15552 fi 15553 15554 15555 15556 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15559 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15560 $as_echo_n "(cached) " >&6 15561 else 15562 lt_cv_prog_compiler_c_o_CXX=no 15563 $RM -r conftest 2>/dev/null 15564 mkdir conftest 15565 cd conftest 15566 mkdir out 15567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15568 15569 lt_compiler_flag="-o out/conftest2.$ac_objext" 15570 # Insert the option either (1) after the last *FLAGS variable, or 15571 # (2) before a word containing "conftest.", or (3) at the end. 15572 # Note that $ac_compile itself does not contain backslashes and begins 15573 # with a dollar sign (not a hyphen), so the echo should work correctly. 15574 lt_compile=`echo "$ac_compile" | $SED \ 15575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15577 -e 's:$: $lt_compiler_flag:'` 15578 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15579 (eval "$lt_compile" 2>out/conftest.err) 15580 ac_status=$? 15581 cat out/conftest.err >&5 15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15583 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15584 then 15585 # The compiler can only warn and ignore the option if not recognized 15586 # So say no if there are warnings 15587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15590 lt_cv_prog_compiler_c_o_CXX=yes 15591 fi 15592 fi 15593 chmod u+w . 2>&5 15594 $RM conftest* 15595 # SGI C++ compiler will create directory out/ii_files/ for 15596 # template instantiation 15597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15598 $RM out/* && rmdir out 15599 cd .. 15600 $RM -r conftest 15601 $RM conftest* 15602 15603 fi 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15605 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15606 15607 15608 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15610 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15611 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613 else 15614 lt_cv_prog_compiler_c_o_CXX=no 15615 $RM -r conftest 2>/dev/null 15616 mkdir conftest 15617 cd conftest 15618 mkdir out 15619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15620 15621 lt_compiler_flag="-o out/conftest2.$ac_objext" 15622 # Insert the option either (1) after the last *FLAGS variable, or 15623 # (2) before a word containing "conftest.", or (3) at the end. 15624 # Note that $ac_compile itself does not contain backslashes and begins 15625 # with a dollar sign (not a hyphen), so the echo should work correctly. 15626 lt_compile=`echo "$ac_compile" | $SED \ 15627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15629 -e 's:$: $lt_compiler_flag:'` 15630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15631 (eval "$lt_compile" 2>out/conftest.err) 15632 ac_status=$? 15633 cat out/conftest.err >&5 15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15635 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15636 then 15637 # The compiler can only warn and ignore the option if not recognized 15638 # So say no if there are warnings 15639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15642 lt_cv_prog_compiler_c_o_CXX=yes 15643 fi 15644 fi 15645 chmod u+w . 2>&5 15646 $RM conftest* 15647 # SGI C++ compiler will create directory out/ii_files/ for 15648 # template instantiation 15649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15650 $RM out/* && rmdir out 15651 cd .. 15652 $RM -r conftest 15653 $RM conftest* 15654 15655 fi 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15657 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15658 15659 15660 15661 15662 hard_links=nottested 15663 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15664 # do not overwrite the value of need_locks provided by the user 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15666 $as_echo_n "checking if we can lock with hard links... " >&6; } 15667 hard_links=yes 15668 $RM conftest* 15669 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15670 touch conftest.a 15671 ln conftest.a conftest.b 2>&5 || hard_links=no 15672 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15674 $as_echo "$hard_links" >&6; } 15675 if test no = "$hard_links"; then 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15677 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15678 need_locks=warn 15679 fi 15680 else 15681 need_locks=no 15682 fi 15683 15684 15685 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15688 15689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15690 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15691 case $host_os in 15692 aix[4-9]*) 15693 # If we're using GNU nm, then we don't want the "-C" option. 15694 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15695 # Without the "-l" option, or with the "-B" option, AIX nm treats 15696 # weak defined symbols like other global defined symbols, whereas 15697 # GNU nm marks them as "W". 15698 # While the 'weak' keyword is ignored in the Export File, we need 15699 # it in the Import File for the 'aix-soname' feature, so we have 15700 # to replace the "-B" option with "-P" for AIX nm. 15701 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15702 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15703 else 15704 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15705 fi 15706 ;; 15707 pw32*) 15708 export_symbols_cmds_CXX=$ltdll_cmds 15709 ;; 15710 cygwin* | mingw* | cegcc*) 15711 case $cc_basename in 15712 cl*) 15713 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15714 ;; 15715 *) 15716 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15717 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15718 ;; 15719 esac 15720 ;; 15721 *) 15722 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15723 ;; 15724 esac 15725 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15727 $as_echo "$ld_shlibs_CXX" >&6; } 15728 test no = "$ld_shlibs_CXX" && can_build_shared=no 15729 15730 with_gnu_ld_CXX=$with_gnu_ld 15731 15732 15733 15734 15735 15736 15737 # 15738 # Do we need to explicitly link libc? 15739 # 15740 case "x$archive_cmds_need_lc_CXX" in 15741 x|xyes) 15742 # Assume -lc should be added 15743 archive_cmds_need_lc_CXX=yes 15744 15745 if test yes,yes = "$GCC,$enable_shared"; then 15746 case $archive_cmds_CXX in 15747 *'~'*) 15748 # FIXME: we may have to deal with multi-command sequences. 15749 ;; 15750 '$CC '*) 15751 # Test whether the compiler implicitly links with -lc since on some 15752 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15753 # to ld, don't add -lc before -lgcc. 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15756 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15757 $as_echo_n "(cached) " >&6 15758 else 15759 $RM conftest* 15760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15761 15762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15763 (eval $ac_compile) 2>&5 15764 ac_status=$? 15765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15766 test $ac_status = 0; } 2>conftest.err; then 15767 soname=conftest 15768 lib=conftest 15769 libobjs=conftest.$ac_objext 15770 deplibs= 15771 wl=$lt_prog_compiler_wl_CXX 15772 pic_flag=$lt_prog_compiler_pic_CXX 15773 compiler_flags=-v 15774 linker_flags=-v 15775 verstring= 15776 output_objdir=. 15777 libname=conftest 15778 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15779 allow_undefined_flag_CXX= 15780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15781 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15782 ac_status=$? 15783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15784 test $ac_status = 0; } 15785 then 15786 lt_cv_archive_cmds_need_lc_CXX=no 15787 else 15788 lt_cv_archive_cmds_need_lc_CXX=yes 15789 fi 15790 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15791 else 15792 cat conftest.err 1>&5 15793 fi 15794 $RM conftest* 15795 15796 fi 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15798 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15799 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15800 ;; 15801 esac 15802 fi 15803 ;; 15804 esac 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15868 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15869 15870 library_names_spec= 15871 libname_spec='lib$name' 15872 soname_spec= 15873 shrext_cmds=.so 15874 postinstall_cmds= 15875 postuninstall_cmds= 15876 finish_cmds= 15877 finish_eval= 15878 shlibpath_var= 15879 shlibpath_overrides_runpath=unknown 15880 version_type=none 15881 dynamic_linker="$host_os ld.so" 15882 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15883 need_lib_prefix=unknown 15884 hardcode_into_libs=no 15885 15886 # when you set need_version to no, make sure it does not cause -set_version 15887 # flags to be left without arguments 15888 need_version=unknown 15889 15890 15891 15892 case $host_os in 15893 aix3*) 15894 version_type=linux # correct to gnu/linux during the next big refactor 15895 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15896 shlibpath_var=LIBPATH 15897 15898 # AIX 3 has no versioning support, so we append a major version to the name. 15899 soname_spec='$libname$release$shared_ext$major' 15900 ;; 15901 15902 aix[4-9]*) 15903 version_type=linux # correct to gnu/linux during the next big refactor 15904 need_lib_prefix=no 15905 need_version=no 15906 hardcode_into_libs=yes 15907 if test ia64 = "$host_cpu"; then 15908 # AIX 5 supports IA64 15909 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15910 shlibpath_var=LD_LIBRARY_PATH 15911 else 15912 # With GCC up to 2.95.x, collect2 would create an import file 15913 # for dependence libraries. The import file would start with 15914 # the line '#! .'. This would cause the generated library to 15915 # depend on '.', always an invalid library. This was fixed in 15916 # development snapshots of GCC prior to 3.0. 15917 case $host_os in 15918 aix4 | aix4.[01] | aix4.[01].*) 15919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15920 echo ' yes ' 15921 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15922 : 15923 else 15924 can_build_shared=no 15925 fi 15926 ;; 15927 esac 15928 # Using Import Files as archive members, it is possible to support 15929 # filename-based versioning of shared library archives on AIX. While 15930 # this would work for both with and without runtime linking, it will 15931 # prevent static linking of such archives. So we do filename-based 15932 # shared library versioning with .so extension only, which is used 15933 # when both runtime linking and shared linking is enabled. 15934 # Unfortunately, runtime linking may impact performance, so we do 15935 # not want this to be the default eventually. Also, we use the 15936 # versioned .so libs for executables only if there is the -brtl 15937 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15938 # To allow for filename-based versioning support, we need to create 15939 # libNAME.so.V as an archive file, containing: 15940 # *) an Import File, referring to the versioned filename of the 15941 # archive as well as the shared archive member, telling the 15942 # bitwidth (32 or 64) of that shared object, and providing the 15943 # list of exported symbols of that shared object, eventually 15944 # decorated with the 'weak' keyword 15945 # *) the shared object with the F_LOADONLY flag set, to really avoid 15946 # it being seen by the linker. 15947 # At run time we better use the real file rather than another symlink, 15948 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15949 15950 case $with_aix_soname,$aix_use_runtimelinking in 15951 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15952 # soname into executable. Probably we can add versioning support to 15953 # collect2, so additional links can be useful in future. 15954 aix,yes) # traditional libtool 15955 dynamic_linker='AIX unversionable lib.so' 15956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15957 # instead of lib<name>.a to let people know that these are not 15958 # typical AIX shared libraries. 15959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15960 ;; 15961 aix,no) # traditional AIX only 15962 dynamic_linker='AIX lib.a(lib.so.V)' 15963 # We preserve .a as extension for shared libraries through AIX4.2 15964 # and later when we are not doing run time linking. 15965 library_names_spec='$libname$release.a $libname.a' 15966 soname_spec='$libname$release$shared_ext$major' 15967 ;; 15968 svr4,*) # full svr4 only 15969 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15970 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15971 # We do not specify a path in Import Files, so LIBPATH fires. 15972 shlibpath_overrides_runpath=yes 15973 ;; 15974 *,yes) # both, prefer svr4 15975 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15976 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15977 # unpreferred sharedlib libNAME.a needs extra handling 15978 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15979 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15980 # We do not specify a path in Import Files, so LIBPATH fires. 15981 shlibpath_overrides_runpath=yes 15982 ;; 15983 *,no) # both, prefer aix 15984 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15985 library_names_spec='$libname$release.a $libname.a' 15986 soname_spec='$libname$release$shared_ext$major' 15987 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15988 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15989 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15990 ;; 15991 esac 15992 shlibpath_var=LIBPATH 15993 fi 15994 ;; 15995 15996 amigaos*) 15997 case $host_cpu in 15998 powerpc) 15999 # Since July 2007 AmigaOS4 officially supports .so libraries. 16000 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16002 ;; 16003 m68k) 16004 library_names_spec='$libname.ixlibrary $libname.a' 16005 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16006 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16007 ;; 16008 esac 16009 ;; 16010 16011 beos*) 16012 library_names_spec='$libname$shared_ext' 16013 dynamic_linker="$host_os ld.so" 16014 shlibpath_var=LIBRARY_PATH 16015 ;; 16016 16017 bsdi[45]*) 16018 version_type=linux # correct to gnu/linux during the next big refactor 16019 need_version=no 16020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16021 soname_spec='$libname$release$shared_ext$major' 16022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16023 shlibpath_var=LD_LIBRARY_PATH 16024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16026 # the default ld.so.conf also contains /usr/contrib/lib and 16027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16028 # libtool to hard-code these into programs 16029 ;; 16030 16031 cygwin* | mingw* | pw32* | cegcc*) 16032 version_type=windows 16033 shrext_cmds=.dll 16034 need_version=no 16035 need_lib_prefix=no 16036 16037 case $GCC,$cc_basename in 16038 yes,*) 16039 # gcc 16040 library_names_spec='$libname.dll.a' 16041 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16042 postinstall_cmds='base_file=`basename \$file`~ 16043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16044 dldir=$destdir/`dirname \$dlpath`~ 16045 test -d \$dldir || mkdir -p \$dldir~ 16046 $install_prog $dir/$dlname \$dldir/$dlname~ 16047 chmod a+x \$dldir/$dlname~ 16048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16050 fi' 16051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16052 dlpath=$dir/\$dldll~ 16053 $RM \$dlpath' 16054 shlibpath_overrides_runpath=yes 16055 16056 case $host_os in 16057 cygwin*) 16058 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16060 16061 ;; 16062 mingw* | cegcc*) 16063 # MinGW DLLs use traditional 'lib' prefix 16064 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16065 ;; 16066 pw32*) 16067 # pw32 DLLs use 'pw' prefix rather than 'lib' 16068 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16069 ;; 16070 esac 16071 dynamic_linker='Win32 ld.exe' 16072 ;; 16073 16074 *,cl*) 16075 # Native MSVC 16076 libname_spec='$name' 16077 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16078 library_names_spec='$libname.dll.lib' 16079 16080 case $build_os in 16081 mingw*) 16082 sys_lib_search_path_spec= 16083 lt_save_ifs=$IFS 16084 IFS=';' 16085 for lt_path in $LIB 16086 do 16087 IFS=$lt_save_ifs 16088 # Let DOS variable expansion print the short 8.3 style file name. 16089 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16090 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16091 done 16092 IFS=$lt_save_ifs 16093 # Convert to MSYS style. 16094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16095 ;; 16096 cygwin*) 16097 # Convert to unix form, then to dos form, then back to unix form 16098 # but this time dos style (no spaces!) so that the unix form looks 16099 # like /cygdrive/c/PROGRA~1:/cygdr... 16100 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16101 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16102 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16103 ;; 16104 *) 16105 sys_lib_search_path_spec=$LIB 16106 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16107 # It is most probably a Windows format PATH. 16108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16109 else 16110 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16111 fi 16112 # FIXME: find the short name or the path components, as spaces are 16113 # common. (e.g. "Program Files" -> "PROGRA~1") 16114 ;; 16115 esac 16116 16117 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16118 postinstall_cmds='base_file=`basename \$file`~ 16119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16120 dldir=$destdir/`dirname \$dlpath`~ 16121 test -d \$dldir || mkdir -p \$dldir~ 16122 $install_prog $dir/$dlname \$dldir/$dlname' 16123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16124 dlpath=$dir/\$dldll~ 16125 $RM \$dlpath' 16126 shlibpath_overrides_runpath=yes 16127 dynamic_linker='Win32 link.exe' 16128 ;; 16129 16130 *) 16131 # Assume MSVC wrapper 16132 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16133 dynamic_linker='Win32 ld.exe' 16134 ;; 16135 esac 16136 # FIXME: first we should search . and the directory the executable is in 16137 shlibpath_var=PATH 16138 ;; 16139 16140 darwin* | rhapsody*) 16141 dynamic_linker="$host_os dyld" 16142 version_type=darwin 16143 need_lib_prefix=no 16144 need_version=no 16145 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 16146 soname_spec='$libname$release$major$shared_ext' 16147 shlibpath_overrides_runpath=yes 16148 shlibpath_var=DYLD_LIBRARY_PATH 16149 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 16150 16151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16152 ;; 16153 16154 dgux*) 16155 version_type=linux # correct to gnu/linux during the next big refactor 16156 need_lib_prefix=no 16157 need_version=no 16158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16159 soname_spec='$libname$release$shared_ext$major' 16160 shlibpath_var=LD_LIBRARY_PATH 16161 ;; 16162 16163 freebsd* | dragonfly*) 16164 # DragonFly does not have aout. When/if they implement a new 16165 # versioning mechanism, adjust this. 16166 if test -x /usr/bin/objformat; then 16167 objformat=`/usr/bin/objformat` 16168 else 16169 case $host_os in 16170 freebsd[23].*) objformat=aout ;; 16171 *) objformat=elf ;; 16172 esac 16173 fi 16174 # Handle Gentoo/FreeBSD as it was Linux 16175 case $host_vendor in 16176 gentoo) 16177 version_type=linux ;; 16178 *) 16179 version_type=freebsd-$objformat ;; 16180 esac 16181 16182 case $version_type in 16183 freebsd-elf*) 16184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16185 soname_spec='$libname$release$shared_ext$major' 16186 need_version=no 16187 need_lib_prefix=no 16188 ;; 16189 freebsd-*) 16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16191 need_version=yes 16192 ;; 16193 linux) 16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16195 soname_spec='${libname}${release}${shared_ext}$major' 16196 need_lib_prefix=no 16197 need_version=no 16198 ;; 16199 esac 16200 shlibpath_var=LD_LIBRARY_PATH 16201 case $host_os in 16202 freebsd2.*) 16203 shlibpath_overrides_runpath=yes 16204 ;; 16205 freebsd3.[01]* | freebsdelf3.[01]*) 16206 shlibpath_overrides_runpath=yes 16207 hardcode_into_libs=yes 16208 ;; 16209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16211 shlibpath_overrides_runpath=no 16212 hardcode_into_libs=yes 16213 ;; 16214 *) # from 4.6 on, and DragonFly 16215 shlibpath_overrides_runpath=yes 16216 hardcode_into_libs=yes 16217 ;; 16218 esac 16219 ;; 16220 16221 haiku*) 16222 version_type=linux # correct to gnu/linux during the next big refactor 16223 need_lib_prefix=no 16224 need_version=no 16225 dynamic_linker="$host_os runtime_loader" 16226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16227 soname_spec='$libname$release$shared_ext$major' 16228 shlibpath_var=LIBRARY_PATH 16229 shlibpath_overrides_runpath=no 16230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16231 hardcode_into_libs=yes 16232 ;; 16233 16234 hpux9* | hpux10* | hpux11*) 16235 # Give a soname corresponding to the major version so that dld.sl refuses to 16236 # link against other versions. 16237 version_type=sunos 16238 need_lib_prefix=no 16239 need_version=no 16240 case $host_cpu in 16241 ia64*) 16242 shrext_cmds='.so' 16243 hardcode_into_libs=yes 16244 dynamic_linker="$host_os dld.so" 16245 shlibpath_var=LD_LIBRARY_PATH 16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16248 soname_spec='$libname$release$shared_ext$major' 16249 if test 32 = "$HPUX_IA64_MODE"; then 16250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16252 else 16253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16255 fi 16256 ;; 16257 hppa*64*) 16258 shrext_cmds='.sl' 16259 hardcode_into_libs=yes 16260 dynamic_linker="$host_os dld.sl" 16261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16264 soname_spec='$libname$release$shared_ext$major' 16265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16267 ;; 16268 *) 16269 shrext_cmds='.sl' 16270 dynamic_linker="$host_os dld.sl" 16271 shlibpath_var=SHLIB_PATH 16272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16274 soname_spec='$libname$release$shared_ext$major' 16275 ;; 16276 esac 16277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16278 postinstall_cmds='chmod 555 $lib' 16279 # or fails outright, so override atomically: 16280 install_override_mode=555 16281 ;; 16282 16283 interix[3-9]*) 16284 version_type=linux # correct to gnu/linux during the next big refactor 16285 need_lib_prefix=no 16286 need_version=no 16287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16288 soname_spec='$libname$release$shared_ext$major' 16289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16290 shlibpath_var=LD_LIBRARY_PATH 16291 shlibpath_overrides_runpath=no 16292 hardcode_into_libs=yes 16293 ;; 16294 16295 irix5* | irix6* | nonstopux*) 16296 case $host_os in 16297 nonstopux*) version_type=nonstopux ;; 16298 *) 16299 if test yes = "$lt_cv_prog_gnu_ld"; then 16300 version_type=linux # correct to gnu/linux during the next big refactor 16301 else 16302 version_type=irix 16303 fi ;; 16304 esac 16305 need_lib_prefix=no 16306 need_version=no 16307 soname_spec='$libname$release$shared_ext$major' 16308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16309 case $host_os in 16310 irix5* | nonstopux*) 16311 libsuff= shlibsuff= 16312 ;; 16313 *) 16314 case $LD in # libtool.m4 will add one of these switches to LD 16315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16316 libsuff= shlibsuff= libmagic=32-bit;; 16317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16318 libsuff=32 shlibsuff=N32 libmagic=N32;; 16319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16320 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16321 *) libsuff= shlibsuff= libmagic=never-match;; 16322 esac 16323 ;; 16324 esac 16325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16326 shlibpath_overrides_runpath=no 16327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16329 hardcode_into_libs=yes 16330 ;; 16331 16332 # No shared lib support for Linux oldld, aout, or coff. 16333 linux*oldld* | linux*aout* | linux*coff*) 16334 dynamic_linker=no 16335 ;; 16336 16337 linux*android*) 16338 version_type=none # Android doesn't support versioned libraries. 16339 need_lib_prefix=no 16340 need_version=no 16341 library_names_spec='$libname$release$shared_ext' 16342 soname_spec='$libname$release$shared_ext' 16343 finish_cmds= 16344 shlibpath_var=LD_LIBRARY_PATH 16345 shlibpath_overrides_runpath=yes 16346 16347 # This implies no fast_install, which is unacceptable. 16348 # Some rework will be needed to allow for fast_install 16349 # before this can be enabled. 16350 hardcode_into_libs=yes 16351 16352 dynamic_linker='Android linker' 16353 # Don't embed -rpath directories since the linker doesn't support them. 16354 hardcode_libdir_flag_spec_CXX='-L$libdir' 16355 ;; 16356 16357 # This must be glibc/ELF. 16358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16359 version_type=linux # correct to gnu/linux during the next big refactor 16360 need_lib_prefix=no 16361 need_version=no 16362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16363 soname_spec='$libname$release$shared_ext$major' 16364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16365 shlibpath_var=LD_LIBRARY_PATH 16366 shlibpath_overrides_runpath=no 16367 16368 # Some binutils ld are patched to set DT_RUNPATH 16369 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16370 $as_echo_n "(cached) " >&6 16371 else 16372 lt_cv_shlibpath_overrides_runpath=no 16373 save_LDFLAGS=$LDFLAGS 16374 save_libdir=$libdir 16375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16378 /* end confdefs.h. */ 16379 16380 int 16381 main () 16382 { 16383 16384 ; 16385 return 0; 16386 } 16387 _ACEOF 16388 if ac_fn_cxx_try_link "$LINENO"; then : 16389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16390 lt_cv_shlibpath_overrides_runpath=yes 16391 fi 16392 fi 16393 rm -f core conftest.err conftest.$ac_objext \ 16394 conftest$ac_exeext conftest.$ac_ext 16395 LDFLAGS=$save_LDFLAGS 16396 libdir=$save_libdir 16397 16398 fi 16399 16400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16401 16402 # This implies no fast_install, which is unacceptable. 16403 # Some rework will be needed to allow for fast_install 16404 # before this can be enabled. 16405 hardcode_into_libs=yes 16406 16407 # Ideally, we could use ldconfig to report *all* directores which are 16408 # searched for libraries, however this is still not possible. Aside from not 16409 # being certain /sbin/ldconfig is available, command 16410 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16411 # even though it is searched at run-time. Try to do the best guess by 16412 # appending ld.so.conf contents (and includes) to the search path. 16413 if test -f /etc/ld.so.conf; then 16414 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16416 fi 16417 16418 # We used to test for /lib/ld.so.1 and disable shared libraries on 16419 # powerpc, because MkLinux only supported shared libraries with the 16420 # GNU dynamic linker. Since this was broken with cross compilers, 16421 # most powerpc-linux boxes support dynamic linking these days and 16422 # people can always --disable-shared, the test was removed, and we 16423 # assume the GNU/Linux dynamic linker is in use. 16424 dynamic_linker='GNU/Linux ld.so' 16425 ;; 16426 16427 netbsd*) 16428 version_type=sunos 16429 need_lib_prefix=no 16430 need_version=no 16431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16434 dynamic_linker='NetBSD (a.out) ld.so' 16435 else 16436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16437 soname_spec='$libname$release$shared_ext$major' 16438 dynamic_linker='NetBSD ld.elf_so' 16439 fi 16440 shlibpath_var=LD_LIBRARY_PATH 16441 shlibpath_overrides_runpath=yes 16442 hardcode_into_libs=yes 16443 ;; 16444 16445 newsos6) 16446 version_type=linux # correct to gnu/linux during the next big refactor 16447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16448 shlibpath_var=LD_LIBRARY_PATH 16449 shlibpath_overrides_runpath=yes 16450 ;; 16451 16452 *nto* | *qnx*) 16453 version_type=qnx 16454 need_lib_prefix=no 16455 need_version=no 16456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16457 soname_spec='$libname$release$shared_ext$major' 16458 shlibpath_var=LD_LIBRARY_PATH 16459 shlibpath_overrides_runpath=no 16460 hardcode_into_libs=yes 16461 dynamic_linker='ldqnx.so' 16462 ;; 16463 16464 openbsd* | bitrig*) 16465 version_type=sunos 16466 sys_lib_dlsearch_path_spec=/usr/lib 16467 need_lib_prefix=no 16468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16469 need_version=no 16470 else 16471 need_version=yes 16472 fi 16473 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16475 shlibpath_var=LD_LIBRARY_PATH 16476 shlibpath_overrides_runpath=yes 16477 ;; 16478 16479 os2*) 16480 libname_spec='$name' 16481 version_type=windows 16482 shrext_cmds=.dll 16483 need_version=no 16484 need_lib_prefix=no 16485 # OS/2 can only load a DLL with a base name of 8 characters or less. 16486 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16487 v=$($ECHO $release$versuffix | tr -d .-); 16488 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16489 $ECHO $n$v`$shared_ext' 16490 library_names_spec='${libname}_dll.$libext' 16491 dynamic_linker='OS/2 ld.exe' 16492 shlibpath_var=BEGINLIBPATH 16493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16495 postinstall_cmds='base_file=`basename \$file`~ 16496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16497 dldir=$destdir/`dirname \$dlpath`~ 16498 test -d \$dldir || mkdir -p \$dldir~ 16499 $install_prog $dir/$dlname \$dldir/$dlname~ 16500 chmod a+x \$dldir/$dlname~ 16501 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16502 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16503 fi' 16504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16505 dlpath=$dir/\$dldll~ 16506 $RM \$dlpath' 16507 ;; 16508 16509 osf3* | osf4* | osf5*) 16510 version_type=osf 16511 need_lib_prefix=no 16512 need_version=no 16513 soname_spec='$libname$release$shared_ext$major' 16514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16515 shlibpath_var=LD_LIBRARY_PATH 16516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16518 ;; 16519 16520 rdos*) 16521 dynamic_linker=no 16522 ;; 16523 16524 solaris*) 16525 version_type=linux # correct to gnu/linux during the next big refactor 16526 need_lib_prefix=no 16527 need_version=no 16528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16529 soname_spec='$libname$release$shared_ext$major' 16530 shlibpath_var=LD_LIBRARY_PATH 16531 shlibpath_overrides_runpath=yes 16532 hardcode_into_libs=yes 16533 # ldd complains unless libraries are executable 16534 postinstall_cmds='chmod +x $lib' 16535 ;; 16536 16537 sunos4*) 16538 version_type=sunos 16539 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16540 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16541 shlibpath_var=LD_LIBRARY_PATH 16542 shlibpath_overrides_runpath=yes 16543 if test yes = "$with_gnu_ld"; then 16544 need_lib_prefix=no 16545 fi 16546 need_version=yes 16547 ;; 16548 16549 sysv4 | sysv4.3*) 16550 version_type=linux # correct to gnu/linux during the next big refactor 16551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16552 soname_spec='$libname$release$shared_ext$major' 16553 shlibpath_var=LD_LIBRARY_PATH 16554 case $host_vendor in 16555 sni) 16556 shlibpath_overrides_runpath=no 16557 need_lib_prefix=no 16558 runpath_var=LD_RUN_PATH 16559 ;; 16560 siemens) 16561 need_lib_prefix=no 16562 ;; 16563 motorola) 16564 need_lib_prefix=no 16565 need_version=no 16566 shlibpath_overrides_runpath=no 16567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16568 ;; 16569 esac 16570 ;; 16571 16572 sysv4*MP*) 16573 if test -d /usr/nec; then 16574 version_type=linux # correct to gnu/linux during the next big refactor 16575 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16576 soname_spec='$libname$shared_ext.$major' 16577 shlibpath_var=LD_LIBRARY_PATH 16578 fi 16579 ;; 16580 16581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16582 version_type=sco 16583 need_lib_prefix=no 16584 need_version=no 16585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16586 soname_spec='$libname$release$shared_ext$major' 16587 shlibpath_var=LD_LIBRARY_PATH 16588 shlibpath_overrides_runpath=yes 16589 hardcode_into_libs=yes 16590 if test yes = "$with_gnu_ld"; then 16591 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16592 else 16593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16594 case $host_os in 16595 sco3.2v5*) 16596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16597 ;; 16598 esac 16599 fi 16600 sys_lib_dlsearch_path_spec='/usr/lib' 16601 ;; 16602 16603 tpf*) 16604 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16605 version_type=linux # correct to gnu/linux during the next big refactor 16606 need_lib_prefix=no 16607 need_version=no 16608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16609 shlibpath_var=LD_LIBRARY_PATH 16610 shlibpath_overrides_runpath=no 16611 hardcode_into_libs=yes 16612 ;; 16613 16614 uts4*) 16615 version_type=linux # correct to gnu/linux during the next big refactor 16616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16617 soname_spec='$libname$release$shared_ext$major' 16618 shlibpath_var=LD_LIBRARY_PATH 16619 ;; 16620 16621 *) 16622 dynamic_linker=no 16623 ;; 16624 esac 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16626 $as_echo "$dynamic_linker" >&6; } 16627 test no = "$dynamic_linker" && can_build_shared=no 16628 16629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16630 if test yes = "$GCC"; then 16631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16632 fi 16633 16634 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16635 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16636 fi 16637 16638 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16639 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16640 fi 16641 16642 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16643 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16644 16645 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16646 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16647 16648 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16649 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16691 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16692 hardcode_action_CXX= 16693 if test -n "$hardcode_libdir_flag_spec_CXX" || 16694 test -n "$runpath_var_CXX" || 16695 test yes = "$hardcode_automatic_CXX"; then 16696 16697 # We can hardcode non-existent directories. 16698 if test no != "$hardcode_direct_CXX" && 16699 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16700 # have to relink, otherwise we might link with an installed library 16701 # when we should be linking with a yet-to-be-installed one 16702 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16703 test no != "$hardcode_minus_L_CXX"; then 16704 # Linking always hardcodes the temporary library directory. 16705 hardcode_action_CXX=relink 16706 else 16707 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16708 hardcode_action_CXX=immediate 16709 fi 16710 else 16711 # We cannot hardcode anything, or else we can only hardcode existing 16712 # directories. 16713 hardcode_action_CXX=unsupported 16714 fi 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16716 $as_echo "$hardcode_action_CXX" >&6; } 16717 16718 if test relink = "$hardcode_action_CXX" || 16719 test yes = "$inherit_rpath_CXX"; then 16720 # Fast installation is not supported 16721 enable_fast_install=no 16722 elif test yes = "$shlibpath_overrides_runpath" || 16723 test no = "$enable_shared"; then 16724 # Fast installation is not necessary 16725 enable_fast_install=needless 16726 fi 16727 16728 16729 16730 16731 16732 16733 16734 fi # test -n "$compiler" 16735 16736 CC=$lt_save_CC 16737 CFLAGS=$lt_save_CFLAGS 16738 LDCXX=$LD 16739 LD=$lt_save_LD 16740 GCC=$lt_save_GCC 16741 with_gnu_ld=$lt_save_with_gnu_ld 16742 lt_cv_path_LDCXX=$lt_cv_path_LD 16743 lt_cv_path_LD=$lt_save_path_LD 16744 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16745 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16746 fi # test yes != "$_lt_caught_CXX_error" 16747 16748 ac_ext=c 16749 ac_cpp='$CPP $CPPFLAGS' 16750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16752 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16753 16754 16755 16756 # Check whether --enable-silent-rules was given. 16757 if test "${enable_silent_rules+set}" = set; then : 16758 enableval=$enable_silent_rules; 16759 fi 16760 16761 case $enable_silent_rules in # ((( 16762 yes) AM_DEFAULT_VERBOSITY=0;; 16763 no) AM_DEFAULT_VERBOSITY=1;; 16764 *) AM_DEFAULT_VERBOSITY=0;; 16765 esac 16766 am_make=${MAKE-make} 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16768 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16769 if ${am_cv_make_support_nested_variables+:} false; then : 16770 $as_echo_n "(cached) " >&6 16771 else 16772 if $as_echo 'TRUE=$(BAR$(V)) 16773 BAR0=false 16774 BAR1=true 16775 V=1 16776 am__doit: 16777 @$(TRUE) 16778 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16779 am_cv_make_support_nested_variables=yes 16780 else 16781 am_cv_make_support_nested_variables=no 16782 fi 16783 fi 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16785 $as_echo "$am_cv_make_support_nested_variables" >&6; } 16786 if test $am_cv_make_support_nested_variables = yes; then 16787 AM_V='$(V)' 16788 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16789 else 16790 AM_V=$AM_DEFAULT_VERBOSITY 16791 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16792 fi 16793 AM_BACKSLASH='\' 16794 16795 16796 # Check whether --enable-debug was given. 16797 if test "${enable_debug+set}" = set; then : 16798 enableval=$enable_debug; if test x$enableval = xyes; then 16799 CFLAGS="$CFLAGS -g -O0 -DDEBUG" 16800 CXXFLAGS="$CXXFLAGS -g -O0 -DDEBUG"; else 16801 CFLAGS="$CFLAGS -DNDEBUG" 16802 CXXFLAGS="$CXXFLAGS -DNDEBUG"; fi 16803 else 16804 CFLAGS="$CFLAGS -DNDEBUG" 16805 CXXFLAGS="$CXXFLAGS -DNDEBUG" 16806 fi 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16818 if test -n "$ac_tool_prefix"; then 16819 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16820 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16822 $as_echo_n "checking for $ac_word... " >&6; } 16823 if ${ac_cv_path_PKG_CONFIG+:} false; then : 16824 $as_echo_n "(cached) " >&6 16825 else 16826 case $PKG_CONFIG in 16827 [\\/]* | ?:[\\/]*) 16828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16829 ;; 16830 *) 16831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16832 for as_dir in $PATH 16833 do 16834 IFS=$as_save_IFS 16835 test -z "$as_dir" && as_dir=. 16836 for ac_exec_ext in '' $ac_executable_extensions; do 16837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16838 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16840 break 2 16841 fi 16842 done 16843 done 16844 IFS=$as_save_IFS 16845 16846 ;; 16847 esac 16848 fi 16849 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16850 if test -n "$PKG_CONFIG"; then 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16852 $as_echo "$PKG_CONFIG" >&6; } 16853 else 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16855 $as_echo "no" >&6; } 16856 fi 16857 16858 16859 fi 16860 if test -z "$ac_cv_path_PKG_CONFIG"; then 16861 ac_pt_PKG_CONFIG=$PKG_CONFIG 16862 # Extract the first word of "pkg-config", so it can be a program name with args. 16863 set dummy pkg-config; ac_word=$2 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16865 $as_echo_n "checking for $ac_word... " >&6; } 16866 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16867 $as_echo_n "(cached) " >&6 16868 else 16869 case $ac_pt_PKG_CONFIG in 16870 [\\/]* | ?:[\\/]*) 16871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16872 ;; 16873 *) 16874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16875 for as_dir in $PATH 16876 do 16877 IFS=$as_save_IFS 16878 test -z "$as_dir" && as_dir=. 16879 for ac_exec_ext in '' $ac_executable_extensions; do 16880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16881 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16883 break 2 16884 fi 16885 done 16886 done 16887 IFS=$as_save_IFS 16888 16889 ;; 16890 esac 16891 fi 16892 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16893 if test -n "$ac_pt_PKG_CONFIG"; then 16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16895 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 16896 else 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16898 $as_echo "no" >&6; } 16899 fi 16900 16901 if test "x$ac_pt_PKG_CONFIG" = x; then 16902 PKG_CONFIG="" 16903 else 16904 case $cross_compiling:$ac_tool_warned in 16905 yes:) 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16908 ac_tool_warned=yes ;; 16909 esac 16910 PKG_CONFIG=$ac_pt_PKG_CONFIG 16911 fi 16912 else 16913 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16914 fi 16915 16916 fi 16917 if test -n "$PKG_CONFIG"; then 16918 _pkg_min_version=0.9.0 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16920 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16921 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16923 $as_echo "yes" >&6; } 16924 else 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16926 $as_echo "no" >&6; } 16927 PKG_CONFIG="" 16928 fi 16929 fi 16930 16931 # Check whether --enable-libglvnd was given. 16932 if test "${enable_libglvnd+set}" = set; then : 16933 enableval=$enable_libglvnd; LIBGLVND="$enableval" 16934 else 16935 LIBGLVND=no 16936 fi 16937 16938 16939 # Check whether --enable-osmesa was given. 16940 if test "${enable_osmesa+set}" = set; then : 16941 enableval=$enable_osmesa; OSMESA="$enableval" 16942 else 16943 OSMESA=no 16944 fi 16945 16946 16947 if test "x$LIBGLVND" = "xyes"; then : 16948 16949 GLU_REQUIRES="libglvnd" 16950 16951 pkg_failed=no 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLVND" >&5 16953 $as_echo_n "checking for LIBGLVND... " >&6; } 16954 16955 if test -n "$LIBGLVND_CFLAGS"; then 16956 pkg_cv_LIBGLVND_CFLAGS="$LIBGLVND_CFLAGS" 16957 elif test -n "$PKG_CONFIG"; then 16958 if test -n "$PKG_CONFIG" && \ 16959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opengl\""; } >&5 16960 ($PKG_CONFIG --exists --print-errors "opengl") 2>&5 16961 ac_status=$? 16962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16963 test $ac_status = 0; }; then 16964 pkg_cv_LIBGLVND_CFLAGS=`$PKG_CONFIG --cflags "opengl" 2>/dev/null` 16965 test "x$?" != "x0" && pkg_failed=yes 16966 else 16967 pkg_failed=yes 16968 fi 16969 else 16970 pkg_failed=untried 16971 fi 16972 if test -n "$LIBGLVND_LIBS"; then 16973 pkg_cv_LIBGLVND_LIBS="$LIBGLVND_LIBS" 16974 elif test -n "$PKG_CONFIG"; then 16975 if test -n "$PKG_CONFIG" && \ 16976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opengl\""; } >&5 16977 ($PKG_CONFIG --exists --print-errors "opengl") 2>&5 16978 ac_status=$? 16979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16980 test $ac_status = 0; }; then 16981 pkg_cv_LIBGLVND_LIBS=`$PKG_CONFIG --libs "opengl" 2>/dev/null` 16982 test "x$?" != "x0" && pkg_failed=yes 16983 else 16984 pkg_failed=yes 16985 fi 16986 else 16987 pkg_failed=untried 16988 fi 16989 16990 16991 16992 if test $pkg_failed = yes; then 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16994 $as_echo "no" >&6; } 16995 16996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16997 _pkg_short_errors_supported=yes 16998 else 16999 _pkg_short_errors_supported=no 17000 fi 17001 if test $_pkg_short_errors_supported = yes; then 17002 LIBGLVND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opengl" 2>&1` 17003 else 17004 LIBGLVND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opengl" 2>&1` 17005 fi 17006 # Put the nasty error message in config.log where it belongs 17007 echo "$LIBGLVND_PKG_ERRORS" >&5 17008 17009 17010 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 17011 if test "x$ac_cv_header_GL_gl_h" = xyes; then : 17012 17013 else 17014 as_fn_error $? "libglvnd GL not found" "$LINENO" 5 17015 fi 17016 17017 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOpenGL" >&5 17019 $as_echo_n "checking for glBegin in -lOpenGL... " >&6; } 17020 if ${ac_cv_lib_OpenGL_glBegin+:} false; then : 17021 $as_echo_n "(cached) " >&6 17022 else 17023 ac_check_lib_save_LIBS=$LIBS 17024 LIBS="-lOpenGL $LIBS" 17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17026 /* end confdefs.h. */ 17027 17028 /* Override any GCC internal prototype to avoid an error. 17029 Use char because int might match the return type of a GCC 17030 builtin and then its argument prototype would still apply. */ 17031 #ifdef __cplusplus 17032 extern "C" 17033 #endif 17034 char glBegin (); 17035 int 17036 main () 17037 { 17038 return glBegin (); 17039 ; 17040 return 0; 17041 } 17042 _ACEOF 17043 if ac_fn_c_try_link "$LINENO"; then : 17044 ac_cv_lib_OpenGL_glBegin=yes 17045 else 17046 ac_cv_lib_OpenGL_glBegin=no 17047 fi 17048 rm -f core conftest.err conftest.$ac_objext \ 17049 conftest$ac_exeext conftest.$ac_ext 17050 LIBS=$ac_check_lib_save_LIBS 17051 fi 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenGL_glBegin" >&5 17053 $as_echo "$ac_cv_lib_OpenGL_glBegin" >&6; } 17054 if test "x$ac_cv_lib_OpenGL_glBegin" = xyes; then : 17055 GL_LIBS=-lOpenGL 17056 else 17057 as_fn_error $? "libglvnd libOpenGL required" "$LINENO" 5 17058 fi 17059 17060 17061 elif test $pkg_failed = untried; then 17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17063 $as_echo "no" >&6; } 17064 17065 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 17066 if test "x$ac_cv_header_GL_gl_h" = xyes; then : 17067 17068 else 17069 as_fn_error $? "libglvnd GL not found" "$LINENO" 5 17070 fi 17071 17072 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOpenGL" >&5 17074 $as_echo_n "checking for glBegin in -lOpenGL... " >&6; } 17075 if ${ac_cv_lib_OpenGL_glBegin+:} false; then : 17076 $as_echo_n "(cached) " >&6 17077 else 17078 ac_check_lib_save_LIBS=$LIBS 17079 LIBS="-lOpenGL $LIBS" 17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17081 /* end confdefs.h. */ 17082 17083 /* Override any GCC internal prototype to avoid an error. 17084 Use char because int might match the return type of a GCC 17085 builtin and then its argument prototype would still apply. */ 17086 #ifdef __cplusplus 17087 extern "C" 17088 #endif 17089 char glBegin (); 17090 int 17091 main () 17092 { 17093 return glBegin (); 17094 ; 17095 return 0; 17096 } 17097 _ACEOF 17098 if ac_fn_c_try_link "$LINENO"; then : 17099 ac_cv_lib_OpenGL_glBegin=yes 17100 else 17101 ac_cv_lib_OpenGL_glBegin=no 17102 fi 17103 rm -f core conftest.err conftest.$ac_objext \ 17104 conftest$ac_exeext conftest.$ac_ext 17105 LIBS=$ac_check_lib_save_LIBS 17106 fi 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenGL_glBegin" >&5 17108 $as_echo "$ac_cv_lib_OpenGL_glBegin" >&6; } 17109 if test "x$ac_cv_lib_OpenGL_glBegin" = xyes; then : 17110 GL_LIBS=-lOpenGL 17111 else 17112 as_fn_error $? "libglvnd libOpenGL required" "$LINENO" 5 17113 fi 17114 17115 17116 else 17117 LIBGLVND_CFLAGS=$pkg_cv_LIBGLVND_CFLAGS 17118 LIBGLVND_LIBS=$pkg_cv_LIBGLVND_LIBS 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17120 $as_echo "yes" >&6; } 17121 17122 fi 17123 17124 elif test "x$OSMESA" = "xyes"; then : 17125 17126 GLU_REQUIRES="osmesa" 17127 17128 pkg_failed=no 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMESA" >&5 17130 $as_echo_n "checking for OSMESA... " >&6; } 17131 17132 if test -n "$OSMESA_CFLAGS"; then 17133 pkg_cv_OSMESA_CFLAGS="$OSMESA_CFLAGS" 17134 elif test -n "$PKG_CONFIG"; then 17135 if test -n "$PKG_CONFIG" && \ 17136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 17137 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 17138 ac_status=$? 17139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17140 test $ac_status = 0; }; then 17141 pkg_cv_OSMESA_CFLAGS=`$PKG_CONFIG --cflags "osmesa" 2>/dev/null` 17142 test "x$?" != "x0" && pkg_failed=yes 17143 else 17144 pkg_failed=yes 17145 fi 17146 else 17147 pkg_failed=untried 17148 fi 17149 if test -n "$OSMESA_LIBS"; then 17150 pkg_cv_OSMESA_LIBS="$OSMESA_LIBS" 17151 elif test -n "$PKG_CONFIG"; then 17152 if test -n "$PKG_CONFIG" && \ 17153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 17154 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 17155 ac_status=$? 17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17157 test $ac_status = 0; }; then 17158 pkg_cv_OSMESA_LIBS=`$PKG_CONFIG --libs "osmesa" 2>/dev/null` 17159 test "x$?" != "x0" && pkg_failed=yes 17160 else 17161 pkg_failed=yes 17162 fi 17163 else 17164 pkg_failed=untried 17165 fi 17166 17167 17168 17169 if test $pkg_failed = yes; then 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17171 $as_echo "no" >&6; } 17172 17173 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17174 _pkg_short_errors_supported=yes 17175 else 17176 _pkg_short_errors_supported=no 17177 fi 17178 if test $_pkg_short_errors_supported = yes; then 17179 OSMESA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "osmesa" 2>&1` 17180 else 17181 OSMESA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "osmesa" 2>&1` 17182 fi 17183 # Put the nasty error message in config.log where it belongs 17184 echo "$OSMESA_PKG_ERRORS" >&5 17185 17186 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOSMesa" >&5 17188 $as_echo_n "checking for glBegin in -lOSMesa... " >&6; } 17189 if ${ac_cv_lib_OSMesa_glBegin+:} false; then : 17190 $as_echo_n "(cached) " >&6 17191 else 17192 ac_check_lib_save_LIBS=$LIBS 17193 LIBS="-lOSMesa $LIBS" 17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195 /* end confdefs.h. */ 17196 17197 /* Override any GCC internal prototype to avoid an error. 17198 Use char because int might match the return type of a GCC 17199 builtin and then its argument prototype would still apply. */ 17200 #ifdef __cplusplus 17201 extern "C" 17202 #endif 17203 char glBegin (); 17204 int 17205 main () 17206 { 17207 return glBegin (); 17208 ; 17209 return 0; 17210 } 17211 _ACEOF 17212 if ac_fn_c_try_link "$LINENO"; then : 17213 ac_cv_lib_OSMesa_glBegin=yes 17214 else 17215 ac_cv_lib_OSMesa_glBegin=no 17216 fi 17217 rm -f core conftest.err conftest.$ac_objext \ 17218 conftest$ac_exeext conftest.$ac_ext 17219 LIBS=$ac_check_lib_save_LIBS 17220 fi 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_glBegin" >&5 17222 $as_echo "$ac_cv_lib_OSMesa_glBegin" >&6; } 17223 if test "x$ac_cv_lib_OSMesa_glBegin" = xyes; then : 17224 OSMESA_LIBS=-lOSMesa 17225 else 17226 as_fn_error $? "OSMesa required" "$LINENO" 5 17227 fi 17228 17229 17230 elif test $pkg_failed = untried; then 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17232 $as_echo "no" >&6; } 17233 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOSMesa" >&5 17235 $as_echo_n "checking for glBegin in -lOSMesa... " >&6; } 17236 if ${ac_cv_lib_OSMesa_glBegin+:} false; then : 17237 $as_echo_n "(cached) " >&6 17238 else 17239 ac_check_lib_save_LIBS=$LIBS 17240 LIBS="-lOSMesa $LIBS" 17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17242 /* end confdefs.h. */ 17243 17244 /* Override any GCC internal prototype to avoid an error. 17245 Use char because int might match the return type of a GCC 17246 builtin and then its argument prototype would still apply. */ 17247 #ifdef __cplusplus 17248 extern "C" 17249 #endif 17250 char glBegin (); 17251 int 17252 main () 17253 { 17254 return glBegin (); 17255 ; 17256 return 0; 17257 } 17258 _ACEOF 17259 if ac_fn_c_try_link "$LINENO"; then : 17260 ac_cv_lib_OSMesa_glBegin=yes 17261 else 17262 ac_cv_lib_OSMesa_glBegin=no 17263 fi 17264 rm -f core conftest.err conftest.$ac_objext \ 17265 conftest$ac_exeext conftest.$ac_ext 17266 LIBS=$ac_check_lib_save_LIBS 17267 fi 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_glBegin" >&5 17269 $as_echo "$ac_cv_lib_OSMesa_glBegin" >&6; } 17270 if test "x$ac_cv_lib_OSMesa_glBegin" = xyes; then : 17271 OSMESA_LIBS=-lOSMesa 17272 else 17273 as_fn_error $? "OSMesa required" "$LINENO" 5 17274 fi 17275 17276 17277 else 17278 OSMESA_CFLAGS=$pkg_cv_OSMESA_CFLAGS 17279 OSMESA_LIBS=$pkg_cv_OSMESA_LIBS 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17281 $as_echo "yes" >&6; } 17282 17283 fi 17284 17285 else 17286 17287 GLU_REQUIRES="gl" 17288 17289 pkg_failed=no 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 17291 $as_echo_n "checking for GL... " >&6; } 17292 17293 if test -n "$GL_CFLAGS"; then 17294 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 17295 elif test -n "$PKG_CONFIG"; then 17296 if test -n "$PKG_CONFIG" && \ 17297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 17298 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 17299 ac_status=$? 17300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17301 test $ac_status = 0; }; then 17302 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 17303 test "x$?" != "x0" && pkg_failed=yes 17304 else 17305 pkg_failed=yes 17306 fi 17307 else 17308 pkg_failed=untried 17309 fi 17310 if test -n "$GL_LIBS"; then 17311 pkg_cv_GL_LIBS="$GL_LIBS" 17312 elif test -n "$PKG_CONFIG"; then 17313 if test -n "$PKG_CONFIG" && \ 17314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 17315 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 17316 ac_status=$? 17317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17318 test $ac_status = 0; }; then 17319 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 17320 test "x$?" != "x0" && pkg_failed=yes 17321 else 17322 pkg_failed=yes 17323 fi 17324 else 17325 pkg_failed=untried 17326 fi 17327 17328 17329 17330 if test $pkg_failed = yes; then 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17332 $as_echo "no" >&6; } 17333 17334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17335 _pkg_short_errors_supported=yes 17336 else 17337 _pkg_short_errors_supported=no 17338 fi 17339 if test $_pkg_short_errors_supported = yes; then 17340 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 17341 else 17342 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 17343 fi 17344 # Put the nasty error message in config.log where it belongs 17345 echo "$GL_PKG_ERRORS" >&5 17346 17347 17348 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 17349 if test "x$ac_cv_header_GL_gl_h" = xyes; then : 17350 17351 else 17352 as_fn_error $? "GL not found" "$LINENO" 5 17353 fi 17354 17355 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 17357 $as_echo_n "checking for glBegin in -lGL... " >&6; } 17358 if ${ac_cv_lib_GL_glBegin+:} false; then : 17359 $as_echo_n "(cached) " >&6 17360 else 17361 ac_check_lib_save_LIBS=$LIBS 17362 LIBS="-lGL $LIBS" 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364 /* end confdefs.h. */ 17365 17366 /* Override any GCC internal prototype to avoid an error. 17367 Use char because int might match the return type of a GCC 17368 builtin and then its argument prototype would still apply. */ 17369 #ifdef __cplusplus 17370 extern "C" 17371 #endif 17372 char glBegin (); 17373 int 17374 main () 17375 { 17376 return glBegin (); 17377 ; 17378 return 0; 17379 } 17380 _ACEOF 17381 if ac_fn_c_try_link "$LINENO"; then : 17382 ac_cv_lib_GL_glBegin=yes 17383 else 17384 ac_cv_lib_GL_glBegin=no 17385 fi 17386 rm -f core conftest.err conftest.$ac_objext \ 17387 conftest$ac_exeext conftest.$ac_ext 17388 LIBS=$ac_check_lib_save_LIBS 17389 fi 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 17391 $as_echo "$ac_cv_lib_GL_glBegin" >&6; } 17392 if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 17393 GL_LIBS=-lGL 17394 else 17395 as_fn_error $? "GL required" "$LINENO" 5 17396 fi 17397 17398 17399 elif test $pkg_failed = untried; then 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17401 $as_echo "no" >&6; } 17402 17403 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 17404 if test "x$ac_cv_header_GL_gl_h" = xyes; then : 17405 17406 else 17407 as_fn_error $? "GL not found" "$LINENO" 5 17408 fi 17409 17410 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 17412 $as_echo_n "checking for glBegin in -lGL... " >&6; } 17413 if ${ac_cv_lib_GL_glBegin+:} false; then : 17414 $as_echo_n "(cached) " >&6 17415 else 17416 ac_check_lib_save_LIBS=$LIBS 17417 LIBS="-lGL $LIBS" 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419 /* end confdefs.h. */ 17420 17421 /* Override any GCC internal prototype to avoid an error. 17422 Use char because int might match the return type of a GCC 17423 builtin and then its argument prototype would still apply. */ 17424 #ifdef __cplusplus 17425 extern "C" 17426 #endif 17427 char glBegin (); 17428 int 17429 main () 17430 { 17431 return glBegin (); 17432 ; 17433 return 0; 17434 } 17435 _ACEOF 17436 if ac_fn_c_try_link "$LINENO"; then : 17437 ac_cv_lib_GL_glBegin=yes 17438 else 17439 ac_cv_lib_GL_glBegin=no 17440 fi 17441 rm -f core conftest.err conftest.$ac_objext \ 17442 conftest$ac_exeext conftest.$ac_ext 17443 LIBS=$ac_check_lib_save_LIBS 17444 fi 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 17446 $as_echo "$ac_cv_lib_GL_glBegin" >&6; } 17447 if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 17448 GL_LIBS=-lGL 17449 else 17450 as_fn_error $? "GL required" "$LINENO" 5 17451 fi 17452 17453 17454 else 17455 GL_CFLAGS=$pkg_cv_GL_CFLAGS 17456 GL_LIBS=$pkg_cv_GL_LIBS 17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17458 $as_echo "yes" >&6; } 17459 17460 fi 17461 17462 fi 17463 17464 17465 17466 if test "x$GCC" = xyes; then 17467 WARNCFLAGS="-Wall" 17468 17469 # Enable -fvisibility=hidden if using a gcc that supports it 17470 save_CFLAGS="$CFLAGS" 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5 17472 $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; } 17473 VISIBILITY_CFLAGS="-fvisibility=hidden" 17474 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17476 /* end confdefs.h. */ 17477 17478 int 17479 main () 17480 { 17481 17482 ; 17483 return 0; 17484 } 17485 _ACEOF 17486 if ac_fn_c_try_link "$LINENO"; then : 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17488 $as_echo "yes" >&6; } 17489 else 17490 VISIBILITY_CFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17491 $as_echo "no" >&6; } 17492 fi 17493 rm -f core conftest.err conftest.$ac_objext \ 17494 conftest$ac_exeext conftest.$ac_ext; 17495 17496 # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. 17497 CFLAGS=$save_CFLAGS 17498 17499 if test "x$GXX" = xyes; then 17500 WARNCXXFLAGS="-Wall" 17501 17502 # Enable -fvisibility=hidden if using a gcc that supports it 17503 save_CXXFLAGS="$CXXFLAGS" 17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fvisibility=hidden" >&5 17505 $as_echo_n "checking whether $CXX supports -fvisibility=hidden... " >&6; } 17506 VISIBILITY_CXXFLAGS="-fvisibility=hidden" 17507 CXXFLAGS="$CXXFLAGS $VISIBILITY_CXXFLAGS" 17508 ac_ext=cpp 17509 ac_cpp='$CXXCPP $CPPFLAGS' 17510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17513 17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17515 /* end confdefs.h. */ 17516 17517 int 17518 main () 17519 { 17520 17521 ; 17522 return 0; 17523 } 17524 _ACEOF 17525 if ac_fn_cxx_try_link "$LINENO"; then : 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17527 $as_echo "yes" >&6; } 17528 else 17529 VISIBILITY_CXXFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17530 $as_echo "no" >&6; } 17531 fi 17532 rm -f core conftest.err conftest.$ac_objext \ 17533 conftest$ac_exeext conftest.$ac_ext; 17534 ac_ext=c 17535 ac_cpp='$CPP $CPPFLAGS' 17536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17538 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17539 17540 17541 # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed. 17542 CXXFLAGS=$save_CXXFLAGS 17543 fi 17544 else 17545 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 17546 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 17547 SUNCC="yes" 17548 else 17549 SUNCC="no" 17550 fi 17551 17552 if test "x$SUNCC" = "xyes"; then 17553 WARNCFLAGS="-v" 17554 WARNCXXFLAGS="-v" 17555 fi 17556 fi 17557 17558 17559 17560 17561 17562 ac_config_files="$ac_config_files Makefile glu.pc" 17563 17564 cat >confcache <<\_ACEOF 17565 # This file is a shell script that caches the results of configure 17566 # tests run on this system so they can be shared between configure 17567 # scripts and configure runs, see configure's option --config-cache. 17568 # It is not useful on other systems. If it contains results you don't 17569 # want to keep, you may remove or edit it. 17570 # 17571 # config.status only pays attention to the cache file if you give it 17572 # the --recheck option to rerun configure. 17573 # 17574 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17575 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17576 # following values. 17577 17578 _ACEOF 17579 17580 # The following way of writing the cache mishandles newlines in values, 17581 # but we know of no workaround that is simple, portable, and efficient. 17582 # So, we kill variables containing newlines. 17583 # Ultrix sh set writes to stderr and can't be redirected directly, 17584 # and sets the high bit in the cache file unless we assign to the vars. 17585 ( 17586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17587 eval ac_val=\$$ac_var 17588 case $ac_val in #( 17589 *${as_nl}*) 17590 case $ac_var in #( 17591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17593 esac 17594 case $ac_var in #( 17595 _ | IFS | as_nl) ;; #( 17596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17597 *) { eval $ac_var=; unset $ac_var;} ;; 17598 esac ;; 17599 esac 17600 done 17601 17602 (set) 2>&1 | 17603 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17604 *${as_nl}ac_space=\ *) 17605 # `set' does not quote correctly, so add quotes: double-quote 17606 # substitution turns \\\\ into \\, and sed turns \\ into \. 17607 sed -n \ 17608 "s/'/'\\\\''/g; 17609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17610 ;; #( 17611 *) 17612 # `set' quotes correctly as required by POSIX, so do not add quotes. 17613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17614 ;; 17615 esac | 17616 sort 17617 ) | 17618 sed ' 17619 /^ac_cv_env_/b end 17620 t clear 17621 :clear 17622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17623 t end 17624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17625 :end' >>confcache 17626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17627 if test -w "$cache_file"; then 17628 if test "x$cache_file" != "x/dev/null"; then 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17630 $as_echo "$as_me: updating cache $cache_file" >&6;} 17631 if test ! -f "$cache_file" || test -h "$cache_file"; then 17632 cat confcache >"$cache_file" 17633 else 17634 case $cache_file in #( 17635 */* | ?:*) 17636 mv -f confcache "$cache_file"$$ && 17637 mv -f "$cache_file"$$ "$cache_file" ;; #( 17638 *) 17639 mv -f confcache "$cache_file" ;; 17640 esac 17641 fi 17642 fi 17643 else 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17645 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17646 fi 17647 fi 17648 rm -f confcache 17649 17650 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17651 # Let make expand exec_prefix. 17652 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17653 17654 # Transform confdefs.h into DEFS. 17655 # Protect against shell expansion while executing Makefile rules. 17656 # Protect against Makefile macro expansion. 17657 # 17658 # If the first sed substitution is executed (which looks for macros that 17659 # take arguments), then branch to the quote section. Otherwise, 17660 # look for a macro that doesn't take arguments. 17661 ac_script=' 17662 :mline 17663 /\\$/{ 17664 N 17665 s,\\\n,, 17666 b mline 17667 } 17668 t clear 17669 :clear 17670 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 17671 t quote 17672 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 17673 t quote 17674 b any 17675 :quote 17676 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 17677 s/\[/\\&/g 17678 s/\]/\\&/g 17679 s/\$/$$/g 17680 H 17681 :any 17682 ${ 17683 g 17684 s/^\n// 17685 s/\n/ /g 17686 p 17687 } 17688 ' 17689 DEFS=`sed -n "$ac_script" confdefs.h` 17690 17691 17692 ac_libobjs= 17693 ac_ltlibobjs= 17694 U= 17695 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17696 # 1. Remove the extension, and $U if already installed. 17697 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17698 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17700 # will be set to the directory where LIBOBJS objects are built. 17701 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17702 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17703 done 17704 LIBOBJS=$ac_libobjs 17705 17706 LTLIBOBJS=$ac_ltlibobjs 17707 17708 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17710 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17711 if test -n "$am_sleep_pid"; then 17712 # Hide warnings about reused PIDs. 17713 wait $am_sleep_pid 2>/dev/null 17714 fi 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17716 $as_echo "done" >&6; } 17717 if test -n "$EXEEXT"; then 17718 am__EXEEXT_TRUE= 17719 am__EXEEXT_FALSE='#' 17720 else 17721 am__EXEEXT_TRUE='#' 17722 am__EXEEXT_FALSE= 17723 fi 17724 17725 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17726 as_fn_error $? "conditional \"AMDEP\" was never defined. 17727 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17728 fi 17729 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17730 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17731 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17732 fi 17733 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17734 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17735 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17736 fi 17737 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17738 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17739 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17740 fi 17741 17742 : "${CONFIG_STATUS=./config.status}" 17743 ac_write_fail=0 17744 ac_clean_files_save=$ac_clean_files 17745 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17747 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17748 as_write_fail=0 17749 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17750 #! $SHELL 17751 # Generated by $as_me. 17752 # Run this file to recreate the current configuration. 17753 # Compiler output produced by configure, useful for debugging 17754 # configure, is in config.log if it exists. 17755 17756 debug=false 17757 ac_cs_recheck=false 17758 ac_cs_silent=false 17759 17760 SHELL=\${CONFIG_SHELL-$SHELL} 17761 export SHELL 17762 _ASEOF 17763 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17764 ## -------------------- ## 17765 ## M4sh Initialization. ## 17766 ## -------------------- ## 17767 17768 # Be more Bourne compatible 17769 DUALCASE=1; export DUALCASE # for MKS sh 17770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17771 emulate sh 17772 NULLCMD=: 17773 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17774 # is contrary to our usage. Disable this feature. 17775 alias -g '${1+"$@"}'='"$@"' 17776 setopt NO_GLOB_SUBST 17777 else 17778 case `(set -o) 2>/dev/null` in #( 17779 *posix*) : 17780 set -o posix ;; #( 17781 *) : 17782 ;; 17783 esac 17784 fi 17785 17786 17787 as_nl=' 17788 ' 17789 export as_nl 17790 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17791 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17793 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17794 # Prefer a ksh shell builtin over an external printf program on Solaris, 17795 # but without wasting forks for bash or zsh. 17796 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17797 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17798 as_echo='print -r --' 17799 as_echo_n='print -rn --' 17800 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17801 as_echo='printf %s\n' 17802 as_echo_n='printf %s' 17803 else 17804 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17805 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17806 as_echo_n='/usr/ucb/echo -n' 17807 else 17808 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17809 as_echo_n_body='eval 17810 arg=$1; 17811 case $arg in #( 17812 *"$as_nl"*) 17813 expr "X$arg" : "X\\(.*\\)$as_nl"; 17814 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17815 esac; 17816 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17817 ' 17818 export as_echo_n_body 17819 as_echo_n='sh -c $as_echo_n_body as_echo' 17820 fi 17821 export as_echo_body 17822 as_echo='sh -c $as_echo_body as_echo' 17823 fi 17824 17825 # The user is always right. 17826 if test "${PATH_SEPARATOR+set}" != set; then 17827 PATH_SEPARATOR=: 17828 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17829 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17830 PATH_SEPARATOR=';' 17831 } 17832 fi 17833 17834 17835 # IFS 17836 # We need space, tab and new line, in precisely that order. Quoting is 17837 # there to prevent editors from complaining about space-tab. 17838 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17839 # splitting by setting IFS to empty value.) 17840 IFS=" "" $as_nl" 17841 17842 # Find who we are. Look in the path if we contain no directory separator. 17843 as_myself= 17844 case $0 in #(( 17845 *[\\/]* ) as_myself=$0 ;; 17846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17847 for as_dir in $PATH 17848 do 17849 IFS=$as_save_IFS 17850 test -z "$as_dir" && as_dir=. 17851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17852 done 17853 IFS=$as_save_IFS 17854 17855 ;; 17856 esac 17857 # We did not find ourselves, most probably we were run as `sh COMMAND' 17858 # in which case we are not to be found in the path. 17859 if test "x$as_myself" = x; then 17860 as_myself=$0 17861 fi 17862 if test ! -f "$as_myself"; then 17863 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17864 exit 1 17865 fi 17866 17867 # Unset variables that we do not need and which cause bugs (e.g. in 17868 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17869 # suppresses any "Segmentation fault" message there. '((' could 17870 # trigger a bug in pdksh 5.2.14. 17871 for as_var in BASH_ENV ENV MAIL MAILPATH 17872 do eval test x\${$as_var+set} = xset \ 17873 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17874 done 17875 PS1='$ ' 17876 PS2='> ' 17877 PS4='+ ' 17878 17879 # NLS nuisances. 17880 LC_ALL=C 17881 export LC_ALL 17882 LANGUAGE=C 17883 export LANGUAGE 17884 17885 # CDPATH. 17886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17887 17888 17889 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17890 # ---------------------------------------- 17891 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17892 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17893 # script with STATUS, using 1 if that was 0. 17894 as_fn_error () 17895 { 17896 as_status=$1; test $as_status -eq 0 && as_status=1 17897 if test "$4"; then 17898 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17899 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17900 fi 17901 $as_echo "$as_me: error: $2" >&2 17902 as_fn_exit $as_status 17903 } # as_fn_error 17904 17905 17906 # as_fn_set_status STATUS 17907 # ----------------------- 17908 # Set $? to STATUS, without forking. 17909 as_fn_set_status () 17910 { 17911 return $1 17912 } # as_fn_set_status 17913 17914 # as_fn_exit STATUS 17915 # ----------------- 17916 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17917 as_fn_exit () 17918 { 17919 set +e 17920 as_fn_set_status $1 17921 exit $1 17922 } # as_fn_exit 17923 17924 # as_fn_unset VAR 17925 # --------------- 17926 # Portably unset VAR. 17927 as_fn_unset () 17928 { 17929 { eval $1=; unset $1;} 17930 } 17931 as_unset=as_fn_unset 17932 # as_fn_append VAR VALUE 17933 # ---------------------- 17934 # Append the text in VALUE to the end of the definition contained in VAR. Take 17935 # advantage of any shell optimizations that allow amortized linear growth over 17936 # repeated appends, instead of the typical quadratic growth present in naive 17937 # implementations. 17938 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17939 eval 'as_fn_append () 17940 { 17941 eval $1+=\$2 17942 }' 17943 else 17944 as_fn_append () 17945 { 17946 eval $1=\$$1\$2 17947 } 17948 fi # as_fn_append 17949 17950 # as_fn_arith ARG... 17951 # ------------------ 17952 # Perform arithmetic evaluation on the ARGs, and store the result in the 17953 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17954 # must be portable across $(()) and expr. 17955 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17956 eval 'as_fn_arith () 17957 { 17958 as_val=$(( $* )) 17959 }' 17960 else 17961 as_fn_arith () 17962 { 17963 as_val=`expr "$@" || test $? -eq 1` 17964 } 17965 fi # as_fn_arith 17966 17967 17968 if expr a : '\(a\)' >/dev/null 2>&1 && 17969 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17970 as_expr=expr 17971 else 17972 as_expr=false 17973 fi 17974 17975 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17976 as_basename=basename 17977 else 17978 as_basename=false 17979 fi 17980 17981 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17982 as_dirname=dirname 17983 else 17984 as_dirname=false 17985 fi 17986 17987 as_me=`$as_basename -- "$0" || 17988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17989 X"$0" : 'X\(//\)$' \| \ 17990 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17991 $as_echo X/"$0" | 17992 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17993 s//\1/ 17994 q 17995 } 17996 /^X\/\(\/\/\)$/{ 17997 s//\1/ 17998 q 17999 } 18000 /^X\/\(\/\).*/{ 18001 s//\1/ 18002 q 18003 } 18004 s/.*/./; q'` 18005 18006 # Avoid depending upon Character Ranges. 18007 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18010 as_cr_digits='0123456789' 18011 as_cr_alnum=$as_cr_Letters$as_cr_digits 18012 18013 ECHO_C= ECHO_N= ECHO_T= 18014 case `echo -n x` in #((((( 18015 -n*) 18016 case `echo 'xy\c'` in 18017 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18018 xy) ECHO_C='\c';; 18019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18020 ECHO_T=' ';; 18021 esac;; 18022 *) 18023 ECHO_N='-n';; 18024 esac 18025 18026 rm -f conf$$ conf$$.exe conf$$.file 18027 if test -d conf$$.dir; then 18028 rm -f conf$$.dir/conf$$.file 18029 else 18030 rm -f conf$$.dir 18031 mkdir conf$$.dir 2>/dev/null 18032 fi 18033 if (echo >conf$$.file) 2>/dev/null; then 18034 if ln -s conf$$.file conf$$ 2>/dev/null; then 18035 as_ln_s='ln -s' 18036 # ... but there are two gotchas: 18037 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18038 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18039 # In both cases, we have to default to `cp -pR'. 18040 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18041 as_ln_s='cp -pR' 18042 elif ln conf$$.file conf$$ 2>/dev/null; then 18043 as_ln_s=ln 18044 else 18045 as_ln_s='cp -pR' 18046 fi 18047 else 18048 as_ln_s='cp -pR' 18049 fi 18050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18051 rmdir conf$$.dir 2>/dev/null 18052 18053 18054 # as_fn_mkdir_p 18055 # ------------- 18056 # Create "$as_dir" as a directory, including parents if necessary. 18057 as_fn_mkdir_p () 18058 { 18059 18060 case $as_dir in #( 18061 -*) as_dir=./$as_dir;; 18062 esac 18063 test -d "$as_dir" || eval $as_mkdir_p || { 18064 as_dirs= 18065 while :; do 18066 case $as_dir in #( 18067 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18068 *) as_qdir=$as_dir;; 18069 esac 18070 as_dirs="'$as_qdir' $as_dirs" 18071 as_dir=`$as_dirname -- "$as_dir" || 18072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18073 X"$as_dir" : 'X\(//\)[^/]' \| \ 18074 X"$as_dir" : 'X\(//\)$' \| \ 18075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18076 $as_echo X"$as_dir" | 18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18078 s//\1/ 18079 q 18080 } 18081 /^X\(\/\/\)[^/].*/{ 18082 s//\1/ 18083 q 18084 } 18085 /^X\(\/\/\)$/{ 18086 s//\1/ 18087 q 18088 } 18089 /^X\(\/\).*/{ 18090 s//\1/ 18091 q 18092 } 18093 s/.*/./; q'` 18094 test -d "$as_dir" && break 18095 done 18096 test -z "$as_dirs" || eval "mkdir $as_dirs" 18097 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18098 18099 18100 } # as_fn_mkdir_p 18101 if mkdir -p . 2>/dev/null; then 18102 as_mkdir_p='mkdir -p "$as_dir"' 18103 else 18104 test -d ./-p && rmdir ./-p 18105 as_mkdir_p=false 18106 fi 18107 18108 18109 # as_fn_executable_p FILE 18110 # ----------------------- 18111 # Test if FILE is an executable regular file. 18112 as_fn_executable_p () 18113 { 18114 test -f "$1" && test -x "$1" 18115 } # as_fn_executable_p 18116 as_test_x='test -x' 18117 as_executable_p=as_fn_executable_p 18118 18119 # Sed expression to map a string onto a valid CPP name. 18120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18121 18122 # Sed expression to map a string onto a valid variable name. 18123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18124 18125 18126 exec 6>&1 18127 ## ----------------------------------- ## 18128 ## Main body of $CONFIG_STATUS script. ## 18129 ## ----------------------------------- ## 18130 _ASEOF 18131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18132 18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18134 # Save the log message, to keep $0 and so on meaningful, and to 18135 # report actual input values of CONFIG_FILES etc. instead of their 18136 # values after options handling. 18137 ac_log=" 18138 This file was extended by glu $as_me 9.0.2, which was 18139 generated by GNU Autoconf 2.69. Invocation command line was 18140 18141 CONFIG_FILES = $CONFIG_FILES 18142 CONFIG_HEADERS = $CONFIG_HEADERS 18143 CONFIG_LINKS = $CONFIG_LINKS 18144 CONFIG_COMMANDS = $CONFIG_COMMANDS 18145 $ $0 $@ 18146 18147 on `(hostname || uname -n) 2>/dev/null | sed 1q` 18148 " 18149 18150 _ACEOF 18151 18152 case $ac_config_files in *" 18153 "*) set x $ac_config_files; shift; ac_config_files=$*;; 18154 esac 18155 18156 18157 18158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18159 # Files that config.status was made for. 18160 config_files="$ac_config_files" 18161 config_commands="$ac_config_commands" 18162 18163 _ACEOF 18164 18165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18166 ac_cs_usage="\ 18167 \`$as_me' instantiates files and other configuration actions 18168 from templates according to the current configuration. Unless the files 18169 and actions are specified as TAGs, all are instantiated by default. 18170 18171 Usage: $0 [OPTION]... [TAG]... 18172 18173 -h, --help print this help, then exit 18174 -V, --version print version number and configuration settings, then exit 18175 --config print configuration, then exit 18176 -q, --quiet, --silent 18177 do not print progress messages 18178 -d, --debug don't remove temporary files 18179 --recheck update $as_me by reconfiguring in the same conditions 18180 --file=FILE[:TEMPLATE] 18181 instantiate the configuration file FILE 18182 18183 Configuration files: 18184 $config_files 18185 18186 Configuration commands: 18187 $config_commands 18188 18189 Report bugs to <https://gitlab.freedesktop.org/mesa/glu/issues>." 18190 18191 _ACEOF 18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18194 ac_cs_version="\\ 18195 glu config.status 9.0.2 18196 configured by $0, generated by GNU Autoconf 2.69, 18197 with options \\"\$ac_cs_config\\" 18198 18199 Copyright (C) 2012 Free Software Foundation, Inc. 18200 This config.status script is free software; the Free Software Foundation 18201 gives unlimited permission to copy, distribute and modify it." 18202 18203 ac_pwd='$ac_pwd' 18204 srcdir='$srcdir' 18205 INSTALL='$INSTALL' 18206 MKDIR_P='$MKDIR_P' 18207 AWK='$AWK' 18208 test -n "\$AWK" || AWK=awk 18209 _ACEOF 18210 18211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18212 # The default lists apply if the user does not specify any file. 18213 ac_need_defaults=: 18214 while test $# != 0 18215 do 18216 case $1 in 18217 --*=?*) 18218 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18220 ac_shift=: 18221 ;; 18222 --*=) 18223 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18224 ac_optarg= 18225 ac_shift=: 18226 ;; 18227 *) 18228 ac_option=$1 18229 ac_optarg=$2 18230 ac_shift=shift 18231 ;; 18232 esac 18233 18234 case $ac_option in 18235 # Handling of the options. 18236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18237 ac_cs_recheck=: ;; 18238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18239 $as_echo "$ac_cs_version"; exit ;; 18240 --config | --confi | --conf | --con | --co | --c ) 18241 $as_echo "$ac_cs_config"; exit ;; 18242 --debug | --debu | --deb | --de | --d | -d ) 18243 debug=: ;; 18244 --file | --fil | --fi | --f ) 18245 $ac_shift 18246 case $ac_optarg in 18247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18248 '') as_fn_error $? "missing file argument" ;; 18249 esac 18250 as_fn_append CONFIG_FILES " '$ac_optarg'" 18251 ac_need_defaults=false;; 18252 --he | --h | --help | --hel | -h ) 18253 $as_echo "$ac_cs_usage"; exit ;; 18254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18255 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18256 ac_cs_silent=: ;; 18257 18258 # This is an error. 18259 -*) as_fn_error $? "unrecognized option: \`$1' 18260 Try \`$0 --help' for more information." ;; 18261 18262 *) as_fn_append ac_config_targets " $1" 18263 ac_need_defaults=false ;; 18264 18265 esac 18266 shift 18267 done 18268 18269 ac_configure_extra_args= 18270 18271 if $ac_cs_silent; then 18272 exec 6>/dev/null 18273 ac_configure_extra_args="$ac_configure_extra_args --silent" 18274 fi 18275 18276 _ACEOF 18277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18278 if \$ac_cs_recheck; then 18279 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18280 shift 18281 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18282 CONFIG_SHELL='$SHELL' 18283 export CONFIG_SHELL 18284 exec "\$@" 18285 fi 18286 18287 _ACEOF 18288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18289 exec 5>>config.log 18290 { 18291 echo 18292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18293 ## Running $as_me. ## 18294 _ASBOX 18295 $as_echo "$ac_log" 18296 } >&5 18297 18298 _ACEOF 18299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18300 # 18301 # INIT-COMMANDS 18302 # 18303 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18304 18305 18306 # The HP-UX ksh and POSIX shell print the target directory to stdout 18307 # if CDPATH is set. 18308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18309 18310 sed_quote_subst='$sed_quote_subst' 18311 double_quote_subst='$double_quote_subst' 18312 delay_variable_subst='$delay_variable_subst' 18313 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18314 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18315 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18316 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18317 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18318 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18319 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18322 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18323 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18324 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18325 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18326 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18327 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18328 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18329 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18330 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18331 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18332 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18333 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18334 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18335 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18336 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18337 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18338 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18339 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18340 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18341 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18342 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18343 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18344 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18345 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18346 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18347 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18348 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18349 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18350 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18351 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18352 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18353 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18354 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18355 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18356 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18357 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18358 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18359 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18360 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18361 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18362 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18363 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18364 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18365 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18366 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18367 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18368 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18369 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18370 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 18372 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18373 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18374 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18375 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18384 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18421 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18440 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18441 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18448 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18449 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18450 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18451 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18452 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18453 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18454 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18455 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18456 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18457 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18458 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18459 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18460 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18461 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18462 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18463 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18464 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18465 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18466 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18467 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18468 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18469 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18470 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18471 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18472 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18473 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18474 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18475 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18476 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18477 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18478 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18479 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18480 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18481 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18482 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18483 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18484 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18485 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18486 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18487 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18488 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18489 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18490 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18491 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18492 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18493 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18494 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18495 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18496 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18497 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18498 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18499 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18500 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18501 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18502 18503 LTCC='$LTCC' 18504 LTCFLAGS='$LTCFLAGS' 18505 compiler='$compiler_DEFAULT' 18506 18507 # A function that is used when there is no print builtin or printf. 18508 func_fallback_echo () 18509 { 18510 eval 'cat <<_LTECHO_EOF 18511 \$1 18512 _LTECHO_EOF' 18513 } 18514 18515 # Quote evaled strings. 18516 for var in SHELL \ 18517 ECHO \ 18518 PATH_SEPARATOR \ 18519 SED \ 18520 GREP \ 18521 EGREP \ 18522 FGREP \ 18523 LD \ 18524 NM \ 18525 LN_S \ 18526 lt_SP2NL \ 18527 lt_NL2SP \ 18528 reload_flag \ 18529 OBJDUMP \ 18530 deplibs_check_method \ 18531 file_magic_cmd \ 18532 file_magic_glob \ 18533 want_nocaseglob \ 18534 DLLTOOL \ 18535 sharedlib_from_linklib_cmd \ 18536 AR \ 18537 AR_FLAGS \ 18538 archiver_list_spec \ 18539 STRIP \ 18540 RANLIB \ 18541 CC \ 18542 CFLAGS \ 18543 compiler \ 18544 lt_cv_sys_global_symbol_pipe \ 18545 lt_cv_sys_global_symbol_to_cdecl \ 18546 lt_cv_sys_global_symbol_to_import \ 18547 lt_cv_sys_global_symbol_to_c_name_address \ 18548 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18549 lt_cv_nm_interface \ 18550 nm_file_list_spec \ 18551 lt_cv_truncate_bin \ 18552 lt_prog_compiler_no_builtin_flag \ 18553 lt_prog_compiler_pic \ 18554 lt_prog_compiler_wl \ 18555 lt_prog_compiler_static \ 18556 lt_cv_prog_compiler_c_o \ 18557 need_locks \ 18558 MANIFEST_TOOL \ 18559 DSYMUTIL \ 18560 NMEDIT \ 18561 LIPO \ 18562 OTOOL \ 18563 OTOOL64 \ 18564 shrext_cmds \ 18565 export_dynamic_flag_spec \ 18566 whole_archive_flag_spec \ 18567 compiler_needs_object \ 18568 with_gnu_ld \ 18569 allow_undefined_flag \ 18570 no_undefined_flag \ 18571 hardcode_libdir_flag_spec \ 18572 hardcode_libdir_separator \ 18573 exclude_expsyms \ 18574 include_expsyms \ 18575 file_list_spec \ 18576 variables_saved_for_relink \ 18577 libname_spec \ 18578 library_names_spec \ 18579 soname_spec \ 18580 install_override_mode \ 18581 finish_eval \ 18582 old_striplib \ 18583 striplib \ 18584 compiler_lib_search_dirs \ 18585 predep_objects \ 18586 postdep_objects \ 18587 predeps \ 18588 postdeps \ 18589 compiler_lib_search_path \ 18590 LD_CXX \ 18591 reload_flag_CXX \ 18592 compiler_CXX \ 18593 lt_prog_compiler_no_builtin_flag_CXX \ 18594 lt_prog_compiler_pic_CXX \ 18595 lt_prog_compiler_wl_CXX \ 18596 lt_prog_compiler_static_CXX \ 18597 lt_cv_prog_compiler_c_o_CXX \ 18598 export_dynamic_flag_spec_CXX \ 18599 whole_archive_flag_spec_CXX \ 18600 compiler_needs_object_CXX \ 18601 with_gnu_ld_CXX \ 18602 allow_undefined_flag_CXX \ 18603 no_undefined_flag_CXX \ 18604 hardcode_libdir_flag_spec_CXX \ 18605 hardcode_libdir_separator_CXX \ 18606 exclude_expsyms_CXX \ 18607 include_expsyms_CXX \ 18608 file_list_spec_CXX \ 18609 compiler_lib_search_dirs_CXX \ 18610 predep_objects_CXX \ 18611 postdep_objects_CXX \ 18612 predeps_CXX \ 18613 postdeps_CXX \ 18614 compiler_lib_search_path_CXX; do 18615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18616 *[\\\\\\\`\\"\\\$]*) 18617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18618 ;; 18619 *) 18620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18621 ;; 18622 esac 18623 done 18624 18625 # Double-quote double-evaled strings. 18626 for var in reload_cmds \ 18627 old_postinstall_cmds \ 18628 old_postuninstall_cmds \ 18629 old_archive_cmds \ 18630 extract_expsyms_cmds \ 18631 old_archive_from_new_cmds \ 18632 old_archive_from_expsyms_cmds \ 18633 archive_cmds \ 18634 archive_expsym_cmds \ 18635 module_cmds \ 18636 module_expsym_cmds \ 18637 export_symbols_cmds \ 18638 prelink_cmds \ 18639 postlink_cmds \ 18640 postinstall_cmds \ 18641 postuninstall_cmds \ 18642 finish_cmds \ 18643 sys_lib_search_path_spec \ 18644 configure_time_dlsearch_path \ 18645 configure_time_lt_sys_library_path \ 18646 reload_cmds_CXX \ 18647 old_archive_cmds_CXX \ 18648 old_archive_from_new_cmds_CXX \ 18649 old_archive_from_expsyms_cmds_CXX \ 18650 archive_cmds_CXX \ 18651 archive_expsym_cmds_CXX \ 18652 module_cmds_CXX \ 18653 module_expsym_cmds_CXX \ 18654 export_symbols_cmds_CXX \ 18655 prelink_cmds_CXX \ 18656 postlink_cmds_CXX; do 18657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18658 *[\\\\\\\`\\"\\\$]*) 18659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18660 ;; 18661 *) 18662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18663 ;; 18664 esac 18665 done 18666 18667 ac_aux_dir='$ac_aux_dir' 18668 18669 # See if we are running on zsh, and set the options that allow our 18670 # commands through without removal of \ escapes INIT. 18671 if test -n "\${ZSH_VERSION+set}"; then 18672 setopt NO_GLOB_SUBST 18673 fi 18674 18675 18676 PACKAGE='$PACKAGE' 18677 VERSION='$VERSION' 18678 RM='$RM' 18679 ofile='$ofile' 18680 18681 18682 18683 18684 18685 18686 _ACEOF 18687 18688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18689 18690 # Handling of arguments. 18691 for ac_config_target in $ac_config_targets 18692 do 18693 case $ac_config_target in 18694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18697 "glu.pc") CONFIG_FILES="$CONFIG_FILES glu.pc" ;; 18698 18699 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18700 esac 18701 done 18702 18703 18704 # If the user did not use the arguments to specify the items to instantiate, 18705 # then the envvar interface is used. Set only those that are not. 18706 # We use the long form for the default assignment because of an extremely 18707 # bizarre bug on SunOS 4.1.3. 18708 if $ac_need_defaults; then 18709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18711 fi 18712 18713 # Have a temporary directory for convenience. Make it in the build tree 18714 # simply because there is no reason against having it here, and in addition, 18715 # creating and moving files from /tmp can sometimes cause problems. 18716 # Hook for its removal unless debugging. 18717 # Note that there is a small window in which the directory will not be cleaned: 18718 # after its creation but before its name has been assigned to `$tmp'. 18719 $debug || 18720 { 18721 tmp= ac_tmp= 18722 trap 'exit_status=$? 18723 : "${ac_tmp:=$tmp}" 18724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18725 ' 0 18726 trap 'as_fn_exit 1' 1 2 13 15 18727 } 18728 # Create a (secure) tmp directory for tmp files. 18729 18730 { 18731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18732 test -d "$tmp" 18733 } || 18734 { 18735 tmp=./conf$$-$RANDOM 18736 (umask 077 && mkdir "$tmp") 18737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18738 ac_tmp=$tmp 18739 18740 # Set up the scripts for CONFIG_FILES section. 18741 # No need to generate them if there are no CONFIG_FILES. 18742 # This happens for instance with `./config.status config.h'. 18743 if test -n "$CONFIG_FILES"; then 18744 18745 18746 ac_cr=`echo X | tr X '\015'` 18747 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18748 # But we know of no other shell where ac_cr would be empty at this 18749 # point, so we can use a bashism as a fallback. 18750 if test "x$ac_cr" = x; then 18751 eval ac_cr=\$\'\\r\' 18752 fi 18753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18755 ac_cs_awk_cr='\\r' 18756 else 18757 ac_cs_awk_cr=$ac_cr 18758 fi 18759 18760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18761 _ACEOF 18762 18763 18764 { 18765 echo "cat >conf$$subs.awk <<_ACEOF" && 18766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18767 echo "_ACEOF" 18768 } >conf$$subs.sh || 18769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18771 ac_delim='%!_!# ' 18772 for ac_last_try in false false false false false :; do 18773 . ./conf$$subs.sh || 18774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18775 18776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18777 if test $ac_delim_n = $ac_delim_num; then 18778 break 18779 elif $ac_last_try; then 18780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18781 else 18782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18783 fi 18784 done 18785 rm -f conf$$subs.sh 18786 18787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18789 _ACEOF 18790 sed -n ' 18791 h 18792 s/^/S["/; s/!.*/"]=/ 18793 p 18794 g 18795 s/^[^!]*!// 18796 :repl 18797 t repl 18798 s/'"$ac_delim"'$// 18799 t delim 18800 :nl 18801 h 18802 s/\(.\{148\}\)..*/\1/ 18803 t more1 18804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18805 p 18806 n 18807 b repl 18808 :more1 18809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18810 p 18811 g 18812 s/.\{148\}// 18813 t nl 18814 :delim 18815 h 18816 s/\(.\{148\}\)..*/\1/ 18817 t more2 18818 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18819 p 18820 b 18821 :more2 18822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18823 p 18824 g 18825 s/.\{148\}// 18826 t delim 18827 ' <conf$$subs.awk | sed ' 18828 /^[^""]/{ 18829 N 18830 s/\n// 18831 } 18832 ' >>$CONFIG_STATUS || ac_write_fail=1 18833 rm -f conf$$subs.awk 18834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18835 _ACAWK 18836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18837 for (key in S) S_is_set[key] = 1 18838 FS = "" 18839 18840 } 18841 { 18842 line = $ 0 18843 nfields = split(line, field, "@") 18844 substed = 0 18845 len = length(field[1]) 18846 for (i = 2; i < nfields; i++) { 18847 key = field[i] 18848 keylen = length(key) 18849 if (S_is_set[key]) { 18850 value = S[key] 18851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18852 len += length(value) + length(field[++i]) 18853 substed = 1 18854 } else 18855 len += 1 + keylen 18856 } 18857 18858 print line 18859 } 18860 18861 _ACAWK 18862 _ACEOF 18863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18866 else 18867 cat 18868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18870 _ACEOF 18871 18872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18874 # trailing colons and then remove the whole line if VPATH becomes empty 18875 # (actually we leave an empty line to preserve line numbers). 18876 if test "x$srcdir" = x.; then 18877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18878 h 18879 s/// 18880 s/^/:/ 18881 s/[ ]*$/:/ 18882 s/:\$(srcdir):/:/g 18883 s/:\${srcdir}:/:/g 18884 s/:@srcdir@:/:/g 18885 s/^:*// 18886 s/:*$// 18887 x 18888 s/\(=[ ]*\).*/\1/ 18889 G 18890 s/\n// 18891 s/^[^=]*=[ ]*$// 18892 }' 18893 fi 18894 18895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18896 fi # test -n "$CONFIG_FILES" 18897 18898 18899 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 18900 shift 18901 for ac_tag 18902 do 18903 case $ac_tag in 18904 :[FHLC]) ac_mode=$ac_tag; continue;; 18905 esac 18906 case $ac_mode$ac_tag in 18907 :[FHL]*:*);; 18908 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18909 :[FH]-) ac_tag=-:-;; 18910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18911 esac 18912 ac_save_IFS=$IFS 18913 IFS=: 18914 set x $ac_tag 18915 IFS=$ac_save_IFS 18916 shift 18917 ac_file=$1 18918 shift 18919 18920 case $ac_mode in 18921 :L) ac_source=$1;; 18922 :[FH]) 18923 ac_file_inputs= 18924 for ac_f 18925 do 18926 case $ac_f in 18927 -) ac_f="$ac_tmp/stdin";; 18928 *) # Look for the file first in the build tree, then in the source tree 18929 # (if the path is not absolute). The absolute path cannot be DOS-style, 18930 # because $ac_f cannot contain `:'. 18931 test -f "$ac_f" || 18932 case $ac_f in 18933 [\\/$]*) false;; 18934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18935 esac || 18936 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18937 esac 18938 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18939 as_fn_append ac_file_inputs " '$ac_f'" 18940 done 18941 18942 # Let's still pretend it is `configure' which instantiates (i.e., don't 18943 # use $as_me), people would be surprised to read: 18944 # /* config.h. Generated by config.status. */ 18945 configure_input='Generated from '` 18946 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18947 `' by configure.' 18948 if test x"$ac_file" != x-; then 18949 configure_input="$ac_file. $configure_input" 18950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18951 $as_echo "$as_me: creating $ac_file" >&6;} 18952 fi 18953 # Neutralize special characters interpreted by sed in replacement strings. 18954 case $configure_input in #( 18955 *\&* | *\|* | *\\* ) 18956 ac_sed_conf_input=`$as_echo "$configure_input" | 18957 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18958 *) ac_sed_conf_input=$configure_input;; 18959 esac 18960 18961 case $ac_tag in 18962 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18964 esac 18965 ;; 18966 esac 18967 18968 ac_dir=`$as_dirname -- "$ac_file" || 18969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18970 X"$ac_file" : 'X\(//\)[^/]' \| \ 18971 X"$ac_file" : 'X\(//\)$' \| \ 18972 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18973 $as_echo X"$ac_file" | 18974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18975 s//\1/ 18976 q 18977 } 18978 /^X\(\/\/\)[^/].*/{ 18979 s//\1/ 18980 q 18981 } 18982 /^X\(\/\/\)$/{ 18983 s//\1/ 18984 q 18985 } 18986 /^X\(\/\).*/{ 18987 s//\1/ 18988 q 18989 } 18990 s/.*/./; q'` 18991 as_dir="$ac_dir"; as_fn_mkdir_p 18992 ac_builddir=. 18993 18994 case "$ac_dir" in 18995 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18996 *) 18997 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18998 # A ".." for each directory in $ac_dir_suffix. 18999 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19000 case $ac_top_builddir_sub in 19001 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19002 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19003 esac ;; 19004 esac 19005 ac_abs_top_builddir=$ac_pwd 19006 ac_abs_builddir=$ac_pwd$ac_dir_suffix 19007 # for backward compatibility: 19008 ac_top_builddir=$ac_top_build_prefix 19009 19010 case $srcdir in 19011 .) # We are building in place. 19012 ac_srcdir=. 19013 ac_top_srcdir=$ac_top_builddir_sub 19014 ac_abs_top_srcdir=$ac_pwd ;; 19015 [\\/]* | ?:[\\/]* ) # Absolute name. 19016 ac_srcdir=$srcdir$ac_dir_suffix; 19017 ac_top_srcdir=$srcdir 19018 ac_abs_top_srcdir=$srcdir ;; 19019 *) # Relative name. 19020 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19021 ac_top_srcdir=$ac_top_build_prefix$srcdir 19022 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19023 esac 19024 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19025 19026 19027 case $ac_mode in 19028 :F) 19029 # 19030 # CONFIG_FILE 19031 # 19032 19033 case $INSTALL in 19034 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19035 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19036 esac 19037 ac_MKDIR_P=$MKDIR_P 19038 case $MKDIR_P in 19039 [\\/$]* | ?:[\\/]* ) ;; 19040 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19041 esac 19042 _ACEOF 19043 19044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19045 # If the template does not know about datarootdir, expand it. 19046 # FIXME: This hack should be removed a few years after 2.60. 19047 ac_datarootdir_hack=; ac_datarootdir_seen= 19048 ac_sed_dataroot=' 19049 /datarootdir/ { 19050 p 19051 q 19052 } 19053 /@datadir@/p 19054 /@docdir@/p 19055 /@infodir@/p 19056 /@localedir@/p 19057 /@mandir@/p' 19058 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19059 *datarootdir*) ac_datarootdir_seen=yes;; 19060 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19062 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19063 _ACEOF 19064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19065 ac_datarootdir_hack=' 19066 s&@datadir@&$datadir&g 19067 s&@docdir@&$docdir&g 19068 s&@infodir@&$infodir&g 19069 s&@localedir@&$localedir&g 19070 s&@mandir@&$mandir&g 19071 s&\\\${datarootdir}&$datarootdir&g' ;; 19072 esac 19073 _ACEOF 19074 19075 # Neutralize VPATH when `$srcdir' = `.'. 19076 # Shell code in configure.ac might set extrasub. 19077 # FIXME: do we really want to maintain this feature? 19078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19079 ac_sed_extra="$ac_vpsub 19080 $extrasub 19081 _ACEOF 19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19083 :t 19084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19085 s|@configure_input@|$ac_sed_conf_input|;t t 19086 s&@top_builddir@&$ac_top_builddir_sub&;t t 19087 s&@top_build_prefix@&$ac_top_build_prefix&;t t 19088 s&@srcdir@&$ac_srcdir&;t t 19089 s&@abs_srcdir@&$ac_abs_srcdir&;t t 19090 s&@top_srcdir@&$ac_top_srcdir&;t t 19091 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19092 s&@builddir@&$ac_builddir&;t t 19093 s&@abs_builddir@&$ac_abs_builddir&;t t 19094 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19095 s&@INSTALL@&$ac_INSTALL&;t t 19096 s&@MKDIR_P@&$ac_MKDIR_P&;t t 19097 $ac_datarootdir_hack 19098 " 19099 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19101 19102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19105 "$ac_tmp/out"`; test -z "$ac_out"; } && 19106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19107 which seems to be undefined. Please make sure it is defined" >&5 19108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19109 which seems to be undefined. Please make sure it is defined" >&2;} 19110 19111 rm -f "$ac_tmp/stdin" 19112 case $ac_file in 19113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19115 esac \ 19116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19117 ;; 19118 19119 19120 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19121 $as_echo "$as_me: executing $ac_file commands" >&6;} 19122 ;; 19123 esac 19124 19125 19126 case $ac_file$ac_mode in 19127 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19128 # Older Autoconf quotes --file arguments for eval, but not when files 19129 # are listed without --file. Let's play safe and only enable the eval 19130 # if we detect the quoting. 19131 # TODO: see whether this extra hack can be removed once we start 19132 # requiring Autoconf 2.70 or later. 19133 case $CONFIG_FILES in #( 19134 *\'*) : 19135 eval set x "$CONFIG_FILES" ;; #( 19136 *) : 19137 set x $CONFIG_FILES ;; #( 19138 *) : 19139 ;; 19140 esac 19141 shift 19142 # Used to flag and report bootstrapping failures. 19143 am_rc=0 19144 for am_mf 19145 do 19146 # Strip MF so we end up with the name of the file. 19147 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19148 # Check whether this is an Automake generated Makefile which includes 19149 # dependency-tracking related rules and includes. 19150 # Grep'ing the whole file directly is not great: AIX grep has a line 19151 # limit of 2048, but all sed's we know have understand at least 4000. 19152 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19153 || continue 19154 am_dirpart=`$as_dirname -- "$am_mf" || 19155 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19156 X"$am_mf" : 'X\(//\)[^/]' \| \ 19157 X"$am_mf" : 'X\(//\)$' \| \ 19158 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19159 $as_echo X"$am_mf" | 19160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19161 s//\1/ 19162 q 19163 } 19164 /^X\(\/\/\)[^/].*/{ 19165 s//\1/ 19166 q 19167 } 19168 /^X\(\/\/\)$/{ 19169 s//\1/ 19170 q 19171 } 19172 /^X\(\/\).*/{ 19173 s//\1/ 19174 q 19175 } 19176 s/.*/./; q'` 19177 am_filepart=`$as_basename -- "$am_mf" || 19178 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19179 X"$am_mf" : 'X\(//\)$' \| \ 19180 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19181 $as_echo X/"$am_mf" | 19182 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19183 s//\1/ 19184 q 19185 } 19186 /^X\/\(\/\/\)$/{ 19187 s//\1/ 19188 q 19189 } 19190 /^X\/\(\/\).*/{ 19191 s//\1/ 19192 q 19193 } 19194 s/.*/./; q'` 19195 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19196 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19197 | $MAKE -f - am--depfiles" >&5 19198 (cd "$am_dirpart" \ 19199 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19200 | $MAKE -f - am--depfiles) >&5 2>&5 19201 ac_status=$? 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19203 (exit $ac_status); } || am_rc=$? 19204 done 19205 if test $am_rc -ne 0; then 19206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19208 as_fn_error $? "Something went wrong bootstrapping makefile fragments 19209 for automatic dependency tracking. If GNU make was not used, consider 19210 re-running the configure script with MAKE=\"gmake\" (or whatever is 19211 necessary). You can also try re-running configure with the 19212 '--disable-dependency-tracking' option to at least be able to build 19213 the package (albeit without support for automatic dependency tracking). 19214 See \`config.log' for more details" "$LINENO" 5; } 19215 fi 19216 { am_dirpart=; unset am_dirpart;} 19217 { am_filepart=; unset am_filepart;} 19218 { am_mf=; unset am_mf;} 19219 { am_rc=; unset am_rc;} 19220 rm -f conftest-deps.mk 19221 } 19222 ;; 19223 "libtool":C) 19224 19225 # See if we are running on zsh, and set the options that allow our 19226 # commands through without removal of \ escapes. 19227 if test -n "${ZSH_VERSION+set}"; then 19228 setopt NO_GLOB_SUBST 19229 fi 19230 19231 cfgfile=${ofile}T 19232 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19233 $RM "$cfgfile" 19234 19235 cat <<_LT_EOF >> "$cfgfile" 19236 #! $SHELL 19237 # Generated automatically by $as_me ($PACKAGE) $VERSION 19238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19239 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 19240 19241 # Provide generalized library-building support services. 19242 # Written by Gordon Matzigkeit, 1996 19243 19244 # Copyright (C) 2014 Free Software Foundation, Inc. 19245 # This is free software; see the source for copying conditions. There is NO 19246 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19247 19248 # GNU Libtool is free software; you can redistribute it and/or modify 19249 # it under the terms of the GNU General Public License as published by 19250 # the Free Software Foundation; either version 2 of of the License, or 19251 # (at your option) any later version. 19252 # 19253 # As a special exception to the GNU General Public License, if you 19254 # distribute this file as part of a program or library that is built 19255 # using GNU Libtool, you may include this file under the same 19256 # distribution terms that you use for the rest of that program. 19257 # 19258 # GNU Libtool is distributed in the hope that it will be useful, but 19259 # WITHOUT ANY WARRANTY; without even the implied warranty of 19260 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19261 # GNU General Public License for more details. 19262 # 19263 # You should have received a copy of the GNU General Public License 19264 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19265 19266 19267 # The names of the tagged configurations supported by this script. 19268 available_tags='CXX ' 19269 19270 # Configured defaults for sys_lib_dlsearch_path munging. 19271 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19272 19273 # ### BEGIN LIBTOOL CONFIG 19274 19275 # Which release of libtool.m4 was used? 19276 macro_version=$macro_version 19277 macro_revision=$macro_revision 19278 19279 # Whether or not to build shared libraries. 19280 build_libtool_libs=$enable_shared 19281 19282 # Whether or not to build static libraries. 19283 build_old_libs=$enable_static 19284 19285 # What type of objects to build. 19286 pic_mode=$pic_mode 19287 19288 # Whether or not to optimize for fast installation. 19289 fast_install=$enable_fast_install 19290 19291 # Shared archive member basename,for filename based shared library versioning on AIX. 19292 shared_archive_member_spec=$shared_archive_member_spec 19293 19294 # Shell to use when invoking shell scripts. 19295 SHELL=$lt_SHELL 19296 19297 # An echo program that protects backslashes. 19298 ECHO=$lt_ECHO 19299 19300 # The PATH separator for the build system. 19301 PATH_SEPARATOR=$lt_PATH_SEPARATOR 19302 19303 # The host system. 19304 host_alias=$host_alias 19305 host=$host 19306 host_os=$host_os 19307 19308 # The build system. 19309 build_alias=$build_alias 19310 build=$build 19311 build_os=$build_os 19312 19313 # A sed program that does not truncate output. 19314 SED=$lt_SED 19315 19316 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19317 Xsed="\$SED -e 1s/^X//" 19318 19319 # A grep program that handles long lines. 19320 GREP=$lt_GREP 19321 19322 # An ERE matcher. 19323 EGREP=$lt_EGREP 19324 19325 # A literal string matcher. 19326 FGREP=$lt_FGREP 19327 19328 # A BSD- or MS-compatible name lister. 19329 NM=$lt_NM 19330 19331 # Whether we need soft or hard links. 19332 LN_S=$lt_LN_S 19333 19334 # What is the maximum length of a command? 19335 max_cmd_len=$max_cmd_len 19336 19337 # Object file suffix (normally "o"). 19338 objext=$ac_objext 19339 19340 # Executable file suffix (normally ""). 19341 exeext=$exeext 19342 19343 # whether the shell understands "unset". 19344 lt_unset=$lt_unset 19345 19346 # turn spaces into newlines. 19347 SP2NL=$lt_lt_SP2NL 19348 19349 # turn newlines into spaces. 19350 NL2SP=$lt_lt_NL2SP 19351 19352 # convert \$build file names to \$host format. 19353 to_host_file_cmd=$lt_cv_to_host_file_cmd 19354 19355 # convert \$build files to toolchain format. 19356 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19357 19358 # An object symbol dumper. 19359 OBJDUMP=$lt_OBJDUMP 19360 19361 # Method to check whether dependent libraries are shared objects. 19362 deplibs_check_method=$lt_deplibs_check_method 19363 19364 # Command to use when deplibs_check_method = "file_magic". 19365 file_magic_cmd=$lt_file_magic_cmd 19366 19367 # How to find potential files when deplibs_check_method = "file_magic". 19368 file_magic_glob=$lt_file_magic_glob 19369 19370 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19371 want_nocaseglob=$lt_want_nocaseglob 19372 19373 # DLL creation program. 19374 DLLTOOL=$lt_DLLTOOL 19375 19376 # Command to associate shared and link libraries. 19377 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19378 19379 # The archiver. 19380 AR=$lt_AR 19381 19382 # Flags to create an archive. 19383 AR_FLAGS=$lt_AR_FLAGS 19384 19385 # How to feed a file listing to the archiver. 19386 archiver_list_spec=$lt_archiver_list_spec 19387 19388 # A symbol stripping program. 19389 STRIP=$lt_STRIP 19390 19391 # Commands used to install an old-style archive. 19392 RANLIB=$lt_RANLIB 19393 old_postinstall_cmds=$lt_old_postinstall_cmds 19394 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19395 19396 # Whether to use a lock for old archive extraction. 19397 lock_old_archive_extraction=$lock_old_archive_extraction 19398 19399 # A C compiler. 19400 LTCC=$lt_CC 19401 19402 # LTCC compiler flags. 19403 LTCFLAGS=$lt_CFLAGS 19404 19405 # Take the output of nm and produce a listing of raw symbols and C names. 19406 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19407 19408 # Transform the output of nm in a proper C declaration. 19409 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19410 19411 # Transform the output of nm into a list of symbols to manually relocate. 19412 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19413 19414 # Transform the output of nm in a C name address pair. 19415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19416 19417 # Transform the output of nm in a C name address pair when lib prefix is needed. 19418 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19419 19420 # The name lister interface. 19421 nm_interface=$lt_lt_cv_nm_interface 19422 19423 # Specify filename containing input files for \$NM. 19424 nm_file_list_spec=$lt_nm_file_list_spec 19425 19426 # The root where to search for dependent libraries,and where our libraries should be installed. 19427 lt_sysroot=$lt_sysroot 19428 19429 # Command to truncate a binary pipe. 19430 lt_truncate_bin=$lt_lt_cv_truncate_bin 19431 19432 # The name of the directory that contains temporary libtool files. 19433 objdir=$objdir 19434 19435 # Used to examine libraries when file_magic_cmd begins with "file". 19436 MAGIC_CMD=$MAGIC_CMD 19437 19438 # Must we lock files when doing compilation? 19439 need_locks=$lt_need_locks 19440 19441 # Manifest tool. 19442 MANIFEST_TOOL=$lt_MANIFEST_TOOL 19443 19444 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19445 DSYMUTIL=$lt_DSYMUTIL 19446 19447 # Tool to change global to local symbols on Mac OS X. 19448 NMEDIT=$lt_NMEDIT 19449 19450 # Tool to manipulate fat objects and archives on Mac OS X. 19451 LIPO=$lt_LIPO 19452 19453 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19454 OTOOL=$lt_OTOOL 19455 19456 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19457 OTOOL64=$lt_OTOOL64 19458 19459 # Old archive suffix (normally "a"). 19460 libext=$libext 19461 19462 # Shared library suffix (normally ".so"). 19463 shrext_cmds=$lt_shrext_cmds 19464 19465 # The commands to extract the exported symbol list from a shared archive. 19466 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19467 19468 # Variables whose values should be saved in libtool wrapper scripts and 19469 # restored at link time. 19470 variables_saved_for_relink=$lt_variables_saved_for_relink 19471 19472 # Do we need the "lib" prefix for modules? 19473 need_lib_prefix=$need_lib_prefix 19474 19475 # Do we need a version for libraries? 19476 need_version=$need_version 19477 19478 # Library versioning type. 19479 version_type=$version_type 19480 19481 # Shared library runtime path variable. 19482 runpath_var=$runpath_var 19483 19484 # Shared library path variable. 19485 shlibpath_var=$shlibpath_var 19486 19487 # Is shlibpath searched before the hard-coded library search path? 19488 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19489 19490 # Format of library name prefix. 19491 libname_spec=$lt_libname_spec 19492 19493 # List of archive names. First name is the real one, the rest are links. 19494 # The last name is the one that the linker finds with -lNAME 19495 library_names_spec=$lt_library_names_spec 19496 19497 # The coded name of the library, if different from the real name. 19498 soname_spec=$lt_soname_spec 19499 19500 # Permission mode override for installation of shared libraries. 19501 install_override_mode=$lt_install_override_mode 19502 19503 # Command to use after installation of a shared archive. 19504 postinstall_cmds=$lt_postinstall_cmds 19505 19506 # Command to use after uninstallation of a shared archive. 19507 postuninstall_cmds=$lt_postuninstall_cmds 19508 19509 # Commands used to finish a libtool library installation in a directory. 19510 finish_cmds=$lt_finish_cmds 19511 19512 # As "finish_cmds", except a single script fragment to be evaled but 19513 # not shown. 19514 finish_eval=$lt_finish_eval 19515 19516 # Whether we should hardcode library paths into libraries. 19517 hardcode_into_libs=$hardcode_into_libs 19518 19519 # Compile-time system search path for libraries. 19520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19521 19522 # Detected run-time system search path for libraries. 19523 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19524 19525 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19526 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19527 19528 # Whether dlopen is supported. 19529 dlopen_support=$enable_dlopen 19530 19531 # Whether dlopen of programs is supported. 19532 dlopen_self=$enable_dlopen_self 19533 19534 # Whether dlopen of statically linked programs is supported. 19535 dlopen_self_static=$enable_dlopen_self_static 19536 19537 # Commands to strip libraries. 19538 old_striplib=$lt_old_striplib 19539 striplib=$lt_striplib 19540 19541 19542 # The linker used to build libraries. 19543 LD=$lt_LD 19544 19545 # How to create reloadable object files. 19546 reload_flag=$lt_reload_flag 19547 reload_cmds=$lt_reload_cmds 19548 19549 # Commands used to build an old-style archive. 19550 old_archive_cmds=$lt_old_archive_cmds 19551 19552 # A language specific compiler. 19553 CC=$lt_compiler 19554 19555 # Is the compiler the GNU compiler? 19556 with_gcc=$GCC 19557 19558 # Compiler flag to turn off builtin functions. 19559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19560 19561 # Additional compiler flags for building library objects. 19562 pic_flag=$lt_lt_prog_compiler_pic 19563 19564 # How to pass a linker flag through the compiler. 19565 wl=$lt_lt_prog_compiler_wl 19566 19567 # Compiler flag to prevent dynamic linking. 19568 link_static_flag=$lt_lt_prog_compiler_static 19569 19570 # Does compiler simultaneously support -c and -o options? 19571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19572 19573 # Whether or not to add -lc for building shared libraries. 19574 build_libtool_need_lc=$archive_cmds_need_lc 19575 19576 # Whether or not to disallow shared libs when runtime libs are static. 19577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19578 19579 # Compiler flag to allow reflexive dlopens. 19580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19581 19582 # Compiler flag to generate shared objects directly from archives. 19583 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19584 19585 # Whether the compiler copes with passing no objects directly. 19586 compiler_needs_object=$lt_compiler_needs_object 19587 19588 # Create an old-style archive from a shared archive. 19589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19590 19591 # Create a temporary old-style archive to link instead of a shared archive. 19592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19593 19594 # Commands used to build a shared archive. 19595 archive_cmds=$lt_archive_cmds 19596 archive_expsym_cmds=$lt_archive_expsym_cmds 19597 19598 # Commands used to build a loadable module if different from building 19599 # a shared archive. 19600 module_cmds=$lt_module_cmds 19601 module_expsym_cmds=$lt_module_expsym_cmds 19602 19603 # Whether we are building with GNU ld or not. 19604 with_gnu_ld=$lt_with_gnu_ld 19605 19606 # Flag that allows shared libraries with undefined symbols to be built. 19607 allow_undefined_flag=$lt_allow_undefined_flag 19608 19609 # Flag that enforces no undefined symbols. 19610 no_undefined_flag=$lt_no_undefined_flag 19611 19612 # Flag to hardcode \$libdir into a binary during linking. 19613 # This must work even if \$libdir does not exist 19614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19615 19616 # Whether we need a single "-rpath" flag with a separated argument. 19617 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19618 19619 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19620 # DIR into the resulting binary. 19621 hardcode_direct=$hardcode_direct 19622 19623 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19624 # DIR into the resulting binary and the resulting library dependency is 19625 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19626 # library is relocated. 19627 hardcode_direct_absolute=$hardcode_direct_absolute 19628 19629 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19630 # into the resulting binary. 19631 hardcode_minus_L=$hardcode_minus_L 19632 19633 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19634 # into the resulting binary. 19635 hardcode_shlibpath_var=$hardcode_shlibpath_var 19636 19637 # Set to "yes" if building a shared library automatically hardcodes DIR 19638 # into the library and all subsequent libraries and executables linked 19639 # against it. 19640 hardcode_automatic=$hardcode_automatic 19641 19642 # Set to yes if linker adds runtime paths of dependent libraries 19643 # to runtime path list. 19644 inherit_rpath=$inherit_rpath 19645 19646 # Whether libtool must link a program against all its dependency libraries. 19647 link_all_deplibs=$link_all_deplibs 19648 19649 # Set to "yes" if exported symbols are required. 19650 always_export_symbols=$always_export_symbols 19651 19652 # The commands to list exported symbols. 19653 export_symbols_cmds=$lt_export_symbols_cmds 19654 19655 # Symbols that should not be listed in the preloaded symbols. 19656 exclude_expsyms=$lt_exclude_expsyms 19657 19658 # Symbols that must always be exported. 19659 include_expsyms=$lt_include_expsyms 19660 19661 # Commands necessary for linking programs (against libraries) with templates. 19662 prelink_cmds=$lt_prelink_cmds 19663 19664 # Commands necessary for finishing linking programs. 19665 postlink_cmds=$lt_postlink_cmds 19666 19667 # Specify filename containing input files. 19668 file_list_spec=$lt_file_list_spec 19669 19670 # How to hardcode a shared library path into an executable. 19671 hardcode_action=$hardcode_action 19672 19673 # The directories searched by this compiler when creating a shared library. 19674 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19675 19676 # Dependencies to place before and after the objects being linked to 19677 # create a shared library. 19678 predep_objects=$lt_predep_objects 19679 postdep_objects=$lt_postdep_objects 19680 predeps=$lt_predeps 19681 postdeps=$lt_postdeps 19682 19683 # The library search path used internally by the compiler when linking 19684 # a shared library. 19685 compiler_lib_search_path=$lt_compiler_lib_search_path 19686 19687 # ### END LIBTOOL CONFIG 19688 19689 _LT_EOF 19690 19691 cat <<'_LT_EOF' >> "$cfgfile" 19692 19693 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19694 19695 # func_munge_path_list VARIABLE PATH 19696 # ----------------------------------- 19697 # VARIABLE is name of variable containing _space_ separated list of 19698 # directories to be munged by the contents of PATH, which is string 19699 # having a format: 19700 # "DIR[:DIR]:" 19701 # string "DIR[ DIR]" will be prepended to VARIABLE 19702 # ":DIR[:DIR]" 19703 # string "DIR[ DIR]" will be appended to VARIABLE 19704 # "DIRP[:DIRP]::[DIRA:]DIRA" 19705 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19706 # "DIRA[ DIRA]" will be appended to VARIABLE 19707 # "DIR[:DIR]" 19708 # VARIABLE will be replaced by "DIR[ DIR]" 19709 func_munge_path_list () 19710 { 19711 case x$2 in 19712 x) 19713 ;; 19714 *:) 19715 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19716 ;; 19717 x:*) 19718 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19719 ;; 19720 *::*) 19721 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19722 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19723 ;; 19724 *) 19725 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19726 ;; 19727 esac 19728 } 19729 19730 19731 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19732 func_cc_basename () 19733 { 19734 for cc_temp in $*""; do 19735 case $cc_temp in 19736 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19737 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19738 \-*) ;; 19739 *) break;; 19740 esac 19741 done 19742 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19743 } 19744 19745 19746 # ### END FUNCTIONS SHARED WITH CONFIGURE 19747 19748 _LT_EOF 19749 19750 case $host_os in 19751 aix3*) 19752 cat <<\_LT_EOF >> "$cfgfile" 19753 # AIX sometimes has problems with the GCC collect2 program. For some 19754 # reason, if we set the COLLECT_NAMES environment variable, the problems 19755 # vanish in a puff of smoke. 19756 if test set != "${COLLECT_NAMES+set}"; then 19757 COLLECT_NAMES= 19758 export COLLECT_NAMES 19759 fi 19760 _LT_EOF 19761 ;; 19762 esac 19763 19764 19765 ltmain=$ac_aux_dir/ltmain.sh 19766 19767 19768 # We use sed instead of cat because bash on DJGPP gets confused if 19769 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19770 # text mode, it properly converts lines to CR/LF. This bash problem 19771 # is reportedly fixed, but why not run on old versions too? 19772 sed '$q' "$ltmain" >> "$cfgfile" \ 19773 || (rm -f "$cfgfile"; exit 1) 19774 19775 mv -f "$cfgfile" "$ofile" || 19776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19777 chmod +x "$ofile" 19778 19779 19780 cat <<_LT_EOF >> "$ofile" 19781 19782 # ### BEGIN LIBTOOL TAG CONFIG: CXX 19783 19784 # The linker used to build libraries. 19785 LD=$lt_LD_CXX 19786 19787 # How to create reloadable object files. 19788 reload_flag=$lt_reload_flag_CXX 19789 reload_cmds=$lt_reload_cmds_CXX 19790 19791 # Commands used to build an old-style archive. 19792 old_archive_cmds=$lt_old_archive_cmds_CXX 19793 19794 # A language specific compiler. 19795 CC=$lt_compiler_CXX 19796 19797 # Is the compiler the GNU compiler? 19798 with_gcc=$GCC_CXX 19799 19800 # Compiler flag to turn off builtin functions. 19801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19802 19803 # Additional compiler flags for building library objects. 19804 pic_flag=$lt_lt_prog_compiler_pic_CXX 19805 19806 # How to pass a linker flag through the compiler. 19807 wl=$lt_lt_prog_compiler_wl_CXX 19808 19809 # Compiler flag to prevent dynamic linking. 19810 link_static_flag=$lt_lt_prog_compiler_static_CXX 19811 19812 # Does compiler simultaneously support -c and -o options? 19813 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19814 19815 # Whether or not to add -lc for building shared libraries. 19816 build_libtool_need_lc=$archive_cmds_need_lc_CXX 19817 19818 # Whether or not to disallow shared libs when runtime libs are static. 19819 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19820 19821 # Compiler flag to allow reflexive dlopens. 19822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19823 19824 # Compiler flag to generate shared objects directly from archives. 19825 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19826 19827 # Whether the compiler copes with passing no objects directly. 19828 compiler_needs_object=$lt_compiler_needs_object_CXX 19829 19830 # Create an old-style archive from a shared archive. 19831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19832 19833 # Create a temporary old-style archive to link instead of a shared archive. 19834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19835 19836 # Commands used to build a shared archive. 19837 archive_cmds=$lt_archive_cmds_CXX 19838 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19839 19840 # Commands used to build a loadable module if different from building 19841 # a shared archive. 19842 module_cmds=$lt_module_cmds_CXX 19843 module_expsym_cmds=$lt_module_expsym_cmds_CXX 19844 19845 # Whether we are building with GNU ld or not. 19846 with_gnu_ld=$lt_with_gnu_ld_CXX 19847 19848 # Flag that allows shared libraries with undefined symbols to be built. 19849 allow_undefined_flag=$lt_allow_undefined_flag_CXX 19850 19851 # Flag that enforces no undefined symbols. 19852 no_undefined_flag=$lt_no_undefined_flag_CXX 19853 19854 # Flag to hardcode \$libdir into a binary during linking. 19855 # This must work even if \$libdir does not exist 19856 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19857 19858 # Whether we need a single "-rpath" flag with a separated argument. 19859 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19860 19861 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19862 # DIR into the resulting binary. 19863 hardcode_direct=$hardcode_direct_CXX 19864 19865 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19866 # DIR into the resulting binary and the resulting library dependency is 19867 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19868 # library is relocated. 19869 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19870 19871 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19872 # into the resulting binary. 19873 hardcode_minus_L=$hardcode_minus_L_CXX 19874 19875 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19876 # into the resulting binary. 19877 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19878 19879 # Set to "yes" if building a shared library automatically hardcodes DIR 19880 # into the library and all subsequent libraries and executables linked 19881 # against it. 19882 hardcode_automatic=$hardcode_automatic_CXX 19883 19884 # Set to yes if linker adds runtime paths of dependent libraries 19885 # to runtime path list. 19886 inherit_rpath=$inherit_rpath_CXX 19887 19888 # Whether libtool must link a program against all its dependency libraries. 19889 link_all_deplibs=$link_all_deplibs_CXX 19890 19891 # Set to "yes" if exported symbols are required. 19892 always_export_symbols=$always_export_symbols_CXX 19893 19894 # The commands to list exported symbols. 19895 export_symbols_cmds=$lt_export_symbols_cmds_CXX 19896 19897 # Symbols that should not be listed in the preloaded symbols. 19898 exclude_expsyms=$lt_exclude_expsyms_CXX 19899 19900 # Symbols that must always be exported. 19901 include_expsyms=$lt_include_expsyms_CXX 19902 19903 # Commands necessary for linking programs (against libraries) with templates. 19904 prelink_cmds=$lt_prelink_cmds_CXX 19905 19906 # Commands necessary for finishing linking programs. 19907 postlink_cmds=$lt_postlink_cmds_CXX 19908 19909 # Specify filename containing input files. 19910 file_list_spec=$lt_file_list_spec_CXX 19911 19912 # How to hardcode a shared library path into an executable. 19913 hardcode_action=$hardcode_action_CXX 19914 19915 # The directories searched by this compiler when creating a shared library. 19916 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19917 19918 # Dependencies to place before and after the objects being linked to 19919 # create a shared library. 19920 predep_objects=$lt_predep_objects_CXX 19921 postdep_objects=$lt_postdep_objects_CXX 19922 predeps=$lt_predeps_CXX 19923 postdeps=$lt_postdeps_CXX 19924 19925 # The library search path used internally by the compiler when linking 19926 # a shared library. 19927 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19928 19929 # ### END LIBTOOL TAG CONFIG: CXX 19930 _LT_EOF 19931 19932 ;; 19933 19934 esac 19935 done # for ac_tag 19936 19937 19938 as_fn_exit 0 19939 _ACEOF 19940 ac_clean_files=$ac_clean_files_save 19941 19942 test $ac_write_fail = 0 || 19943 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19944 19945 19946 # configure is writing to config.log, and then calls config.status. 19947 # config.status does its own redirection, appending to config.log. 19948 # Unfortunately, on DOS this fails, as config.log is still kept open 19949 # by configure, so config.status won't be able to write to it; its 19950 # output is simply discarded. So we exec the FD to /dev/null, 19951 # effectively closing config.log, so it can be properly (re)opened and 19952 # appended to by config.status. When coming back to configure, we 19953 # need to make the FD available again. 19954 if test "$no_create" != yes; then 19955 ac_cs_success=: 19956 ac_config_status_args= 19957 test "$silent" = yes && 19958 ac_config_status_args="$ac_config_status_args --quiet" 19959 exec 5>/dev/null 19960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19961 exec 5>>config.log 19962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19963 # would make configure fail if this is the last instruction. 19964 $ac_cs_success || as_fn_exit 1 19965 fi 19966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19969 fi 19970 19971