1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.70 for wayland 1.19.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020 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 18DUALCASE=1; export DUALCASE # for MKS sh 19as_nop=: 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else $as_nop 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38 39# Reset variables that may have inherited troublesome values from 40# the environment. 41 42# IFS needs to be set, to space, tab, and newline, in precisely that order. 43# (If _AS_PATH_WALK were called with IFS unset, it would have the 44# side effect of setting IFS to empty, thus disabling word splitting.) 45# Quoting is to prevent editors from complaining about space-tab. 46as_nl=' 47' 48export as_nl 49IFS=" "" $as_nl" 50 51PS1='$ ' 52PS2='> ' 53PS4='+ ' 54 55# Ensure predictable behavior from utilities with locale-dependent output. 56LC_ALL=C 57export LC_ALL 58LANGUAGE=C 59export LANGUAGE 60 61# We cannot yet rely on "unset" to work, but we need these variables 62# to be unset--not just set to an empty or harmless value--now, to 63# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 64# also avoids known problems related to "unset" and subshell syntax 65# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 66for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 67do eval test \${$as_var+y} \ 68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69done 70 71# Ensure that fds 0, 1, and 2 are open. 72if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 73if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 74if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 75 76# The user is always right. 77if ${PATH_SEPARATOR+false} :; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# Find who we are. Look in the path if we contain no directory separator. 87as_myself= 88case $0 in #(( 89 *[\\/]* ) as_myself=$0 ;; 90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 91for as_dir in $PATH 92do 93 IFS=$as_save_IFS 94 case $as_dir in #((( 95 '') as_dir=./ ;; 96 */) ;; 97 *) as_dir=$as_dir/ ;; 98 esac 99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115 116# Use a proper internal environment variable to ensure we don't fall 117 # into an infinite loop, continuously re-executing ourselves. 118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 119 _as_can_reexec=no; export _as_can_reexec; 120 # We cannot yet assume a decent shell, so we have to provide a 121# neutralization value for shells without unset; and this also 122# works around shells that cannot unset nonexistent variables. 123# Preserve -v and -x to the replacement shell. 124BASH_ENV=/dev/null 125ENV=/dev/null 126(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 127case $- in # (((( 128 *v*x* | *x*v* ) as_opts=-vx ;; 129 *v* ) as_opts=-v ;; 130 *x* ) as_opts=-x ;; 131 * ) as_opts= ;; 132esac 133exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 134# Admittedly, this is quite paranoid, since all the known shells bail 135# out after a failed `exec'. 136printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 137exit 255 138 fi 139 # We don't want this to propagate to other subprocesses. 140 { _as_can_reexec=; unset _as_can_reexec;} 141if test "x$CONFIG_SHELL" = x; then 142 as_bourne_compatible="as_nop=: 143if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else \$as_nop 152 case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac 158fi 159" 160 as_required="as_fn_return () { (exit \$1); } 161as_fn_success () { as_fn_return 0; } 162as_fn_failure () { as_fn_return 1; } 163as_fn_ret_success () { return 0; } 164as_fn_ret_failure () { return 1; } 165 166exitcode=0 167as_fn_success || { exitcode=1; echo as_fn_success failed.; } 168as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 169as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 170as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 171if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 172then : 173 174else \$as_nop 175 exitcode=1; echo positional parameters were not saved. 176fi 177test x\$exitcode = x0 || exit 1 178blah=\$(echo \$(echo blah)) 179test x\"\$blah\" = xblah || exit 1 180test -x / || exit 1" 181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 194 if (eval "$as_required") 2>/dev/null 195then : 196 as_have_required=yes 197else $as_nop 198 as_have_required=no 199fi 200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 201then : 202 203else $as_nop 204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 205as_found=false 206for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 207do 208 IFS=$as_save_IFS 209 case $as_dir in #((( 210 '') as_dir=./ ;; 211 */) ;; 212 *) as_dir=$as_dir/ ;; 213 esac 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 222then : 223 CONFIG_SHELL=$as_shell as_have_required=yes 224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 225then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233IFS=$as_save_IFS 234if $as_found 235then : 236 237else $as_nop 238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 240then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi 243fi 244 245 246 if test "x$CONFIG_SHELL" != x 247then : 248 export CONFIG_SHELL 249 # We cannot yet assume a decent shell, so we have to provide a 250# neutralization value for shells without unset; and this also 251# works around shells that cannot unset nonexistent variables. 252# Preserve -v and -x to the replacement shell. 253BASH_ENV=/dev/null 254ENV=/dev/null 255(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 256case $- in # (((( 257 *v*x* | *x*v* ) as_opts=-vx ;; 258 *v* ) as_opts=-v ;; 259 *x* ) as_opts=-x ;; 260 * ) as_opts= ;; 261esac 262exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 263# Admittedly, this is quite paranoid, since all the known shells bail 264# out after a failed `exec'. 265printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 266exit 255 267fi 268 269 if test x$as_have_required = xno 270then : 271 printf "%s\n" "$0: This script requires a shell more modern than all" 272 printf "%s\n" "$0: the shells that I found on your system." 273 if test ${ZSH_VERSION+y} ; then 274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/wayland/wayland/issues/ 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600as_awk_strverscmp=' 601 # Use only awk features that work with 7th edition Unix awk (1978). 602 # My, what an old awk you have, Mr. Solaris! 603 END { 604 while (length(v1) && length(v2)) { 605 # Set d1 to be the next thing to compare from v1, and likewise for d2. 606 # Normally this is a single character, but if v1 and v2 contain digits, 607 # compare them as integers and fractions as strverscmp does. 608 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 609 # Split v1 and v2 into their leading digit string components d1 and d2, 610 # and advance v1 and v2 past the leading digit strings. 611 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 612 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 613 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 614 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 615 if (d1 ~ /^0/) { 616 if (d2 ~ /^0/) { 617 # Compare two fractions. 618 while (d1 ~ /^0/ && d2 ~ /^0/) { 619 d1 = substr(d1, 2); len1-- 620 d2 = substr(d2, 2); len2-- 621 } 622 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 623 # The two components differ in length, and the common prefix 624 # contains only leading zeros. Consider the longer to be less. 625 d1 = -len1 626 d2 = -len2 627 } else { 628 # Otherwise, compare as strings. 629 d1 = "x" d1 630 d2 = "x" d2 631 } 632 } else { 633 # A fraction is less than an integer. 634 exit 1 635 } 636 } else { 637 if (d2 ~ /^0/) { 638 # An integer is greater than a fraction. 639 exit 2 640 } else { 641 # Compare two integers. 642 d1 += 0 643 d2 += 0 644 } 645 } 646 } else { 647 # The normal case, without worrying about digits. 648 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 649 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 650 } 651 if (d1 < d2) exit 1 652 if (d1 > d2) exit 2 653 } 654 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 655 # which mishandles some comparisons of empty strings to integers. 656 if (length(v2)) exit 1 657 if (length(v1)) exit 2 658 } 659' 660 661test -n "$DJDIR" || exec 7<&0 </dev/null 662exec 6>&1 663 664# Name of the host. 665# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 666# so uname gets run too. 667ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 668 669# 670# Initializations. 671# 672ac_default_prefix=/usr/local 673ac_clean_files= 674ac_config_libobj_dir=. 675LIBOBJS= 676cross_compiling=no 677subdirs= 678MFLAGS= 679MAKEFLAGS= 680 681# Identity of this package. 682PACKAGE_NAME='wayland' 683PACKAGE_TARNAME='wayland' 684PACKAGE_VERSION='1.19.0' 685PACKAGE_STRING='wayland 1.19.0' 686PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/wayland/wayland/issues/' 687PACKAGE_URL='https://wayland.freedesktop.org/' 688 689# Factoring default headers for most tests. 690ac_includes_default="\ 691#include <stddef.h> 692#ifdef HAVE_STDIO_H 693# include <stdio.h> 694#endif 695#ifdef HAVE_STDLIB_H 696# include <stdlib.h> 697#endif 698#ifdef HAVE_STRING_H 699# include <string.h> 700#endif 701#ifdef HAVE_INTTYPES_H 702# include <inttypes.h> 703#endif 704#ifdef HAVE_STDINT_H 705# include <stdint.h> 706#endif 707#ifdef HAVE_STRINGS_H 708# include <strings.h> 709#endif 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef HAVE_UNISTD_H 717# include <unistd.h> 718#endif" 719 720ac_header_c_list= 721ac_subst_vars='am__EXEEXT_FALSE 722am__EXEEXT_TRUE 723LTLIBOBJS 724LIBOBJS 725HAVE_XMLTO_FALSE 726HAVE_XMLTO_TRUE 727DOCS_STYLESHEET 728DOT 729XMLTO 730DOXYGEN 731BUILD_DOCS_FALSE 732BUILD_DOCS_TRUE 733HAVE_XSLTPROC_FALSE 734HAVE_XSLTPROC_TRUE 735XSLTPROC 736LIBXML_LIBS 737LIBXML_CFLAGS 738DTD_VALIDATION_FALSE 739DTD_VALIDATION_TRUE 740EXPAT_LIBS 741EXPAT_CFLAGS 742FFI_LIBS 743FFI_CFLAGS 744ICONDIR 745ENABLE_LIBRARIES_FALSE 746ENABLE_LIBRARIES_TRUE 747USE_HOST_SCANNER_FALSE 748USE_HOST_SCANNER_TRUE 749RT_LIBS 750DL_LIBS 751GCC_CFLAGS 752PKG_CONFIG_LIBDIR 753PKG_CONFIG_PATH 754PKG_CONFIG 755CXXCPP 756LT_SYS_LIBRARY_PATH 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762MANIFEST_TOOL 763RANLIB 764ac_ct_AR 765AR 766DLLTOOL 767OBJDUMP 768LN_S 769LD 770FGREP 771EGREP 772SED 773host_os 774host_vendor 775host_cpu 776host 777build_os 778build_vendor 779build_cpu 780build 781LIBTOOL 782ENABLE_CPP_TEST_FALSE 783ENABLE_CPP_TEST_TRUE 784NM 785ac_ct_DUMPBIN 786DUMPBIN 787am__fastdepCCAS_FALSE 788am__fastdepCCAS_TRUE 789CCASDEPMODE 790CCASFLAGS 791CCAS 792GREP 793am__fastdepCXX_FALSE 794am__fastdepCXX_TRUE 795CXXDEPMODE 796ac_ct_CXX 797CXXFLAGS 798CXX 799am__fastdepCC_FALSE 800am__fastdepCC_TRUE 801CCDEPMODE 802am__nodep 803AMDEPBACKSLASH 804AMDEP_FALSE 805AMDEP_TRUE 806am__include 807DEPDIR 808OBJEXT 809EXEEXT 810ac_ct_CC 811CPPFLAGS 812LDFLAGS 813CFLAGS 814CC 815AM_BACKSLASH 816AM_DEFAULT_VERBOSITY 817AM_DEFAULT_V 818AM_V 819am__untar 820am__tar 821AMTAR 822am__leading_dot 823SET_MAKE 824AWK 825mkdir_p 826MKDIR_P 827INSTALL_STRIP_PROGRAM 828STRIP 829install_sh 830MAKEINFO 831AUTOHEADER 832AUTOMAKE 833AUTOCONF 834ACLOCAL 835VERSION 836PACKAGE 837CYGPATH_W 838am__isrc 839INSTALL_DATA 840INSTALL_SCRIPT 841INSTALL_PROGRAM 842WAYLAND_VERSION 843WAYLAND_VERSION_MICRO 844WAYLAND_VERSION_MINOR 845WAYLAND_VERSION_MAJOR 846target_alias 847host_alias 848build_alias 849LIBS 850ECHO_T 851ECHO_N 852ECHO_C 853DEFS 854mandir 855localedir 856libdir 857psdir 858pdfdir 859dvidir 860htmldir 861infodir 862docdir 863oldincludedir 864includedir 865runstatedir 866localstatedir 867sharedstatedir 868sysconfdir 869datadir 870datarootdir 871libexecdir 872sbindir 873bindir 874program_transform_name 875prefix 876exec_prefix 877PACKAGE_URL 878PACKAGE_BUGREPORT 879PACKAGE_STRING 880PACKAGE_VERSION 881PACKAGE_TARNAME 882PACKAGE_NAME 883PATH_SEPARATOR 884SHELL 885am__quote' 886ac_subst_files='' 887ac_user_opts=' 888enable_option_checking 889enable_silent_rules 890enable_dependency_tracking 891enable_static 892enable_shared 893with_pic 894enable_fast_install 895with_aix_soname 896with_gnu_ld 897with_sysroot 898enable_libtool_lock 899enable_fatal_warnings 900enable_libraries 901with_host_scanner 902enable_documentation 903enable_dtd_validation 904with_icondir 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CXX 915CXXFLAGS 916CCC 917CCAS 918CCASFLAGS 919LT_SYS_LIBRARY_PATH 920CXXCPP 921PKG_CONFIG 922PKG_CONFIG_PATH 923PKG_CONFIG_LIBDIR 924FFI_CFLAGS 925FFI_LIBS 926EXPAT_CFLAGS 927EXPAT_LIBS 928LIBXML_CFLAGS 929LIBXML_LIBS' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968runstatedir='${localstatedir}/run' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *=) ac_optarg= ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 case $ac_dashdash$ac_option in 999 --) 1000 ac_dashdash=yes ;; 1001 1002 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1003 ac_prev=bindir ;; 1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1005 bindir=$ac_optarg ;; 1006 1007 -build | --build | --buil | --bui | --bu) 1008 ac_prev=build_alias ;; 1009 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1010 build_alias=$ac_optarg ;; 1011 1012 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1014 ac_prev=cache_file ;; 1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1017 cache_file=$ac_optarg ;; 1018 1019 --config-cache | -C) 1020 cache_file=config.cache ;; 1021 1022 -datadir | --datadir | --datadi | --datad) 1023 ac_prev=datadir ;; 1024 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1025 datadir=$ac_optarg ;; 1026 1027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1028 | --dataroo | --dataro | --datar) 1029 ac_prev=datarootdir ;; 1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1032 datarootdir=$ac_optarg ;; 1033 1034 -disable-* | --disable-*) 1035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1036 # Reject names that are not valid shell variable names. 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1038 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1039 ac_useropt_orig=$ac_useropt 1040 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1041 case $ac_user_opts in 1042 *" 1043"enable_$ac_useropt" 1044"*) ;; 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1046 ac_unrecognized_sep=', ';; 1047 esac 1048 eval enable_$ac_useropt=no ;; 1049 1050 -docdir | --docdir | --docdi | --doc | --do) 1051 ac_prev=docdir ;; 1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1053 docdir=$ac_optarg ;; 1054 1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1056 ac_prev=dvidir ;; 1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1058 dvidir=$ac_optarg ;; 1059 1060 -enable-* | --enable-*) 1061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1064 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1065 ac_useropt_orig=$ac_useropt 1066 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1067 case $ac_user_opts in 1068 *" 1069"enable_$ac_useropt" 1070"*) ;; 1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1072 ac_unrecognized_sep=', ';; 1073 esac 1074 eval enable_$ac_useropt=\$ac_optarg ;; 1075 1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1078 | --exec | --exe | --ex) 1079 ac_prev=exec_prefix ;; 1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1082 | --exec=* | --exe=* | --ex=*) 1083 exec_prefix=$ac_optarg ;; 1084 1085 -gas | --gas | --ga | --g) 1086 # Obsolete; use --with-gas. 1087 with_gas=yes ;; 1088 1089 -help | --help | --hel | --he | -h) 1090 ac_init_help=long ;; 1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1092 ac_init_help=recursive ;; 1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1094 ac_init_help=short ;; 1095 1096 -host | --host | --hos | --ho) 1097 ac_prev=host_alias ;; 1098 -host=* | --host=* | --hos=* | --ho=*) 1099 host_alias=$ac_optarg ;; 1100 1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1102 ac_prev=htmldir ;; 1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1104 | --ht=*) 1105 htmldir=$ac_optarg ;; 1106 1107 -includedir | --includedir | --includedi | --included | --include \ 1108 | --includ | --inclu | --incl | --inc) 1109 ac_prev=includedir ;; 1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1111 | --includ=* | --inclu=* | --incl=* | --inc=*) 1112 includedir=$ac_optarg ;; 1113 1114 -infodir | --infodir | --infodi | --infod | --info | --inf) 1115 ac_prev=infodir ;; 1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1117 infodir=$ac_optarg ;; 1118 1119 -libdir | --libdir | --libdi | --libd) 1120 ac_prev=libdir ;; 1121 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1122 libdir=$ac_optarg ;; 1123 1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1125 | --libexe | --libex | --libe) 1126 ac_prev=libexecdir ;; 1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1128 | --libexe=* | --libex=* | --libe=*) 1129 libexecdir=$ac_optarg ;; 1130 1131 -localedir | --localedir | --localedi | --localed | --locale) 1132 ac_prev=localedir ;; 1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1134 localedir=$ac_optarg ;; 1135 1136 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1137 | --localstate | --localstat | --localsta | --localst | --locals) 1138 ac_prev=localstatedir ;; 1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1141 localstatedir=$ac_optarg ;; 1142 1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1144 ac_prev=mandir ;; 1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1146 mandir=$ac_optarg ;; 1147 1148 -nfp | --nfp | --nf) 1149 # Obsolete; use --without-fp. 1150 with_fp=no ;; 1151 1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1153 | --no-cr | --no-c | -n) 1154 no_create=yes ;; 1155 1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1158 no_recursion=yes ;; 1159 1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1162 | --oldin | --oldi | --old | --ol | --o) 1163 ac_prev=oldincludedir ;; 1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1167 oldincludedir=$ac_optarg ;; 1168 1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1170 ac_prev=prefix ;; 1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1172 prefix=$ac_optarg ;; 1173 1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1175 | --program-pre | --program-pr | --program-p) 1176 ac_prev=program_prefix ;; 1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1179 program_prefix=$ac_optarg ;; 1180 1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1182 | --program-suf | --program-su | --program-s) 1183 ac_prev=program_suffix ;; 1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1186 program_suffix=$ac_optarg ;; 1187 1188 -program-transform-name | --program-transform-name \ 1189 | --program-transform-nam | --program-transform-na \ 1190 | --program-transform-n | --program-transform- \ 1191 | --program-transform | --program-transfor \ 1192 | --program-transfo | --program-transf \ 1193 | --program-trans | --program-tran \ 1194 | --progr-tra | --program-tr | --program-t) 1195 ac_prev=program_transform_name ;; 1196 -program-transform-name=* | --program-transform-name=* \ 1197 | --program-transform-nam=* | --program-transform-na=* \ 1198 | --program-transform-n=* | --program-transform-=* \ 1199 | --program-transform=* | --program-transfor=* \ 1200 | --program-transfo=* | --program-transf=* \ 1201 | --program-trans=* | --program-tran=* \ 1202 | --progr-tra=* | --program-tr=* | --program-t=*) 1203 program_transform_name=$ac_optarg ;; 1204 1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1206 ac_prev=pdfdir ;; 1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1208 pdfdir=$ac_optarg ;; 1209 1210 -psdir | --psdir | --psdi | --psd | --ps) 1211 ac_prev=psdir ;; 1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1213 psdir=$ac_optarg ;; 1214 1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1216 | -silent | --silent | --silen | --sile | --sil) 1217 silent=yes ;; 1218 1219 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1220 | --runstate | --runstat | --runsta | --runst | --runs \ 1221 | --run | --ru | --r) 1222 ac_prev=runstatedir ;; 1223 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1224 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1225 | --run=* | --ru=* | --r=*) 1226 runstatedir=$ac_optarg ;; 1227 1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1229 ac_prev=sbindir ;; 1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1231 | --sbi=* | --sb=*) 1232 sbindir=$ac_optarg ;; 1233 1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1236 | --sharedst | --shareds | --shared | --share | --shar \ 1237 | --sha | --sh) 1238 ac_prev=sharedstatedir ;; 1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1242 | --sha=* | --sh=*) 1243 sharedstatedir=$ac_optarg ;; 1244 1245 -site | --site | --sit) 1246 ac_prev=site ;; 1247 -site=* | --site=* | --sit=*) 1248 site=$ac_optarg ;; 1249 1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1251 ac_prev=srcdir ;; 1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1253 srcdir=$ac_optarg ;; 1254 1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1256 | --syscon | --sysco | --sysc | --sys | --sy) 1257 ac_prev=sysconfdir ;; 1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1260 sysconfdir=$ac_optarg ;; 1261 1262 -target | --target | --targe | --targ | --tar | --ta | --t) 1263 ac_prev=target_alias ;; 1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1265 target_alias=$ac_optarg ;; 1266 1267 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1268 verbose=yes ;; 1269 1270 -version | --version | --versio | --versi | --vers | -V) 1271 ac_init_version=: ;; 1272 1273 -with-* | --with-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error $? "invalid package name: \`$ac_useropt'" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=\$ac_optarg ;; 1288 1289 -without-* | --without-*) 1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1291 # Reject names that are not valid shell variable names. 1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1293 as_fn_error $? "invalid package name: \`$ac_useropt'" 1294 ac_useropt_orig=$ac_useropt 1295 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1296 case $ac_user_opts in 1297 *" 1298"with_$ac_useropt" 1299"*) ;; 1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1301 ac_unrecognized_sep=', ';; 1302 esac 1303 eval with_$ac_useropt=no ;; 1304 1305 --x) 1306 # Obsolete; use --with-x. 1307 with_x=yes ;; 1308 1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1310 | --x-incl | --x-inc | --x-in | --x-i) 1311 ac_prev=x_includes ;; 1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1314 x_includes=$ac_optarg ;; 1315 1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1318 ac_prev=x_libraries ;; 1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1321 x_libraries=$ac_optarg ;; 1322 1323 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1324Try \`$0 --help' for more information" 1325 ;; 1326 1327 *=*) 1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1329 # Reject names that are not valid shell variable names. 1330 case $ac_envvar in #( 1331 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1332 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1333 esac 1334 eval $ac_envvar=\$ac_optarg 1335 export $ac_envvar ;; 1336 1337 *) 1338 # FIXME: should be removed in autoconf 3.0. 1339 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1341 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1342 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1343 ;; 1344 1345 esac 1346done 1347 1348if test -n "$ac_prev"; then 1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1350 as_fn_error $? "missing argument to $ac_option" 1351fi 1352 1353if test -n "$ac_unrecognized_opts"; then 1354 case $enable_option_checking in 1355 no) ;; 1356 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1357 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1358 esac 1359fi 1360 1361# Check all directory arguments for consistency. 1362for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1363 datadir sysconfdir sharedstatedir localstatedir includedir \ 1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1365 libdir localedir mandir runstatedir 1366do 1367 eval ac_val=\$$ac_var 1368 # Remove trailing slashes. 1369 case $ac_val in 1370 */ ) 1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1372 eval $ac_var=\$ac_val;; 1373 esac 1374 # Be sure to have absolute directory names. 1375 case $ac_val in 1376 [\\/$]* | ?:[\\/]* ) continue;; 1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1378 esac 1379 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1380done 1381 1382# There might be people who depend on the old broken behavior: `$host' 1383# used to hold the argument of --host etc. 1384# FIXME: To remove some day. 1385build=$build_alias 1386host=$host_alias 1387target=$target_alias 1388 1389# FIXME: To remove some day. 1390if test "x$host_alias" != x; then 1391 if test "x$build_alias" = x; then 1392 cross_compiling=maybe 1393 elif test "x$build_alias" != "x$host_alias"; then 1394 cross_compiling=yes 1395 fi 1396fi 1397 1398ac_tool_prefix= 1399test -n "$host_alias" && ac_tool_prefix=$host_alias- 1400 1401test "$silent" = yes && exec 6>/dev/null 1402 1403 1404ac_pwd=`pwd` && test -n "$ac_pwd" && 1405ac_ls_di=`ls -di .` && 1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1407 as_fn_error $? "working directory cannot be determined" 1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1409 as_fn_error $? "pwd does not report name of working directory" 1410 1411 1412# Find the source files, if location was not specified. 1413if test -z "$srcdir"; then 1414 ac_srcdir_defaulted=yes 1415 # Try the directory containing this script, then the parent directory. 1416 ac_confdir=`$as_dirname -- "$as_myself" || 1417$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1418 X"$as_myself" : 'X\(//\)[^/]' \| \ 1419 X"$as_myself" : 'X\(//\)$' \| \ 1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1421printf "%s\n" X"$as_myself" | 1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\/\)[^/].*/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)$/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\).*/{ 1435 s//\1/ 1436 q 1437 } 1438 s/.*/./; q'` 1439 srcdir=$ac_confdir 1440 if test ! -r "$srcdir/$ac_unique_file"; then 1441 srcdir=.. 1442 fi 1443else 1444 ac_srcdir_defaulted=no 1445fi 1446if test ! -r "$srcdir/$ac_unique_file"; then 1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1448 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1449fi 1450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1451ac_abs_confdir=`( 1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1453 pwd)` 1454# When building in place, set srcdir=. 1455if test "$ac_abs_confdir" = "$ac_pwd"; then 1456 srcdir=. 1457fi 1458# Remove unnecessary trailing slashes from srcdir. 1459# Double slashes in file names in object file debugging info 1460# mess up M-x gdb in Emacs. 1461case $srcdir in 1462*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1463esac 1464for ac_var in $ac_precious_vars; do 1465 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1466 eval ac_env_${ac_var}_value=\$${ac_var} 1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1468 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1469done 1470 1471# 1472# Report the --help message. 1473# 1474if test "$ac_init_help" = "long"; then 1475 # Omit some internal or obsolete options to make the list less imposing. 1476 # This message is too long to be a string in the A/UX 3.1 sh. 1477 cat <<_ACEOF 1478\`configure' configures wayland 1.19.0 to adapt to many kinds of systems. 1479 1480Usage: $0 [OPTION]... [VAR=VALUE]... 1481 1482To assign environment variables (e.g., CC, CFLAGS...), specify them as 1483VAR=VALUE. See below for descriptions of some of the useful variables. 1484 1485Defaults for the options are specified in brackets. 1486 1487Configuration: 1488 -h, --help display this help and exit 1489 --help=short display options specific to this package 1490 --help=recursive display the short help of all the included packages 1491 -V, --version display version information and exit 1492 -q, --quiet, --silent do not print \`checking ...' messages 1493 --cache-file=FILE cache test results in FILE [disabled] 1494 -C, --config-cache alias for \`--cache-file=config.cache' 1495 -n, --no-create do not create output files 1496 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1497 1498Installation directories: 1499 --prefix=PREFIX install architecture-independent files in PREFIX 1500 [$ac_default_prefix] 1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1502 [PREFIX] 1503 1504By default, \`make install' will install all the files in 1505\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1506an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1507for instance \`--prefix=\$HOME'. 1508 1509For better control, use the options below. 1510 1511Fine tuning of the installation directories: 1512 --bindir=DIR user executables [EPREFIX/bin] 1513 --sbindir=DIR system admin executables [EPREFIX/sbin] 1514 --libexecdir=DIR program executables [EPREFIX/libexec] 1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1518 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1519 --libdir=DIR object code libraries [EPREFIX/lib] 1520 --includedir=DIR C header files [PREFIX/include] 1521 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1524 --infodir=DIR info documentation [DATAROOTDIR/info] 1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1526 --mandir=DIR man documentation [DATAROOTDIR/man] 1527 --docdir=DIR documentation root [DATAROOTDIR/doc/wayland] 1528 --htmldir=DIR html documentation [DOCDIR] 1529 --dvidir=DIR dvi documentation [DOCDIR] 1530 --pdfdir=DIR pdf documentation [DOCDIR] 1531 --psdir=DIR ps documentation [DOCDIR] 1532_ACEOF 1533 1534 cat <<\_ACEOF 1535 1536Program names: 1537 --program-prefix=PREFIX prepend PREFIX to installed program names 1538 --program-suffix=SUFFIX append SUFFIX to installed program names 1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1540 1541System types: 1542 --build=BUILD configure for building on BUILD [guessed] 1543 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1544_ACEOF 1545fi 1546 1547if test -n "$ac_init_help"; then 1548 case $ac_init_help in 1549 short | recursive ) echo "Configuration of wayland 1.19.0:";; 1550 esac 1551 cat <<\_ACEOF 1552 1553Optional Features: 1554 --disable-option-checking ignore unrecognized --enable/--with options 1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1557 --enable-silent-rules less verbose build output (undo: "make V=1") 1558 --disable-silent-rules verbose build output (undo: "make V=0") 1559 --enable-dependency-tracking 1560 do not reject slow dependency extractors 1561 --disable-dependency-tracking 1562 speeds up one-time build 1563 --enable-static[=PKGS] build static libraries [default=no] 1564 --enable-shared[=PKGS] build shared libraries [default=yes] 1565 --enable-fast-install[=PKGS] 1566 optimize for fast installation [default=yes] 1567 --disable-libtool-lock avoid locking (might break parallel builds) 1568 --enable-fatal-warnings Build with -Werror 1569 --disable-libraries Disable compilation of wayland libraries 1570 --disable-documentation Disable building the documentation 1571 --disable-dtd-validation 1572 Disable DTD validation of the protocol 1573 1574Optional Packages: 1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1577 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1578 both] 1579 --with-aix-soname=aix|svr4|both 1580 shared library versioning (aka "SONAME") variant to 1581 provide on AIX, [default=aix]. 1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1583 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1584 compiler's sysroot if not specified). 1585 --with-host-scanner Use installed wayland-scanner from host PATH during 1586 build 1587 --with-icondir=<dir> Look for cursor icons here 1588 1589Some influential environment variables: 1590 CC C compiler command 1591 CFLAGS C compiler flags 1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1593 nonstandard directory <lib dir> 1594 LIBS libraries to pass to the linker, e.g. -l<library> 1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1596 you have headers in a nonstandard directory <include dir> 1597 CXX C++ compiler command 1598 CXXFLAGS C++ compiler flags 1599 CCAS assembler compiler command (defaults to CC) 1600 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1601 LT_SYS_LIBRARY_PATH 1602 User-defined run-time library search path. 1603 CXXCPP C++ preprocessor 1604 PKG_CONFIG path to pkg-config utility 1605 PKG_CONFIG_PATH 1606 directories to add to pkg-config's search path 1607 PKG_CONFIG_LIBDIR 1608 path overriding pkg-config's built-in search path 1609 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config 1610 FFI_LIBS linker flags for FFI, overriding pkg-config 1611 EXPAT_CFLAGS 1612 C compiler flags for EXPAT, overriding pkg-config 1613 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config 1614 LIBXML_CFLAGS 1615 C compiler flags for LIBXML, overriding pkg-config 1616 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1617 1618Use these variables to override the choices made by `configure' or to help 1619it to find libraries and programs with nonstandard names/locations. 1620 1621Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 1622wayland home page: <https://wayland.freedesktop.org/>. 1623_ACEOF 1624ac_status=$? 1625fi 1626 1627if test "$ac_init_help" = "recursive"; then 1628 # If there are subdirs, report their specific --help. 1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1630 test -d "$ac_dir" || 1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1632 continue 1633 ac_builddir=. 1634 1635case "$ac_dir" in 1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1637*) 1638 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1639 # A ".." for each directory in $ac_dir_suffix. 1640 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1641 case $ac_top_builddir_sub in 1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1644 esac ;; 1645esac 1646ac_abs_top_builddir=$ac_pwd 1647ac_abs_builddir=$ac_pwd$ac_dir_suffix 1648# for backward compatibility: 1649ac_top_builddir=$ac_top_build_prefix 1650 1651case $srcdir in 1652 .) # We are building in place. 1653 ac_srcdir=. 1654 ac_top_srcdir=$ac_top_builddir_sub 1655 ac_abs_top_srcdir=$ac_pwd ;; 1656 [\\/]* | ?:[\\/]* ) # Absolute name. 1657 ac_srcdir=$srcdir$ac_dir_suffix; 1658 ac_top_srcdir=$srcdir 1659 ac_abs_top_srcdir=$srcdir ;; 1660 *) # Relative name. 1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1662 ac_top_srcdir=$ac_top_build_prefix$srcdir 1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1664esac 1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1666 1667 cd "$ac_dir" || { ac_status=$?; continue; } 1668 # Check for configure.gnu first; this name is used for a wrapper for 1669 # Metaconfig's "Configure" on case-insensitive file systems. 1670 if test -f "$ac_srcdir/configure.gnu"; then 1671 echo && 1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1673 elif test -f "$ac_srcdir/configure"; then 1674 echo && 1675 $SHELL "$ac_srcdir/configure" --help=recursive 1676 else 1677 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1678 fi || ac_status=$? 1679 cd "$ac_pwd" || { ac_status=$?; break; } 1680 done 1681fi 1682 1683test -n "$ac_init_help" && exit $ac_status 1684if $ac_init_version; then 1685 cat <<\_ACEOF 1686wayland configure 1.19.0 1687generated by GNU Autoconf 2.70 1688 1689Copyright (C) 2020 Free Software Foundation, Inc. 1690This configure script is free software; the Free Software Foundation 1691gives unlimited permission to copy, distribute and modify it. 1692_ACEOF 1693 exit 1694fi 1695 1696## ------------------------ ## 1697## Autoconf initialization. ## 1698## ------------------------ ## 1699 1700# ac_fn_c_try_compile LINENO 1701# -------------------------- 1702# Try to compile conftest.$ac_ext, and return whether this succeeded. 1703ac_fn_c_try_compile () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 rm -f conftest.$ac_objext conftest.beam 1707 if { { ac_try="$ac_compile" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713printf "%s\n" "$ac_try_echo"; } >&5 1714 (eval "$ac_compile") 2>conftest.err 1715 ac_status=$? 1716 if test -s conftest.err; then 1717 grep -v '^ *+' conftest.err >conftest.er1 1718 cat conftest.er1 >&5 1719 mv -f conftest.er1 conftest.err 1720 fi 1721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } && { 1723 test -z "$ac_c_werror_flag" || 1724 test ! -s conftest.err 1725 } && test -s conftest.$ac_objext 1726then : 1727 ac_retval=0 1728else $as_nop 1729 printf "%s\n" "$as_me: failed program was:" >&5 1730sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=1 1733fi 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_compile 1738 1739# ac_fn_cxx_try_compile LINENO 1740# ---------------------------- 1741# Try to compile conftest.$ac_ext, and return whether this succeeded. 1742ac_fn_cxx_try_compile () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 rm -f conftest.$ac_objext conftest.beam 1746 if { { ac_try="$ac_compile" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752printf "%s\n" "$ac_try_echo"; } >&5 1753 (eval "$ac_compile") 2>conftest.err 1754 ac_status=$? 1755 if test -s conftest.err; then 1756 grep -v '^ *+' conftest.err >conftest.er1 1757 cat conftest.er1 >&5 1758 mv -f conftest.er1 conftest.err 1759 fi 1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } && { 1762 test -z "$ac_cxx_werror_flag" || 1763 test ! -s conftest.err 1764 } && test -s conftest.$ac_objext 1765then : 1766 ac_retval=0 1767else $as_nop 1768 printf "%s\n" "$as_me: failed program was:" >&5 1769sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=1 1772fi 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 as_fn_set_status $ac_retval 1775 1776} # ac_fn_cxx_try_compile 1777 1778# ac_fn_c_try_link LINENO 1779# ----------------------- 1780# Try to link conftest.$ac_ext, and return whether this succeeded. 1781ac_fn_c_try_link () 1782{ 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1785 if { { ac_try="$ac_link" 1786case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789esac 1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791printf "%s\n" "$ac_try_echo"; } >&5 1792 (eval "$ac_link") 2>conftest.err 1793 ac_status=$? 1794 if test -s conftest.err; then 1795 grep -v '^ *+' conftest.err >conftest.er1 1796 cat conftest.er1 >&5 1797 mv -f conftest.er1 conftest.err 1798 fi 1799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { 1801 test -z "$ac_c_werror_flag" || 1802 test ! -s conftest.err 1803 } && test -s conftest$ac_exeext && { 1804 test "$cross_compiling" = yes || 1805 test -x conftest$ac_exeext 1806 } 1807then : 1808 ac_retval=0 1809else $as_nop 1810 printf "%s\n" "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1817 # interfere with the next link command; also delete a directory that is 1818 # left behind by Apple's compiler. We do this before executing the actions. 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_link 1824 1825# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists and can be compiled using the include files in 1828# INCLUDES, setting the cache variable VAR accordingly. 1829ac_fn_c_check_header_compile () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833printf %s "checking for $2... " >&6; } 1834if eval test \${$3+y} 1835then : 1836 printf %s "(cached) " >&6 1837else $as_nop 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841#include <$2> 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO" 1844then : 1845 eval "$3=yes" 1846else $as_nop 1847 eval "$3=no" 1848fi 1849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1850fi 1851eval ac_res=\$$3 1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853printf "%s\n" "$ac_res" >&6; } 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 1856} # ac_fn_c_check_header_compile 1857 1858# ac_fn_c_check_func LINENO FUNC VAR 1859# ---------------------------------- 1860# Tests whether FUNC exists, setting the cache variable VAR accordingly 1861ac_fn_c_check_func () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865printf %s "checking for $2... " >&6; } 1866if eval test \${$3+y} 1867then : 1868 printf %s "(cached) " >&6 1869else $as_nop 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871/* end confdefs.h. */ 1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1874#define $2 innocuous_$2 1875 1876/* System header to define __stub macros and hopefully few prototypes, 1877 which can conflict with char $2 (); below. */ 1878 1879#include <limits.h> 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main (void) 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO" 1905then : 1906 eval "$3=yes" 1907else $as_nop 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1911 conftest$ac_exeext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915printf "%s\n" "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_func 1919 1920# ac_fn_cxx_try_cpp LINENO 1921# ------------------------ 1922# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1923ac_fn_cxx_try_cpp () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 if { { ac_try="$ac_cpp conftest.$ac_ext" 1927case "(($ac_try" in 1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1929 *) ac_try_echo=$ac_try;; 1930esac 1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1932printf "%s\n" "$ac_try_echo"; } >&5 1933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1934 ac_status=$? 1935 if test -s conftest.err; then 1936 grep -v '^ *+' conftest.err >conftest.er1 1937 cat conftest.er1 >&5 1938 mv -f conftest.er1 conftest.err 1939 fi 1940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1941 test $ac_status = 0; } > conftest.i && { 1942 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1943 test ! -s conftest.err 1944 } 1945then : 1946 ac_retval=0 1947else $as_nop 1948 printf "%s\n" "$as_me: failed program was:" >&5 1949sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952fi 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_cxx_try_cpp 1957 1958# ac_fn_cxx_try_link LINENO 1959# ------------------------- 1960# Try to link conftest.$ac_ext, and return whether this succeeded. 1961ac_fn_cxx_try_link () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1965 if { { ac_try="$ac_link" 1966case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969esac 1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971printf "%s\n" "$ac_try_echo"; } >&5 1972 (eval "$ac_link") 2>conftest.err 1973 ac_status=$? 1974 if test -s conftest.err; then 1975 grep -v '^ *+' conftest.err >conftest.er1 1976 cat conftest.er1 >&5 1977 mv -f conftest.er1 conftest.err 1978 fi 1979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1980 test $ac_status = 0; } && { 1981 test -z "$ac_cxx_werror_flag" || 1982 test ! -s conftest.err 1983 } && test -s conftest$ac_exeext && { 1984 test "$cross_compiling" = yes || 1985 test -x conftest$ac_exeext 1986 } 1987then : 1988 ac_retval=0 1989else $as_nop 1990 printf "%s\n" "$as_me: failed program was:" >&5 1991sed 's/^/| /' conftest.$ac_ext >&5 1992 1993 ac_retval=1 1994fi 1995 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1996 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1997 # interfere with the next link command; also delete a directory that is 1998 # left behind by Apple's compiler. We do this before executing the actions. 1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2001 as_fn_set_status $ac_retval 2002 2003} # ac_fn_cxx_try_link 2004 2005# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2006# --------------------------------------------- 2007# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2008# accordingly. 2009ac_fn_c_check_decl () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once. 2013 as_decl_name=`echo $2|sed 's/ *(.*//'` 2014 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2016printf %s "checking whether $as_decl_name is declared... " >&6; } 2017if eval test \${$3+y} 2018then : 2019 printf %s "(cached) " >&6 2020else $as_nop 2021 ac_save_werror_flag=$ac_c_werror_flag 2022 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag" 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main (void) 2028{ 2029#ifndef $as_decl_name 2030#ifdef __cplusplus 2031 (void) $as_decl_use; 2032#else 2033 (void) $as_decl_name; 2034#endif 2035#endif 2036 2037 ; 2038 return 0; 2039} 2040_ACEOF 2041if ac_fn_c_try_compile "$LINENO" 2042then : 2043 eval "$3=yes" 2044else $as_nop 2045 eval "$3=no" 2046fi 2047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2048 ac_c_werror_flag=$ac_save_werror_flag 2049fi 2050eval ac_res=\$$3 2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2052printf "%s\n" "$ac_res" >&6; } 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 2055} # ac_fn_c_check_decl 2056ac_configure_args_raw= 2057for ac_arg 2058do 2059 case $ac_arg in 2060 *\'*) 2061 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2062 esac 2063 as_fn_append ac_configure_args_raw " '$ac_arg'" 2064done 2065 2066case $ac_configure_args_raw in 2067 *$as_nl*) 2068 ac_safe_unquote= ;; 2069 *) 2070 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2071 ac_unsafe_a="$ac_unsafe_z#~" 2072 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2073 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2074esac 2075 2076cat >config.log <<_ACEOF 2077This file contains any messages produced by compilers while 2078running configure, to aid debugging if configure makes a mistake. 2079 2080It was created by wayland $as_me 1.19.0, which was 2081generated by GNU Autoconf 2.70. Invocation command line was 2082 2083 $ $0$ac_configure_args_raw 2084 2085_ACEOF 2086exec 5>>config.log 2087{ 2088cat <<_ASUNAME 2089## --------- ## 2090## Platform. ## 2091## --------- ## 2092 2093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2094uname -m = `(uname -m) 2>/dev/null || echo unknown` 2095uname -r = `(uname -r) 2>/dev/null || echo unknown` 2096uname -s = `(uname -s) 2>/dev/null || echo unknown` 2097uname -v = `(uname -v) 2>/dev/null || echo unknown` 2098 2099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2101 2102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2109 2110_ASUNAME 2111 2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 case $as_dir in #((( 2117 '') as_dir=./ ;; 2118 */) ;; 2119 *) as_dir=$as_dir/ ;; 2120 esac 2121 printf "%s\n" "PATH: $as_dir" 2122 done 2123IFS=$as_save_IFS 2124 2125} >&5 2126 2127cat >&5 <<_ACEOF 2128 2129 2130## ----------- ## 2131## Core tests. ## 2132## ----------- ## 2133 2134_ACEOF 2135 2136 2137# Keep a trace of the command line. 2138# Strip out --no-create and --no-recursion so they do not pile up. 2139# Strip out --silent because we don't want to record it for future runs. 2140# Also quote any args containing shell meta-characters. 2141# Make two passes to allow for proper duplicate-argument suppression. 2142ac_configure_args= 2143ac_configure_args0= 2144ac_configure_args1= 2145ac_must_keep_next=false 2146for ac_pass in 1 2 2147do 2148 for ac_arg 2149 do 2150 case $ac_arg in 2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2153 | -silent | --silent | --silen | --sile | --sil) 2154 continue ;; 2155 *\'*) 2156 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2157 esac 2158 case $ac_pass in 2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2160 2) 2161 as_fn_append ac_configure_args1 " '$ac_arg'" 2162 if test $ac_must_keep_next = true; then 2163 ac_must_keep_next=false # Got value, back to normal. 2164 else 2165 case $ac_arg in 2166 *=* | --config-cache | -C | -disable-* | --disable-* \ 2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2169 | -with-* | --with-* | -without-* | --without-* | --x) 2170 case "$ac_configure_args0 " in 2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2172 esac 2173 ;; 2174 -* ) ac_must_keep_next=true ;; 2175 esac 2176 fi 2177 as_fn_append ac_configure_args " '$ac_arg'" 2178 ;; 2179 esac 2180 done 2181done 2182{ ac_configure_args0=; unset ac_configure_args0;} 2183{ ac_configure_args1=; unset ac_configure_args1;} 2184 2185# When interrupted or exit'd, cleanup temporary files, and complete 2186# config.log. We remove comments because anyway the quotes in there 2187# would cause problems or look ugly. 2188# WARNING: Use '\'' to represent an apostrophe within the trap. 2189# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2190trap 'exit_status=$? 2191 # Sanitize IFS. 2192 IFS=" "" $as_nl" 2193 # Save into config.log some information that might help in debugging. 2194 { 2195 echo 2196 2197 printf "%s\n" "## ---------------- ## 2198## Cache variables. ## 2199## ---------------- ##" 2200 echo 2201 # The following way of writing the cache mishandles newlines in values, 2202( 2203 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2204 eval ac_val=\$$ac_var 2205 case $ac_val in #( 2206 *${as_nl}*) 2207 case $ac_var in #( 2208 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2209printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2210 esac 2211 case $ac_var in #( 2212 _ | IFS | as_nl) ;; #( 2213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2214 *) { eval $ac_var=; unset $ac_var;} ;; 2215 esac ;; 2216 esac 2217 done 2218 (set) 2>&1 | 2219 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2220 *${as_nl}ac_space=\ *) 2221 sed -n \ 2222 "s/'\''/'\''\\\\'\'''\''/g; 2223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2224 ;; #( 2225 *) 2226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2227 ;; 2228 esac | 2229 sort 2230) 2231 echo 2232 2233 printf "%s\n" "## ----------------- ## 2234## Output variables. ## 2235## ----------------- ##" 2236 echo 2237 for ac_var in $ac_subst_vars 2238 do 2239 eval ac_val=\$$ac_var 2240 case $ac_val in 2241 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2242 esac 2243 printf "%s\n" "$ac_var='\''$ac_val'\''" 2244 done | sort 2245 echo 2246 2247 if test -n "$ac_subst_files"; then 2248 printf "%s\n" "## ------------------- ## 2249## File substitutions. ## 2250## ------------------- ##" 2251 echo 2252 for ac_var in $ac_subst_files 2253 do 2254 eval ac_val=\$$ac_var 2255 case $ac_val in 2256 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2257 esac 2258 printf "%s\n" "$ac_var='\''$ac_val'\''" 2259 done | sort 2260 echo 2261 fi 2262 2263 if test -s confdefs.h; then 2264 printf "%s\n" "## ----------- ## 2265## confdefs.h. ## 2266## ----------- ##" 2267 echo 2268 cat confdefs.h 2269 echo 2270 fi 2271 test "$ac_signal" != 0 && 2272 printf "%s\n" "$as_me: caught signal $ac_signal" 2273 printf "%s\n" "$as_me: exit $exit_status" 2274 } >&5 2275 rm -f core *.core core.conftest.* && 2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2277 exit $exit_status 2278' 0 2279for ac_signal in 1 2 13 15; do 2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2281done 2282ac_signal=0 2283 2284# confdefs.h avoids OS command line length limits that DEFS can exceed. 2285rm -f -r conftest* confdefs.h 2286 2287printf "%s\n" "/* confdefs.h */" > confdefs.h 2288 2289# Predefined preprocessor variables. 2290 2291printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2292 2293printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2294 2295printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2296 2297printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2298 2299printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2300 2301printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2302 2303 2304# Let the site file select an alternate cache file if it wants to. 2305# Prefer an explicitly selected file to automatically selected ones. 2306if test -n "$CONFIG_SITE"; then 2307 ac_site_files="$CONFIG_SITE" 2308elif test "x$prefix" != xNONE; then 2309 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2310else 2311 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2312fi 2313 2314for ac_site_file in $ac_site_files 2315do 2316 case $ac_site_file in #( 2317 */*) : 2318 ;; #( 2319 *) : 2320 ac_site_file=./$ac_site_file ;; 2321esac 2322 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2324printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2325 sed 's/^/| /' "$ac_site_file" >&5 2326 . "$ac_site_file" \ 2327 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2328printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2329as_fn_error $? "failed to load site script $ac_site_file 2330See \`config.log' for more details" "$LINENO" 5; } 2331 fi 2332done 2333 2334if test -r "$cache_file"; then 2335 # Some versions of bash will fail to source /dev/null (special files 2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2339printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2340 case $cache_file in 2341 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2342 *) . "./$cache_file";; 2343 esac 2344 fi 2345else 2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2347printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2348 >$cache_file 2349fi 2350 2351# Test code for whether the C compiler supports C89 (global declarations) 2352ac_c_conftest_c89_globals=' 2353/* Does the compiler advertise C89 conformance? 2354 Do not test the value of __STDC__, because some compilers set it to 0 2355 while being otherwise adequately conformant. */ 2356#if !defined __STDC__ 2357# error "Compiler does not advertise C89 conformance" 2358#endif 2359 2360#include <stddef.h> 2361#include <stdarg.h> 2362struct stat; 2363/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2364struct buf { int x; }; 2365struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2366static char *e (p, i) 2367 char **p; 2368 int i; 2369{ 2370 return p[i]; 2371} 2372static char *f (char * (*g) (char **, int), char **p, ...) 2373{ 2374 char *s; 2375 va_list v; 2376 va_start (v,p); 2377 s = g (p, va_arg (v,int)); 2378 va_end (v); 2379 return s; 2380} 2381 2382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2383 function prototypes and stuff, but not \xHH hex character constants. 2384 These do not provoke an error unfortunately, instead are silently treated 2385 as an "x". The following induces an error, until -std is added to get 2386 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2387 array size at least. It is necessary to write \x00 == 0 to get something 2388 that is true only with -std. */ 2389int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2390 2391/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2392 inside strings and character constants. */ 2393#define FOO(x) '\''x'\'' 2394int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2395 2396int test (int i, double x); 2397struct s1 {int (*f) (int a);}; 2398struct s2 {int (*f) (double a);}; 2399int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2400 int, int);' 2401 2402# Test code for whether the C compiler supports C89 (body of main). 2403ac_c_conftest_c89_main=' 2404ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2405' 2406 2407# Test code for whether the C compiler supports C99 (global declarations) 2408ac_c_conftest_c99_globals=' 2409// Does the compiler advertise C99 conformance? 2410#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2411# error "Compiler does not advertise C99 conformance" 2412#endif 2413 2414#include <stdbool.h> 2415extern int puts (const char *); 2416extern int printf (const char *, ...); 2417extern int dprintf (int, const char *, ...); 2418extern void *malloc (size_t); 2419 2420// Check varargs macros. These examples are taken from C99 6.10.3.5. 2421// dprintf is used instead of fprintf to avoid needing to declare 2422// FILE and stderr. 2423#define debug(...) dprintf (2, __VA_ARGS__) 2424#define showlist(...) puts (#__VA_ARGS__) 2425#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2426static void 2427test_varargs_macros (void) 2428{ 2429 int x = 1234; 2430 int y = 5678; 2431 debug ("Flag"); 2432 debug ("X = %d\n", x); 2433 showlist (The first, second, and third items.); 2434 report (x>y, "x is %d but y is %d", x, y); 2435} 2436 2437// Check long long types. 2438#define BIG64 18446744073709551615ull 2439#define BIG32 4294967295ul 2440#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2441#if !BIG_OK 2442 #error "your preprocessor is broken" 2443#endif 2444#if BIG_OK 2445#else 2446 #error "your preprocessor is broken" 2447#endif 2448static long long int bignum = -9223372036854775807LL; 2449static unsigned long long int ubignum = BIG64; 2450 2451struct incomplete_array 2452{ 2453 int datasize; 2454 double data[]; 2455}; 2456 2457struct named_init { 2458 int number; 2459 const wchar_t *name; 2460 double average; 2461}; 2462 2463typedef const char *ccp; 2464 2465static inline int 2466test_restrict (ccp restrict text) 2467{ 2468 // See if C++-style comments work. 2469 // Iterate through items via the restricted pointer. 2470 // Also check for declarations in for loops. 2471 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2472 continue; 2473 return 0; 2474} 2475 2476// Check varargs and va_copy. 2477static bool 2478test_varargs (const char *format, ...) 2479{ 2480 va_list args; 2481 va_start (args, format); 2482 va_list args_copy; 2483 va_copy (args_copy, args); 2484 2485 const char *str = ""; 2486 int number = 0; 2487 float fnumber = 0; 2488 2489 while (*format) 2490 { 2491 switch (*format++) 2492 { 2493 case '\''s'\'': // string 2494 str = va_arg (args_copy, const char *); 2495 break; 2496 case '\''d'\'': // int 2497 number = va_arg (args_copy, int); 2498 break; 2499 case '\''f'\'': // float 2500 fnumber = va_arg (args_copy, double); 2501 break; 2502 default: 2503 break; 2504 } 2505 } 2506 va_end (args_copy); 2507 va_end (args); 2508 2509 return *str && number && fnumber; 2510} 2511' 2512 2513# Test code for whether the C compiler supports C99 (body of main). 2514ac_c_conftest_c99_main=' 2515 // Check bool. 2516 _Bool success = false; 2517 success |= (argc != 0); 2518 2519 // Check restrict. 2520 if (test_restrict ("String literal") == 0) 2521 success = true; 2522 char *restrict newvar = "Another string"; 2523 2524 // Check varargs. 2525 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2526 test_varargs_macros (); 2527 2528 // Check flexible array members. 2529 struct incomplete_array *ia = 2530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2531 ia->datasize = 10; 2532 for (int i = 0; i < ia->datasize; ++i) 2533 ia->data[i] = i * 1.234; 2534 2535 // Check named initializers. 2536 struct named_init ni = { 2537 .number = 34, 2538 .name = L"Test wide string", 2539 .average = 543.34343, 2540 }; 2541 2542 ni.number = 58; 2543 2544 int dynamic_array[ni.number]; 2545 dynamic_array[0] = argv[0][0]; 2546 dynamic_array[ni.number - 1] = 543; 2547 2548 // work around unused variable warnings 2549 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2550 || dynamic_array[ni.number - 1] != 543); 2551' 2552 2553# Test code for whether the C compiler supports C11 (global declarations) 2554ac_c_conftest_c11_globals=' 2555// Does the compiler advertise C11 conformance? 2556#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2557# error "Compiler does not advertise C11 conformance" 2558#endif 2559 2560// Check _Alignas. 2561char _Alignas (double) aligned_as_double; 2562char _Alignas (0) no_special_alignment; 2563extern char aligned_as_int; 2564char _Alignas (0) _Alignas (int) aligned_as_int; 2565 2566// Check _Alignof. 2567enum 2568{ 2569 int_alignment = _Alignof (int), 2570 int_array_alignment = _Alignof (int[100]), 2571 char_alignment = _Alignof (char) 2572}; 2573_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2574 2575// Check _Noreturn. 2576int _Noreturn does_not_return (void) { for (;;) continue; } 2577 2578// Check _Static_assert. 2579struct test_static_assert 2580{ 2581 int x; 2582 _Static_assert (sizeof (int) <= sizeof (long int), 2583 "_Static_assert does not work in struct"); 2584 long int y; 2585}; 2586 2587// Check UTF-8 literals. 2588#define u8 syntax error! 2589char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2590 2591// Check duplicate typedefs. 2592typedef long *long_ptr; 2593typedef long int *long_ptr; 2594typedef long_ptr long_ptr; 2595 2596// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2597struct anonymous 2598{ 2599 union { 2600 struct { int i; int j; }; 2601 struct { int k; long int l; } w; 2602 }; 2603 int m; 2604} v1; 2605' 2606 2607# Test code for whether the C compiler supports C11 (body of main). 2608ac_c_conftest_c11_main=' 2609 _Static_assert ((offsetof (struct anonymous, i) 2610 == offsetof (struct anonymous, w.k)), 2611 "Anonymous union alignment botch"); 2612 v1.i = 2; 2613 v1.w.k = 5; 2614 ok |= v1.i != 5; 2615' 2616 2617# Test code for whether the C compiler supports C11 (complete). 2618ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2619${ac_c_conftest_c99_globals} 2620${ac_c_conftest_c11_globals} 2621 2622int 2623main (int argc, char **argv) 2624{ 2625 int ok = 0; 2626 ${ac_c_conftest_c89_main} 2627 ${ac_c_conftest_c99_main} 2628 ${ac_c_conftest_c11_main} 2629 return ok; 2630} 2631" 2632 2633# Test code for whether the C compiler supports C99 (complete). 2634ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2635${ac_c_conftest_c99_globals} 2636 2637int 2638main (int argc, char **argv) 2639{ 2640 int ok = 0; 2641 ${ac_c_conftest_c89_main} 2642 ${ac_c_conftest_c99_main} 2643 return ok; 2644} 2645" 2646 2647# Test code for whether the C compiler supports C89 (complete). 2648ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2649 2650int 2651main (int argc, char **argv) 2652{ 2653 int ok = 0; 2654 ${ac_c_conftest_c89_main} 2655 return ok; 2656} 2657" 2658 2659# Test code for whether the C++ compiler supports C++98 (global declarations) 2660ac_cxx_conftest_cxx98_globals=' 2661// Does the compiler advertise C++98 conformance? 2662#if !defined __cplusplus || __cplusplus < 199711L 2663# error "Compiler does not advertise C++98 conformance" 2664#endif 2665 2666// These inclusions are to reject old compilers that 2667// lack the unsuffixed header files. 2668#include <cstdlib> 2669#include <exception> 2670 2671// <cassert> and <cstring> are *not* freestanding headers in C++98. 2672extern void assert (int); 2673namespace std { 2674 extern int strcmp (const char *, const char *); 2675} 2676 2677// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2678using std::exception; 2679using std::strcmp; 2680 2681namespace { 2682 2683void test_exception_syntax() 2684{ 2685 try { 2686 throw "test"; 2687 } catch (const char *s) { 2688 // Extra parentheses suppress a warning when building autoconf itself, 2689 // due to lint rules shared with more typical C programs. 2690 assert (!(strcmp) (s, "test")); 2691 } 2692} 2693 2694template <typename T> struct test_template 2695{ 2696 T const val; 2697 explicit test_template(T t) : val(t) {} 2698 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2699}; 2700 2701} // anonymous namespace 2702' 2703 2704# Test code for whether the C++ compiler supports C++98 (body of main) 2705ac_cxx_conftest_cxx98_main=' 2706 assert (argc); 2707 assert (! argv[0]); 2708{ 2709 test_exception_syntax (); 2710 test_template<double> tt (2.0); 2711 assert (tt.add (4) == 6.0); 2712 assert (true && !false); 2713} 2714' 2715 2716# Test code for whether the C++ compiler supports C++11 (global declarations) 2717ac_cxx_conftest_cxx11_globals=' 2718// Does the compiler advertise C++ 2011 conformance? 2719#if !defined __cplusplus || __cplusplus < 201103L 2720# error "Compiler does not advertise C++11 conformance" 2721#endif 2722 2723namespace cxx11test 2724{ 2725 constexpr int get_val() { return 20; } 2726 2727 struct testinit 2728 { 2729 int i; 2730 double d; 2731 }; 2732 2733 class delegate 2734 { 2735 public: 2736 delegate(int n) : n(n) {} 2737 delegate(): delegate(2354) {} 2738 2739 virtual int getval() { return this->n; }; 2740 protected: 2741 int n; 2742 }; 2743 2744 class overridden : public delegate 2745 { 2746 public: 2747 overridden(int n): delegate(n) {} 2748 virtual int getval() override final { return this->n * 2; } 2749 }; 2750 2751 class nocopy 2752 { 2753 public: 2754 nocopy(int i): i(i) {} 2755 nocopy() = default; 2756 nocopy(const nocopy&) = delete; 2757 nocopy & operator=(const nocopy&) = delete; 2758 private: 2759 int i; 2760 }; 2761 2762 // for testing lambda expressions 2763 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2764 { 2765 return f(v); 2766 } 2767 2768 // for testing variadic templates and trailing return types 2769 template <typename V> auto sum(V first) -> V 2770 { 2771 return first; 2772 } 2773 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2774 { 2775 return first + sum(rest...); 2776 } 2777} 2778' 2779 2780# Test code for whether the C++ compiler supports C++11 (body of main) 2781ac_cxx_conftest_cxx11_main=' 2782{ 2783 // Test auto and decltype 2784 auto a1 = 6538; 2785 auto a2 = 48573953.4; 2786 auto a3 = "String literal"; 2787 2788 int total = 0; 2789 for (auto i = a3; *i; ++i) { total += *i; } 2790 2791 decltype(a2) a4 = 34895.034; 2792} 2793{ 2794 // Test constexpr 2795 short sa[cxx11test::get_val()] = { 0 }; 2796} 2797{ 2798 // Test initializer lists 2799 cxx11test::testinit il = { 4323, 435234.23544 }; 2800} 2801{ 2802 // Test range-based for 2803 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2804 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2805 for (auto &x : array) { x += 23; } 2806} 2807{ 2808 // Test lambda expressions 2809 using cxx11test::eval; 2810 assert (eval ([](int x) { return x*2; }, 21) == 42); 2811 double d = 2.0; 2812 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2813 assert (d == 5.0); 2814 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2815 assert (d == 5.0); 2816} 2817{ 2818 // Test use of variadic templates 2819 using cxx11test::sum; 2820 auto a = sum(1); 2821 auto b = sum(1, 2); 2822 auto c = sum(1.0, 2.0, 3.0); 2823} 2824{ 2825 // Test constructor delegation 2826 cxx11test::delegate d1; 2827 cxx11test::delegate d2(); 2828 cxx11test::delegate d3(45); 2829} 2830{ 2831 // Test override and final 2832 cxx11test::overridden o1(55464); 2833} 2834{ 2835 // Test nullptr 2836 char *c = nullptr; 2837} 2838{ 2839 // Test template brackets 2840 test_template<::test_template<int>> v(test_template<int>(12)); 2841} 2842{ 2843 // Unicode literals 2844 char const *utf8 = u8"UTF-8 string \u2500"; 2845 char16_t const *utf16 = u"UTF-8 string \u2500"; 2846 char32_t const *utf32 = U"UTF-32 string \u2500"; 2847} 2848' 2849 2850# Test code for whether the C compiler supports C++11 (complete). 2851ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2852${ac_cxx_conftest_cxx11_globals} 2853 2854int 2855main (int argc, char **argv) 2856{ 2857 int ok = 0; 2858 ${ac_cxx_conftest_cxx98_main} 2859 ${ac_cxx_conftest_cxx11_main} 2860 return ok; 2861} 2862" 2863 2864# Test code for whether the C compiler supports C++98 (complete). 2865ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2866int 2867main (int argc, char **argv) 2868{ 2869 int ok = 0; 2870 ${ac_cxx_conftest_cxx98_main} 2871 return ok; 2872} 2873" 2874 2875as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2876as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2877as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2878as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2879as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2880as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2881as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2882as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2883as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2884 2885# Auxiliary files required by this configure script. 2886ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2887 2888# Locations in which to look for auxiliary files. 2889ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2890 2891# Search for a directory containing all of the required auxiliary files, 2892# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2893# If we don't find one directory that contains all the files we need, 2894# we report the set of missing files from the *first* directory in 2895# $ac_aux_dir_candidates and give up. 2896ac_missing_aux_files="" 2897ac_first_candidate=: 2898printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900as_found=false 2901for as_dir in $ac_aux_dir_candidates 2902do 2903 IFS=$as_save_IFS 2904 case $as_dir in #((( 2905 '') as_dir=./ ;; 2906 */) ;; 2907 *) as_dir=$as_dir/ ;; 2908 esac 2909 as_found=: 2910 2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2912 ac_aux_dir_found=yes 2913 ac_install_sh= 2914 for ac_aux in $ac_aux_files 2915 do 2916 # As a special case, if "install-sh" is required, that requirement 2917 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2918 # and $ac_install_sh is set appropriately for whichever one is found. 2919 if test x"$ac_aux" = x"install-sh" 2920 then 2921 if test -f "${as_dir}install-sh"; then 2922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2923 ac_install_sh="${as_dir}install-sh -c" 2924 elif test -f "${as_dir}install.sh"; then 2925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2926 ac_install_sh="${as_dir}install.sh -c" 2927 elif test -f "${as_dir}shtool"; then 2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2929 ac_install_sh="${as_dir}shtool install -c" 2930 else 2931 ac_aux_dir_found=no 2932 if $ac_first_candidate; then 2933 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2934 else 2935 break 2936 fi 2937 fi 2938 else 2939 if test -f "${as_dir}${ac_aux}"; then 2940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2941 else 2942 ac_aux_dir_found=no 2943 if $ac_first_candidate; then 2944 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2945 else 2946 break 2947 fi 2948 fi 2949 fi 2950 done 2951 if test "$ac_aux_dir_found" = yes; then 2952 ac_aux_dir="$as_dir" 2953 break 2954 fi 2955 ac_first_candidate=false 2956 2957 as_found=false 2958done 2959IFS=$as_save_IFS 2960if $as_found 2961then : 2962 2963else $as_nop 2964 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2965fi 2966 2967 2968# These three variables are undocumented and unsupported, 2969# and are intended to be withdrawn in a future Autoconf release. 2970# They can cause serious problems if a builder's source tree is in a directory 2971# whose full name contains unusual characters. 2972if test -f "${ac_aux_dir}config.guess"; then 2973 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2974fi 2975if test -f "${ac_aux_dir}config.sub"; then 2976 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2977fi 2978if test -f "$ac_aux_dir/configure"; then 2979 ac_configure="$SHELL ${ac_aux_dir}configure" 2980fi 2981 2982# Check that the precious variables saved in the cache have kept the same 2983# value. 2984ac_cache_corrupted=false 2985for ac_var in $ac_precious_vars; do 2986 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2987 eval ac_new_set=\$ac_env_${ac_var}_set 2988 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2989 eval ac_new_val=\$ac_env_${ac_var}_value 2990 case $ac_old_set,$ac_new_set in 2991 set,) 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2993printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2994 ac_cache_corrupted=: ;; 2995 ,set) 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2997printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2998 ac_cache_corrupted=: ;; 2999 ,);; 3000 *) 3001 if test "x$ac_old_val" != "x$ac_new_val"; then 3002 # differences in whitespace do not lead to failure. 3003 ac_old_val_w=`echo x $ac_old_val` 3004 ac_new_val_w=`echo x $ac_new_val` 3005 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3007printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3008 ac_cache_corrupted=: 3009 else 3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3011printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3012 eval $ac_var=\$ac_old_val 3013 fi 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3015printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3017printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3018 fi;; 3019 esac 3020 # Pass precious variables to config.status. 3021 if test "$ac_new_set" = set; then 3022 case $ac_new_val in 3023 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3024 *) ac_arg=$ac_var=$ac_new_val ;; 3025 esac 3026 case " $ac_configure_args " in 3027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3028 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3029 esac 3030 fi 3031done 3032if $ac_cache_corrupted; then 3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3036printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3037 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3038 and start over" "$LINENO" 5 3039fi 3040## -------------------- ## 3041## Main body of script. ## 3042## -------------------- ## 3043 3044ac_ext=c 3045ac_cpp='$CPP $CPPFLAGS' 3046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3048ac_compiler_gnu=$ac_cv_c_compiler_gnu 3049 3050 3051 3052WAYLAND_VERSION_MAJOR=1 3053 3054WAYLAND_VERSION_MINOR=19 3055 3056WAYLAND_VERSION_MICRO=0 3057 3058WAYLAND_VERSION=1.19.0 3059 3060 3061ac_config_headers="$ac_config_headers config.h" 3062 3063 3064 3065am__api_version='1.16' 3066 3067 3068 3069 # Find a good install program. We prefer a C program (faster), 3070# so one script is as good as another. But avoid the broken or 3071# incompatible versions: 3072# SysV /etc/install, /usr/sbin/install 3073# SunOS /usr/etc/install 3074# IRIX /sbin/install 3075# AIX /bin/install 3076# AmigaOS /C/install, which installs bootblocks on floppy discs 3077# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3078# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3079# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3080# OS/2's system install, which has a completely different semantic 3081# ./install, which can be erroneously created by make from ./install.sh. 3082# Reject install programs that cannot install multiple files. 3083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3084printf %s "checking for a BSD-compatible install... " >&6; } 3085if test -z "$INSTALL"; then 3086if test ${ac_cv_path_install+y} 3087then : 3088 printf %s "(cached) " >&6 3089else $as_nop 3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 case $as_dir in #((( 3095 '') as_dir=./ ;; 3096 */) ;; 3097 *) as_dir=$as_dir/ ;; 3098 esac 3099 # Account for fact that we put trailing slashes in our PATH walk. 3100case $as_dir in #(( 3101 ./ | /[cC]/* | \ 3102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3103 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3104 /usr/ucb/* ) ;; 3105 *) 3106 # OSF1 and SCO ODT 3.0 have their own names for install. 3107 # Don't use installbsd from OSF since it installs stuff as root 3108 # by default. 3109 for ac_prog in ginstall scoinst install; do 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3112 if test $ac_prog = install && 3113 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3114 # AIX install. It has an incompatible calling convention. 3115 : 3116 elif test $ac_prog = install && 3117 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3118 # program-specific install script used by HP pwplus--don't use. 3119 : 3120 else 3121 rm -rf conftest.one conftest.two conftest.dir 3122 echo one > conftest.one 3123 echo two > conftest.two 3124 mkdir conftest.dir 3125 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3126 test -s conftest.one && test -s conftest.two && 3127 test -s conftest.dir/conftest.one && 3128 test -s conftest.dir/conftest.two 3129 then 3130 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3131 break 3 3132 fi 3133 fi 3134 fi 3135 done 3136 done 3137 ;; 3138esac 3139 3140 done 3141IFS=$as_save_IFS 3142 3143rm -rf conftest.one conftest.two conftest.dir 3144 3145fi 3146 if test ${ac_cv_path_install+y}; then 3147 INSTALL=$ac_cv_path_install 3148 else 3149 # As a last resort, use the slow shell script. Don't cache a 3150 # value for INSTALL within a source directory, because that will 3151 # break other packages using the cache if that directory is 3152 # removed, or if the value is a relative name. 3153 INSTALL=$ac_install_sh 3154 fi 3155fi 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3157printf "%s\n" "$INSTALL" >&6; } 3158 3159# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3160# It thinks the first close brace ends the variable substitution. 3161test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3162 3163test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3164 3165test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3166 3167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3168printf %s "checking whether build environment is sane... " >&6; } 3169# Reject unsafe characters in $srcdir or the absolute working directory 3170# name. Accept space and tab only in the latter. 3171am_lf=' 3172' 3173case `pwd` in 3174 *[\\\"\#\$\&\'\`$am_lf]*) 3175 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3176esac 3177case $srcdir in 3178 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3179 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3180esac 3181 3182# Do 'set' in a subshell so we don't clobber the current shell's 3183# arguments. Must try -L first in case configure is actually a 3184# symlink; some systems play weird games with the mod time of symlinks 3185# (eg FreeBSD returns the mod time of the symlink's containing 3186# directory). 3187if ( 3188 am_has_slept=no 3189 for am_try in 1 2; do 3190 echo "timestamp, slept: $am_has_slept" > conftest.file 3191 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3192 if test "$*" = "X"; then 3193 # -L didn't work. 3194 set X `ls -t "$srcdir/configure" conftest.file` 3195 fi 3196 if test "$*" != "X $srcdir/configure conftest.file" \ 3197 && test "$*" != "X conftest.file $srcdir/configure"; then 3198 3199 # If neither matched, then we have a broken ls. This can happen 3200 # if, for instance, CONFIG_SHELL is bash and it inherits a 3201 # broken ls alias from the environment. This has actually 3202 # happened. Such a system could not be considered "sane". 3203 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3204 alias in your environment" "$LINENO" 5 3205 fi 3206 if test "$2" = conftest.file || test $am_try -eq 2; then 3207 break 3208 fi 3209 # Just in case. 3210 sleep 1 3211 am_has_slept=yes 3212 done 3213 test "$2" = conftest.file 3214 ) 3215then 3216 # Ok. 3217 : 3218else 3219 as_fn_error $? "newly created file is older than distributed files! 3220Check your system clock" "$LINENO" 5 3221fi 3222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3223printf "%s\n" "yes" >&6; } 3224# If we didn't sleep, we still need to ensure time stamps of config.status and 3225# generated files are strictly newer. 3226am_sleep_pid= 3227if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3228 ( sleep 1 ) & 3229 am_sleep_pid=$! 3230fi 3231 3232rm -f conftest.file 3233 3234test "$program_prefix" != NONE && 3235 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3236# Use a double $ so make ignores it. 3237test "$program_suffix" != NONE && 3238 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3239# Double any \ or $. 3240# By default was `s,x,x', remove it if useless. 3241ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3242program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3243 3244 3245# Expand $ac_aux_dir to an absolute path. 3246am_aux_dir=`cd "$ac_aux_dir" && pwd` 3247 3248 3249 if test x"${MISSING+set}" != xset; then 3250 case $am_aux_dir in 3251 *\ * | *\ *) 3252 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3253 *) 3254 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3255 esac 3256fi 3257# Use eval to expand $SHELL 3258if eval "$MISSING --is-lightweight"; then 3259 am_missing_run="$MISSING " 3260else 3261 am_missing_run= 3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3263printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3264fi 3265 3266if test x"${install_sh+set}" != xset; then 3267 case $am_aux_dir in 3268 *\ * | *\ *) 3269 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3270 *) 3271 install_sh="\${SHELL} $am_aux_dir/install-sh" 3272 esac 3273fi 3274 3275# Installed binaries are usually stripped using 'strip' when the user 3276# run "make install-strip". However 'strip' might not be the right 3277# tool to use in cross-compilation environments, therefore Automake 3278# will honor the 'STRIP' environment variable to overrule this program. 3279if test "$cross_compiling" != no; then 3280 if test -n "$ac_tool_prefix"; then 3281 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3282set dummy ${ac_tool_prefix}strip; ac_word=$2 3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284printf %s "checking for $ac_word... " >&6; } 3285if test ${ac_cv_prog_STRIP+y} 3286then : 3287 printf %s "(cached) " >&6 3288else $as_nop 3289 if test -n "$STRIP"; then 3290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3291else 3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3293for as_dir in $PATH 3294do 3295 IFS=$as_save_IFS 3296 case $as_dir in #((( 3297 '') as_dir=./ ;; 3298 */) ;; 3299 *) as_dir=$as_dir/ ;; 3300 esac 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307done 3308 done 3309IFS=$as_save_IFS 3310 3311fi 3312fi 3313STRIP=$ac_cv_prog_STRIP 3314if test -n "$STRIP"; then 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3316printf "%s\n" "$STRIP" >&6; } 3317else 3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319printf "%s\n" "no" >&6; } 3320fi 3321 3322 3323fi 3324if test -z "$ac_cv_prog_STRIP"; then 3325 ac_ct_STRIP=$STRIP 3326 # Extract the first word of "strip", so it can be a program name with args. 3327set dummy strip; ac_word=$2 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3329printf %s "checking for $ac_word... " >&6; } 3330if test ${ac_cv_prog_ac_ct_STRIP+y} 3331then : 3332 printf %s "(cached) " >&6 3333else $as_nop 3334 if test -n "$ac_ct_STRIP"; then 3335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3336else 3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3338for as_dir in $PATH 3339do 3340 IFS=$as_save_IFS 3341 case $as_dir in #((( 3342 '') as_dir=./ ;; 3343 */) ;; 3344 *) as_dir=$as_dir/ ;; 3345 esac 3346 for ac_exec_ext in '' $ac_executable_extensions; do 3347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3348 ac_cv_prog_ac_ct_STRIP="strip" 3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3350 break 2 3351 fi 3352done 3353 done 3354IFS=$as_save_IFS 3355 3356fi 3357fi 3358ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3359if test -n "$ac_ct_STRIP"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3361printf "%s\n" "$ac_ct_STRIP" >&6; } 3362else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364printf "%s\n" "no" >&6; } 3365fi 3366 3367 if test "x$ac_ct_STRIP" = x; then 3368 STRIP=":" 3369 else 3370 case $cross_compiling:$ac_tool_warned in 3371yes:) 3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3373printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3374ac_tool_warned=yes ;; 3375esac 3376 STRIP=$ac_ct_STRIP 3377 fi 3378else 3379 STRIP="$ac_cv_prog_STRIP" 3380fi 3381 3382fi 3383INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3384 3385 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3387printf %s "checking for a race-free mkdir -p... " >&6; } 3388if test -z "$MKDIR_P"; then 3389 if test ${ac_cv_path_mkdir+y} 3390then : 3391 printf %s "(cached) " >&6 3392else $as_nop 3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3394for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3395do 3396 IFS=$as_save_IFS 3397 case $as_dir in #((( 3398 '') as_dir=./ ;; 3399 */) ;; 3400 *) as_dir=$as_dir/ ;; 3401 esac 3402 for ac_prog in mkdir gmkdir; do 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3405 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3406 'mkdir ('*'coreutils) '* | \ 3407 'BusyBox '* | \ 3408 'mkdir (fileutils) '4.1*) 3409 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3410 break 3;; 3411 esac 3412 done 3413 done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418 3419 test -d ./--version && rmdir ./--version 3420 if test ${ac_cv_path_mkdir+y}; then 3421 MKDIR_P="$ac_cv_path_mkdir -p" 3422 else 3423 # As a last resort, use the slow shell script. Don't cache a 3424 # value for MKDIR_P within a source directory, because that will 3425 # break other packages using the cache if that directory is 3426 # removed, or if the value is a relative name. 3427 MKDIR_P="$ac_install_sh -d" 3428 fi 3429fi 3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3431printf "%s\n" "$MKDIR_P" >&6; } 3432 3433for ac_prog in gawk mawk nawk awk 3434do 3435 # Extract the first word of "$ac_prog", so it can be a program name with args. 3436set dummy $ac_prog; ac_word=$2 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438printf %s "checking for $ac_word... " >&6; } 3439if test ${ac_cv_prog_AWK+y} 3440then : 3441 printf %s "(cached) " >&6 3442else $as_nop 3443 if test -n "$AWK"; then 3444 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3445else 3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH 3448do 3449 IFS=$as_save_IFS 3450 case $as_dir in #((( 3451 '') as_dir=./ ;; 3452 */) ;; 3453 *) as_dir=$as_dir/ ;; 3454 esac 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3457 ac_cv_prog_AWK="$ac_prog" 3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3459 break 2 3460 fi 3461done 3462 done 3463IFS=$as_save_IFS 3464 3465fi 3466fi 3467AWK=$ac_cv_prog_AWK 3468if test -n "$AWK"; then 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3470printf "%s\n" "$AWK" >&6; } 3471else 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473printf "%s\n" "no" >&6; } 3474fi 3475 3476 3477 test -n "$AWK" && break 3478done 3479 3480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3481printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3482set x ${MAKE-make} 3483ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3484if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3485then : 3486 printf %s "(cached) " >&6 3487else $as_nop 3488 cat >conftest.make <<\_ACEOF 3489SHELL = /bin/sh 3490all: 3491 @echo '@@@%%%=$(MAKE)=@@@%%%' 3492_ACEOF 3493# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3494case `${MAKE-make} -f conftest.make 2>/dev/null` in 3495 *@@@%%%=?*=@@@%%%*) 3496 eval ac_cv_prog_make_${ac_make}_set=yes;; 3497 *) 3498 eval ac_cv_prog_make_${ac_make}_set=no;; 3499esac 3500rm -f conftest.make 3501fi 3502if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3504printf "%s\n" "yes" >&6; } 3505 SET_MAKE= 3506else 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508printf "%s\n" "no" >&6; } 3509 SET_MAKE="MAKE=${MAKE-make}" 3510fi 3511 3512rm -rf .tst 2>/dev/null 3513mkdir .tst 2>/dev/null 3514if test -d .tst; then 3515 am__leading_dot=. 3516else 3517 am__leading_dot=_ 3518fi 3519rmdir .tst 2>/dev/null 3520 3521# Check whether --enable-silent-rules was given. 3522if test ${enable_silent_rules+y} 3523then : 3524 enableval=$enable_silent_rules; 3525fi 3526 3527case $enable_silent_rules in # ((( 3528 yes) AM_DEFAULT_VERBOSITY=0;; 3529 no) AM_DEFAULT_VERBOSITY=1;; 3530 *) AM_DEFAULT_VERBOSITY=1;; 3531esac 3532am_make=${MAKE-make} 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3534printf %s "checking whether $am_make supports nested variables... " >&6; } 3535if test ${am_cv_make_support_nested_variables+y} 3536then : 3537 printf %s "(cached) " >&6 3538else $as_nop 3539 if printf "%s\n" 'TRUE=$(BAR$(V)) 3540BAR0=false 3541BAR1=true 3542V=1 3543am__doit: 3544 @$(TRUE) 3545.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3546 am_cv_make_support_nested_variables=yes 3547else 3548 am_cv_make_support_nested_variables=no 3549fi 3550fi 3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3552printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3553if test $am_cv_make_support_nested_variables = yes; then 3554 AM_V='$(V)' 3555 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3556else 3557 AM_V=$AM_DEFAULT_VERBOSITY 3558 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3559fi 3560AM_BACKSLASH='\' 3561 3562if test "`cd $srcdir && pwd`" != "`pwd`"; then 3563 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3564 # is not polluted with repeated "-I." 3565 am__isrc=' -I$(srcdir)' 3566 # test to see if srcdir already configured 3567 if test -f $srcdir/config.status; then 3568 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3569 fi 3570fi 3571 3572# test whether we have cygpath 3573if test -z "$CYGPATH_W"; then 3574 if (cygpath --version) >/dev/null 2>/dev/null; then 3575 CYGPATH_W='cygpath -w' 3576 else 3577 CYGPATH_W=echo 3578 fi 3579fi 3580 3581 3582# Define the identity of the package. 3583 PACKAGE='wayland' 3584 VERSION='1.19.0' 3585 3586 3587printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3588 3589 3590printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3591 3592# Some tools Automake needs. 3593 3594ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3595 3596 3597AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3598 3599 3600AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3601 3602 3603AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3604 3605 3606MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3607 3608# For better backward compatibility. To be removed once Automake 1.9.x 3609# dies out for good. For more background, see: 3610# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3611# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3612mkdir_p='$(MKDIR_P)' 3613 3614# We need awk for the "check" target (and possibly the TAP driver). The 3615# system "awk" is bad on some platforms. 3616# Always define AMTAR for backward compatibility. Yes, it's still used 3617# in the wild :-( We should find a proper way to deprecate it ... 3618AMTAR='$${TAR-tar}' 3619 3620 3621# We'll loop over all known methods to create a tar archive until one works. 3622_am_tools='gnutar pax cpio none' 3623 3624am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3625 3626 3627 3628 3629 3630 3631# POSIX will say in a future version that running "rm -f" with no argument 3632# is OK; and we want to be able to make that assumption in our Makefile 3633# recipes. So use an aggressive probe to check that the usage we want is 3634# actually supported "in the wild" to an acceptable degree. 3635# See automake bug#10828. 3636# To make any issue more visible, cause the running configure to be aborted 3637# by default if the 'rm' program in use doesn't match our expectations; the 3638# user can still override this though. 3639if rm -f && rm -fr && rm -rf; then : OK; else 3640 cat >&2 <<'END' 3641Oops! 3642 3643Your 'rm' program seems unable to run without file operands specified 3644on the command line, even when the '-f' option is present. This is contrary 3645to the behaviour of most rm programs out there, and not conforming with 3646the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3647 3648Please tell bug-automake@gnu.org about your system, including the value 3649of your $PATH and any error possibly output before this message. This 3650can help us improve future automake versions. 3651 3652END 3653 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3654 echo 'Configuration will proceed anyway, since you have set the' >&2 3655 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3656 echo >&2 3657 else 3658 cat >&2 <<'END' 3659Aborting the configuration process, to ensure you take notice of the issue. 3660 3661You can download and install GNU coreutils to get an 'rm' implementation 3662that behaves properly: <https://www.gnu.org/software/coreutils/>. 3663 3664If you want to complete the configuration process using your problematic 3665'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3666to "yes", and re-run configure. 3667 3668END 3669 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3670 fi 3671fi 3672 3673 3674# Check whether --enable-silent-rules was given. 3675if test ${enable_silent_rules+y} 3676then : 3677 enableval=$enable_silent_rules; 3678fi 3679 3680case $enable_silent_rules in # ((( 3681 yes) AM_DEFAULT_VERBOSITY=0;; 3682 no) AM_DEFAULT_VERBOSITY=1;; 3683 *) AM_DEFAULT_VERBOSITY=0;; 3684esac 3685am_make=${MAKE-make} 3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3687printf %s "checking whether $am_make supports nested variables... " >&6; } 3688if test ${am_cv_make_support_nested_variables+y} 3689then : 3690 printf %s "(cached) " >&6 3691else $as_nop 3692 if printf "%s\n" 'TRUE=$(BAR$(V)) 3693BAR0=false 3694BAR1=true 3695V=1 3696am__doit: 3697 @$(TRUE) 3698.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3699 am_cv_make_support_nested_variables=yes 3700else 3701 am_cv_make_support_nested_variables=no 3702fi 3703fi 3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3705printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3706if test $am_cv_make_support_nested_variables = yes; then 3707 AM_V='$(V)' 3708 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3709else 3710 AM_V=$AM_DEFAULT_VERBOSITY 3711 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3712fi 3713AM_BACKSLASH='\' 3714 3715 3716# Check for programs 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726ac_ext=c 3727ac_cpp='$CPP $CPPFLAGS' 3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3730ac_compiler_gnu=$ac_cv_c_compiler_gnu 3731if test -n "$ac_tool_prefix"; then 3732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3733set dummy ${ac_tool_prefix}gcc; ac_word=$2 3734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3735printf %s "checking for $ac_word... " >&6; } 3736if test ${ac_cv_prog_CC+y} 3737then : 3738 printf %s "(cached) " >&6 3739else $as_nop 3740 if test -n "$CC"; then 3741 ac_cv_prog_CC="$CC" # Let the user override the test. 3742else 3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3744for as_dir in $PATH 3745do 3746 IFS=$as_save_IFS 3747 case $as_dir in #((( 3748 '') as_dir=./ ;; 3749 */) ;; 3750 *) as_dir=$as_dir/ ;; 3751 esac 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3754 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3756 break 2 3757 fi 3758done 3759 done 3760IFS=$as_save_IFS 3761 3762fi 3763fi 3764CC=$ac_cv_prog_CC 3765if test -n "$CC"; then 3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3767printf "%s\n" "$CC" >&6; } 3768else 3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770printf "%s\n" "no" >&6; } 3771fi 3772 3773 3774fi 3775if test -z "$ac_cv_prog_CC"; then 3776 ac_ct_CC=$CC 3777 # Extract the first word of "gcc", so it can be a program name with args. 3778set dummy gcc; ac_word=$2 3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3780printf %s "checking for $ac_word... " >&6; } 3781if test ${ac_cv_prog_ac_ct_CC+y} 3782then : 3783 printf %s "(cached) " >&6 3784else $as_nop 3785 if test -n "$ac_ct_CC"; then 3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3787else 3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789for as_dir in $PATH 3790do 3791 IFS=$as_save_IFS 3792 case $as_dir in #((( 3793 '') as_dir=./ ;; 3794 */) ;; 3795 *) as_dir=$as_dir/ ;; 3796 esac 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3799 ac_cv_prog_ac_ct_CC="gcc" 3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804 done 3805IFS=$as_save_IFS 3806 3807fi 3808fi 3809ac_ct_CC=$ac_cv_prog_ac_ct_CC 3810if test -n "$ac_ct_CC"; then 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3812printf "%s\n" "$ac_ct_CC" >&6; } 3813else 3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3815printf "%s\n" "no" >&6; } 3816fi 3817 3818 if test "x$ac_ct_CC" = x; then 3819 CC="" 3820 else 3821 case $cross_compiling:$ac_tool_warned in 3822yes:) 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3824printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3825ac_tool_warned=yes ;; 3826esac 3827 CC=$ac_ct_CC 3828 fi 3829else 3830 CC="$ac_cv_prog_CC" 3831fi 3832 3833if test -z "$CC"; then 3834 if test -n "$ac_tool_prefix"; then 3835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3836set dummy ${ac_tool_prefix}cc; ac_word=$2 3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3838printf %s "checking for $ac_word... " >&6; } 3839if test ${ac_cv_prog_CC+y} 3840then : 3841 printf %s "(cached) " >&6 3842else $as_nop 3843 if test -n "$CC"; then 3844 ac_cv_prog_CC="$CC" # Let the user override the test. 3845else 3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH 3848do 3849 IFS=$as_save_IFS 3850 case $as_dir in #((( 3851 '') as_dir=./ ;; 3852 */) ;; 3853 *) as_dir=$as_dir/ ;; 3854 esac 3855 for ac_exec_ext in '' $ac_executable_extensions; do 3856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3857 ac_cv_prog_CC="${ac_tool_prefix}cc" 3858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3859 break 2 3860 fi 3861done 3862 done 3863IFS=$as_save_IFS 3864 3865fi 3866fi 3867CC=$ac_cv_prog_CC 3868if test -n "$CC"; then 3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3870printf "%s\n" "$CC" >&6; } 3871else 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3873printf "%s\n" "no" >&6; } 3874fi 3875 3876 3877 fi 3878fi 3879if test -z "$CC"; then 3880 # Extract the first word of "cc", so it can be a program name with args. 3881set dummy cc; ac_word=$2 3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3883printf %s "checking for $ac_word... " >&6; } 3884if test ${ac_cv_prog_CC+y} 3885then : 3886 printf %s "(cached) " >&6 3887else $as_nop 3888 if test -n "$CC"; then 3889 ac_cv_prog_CC="$CC" # Let the user override the test. 3890else 3891 ac_prog_rejected=no 3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3893for as_dir in $PATH 3894do 3895 IFS=$as_save_IFS 3896 case $as_dir in #((( 3897 '') as_dir=./ ;; 3898 */) ;; 3899 *) as_dir=$as_dir/ ;; 3900 esac 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3903 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3904 ac_prog_rejected=yes 3905 continue 3906 fi 3907 ac_cv_prog_CC="cc" 3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3909 break 2 3910 fi 3911done 3912 done 3913IFS=$as_save_IFS 3914 3915if test $ac_prog_rejected = yes; then 3916 # We found a bogon in the path, so make sure we never use it. 3917 set dummy $ac_cv_prog_CC 3918 shift 3919 if test $# != 0; then 3920 # We chose a different compiler from the bogus one. 3921 # However, it has the same basename, so the bogon will be chosen 3922 # first if we set CC to just the basename; use the full file name. 3923 shift 3924 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3925 fi 3926fi 3927fi 3928fi 3929CC=$ac_cv_prog_CC 3930if test -n "$CC"; then 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3932printf "%s\n" "$CC" >&6; } 3933else 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935printf "%s\n" "no" >&6; } 3936fi 3937 3938 3939fi 3940if test -z "$CC"; then 3941 if test -n "$ac_tool_prefix"; then 3942 for ac_prog in cl.exe 3943 do 3944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3945set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3947printf %s "checking for $ac_word... " >&6; } 3948if test ${ac_cv_prog_CC+y} 3949then : 3950 printf %s "(cached) " >&6 3951else $as_nop 3952 if test -n "$CC"; then 3953 ac_cv_prog_CC="$CC" # Let the user override the test. 3954else 3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956for as_dir in $PATH 3957do 3958 IFS=$as_save_IFS 3959 case $as_dir in #((( 3960 '') as_dir=./ ;; 3961 */) ;; 3962 *) as_dir=$as_dir/ ;; 3963 esac 3964 for ac_exec_ext in '' $ac_executable_extensions; do 3965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3968 break 2 3969 fi 3970done 3971 done 3972IFS=$as_save_IFS 3973 3974fi 3975fi 3976CC=$ac_cv_prog_CC 3977if test -n "$CC"; then 3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3979printf "%s\n" "$CC" >&6; } 3980else 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3982printf "%s\n" "no" >&6; } 3983fi 3984 3985 3986 test -n "$CC" && break 3987 done 3988fi 3989if test -z "$CC"; then 3990 ac_ct_CC=$CC 3991 for ac_prog in cl.exe 3992do 3993 # Extract the first word of "$ac_prog", so it can be a program name with args. 3994set dummy $ac_prog; ac_word=$2 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3996printf %s "checking for $ac_word... " >&6; } 3997if test ${ac_cv_prog_ac_ct_CC+y} 3998then : 3999 printf %s "(cached) " >&6 4000else $as_nop 4001 if test -n "$ac_ct_CC"; then 4002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4003else 4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4005for as_dir in $PATH 4006do 4007 IFS=$as_save_IFS 4008 case $as_dir in #((( 4009 '') as_dir=./ ;; 4010 */) ;; 4011 *) as_dir=$as_dir/ ;; 4012 esac 4013 for ac_exec_ext in '' $ac_executable_extensions; do 4014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4015 ac_cv_prog_ac_ct_CC="$ac_prog" 4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4017 break 2 4018 fi 4019done 4020 done 4021IFS=$as_save_IFS 4022 4023fi 4024fi 4025ac_ct_CC=$ac_cv_prog_ac_ct_CC 4026if test -n "$ac_ct_CC"; then 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4028printf "%s\n" "$ac_ct_CC" >&6; } 4029else 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031printf "%s\n" "no" >&6; } 4032fi 4033 4034 4035 test -n "$ac_ct_CC" && break 4036done 4037 4038 if test "x$ac_ct_CC" = x; then 4039 CC="" 4040 else 4041 case $cross_compiling:$ac_tool_warned in 4042yes:) 4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4044printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4045ac_tool_warned=yes ;; 4046esac 4047 CC=$ac_ct_CC 4048 fi 4049fi 4050 4051fi 4052if test -z "$CC"; then 4053 if test -n "$ac_tool_prefix"; then 4054 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4055set dummy ${ac_tool_prefix}clang; ac_word=$2 4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4057printf %s "checking for $ac_word... " >&6; } 4058if test ${ac_cv_prog_CC+y} 4059then : 4060 printf %s "(cached) " >&6 4061else $as_nop 4062 if test -n "$CC"; then 4063 ac_cv_prog_CC="$CC" # Let the user override the test. 4064else 4065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4066for as_dir in $PATH 4067do 4068 IFS=$as_save_IFS 4069 case $as_dir in #((( 4070 '') as_dir=./ ;; 4071 */) ;; 4072 *) as_dir=$as_dir/ ;; 4073 esac 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4076 ac_cv_prog_CC="${ac_tool_prefix}clang" 4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4078 break 2 4079 fi 4080done 4081 done 4082IFS=$as_save_IFS 4083 4084fi 4085fi 4086CC=$ac_cv_prog_CC 4087if test -n "$CC"; then 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4089printf "%s\n" "$CC" >&6; } 4090else 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092printf "%s\n" "no" >&6; } 4093fi 4094 4095 4096fi 4097if test -z "$ac_cv_prog_CC"; then 4098 ac_ct_CC=$CC 4099 # Extract the first word of "clang", so it can be a program name with args. 4100set dummy clang; ac_word=$2 4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4102printf %s "checking for $ac_word... " >&6; } 4103if test ${ac_cv_prog_ac_ct_CC+y} 4104then : 4105 printf %s "(cached) " >&6 4106else $as_nop 4107 if test -n "$ac_ct_CC"; then 4108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4109else 4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4111for as_dir in $PATH 4112do 4113 IFS=$as_save_IFS 4114 case $as_dir in #((( 4115 '') as_dir=./ ;; 4116 */) ;; 4117 *) as_dir=$as_dir/ ;; 4118 esac 4119 for ac_exec_ext in '' $ac_executable_extensions; do 4120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4121 ac_cv_prog_ac_ct_CC="clang" 4122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4123 break 2 4124 fi 4125done 4126 done 4127IFS=$as_save_IFS 4128 4129fi 4130fi 4131ac_ct_CC=$ac_cv_prog_ac_ct_CC 4132if test -n "$ac_ct_CC"; then 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4134printf "%s\n" "$ac_ct_CC" >&6; } 4135else 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4137printf "%s\n" "no" >&6; } 4138fi 4139 4140 if test "x$ac_ct_CC" = x; then 4141 CC="" 4142 else 4143 case $cross_compiling:$ac_tool_warned in 4144yes:) 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4146printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4147ac_tool_warned=yes ;; 4148esac 4149 CC=$ac_ct_CC 4150 fi 4151else 4152 CC="$ac_cv_prog_CC" 4153fi 4154 4155fi 4156 4157 4158test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4159printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4160as_fn_error $? "no acceptable C compiler found in \$PATH 4161See \`config.log' for more details" "$LINENO" 5; } 4162 4163# Provide some information about the compiler. 4164printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4165set X $ac_compile 4166ac_compiler=$2 4167for ac_option in --version -v -V -qversion -version; do 4168 { { ac_try="$ac_compiler $ac_option >&5" 4169case "(($ac_try" in 4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4171 *) ac_try_echo=$ac_try;; 4172esac 4173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4174printf "%s\n" "$ac_try_echo"; } >&5 4175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4176 ac_status=$? 4177 if test -s conftest.err; then 4178 sed '10a\ 4179... rest of stderr output deleted ... 4180 10q' conftest.err >conftest.er1 4181 cat conftest.er1 >&5 4182 fi 4183 rm -f conftest.er1 conftest.err 4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4185 test $ac_status = 0; } 4186done 4187 4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189/* end confdefs.h. */ 4190 4191int 4192main (void) 4193{ 4194 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199ac_clean_files_save=$ac_clean_files 4200ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4201# Try to create an executable without -o first, disregard a.out. 4202# It will help us diagnose broken compilers, and finding out an intuition 4203# of exeext. 4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4205printf %s "checking whether the C compiler works... " >&6; } 4206ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4207 4208# The possible output files: 4209ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4210 4211ac_rmfiles= 4212for ac_file in $ac_files 4213do 4214 case $ac_file in 4215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4216 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4217 esac 4218done 4219rm -f $ac_rmfiles 4220 4221if { { ac_try="$ac_link_default" 4222case "(($ac_try" in 4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4224 *) ac_try_echo=$ac_try;; 4225esac 4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4227printf "%s\n" "$ac_try_echo"; } >&5 4228 (eval "$ac_link_default") 2>&5 4229 ac_status=$? 4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4231 test $ac_status = 0; } 4232then : 4233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4235# in a Makefile. We should not override ac_cv_exeext if it was cached, 4236# so that the user can short-circuit this test for compilers unknown to 4237# Autoconf. 4238for ac_file in $ac_files '' 4239do 4240 test -f "$ac_file" || continue 4241 case $ac_file in 4242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4243 ;; 4244 [ab].out ) 4245 # We found the default executable, but exeext='' is most 4246 # certainly right. 4247 break;; 4248 *.* ) 4249 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4250 then :; else 4251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4252 fi 4253 # We set ac_cv_exeext here because the later test for it is not 4254 # safe: cross compilers may not add the suffix if given an `-o' 4255 # argument, so we may need to know it at that point already. 4256 # Even if this section looks crufty: it has the advantage of 4257 # actually working. 4258 break;; 4259 * ) 4260 break;; 4261 esac 4262done 4263test "$ac_cv_exeext" = no && ac_cv_exeext= 4264 4265else $as_nop 4266 ac_file='' 4267fi 4268if test -z "$ac_file" 4269then : 4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271printf "%s\n" "no" >&6; } 4272printf "%s\n" "$as_me: failed program was:" >&5 4273sed 's/^/| /' conftest.$ac_ext >&5 4274 4275{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4276printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4277as_fn_error 77 "C compiler cannot create executables 4278See \`config.log' for more details" "$LINENO" 5; } 4279else $as_nop 4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4281printf "%s\n" "yes" >&6; } 4282fi 4283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4284printf %s "checking for C compiler default output file name... " >&6; } 4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4286printf "%s\n" "$ac_file" >&6; } 4287ac_exeext=$ac_cv_exeext 4288 4289rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4290ac_clean_files=$ac_clean_files_save 4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4292printf %s "checking for suffix of executables... " >&6; } 4293if { { ac_try="$ac_link" 4294case "(($ac_try" in 4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4296 *) ac_try_echo=$ac_try;; 4297esac 4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4299printf "%s\n" "$ac_try_echo"; } >&5 4300 (eval "$ac_link") 2>&5 4301 ac_status=$? 4302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4303 test $ac_status = 0; } 4304then : 4305 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4306# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4307# work properly (i.e., refer to `conftest.exe'), while it won't with 4308# `rm'. 4309for ac_file in conftest.exe conftest conftest.*; do 4310 test -f "$ac_file" || continue 4311 case $ac_file in 4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4314 break;; 4315 * ) break;; 4316 esac 4317done 4318else $as_nop 4319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4320printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4321as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4322See \`config.log' for more details" "$LINENO" 5; } 4323fi 4324rm -f conftest conftest$ac_cv_exeext 4325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4326printf "%s\n" "$ac_cv_exeext" >&6; } 4327 4328rm -f conftest.$ac_ext 4329EXEEXT=$ac_cv_exeext 4330ac_exeext=$EXEEXT 4331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4332/* end confdefs.h. */ 4333#include <stdio.h> 4334int 4335main (void) 4336{ 4337FILE *f = fopen ("conftest.out", "w"); 4338 return ferror (f) || fclose (f) != 0; 4339 4340 ; 4341 return 0; 4342} 4343_ACEOF 4344ac_clean_files="$ac_clean_files conftest.out" 4345# Check that the compiler produces executables we can run. If not, either 4346# the compiler is broken, or we cross compile. 4347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4348printf %s "checking whether we are cross compiling... " >&6; } 4349if test "$cross_compiling" != yes; then 4350 { { ac_try="$ac_link" 4351case "(($ac_try" in 4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4353 *) ac_try_echo=$ac_try;; 4354esac 4355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4356printf "%s\n" "$ac_try_echo"; } >&5 4357 (eval "$ac_link") 2>&5 4358 ac_status=$? 4359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4360 test $ac_status = 0; } 4361 if { ac_try='./conftest$ac_cv_exeext' 4362 { { case "(($ac_try" in 4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4364 *) ac_try_echo=$ac_try;; 4365esac 4366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4367printf "%s\n" "$ac_try_echo"; } >&5 4368 (eval "$ac_try") 2>&5 4369 ac_status=$? 4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4371 test $ac_status = 0; }; }; then 4372 cross_compiling=no 4373 else 4374 if test "$cross_compiling" = maybe; then 4375 cross_compiling=yes 4376 else 4377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4378printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4379as_fn_error 77 "cannot run C compiled programs. 4380If you meant to cross compile, use \`--host'. 4381See \`config.log' for more details" "$LINENO" 5; } 4382 fi 4383 fi 4384fi 4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4386printf "%s\n" "$cross_compiling" >&6; } 4387 4388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4389ac_clean_files=$ac_clean_files_save 4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4391printf %s "checking for suffix of object files... " >&6; } 4392if test ${ac_cv_objext+y} 4393then : 4394 printf %s "(cached) " >&6 4395else $as_nop 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397/* end confdefs.h. */ 4398 4399int 4400main (void) 4401{ 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407rm -f conftest.o conftest.obj 4408if { { ac_try="$ac_compile" 4409case "(($ac_try" in 4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4411 *) ac_try_echo=$ac_try;; 4412esac 4413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4414printf "%s\n" "$ac_try_echo"; } >&5 4415 (eval "$ac_compile") 2>&5 4416 ac_status=$? 4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4418 test $ac_status = 0; } 4419then : 4420 for ac_file in conftest.o conftest.obj conftest.*; do 4421 test -f "$ac_file" || continue; 4422 case $ac_file in 4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4424 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4425 break;; 4426 esac 4427done 4428else $as_nop 4429 printf "%s\n" "$as_me: failed program was:" >&5 4430sed 's/^/| /' conftest.$ac_ext >&5 4431 4432{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4433printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4434as_fn_error $? "cannot compute suffix of object files: cannot compile 4435See \`config.log' for more details" "$LINENO" 5; } 4436fi 4437rm -f conftest.$ac_cv_objext conftest.$ac_ext 4438fi 4439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4440printf "%s\n" "$ac_cv_objext" >&6; } 4441OBJEXT=$ac_cv_objext 4442ac_objext=$OBJEXT 4443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4444printf %s "checking whether the compiler supports GNU C... " >&6; } 4445if test ${ac_cv_c_compiler_gnu+y} 4446then : 4447 printf %s "(cached) " >&6 4448else $as_nop 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4450/* end confdefs.h. */ 4451 4452int 4453main (void) 4454{ 4455#ifndef __GNUC__ 4456 choke me 4457#endif 4458 4459 ; 4460 return 0; 4461} 4462_ACEOF 4463if ac_fn_c_try_compile "$LINENO" 4464then : 4465 ac_compiler_gnu=yes 4466else $as_nop 4467 ac_compiler_gnu=no 4468fi 4469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4470ac_cv_c_compiler_gnu=$ac_compiler_gnu 4471 4472fi 4473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4474printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4475ac_compiler_gnu=$ac_cv_c_compiler_gnu 4476 4477if test $ac_compiler_gnu = yes; then 4478 GCC=yes 4479else 4480 GCC= 4481fi 4482ac_test_CFLAGS=${CFLAGS+y} 4483ac_save_CFLAGS=$CFLAGS 4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4485printf %s "checking whether $CC accepts -g... " >&6; } 4486if test ${ac_cv_prog_cc_g+y} 4487then : 4488 printf %s "(cached) " >&6 4489else $as_nop 4490 ac_save_c_werror_flag=$ac_c_werror_flag 4491 ac_c_werror_flag=yes 4492 ac_cv_prog_cc_g=no 4493 CFLAGS="-g" 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495/* end confdefs.h. */ 4496 4497int 4498main (void) 4499{ 4500 4501 ; 4502 return 0; 4503} 4504_ACEOF 4505if ac_fn_c_try_compile "$LINENO" 4506then : 4507 ac_cv_prog_cc_g=yes 4508else $as_nop 4509 CFLAGS="" 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512 4513int 4514main (void) 4515{ 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521if ac_fn_c_try_compile "$LINENO" 4522then : 4523 4524else $as_nop 4525 ac_c_werror_flag=$ac_save_c_werror_flag 4526 CFLAGS="-g" 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529 4530int 4531main (void) 4532{ 4533 4534 ; 4535 return 0; 4536} 4537_ACEOF 4538if ac_fn_c_try_compile "$LINENO" 4539then : 4540 ac_cv_prog_cc_g=yes 4541fi 4542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4543fi 4544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4545fi 4546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4547 ac_c_werror_flag=$ac_save_c_werror_flag 4548fi 4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4550printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4551if test $ac_test_CFLAGS; then 4552 CFLAGS=$ac_save_CFLAGS 4553elif test $ac_cv_prog_cc_g = yes; then 4554 if test "$GCC" = yes; then 4555 CFLAGS="-g -O2" 4556 else 4557 CFLAGS="-g" 4558 fi 4559else 4560 if test "$GCC" = yes; then 4561 CFLAGS="-O2" 4562 else 4563 CFLAGS= 4564 fi 4565fi 4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4567printf %s "checking for $CC option to enable C11 features... " >&6; } 4568if test ${ac_cv_prog_cc_c11+y} 4569then : 4570 printf %s "(cached) " >&6 4571else $as_nop 4572 ac_cv_prog_cc_c11=no 4573ac_save_CC=$CC 4574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576$ac_c_conftest_c11_program 4577_ACEOF 4578for ac_arg in '' -std=gnu11 4579do 4580 CC="$ac_save_CC $ac_arg" 4581 if ac_fn_c_try_compile "$LINENO" 4582then : 4583 ac_cv_prog_cc_c11=$ac_arg 4584fi 4585rm -f core conftest.err conftest.$ac_objext conftest.beam 4586 test "x$ac_cv_prog_cc_c11" != "xno" && break 4587done 4588rm -f conftest.$ac_ext 4589CC=$ac_save_CC 4590 4591fi 4592# AC_CACHE_VAL 4593ac_prog_cc_stdc_options= 4594case "x$ac_cv_prog_cc_c11" in #( 4595 x) : 4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4597printf "%s\n" "none needed" >&6; } ;; #( 4598 xno) : 4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4600printf "%s\n" "unsupported" >&6; } ;; #( 4601 *) : 4602 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" 4603 CC="$CC$ac_prog_cc_stdc_options" 4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4605printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;; 4606esac 4607if test "x$ac_cv_prog_cc_c11" != xno 4608then : 4609 ac_prog_cc_stdc=c11 4610 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4611else $as_nop 4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4613printf %s "checking for $CC option to enable C99 features... " >&6; } 4614if test ${ac_cv_prog_cc_c99+y} 4615then : 4616 printf %s "(cached) " >&6 4617else $as_nop 4618 ac_cv_prog_cc_c99=no 4619ac_save_CC=$CC 4620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622$ac_c_conftest_c89_program 4623_ACEOF 4624for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 4625do 4626 CC="$ac_save_CC $ac_arg" 4627 if ac_fn_c_try_compile "$LINENO" 4628then : 4629 ac_cv_prog_cc_c99=$ac_arg 4630fi 4631rm -f core conftest.err conftest.$ac_objext conftest.beam 4632 test "x$ac_cv_prog_cc_c99" != "xno" && break 4633done 4634rm -f conftest.$ac_ext 4635CC=$ac_save_CC 4636 4637fi 4638# AC_CACHE_VAL 4639ac_prog_cc_stdc_options= 4640case "x$ac_cv_prog_cc_c99" in #( 4641 x) : 4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4643printf "%s\n" "none needed" >&6; } ;; #( 4644 xno) : 4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4646printf "%s\n" "unsupported" >&6; } ;; #( 4647 *) : 4648 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" 4649 CC="$CC$ac_prog_cc_stdc_options" 4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4651printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;; 4652esac 4653if test "x$ac_cv_prog_cc_c99" != xno 4654then : 4655 ac_prog_cc_stdc=c99 4656 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4657else $as_nop 4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4659printf %s "checking for $CC option to enable C89 features... " >&6; } 4660if test ${ac_cv_prog_cc_c89+y} 4661then : 4662 printf %s "(cached) " >&6 4663else $as_nop 4664 ac_cv_prog_cc_c89=no 4665ac_save_CC=$CC 4666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667/* end confdefs.h. */ 4668$ac_c_conftest_c89_program 4669_ACEOF 4670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4672do 4673 CC="$ac_save_CC $ac_arg" 4674 if ac_fn_c_try_compile "$LINENO" 4675then : 4676 ac_cv_prog_cc_c89=$ac_arg 4677fi 4678rm -f core conftest.err conftest.$ac_objext conftest.beam 4679 test "x$ac_cv_prog_cc_c89" != "xno" && break 4680done 4681rm -f conftest.$ac_ext 4682CC=$ac_save_CC 4683 4684fi 4685# AC_CACHE_VAL 4686ac_prog_cc_stdc_options= 4687case "x$ac_cv_prog_cc_c89" in #( 4688 x) : 4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4690printf "%s\n" "none needed" >&6; } ;; #( 4691 xno) : 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4693printf "%s\n" "unsupported" >&6; } ;; #( 4694 *) : 4695 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" 4696 CC="$CC$ac_prog_cc_stdc_options" 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4698printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;; 4699esac 4700if test "x$ac_cv_prog_cc_c89" != xno 4701then : 4702 ac_prog_cc_stdc=c89 4703 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4704else $as_nop 4705 ac_prog_cc_stdc=no 4706 ac_cv_prog_cc_stdc=no 4707fi 4708 4709fi 4710 4711fi 4712 4713ac_ext=c 4714ac_cpp='$CPP $CPPFLAGS' 4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4717ac_compiler_gnu=$ac_cv_c_compiler_gnu 4718 4719 4720 ac_ext=c 4721ac_cpp='$CPP $CPPFLAGS' 4722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4724ac_compiler_gnu=$ac_cv_c_compiler_gnu 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4726printf %s "checking whether $CC understands -c and -o together... " >&6; } 4727if test ${am_cv_prog_cc_c_o+y} 4728then : 4729 printf %s "(cached) " >&6 4730else $as_nop 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733 4734int 4735main (void) 4736{ 4737 4738 ; 4739 return 0; 4740} 4741_ACEOF 4742 # Make sure it works both with $CC and with simple cc. 4743 # Following AC_PROG_CC_C_O, we do the test twice because some 4744 # compilers refuse to overwrite an existing .o file with -o, 4745 # though they will create one. 4746 am_cv_prog_cc_c_o=yes 4747 for am_i in 1 2; do 4748 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4749 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } \ 4753 && test -f conftest2.$ac_objext; then 4754 : OK 4755 else 4756 am_cv_prog_cc_c_o=no 4757 break 4758 fi 4759 done 4760 rm -f core conftest* 4761 unset am_i 4762fi 4763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4764printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4765if test "$am_cv_prog_cc_c_o" != yes; then 4766 # Losing compiler, so override with the script. 4767 # FIXME: It is wrong to rewrite CC. 4768 # But if we don't then we get into trouble of one sort or another. 4769 # A longer-term fix would be to have automake use am__CC in this case, 4770 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4771 CC="$am_aux_dir/compile $CC" 4772fi 4773ac_ext=c 4774ac_cpp='$CPP $CPPFLAGS' 4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4777ac_compiler_gnu=$ac_cv_c_compiler_gnu 4778 4779DEPDIR="${am__leading_dot}deps" 4780 4781ac_config_commands="$ac_config_commands depfiles" 4782 4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4784printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4785cat > confinc.mk << 'END' 4786am__doit: 4787 @echo this is the am__doit target >confinc.out 4788.PHONY: am__doit 4789END 4790am__include="#" 4791am__quote= 4792# BSD make does it like this. 4793echo '.include "confinc.mk" # ignored' > confmf.BSD 4794# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4795echo 'include confinc.mk # ignored' > confmf.GNU 4796_am_result=no 4797for s in GNU BSD; do 4798 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4799 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4800 ac_status=$? 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); } 4803 case $?:`cat confinc.out 2>/dev/null` in #( 4804 '0:this is the am__doit target') : 4805 case $s in #( 4806 BSD) : 4807 am__include='.include' am__quote='"' ;; #( 4808 *) : 4809 am__include='include' am__quote='' ;; 4810esac ;; #( 4811 *) : 4812 ;; 4813esac 4814 if test "$am__include" != "#"; then 4815 _am_result="yes ($s style)" 4816 break 4817 fi 4818done 4819rm -f confinc.* confmf.* 4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4821printf "%s\n" "${_am_result}" >&6; } 4822 4823# Check whether --enable-dependency-tracking was given. 4824if test ${enable_dependency_tracking+y} 4825then : 4826 enableval=$enable_dependency_tracking; 4827fi 4828 4829if test "x$enable_dependency_tracking" != xno; then 4830 am_depcomp="$ac_aux_dir/depcomp" 4831 AMDEPBACKSLASH='\' 4832 am__nodep='_no' 4833fi 4834 if test "x$enable_dependency_tracking" != xno; then 4835 AMDEP_TRUE= 4836 AMDEP_FALSE='#' 4837else 4838 AMDEP_TRUE='#' 4839 AMDEP_FALSE= 4840fi 4841 4842 4843 4844depcc="$CC" am_compiler_list= 4845 4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4847printf %s "checking dependency style of $depcc... " >&6; } 4848if test ${am_cv_CC_dependencies_compiler_type+y} 4849then : 4850 printf %s "(cached) " >&6 4851else $as_nop 4852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4853 # We make a subdir and do the tests there. Otherwise we can end up 4854 # making bogus files that we don't know about and never remove. For 4855 # instance it was reported that on HP-UX the gcc test will end up 4856 # making a dummy file named 'D' -- because '-MD' means "put the output 4857 # in D". 4858 rm -rf conftest.dir 4859 mkdir conftest.dir 4860 # Copy depcomp to subdir because otherwise we won't find it if we're 4861 # using a relative directory. 4862 cp "$am_depcomp" conftest.dir 4863 cd conftest.dir 4864 # We will build objects and dependencies in a subdirectory because 4865 # it helps to detect inapplicable dependency modes. For instance 4866 # both Tru64's cc and ICC support -MD to output dependencies as a 4867 # side effect of compilation, but ICC will put the dependencies in 4868 # the current directory while Tru64 will put them in the object 4869 # directory. 4870 mkdir sub 4871 4872 am_cv_CC_dependencies_compiler_type=none 4873 if test "$am_compiler_list" = ""; then 4874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4875 fi 4876 am__universal=false 4877 case " $depcc " in #( 4878 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4879 esac 4880 4881 for depmode in $am_compiler_list; do 4882 # Setup a source with many dependencies, because some compilers 4883 # like to wrap large dependency lists on column 80 (with \), and 4884 # we should not choose a depcomp mode which is confused by this. 4885 # 4886 # We need to recreate these files for each test, as the compiler may 4887 # overwrite some of them when testing with obscure command lines. 4888 # This happens at least with the AIX C compiler. 4889 : > sub/conftest.c 4890 for i in 1 2 3 4 5 6; do 4891 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4892 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4893 # Solaris 10 /bin/sh. 4894 echo '/* dummy */' > sub/conftst$i.h 4895 done 4896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4897 4898 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4899 # mode. It turns out that the SunPro C++ compiler does not properly 4900 # handle '-M -o', and we need to detect this. Also, some Intel 4901 # versions had trouble with output in subdirs. 4902 am__obj=sub/conftest.${OBJEXT-o} 4903 am__minus_obj="-o $am__obj" 4904 case $depmode in 4905 gcc) 4906 # This depmode causes a compiler race in universal mode. 4907 test "$am__universal" = false || continue 4908 ;; 4909 nosideeffect) 4910 # After this tag, mechanisms are not by side-effect, so they'll 4911 # only be used when explicitly requested. 4912 if test "x$enable_dependency_tracking" = xyes; then 4913 continue 4914 else 4915 break 4916 fi 4917 ;; 4918 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4919 # This compiler won't grok '-c -o', but also, the minuso test has 4920 # not run yet. These depmodes are late enough in the game, and 4921 # so weak that their functioning should not be impacted. 4922 am__obj=conftest.${OBJEXT-o} 4923 am__minus_obj= 4924 ;; 4925 none) break ;; 4926 esac 4927 if depmode=$depmode \ 4928 source=sub/conftest.c object=$am__obj \ 4929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4931 >/dev/null 2>conftest.err && 4932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4936 # icc doesn't choke on unknown options, it will just issue warnings 4937 # or remarks (even with -Werror). So we grep stderr for any message 4938 # that says an option was ignored or not supported. 4939 # When given -MP, icc 7.0 and 7.1 complain thusly: 4940 # icc: Command line warning: ignoring option '-M'; no argument required 4941 # The diagnosis changed in icc 8.0: 4942 # icc: Command line remark: option '-MP' not supported 4943 if (grep 'ignoring option' conftest.err || 4944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4945 am_cv_CC_dependencies_compiler_type=$depmode 4946 break 4947 fi 4948 fi 4949 done 4950 4951 cd .. 4952 rm -rf conftest.dir 4953else 4954 am_cv_CC_dependencies_compiler_type=none 4955fi 4956 4957fi 4958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4959printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4960CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4961 4962 if 4963 test "x$enable_dependency_tracking" != xno \ 4964 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4965 am__fastdepCC_TRUE= 4966 am__fastdepCC_FALSE='#' 4967else 4968 am__fastdepCC_TRUE='#' 4969 am__fastdepCC_FALSE= 4970fi 4971 4972 4973 4974 4975 4976 4977 4978 4979ac_ext=cpp 4980ac_cpp='$CXXCPP $CPPFLAGS' 4981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4984if test -z "$CXX"; then 4985 if test -n "$CCC"; then 4986 CXX=$CCC 4987 else 4988 if test -n "$ac_tool_prefix"; then 4989 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4990 do 4991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4992set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4994printf %s "checking for $ac_word... " >&6; } 4995if test ${ac_cv_prog_CXX+y} 4996then : 4997 printf %s "(cached) " >&6 4998else $as_nop 4999 if test -n "$CXX"; then 5000 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5001else 5002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5003for as_dir in $PATH 5004do 5005 IFS=$as_save_IFS 5006 case $as_dir in #((( 5007 '') as_dir=./ ;; 5008 */) ;; 5009 *) as_dir=$as_dir/ ;; 5010 esac 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5013 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017done 5018 done 5019IFS=$as_save_IFS 5020 5021fi 5022fi 5023CXX=$ac_cv_prog_CXX 5024if test -n "$CXX"; then 5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5026printf "%s\n" "$CXX" >&6; } 5027else 5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5029printf "%s\n" "no" >&6; } 5030fi 5031 5032 5033 test -n "$CXX" && break 5034 done 5035fi 5036if test -z "$CXX"; then 5037 ac_ct_CXX=$CXX 5038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5039do 5040 # Extract the first word of "$ac_prog", so it can be a program name with args. 5041set dummy $ac_prog; ac_word=$2 5042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043printf %s "checking for $ac_word... " >&6; } 5044if test ${ac_cv_prog_ac_ct_CXX+y} 5045then : 5046 printf %s "(cached) " >&6 5047else $as_nop 5048 if test -n "$ac_ct_CXX"; then 5049 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5050else 5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052for as_dir in $PATH 5053do 5054 IFS=$as_save_IFS 5055 case $as_dir in #((( 5056 '') as_dir=./ ;; 5057 */) ;; 5058 *) as_dir=$as_dir/ ;; 5059 esac 5060 for ac_exec_ext in '' $ac_executable_extensions; do 5061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5062 ac_cv_prog_ac_ct_CXX="$ac_prog" 5063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5064 break 2 5065 fi 5066done 5067 done 5068IFS=$as_save_IFS 5069 5070fi 5071fi 5072ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5073if test -n "$ac_ct_CXX"; then 5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5075printf "%s\n" "$ac_ct_CXX" >&6; } 5076else 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5078printf "%s\n" "no" >&6; } 5079fi 5080 5081 5082 test -n "$ac_ct_CXX" && break 5083done 5084 5085 if test "x$ac_ct_CXX" = x; then 5086 CXX="g++" 5087 else 5088 case $cross_compiling:$ac_tool_warned in 5089yes:) 5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5091printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5092ac_tool_warned=yes ;; 5093esac 5094 CXX=$ac_ct_CXX 5095 fi 5096fi 5097 5098 fi 5099fi 5100# Provide some information about the compiler. 5101printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5102set X $ac_compile 5103ac_compiler=$2 5104for ac_option in --version -v -V -qversion; do 5105 { { ac_try="$ac_compiler $ac_option >&5" 5106case "(($ac_try" in 5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5108 *) ac_try_echo=$ac_try;; 5109esac 5110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5111printf "%s\n" "$ac_try_echo"; } >&5 5112 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5113 ac_status=$? 5114 if test -s conftest.err; then 5115 sed '10a\ 5116... rest of stderr output deleted ... 5117 10q' conftest.err >conftest.er1 5118 cat conftest.er1 >&5 5119 fi 5120 rm -f conftest.er1 conftest.err 5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5122 test $ac_status = 0; } 5123done 5124 5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 5126printf %s "checking whether the compiler supports GNU C++... " >&6; } 5127if test ${ac_cv_cxx_compiler_gnu+y} 5128then : 5129 printf %s "(cached) " >&6 5130else $as_nop 5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5132/* end confdefs.h. */ 5133 5134int 5135main (void) 5136{ 5137#ifndef __GNUC__ 5138 choke me 5139#endif 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145if ac_fn_cxx_try_compile "$LINENO" 5146then : 5147 ac_compiler_gnu=yes 5148else $as_nop 5149 ac_compiler_gnu=no 5150fi 5151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5152ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5153 5154fi 5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5156printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 5157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5158 5159if test $ac_compiler_gnu = yes; then 5160 GXX=yes 5161else 5162 GXX= 5163fi 5164ac_test_CXXFLAGS=${CXXFLAGS+y} 5165ac_save_CXXFLAGS=$CXXFLAGS 5166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5167printf %s "checking whether $CXX accepts -g... " >&6; } 5168if test ${ac_cv_prog_cxx_g+y} 5169then : 5170 printf %s "(cached) " >&6 5171else $as_nop 5172 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5173 ac_cxx_werror_flag=yes 5174 ac_cv_prog_cxx_g=no 5175 CXXFLAGS="-g" 5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5177/* end confdefs.h. */ 5178 5179int 5180main (void) 5181{ 5182 5183 ; 5184 return 0; 5185} 5186_ACEOF 5187if ac_fn_cxx_try_compile "$LINENO" 5188then : 5189 ac_cv_prog_cxx_g=yes 5190else $as_nop 5191 CXXFLAGS="" 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194 5195int 5196main (void) 5197{ 5198 5199 ; 5200 return 0; 5201} 5202_ACEOF 5203if ac_fn_cxx_try_compile "$LINENO" 5204then : 5205 5206else $as_nop 5207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5208 CXXFLAGS="-g" 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211 5212int 5213main (void) 5214{ 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220if ac_fn_cxx_try_compile "$LINENO" 5221then : 5222 ac_cv_prog_cxx_g=yes 5223fi 5224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5225fi 5226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5227fi 5228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5230fi 5231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5232printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 5233if test $ac_test_CXXFLAGS; then 5234 CXXFLAGS=$ac_save_CXXFLAGS 5235elif test $ac_cv_prog_cxx_g = yes; then 5236 if test "$GXX" = yes; then 5237 CXXFLAGS="-g -O2" 5238 else 5239 CXXFLAGS="-g" 5240 fi 5241else 5242 if test "$GXX" = yes; then 5243 CXXFLAGS="-O2" 5244 else 5245 CXXFLAGS= 5246 fi 5247fi 5248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 5249printf %s "checking for $CXX option to enable C++11 features... " >&6; } 5250if test ${ac_cv_prog_cxx_cxx11+y} 5251then : 5252 printf %s "(cached) " >&6 5253else $as_nop 5254 ac_cv_prog_cxx_cxx11=no 5255ac_save_CXX=$CXX 5256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258$ac_cxx_conftest_cxx11_program 5259_ACEOF 5260for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA 5261do 5262 CXX="$ac_save_CXX $ac_arg" 5263 if ac_fn_cxx_try_compile "$LINENO" 5264then : 5265 ac_cv_prog_cxx_cxx11=$ac_arg 5266fi 5267rm -f core conftest.err conftest.$ac_objext conftest.beam 5268 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 5269done 5270rm -f conftest.$ac_ext 5271CXX=$ac_save_CXX 5272 5273fi 5274# AC_CACHE_VAL 5275ac_prog_cxx_stdcxx_options= 5276case "x$ac_cv_prog_cxx_cxx11" in #( 5277 x) : 5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5279printf "%s\n" "none needed" >&6; } ;; #( 5280 xno) : 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5282printf "%s\n" "unsupported" >&6; } ;; #( 5283 *) : 5284 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11" 5285 CXX=$CXX$ac_prog_cxx_stdcxx_options 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 5287printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } ;; 5288esac 5289if test "x$ac_cv_prog_cxx_cxx11" != xno 5290then : 5291 ac_prog_cxx_stdcxx=cxx11 5292 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 5293 ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11 5294else $as_nop 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 5296printf %s "checking for $CXX option to enable C++98 features... " >&6; } 5297if test ${ac_cv_prog_cxx_cxx98+y} 5298then : 5299 printf %s "(cached) " >&6 5300else $as_nop 5301 ac_cv_prog_cxx_cxx98=no 5302ac_save_CXX=$CXX 5303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305$ac_cxx_conftest_cxx98_program 5306_ACEOF 5307for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 5308do 5309 CXX="$ac_save_CXX $ac_arg" 5310 if ac_fn_cxx_try_compile "$LINENO" 5311then : 5312 ac_cv_prog_cxx_cxx98=$ac_arg 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam 5315 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 5316done 5317rm -f conftest.$ac_ext 5318CXX=$ac_save_CXX 5319 5320fi 5321# AC_CACHE_VAL 5322ac_prog_cxx_stdcxx_options= 5323case "x$ac_cv_prog_cxx_cxx98" in #( 5324 x) : 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5326printf "%s\n" "none needed" >&6; } ;; #( 5327 xno) : 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5329printf "%s\n" "unsupported" >&6; } ;; #( 5330 *) : 5331 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98" 5332 CXX=$CXX$ac_prog_cxx_stdcxx_options 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 5334printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } ;; 5335esac 5336if test "x$ac_cv_prog_cxx_cxx98" != xno 5337then : 5338 ac_prog_cxx_stdcxx=cxx98 5339 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 5340else $as_nop 5341 ac_prog_cxx_stdcxx=no 5342 ac_cv_prog_cxx_stdcxx=no 5343fi 5344 5345fi 5346 5347ac_ext=c 5348ac_cpp='$CPP $CPPFLAGS' 5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5351ac_compiler_gnu=$ac_cv_c_compiler_gnu 5352 5353depcc="$CXX" am_compiler_list= 5354 5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5356printf %s "checking dependency style of $depcc... " >&6; } 5357if test ${am_cv_CXX_dependencies_compiler_type+y} 5358then : 5359 printf %s "(cached) " >&6 5360else $as_nop 5361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5362 # We make a subdir and do the tests there. Otherwise we can end up 5363 # making bogus files that we don't know about and never remove. For 5364 # instance it was reported that on HP-UX the gcc test will end up 5365 # making a dummy file named 'D' -- because '-MD' means "put the output 5366 # in D". 5367 rm -rf conftest.dir 5368 mkdir conftest.dir 5369 # Copy depcomp to subdir because otherwise we won't find it if we're 5370 # using a relative directory. 5371 cp "$am_depcomp" conftest.dir 5372 cd conftest.dir 5373 # We will build objects and dependencies in a subdirectory because 5374 # it helps to detect inapplicable dependency modes. For instance 5375 # both Tru64's cc and ICC support -MD to output dependencies as a 5376 # side effect of compilation, but ICC will put the dependencies in 5377 # the current directory while Tru64 will put them in the object 5378 # directory. 5379 mkdir sub 5380 5381 am_cv_CXX_dependencies_compiler_type=none 5382 if test "$am_compiler_list" = ""; then 5383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5384 fi 5385 am__universal=false 5386 case " $depcc " in #( 5387 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5388 esac 5389 5390 for depmode in $am_compiler_list; do 5391 # Setup a source with many dependencies, because some compilers 5392 # like to wrap large dependency lists on column 80 (with \), and 5393 # we should not choose a depcomp mode which is confused by this. 5394 # 5395 # We need to recreate these files for each test, as the compiler may 5396 # overwrite some of them when testing with obscure command lines. 5397 # This happens at least with the AIX C compiler. 5398 : > sub/conftest.c 5399 for i in 1 2 3 4 5 6; do 5400 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5402 # Solaris 10 /bin/sh. 5403 echo '/* dummy */' > sub/conftst$i.h 5404 done 5405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5406 5407 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5408 # mode. It turns out that the SunPro C++ compiler does not properly 5409 # handle '-M -o', and we need to detect this. Also, some Intel 5410 # versions had trouble with output in subdirs. 5411 am__obj=sub/conftest.${OBJEXT-o} 5412 am__minus_obj="-o $am__obj" 5413 case $depmode in 5414 gcc) 5415 # This depmode causes a compiler race in universal mode. 5416 test "$am__universal" = false || continue 5417 ;; 5418 nosideeffect) 5419 # After this tag, mechanisms are not by side-effect, so they'll 5420 # only be used when explicitly requested. 5421 if test "x$enable_dependency_tracking" = xyes; then 5422 continue 5423 else 5424 break 5425 fi 5426 ;; 5427 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5428 # This compiler won't grok '-c -o', but also, the minuso test has 5429 # not run yet. These depmodes are late enough in the game, and 5430 # so weak that their functioning should not be impacted. 5431 am__obj=conftest.${OBJEXT-o} 5432 am__minus_obj= 5433 ;; 5434 none) break ;; 5435 esac 5436 if depmode=$depmode \ 5437 source=sub/conftest.c object=$am__obj \ 5438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5440 >/dev/null 2>conftest.err && 5441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5445 # icc doesn't choke on unknown options, it will just issue warnings 5446 # or remarks (even with -Werror). So we grep stderr for any message 5447 # that says an option was ignored or not supported. 5448 # When given -MP, icc 7.0 and 7.1 complain thusly: 5449 # icc: Command line warning: ignoring option '-M'; no argument required 5450 # The diagnosis changed in icc 8.0: 5451 # icc: Command line remark: option '-MP' not supported 5452 if (grep 'ignoring option' conftest.err || 5453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5454 am_cv_CXX_dependencies_compiler_type=$depmode 5455 break 5456 fi 5457 fi 5458 done 5459 5460 cd .. 5461 rm -rf conftest.dir 5462else 5463 am_cv_CXX_dependencies_compiler_type=none 5464fi 5465 5466fi 5467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5468printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 5469CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5470 5471 if 5472 test "x$enable_dependency_tracking" != xno \ 5473 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5474 am__fastdepCXX_TRUE= 5475 am__fastdepCXX_FALSE='#' 5476else 5477 am__fastdepCXX_TRUE='#' 5478 am__fastdepCXX_FALSE= 5479fi 5480 5481 5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5483printf %s "checking for grep that handles long lines and -e... " >&6; } 5484if test ${ac_cv_path_GREP+y} 5485then : 5486 printf %s "(cached) " >&6 5487else $as_nop 5488 if test -z "$GREP"; then 5489 ac_path_GREP_found=false 5490 # Loop through the user's path and test for each of PROGNAME-LIST 5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5493do 5494 IFS=$as_save_IFS 5495 case $as_dir in #((( 5496 '') as_dir=./ ;; 5497 */) ;; 5498 *) as_dir=$as_dir/ ;; 5499 esac 5500 for ac_prog in grep ggrep 5501 do 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5504 as_fn_executable_p "$ac_path_GREP" || continue 5505# Check for GNU ac_path_GREP and select it if it is found. 5506 # Check for GNU $ac_path_GREP 5507case `"$ac_path_GREP" --version 2>&1` in 5508*GNU*) 5509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5510*) 5511 ac_count=0 5512 printf %s 0123456789 >"conftest.in" 5513 while : 5514 do 5515 cat "conftest.in" "conftest.in" >"conftest.tmp" 5516 mv "conftest.tmp" "conftest.in" 5517 cp "conftest.in" "conftest.nl" 5518 printf "%s\n" 'GREP' >> "conftest.nl" 5519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5521 as_fn_arith $ac_count + 1 && ac_count=$as_val 5522 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5523 # Best one so far, save it but keep looking for a better one 5524 ac_cv_path_GREP="$ac_path_GREP" 5525 ac_path_GREP_max=$ac_count 5526 fi 5527 # 10*(2^10) chars as input seems more than enough 5528 test $ac_count -gt 10 && break 5529 done 5530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5531esac 5532 5533 $ac_path_GREP_found && break 3 5534 done 5535 done 5536 done 5537IFS=$as_save_IFS 5538 if test -z "$ac_cv_path_GREP"; then 5539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5540 fi 5541else 5542 ac_cv_path_GREP=$GREP 5543fi 5544 5545fi 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5547printf "%s\n" "$ac_cv_path_GREP" >&6; } 5548 GREP="$ac_cv_path_GREP" 5549 5550 5551# By default we simply use the C compiler to build assembly code. 5552 5553test "${CCAS+set}" = set || CCAS=$CC 5554test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 5555 5556 5557 5558depcc="$CCAS" am_compiler_list= 5559 5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5561printf %s "checking dependency style of $depcc... " >&6; } 5562if test ${am_cv_CCAS_dependencies_compiler_type+y} 5563then : 5564 printf %s "(cached) " >&6 5565else $as_nop 5566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5567 # We make a subdir and do the tests there. Otherwise we can end up 5568 # making bogus files that we don't know about and never remove. For 5569 # instance it was reported that on HP-UX the gcc test will end up 5570 # making a dummy file named 'D' -- because '-MD' means "put the output 5571 # in D". 5572 rm -rf conftest.dir 5573 mkdir conftest.dir 5574 # Copy depcomp to subdir because otherwise we won't find it if we're 5575 # using a relative directory. 5576 cp "$am_depcomp" conftest.dir 5577 cd conftest.dir 5578 # We will build objects and dependencies in a subdirectory because 5579 # it helps to detect inapplicable dependency modes. For instance 5580 # both Tru64's cc and ICC support -MD to output dependencies as a 5581 # side effect of compilation, but ICC will put the dependencies in 5582 # the current directory while Tru64 will put them in the object 5583 # directory. 5584 mkdir sub 5585 5586 am_cv_CCAS_dependencies_compiler_type=none 5587 if test "$am_compiler_list" = ""; then 5588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5589 fi 5590 am__universal=false 5591 5592 5593 for depmode in $am_compiler_list; do 5594 # Setup a source with many dependencies, because some compilers 5595 # like to wrap large dependency lists on column 80 (with \), and 5596 # we should not choose a depcomp mode which is confused by this. 5597 # 5598 # We need to recreate these files for each test, as the compiler may 5599 # overwrite some of them when testing with obscure command lines. 5600 # This happens at least with the AIX C compiler. 5601 : > sub/conftest.c 5602 for i in 1 2 3 4 5 6; do 5603 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5604 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5605 # Solaris 10 /bin/sh. 5606 echo '/* dummy */' > sub/conftst$i.h 5607 done 5608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5609 5610 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5611 # mode. It turns out that the SunPro C++ compiler does not properly 5612 # handle '-M -o', and we need to detect this. Also, some Intel 5613 # versions had trouble with output in subdirs. 5614 am__obj=sub/conftest.${OBJEXT-o} 5615 am__minus_obj="-o $am__obj" 5616 case $depmode in 5617 gcc) 5618 # This depmode causes a compiler race in universal mode. 5619 test "$am__universal" = false || continue 5620 ;; 5621 nosideeffect) 5622 # After this tag, mechanisms are not by side-effect, so they'll 5623 # only be used when explicitly requested. 5624 if test "x$enable_dependency_tracking" = xyes; then 5625 continue 5626 else 5627 break 5628 fi 5629 ;; 5630 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5631 # This compiler won't grok '-c -o', but also, the minuso test has 5632 # not run yet. These depmodes are late enough in the game, and 5633 # so weak that their functioning should not be impacted. 5634 am__obj=conftest.${OBJEXT-o} 5635 am__minus_obj= 5636 ;; 5637 none) break ;; 5638 esac 5639 if depmode=$depmode \ 5640 source=sub/conftest.c object=$am__obj \ 5641 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5642 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5643 >/dev/null 2>conftest.err && 5644 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5646 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5648 # icc doesn't choke on unknown options, it will just issue warnings 5649 # or remarks (even with -Werror). So we grep stderr for any message 5650 # that says an option was ignored or not supported. 5651 # When given -MP, icc 7.0 and 7.1 complain thusly: 5652 # icc: Command line warning: ignoring option '-M'; no argument required 5653 # The diagnosis changed in icc 8.0: 5654 # icc: Command line remark: option '-MP' not supported 5655 if (grep 'ignoring option' conftest.err || 5656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5657 am_cv_CCAS_dependencies_compiler_type=$depmode 5658 break 5659 fi 5660 fi 5661 done 5662 5663 cd .. 5664 rm -rf conftest.dir 5665else 5666 am_cv_CCAS_dependencies_compiler_type=none 5667fi 5668 5669fi 5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 5671printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 5672CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 5673 5674 if 5675 test "x$enable_dependency_tracking" != xno \ 5676 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 5677 am__fastdepCCAS_TRUE= 5678 am__fastdepCCAS_FALSE='#' 5679else 5680 am__fastdepCCAS_TRUE='#' 5681 am__fastdepCCAS_FALSE= 5682fi 5683 5684 5685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5686printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5687if test ${lt_cv_path_NM+y} 5688then : 5689 printf %s "(cached) " >&6 5690else $as_nop 5691 if test -n "$NM"; then 5692 # Let the user override the test. 5693 lt_cv_path_NM=$NM 5694else 5695 lt_nm_to_check=${ac_tool_prefix}nm 5696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5697 lt_nm_to_check="$lt_nm_to_check nm" 5698 fi 5699 for lt_tmp_nm in $lt_nm_to_check; do 5700 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5702 IFS=$lt_save_ifs 5703 test -z "$ac_dir" && ac_dir=. 5704 tmp_nm=$ac_dir/$lt_tmp_nm 5705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5706 # Check to see if the nm accepts a BSD-compat flag. 5707 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5708 # nm: unknown option "B" ignored 5709 # Tru64's nm complains that /dev/null is an invalid object file 5710 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5711 case $build_os in 5712 mingw*) lt_bad_file=conftest.nm/nofile ;; 5713 *) lt_bad_file=/dev/null ;; 5714 esac 5715 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5716 *$lt_bad_file* | *'Invalid file or object type'*) 5717 lt_cv_path_NM="$tmp_nm -B" 5718 break 2 5719 ;; 5720 *) 5721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5722 */dev/null*) 5723 lt_cv_path_NM="$tmp_nm -p" 5724 break 2 5725 ;; 5726 *) 5727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5728 continue # so that we can try to find one that supports BSD flags 5729 ;; 5730 esac 5731 ;; 5732 esac 5733 fi 5734 done 5735 IFS=$lt_save_ifs 5736 done 5737 : ${lt_cv_path_NM=no} 5738fi 5739fi 5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5741printf "%s\n" "$lt_cv_path_NM" >&6; } 5742if test no != "$lt_cv_path_NM"; then 5743 NM=$lt_cv_path_NM 5744else 5745 # Didn't find any BSD compatible name lister, look for dumpbin. 5746 if test -n "$DUMPBIN"; then : 5747 # Let the user override the test. 5748 else 5749 if test -n "$ac_tool_prefix"; then 5750 for ac_prog in dumpbin "link -dump" 5751 do 5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5753set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5755printf %s "checking for $ac_word... " >&6; } 5756if test ${ac_cv_prog_DUMPBIN+y} 5757then : 5758 printf %s "(cached) " >&6 5759else $as_nop 5760 if test -n "$DUMPBIN"; then 5761 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 case $as_dir in #((( 5768 '') as_dir=./ ;; 5769 */) ;; 5770 *) as_dir=$as_dir/ ;; 5771 esac 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784DUMPBIN=$ac_cv_prog_DUMPBIN 5785if test -n "$DUMPBIN"; then 5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5787printf "%s\n" "$DUMPBIN" >&6; } 5788else 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790printf "%s\n" "no" >&6; } 5791fi 5792 5793 5794 test -n "$DUMPBIN" && break 5795 done 5796fi 5797if test -z "$DUMPBIN"; then 5798 ac_ct_DUMPBIN=$DUMPBIN 5799 for ac_prog in dumpbin "link -dump" 5800do 5801 # Extract the first word of "$ac_prog", so it can be a program name with args. 5802set dummy $ac_prog; ac_word=$2 5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5804printf %s "checking for $ac_word... " >&6; } 5805if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5806then : 5807 printf %s "(cached) " >&6 5808else $as_nop 5809 if test -n "$ac_ct_DUMPBIN"; then 5810 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5811else 5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813for as_dir in $PATH 5814do 5815 IFS=$as_save_IFS 5816 case $as_dir in #((( 5817 '') as_dir=./ ;; 5818 */) ;; 5819 *) as_dir=$as_dir/ ;; 5820 esac 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827done 5828 done 5829IFS=$as_save_IFS 5830 5831fi 5832fi 5833ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5834if test -n "$ac_ct_DUMPBIN"; then 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5836printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5837else 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839printf "%s\n" "no" >&6; } 5840fi 5841 5842 5843 test -n "$ac_ct_DUMPBIN" && break 5844done 5845 5846 if test "x$ac_ct_DUMPBIN" = x; then 5847 DUMPBIN=":" 5848 else 5849 case $cross_compiling:$ac_tool_warned in 5850yes:) 5851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5853ac_tool_warned=yes ;; 5854esac 5855 DUMPBIN=$ac_ct_DUMPBIN 5856 fi 5857fi 5858 5859 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5860 *COFF*) 5861 DUMPBIN="$DUMPBIN -symbols -headers" 5862 ;; 5863 *) 5864 DUMPBIN=: 5865 ;; 5866 esac 5867 fi 5868 5869 if test : != "$DUMPBIN"; then 5870 NM=$DUMPBIN 5871 fi 5872fi 5873test -z "$NM" && NM=nm 5874 5875 5876 5877 5878 5879 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5881printf %s "checking the name lister ($NM) interface... " >&6; } 5882if test ${lt_cv_nm_interface+y} 5883then : 5884 printf %s "(cached) " >&6 5885else $as_nop 5886 lt_cv_nm_interface="BSD nm" 5887 echo "int some_variable = 0;" > conftest.$ac_ext 5888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5889 (eval "$ac_compile" 2>conftest.err) 5890 cat conftest.err >&5 5891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5893 cat conftest.err >&5 5894 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5895 cat conftest.out >&5 5896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5897 lt_cv_nm_interface="MS dumpbin" 5898 fi 5899 rm -f conftest* 5900fi 5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5902printf "%s\n" "$lt_cv_nm_interface" >&6; } 5903 5904 5905# check if we have C++ compiler. This is hacky workaround, 5906# for a reason why it is this way see 5907# http://lists.gnu.org/archive/html/bug-autoconf/2010-05/msg00001.html 5908have_cpp_compiler=yes 5909 5910if ! which "$CXX" &>/dev/null; then 5911 have_cpp_compiler=no 5912fi 5913 5914 if test "x$have_cpp_compiler" = "xyes"; then 5915 ENABLE_CPP_TEST_TRUE= 5916 ENABLE_CPP_TEST_FALSE='#' 5917else 5918 ENABLE_CPP_TEST_TRUE='#' 5919 ENABLE_CPP_TEST_FALSE= 5920fi 5921 5922 5923# Initialize libtool 5924 5925case `pwd` in 5926 *\ * | *\ *) 5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5928printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5929esac 5930 5931 5932 5933macro_version='2.4.6.42-b88ce-dirty' 5934macro_revision='2.4.6.42' 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949ltmain=$ac_aux_dir/ltmain.sh 5950 5951 5952 5953 # Make sure we can run config.sub. 5954$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5955 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5956 5957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5958printf %s "checking build system type... " >&6; } 5959if test ${ac_cv_build+y} 5960then : 5961 printf %s "(cached) " >&6 5962else $as_nop 5963 ac_build_alias=$build_alias 5964test "x$ac_build_alias" = x && 5965 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5966test "x$ac_build_alias" = x && 5967 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5968ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5969 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5970 5971fi 5972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5973printf "%s\n" "$ac_cv_build" >&6; } 5974case $ac_cv_build in 5975*-*-*) ;; 5976*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5977esac 5978build=$ac_cv_build 5979ac_save_IFS=$IFS; IFS='-' 5980set x $ac_cv_build 5981shift 5982build_cpu=$1 5983build_vendor=$2 5984shift; shift 5985# Remember, the first character of IFS is used to create $*, 5986# except with old shells: 5987build_os=$* 5988IFS=$ac_save_IFS 5989case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5990 5991 5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5993printf %s "checking host system type... " >&6; } 5994if test ${ac_cv_host+y} 5995then : 5996 printf %s "(cached) " >&6 5997else $as_nop 5998 if test "x$host_alias" = x; then 5999 ac_cv_host=$ac_cv_build 6000else 6001 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6002 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6003fi 6004 6005fi 6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6007printf "%s\n" "$ac_cv_host" >&6; } 6008case $ac_cv_host in 6009*-*-*) ;; 6010*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6011esac 6012host=$ac_cv_host 6013ac_save_IFS=$IFS; IFS='-' 6014set x $ac_cv_host 6015shift 6016host_cpu=$1 6017host_vendor=$2 6018shift; shift 6019# Remember, the first character of IFS is used to create $*, 6020# except with old shells: 6021host_os=$* 6022IFS=$ac_save_IFS 6023case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6024 6025 6026# Backslashify metacharacters that are still active within 6027# double-quoted strings. 6028sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6029 6030# Same as above, but do not quote variable references. 6031double_quote_subst='s/\(["`\\]\)/\\\1/g' 6032 6033# Sed substitution to delay expansion of an escaped shell variable in a 6034# double_quote_subst'ed string. 6035delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6036 6037# Sed substitution to delay expansion of an escaped single quote. 6038delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6039 6040# Sed substitution to avoid accidental globbing in evaled expressions 6041no_glob_subst='s/\*/\\\*/g' 6042 6043ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6044ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6045ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6046 6047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6048printf %s "checking how to print strings... " >&6; } 6049# Test print first, because it will be a builtin if present. 6050if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6051 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6052 ECHO='print -r --' 6053elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6054 ECHO='printf %s\n' 6055else 6056 # Use this function as a fallback that always works. 6057 func_fallback_echo () 6058 { 6059 eval 'cat <<_LTECHO_EOF 6060$1 6061_LTECHO_EOF' 6062 } 6063 ECHO='func_fallback_echo' 6064fi 6065 6066# func_echo_all arg... 6067# Invoke $ECHO with all args, space-separated. 6068func_echo_all () 6069{ 6070 $ECHO "" 6071} 6072 6073case $ECHO in 6074 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6075printf "%s\n" "printf" >&6; } ;; 6076 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6077printf "%s\n" "print -r" >&6; } ;; 6078 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6079printf "%s\n" "cat" >&6; } ;; 6080esac 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6096printf %s "checking for a sed that does not truncate output... " >&6; } 6097if test ${ac_cv_path_SED+y} 6098then : 6099 printf %s "(cached) " >&6 6100else $as_nop 6101 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6102 for ac_i in 1 2 3 4 5 6 7; do 6103 ac_script="$ac_script$as_nl$ac_script" 6104 done 6105 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6106 { ac_script=; unset ac_script;} 6107 if test -z "$SED"; then 6108 ac_path_SED_found=false 6109 # Loop through the user's path and test for each of PROGNAME-LIST 6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111for as_dir in $PATH 6112do 6113 IFS=$as_save_IFS 6114 case $as_dir in #((( 6115 '') as_dir=./ ;; 6116 */) ;; 6117 *) as_dir=$as_dir/ ;; 6118 esac 6119 for ac_prog in sed gsed 6120 do 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6123 as_fn_executable_p "$ac_path_SED" || continue 6124# Check for GNU ac_path_SED and select it if it is found. 6125 # Check for GNU $ac_path_SED 6126case `"$ac_path_SED" --version 2>&1` in 6127*GNU*) 6128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6129*) 6130 ac_count=0 6131 printf %s 0123456789 >"conftest.in" 6132 while : 6133 do 6134 cat "conftest.in" "conftest.in" >"conftest.tmp" 6135 mv "conftest.tmp" "conftest.in" 6136 cp "conftest.in" "conftest.nl" 6137 printf "%s\n" '' >> "conftest.nl" 6138 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6140 as_fn_arith $ac_count + 1 && ac_count=$as_val 6141 if test $ac_count -gt ${ac_path_SED_max-0}; then 6142 # Best one so far, save it but keep looking for a better one 6143 ac_cv_path_SED="$ac_path_SED" 6144 ac_path_SED_max=$ac_count 6145 fi 6146 # 10*(2^10) chars as input seems more than enough 6147 test $ac_count -gt 10 && break 6148 done 6149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6150esac 6151 6152 $ac_path_SED_found && break 3 6153 done 6154 done 6155 done 6156IFS=$as_save_IFS 6157 if test -z "$ac_cv_path_SED"; then 6158 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6159 fi 6160else 6161 ac_cv_path_SED=$SED 6162fi 6163 6164fi 6165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6166printf "%s\n" "$ac_cv_path_SED" >&6; } 6167 SED="$ac_cv_path_SED" 6168 rm -f conftest.sed 6169 6170test -z "$SED" && SED=sed 6171Xsed="$SED -e 1s/^X//" 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6184printf %s "checking for egrep... " >&6; } 6185if test ${ac_cv_path_EGREP+y} 6186then : 6187 printf %s "(cached) " >&6 6188else $as_nop 6189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6190 then ac_cv_path_EGREP="$GREP -E" 6191 else 6192 if test -z "$EGREP"; then 6193 ac_path_EGREP_found=false 6194 # Loop through the user's path and test for each of PROGNAME-LIST 6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6197do 6198 IFS=$as_save_IFS 6199 case $as_dir in #((( 6200 '') as_dir=./ ;; 6201 */) ;; 6202 *) as_dir=$as_dir/ ;; 6203 esac 6204 for ac_prog in egrep 6205 do 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6208 as_fn_executable_p "$ac_path_EGREP" || continue 6209# Check for GNU ac_path_EGREP and select it if it is found. 6210 # Check for GNU $ac_path_EGREP 6211case `"$ac_path_EGREP" --version 2>&1` in 6212*GNU*) 6213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6214*) 6215 ac_count=0 6216 printf %s 0123456789 >"conftest.in" 6217 while : 6218 do 6219 cat "conftest.in" "conftest.in" >"conftest.tmp" 6220 mv "conftest.tmp" "conftest.in" 6221 cp "conftest.in" "conftest.nl" 6222 printf "%s\n" 'EGREP' >> "conftest.nl" 6223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6225 as_fn_arith $ac_count + 1 && ac_count=$as_val 6226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6227 # Best one so far, save it but keep looking for a better one 6228 ac_cv_path_EGREP="$ac_path_EGREP" 6229 ac_path_EGREP_max=$ac_count 6230 fi 6231 # 10*(2^10) chars as input seems more than enough 6232 test $ac_count -gt 10 && break 6233 done 6234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6235esac 6236 6237 $ac_path_EGREP_found && break 3 6238 done 6239 done 6240 done 6241IFS=$as_save_IFS 6242 if test -z "$ac_cv_path_EGREP"; then 6243 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6244 fi 6245else 6246 ac_cv_path_EGREP=$EGREP 6247fi 6248 6249 fi 6250fi 6251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6252printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6253 EGREP="$ac_cv_path_EGREP" 6254 6255 6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6257printf %s "checking for fgrep... " >&6; } 6258if test ${ac_cv_path_FGREP+y} 6259then : 6260 printf %s "(cached) " >&6 6261else $as_nop 6262 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6263 then ac_cv_path_FGREP="$GREP -F" 6264 else 6265 if test -z "$FGREP"; then 6266 ac_path_FGREP_found=false 6267 # Loop through the user's path and test for each of PROGNAME-LIST 6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6269for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6270do 6271 IFS=$as_save_IFS 6272 case $as_dir in #((( 6273 '') as_dir=./ ;; 6274 */) ;; 6275 *) as_dir=$as_dir/ ;; 6276 esac 6277 for ac_prog in fgrep 6278 do 6279 for ac_exec_ext in '' $ac_executable_extensions; do 6280 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6281 as_fn_executable_p "$ac_path_FGREP" || continue 6282# Check for GNU ac_path_FGREP and select it if it is found. 6283 # Check for GNU $ac_path_FGREP 6284case `"$ac_path_FGREP" --version 2>&1` in 6285*GNU*) 6286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6287*) 6288 ac_count=0 6289 printf %s 0123456789 >"conftest.in" 6290 while : 6291 do 6292 cat "conftest.in" "conftest.in" >"conftest.tmp" 6293 mv "conftest.tmp" "conftest.in" 6294 cp "conftest.in" "conftest.nl" 6295 printf "%s\n" 'FGREP' >> "conftest.nl" 6296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6298 as_fn_arith $ac_count + 1 && ac_count=$as_val 6299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6300 # Best one so far, save it but keep looking for a better one 6301 ac_cv_path_FGREP="$ac_path_FGREP" 6302 ac_path_FGREP_max=$ac_count 6303 fi 6304 # 10*(2^10) chars as input seems more than enough 6305 test $ac_count -gt 10 && break 6306 done 6307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6308esac 6309 6310 $ac_path_FGREP_found && break 3 6311 done 6312 done 6313 done 6314IFS=$as_save_IFS 6315 if test -z "$ac_cv_path_FGREP"; then 6316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6317 fi 6318else 6319 ac_cv_path_FGREP=$FGREP 6320fi 6321 6322 fi 6323fi 6324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6325printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6326 FGREP="$ac_cv_path_FGREP" 6327 6328 6329test -z "$GREP" && GREP=grep 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349# Check whether --with-gnu-ld was given. 6350if test ${with_gnu_ld+y} 6351then : 6352 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6353else $as_nop 6354 with_gnu_ld=no 6355fi 6356 6357ac_prog=ld 6358if test yes = "$GCC"; then 6359 # Check if gcc -print-prog-name=ld gives a path. 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6361printf %s "checking for ld used by $CC... " >&6; } 6362 case $host in 6363 *-*-mingw*) 6364 # gcc leaves a trailing carriage return, which upsets mingw 6365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6366 *) 6367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6368 esac 6369 case $ac_prog in 6370 # Accept absolute paths. 6371 [\\/]* | ?:[\\/]*) 6372 re_direlt='/[^/][^/]*/\.\./' 6373 # Canonicalize the pathname of ld 6374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6377 done 6378 test -z "$LD" && LD=$ac_prog 6379 ;; 6380 "") 6381 # If it fails, then pretend we aren't using GCC. 6382 ac_prog=ld 6383 ;; 6384 *) 6385 # If it is relative, then search for the first ld in PATH. 6386 with_gnu_ld=unknown 6387 ;; 6388 esac 6389elif test yes = "$with_gnu_ld"; then 6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6391printf %s "checking for GNU ld... " >&6; } 6392else 6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6394printf %s "checking for non-GNU ld... " >&6; } 6395fi 6396if test ${lt_cv_path_LD+y} 6397then : 6398 printf %s "(cached) " >&6 6399else $as_nop 6400 if test -z "$LD"; then 6401 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6402 for ac_dir in $PATH; do 6403 IFS=$lt_save_ifs 6404 test -z "$ac_dir" && ac_dir=. 6405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6406 lt_cv_path_LD=$ac_dir/$ac_prog 6407 # Check to see if the program is GNU ld. I'd rather use --version, 6408 # but apparently some variants of GNU ld only accept -v. 6409 # Break only if it was the GNU/non-GNU ld that we prefer. 6410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6411 *GNU* | *'with BFD'*) 6412 test no != "$with_gnu_ld" && break 6413 ;; 6414 *) 6415 test yes != "$with_gnu_ld" && break 6416 ;; 6417 esac 6418 fi 6419 done 6420 IFS=$lt_save_ifs 6421else 6422 lt_cv_path_LD=$LD # Let the user override the test with a path. 6423fi 6424fi 6425 6426LD=$lt_cv_path_LD 6427if test -n "$LD"; then 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6429printf "%s\n" "$LD" >&6; } 6430else 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6432printf "%s\n" "no" >&6; } 6433fi 6434test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6436printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6437if test ${lt_cv_prog_gnu_ld+y} 6438then : 6439 printf %s "(cached) " >&6 6440else $as_nop 6441 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6442case `$LD -v 2>&1 </dev/null` in 6443*GNU* | *'with BFD'*) 6444 lt_cv_prog_gnu_ld=yes 6445 ;; 6446*) 6447 lt_cv_prog_gnu_ld=no 6448 ;; 6449esac 6450fi 6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6452printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6453with_gnu_ld=$lt_cv_prog_gnu_ld 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6464printf %s "checking whether ln -s works... " >&6; } 6465LN_S=$as_ln_s 6466if test "$LN_S" = "ln -s"; then 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6468printf "%s\n" "yes" >&6; } 6469else 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6471printf "%s\n" "no, using $LN_S" >&6; } 6472fi 6473 6474# find the maximum length of command line arguments 6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6476printf %s "checking the maximum length of command line arguments... " >&6; } 6477if test ${lt_cv_sys_max_cmd_len+y} 6478then : 6479 printf %s "(cached) " >&6 6480else $as_nop 6481 i=0 6482 teststring=ABCD 6483 6484 case $build_os in 6485 msdosdjgpp*) 6486 # On DJGPP, this test can blow up pretty badly due to problems in libc 6487 # (any single argument exceeding 2000 bytes causes a buffer overrun 6488 # during glob expansion). Even if it were fixed, the result of this 6489 # check would be larger than it should be. 6490 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6491 ;; 6492 6493 gnu*) 6494 # Under GNU Hurd, this test is not required because there is 6495 # no limit to the length of command line arguments. 6496 # Libtool will interpret -1 as no limit whatsoever 6497 lt_cv_sys_max_cmd_len=-1; 6498 ;; 6499 6500 cygwin* | mingw* | cegcc*) 6501 # On Win9x/ME, this test blows up -- it succeeds, but takes 6502 # about 5 minutes as the teststring grows exponentially. 6503 # Worse, since 9x/ME are not pre-emptively multitasking, 6504 # you end up with a "frozen" computer, even though with patience 6505 # the test eventually succeeds (with a max line length of 256k). 6506 # Instead, let's just punt: use the minimum linelength reported by 6507 # all of the supported platforms: 8192 (on NT/2K/XP). 6508 lt_cv_sys_max_cmd_len=8192; 6509 ;; 6510 6511 mint*) 6512 # On MiNT this can take a long time and run out of memory. 6513 lt_cv_sys_max_cmd_len=8192; 6514 ;; 6515 6516 amigaos*) 6517 # On AmigaOS with pdksh, this test takes hours, literally. 6518 # So we just punt and use a minimum line length of 8192. 6519 lt_cv_sys_max_cmd_len=8192; 6520 ;; 6521 6522 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6523 # This has been around since 386BSD, at least. Likely further. 6524 if test -x /sbin/sysctl; then 6525 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6526 elif test -x /usr/sbin/sysctl; then 6527 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6528 else 6529 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6530 fi 6531 # And add a safety zone 6532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6534 ;; 6535 6536 interix*) 6537 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6538 lt_cv_sys_max_cmd_len=196608 6539 ;; 6540 6541 os2*) 6542 # The test takes a long time on OS/2. 6543 lt_cv_sys_max_cmd_len=8192 6544 ;; 6545 6546 osf*) 6547 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6548 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6549 # nice to cause kernel panics so lets avoid the loop below. 6550 # First set a reasonable default. 6551 lt_cv_sys_max_cmd_len=16384 6552 # 6553 if test -x /sbin/sysconfig; then 6554 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6555 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6556 esac 6557 fi 6558 ;; 6559 sco3.2v5*) 6560 lt_cv_sys_max_cmd_len=102400 6561 ;; 6562 sysv5* | sco5v6* | sysv4.2uw2*) 6563 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6564 if test -n "$kargmax"; then 6565 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6566 else 6567 lt_cv_sys_max_cmd_len=32768 6568 fi 6569 ;; 6570 *) 6571 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6572 if test -n "$lt_cv_sys_max_cmd_len" && \ 6573 test undefined != "$lt_cv_sys_max_cmd_len"; then 6574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6576 else 6577 # Make teststring a little bigger before we do anything with it. 6578 # a 1K string should be a reasonable start. 6579 for i in 1 2 3 4 5 6 7 8; do 6580 teststring=$teststring$teststring 6581 done 6582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6583 # If test is not a shell built-in, we'll probably end up computing a 6584 # maximum length that is only half of the actual maximum length, but 6585 # we can't tell. 6586 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6587 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6588 test 17 != "$i" # 1/2 MB should be enough 6589 do 6590 i=`expr $i + 1` 6591 teststring=$teststring$teststring 6592 done 6593 # Only check the string length outside the loop. 6594 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6595 teststring= 6596 # Add a significant safety factor because C++ compilers can tack on 6597 # massive amounts of additional arguments before passing them to the 6598 # linker. It appears as though 1/2 is a usable value. 6599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6600 fi 6601 ;; 6602 esac 6603 6604fi 6605 6606if test -n "$lt_cv_sys_max_cmd_len"; then 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6608printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6609else 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6611printf "%s\n" "none" >&6; } 6612fi 6613max_cmd_len=$lt_cv_sys_max_cmd_len 6614 6615 6616 6617 6618 6619 6620: ${CP="cp -f"} 6621: ${MV="mv -f"} 6622: ${RM="rm -f"} 6623 6624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6625 lt_unset=unset 6626else 6627 lt_unset=false 6628fi 6629 6630 6631 6632 6633 6634# test EBCDIC or ASCII 6635case `echo X|tr X '\101'` in 6636 A) # ASCII based system 6637 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6638 lt_SP2NL='tr \040 \012' 6639 lt_NL2SP='tr \015\012 \040\040' 6640 ;; 6641 *) # EBCDIC based system 6642 lt_SP2NL='tr \100 \n' 6643 lt_NL2SP='tr \r\n \100\100' 6644 ;; 6645esac 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6656printf %s "checking how to convert $build file names to $host format... " >&6; } 6657if test ${lt_cv_to_host_file_cmd+y} 6658then : 6659 printf %s "(cached) " >&6 6660else $as_nop 6661 case $host in 6662 *-*-mingw* ) 6663 case $build in 6664 *-*-mingw* ) # actually msys 6665 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6666 ;; 6667 *-*-cygwin* ) 6668 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6669 ;; 6670 * ) # otherwise, assume *nix 6671 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6672 ;; 6673 esac 6674 ;; 6675 *-*-cygwin* ) 6676 case $build in 6677 *-*-mingw* ) # actually msys 6678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6679 ;; 6680 *-*-cygwin* ) 6681 lt_cv_to_host_file_cmd=func_convert_file_noop 6682 ;; 6683 * ) # otherwise, assume *nix 6684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6685 ;; 6686 esac 6687 ;; 6688 * ) # unhandled hosts (and "normal" native builds) 6689 lt_cv_to_host_file_cmd=func_convert_file_noop 6690 ;; 6691esac 6692 6693fi 6694 6695to_host_file_cmd=$lt_cv_to_host_file_cmd 6696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6697printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6698 6699 6700 6701 6702 6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6704printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6705if test ${lt_cv_to_tool_file_cmd+y} 6706then : 6707 printf %s "(cached) " >&6 6708else $as_nop 6709 #assume ordinary cross tools, or native build. 6710lt_cv_to_tool_file_cmd=func_convert_file_noop 6711case $host in 6712 *-*-mingw* ) 6713 case $build in 6714 *-*-mingw* ) # actually msys 6715 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6716 ;; 6717 esac 6718 ;; 6719esac 6720 6721fi 6722 6723to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6725printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6726 6727 6728 6729 6730 6731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6732printf %s "checking for $LD option to reload object files... " >&6; } 6733if test ${lt_cv_ld_reload_flag+y} 6734then : 6735 printf %s "(cached) " >&6 6736else $as_nop 6737 lt_cv_ld_reload_flag='-r' 6738fi 6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6740printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6741reload_flag=$lt_cv_ld_reload_flag 6742case $reload_flag in 6743"" | " "*) ;; 6744*) reload_flag=" $reload_flag" ;; 6745esac 6746reload_cmds='$LD$reload_flag -o $output$reload_objs' 6747case $host_os in 6748 cygwin* | mingw* | pw32* | cegcc*) 6749 if test yes != "$GCC"; then 6750 reload_cmds=false 6751 fi 6752 ;; 6753 darwin*) 6754 if test yes = "$GCC"; then 6755 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6756 else 6757 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6758 fi 6759 ;; 6760esac 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770if test -n "$ac_tool_prefix"; then 6771 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6772set dummy ${ac_tool_prefix}objdump; ac_word=$2 6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6774printf %s "checking for $ac_word... " >&6; } 6775if test ${ac_cv_prog_OBJDUMP+y} 6776then : 6777 printf %s "(cached) " >&6 6778else $as_nop 6779 if test -n "$OBJDUMP"; then 6780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6781else 6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783for as_dir in $PATH 6784do 6785 IFS=$as_save_IFS 6786 case $as_dir in #((( 6787 '') as_dir=./ ;; 6788 */) ;; 6789 *) as_dir=$as_dir/ ;; 6790 esac 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797done 6798 done 6799IFS=$as_save_IFS 6800 6801fi 6802fi 6803OBJDUMP=$ac_cv_prog_OBJDUMP 6804if test -n "$OBJDUMP"; then 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6806printf "%s\n" "$OBJDUMP" >&6; } 6807else 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809printf "%s\n" "no" >&6; } 6810fi 6811 6812 6813fi 6814if test -z "$ac_cv_prog_OBJDUMP"; then 6815 ac_ct_OBJDUMP=$OBJDUMP 6816 # Extract the first word of "objdump", so it can be a program name with args. 6817set dummy objdump; ac_word=$2 6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6819printf %s "checking for $ac_word... " >&6; } 6820if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6821then : 6822 printf %s "(cached) " >&6 6823else $as_nop 6824 if test -n "$ac_ct_OBJDUMP"; then 6825 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6826else 6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828for as_dir in $PATH 6829do 6830 IFS=$as_save_IFS 6831 case $as_dir in #((( 6832 '') as_dir=./ ;; 6833 */) ;; 6834 *) as_dir=$as_dir/ ;; 6835 esac 6836 for ac_exec_ext in '' $ac_executable_extensions; do 6837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6838 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6840 break 2 6841 fi 6842done 6843 done 6844IFS=$as_save_IFS 6845 6846fi 6847fi 6848ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6849if test -n "$ac_ct_OBJDUMP"; then 6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6851printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6852else 6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6854printf "%s\n" "no" >&6; } 6855fi 6856 6857 if test "x$ac_ct_OBJDUMP" = x; then 6858 OBJDUMP="false" 6859 else 6860 case $cross_compiling:$ac_tool_warned in 6861yes:) 6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6863printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6864ac_tool_warned=yes ;; 6865esac 6866 OBJDUMP=$ac_ct_OBJDUMP 6867 fi 6868else 6869 OBJDUMP="$ac_cv_prog_OBJDUMP" 6870fi 6871 6872test -z "$OBJDUMP" && OBJDUMP=objdump 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6883printf %s "checking how to recognize dependent libraries... " >&6; } 6884if test ${lt_cv_deplibs_check_method+y} 6885then : 6886 printf %s "(cached) " >&6 6887else $as_nop 6888 lt_cv_file_magic_cmd='$MAGIC_CMD' 6889lt_cv_file_magic_test_file= 6890lt_cv_deplibs_check_method='unknown' 6891# Need to set the preceding variable on all platforms that support 6892# interlibrary dependencies. 6893# 'none' -- dependencies not supported. 6894# 'unknown' -- same as none, but documents that we really don't know. 6895# 'pass_all' -- all dependencies passed with no checks. 6896# 'test_compile' -- check by making test program. 6897# 'file_magic [[regex]]' -- check by looking for files in library path 6898# that responds to the $file_magic_cmd with a given extended regex. 6899# If you have 'file' or equivalent on your system and you're not sure 6900# whether 'pass_all' will *always* work, you probably want this one. 6901 6902case $host_os in 6903aix[4-9]*) 6904 lt_cv_deplibs_check_method=pass_all 6905 ;; 6906 6907beos*) 6908 lt_cv_deplibs_check_method=pass_all 6909 ;; 6910 6911bsdi[45]*) 6912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6913 lt_cv_file_magic_cmd='/usr/bin/file -L' 6914 lt_cv_file_magic_test_file=/shlib/libc.so 6915 ;; 6916 6917cygwin*) 6918 # func_win32_libid is a shell function defined in ltmain.sh 6919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6920 lt_cv_file_magic_cmd='func_win32_libid' 6921 ;; 6922 6923mingw* | pw32*) 6924 # Base MSYS/MinGW do not provide the 'file' command needed by 6925 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6926 # unless we find 'file', for example because we are cross-compiling. 6927 if ( file / ) >/dev/null 2>&1; then 6928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6929 lt_cv_file_magic_cmd='func_win32_libid' 6930 else 6931 # Keep this pattern in sync with the one in func_win32_libid. 6932 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6933 lt_cv_file_magic_cmd='$OBJDUMP -f' 6934 fi 6935 ;; 6936 6937cegcc*) 6938 # use the weaker test based on 'objdump'. See mingw*. 6939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6940 lt_cv_file_magic_cmd='$OBJDUMP -f' 6941 ;; 6942 6943darwin* | rhapsody*) 6944 lt_cv_deplibs_check_method=pass_all 6945 ;; 6946 6947freebsd* | dragonfly*) 6948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6949 case $host_cpu in 6950 i*86 ) 6951 # Not sure whether the presence of OpenBSD here was a mistake. 6952 # Let's accept both of them until this is cleared up. 6953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6954 lt_cv_file_magic_cmd=/usr/bin/file 6955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6956 ;; 6957 esac 6958 else 6959 lt_cv_deplibs_check_method=pass_all 6960 fi 6961 ;; 6962 6963haiku*) 6964 lt_cv_deplibs_check_method=pass_all 6965 ;; 6966 6967hpux10.20* | hpux11*) 6968 lt_cv_file_magic_cmd=/usr/bin/file 6969 case $host_cpu in 6970 ia64*) 6971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6973 ;; 6974 hppa*64*) 6975 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]' 6976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6977 ;; 6978 *) 6979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6980 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6981 ;; 6982 esac 6983 ;; 6984 6985interix[3-9]*) 6986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6988 ;; 6989 6990irix5* | irix6* | nonstopux*) 6991 case $LD in 6992 *-32|*"-32 ") libmagic=32-bit;; 6993 *-n32|*"-n32 ") libmagic=N32;; 6994 *-64|*"-64 ") libmagic=64-bit;; 6995 *) libmagic=never-match;; 6996 esac 6997 lt_cv_deplibs_check_method=pass_all 6998 ;; 6999 7000# This must be glibc/ELF. 7001linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7002 lt_cv_deplibs_check_method=pass_all 7003 ;; 7004 7005netbsd*) 7006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7008 else 7009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7010 fi 7011 ;; 7012 7013newos6*) 7014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7015 lt_cv_file_magic_cmd=/usr/bin/file 7016 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7017 ;; 7018 7019*nto* | *qnx*) 7020 lt_cv_deplibs_check_method=pass_all 7021 ;; 7022 7023openbsd* | bitrig*) 7024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7026 else 7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7028 fi 7029 ;; 7030 7031osf3* | osf4* | osf5*) 7032 lt_cv_deplibs_check_method=pass_all 7033 ;; 7034 7035rdos*) 7036 lt_cv_deplibs_check_method=pass_all 7037 ;; 7038 7039solaris*) 7040 lt_cv_deplibs_check_method=pass_all 7041 ;; 7042 7043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7044 lt_cv_deplibs_check_method=pass_all 7045 ;; 7046 7047sysv4 | sysv4.3*) 7048 case $host_vendor in 7049 motorola) 7050 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]' 7051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7052 ;; 7053 ncr) 7054 lt_cv_deplibs_check_method=pass_all 7055 ;; 7056 sequent) 7057 lt_cv_file_magic_cmd='/bin/file' 7058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7059 ;; 7060 sni) 7061 lt_cv_file_magic_cmd='/bin/file' 7062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7063 lt_cv_file_magic_test_file=/lib/libc.so 7064 ;; 7065 siemens) 7066 lt_cv_deplibs_check_method=pass_all 7067 ;; 7068 pc) 7069 lt_cv_deplibs_check_method=pass_all 7070 ;; 7071 esac 7072 ;; 7073 7074tpf*) 7075 lt_cv_deplibs_check_method=pass_all 7076 ;; 7077os2*) 7078 lt_cv_deplibs_check_method=pass_all 7079 ;; 7080esac 7081 7082fi 7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7084printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7085 7086file_magic_glob= 7087want_nocaseglob=no 7088if test "$build" = "$host"; then 7089 case $host_os in 7090 mingw* | pw32*) 7091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7092 want_nocaseglob=yes 7093 else 7094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7095 fi 7096 ;; 7097 esac 7098fi 7099 7100file_magic_cmd=$lt_cv_file_magic_cmd 7101deplibs_check_method=$lt_cv_deplibs_check_method 7102test -z "$deplibs_check_method" && deplibs_check_method=unknown 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125if test -n "$ac_tool_prefix"; then 7126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7127set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129printf %s "checking for $ac_word... " >&6; } 7130if test ${ac_cv_prog_DLLTOOL+y} 7131then : 7132 printf %s "(cached) " >&6 7133else $as_nop 7134 if test -n "$DLLTOOL"; then 7135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 case $as_dir in #((( 7142 '') as_dir=./ ;; 7143 */) ;; 7144 *) as_dir=$as_dir/ ;; 7145 esac 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7150 break 2 7151 fi 7152done 7153 done 7154IFS=$as_save_IFS 7155 7156fi 7157fi 7158DLLTOOL=$ac_cv_prog_DLLTOOL 7159if test -n "$DLLTOOL"; then 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7161printf "%s\n" "$DLLTOOL" >&6; } 7162else 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164printf "%s\n" "no" >&6; } 7165fi 7166 7167 7168fi 7169if test -z "$ac_cv_prog_DLLTOOL"; then 7170 ac_ct_DLLTOOL=$DLLTOOL 7171 # Extract the first word of "dlltool", so it can be a program name with args. 7172set dummy dlltool; ac_word=$2 7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174printf %s "checking for $ac_word... " >&6; } 7175if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7176then : 7177 printf %s "(cached) " >&6 7178else $as_nop 7179 if test -n "$ac_ct_DLLTOOL"; then 7180 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7181else 7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183for as_dir in $PATH 7184do 7185 IFS=$as_save_IFS 7186 case $as_dir in #((( 7187 '') as_dir=./ ;; 7188 */) ;; 7189 *) as_dir=$as_dir/ ;; 7190 esac 7191 for ac_exec_ext in '' $ac_executable_extensions; do 7192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7193 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7195 break 2 7196 fi 7197done 7198 done 7199IFS=$as_save_IFS 7200 7201fi 7202fi 7203ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7204if test -n "$ac_ct_DLLTOOL"; then 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7206printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7207else 7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7209printf "%s\n" "no" >&6; } 7210fi 7211 7212 if test "x$ac_ct_DLLTOOL" = x; then 7213 DLLTOOL="false" 7214 else 7215 case $cross_compiling:$ac_tool_warned in 7216yes:) 7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7219ac_tool_warned=yes ;; 7220esac 7221 DLLTOOL=$ac_ct_DLLTOOL 7222 fi 7223else 7224 DLLTOOL="$ac_cv_prog_DLLTOOL" 7225fi 7226 7227test -z "$DLLTOOL" && DLLTOOL=dlltool 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7239printf %s "checking how to associate runtime and link libraries... " >&6; } 7240if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7241then : 7242 printf %s "(cached) " >&6 7243else $as_nop 7244 lt_cv_sharedlib_from_linklib_cmd='unknown' 7245 7246case $host_os in 7247cygwin* | mingw* | pw32* | cegcc*) 7248 # two different shell functions defined in ltmain.sh; 7249 # decide which one to use based on capabilities of $DLLTOOL 7250 case `$DLLTOOL --help 2>&1` in 7251 *--identify-strict*) 7252 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7253 ;; 7254 *) 7255 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7256 ;; 7257 esac 7258 ;; 7259*) 7260 # fallback: assume linklib IS sharedlib 7261 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7262 ;; 7263esac 7264 7265fi 7266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7267printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7268sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7269test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7270 7271 7272 7273 7274 7275 7276 7277 7278if test -n "$ac_tool_prefix"; then 7279 for ac_prog in ar 7280 do 7281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7282set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7284printf %s "checking for $ac_word... " >&6; } 7285if test ${ac_cv_prog_AR+y} 7286then : 7287 printf %s "(cached) " >&6 7288else $as_nop 7289 if test -n "$AR"; then 7290 ac_cv_prog_AR="$AR" # Let the user override the test. 7291else 7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7293for as_dir in $PATH 7294do 7295 IFS=$as_save_IFS 7296 case $as_dir in #((( 7297 '') as_dir=./ ;; 7298 */) ;; 7299 *) as_dir=$as_dir/ ;; 7300 esac 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7303 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7305 break 2 7306 fi 7307done 7308 done 7309IFS=$as_save_IFS 7310 7311fi 7312fi 7313AR=$ac_cv_prog_AR 7314if test -n "$AR"; then 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7316printf "%s\n" "$AR" >&6; } 7317else 7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7319printf "%s\n" "no" >&6; } 7320fi 7321 7322 7323 test -n "$AR" && break 7324 done 7325fi 7326if test -z "$AR"; then 7327 ac_ct_AR=$AR 7328 for ac_prog in ar 7329do 7330 # Extract the first word of "$ac_prog", so it can be a program name with args. 7331set dummy $ac_prog; ac_word=$2 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7333printf %s "checking for $ac_word... " >&6; } 7334if test ${ac_cv_prog_ac_ct_AR+y} 7335then : 7336 printf %s "(cached) " >&6 7337else $as_nop 7338 if test -n "$ac_ct_AR"; then 7339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7340else 7341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7342for as_dir in $PATH 7343do 7344 IFS=$as_save_IFS 7345 case $as_dir in #((( 7346 '') as_dir=./ ;; 7347 */) ;; 7348 *) as_dir=$as_dir/ ;; 7349 esac 7350 for ac_exec_ext in '' $ac_executable_extensions; do 7351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7352 ac_cv_prog_ac_ct_AR="$ac_prog" 7353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7354 break 2 7355 fi 7356done 7357 done 7358IFS=$as_save_IFS 7359 7360fi 7361fi 7362ac_ct_AR=$ac_cv_prog_ac_ct_AR 7363if test -n "$ac_ct_AR"; then 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7365printf "%s\n" "$ac_ct_AR" >&6; } 7366else 7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7368printf "%s\n" "no" >&6; } 7369fi 7370 7371 7372 test -n "$ac_ct_AR" && break 7373done 7374 7375 if test "x$ac_ct_AR" = x; then 7376 AR="false" 7377 else 7378 case $cross_compiling:$ac_tool_warned in 7379yes:) 7380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7381printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7382ac_tool_warned=yes ;; 7383esac 7384 AR=$ac_ct_AR 7385 fi 7386fi 7387 7388: ${AR=ar} 7389 7390 7391 7392 7393 7394 7395# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7396# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7397# higher priority because thats what people were doing historically (setting 7398# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7399# variable obsoleted/removed. 7400 7401test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7402lt_ar_flags=$AR_FLAGS 7403 7404 7405 7406 7407 7408 7409# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7410# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7411 7412 7413 7414 7415 7416 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7418printf %s "checking for archiver @FILE support... " >&6; } 7419if test ${lt_cv_ar_at_file+y} 7420then : 7421 printf %s "(cached) " >&6 7422else $as_nop 7423 lt_cv_ar_at_file=no 7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7425/* end confdefs.h. */ 7426 7427int 7428main (void) 7429{ 7430 7431 ; 7432 return 0; 7433} 7434_ACEOF 7435if ac_fn_c_try_compile "$LINENO" 7436then : 7437 echo conftest.$ac_objext > conftest.lst 7438 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7440 (eval $lt_ar_try) 2>&5 7441 ac_status=$? 7442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7443 test $ac_status = 0; } 7444 if test 0 -eq "$ac_status"; then 7445 # Ensure the archiver fails upon bogus file names. 7446 rm -f conftest.$ac_objext libconftest.a 7447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7448 (eval $lt_ar_try) 2>&5 7449 ac_status=$? 7450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7451 test $ac_status = 0; } 7452 if test 0 -ne "$ac_status"; then 7453 lt_cv_ar_at_file=@ 7454 fi 7455 fi 7456 rm -f conftest.* libconftest.a 7457 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7460 7461fi 7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7463printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7464 7465if test no = "$lt_cv_ar_at_file"; then 7466 archiver_list_spec= 7467else 7468 archiver_list_spec=$lt_cv_ar_at_file 7469fi 7470 7471 7472 7473 7474 7475 7476 7477if test -n "$ac_tool_prefix"; then 7478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7479set dummy ${ac_tool_prefix}strip; ac_word=$2 7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481printf %s "checking for $ac_word... " >&6; } 7482if test ${ac_cv_prog_STRIP+y} 7483then : 7484 printf %s "(cached) " >&6 7485else $as_nop 7486 if test -n "$STRIP"; then 7487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 case $as_dir in #((( 7494 '') as_dir=./ ;; 7495 */) ;; 7496 *) as_dir=$as_dir/ ;; 7497 esac 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505 done 7506IFS=$as_save_IFS 7507 7508fi 7509fi 7510STRIP=$ac_cv_prog_STRIP 7511if test -n "$STRIP"; then 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7513printf "%s\n" "$STRIP" >&6; } 7514else 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7516printf "%s\n" "no" >&6; } 7517fi 7518 7519 7520fi 7521if test -z "$ac_cv_prog_STRIP"; then 7522 ac_ct_STRIP=$STRIP 7523 # Extract the first word of "strip", so it can be a program name with args. 7524set dummy strip; ac_word=$2 7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7526printf %s "checking for $ac_word... " >&6; } 7527if test ${ac_cv_prog_ac_ct_STRIP+y} 7528then : 7529 printf %s "(cached) " >&6 7530else $as_nop 7531 if test -n "$ac_ct_STRIP"; then 7532 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7533else 7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7535for as_dir in $PATH 7536do 7537 IFS=$as_save_IFS 7538 case $as_dir in #((( 7539 '') as_dir=./ ;; 7540 */) ;; 7541 *) as_dir=$as_dir/ ;; 7542 esac 7543 for ac_exec_ext in '' $ac_executable_extensions; do 7544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7545 ac_cv_prog_ac_ct_STRIP="strip" 7546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7547 break 2 7548 fi 7549done 7550 done 7551IFS=$as_save_IFS 7552 7553fi 7554fi 7555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7556if test -n "$ac_ct_STRIP"; then 7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7558printf "%s\n" "$ac_ct_STRIP" >&6; } 7559else 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7561printf "%s\n" "no" >&6; } 7562fi 7563 7564 if test "x$ac_ct_STRIP" = x; then 7565 STRIP=":" 7566 else 7567 case $cross_compiling:$ac_tool_warned in 7568yes:) 7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7571ac_tool_warned=yes ;; 7572esac 7573 STRIP=$ac_ct_STRIP 7574 fi 7575else 7576 STRIP="$ac_cv_prog_STRIP" 7577fi 7578 7579test -z "$STRIP" && STRIP=: 7580 7581 7582 7583 7584 7585 7586if test -n "$ac_tool_prefix"; then 7587 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7588set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590printf %s "checking for $ac_word... " >&6; } 7591if test ${ac_cv_prog_RANLIB+y} 7592then : 7593 printf %s "(cached) " >&6 7594else $as_nop 7595 if test -n "$RANLIB"; then 7596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7597else 7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599for as_dir in $PATH 7600do 7601 IFS=$as_save_IFS 7602 case $as_dir in #((( 7603 '') as_dir=./ ;; 7604 */) ;; 7605 *) as_dir=$as_dir/ ;; 7606 esac 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619RANLIB=$ac_cv_prog_RANLIB 7620if test -n "$RANLIB"; then 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7622printf "%s\n" "$RANLIB" >&6; } 7623else 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625printf "%s\n" "no" >&6; } 7626fi 7627 7628 7629fi 7630if test -z "$ac_cv_prog_RANLIB"; then 7631 ac_ct_RANLIB=$RANLIB 7632 # Extract the first word of "ranlib", so it can be a program name with args. 7633set dummy ranlib; ac_word=$2 7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635printf %s "checking for $ac_word... " >&6; } 7636if test ${ac_cv_prog_ac_ct_RANLIB+y} 7637then : 7638 printf %s "(cached) " >&6 7639else $as_nop 7640 if test -n "$ac_ct_RANLIB"; then 7641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7642else 7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644for as_dir in $PATH 7645do 7646 IFS=$as_save_IFS 7647 case $as_dir in #((( 7648 '') as_dir=./ ;; 7649 */) ;; 7650 *) as_dir=$as_dir/ ;; 7651 esac 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_ac_ct_RANLIB="ranlib" 7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7665if test -n "$ac_ct_RANLIB"; then 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7667printf "%s\n" "$ac_ct_RANLIB" >&6; } 7668else 7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670printf "%s\n" "no" >&6; } 7671fi 7672 7673 if test "x$ac_ct_RANLIB" = x; then 7674 RANLIB=":" 7675 else 7676 case $cross_compiling:$ac_tool_warned in 7677yes:) 7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7680ac_tool_warned=yes ;; 7681esac 7682 RANLIB=$ac_ct_RANLIB 7683 fi 7684else 7685 RANLIB="$ac_cv_prog_RANLIB" 7686fi 7687 7688test -z "$RANLIB" && RANLIB=: 7689 7690 7691 7692 7693 7694 7695# Determine commands to create old-style static archives. 7696old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7697old_postinstall_cmds='chmod 644 $oldlib' 7698old_postuninstall_cmds= 7699 7700if test -n "$RANLIB"; then 7701 case $host_os in 7702 bitrig* | openbsd*) 7703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7704 ;; 7705 *) 7706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7707 ;; 7708 esac 7709 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7710fi 7711 7712case $host_os in 7713 darwin*) 7714 lock_old_archive_extraction=yes ;; 7715 *) 7716 lock_old_archive_extraction=no ;; 7717esac 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757# If no C compiler was specified, use CC. 7758LTCC=${LTCC-"$CC"} 7759 7760# If no C compiler flags were specified, use CFLAGS. 7761LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7762 7763# Allow CC to be a program name with arguments. 7764compiler=$CC 7765 7766 7767# Check for command to grab the raw symbol name followed by C symbol from nm. 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7769printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7770if test ${lt_cv_sys_global_symbol_pipe+y} 7771then : 7772 printf %s "(cached) " >&6 7773else $as_nop 7774 7775# These are sane defaults that work on at least a few old systems. 7776# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7777 7778# Character class describing NM global symbol codes. 7779symcode='[BCDEGRST]' 7780 7781# Regexp to match symbols that can be accessed directly from C. 7782sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7783 7784# Define system-specific variables. 7785case $host_os in 7786aix*) 7787 symcode='[BCDT]' 7788 ;; 7789cygwin* | mingw* | pw32* | cegcc*) 7790 symcode='[ABCDGISTW]' 7791 ;; 7792hpux*) 7793 if test ia64 = "$host_cpu"; then 7794 symcode='[ABCDEGRST]' 7795 fi 7796 ;; 7797irix* | nonstopux*) 7798 symcode='[BCDEGRST]' 7799 ;; 7800osf*) 7801 symcode='[BCDEGQRST]' 7802 ;; 7803solaris*) 7804 symcode='[BDRT]' 7805 ;; 7806sco3.2v5*) 7807 symcode='[DT]' 7808 ;; 7809sysv4.2uw2*) 7810 symcode='[DT]' 7811 ;; 7812sysv5* | sco5v6* | unixware* | OpenUNIX*) 7813 symcode='[ABDT]' 7814 ;; 7815sysv4) 7816 symcode='[DFNSTU]' 7817 ;; 7818esac 7819 7820# If we're using GNU nm, then use its standard symbol codes. 7821case `$NM -V 2>&1` in 7822*GNU* | *'with BFD'*) 7823 symcode='[ABCDGIRSTW]' ;; 7824esac 7825 7826if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7827 # Gets list of data symbols to import. 7828 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7829 # Adjust the below global symbol transforms to fixup imported variables. 7830 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7831 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7832 lt_c_name_lib_hook="\ 7833 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7834 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7835else 7836 # Disable hooks by default. 7837 lt_cv_sys_global_symbol_to_import= 7838 lt_cdecl_hook= 7839 lt_c_name_hook= 7840 lt_c_name_lib_hook= 7841fi 7842 7843# Transform an extracted symbol line into a proper C declaration. 7844# Some systems (esp. on ia64) link data and code symbols differently, 7845# so use this general approach. 7846lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7847$lt_cdecl_hook\ 7848" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7849" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7850 7851# Transform an extracted symbol line into symbol name and symbol address 7852lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7853$lt_c_name_hook\ 7854" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7855" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7856 7857# Transform an extracted symbol line into symbol name with lib prefix and 7858# symbol address. 7859lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7860$lt_c_name_lib_hook\ 7861" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7862" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7863" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7864 7865# Handle CRLF in mingw tool chain 7866opt_cr= 7867case $build_os in 7868mingw*) 7869 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7870 ;; 7871esac 7872 7873# Try without a prefix underscore, then with it. 7874for ac_symprfx in "" "_"; do 7875 7876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7877 symxfrm="\\1 $ac_symprfx\\2 \\2" 7878 7879 # Write the raw and C identifiers. 7880 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7881 # Fake it for dumpbin and say T for any non-static function, 7882 # D for any global variable and I for any imported variable. 7883 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7884 # which start with @ or ?. 7885 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7886" {last_section=section; section=\$ 3};"\ 7887" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7888" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7889" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7890" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7891" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7892" \$ 0!~/External *\|/{next};"\ 7893" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7894" {if(hide[section]) next};"\ 7895" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7896" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7897" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7898" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7899" ' prfx=^$ac_symprfx" 7900 else 7901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7902 fi 7903 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7904 7905 # Check to see that the pipe works correctly. 7906 pipe_works=no 7907 7908 rm -f conftest* 7909 cat > conftest.$ac_ext <<_LT_EOF 7910#ifdef __cplusplus 7911extern "C" { 7912#endif 7913char nm_test_var; 7914void nm_test_func(void); 7915void nm_test_func(void){} 7916#ifdef __cplusplus 7917} 7918#endif 7919int main(){nm_test_var='a';nm_test_func();return(0);} 7920_LT_EOF 7921 7922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7923 (eval $ac_compile) 2>&5 7924 ac_status=$? 7925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7926 test $ac_status = 0; }; then 7927 # Now try to grab the symbols. 7928 nlist=conftest.nm 7929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7930 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7931 ac_status=$? 7932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7933 test $ac_status = 0; } && test -s "$nlist"; then 7934 # Try sorting and uniquifying the output. 7935 if sort "$nlist" | uniq > "$nlist"T; then 7936 mv -f "$nlist"T "$nlist" 7937 else 7938 rm -f "$nlist"T 7939 fi 7940 7941 # Make sure that we snagged all the symbols we need. 7942 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7943 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7944 cat <<_LT_EOF > conftest.$ac_ext 7945/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7946#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7947/* DATA imports from DLLs on WIN32 can't be const, because runtime 7948 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7949# define LT_DLSYM_CONST 7950#elif defined __osf__ 7951/* This system does not cope well with relocations in const data. */ 7952# define LT_DLSYM_CONST 7953#else 7954# define LT_DLSYM_CONST const 7955#endif 7956 7957#ifdef __cplusplus 7958extern "C" { 7959#endif 7960 7961_LT_EOF 7962 # Now generate the symbol file. 7963 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7964 7965 cat <<_LT_EOF >> conftest.$ac_ext 7966 7967/* The mapping between symbol names and symbols. */ 7968LT_DLSYM_CONST struct { 7969 const char *name; 7970 void *address; 7971} 7972lt__PROGRAM__LTX_preloaded_symbols[] = 7973{ 7974 { "@PROGRAM@", (void *) 0 }, 7975_LT_EOF 7976 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7977 cat <<\_LT_EOF >> conftest.$ac_ext 7978 {0, (void *) 0} 7979}; 7980 7981/* This works around a problem in FreeBSD linker */ 7982#ifdef FREEBSD_WORKAROUND 7983static const void *lt_preloaded_setup() { 7984 return lt__PROGRAM__LTX_preloaded_symbols; 7985} 7986#endif 7987 7988#ifdef __cplusplus 7989} 7990#endif 7991_LT_EOF 7992 # Now try linking the two files. 7993 mv conftest.$ac_objext conftstm.$ac_objext 7994 lt_globsym_save_LIBS=$LIBS 7995 lt_globsym_save_CFLAGS=$CFLAGS 7996 LIBS=conftstm.$ac_objext 7997 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7999 (eval $ac_link) 2>&5 8000 ac_status=$? 8001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8002 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8003 pipe_works=yes 8004 fi 8005 LIBS=$lt_globsym_save_LIBS 8006 CFLAGS=$lt_globsym_save_CFLAGS 8007 else 8008 echo "cannot find nm_test_func in $nlist" >&5 8009 fi 8010 else 8011 echo "cannot find nm_test_var in $nlist" >&5 8012 fi 8013 else 8014 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8015 fi 8016 else 8017 echo "$progname: failed program was:" >&5 8018 cat conftest.$ac_ext >&5 8019 fi 8020 rm -rf conftest* conftst* 8021 8022 # Do not use the global_symbol_pipe unless it works. 8023 if test yes = "$pipe_works"; then 8024 break 8025 else 8026 lt_cv_sys_global_symbol_pipe= 8027 fi 8028done 8029 8030fi 8031 8032if test -z "$lt_cv_sys_global_symbol_pipe"; then 8033 lt_cv_sys_global_symbol_to_cdecl= 8034fi 8035if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8037printf "%s\n" "failed" >&6; } 8038else 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8040printf "%s\n" "ok" >&6; } 8041fi 8042 8043# Response file support. 8044if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8045 nm_file_list_spec='@' 8046elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8047 nm_file_list_spec='@' 8048fi 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8087printf %s "checking for sysroot... " >&6; } 8088 8089# Check whether --with-sysroot was given. 8090if test ${with_sysroot+y} 8091then : 8092 withval=$with_sysroot; 8093else $as_nop 8094 with_sysroot=no 8095fi 8096 8097 8098lt_sysroot= 8099case $with_sysroot in #( 8100 yes) 8101 if test yes = "$GCC"; then 8102 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8103 fi 8104 ;; #( 8105 /*) 8106 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8107 ;; #( 8108 no|'') 8109 ;; #( 8110 *) 8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8112printf "%s\n" "$with_sysroot" >&6; } 8113 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8114 ;; 8115esac 8116 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8118printf "%s\n" "${lt_sysroot:-no}" >&6; } 8119 8120 8121 8122 8123 8124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8125printf %s "checking for a working dd... " >&6; } 8126if test ${ac_cv_path_lt_DD+y} 8127then : 8128 printf %s "(cached) " >&6 8129else $as_nop 8130 printf 0123456789abcdef0123456789abcdef >conftest.i 8131cat conftest.i conftest.i >conftest2.i 8132: ${lt_DD:=$DD} 8133if test -z "$lt_DD"; then 8134 ac_path_lt_DD_found=false 8135 # Loop through the user's path and test for each of PROGNAME-LIST 8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8137for as_dir in $PATH 8138do 8139 IFS=$as_save_IFS 8140 case $as_dir in #((( 8141 '') as_dir=./ ;; 8142 */) ;; 8143 *) as_dir=$as_dir/ ;; 8144 esac 8145 for ac_prog in dd 8146 do 8147 for ac_exec_ext in '' $ac_executable_extensions; do 8148 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8149 as_fn_executable_p "$ac_path_lt_DD" || continue 8150if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8151 cmp -s conftest.i conftest.out \ 8152 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8153fi 8154 $ac_path_lt_DD_found && break 3 8155 done 8156 done 8157 done 8158IFS=$as_save_IFS 8159 if test -z "$ac_cv_path_lt_DD"; then 8160 : 8161 fi 8162else 8163 ac_cv_path_lt_DD=$lt_DD 8164fi 8165 8166rm -f conftest.i conftest2.i conftest.out 8167fi 8168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8169printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8170 8171 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8173printf %s "checking how to truncate binary pipes... " >&6; } 8174if test ${lt_cv_truncate_bin+y} 8175then : 8176 printf %s "(cached) " >&6 8177else $as_nop 8178 printf 0123456789abcdef0123456789abcdef >conftest.i 8179cat conftest.i conftest.i >conftest2.i 8180lt_cv_truncate_bin= 8181if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8182 cmp -s conftest.i conftest.out \ 8183 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8184fi 8185rm -f conftest.i conftest2.i conftest.out 8186test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8187fi 8188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8189printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8190 8191 8192 8193 8194 8195 8196 8197# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8198func_cc_basename () 8199{ 8200 for cc_temp in $*""; do 8201 case $cc_temp in 8202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8204 \-*) ;; 8205 *) break;; 8206 esac 8207 done 8208 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8209} 8210 8211# Check whether --enable-libtool-lock was given. 8212if test ${enable_libtool_lock+y} 8213then : 8214 enableval=$enable_libtool_lock; 8215fi 8216 8217test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8218 8219# Some flags need to be propagated to the compiler or linker for good 8220# libtool support. 8221case $host in 8222ia64-*-hpux*) 8223 # Find out what ABI is being produced by ac_compile, and set mode 8224 # options accordingly. 8225 echo 'int i;' > conftest.$ac_ext 8226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8227 (eval $ac_compile) 2>&5 8228 ac_status=$? 8229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8230 test $ac_status = 0; }; then 8231 case `/usr/bin/file conftest.$ac_objext` in 8232 *ELF-32*) 8233 HPUX_IA64_MODE=32 8234 ;; 8235 *ELF-64*) 8236 HPUX_IA64_MODE=64 8237 ;; 8238 esac 8239 fi 8240 rm -rf conftest* 8241 ;; 8242*-*-irix6*) 8243 # Find out what ABI is being produced by ac_compile, and set linker 8244 # options accordingly. 8245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8247 (eval $ac_compile) 2>&5 8248 ac_status=$? 8249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8250 test $ac_status = 0; }; then 8251 if test yes = "$lt_cv_prog_gnu_ld"; then 8252 case `/usr/bin/file conftest.$ac_objext` in 8253 *32-bit*) 8254 LD="${LD-ld} -melf32bsmip" 8255 ;; 8256 *N32*) 8257 LD="${LD-ld} -melf32bmipn32" 8258 ;; 8259 *64-bit*) 8260 LD="${LD-ld} -melf64bmip" 8261 ;; 8262 esac 8263 else 8264 case `/usr/bin/file conftest.$ac_objext` in 8265 *32-bit*) 8266 LD="${LD-ld} -32" 8267 ;; 8268 *N32*) 8269 LD="${LD-ld} -n32" 8270 ;; 8271 *64-bit*) 8272 LD="${LD-ld} -64" 8273 ;; 8274 esac 8275 fi 8276 fi 8277 rm -rf conftest* 8278 ;; 8279 8280mips64*-*linux*) 8281 # Find out what ABI is being produced by ac_compile, and set linker 8282 # options accordingly. 8283 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8285 (eval $ac_compile) 2>&5 8286 ac_status=$? 8287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8288 test $ac_status = 0; }; then 8289 emul=elf 8290 case `/usr/bin/file conftest.$ac_objext` in 8291 *32-bit*) 8292 emul="${emul}32" 8293 ;; 8294 *64-bit*) 8295 emul="${emul}64" 8296 ;; 8297 esac 8298 case `/usr/bin/file conftest.$ac_objext` in 8299 *MSB*) 8300 emul="${emul}btsmip" 8301 ;; 8302 *LSB*) 8303 emul="${emul}ltsmip" 8304 ;; 8305 esac 8306 case `/usr/bin/file conftest.$ac_objext` in 8307 *N32*) 8308 emul="${emul}n32" 8309 ;; 8310 esac 8311 LD="${LD-ld} -m $emul" 8312 fi 8313 rm -rf conftest* 8314 ;; 8315 8316x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8317s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8318 # Find out what ABI is being produced by ac_compile, and set linker 8319 # options accordingly. Note that the listed cases only cover the 8320 # situations where additional linker options are needed (such as when 8321 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8322 # vice versa); the common cases where no linker options are needed do 8323 # not appear in the list. 8324 echo 'int i;' > conftest.$ac_ext 8325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8326 (eval $ac_compile) 2>&5 8327 ac_status=$? 8328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8329 test $ac_status = 0; }; then 8330 case `/usr/bin/file conftest.o` in 8331 *32-bit*) 8332 case $host in 8333 x86_64-*kfreebsd*-gnu) 8334 LD="${LD-ld} -m elf_i386_fbsd" 8335 ;; 8336 x86_64-*linux*) 8337 case `/usr/bin/file conftest.o` in 8338 *x86-64*) 8339 LD="${LD-ld} -m elf32_x86_64" 8340 ;; 8341 *) 8342 LD="${LD-ld} -m elf_i386" 8343 ;; 8344 esac 8345 ;; 8346 powerpc64le-*linux*) 8347 LD="${LD-ld} -m elf32lppclinux" 8348 ;; 8349 powerpc64-*linux*) 8350 LD="${LD-ld} -m elf32ppclinux" 8351 ;; 8352 s390x-*linux*) 8353 LD="${LD-ld} -m elf_s390" 8354 ;; 8355 sparc64-*linux*) 8356 LD="${LD-ld} -m elf32_sparc" 8357 ;; 8358 esac 8359 ;; 8360 *64-bit*) 8361 case $host in 8362 x86_64-*kfreebsd*-gnu) 8363 LD="${LD-ld} -m elf_x86_64_fbsd" 8364 ;; 8365 x86_64-*linux*) 8366 LD="${LD-ld} -m elf_x86_64" 8367 ;; 8368 powerpcle-*linux*) 8369 LD="${LD-ld} -m elf64lppc" 8370 ;; 8371 powerpc-*linux*) 8372 LD="${LD-ld} -m elf64ppc" 8373 ;; 8374 s390*-*linux*|s390*-*tpf*) 8375 LD="${LD-ld} -m elf64_s390" 8376 ;; 8377 sparc*-*linux*) 8378 LD="${LD-ld} -m elf64_sparc" 8379 ;; 8380 esac 8381 ;; 8382 esac 8383 fi 8384 rm -rf conftest* 8385 ;; 8386 8387*-*-sco3.2v5*) 8388 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8389 SAVE_CFLAGS=$CFLAGS 8390 CFLAGS="$CFLAGS -belf" 8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8392printf %s "checking whether the C compiler needs -belf... " >&6; } 8393if test ${lt_cv_cc_needs_belf+y} 8394then : 8395 printf %s "(cached) " >&6 8396else $as_nop 8397 ac_ext=c 8398ac_cpp='$CPP $CPPFLAGS' 8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8401ac_compiler_gnu=$ac_cv_c_compiler_gnu 8402 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405 8406int 8407main (void) 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_link "$LINENO" 8415then : 8416 lt_cv_cc_needs_belf=yes 8417else $as_nop 8418 lt_cv_cc_needs_belf=no 8419fi 8420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8421 conftest$ac_exeext conftest.$ac_ext 8422 ac_ext=c 8423ac_cpp='$CPP $CPPFLAGS' 8424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8426ac_compiler_gnu=$ac_cv_c_compiler_gnu 8427 8428fi 8429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8430printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8431 if test yes != "$lt_cv_cc_needs_belf"; then 8432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8433 CFLAGS=$SAVE_CFLAGS 8434 fi 8435 ;; 8436*-*solaris*) 8437 # Find out what ABI is being produced by ac_compile, and set linker 8438 # options accordingly. 8439 echo 'int i;' > conftest.$ac_ext 8440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8441 (eval $ac_compile) 2>&5 8442 ac_status=$? 8443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8444 test $ac_status = 0; }; then 8445 case `/usr/bin/file conftest.o` in 8446 *64-bit*) 8447 case $lt_cv_prog_gnu_ld in 8448 yes*) 8449 case $host in 8450 i?86-*-solaris*|x86_64-*-solaris*) 8451 LD="${LD-ld} -m elf_x86_64" 8452 ;; 8453 sparc*-*-solaris*) 8454 LD="${LD-ld} -m elf64_sparc" 8455 ;; 8456 esac 8457 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8458 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8459 LD=${LD-ld}_sol2 8460 fi 8461 ;; 8462 *) 8463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8464 LD="${LD-ld} -64" 8465 fi 8466 ;; 8467 esac 8468 ;; 8469 esac 8470 fi 8471 rm -rf conftest* 8472 ;; 8473esac 8474 8475need_locks=$enable_libtool_lock 8476 8477if test -n "$ac_tool_prefix"; then 8478 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8479set dummy ${ac_tool_prefix}mt; ac_word=$2 8480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8481printf %s "checking for $ac_word... " >&6; } 8482if test ${ac_cv_prog_MANIFEST_TOOL+y} 8483then : 8484 printf %s "(cached) " >&6 8485else $as_nop 8486 if test -n "$MANIFEST_TOOL"; then 8487 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8488else 8489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490for as_dir in $PATH 8491do 8492 IFS=$as_save_IFS 8493 case $as_dir in #((( 8494 '') as_dir=./ ;; 8495 */) ;; 8496 *) as_dir=$as_dir/ ;; 8497 esac 8498 for ac_exec_ext in '' $ac_executable_extensions; do 8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8500 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8502 break 2 8503 fi 8504done 8505 done 8506IFS=$as_save_IFS 8507 8508fi 8509fi 8510MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8511if test -n "$MANIFEST_TOOL"; then 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8513printf "%s\n" "$MANIFEST_TOOL" >&6; } 8514else 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8516printf "%s\n" "no" >&6; } 8517fi 8518 8519 8520fi 8521if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8522 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8523 # Extract the first word of "mt", so it can be a program name with args. 8524set dummy mt; ac_word=$2 8525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8526printf %s "checking for $ac_word... " >&6; } 8527if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8528then : 8529 printf %s "(cached) " >&6 8530else $as_nop 8531 if test -n "$ac_ct_MANIFEST_TOOL"; then 8532 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8533else 8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8535for as_dir in $PATH 8536do 8537 IFS=$as_save_IFS 8538 case $as_dir in #((( 8539 '') as_dir=./ ;; 8540 */) ;; 8541 *) as_dir=$as_dir/ ;; 8542 esac 8543 for ac_exec_ext in '' $ac_executable_extensions; do 8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8545 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8547 break 2 8548 fi 8549done 8550 done 8551IFS=$as_save_IFS 8552 8553fi 8554fi 8555ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8556if test -n "$ac_ct_MANIFEST_TOOL"; then 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8558printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8559else 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8561printf "%s\n" "no" >&6; } 8562fi 8563 8564 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8565 MANIFEST_TOOL=":" 8566 else 8567 case $cross_compiling:$ac_tool_warned in 8568yes:) 8569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8571ac_tool_warned=yes ;; 8572esac 8573 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8574 fi 8575else 8576 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8577fi 8578 8579test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8581printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8582if test ${lt_cv_path_mainfest_tool+y} 8583then : 8584 printf %s "(cached) " >&6 8585else $as_nop 8586 lt_cv_path_mainfest_tool=no 8587 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8588 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8589 cat conftest.err >&5 8590 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8591 lt_cv_path_mainfest_tool=yes 8592 fi 8593 rm -f conftest* 8594fi 8595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8596printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8597if test yes != "$lt_cv_path_mainfest_tool"; then 8598 MANIFEST_TOOL=: 8599fi 8600 8601 8602 8603 8604 8605 8606 case $host_os in 8607 rhapsody* | darwin*) 8608 if test -n "$ac_tool_prefix"; then 8609 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8610set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8612printf %s "checking for $ac_word... " >&6; } 8613if test ${ac_cv_prog_DSYMUTIL+y} 8614then : 8615 printf %s "(cached) " >&6 8616else $as_nop 8617 if test -n "$DSYMUTIL"; then 8618 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8619else 8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8621for as_dir in $PATH 8622do 8623 IFS=$as_save_IFS 8624 case $as_dir in #((( 8625 '') as_dir=./ ;; 8626 */) ;; 8627 *) as_dir=$as_dir/ ;; 8628 esac 8629 for ac_exec_ext in '' $ac_executable_extensions; do 8630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8631 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8633 break 2 8634 fi 8635done 8636 done 8637IFS=$as_save_IFS 8638 8639fi 8640fi 8641DSYMUTIL=$ac_cv_prog_DSYMUTIL 8642if test -n "$DSYMUTIL"; then 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8644printf "%s\n" "$DSYMUTIL" >&6; } 8645else 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8647printf "%s\n" "no" >&6; } 8648fi 8649 8650 8651fi 8652if test -z "$ac_cv_prog_DSYMUTIL"; then 8653 ac_ct_DSYMUTIL=$DSYMUTIL 8654 # Extract the first word of "dsymutil", so it can be a program name with args. 8655set dummy dsymutil; ac_word=$2 8656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8657printf %s "checking for $ac_word... " >&6; } 8658if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8659then : 8660 printf %s "(cached) " >&6 8661else $as_nop 8662 if test -n "$ac_ct_DSYMUTIL"; then 8663 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8664else 8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666for as_dir in $PATH 8667do 8668 IFS=$as_save_IFS 8669 case $as_dir in #((( 8670 '') as_dir=./ ;; 8671 */) ;; 8672 *) as_dir=$as_dir/ ;; 8673 esac 8674 for ac_exec_ext in '' $ac_executable_extensions; do 8675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8676 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8678 break 2 8679 fi 8680done 8681 done 8682IFS=$as_save_IFS 8683 8684fi 8685fi 8686ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8687if test -n "$ac_ct_DSYMUTIL"; then 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8689printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8690else 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8692printf "%s\n" "no" >&6; } 8693fi 8694 8695 if test "x$ac_ct_DSYMUTIL" = x; then 8696 DSYMUTIL=":" 8697 else 8698 case $cross_compiling:$ac_tool_warned in 8699yes:) 8700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8701printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8702ac_tool_warned=yes ;; 8703esac 8704 DSYMUTIL=$ac_ct_DSYMUTIL 8705 fi 8706else 8707 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8708fi 8709 8710 if test -n "$ac_tool_prefix"; then 8711 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8712set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714printf %s "checking for $ac_word... " >&6; } 8715if test ${ac_cv_prog_NMEDIT+y} 8716then : 8717 printf %s "(cached) " >&6 8718else $as_nop 8719 if test -n "$NMEDIT"; then 8720 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8721else 8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8723for as_dir in $PATH 8724do 8725 IFS=$as_save_IFS 8726 case $as_dir in #((( 8727 '') as_dir=./ ;; 8728 */) ;; 8729 *) as_dir=$as_dir/ ;; 8730 esac 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8733 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737done 8738 done 8739IFS=$as_save_IFS 8740 8741fi 8742fi 8743NMEDIT=$ac_cv_prog_NMEDIT 8744if test -n "$NMEDIT"; then 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8746printf "%s\n" "$NMEDIT" >&6; } 8747else 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749printf "%s\n" "no" >&6; } 8750fi 8751 8752 8753fi 8754if test -z "$ac_cv_prog_NMEDIT"; then 8755 ac_ct_NMEDIT=$NMEDIT 8756 # Extract the first word of "nmedit", so it can be a program name with args. 8757set dummy nmedit; ac_word=$2 8758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8759printf %s "checking for $ac_word... " >&6; } 8760if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8761then : 8762 printf %s "(cached) " >&6 8763else $as_nop 8764 if test -n "$ac_ct_NMEDIT"; then 8765 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8766else 8767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8768for as_dir in $PATH 8769do 8770 IFS=$as_save_IFS 8771 case $as_dir in #((( 8772 '') as_dir=./ ;; 8773 */) ;; 8774 *) as_dir=$as_dir/ ;; 8775 esac 8776 for ac_exec_ext in '' $ac_executable_extensions; do 8777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8778 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8780 break 2 8781 fi 8782done 8783 done 8784IFS=$as_save_IFS 8785 8786fi 8787fi 8788ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8789if test -n "$ac_ct_NMEDIT"; then 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8791printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8792else 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8794printf "%s\n" "no" >&6; } 8795fi 8796 8797 if test "x$ac_ct_NMEDIT" = x; then 8798 NMEDIT=":" 8799 else 8800 case $cross_compiling:$ac_tool_warned in 8801yes:) 8802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8804ac_tool_warned=yes ;; 8805esac 8806 NMEDIT=$ac_ct_NMEDIT 8807 fi 8808else 8809 NMEDIT="$ac_cv_prog_NMEDIT" 8810fi 8811 8812 if test -n "$ac_tool_prefix"; then 8813 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8814set dummy ${ac_tool_prefix}lipo; ac_word=$2 8815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8816printf %s "checking for $ac_word... " >&6; } 8817if test ${ac_cv_prog_LIPO+y} 8818then : 8819 printf %s "(cached) " >&6 8820else $as_nop 8821 if test -n "$LIPO"; then 8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8823else 8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8825for as_dir in $PATH 8826do 8827 IFS=$as_save_IFS 8828 case $as_dir in #((( 8829 '') as_dir=./ ;; 8830 */) ;; 8831 *) as_dir=$as_dir/ ;; 8832 esac 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839done 8840 done 8841IFS=$as_save_IFS 8842 8843fi 8844fi 8845LIPO=$ac_cv_prog_LIPO 8846if test -n "$LIPO"; then 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8848printf "%s\n" "$LIPO" >&6; } 8849else 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851printf "%s\n" "no" >&6; } 8852fi 8853 8854 8855fi 8856if test -z "$ac_cv_prog_LIPO"; then 8857 ac_ct_LIPO=$LIPO 8858 # Extract the first word of "lipo", so it can be a program name with args. 8859set dummy lipo; ac_word=$2 8860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861printf %s "checking for $ac_word... " >&6; } 8862if test ${ac_cv_prog_ac_ct_LIPO+y} 8863then : 8864 printf %s "(cached) " >&6 8865else $as_nop 8866 if test -n "$ac_ct_LIPO"; then 8867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8868else 8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8870for as_dir in $PATH 8871do 8872 IFS=$as_save_IFS 8873 case $as_dir in #((( 8874 '') as_dir=./ ;; 8875 */) ;; 8876 *) as_dir=$as_dir/ ;; 8877 esac 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_ac_ct_LIPO="lipo" 8881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884done 8885 done 8886IFS=$as_save_IFS 8887 8888fi 8889fi 8890ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8891if test -n "$ac_ct_LIPO"; then 8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8893printf "%s\n" "$ac_ct_LIPO" >&6; } 8894else 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896printf "%s\n" "no" >&6; } 8897fi 8898 8899 if test "x$ac_ct_LIPO" = x; then 8900 LIPO=":" 8901 else 8902 case $cross_compiling:$ac_tool_warned in 8903yes:) 8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8906ac_tool_warned=yes ;; 8907esac 8908 LIPO=$ac_ct_LIPO 8909 fi 8910else 8911 LIPO="$ac_cv_prog_LIPO" 8912fi 8913 8914 if test -n "$ac_tool_prefix"; then 8915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8916set dummy ${ac_tool_prefix}otool; ac_word=$2 8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8918printf %s "checking for $ac_word... " >&6; } 8919if test ${ac_cv_prog_OTOOL+y} 8920then : 8921 printf %s "(cached) " >&6 8922else $as_nop 8923 if test -n "$OTOOL"; then 8924 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8925else 8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8927for as_dir in $PATH 8928do 8929 IFS=$as_save_IFS 8930 case $as_dir in #((( 8931 '') as_dir=./ ;; 8932 */) ;; 8933 *) as_dir=$as_dir/ ;; 8934 esac 8935 for ac_exec_ext in '' $ac_executable_extensions; do 8936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8937 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8939 break 2 8940 fi 8941done 8942 done 8943IFS=$as_save_IFS 8944 8945fi 8946fi 8947OTOOL=$ac_cv_prog_OTOOL 8948if test -n "$OTOOL"; then 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8950printf "%s\n" "$OTOOL" >&6; } 8951else 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8953printf "%s\n" "no" >&6; } 8954fi 8955 8956 8957fi 8958if test -z "$ac_cv_prog_OTOOL"; then 8959 ac_ct_OTOOL=$OTOOL 8960 # Extract the first word of "otool", so it can be a program name with args. 8961set dummy otool; ac_word=$2 8962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8963printf %s "checking for $ac_word... " >&6; } 8964if test ${ac_cv_prog_ac_ct_OTOOL+y} 8965then : 8966 printf %s "(cached) " >&6 8967else $as_nop 8968 if test -n "$ac_ct_OTOOL"; then 8969 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8970else 8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8972for as_dir in $PATH 8973do 8974 IFS=$as_save_IFS 8975 case $as_dir in #((( 8976 '') as_dir=./ ;; 8977 */) ;; 8978 *) as_dir=$as_dir/ ;; 8979 esac 8980 for ac_exec_ext in '' $ac_executable_extensions; do 8981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8982 ac_cv_prog_ac_ct_OTOOL="otool" 8983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8984 break 2 8985 fi 8986done 8987 done 8988IFS=$as_save_IFS 8989 8990fi 8991fi 8992ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8993if test -n "$ac_ct_OTOOL"; then 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8995printf "%s\n" "$ac_ct_OTOOL" >&6; } 8996else 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8998printf "%s\n" "no" >&6; } 8999fi 9000 9001 if test "x$ac_ct_OTOOL" = x; then 9002 OTOOL=":" 9003 else 9004 case $cross_compiling:$ac_tool_warned in 9005yes:) 9006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9008ac_tool_warned=yes ;; 9009esac 9010 OTOOL=$ac_ct_OTOOL 9011 fi 9012else 9013 OTOOL="$ac_cv_prog_OTOOL" 9014fi 9015 9016 if test -n "$ac_tool_prefix"; then 9017 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9018set dummy ${ac_tool_prefix}otool64; ac_word=$2 9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9020printf %s "checking for $ac_word... " >&6; } 9021if test ${ac_cv_prog_OTOOL64+y} 9022then : 9023 printf %s "(cached) " >&6 9024else $as_nop 9025 if test -n "$OTOOL64"; then 9026 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9027else 9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9029for as_dir in $PATH 9030do 9031 IFS=$as_save_IFS 9032 case $as_dir in #((( 9033 '') as_dir=./ ;; 9034 */) ;; 9035 *) as_dir=$as_dir/ ;; 9036 esac 9037 for ac_exec_ext in '' $ac_executable_extensions; do 9038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9039 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9041 break 2 9042 fi 9043done 9044 done 9045IFS=$as_save_IFS 9046 9047fi 9048fi 9049OTOOL64=$ac_cv_prog_OTOOL64 9050if test -n "$OTOOL64"; then 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9052printf "%s\n" "$OTOOL64" >&6; } 9053else 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055printf "%s\n" "no" >&6; } 9056fi 9057 9058 9059fi 9060if test -z "$ac_cv_prog_OTOOL64"; then 9061 ac_ct_OTOOL64=$OTOOL64 9062 # Extract the first word of "otool64", so it can be a program name with args. 9063set dummy otool64; ac_word=$2 9064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9065printf %s "checking for $ac_word... " >&6; } 9066if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9067then : 9068 printf %s "(cached) " >&6 9069else $as_nop 9070 if test -n "$ac_ct_OTOOL64"; then 9071 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9072else 9073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9074for as_dir in $PATH 9075do 9076 IFS=$as_save_IFS 9077 case $as_dir in #((( 9078 '') as_dir=./ ;; 9079 */) ;; 9080 *) as_dir=$as_dir/ ;; 9081 esac 9082 for ac_exec_ext in '' $ac_executable_extensions; do 9083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9084 ac_cv_prog_ac_ct_OTOOL64="otool64" 9085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9086 break 2 9087 fi 9088done 9089 done 9090IFS=$as_save_IFS 9091 9092fi 9093fi 9094ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9095if test -n "$ac_ct_OTOOL64"; then 9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9097printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9098else 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9100printf "%s\n" "no" >&6; } 9101fi 9102 9103 if test "x$ac_ct_OTOOL64" = x; then 9104 OTOOL64=":" 9105 else 9106 case $cross_compiling:$ac_tool_warned in 9107yes:) 9108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9110ac_tool_warned=yes ;; 9111esac 9112 OTOOL64=$ac_ct_OTOOL64 9113 fi 9114else 9115 OTOOL64="$ac_cv_prog_OTOOL64" 9116fi 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9145printf %s "checking for -single_module linker flag... " >&6; } 9146if test ${lt_cv_apple_cc_single_mod+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 lt_cv_apple_cc_single_mod=no 9151 if test -z "$LT_MULTI_MODULE"; then 9152 # By default we will add the -single_module flag. You can override 9153 # by either setting the environment variable LT_MULTI_MODULE 9154 # non-empty at configure time, or by adding -multi_module to the 9155 # link flags. 9156 rm -rf libconftest.dylib* 9157 echo "int foo(void){return 1;}" > conftest.c 9158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9159-dynamiclib -Wl,-single_module conftest.c" >&5 9160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9162 _lt_result=$? 9163 # If there is a non-empty error log, and "single_module" 9164 # appears in it, assume the flag caused a linker warning 9165 if test -s conftest.err && $GREP single_module conftest.err; then 9166 cat conftest.err >&5 9167 # Otherwise, if the output was created with a 0 exit code from 9168 # the compiler, it worked. 9169 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9170 lt_cv_apple_cc_single_mod=yes 9171 else 9172 cat conftest.err >&5 9173 fi 9174 rm -rf libconftest.dylib* 9175 rm -f conftest.* 9176 fi 9177fi 9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9179printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9180 9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9182printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9183if test ${lt_cv_ld_exported_symbols_list+y} 9184then : 9185 printf %s "(cached) " >&6 9186else $as_nop 9187 lt_cv_ld_exported_symbols_list=no 9188 save_LDFLAGS=$LDFLAGS 9189 echo "_main" > conftest.sym 9190 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193 9194int 9195main (void) 9196{ 9197 9198 ; 9199 return 0; 9200} 9201_ACEOF 9202if ac_fn_c_try_link "$LINENO" 9203then : 9204 lt_cv_ld_exported_symbols_list=yes 9205else $as_nop 9206 lt_cv_ld_exported_symbols_list=no 9207fi 9208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9209 conftest$ac_exeext conftest.$ac_ext 9210 LDFLAGS=$save_LDFLAGS 9211 9212fi 9213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9214printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9215 9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9217printf %s "checking for -force_load linker flag... " >&6; } 9218if test ${lt_cv_ld_force_load+y} 9219then : 9220 printf %s "(cached) " >&6 9221else $as_nop 9222 lt_cv_ld_force_load=no 9223 cat > conftest.c << _LT_EOF 9224int forced_loaded() { return 2;} 9225_LT_EOF 9226 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9227 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9228 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9229 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9230 echo "$RANLIB libconftest.a" >&5 9231 $RANLIB libconftest.a 2>&5 9232 cat > conftest.c << _LT_EOF 9233int main() { return 0;} 9234_LT_EOF 9235 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9236 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9237 _lt_result=$? 9238 if test -s conftest.err && $GREP force_load conftest.err; then 9239 cat conftest.err >&5 9240 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9241 lt_cv_ld_force_load=yes 9242 else 9243 cat conftest.err >&5 9244 fi 9245 rm -f conftest.err libconftest.a conftest conftest.c 9246 rm -rf conftest.dSYM 9247 9248fi 9249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9250printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9251 case $host_os in 9252 rhapsody* | darwin1.[012]) 9253 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9254 darwin1.*) 9255 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9256 darwin*) # darwin 5.x on 9257 # if running on 10.5 or later, the deployment target defaults 9258 # to the OS version, if on x86, and 10.4, the deployment 9259 # target defaults to 10.4. Don't you love it? 9260 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9261 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9262 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9263 10.[012][,.]*) 9264 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9265 10.*) 9266 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9267 esac 9268 ;; 9269 esac 9270 if test yes = "$lt_cv_apple_cc_single_mod"; then 9271 _lt_dar_single_mod='$single_module' 9272 fi 9273 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9274 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9275 else 9276 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9277 fi 9278 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9279 _lt_dsymutil='~$DSYMUTIL $lib || :' 9280 else 9281 _lt_dsymutil= 9282 fi 9283 ;; 9284 esac 9285 9286# func_munge_path_list VARIABLE PATH 9287# ----------------------------------- 9288# VARIABLE is name of variable containing _space_ separated list of 9289# directories to be munged by the contents of PATH, which is string 9290# having a format: 9291# "DIR[:DIR]:" 9292# string "DIR[ DIR]" will be prepended to VARIABLE 9293# ":DIR[:DIR]" 9294# string "DIR[ DIR]" will be appended to VARIABLE 9295# "DIRP[:DIRP]::[DIRA:]DIRA" 9296# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9297# "DIRA[ DIRA]" will be appended to VARIABLE 9298# "DIR[:DIR]" 9299# VARIABLE will be replaced by "DIR[ DIR]" 9300func_munge_path_list () 9301{ 9302 case x$2 in 9303 x) 9304 ;; 9305 *:) 9306 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9307 ;; 9308 x:*) 9309 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9310 ;; 9311 *::*) 9312 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9313 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9314 ;; 9315 *) 9316 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9317 ;; 9318 esac 9319} 9320 9321ac_header= ac_cache= 9322for ac_item in $ac_header_c_list 9323do 9324 if test $ac_cache; then 9325 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9326 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9327 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9328 fi 9329 ac_header= ac_cache= 9330 elif test $ac_header; then 9331 ac_cache=$ac_item 9332 else 9333 ac_header=$ac_item 9334 fi 9335done 9336 9337 9338 9339 9340 9341 9342 9343 9344if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9345then : 9346 9347printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9348 9349fi 9350ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9351" 9352if test "x$ac_cv_header_dlfcn_h" = xyes 9353then : 9354 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9355 9356fi 9357 9358 9359 9360 9361func_stripname_cnf () 9362{ 9363 case $2 in 9364 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9365 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9366 esac 9367} # func_stripname_cnf 9368 9369 9370 9371 9372 9373# Set options 9374# Check whether --enable-static was given. 9375if test ${enable_static+y} 9376then : 9377 enableval=$enable_static; p=${PACKAGE-default} 9378 case $enableval in 9379 yes) enable_static=yes ;; 9380 no) enable_static=no ;; 9381 *) 9382 enable_static=no 9383 # Look at the argument we got. We use all the common list separators. 9384 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9385 for pkg in $enableval; do 9386 IFS=$lt_save_ifs 9387 if test "X$pkg" = "X$p"; then 9388 enable_static=yes 9389 fi 9390 done 9391 IFS=$lt_save_ifs 9392 ;; 9393 esac 9394else $as_nop 9395 enable_static=no 9396fi 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 enable_dlopen=no 9408 9409 9410 enable_win32_dll=no 9411 9412 9413 # Check whether --enable-shared was given. 9414if test ${enable_shared+y} 9415then : 9416 enableval=$enable_shared; p=${PACKAGE-default} 9417 case $enableval in 9418 yes) enable_shared=yes ;; 9419 no) enable_shared=no ;; 9420 *) 9421 enable_shared=no 9422 # Look at the argument we got. We use all the common list separators. 9423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9424 for pkg in $enableval; do 9425 IFS=$lt_save_ifs 9426 if test "X$pkg" = "X$p"; then 9427 enable_shared=yes 9428 fi 9429 done 9430 IFS=$lt_save_ifs 9431 ;; 9432 esac 9433else $as_nop 9434 enable_shared=yes 9435fi 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447# Check whether --with-pic was given. 9448if test ${with_pic+y} 9449then : 9450 withval=$with_pic; lt_p=${PACKAGE-default} 9451 case $withval in 9452 yes|no) pic_mode=$withval ;; 9453 *) 9454 pic_mode=default 9455 # Look at the argument we got. We use all the common list separators. 9456 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9457 for lt_pkg in $withval; do 9458 IFS=$lt_save_ifs 9459 if test "X$lt_pkg" = "X$lt_p"; then 9460 pic_mode=yes 9461 fi 9462 done 9463 IFS=$lt_save_ifs 9464 ;; 9465 esac 9466else $as_nop 9467 pic_mode=default 9468fi 9469 9470 9471 9472 9473 9474 9475 9476 9477 # Check whether --enable-fast-install was given. 9478if test ${enable_fast_install+y} 9479then : 9480 enableval=$enable_fast_install; p=${PACKAGE-default} 9481 case $enableval in 9482 yes) enable_fast_install=yes ;; 9483 no) enable_fast_install=no ;; 9484 *) 9485 enable_fast_install=no 9486 # Look at the argument we got. We use all the common list separators. 9487 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9488 for pkg in $enableval; do 9489 IFS=$lt_save_ifs 9490 if test "X$pkg" = "X$p"; then 9491 enable_fast_install=yes 9492 fi 9493 done 9494 IFS=$lt_save_ifs 9495 ;; 9496 esac 9497else $as_nop 9498 enable_fast_install=yes 9499fi 9500 9501 9502 9503 9504 9505 9506 9507 9508 shared_archive_member_spec= 9509case $host,$enable_shared in 9510power*-*-aix[5-9]*,yes) 9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9512printf %s "checking which variant of shared library versioning to provide... " >&6; } 9513 9514# Check whether --with-aix-soname was given. 9515if test ${with_aix_soname+y} 9516then : 9517 withval=$with_aix_soname; case $withval in 9518 aix|svr4|both) 9519 ;; 9520 *) 9521 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9522 ;; 9523 esac 9524 lt_cv_with_aix_soname=$with_aix_soname 9525else $as_nop 9526 if test ${lt_cv_with_aix_soname+y} 9527then : 9528 printf %s "(cached) " >&6 9529else $as_nop 9530 lt_cv_with_aix_soname=aix 9531fi 9532 9533 with_aix_soname=$lt_cv_with_aix_soname 9534fi 9535 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9537printf "%s\n" "$with_aix_soname" >&6; } 9538 if test aix != "$with_aix_soname"; then 9539 # For the AIX way of multilib, we name the shared archive member 9540 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9541 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9542 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9543 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9544 if test 64 = "${OBJECT_MODE-32}"; then 9545 shared_archive_member_spec=shr_64 9546 else 9547 shared_archive_member_spec=shr 9548 fi 9549 fi 9550 ;; 9551*) 9552 with_aix_soname=aix 9553 ;; 9554esac 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565# This can be used to rebuild libtool when needed 9566LIBTOOL_DEPS=$ltmain 9567 9568# Always use our own libtool. 9569LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600test -z "$LN_S" && LN_S="ln -s" 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615if test -n "${ZSH_VERSION+set}"; then 9616 setopt NO_GLOB_SUBST 9617fi 9618 9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9620printf %s "checking for objdir... " >&6; } 9621if test ${lt_cv_objdir+y} 9622then : 9623 printf %s "(cached) " >&6 9624else $as_nop 9625 rm -f .libs 2>/dev/null 9626mkdir .libs 2>/dev/null 9627if test -d .libs; then 9628 lt_cv_objdir=.libs 9629else 9630 # MS-DOS does not allow filenames that begin with a dot. 9631 lt_cv_objdir=_libs 9632fi 9633rmdir .libs 2>/dev/null 9634fi 9635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9636printf "%s\n" "$lt_cv_objdir" >&6; } 9637objdir=$lt_cv_objdir 9638 9639 9640 9641 9642 9643printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9644 9645 9646 9647 9648case $host_os in 9649aix3*) 9650 # AIX sometimes has problems with the GCC collect2 program. For some 9651 # reason, if we set the COLLECT_NAMES environment variable, the problems 9652 # vanish in a puff of smoke. 9653 if test set != "${COLLECT_NAMES+set}"; then 9654 COLLECT_NAMES= 9655 export COLLECT_NAMES 9656 fi 9657 ;; 9658esac 9659 9660# Global variables: 9661ofile=libtool 9662can_build_shared=yes 9663 9664# All known linkers require a '.a' archive for static linking (except MSVC and 9665# ICC, which need '.lib'). 9666libext=a 9667 9668with_gnu_ld=$lt_cv_prog_gnu_ld 9669 9670old_CC=$CC 9671old_CFLAGS=$CFLAGS 9672 9673# Set sane defaults for various variables 9674test -z "$CC" && CC=cc 9675test -z "$LTCC" && LTCC=$CC 9676test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9677test -z "$LD" && LD=ld 9678test -z "$ac_objext" && ac_objext=o 9679 9680func_cc_basename $compiler 9681cc_basename=$func_cc_basename_result 9682 9683 9684# Only perform the check for file, if the check method requires it 9685test -z "$MAGIC_CMD" && MAGIC_CMD=file 9686case $deplibs_check_method in 9687file_magic*) 9688 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9690printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9691if test ${lt_cv_path_MAGIC_CMD+y} 9692then : 9693 printf %s "(cached) " >&6 9694else $as_nop 9695 case $MAGIC_CMD in 9696[\\/*] | ?:[\\/]*) 9697 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9698 ;; 9699*) 9700 lt_save_MAGIC_CMD=$MAGIC_CMD 9701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9703 for ac_dir in $ac_dummy; do 9704 IFS=$lt_save_ifs 9705 test -z "$ac_dir" && ac_dir=. 9706 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9707 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9708 if test -n "$file_magic_test_file"; then 9709 case $deplibs_check_method in 9710 "file_magic "*) 9711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9712 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9714 $EGREP "$file_magic_regex" > /dev/null; then 9715 : 9716 else 9717 cat <<_LT_EOF 1>&2 9718 9719*** Warning: the command libtool uses to detect shared libraries, 9720*** $file_magic_cmd, produces output that libtool cannot recognize. 9721*** The result is that libtool may fail to recognize shared libraries 9722*** as such. This will affect the creation of libtool libraries that 9723*** depend on shared libraries, but programs linked with such libtool 9724*** libraries will work regardless of this problem. Nevertheless, you 9725*** may want to report the problem to your system manager and/or to 9726*** bug-libtool@gnu.org 9727 9728_LT_EOF 9729 fi ;; 9730 esac 9731 fi 9732 break 9733 fi 9734 done 9735 IFS=$lt_save_ifs 9736 MAGIC_CMD=$lt_save_MAGIC_CMD 9737 ;; 9738esac 9739fi 9740 9741MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9742if test -n "$MAGIC_CMD"; then 9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9744printf "%s\n" "$MAGIC_CMD" >&6; } 9745else 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9747printf "%s\n" "no" >&6; } 9748fi 9749 9750 9751 9752 9753 9754if test -z "$lt_cv_path_MAGIC_CMD"; then 9755 if test -n "$ac_tool_prefix"; then 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9757printf %s "checking for file... " >&6; } 9758if test ${lt_cv_path_MAGIC_CMD+y} 9759then : 9760 printf %s "(cached) " >&6 9761else $as_nop 9762 case $MAGIC_CMD in 9763[\\/*] | ?:[\\/]*) 9764 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9765 ;; 9766*) 9767 lt_save_MAGIC_CMD=$MAGIC_CMD 9768 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9770 for ac_dir in $ac_dummy; do 9771 IFS=$lt_save_ifs 9772 test -z "$ac_dir" && ac_dir=. 9773 if test -f "$ac_dir/file"; then 9774 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9775 if test -n "$file_magic_test_file"; then 9776 case $deplibs_check_method in 9777 "file_magic "*) 9778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9779 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9781 $EGREP "$file_magic_regex" > /dev/null; then 9782 : 9783 else 9784 cat <<_LT_EOF 1>&2 9785 9786*** Warning: the command libtool uses to detect shared libraries, 9787*** $file_magic_cmd, produces output that libtool cannot recognize. 9788*** The result is that libtool may fail to recognize shared libraries 9789*** as such. This will affect the creation of libtool libraries that 9790*** depend on shared libraries, but programs linked with such libtool 9791*** libraries will work regardless of this problem. Nevertheless, you 9792*** may want to report the problem to your system manager and/or to 9793*** bug-libtool@gnu.org 9794 9795_LT_EOF 9796 fi ;; 9797 esac 9798 fi 9799 break 9800 fi 9801 done 9802 IFS=$lt_save_ifs 9803 MAGIC_CMD=$lt_save_MAGIC_CMD 9804 ;; 9805esac 9806fi 9807 9808MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9809if test -n "$MAGIC_CMD"; then 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9811printf "%s\n" "$MAGIC_CMD" >&6; } 9812else 9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9814printf "%s\n" "no" >&6; } 9815fi 9816 9817 9818 else 9819 MAGIC_CMD=: 9820 fi 9821fi 9822 9823 fi 9824 ;; 9825esac 9826 9827# Use C for the default configuration in the libtool script 9828 9829lt_save_CC=$CC 9830ac_ext=c 9831ac_cpp='$CPP $CPPFLAGS' 9832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9834ac_compiler_gnu=$ac_cv_c_compiler_gnu 9835 9836 9837# Source file extension for C test sources. 9838ac_ext=c 9839 9840# Object file extension for compiled C test sources. 9841objext=o 9842objext=$objext 9843 9844# Code to be used in simple compile tests 9845lt_simple_compile_test_code="int some_variable = 0;" 9846 9847# Code to be used in simple link tests 9848lt_simple_link_test_code='int main(){return(0);}' 9849 9850 9851 9852 9853 9854 9855 9856# If no C compiler was specified, use CC. 9857LTCC=${LTCC-"$CC"} 9858 9859# If no C compiler flags were specified, use CFLAGS. 9860LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9861 9862# Allow CC to be a program name with arguments. 9863compiler=$CC 9864 9865# Save the default compiler, since it gets overwritten when the other 9866# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9867compiler_DEFAULT=$CC 9868 9869# save warnings/boilerplate of simple test code 9870ac_outfile=conftest.$ac_objext 9871echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9873_lt_compiler_boilerplate=`cat conftest.err` 9874$RM conftest* 9875 9876ac_outfile=conftest.$ac_objext 9877echo "$lt_simple_link_test_code" >conftest.$ac_ext 9878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9879_lt_linker_boilerplate=`cat conftest.err` 9880$RM -r conftest* 9881 9882 9883## CAVEAT EMPTOR: 9884## There is no encapsulation within the following macros, do not change 9885## the running order or otherwise move them around unless you know exactly 9886## what you are doing... 9887if test -n "$compiler"; then 9888 9889lt_prog_compiler_no_builtin_flag= 9890 9891if test yes = "$GCC"; then 9892 case $cc_basename in 9893 nvcc*) 9894 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9895 *) 9896 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9897 esac 9898 9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9900printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9901if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9902then : 9903 printf %s "(cached) " >&6 9904else $as_nop 9905 lt_cv_prog_compiler_rtti_exceptions=no 9906 ac_outfile=conftest.$ac_objext 9907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9908 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9909 # Insert the option either (1) after the last *FLAGS variable, or 9910 # (2) before a word containing "conftest.", or (3) at the end. 9911 # Note that $ac_compile itself does not contain backslashes and begins 9912 # with a dollar sign (not a hyphen), so the echo should work correctly. 9913 # The option is referenced via a variable to avoid confusing sed. 9914 lt_compile=`echo "$ac_compile" | $SED \ 9915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9917 -e 's:$: $lt_compiler_flag:'` 9918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9919 (eval "$lt_compile" 2>conftest.err) 9920 ac_status=$? 9921 cat conftest.err >&5 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 if (exit $ac_status) && test -s "$ac_outfile"; then 9924 # The compiler can only warn and ignore the option if not recognized 9925 # So say no if there are warnings other than the usual output. 9926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9929 lt_cv_prog_compiler_rtti_exceptions=yes 9930 fi 9931 fi 9932 $RM conftest* 9933 9934fi 9935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9936printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9937 9938if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9939 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9940else 9941 : 9942fi 9943 9944fi 9945 9946 9947 9948 9949 9950 9951 lt_prog_compiler_wl= 9952lt_prog_compiler_pic= 9953lt_prog_compiler_static= 9954 9955 9956 if test yes = "$GCC"; then 9957 lt_prog_compiler_wl='-Wl,' 9958 lt_prog_compiler_static='-static' 9959 9960 case $host_os in 9961 aix*) 9962 # All AIX code is PIC. 9963 if test ia64 = "$host_cpu"; then 9964 # AIX 5 now supports IA64 processor 9965 lt_prog_compiler_static='-Bstatic' 9966 fi 9967 lt_prog_compiler_pic='-fPIC' 9968 ;; 9969 9970 amigaos*) 9971 case $host_cpu in 9972 powerpc) 9973 # see comment about AmigaOS4 .so support 9974 lt_prog_compiler_pic='-fPIC' 9975 ;; 9976 m68k) 9977 # FIXME: we need at least 68020 code to build shared libraries, but 9978 # adding the '-m68020' flag to GCC prevents building anything better, 9979 # like '-m68040'. 9980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9981 ;; 9982 esac 9983 ;; 9984 9985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9986 # PIC is the default for these OSes. 9987 ;; 9988 9989 mingw* | cygwin* | pw32* | os2* | cegcc*) 9990 # This hack is so that the source file can tell whether it is being 9991 # built for inclusion in a dll (and should export symbols for example). 9992 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9993 # (--disable-auto-import) libraries 9994 lt_prog_compiler_pic='-DDLL_EXPORT' 9995 case $host_os in 9996 os2*) 9997 lt_prog_compiler_static='$wl-static' 9998 ;; 9999 esac 10000 ;; 10001 10002 darwin* | rhapsody*) 10003 # PIC is the default on this platform 10004 # Common symbols not allowed in MH_DYLIB files 10005 lt_prog_compiler_pic='-fno-common' 10006 ;; 10007 10008 haiku*) 10009 # PIC is the default for Haiku. 10010 # The "-static" flag exists, but is broken. 10011 lt_prog_compiler_static= 10012 ;; 10013 10014 hpux*) 10015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10017 # sets the default TLS model and affects inlining. 10018 case $host_cpu in 10019 hppa*64*) 10020 # +Z the default 10021 ;; 10022 *) 10023 lt_prog_compiler_pic='-fPIC' 10024 ;; 10025 esac 10026 ;; 10027 10028 interix[3-9]*) 10029 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10030 # Instead, we relocate shared libraries at runtime. 10031 ;; 10032 10033 msdosdjgpp*) 10034 # Just because we use GCC doesn't mean we suddenly get shared libraries 10035 # on systems that don't support them. 10036 lt_prog_compiler_can_build_shared=no 10037 enable_shared=no 10038 ;; 10039 10040 *nto* | *qnx*) 10041 # QNX uses GNU C++, but need to define -shared option too, otherwise 10042 # it will coredump. 10043 lt_prog_compiler_pic='-fPIC -shared' 10044 ;; 10045 10046 sysv4*MP*) 10047 if test -d /usr/nec; then 10048 lt_prog_compiler_pic=-Kconform_pic 10049 fi 10050 ;; 10051 10052 *) 10053 lt_prog_compiler_pic='-fPIC' 10054 ;; 10055 esac 10056 10057 case $cc_basename in 10058 nvcc*) # Cuda Compiler Driver 2.2 10059 lt_prog_compiler_wl='-Xlinker ' 10060 if test -n "$lt_prog_compiler_pic"; then 10061 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10062 fi 10063 ;; 10064 esac 10065 else 10066 # PORTME Check for flag to pass linker flags through the system compiler. 10067 case $host_os in 10068 aix*) 10069 lt_prog_compiler_wl='-Wl,' 10070 if test ia64 = "$host_cpu"; then 10071 # AIX 5 now supports IA64 processor 10072 lt_prog_compiler_static='-Bstatic' 10073 else 10074 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10075 fi 10076 ;; 10077 10078 darwin* | rhapsody*) 10079 # PIC is the default on this platform 10080 # Common symbols not allowed in MH_DYLIB files 10081 lt_prog_compiler_pic='-fno-common' 10082 case $cc_basename in 10083 nagfor*) 10084 # NAG Fortran compiler 10085 lt_prog_compiler_wl='-Wl,-Wl,,' 10086 lt_prog_compiler_pic='-PIC' 10087 lt_prog_compiler_static='-Bstatic' 10088 ;; 10089 esac 10090 ;; 10091 10092 mingw* | cygwin* | pw32* | os2* | cegcc*) 10093 # This hack is so that the source file can tell whether it is being 10094 # built for inclusion in a dll (and should export symbols for example). 10095 lt_prog_compiler_pic='-DDLL_EXPORT' 10096 case $host_os in 10097 os2*) 10098 lt_prog_compiler_static='$wl-static' 10099 ;; 10100 esac 10101 ;; 10102 10103 hpux9* | hpux10* | hpux11*) 10104 lt_prog_compiler_wl='-Wl,' 10105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10106 # not for PA HP-UX. 10107 case $host_cpu in 10108 hppa*64*|ia64*) 10109 # +Z the default 10110 ;; 10111 *) 10112 lt_prog_compiler_pic='+Z' 10113 ;; 10114 esac 10115 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10116 lt_prog_compiler_static='$wl-a ${wl}archive' 10117 ;; 10118 10119 irix5* | irix6* | nonstopux*) 10120 lt_prog_compiler_wl='-Wl,' 10121 # PIC (with -KPIC) is the default. 10122 lt_prog_compiler_static='-non_shared' 10123 ;; 10124 10125 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10126 case $cc_basename in 10127 # old Intel for x86_64, which still supported -KPIC. 10128 ecc*) 10129 lt_prog_compiler_wl='-Wl,' 10130 lt_prog_compiler_pic='-KPIC' 10131 lt_prog_compiler_static='-static' 10132 ;; 10133 # icc used to be incompatible with GCC. 10134 # ICC 10 doesn't accept -KPIC any more. 10135 icc* | ifort*) 10136 lt_prog_compiler_wl='-Wl,' 10137 lt_prog_compiler_pic='-fPIC' 10138 lt_prog_compiler_static='-static' 10139 ;; 10140 # Lahey Fortran 8.1. 10141 lf95*) 10142 lt_prog_compiler_wl='-Wl,' 10143 lt_prog_compiler_pic='--shared' 10144 lt_prog_compiler_static='--static' 10145 ;; 10146 nagfor*) 10147 # NAG Fortran compiler 10148 lt_prog_compiler_wl='-Wl,-Wl,,' 10149 lt_prog_compiler_pic='-PIC' 10150 lt_prog_compiler_static='-Bstatic' 10151 ;; 10152 tcc*) 10153 # Fabrice Bellard et al's Tiny C Compiler 10154 lt_prog_compiler_wl='-Wl,' 10155 lt_prog_compiler_pic='-fPIC' 10156 lt_prog_compiler_static='-static' 10157 ;; 10158 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10159 # Portland Group compilers (*not* the Pentium gcc compiler, 10160 # which looks to be a dead project) 10161 lt_prog_compiler_wl='-Wl,' 10162 lt_prog_compiler_pic='-fpic' 10163 lt_prog_compiler_static='-Bstatic' 10164 ;; 10165 ccc*) 10166 lt_prog_compiler_wl='-Wl,' 10167 # All Alpha code is PIC. 10168 lt_prog_compiler_static='-non_shared' 10169 ;; 10170 xl* | bgxl* | bgf* | mpixl*) 10171 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10172 lt_prog_compiler_wl='-Wl,' 10173 lt_prog_compiler_pic='-qpic' 10174 lt_prog_compiler_static='-qstaticlink' 10175 ;; 10176 *) 10177 case `$CC -V 2>&1 | sed 5q` in 10178 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10179 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10180 lt_prog_compiler_pic='-KPIC' 10181 lt_prog_compiler_static='-Bstatic' 10182 lt_prog_compiler_wl='' 10183 ;; 10184 *Sun\ F* | *Sun*Fortran*) 10185 lt_prog_compiler_pic='-KPIC' 10186 lt_prog_compiler_static='-Bstatic' 10187 lt_prog_compiler_wl='-Qoption ld ' 10188 ;; 10189 *Sun\ C*) 10190 # Sun C 5.9 10191 lt_prog_compiler_pic='-KPIC' 10192 lt_prog_compiler_static='-Bstatic' 10193 lt_prog_compiler_wl='-Wl,' 10194 ;; 10195 *Intel*\ [CF]*Compiler*) 10196 lt_prog_compiler_wl='-Wl,' 10197 lt_prog_compiler_pic='-fPIC' 10198 lt_prog_compiler_static='-static' 10199 ;; 10200 *Portland\ Group*) 10201 lt_prog_compiler_wl='-Wl,' 10202 lt_prog_compiler_pic='-fpic' 10203 lt_prog_compiler_static='-Bstatic' 10204 ;; 10205 esac 10206 ;; 10207 esac 10208 ;; 10209 10210 newsos6) 10211 lt_prog_compiler_pic='-KPIC' 10212 lt_prog_compiler_static='-Bstatic' 10213 ;; 10214 10215 *nto* | *qnx*) 10216 # QNX uses GNU C++, but need to define -shared option too, otherwise 10217 # it will coredump. 10218 lt_prog_compiler_pic='-fPIC -shared' 10219 ;; 10220 10221 osf3* | osf4* | osf5*) 10222 lt_prog_compiler_wl='-Wl,' 10223 # All OSF/1 code is PIC. 10224 lt_prog_compiler_static='-non_shared' 10225 ;; 10226 10227 rdos*) 10228 lt_prog_compiler_static='-non_shared' 10229 ;; 10230 10231 solaris*) 10232 lt_prog_compiler_pic='-KPIC' 10233 lt_prog_compiler_static='-Bstatic' 10234 case $cc_basename in 10235 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10236 lt_prog_compiler_wl='-Qoption ld ';; 10237 *) 10238 lt_prog_compiler_wl='-Wl,';; 10239 esac 10240 ;; 10241 10242 sunos4*) 10243 lt_prog_compiler_wl='-Qoption ld ' 10244 lt_prog_compiler_pic='-PIC' 10245 lt_prog_compiler_static='-Bstatic' 10246 ;; 10247 10248 sysv4 | sysv4.2uw2* | sysv4.3*) 10249 lt_prog_compiler_wl='-Wl,' 10250 lt_prog_compiler_pic='-KPIC' 10251 lt_prog_compiler_static='-Bstatic' 10252 ;; 10253 10254 sysv4*MP*) 10255 if test -d /usr/nec; then 10256 lt_prog_compiler_pic='-Kconform_pic' 10257 lt_prog_compiler_static='-Bstatic' 10258 fi 10259 ;; 10260 10261 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10262 lt_prog_compiler_wl='-Wl,' 10263 lt_prog_compiler_pic='-KPIC' 10264 lt_prog_compiler_static='-Bstatic' 10265 ;; 10266 10267 unicos*) 10268 lt_prog_compiler_wl='-Wl,' 10269 lt_prog_compiler_can_build_shared=no 10270 ;; 10271 10272 uts4*) 10273 lt_prog_compiler_pic='-pic' 10274 lt_prog_compiler_static='-Bstatic' 10275 ;; 10276 10277 *) 10278 lt_prog_compiler_can_build_shared=no 10279 ;; 10280 esac 10281 fi 10282 10283case $host_os in 10284 # For platforms that do not support PIC, -DPIC is meaningless: 10285 *djgpp*) 10286 lt_prog_compiler_pic= 10287 ;; 10288 *) 10289 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10290 ;; 10291esac 10292 10293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10294printf %s "checking for $compiler option to produce PIC... " >&6; } 10295if test ${lt_cv_prog_compiler_pic+y} 10296then : 10297 printf %s "(cached) " >&6 10298else $as_nop 10299 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10300fi 10301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10302printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10303lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10304 10305# 10306# Check to make sure the PIC flag actually works. 10307# 10308if test -n "$lt_prog_compiler_pic"; then 10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10310printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10311if test ${lt_cv_prog_compiler_pic_works+y} 10312then : 10313 printf %s "(cached) " >&6 10314else $as_nop 10315 lt_cv_prog_compiler_pic_works=no 10316 ac_outfile=conftest.$ac_objext 10317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10318 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10319 # Insert the option either (1) after the last *FLAGS variable, or 10320 # (2) before a word containing "conftest.", or (3) at the end. 10321 # Note that $ac_compile itself does not contain backslashes and begins 10322 # with a dollar sign (not a hyphen), so the echo should work correctly. 10323 # The option is referenced via a variable to avoid confusing sed. 10324 lt_compile=`echo "$ac_compile" | $SED \ 10325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10327 -e 's:$: $lt_compiler_flag:'` 10328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10329 (eval "$lt_compile" 2>conftest.err) 10330 ac_status=$? 10331 cat conftest.err >&5 10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10333 if (exit $ac_status) && test -s "$ac_outfile"; then 10334 # The compiler can only warn and ignore the option if not recognized 10335 # So say no if there are warnings other than the usual output. 10336 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10338 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10339 lt_cv_prog_compiler_pic_works=yes 10340 fi 10341 fi 10342 $RM conftest* 10343 10344fi 10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10346printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10347 10348if test yes = "$lt_cv_prog_compiler_pic_works"; then 10349 case $lt_prog_compiler_pic in 10350 "" | " "*) ;; 10351 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10352 esac 10353else 10354 lt_prog_compiler_pic= 10355 lt_prog_compiler_can_build_shared=no 10356fi 10357 10358fi 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370# 10371# Check to make sure the static flag actually works. 10372# 10373wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10375printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10376if test ${lt_cv_prog_compiler_static_works+y} 10377then : 10378 printf %s "(cached) " >&6 10379else $as_nop 10380 lt_cv_prog_compiler_static_works=no 10381 save_LDFLAGS=$LDFLAGS 10382 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10383 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10385 # The linker can only warn and ignore the option if not recognized 10386 # So say no if there are warnings 10387 if test -s conftest.err; then 10388 # Append any errors to the config.log. 10389 cat conftest.err 1>&5 10390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10392 if diff conftest.exp conftest.er2 >/dev/null; then 10393 lt_cv_prog_compiler_static_works=yes 10394 fi 10395 else 10396 lt_cv_prog_compiler_static_works=yes 10397 fi 10398 fi 10399 $RM -r conftest* 10400 LDFLAGS=$save_LDFLAGS 10401 10402fi 10403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10404printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10405 10406if test yes = "$lt_cv_prog_compiler_static_works"; then 10407 : 10408else 10409 lt_prog_compiler_static= 10410fi 10411 10412 10413 10414 10415 10416 10417 10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10419printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10420if test ${lt_cv_prog_compiler_c_o+y} 10421then : 10422 printf %s "(cached) " >&6 10423else $as_nop 10424 lt_cv_prog_compiler_c_o=no 10425 $RM -r conftest 2>/dev/null 10426 mkdir conftest 10427 cd conftest 10428 mkdir out 10429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10430 10431 lt_compiler_flag="-o out/conftest2.$ac_objext" 10432 # Insert the option either (1) after the last *FLAGS variable, or 10433 # (2) before a word containing "conftest.", or (3) at the end. 10434 # Note that $ac_compile itself does not contain backslashes and begins 10435 # with a dollar sign (not a hyphen), so the echo should work correctly. 10436 lt_compile=`echo "$ac_compile" | $SED \ 10437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10439 -e 's:$: $lt_compiler_flag:'` 10440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10441 (eval "$lt_compile" 2>out/conftest.err) 10442 ac_status=$? 10443 cat out/conftest.err >&5 10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10445 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10446 then 10447 # The compiler can only warn and ignore the option if not recognized 10448 # So say no if there are warnings 10449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10452 lt_cv_prog_compiler_c_o=yes 10453 fi 10454 fi 10455 chmod u+w . 2>&5 10456 $RM conftest* 10457 # SGI C++ compiler will create directory out/ii_files/ for 10458 # template instantiation 10459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10460 $RM out/* && rmdir out 10461 cd .. 10462 $RM -r conftest 10463 $RM conftest* 10464 10465fi 10466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10467printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10468 10469 10470 10471 10472 10473 10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10475printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10476if test ${lt_cv_prog_compiler_c_o+y} 10477then : 10478 printf %s "(cached) " >&6 10479else $as_nop 10480 lt_cv_prog_compiler_c_o=no 10481 $RM -r conftest 2>/dev/null 10482 mkdir conftest 10483 cd conftest 10484 mkdir out 10485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10486 10487 lt_compiler_flag="-o out/conftest2.$ac_objext" 10488 # Insert the option either (1) after the last *FLAGS variable, or 10489 # (2) before a word containing "conftest.", or (3) at the end. 10490 # Note that $ac_compile itself does not contain backslashes and begins 10491 # with a dollar sign (not a hyphen), so the echo should work correctly. 10492 lt_compile=`echo "$ac_compile" | $SED \ 10493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10495 -e 's:$: $lt_compiler_flag:'` 10496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10497 (eval "$lt_compile" 2>out/conftest.err) 10498 ac_status=$? 10499 cat out/conftest.err >&5 10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10501 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10502 then 10503 # The compiler can only warn and ignore the option if not recognized 10504 # So say no if there are warnings 10505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10508 lt_cv_prog_compiler_c_o=yes 10509 fi 10510 fi 10511 chmod u+w . 2>&5 10512 $RM conftest* 10513 # SGI C++ compiler will create directory out/ii_files/ for 10514 # template instantiation 10515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10516 $RM out/* && rmdir out 10517 cd .. 10518 $RM -r conftest 10519 $RM conftest* 10520 10521fi 10522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10523printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10524 10525 10526 10527 10528hard_links=nottested 10529if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10530 # do not overwrite the value of need_locks provided by the user 10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10532printf %s "checking if we can lock with hard links... " >&6; } 10533 hard_links=yes 10534 $RM conftest* 10535 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10536 touch conftest.a 10537 ln conftest.a conftest.b 2>&5 || hard_links=no 10538 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10540printf "%s\n" "$hard_links" >&6; } 10541 if test no = "$hard_links"; then 10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10543printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10544 need_locks=warn 10545 fi 10546else 10547 need_locks=no 10548fi 10549 10550 10551 10552 10553 10554 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10556printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10557 10558 runpath_var= 10559 allow_undefined_flag= 10560 always_export_symbols=no 10561 archive_cmds= 10562 archive_expsym_cmds= 10563 compiler_needs_object=no 10564 enable_shared_with_static_runtimes=no 10565 export_dynamic_flag_spec= 10566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10567 hardcode_automatic=no 10568 hardcode_direct=no 10569 hardcode_direct_absolute=no 10570 hardcode_libdir_flag_spec= 10571 hardcode_libdir_separator= 10572 hardcode_minus_L=no 10573 hardcode_shlibpath_var=unsupported 10574 inherit_rpath=no 10575 link_all_deplibs=unknown 10576 module_cmds= 10577 module_expsym_cmds= 10578 old_archive_from_new_cmds= 10579 old_archive_from_expsyms_cmds= 10580 thread_safe_flag_spec= 10581 whole_archive_flag_spec= 10582 # include_expsyms should be a list of space-separated symbols to be *always* 10583 # included in the symbol list 10584 include_expsyms= 10585 # exclude_expsyms can be an extended regexp of symbols to exclude 10586 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10587 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10588 # as well as any symbol that contains 'd'. 10589 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10591 # platforms (ab)use it in PIC code, but their linkers get confused if 10592 # the symbol is explicitly referenced. Since portable code cannot 10593 # rely on this symbol name, it's probably fine to never include it in 10594 # preloaded symbol tables. 10595 # Exclude shared library initialization/finalization symbols. 10596 extract_expsyms_cmds= 10597 10598 case $host_os in 10599 cygwin* | mingw* | pw32* | cegcc*) 10600 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10601 # When not using gcc, we currently assume that we are using 10602 # Microsoft Visual C++ or Intel C++ Compiler. 10603 if test yes != "$GCC"; then 10604 with_gnu_ld=no 10605 fi 10606 ;; 10607 interix*) 10608 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10609 with_gnu_ld=yes 10610 ;; 10611 openbsd* | bitrig*) 10612 with_gnu_ld=no 10613 ;; 10614 esac 10615 10616 ld_shlibs=yes 10617 10618 # On some targets, GNU ld is compatible enough with the native linker 10619 # that we're better off using the native interface for both. 10620 lt_use_gnu_ld_interface=no 10621 if test yes = "$with_gnu_ld"; then 10622 case $host_os in 10623 aix*) 10624 # The AIX port of GNU ld has always aspired to compatibility 10625 # with the native linker. However, as the warning in the GNU ld 10626 # block says, versions before 2.19.5* couldn't really create working 10627 # shared libraries, regardless of the interface used. 10628 case `$LD -v 2>&1` in 10629 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10630 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10631 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10632 *) 10633 lt_use_gnu_ld_interface=yes 10634 ;; 10635 esac 10636 ;; 10637 *) 10638 lt_use_gnu_ld_interface=yes 10639 ;; 10640 esac 10641 fi 10642 10643 if test yes = "$lt_use_gnu_ld_interface"; then 10644 # If archive_cmds runs LD, not CC, wlarc should be empty 10645 wlarc='$wl' 10646 10647 # Set some defaults for GNU ld with shared library support. These 10648 # are reset later if shared libraries are not supported. Putting them 10649 # here allows them to be overridden if necessary. 10650 runpath_var=LD_RUN_PATH 10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10652 export_dynamic_flag_spec='$wl--export-dynamic' 10653 # ancient GNU ld didn't support --whole-archive et. al. 10654 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10655 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10656 else 10657 whole_archive_flag_spec= 10658 fi 10659 supports_anon_versioning=no 10660 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10661 *GNU\ gold*) supports_anon_versioning=yes ;; 10662 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10663 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10664 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10665 *\ 2.11.*) ;; # other 2.11 versions 10666 *) supports_anon_versioning=yes ;; 10667 esac 10668 10669 # See if GNU ld supports shared libraries. 10670 case $host_os in 10671 aix[3-9]*) 10672 # On AIX/PPC, the GNU linker is very broken 10673 if test ia64 != "$host_cpu"; then 10674 ld_shlibs=no 10675 cat <<_LT_EOF 1>&2 10676 10677*** Warning: the GNU linker, at least up to release 2.19, is reported 10678*** to be unable to reliably create shared libraries on AIX. 10679*** Therefore, libtool is disabling shared libraries support. If you 10680*** really care for shared libraries, you may want to install binutils 10681*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10682*** You will then need to restart the configuration process. 10683 10684_LT_EOF 10685 fi 10686 ;; 10687 10688 amigaos*) 10689 case $host_cpu in 10690 powerpc) 10691 # see comment about AmigaOS4 .so support 10692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10693 archive_expsym_cmds='' 10694 ;; 10695 m68k) 10696 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)' 10697 hardcode_libdir_flag_spec='-L$libdir' 10698 hardcode_minus_L=yes 10699 ;; 10700 esac 10701 ;; 10702 10703 beos*) 10704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10705 allow_undefined_flag=unsupported 10706 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10707 # support --undefined. This deserves some investigation. FIXME 10708 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10709 else 10710 ld_shlibs=no 10711 fi 10712 ;; 10713 10714 cygwin* | mingw* | pw32* | cegcc*) 10715 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10716 # as there is no search path for DLLs. 10717 hardcode_libdir_flag_spec='-L$libdir' 10718 export_dynamic_flag_spec='$wl--export-all-symbols' 10719 allow_undefined_flag=unsupported 10720 always_export_symbols=no 10721 enable_shared_with_static_runtimes=yes 10722 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' 10723 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10724 10725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10727 # If the export-symbols file already is a .def file, use it as 10728 # is; otherwise, prepend EXPORTS... 10729 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10730 cp $export_symbols $output_objdir/$soname.def; 10731 else 10732 echo EXPORTS > $output_objdir/$soname.def; 10733 cat $export_symbols >> $output_objdir/$soname.def; 10734 fi~ 10735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10736 else 10737 ld_shlibs=no 10738 fi 10739 ;; 10740 10741 haiku*) 10742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10743 link_all_deplibs=yes 10744 ;; 10745 10746 os2*) 10747 hardcode_libdir_flag_spec='-L$libdir' 10748 hardcode_minus_L=yes 10749 allow_undefined_flag=unsupported 10750 shrext_cmds=.dll 10751 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10754 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10755 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10757 emximp -o $lib $output_objdir/$libname.def' 10758 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10761 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10762 prefix_cmds="$SED"~ 10763 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10764 prefix_cmds="$prefix_cmds -e 1d"; 10765 fi~ 10766 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10767 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10769 emximp -o $lib $output_objdir/$libname.def' 10770 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10771 enable_shared_with_static_runtimes=yes 10772 file_list_spec='@' 10773 ;; 10774 10775 interix[3-9]*) 10776 hardcode_direct=no 10777 hardcode_shlibpath_var=no 10778 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10779 export_dynamic_flag_spec='$wl-E' 10780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10781 # Instead, shared libraries are loaded at an image base (0x10000000 by 10782 # default) and relocated if they conflict, which is a slow very memory 10783 # consuming and fragmenting process. To avoid this, we pick a random, 10784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10785 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10786 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10787 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' 10788 ;; 10789 10790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10791 tmp_diet=no 10792 if test linux-dietlibc = "$host_os"; then 10793 case $cc_basename in 10794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10795 esac 10796 fi 10797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10798 && test no = "$tmp_diet" 10799 then 10800 tmp_addflag=' $pic_flag' 10801 tmp_sharedflag='-shared' 10802 case $cc_basename,$host_cpu in 10803 pgcc*) # Portland Group C compiler 10804 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' 10805 tmp_addflag=' $pic_flag' 10806 ;; 10807 pgf77* | pgf90* | pgf95* | pgfortran*) 10808 # Portland Group f77 and f90 compilers 10809 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' 10810 tmp_addflag=' $pic_flag -Mnomain' ;; 10811 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10812 tmp_addflag=' -i_dynamic' ;; 10813 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10814 tmp_addflag=' -i_dynamic -nofor_main' ;; 10815 ifc* | ifort*) # Intel Fortran compiler 10816 tmp_addflag=' -nofor_main' ;; 10817 lf95*) # Lahey Fortran 8.1 10818 whole_archive_flag_spec= 10819 tmp_sharedflag='--shared' ;; 10820 nagfor*) # NAGFOR 5.3 10821 tmp_sharedflag='-Wl,-shared' ;; 10822 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10823 tmp_sharedflag='-qmkshrobj' 10824 tmp_addflag= ;; 10825 nvcc*) # Cuda Compiler Driver 2.2 10826 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' 10827 compiler_needs_object=yes 10828 ;; 10829 esac 10830 case `$CC -V 2>&1 | sed 5q` in 10831 *Sun\ C*) # Sun C 5.9 10832 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' 10833 compiler_needs_object=yes 10834 tmp_sharedflag='-G' ;; 10835 *Sun\ F*) # Sun Fortran 8.3 10836 tmp_sharedflag='-G' ;; 10837 esac 10838 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10839 10840 if test yes = "$supports_anon_versioning"; then 10841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10843 echo "local: *; };" >> $output_objdir/$libname.ver~ 10844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10845 fi 10846 10847 case $cc_basename in 10848 tcc*) 10849 export_dynamic_flag_spec='-rdynamic' 10850 ;; 10851 xlf* | bgf* | bgxlf* | mpixlf*) 10852 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10853 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10854 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10855 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10856 if test yes = "$supports_anon_versioning"; then 10857 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10859 echo "local: *; };" >> $output_objdir/$libname.ver~ 10860 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10861 fi 10862 ;; 10863 esac 10864 else 10865 ld_shlibs=no 10866 fi 10867 ;; 10868 10869 netbsd*) 10870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10871 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10872 wlarc= 10873 else 10874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10876 fi 10877 ;; 10878 10879 solaris*) 10880 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10881 ld_shlibs=no 10882 cat <<_LT_EOF 1>&2 10883 10884*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10885*** create shared libraries on Solaris systems. Therefore, libtool 10886*** is disabling shared libraries support. We urge you to upgrade GNU 10887*** binutils to release 2.9.1 or newer. Another option is to modify 10888*** your PATH or compiler configuration so that the native linker is 10889*** used, and then restart. 10890 10891_LT_EOF 10892 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10895 else 10896 ld_shlibs=no 10897 fi 10898 ;; 10899 10900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10901 case `$LD -v 2>&1` in 10902 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10903 ld_shlibs=no 10904 cat <<_LT_EOF 1>&2 10905 10906*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10907*** reliably create shared libraries on SCO systems. Therefore, libtool 10908*** is disabling shared libraries support. We urge you to upgrade GNU 10909*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10910*** your PATH or compiler configuration so that the native linker is 10911*** used, and then restart. 10912 10913_LT_EOF 10914 ;; 10915 *) 10916 # For security reasons, it is highly recommended that you always 10917 # use absolute paths for naming shared libraries, and exclude the 10918 # DT_RUNPATH tag from executables and libraries. But doing so 10919 # requires that you compile everything twice, which is a pain. 10920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10924 else 10925 ld_shlibs=no 10926 fi 10927 ;; 10928 esac 10929 ;; 10930 10931 sunos4*) 10932 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10933 wlarc= 10934 hardcode_direct=yes 10935 hardcode_shlibpath_var=no 10936 ;; 10937 10938 *) 10939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10942 else 10943 ld_shlibs=no 10944 fi 10945 ;; 10946 esac 10947 10948 if test no = "$ld_shlibs"; then 10949 runpath_var= 10950 hardcode_libdir_flag_spec= 10951 export_dynamic_flag_spec= 10952 whole_archive_flag_spec= 10953 fi 10954 else 10955 # PORTME fill in a description of your system's linker (not GNU ld) 10956 case $host_os in 10957 aix3*) 10958 allow_undefined_flag=unsupported 10959 always_export_symbols=yes 10960 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' 10961 # Note: this linker hardcodes the directories in LIBPATH if there 10962 # are no directories specified by -L. 10963 hardcode_minus_L=yes 10964 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10965 # Neither direct hardcoding nor static linking is supported with a 10966 # broken collect2. 10967 hardcode_direct=unsupported 10968 fi 10969 ;; 10970 10971 aix[4-9]*) 10972 if test ia64 = "$host_cpu"; then 10973 # On IA64, the linker does run time linking by default, so we don't 10974 # have to do anything special. 10975 aix_use_runtimelinking=no 10976 exp_sym_flag='-Bexport' 10977 no_entry_flag= 10978 else 10979 # If we're using GNU nm, then we don't want the "-C" option. 10980 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10981 # Without the "-l" option, or with the "-B" option, AIX nm treats 10982 # weak defined symbols like other global defined symbols, whereas 10983 # GNU nm marks them as "W". 10984 # While the 'weak' keyword is ignored in the Export File, we need 10985 # it in the Import File for the 'aix-soname' feature, so we have 10986 # to replace the "-B" option with "-P" for AIX nm. 10987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10988 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' 10989 else 10990 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 == "L") || (\$ 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' 10991 fi 10992 aix_use_runtimelinking=no 10993 10994 # Test if we are trying to use run time linking or normal 10995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10996 # have runtime linking enabled, and use it for executables. 10997 # For shared libraries, we enable/disable runtime linking 10998 # depending on the kind of the shared library created - 10999 # when "with_aix_soname,aix_use_runtimelinking" is: 11000 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11001 # "aix,yes" lib.so shared, rtl:yes, for executables 11002 # lib.a static archive 11003 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11004 # lib.a(lib.so.V) shared, rtl:no, for executables 11005 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11006 # lib.a(lib.so.V) shared, rtl:no 11007 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11008 # lib.a static archive 11009 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11010 for ld_flag in $LDFLAGS; do 11011 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11012 aix_use_runtimelinking=yes 11013 break 11014 fi 11015 done 11016 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11017 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11018 # so we don't have lib.a shared libs to link our executables. 11019 # We have to force runtime linking in this case. 11020 aix_use_runtimelinking=yes 11021 LDFLAGS="$LDFLAGS -Wl,-brtl" 11022 fi 11023 ;; 11024 esac 11025 11026 exp_sym_flag='-bexport' 11027 no_entry_flag='-bnoentry' 11028 fi 11029 11030 # When large executables or shared objects are built, AIX ld can 11031 # have problems creating the table of contents. If linking a library 11032 # or program results in "error TOC overflow" add -mminimal-toc to 11033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11035 11036 archive_cmds='' 11037 hardcode_direct=yes 11038 hardcode_direct_absolute=yes 11039 hardcode_libdir_separator=':' 11040 link_all_deplibs=yes 11041 file_list_spec='$wl-f,' 11042 case $with_aix_soname,$aix_use_runtimelinking in 11043 aix,*) ;; # traditional, no import file 11044 svr4,* | *,yes) # use import file 11045 # The Import File defines what to hardcode. 11046 hardcode_direct=no 11047 hardcode_direct_absolute=no 11048 ;; 11049 esac 11050 11051 if test yes = "$GCC"; then 11052 case $host_os in aix4.[012]|aix4.[012].*) 11053 # We only want to do this on AIX 4.2 and lower, the check 11054 # below for broken collect2 doesn't work under 4.3+ 11055 collect2name=`$CC -print-prog-name=collect2` 11056 if test -f "$collect2name" && 11057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11058 then 11059 # We have reworked collect2 11060 : 11061 else 11062 # We have old collect2 11063 hardcode_direct=unsupported 11064 # It fails to find uninstalled libraries when the uninstalled 11065 # path is not listed in the libpath. Setting hardcode_minus_L 11066 # to unsupported forces relinking 11067 hardcode_minus_L=yes 11068 hardcode_libdir_flag_spec='-L$libdir' 11069 hardcode_libdir_separator= 11070 fi 11071 ;; 11072 esac 11073 shared_flag='-shared' 11074 if test yes = "$aix_use_runtimelinking"; then 11075 shared_flag="$shared_flag "'$wl-G' 11076 fi 11077 # Need to ensure runtime linking is disabled for the traditional 11078 # shared library, or the linker may eventually find shared libraries 11079 # /with/ Import File - we do not want to mix them. 11080 shared_flag_aix='-shared' 11081 shared_flag_svr4='-shared $wl-G' 11082 else 11083 # not using gcc 11084 if test ia64 = "$host_cpu"; then 11085 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11086 # chokes on -Wl,-G. The following line is correct: 11087 shared_flag='-G' 11088 else 11089 if test yes = "$aix_use_runtimelinking"; then 11090 shared_flag='$wl-G' 11091 else 11092 shared_flag='$wl-bM:SRE' 11093 fi 11094 shared_flag_aix='$wl-bM:SRE' 11095 shared_flag_svr4='$wl-G' 11096 fi 11097 fi 11098 11099 export_dynamic_flag_spec='$wl-bexpall' 11100 # It seems that -bexpall does not export symbols beginning with 11101 # underscore (_), so it is better to generate a list of symbols to export. 11102 always_export_symbols=yes 11103 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11104 # Warning - without using the other runtime loading flags (-brtl), 11105 # -berok will link without error, but may produce a broken library. 11106 allow_undefined_flag='-berok' 11107 # Determine the default libpath from the value encoded in an 11108 # empty executable. 11109 if test set = "${lt_cv_aix_libpath+set}"; then 11110 aix_libpath=$lt_cv_aix_libpath 11111else 11112 if test ${lt_cv_aix_libpath_+y} 11113then : 11114 printf %s "(cached) " >&6 11115else $as_nop 11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11117/* end confdefs.h. */ 11118 11119int 11120main (void) 11121{ 11122 11123 ; 11124 return 0; 11125} 11126_ACEOF 11127if ac_fn_c_try_link "$LINENO" 11128then : 11129 11130 lt_aix_libpath_sed=' 11131 /Import File Strings/,/^$/ { 11132 /^0/ { 11133 s/^0 *\([^ ]*\) *$/\1/ 11134 p 11135 } 11136 }' 11137 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11138 # Check for a 64-bit object if we didn't find anything. 11139 if test -z "$lt_cv_aix_libpath_"; then 11140 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11141 fi 11142fi 11143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11144 conftest$ac_exeext conftest.$ac_ext 11145 if test -z "$lt_cv_aix_libpath_"; then 11146 lt_cv_aix_libpath_=/usr/lib:/lib 11147 fi 11148 11149fi 11150 11151 aix_libpath=$lt_cv_aix_libpath_ 11152fi 11153 11154 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11155 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 11156 else 11157 if test ia64 = "$host_cpu"; then 11158 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11159 allow_undefined_flag="-z nodefs" 11160 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" 11161 else 11162 # Determine the default libpath from the value encoded in an 11163 # empty executable. 11164 if test set = "${lt_cv_aix_libpath+set}"; then 11165 aix_libpath=$lt_cv_aix_libpath 11166else 11167 if test ${lt_cv_aix_libpath_+y} 11168then : 11169 printf %s "(cached) " >&6 11170else $as_nop 11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11172/* end confdefs.h. */ 11173 11174int 11175main (void) 11176{ 11177 11178 ; 11179 return 0; 11180} 11181_ACEOF 11182if ac_fn_c_try_link "$LINENO" 11183then : 11184 11185 lt_aix_libpath_sed=' 11186 /Import File Strings/,/^$/ { 11187 /^0/ { 11188 s/^0 *\([^ ]*\) *$/\1/ 11189 p 11190 } 11191 }' 11192 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11193 # Check for a 64-bit object if we didn't find anything. 11194 if test -z "$lt_cv_aix_libpath_"; then 11195 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11196 fi 11197fi 11198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11199 conftest$ac_exeext conftest.$ac_ext 11200 if test -z "$lt_cv_aix_libpath_"; then 11201 lt_cv_aix_libpath_=/usr/lib:/lib 11202 fi 11203 11204fi 11205 11206 aix_libpath=$lt_cv_aix_libpath_ 11207fi 11208 11209 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11210 # Warning - without using the other run time loading flags, 11211 # -berok will link without error, but may produce a broken library. 11212 no_undefined_flag=' $wl-bernotok' 11213 allow_undefined_flag=' $wl-berok' 11214 if test yes = "$with_gnu_ld"; then 11215 # We only use this code for GNU lds that support --whole-archive. 11216 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11217 else 11218 # Exported symbols can be pulled into shared objects from archives 11219 whole_archive_flag_spec='$convenience' 11220 fi 11221 archive_cmds_need_lc=yes 11222 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11223 # -brtl affects multiple linker settings, -berok does not and is overridden later 11224 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11225 if test svr4 != "$with_aix_soname"; then 11226 # This is similar to how AIX traditionally builds its shared libraries. 11227 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' 11228 fi 11229 if test aix != "$with_aix_soname"; then 11230 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' 11231 else 11232 # used by -dlpreopen to get the symbols 11233 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11234 fi 11235 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11236 fi 11237 fi 11238 ;; 11239 11240 amigaos*) 11241 case $host_cpu in 11242 powerpc) 11243 # see comment about AmigaOS4 .so support 11244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11245 archive_expsym_cmds='' 11246 ;; 11247 m68k) 11248 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)' 11249 hardcode_libdir_flag_spec='-L$libdir' 11250 hardcode_minus_L=yes 11251 ;; 11252 esac 11253 ;; 11254 11255 bsdi[45]*) 11256 export_dynamic_flag_spec=-rdynamic 11257 ;; 11258 11259 cygwin* | mingw* | pw32* | cegcc*) 11260 # When not using gcc, we currently assume that we are using 11261 # Microsoft Visual C++ or Intel C++ Compiler. 11262 # hardcode_libdir_flag_spec is actually meaningless, as there is 11263 # no search path for DLLs. 11264 case $cc_basename in 11265 cl* | icl*) 11266 # Native MSVC or ICC 11267 hardcode_libdir_flag_spec=' ' 11268 allow_undefined_flag=unsupported 11269 always_export_symbols=yes 11270 file_list_spec='@' 11271 # Tell ltmain to make .lib files, not .a files. 11272 libext=lib 11273 # Tell ltmain to make .dll files, not .so files. 11274 shrext_cmds=.dll 11275 # FIXME: Setting linknames here is a bad hack. 11276 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11277 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11278 cp "$export_symbols" "$output_objdir/$soname.def"; 11279 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11280 else 11281 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11282 fi~ 11283 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11284 linknames=' 11285 # The linker will not automatically build a static lib if we build a DLL. 11286 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11287 enable_shared_with_static_runtimes=yes 11288 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11290 # Don't use ranlib 11291 old_postinstall_cmds='chmod 644 $oldlib' 11292 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11293 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11294 case $lt_outputfile in 11295 *.exe|*.EXE) ;; 11296 *) 11297 lt_outputfile=$lt_outputfile.exe 11298 lt_tool_outputfile=$lt_tool_outputfile.exe 11299 ;; 11300 esac~ 11301 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11302 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11303 $RM "$lt_outputfile.manifest"; 11304 fi' 11305 ;; 11306 *) 11307 # Assume MSVC and ICC wrapper 11308 hardcode_libdir_flag_spec=' ' 11309 allow_undefined_flag=unsupported 11310 # Tell ltmain to make .lib files, not .a files. 11311 libext=lib 11312 # Tell ltmain to make .dll files, not .so files. 11313 shrext_cmds=.dll 11314 # FIXME: Setting linknames here is a bad hack. 11315 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11316 # The linker will automatically build a .lib file if we build a DLL. 11317 old_archive_from_new_cmds='true' 11318 # FIXME: Should let the user specify the lib program. 11319 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11320 enable_shared_with_static_runtimes=yes 11321 ;; 11322 esac 11323 ;; 11324 11325 darwin* | rhapsody*) 11326 11327 11328 archive_cmds_need_lc=no 11329 hardcode_direct=no 11330 hardcode_automatic=yes 11331 hardcode_shlibpath_var=unsupported 11332 if test yes = "$lt_cv_ld_force_load"; then 11333 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\"`' 11334 11335 else 11336 whole_archive_flag_spec='' 11337 fi 11338 link_all_deplibs=yes 11339 allow_undefined_flag=$_lt_dar_allow_undefined 11340 case $cc_basename in 11341 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11342 *) _lt_dar_can_shared=$GCC ;; 11343 esac 11344 if test yes = "$_lt_dar_can_shared"; then 11345 output_verbose_link_cmd=func_echo_all 11346 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11347 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11348 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" 11349 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" 11350 11351 else 11352 ld_shlibs=no 11353 fi 11354 11355 ;; 11356 11357 dgux*) 11358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11359 hardcode_libdir_flag_spec='-L$libdir' 11360 hardcode_shlibpath_var=no 11361 ;; 11362 11363 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11364 # support. Future versions do this automatically, but an explicit c++rt0.o 11365 # does not break anything, and helps significantly (at the cost of a little 11366 # extra space). 11367 freebsd2.2*) 11368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11369 hardcode_libdir_flag_spec='-R$libdir' 11370 hardcode_direct=yes 11371 hardcode_shlibpath_var=no 11372 ;; 11373 11374 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11375 freebsd2.*) 11376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11377 hardcode_direct=yes 11378 hardcode_minus_L=yes 11379 hardcode_shlibpath_var=no 11380 ;; 11381 11382 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11383 freebsd* | dragonfly*) 11384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11385 hardcode_libdir_flag_spec='-R$libdir' 11386 hardcode_direct=yes 11387 hardcode_shlibpath_var=no 11388 ;; 11389 11390 hpux9*) 11391 if test yes = "$GCC"; then 11392 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' 11393 else 11394 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' 11395 fi 11396 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11397 hardcode_libdir_separator=: 11398 hardcode_direct=yes 11399 11400 # hardcode_minus_L: Not really in the search PATH, 11401 # but as the default location of the library. 11402 hardcode_minus_L=yes 11403 export_dynamic_flag_spec='$wl-E' 11404 ;; 11405 11406 hpux10*) 11407 if test yes,no = "$GCC,$with_gnu_ld"; then 11408 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11409 else 11410 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11411 fi 11412 if test no = "$with_gnu_ld"; then 11413 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11414 hardcode_libdir_separator=: 11415 hardcode_direct=yes 11416 hardcode_direct_absolute=yes 11417 export_dynamic_flag_spec='$wl-E' 11418 # hardcode_minus_L: Not really in the search PATH, 11419 # but as the default location of the library. 11420 hardcode_minus_L=yes 11421 fi 11422 ;; 11423 11424 hpux11*) 11425 if test yes,no = "$GCC,$with_gnu_ld"; then 11426 case $host_cpu in 11427 hppa*64*) 11428 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11429 ;; 11430 ia64*) 11431 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11432 ;; 11433 *) 11434 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11435 ;; 11436 esac 11437 else 11438 case $host_cpu in 11439 hppa*64*) 11440 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11441 ;; 11442 ia64*) 11443 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11444 ;; 11445 *) 11446 11447 # Older versions of the 11.00 compiler do not understand -b yet 11448 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11450printf %s "checking if $CC understands -b... " >&6; } 11451if test ${lt_cv_prog_compiler__b+y} 11452then : 11453 printf %s "(cached) " >&6 11454else $as_nop 11455 lt_cv_prog_compiler__b=no 11456 save_LDFLAGS=$LDFLAGS 11457 LDFLAGS="$LDFLAGS -b" 11458 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11460 # The linker can only warn and ignore the option if not recognized 11461 # So say no if there are warnings 11462 if test -s conftest.err; then 11463 # Append any errors to the config.log. 11464 cat conftest.err 1>&5 11465 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11467 if diff conftest.exp conftest.er2 >/dev/null; then 11468 lt_cv_prog_compiler__b=yes 11469 fi 11470 else 11471 lt_cv_prog_compiler__b=yes 11472 fi 11473 fi 11474 $RM -r conftest* 11475 LDFLAGS=$save_LDFLAGS 11476 11477fi 11478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11479printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11480 11481if test yes = "$lt_cv_prog_compiler__b"; then 11482 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11483else 11484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11485fi 11486 11487 ;; 11488 esac 11489 fi 11490 if test no = "$with_gnu_ld"; then 11491 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11492 hardcode_libdir_separator=: 11493 11494 case $host_cpu in 11495 hppa*64*|ia64*) 11496 hardcode_direct=no 11497 hardcode_shlibpath_var=no 11498 ;; 11499 *) 11500 hardcode_direct=yes 11501 hardcode_direct_absolute=yes 11502 export_dynamic_flag_spec='$wl-E' 11503 11504 # hardcode_minus_L: Not really in the search PATH, 11505 # but as the default location of the library. 11506 hardcode_minus_L=yes 11507 ;; 11508 esac 11509 fi 11510 ;; 11511 11512 irix5* | irix6* | nonstopux*) 11513 if test yes = "$GCC"; then 11514 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' 11515 # Try to use the -exported_symbol ld option, if it does not 11516 # work, assume that -exports_file does not work either and 11517 # implicitly export all symbols. 11518 # This should be the same for all languages, so no per-tag cache variable. 11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11520printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11521if test ${lt_cv_irix_exported_symbol+y} 11522then : 11523 printf %s "(cached) " >&6 11524else $as_nop 11525 save_LDFLAGS=$LDFLAGS 11526 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11528/* end confdefs.h. */ 11529int foo (void) { return 0; } 11530_ACEOF 11531if ac_fn_c_try_link "$LINENO" 11532then : 11533 lt_cv_irix_exported_symbol=yes 11534else $as_nop 11535 lt_cv_irix_exported_symbol=no 11536fi 11537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11538 conftest$ac_exeext conftest.$ac_ext 11539 LDFLAGS=$save_LDFLAGS 11540fi 11541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11542printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11543 if test yes = "$lt_cv_irix_exported_symbol"; then 11544 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' 11545 fi 11546 else 11547 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' 11548 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' 11549 fi 11550 archive_cmds_need_lc='no' 11551 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11552 hardcode_libdir_separator=: 11553 inherit_rpath=yes 11554 link_all_deplibs=yes 11555 ;; 11556 11557 linux*) 11558 case $cc_basename in 11559 tcc*) 11560 # Fabrice Bellard et al's Tiny C Compiler 11561 ld_shlibs=yes 11562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11563 ;; 11564 esac 11565 ;; 11566 11567 netbsd*) 11568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11570 else 11571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11572 fi 11573 hardcode_libdir_flag_spec='-R$libdir' 11574 hardcode_direct=yes 11575 hardcode_shlibpath_var=no 11576 ;; 11577 11578 newsos6) 11579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11580 hardcode_direct=yes 11581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11582 hardcode_libdir_separator=: 11583 hardcode_shlibpath_var=no 11584 ;; 11585 11586 *nto* | *qnx*) 11587 ;; 11588 11589 openbsd* | bitrig*) 11590 if test -f /usr/libexec/ld.so; then 11591 hardcode_direct=yes 11592 hardcode_shlibpath_var=no 11593 hardcode_direct_absolute=yes 11594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11597 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11598 export_dynamic_flag_spec='$wl-E' 11599 else 11600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11601 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11602 fi 11603 else 11604 ld_shlibs=no 11605 fi 11606 ;; 11607 11608 os2*) 11609 hardcode_libdir_flag_spec='-L$libdir' 11610 hardcode_minus_L=yes 11611 allow_undefined_flag=unsupported 11612 shrext_cmds=.dll 11613 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11614 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11615 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11616 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11617 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11618 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11619 emximp -o $lib $output_objdir/$libname.def' 11620 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11621 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11622 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11623 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11624 prefix_cmds="$SED"~ 11625 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11626 prefix_cmds="$prefix_cmds -e 1d"; 11627 fi~ 11628 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11629 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11630 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11631 emximp -o $lib $output_objdir/$libname.def' 11632 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11633 enable_shared_with_static_runtimes=yes 11634 file_list_spec='@' 11635 ;; 11636 11637 osf3*) 11638 if test yes = "$GCC"; then 11639 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11640 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' 11641 else 11642 allow_undefined_flag=' -expect_unresolved \*' 11643 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' 11644 fi 11645 archive_cmds_need_lc='no' 11646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11647 hardcode_libdir_separator=: 11648 ;; 11649 11650 osf4* | osf5*) # as osf3* with the addition of -msym flag 11651 if test yes = "$GCC"; then 11652 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11653 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' 11654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11655 else 11656 allow_undefined_flag=' -expect_unresolved \*' 11657 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' 11658 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~ 11659 $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' 11660 11661 # Both c and cxx compiler support -rpath directly 11662 hardcode_libdir_flag_spec='-rpath $libdir' 11663 fi 11664 archive_cmds_need_lc='no' 11665 hardcode_libdir_separator=: 11666 ;; 11667 11668 solaris*) 11669 no_undefined_flag=' -z defs' 11670 if test yes = "$GCC"; then 11671 wlarc='$wl' 11672 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11674 $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' 11675 else 11676 case `$CC -V 2>&1` in 11677 *"Compilers 5.0"*) 11678 wlarc='' 11679 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11681 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11682 ;; 11683 *) 11684 wlarc='$wl' 11685 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11687 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11688 ;; 11689 esac 11690 fi 11691 hardcode_libdir_flag_spec='-R$libdir' 11692 hardcode_shlibpath_var=no 11693 case $host_os in 11694 solaris2.[0-5] | solaris2.[0-5].*) ;; 11695 *) 11696 # The compiler driver will combine and reorder linker options, 11697 # but understands '-z linker_flag'. GCC discards it without '$wl', 11698 # but is careful enough not to reorder. 11699 # Supported since Solaris 2.6 (maybe 2.5.1?) 11700 if test yes = "$GCC"; then 11701 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11702 else 11703 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11704 fi 11705 ;; 11706 esac 11707 link_all_deplibs=yes 11708 ;; 11709 11710 sunos4*) 11711 if test sequent = "$host_vendor"; then 11712 # Use $CC to link under sequent, because it throws in some extra .o 11713 # files that make .init and .fini sections work. 11714 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11715 else 11716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11717 fi 11718 hardcode_libdir_flag_spec='-L$libdir' 11719 hardcode_direct=yes 11720 hardcode_minus_L=yes 11721 hardcode_shlibpath_var=no 11722 ;; 11723 11724 sysv4) 11725 case $host_vendor in 11726 sni) 11727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11728 hardcode_direct=yes # is this really true??? 11729 ;; 11730 siemens) 11731 ## LD is ld it makes a PLAMLIB 11732 ## CC just makes a GrossModule. 11733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11734 reload_cmds='$CC -r -o $output$reload_objs' 11735 hardcode_direct=no 11736 ;; 11737 motorola) 11738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11740 ;; 11741 esac 11742 runpath_var='LD_RUN_PATH' 11743 hardcode_shlibpath_var=no 11744 ;; 11745 11746 sysv4.3*) 11747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11748 hardcode_shlibpath_var=no 11749 export_dynamic_flag_spec='-Bexport' 11750 ;; 11751 11752 sysv4*MP*) 11753 if test -d /usr/nec; then 11754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11755 hardcode_shlibpath_var=no 11756 runpath_var=LD_RUN_PATH 11757 hardcode_runpath_var=yes 11758 ld_shlibs=yes 11759 fi 11760 ;; 11761 11762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11763 no_undefined_flag='$wl-z,text' 11764 archive_cmds_need_lc=no 11765 hardcode_shlibpath_var=no 11766 runpath_var='LD_RUN_PATH' 11767 11768 if test yes = "$GCC"; then 11769 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11770 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11771 else 11772 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11773 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11774 fi 11775 ;; 11776 11777 sysv5* | sco3.2v5* | sco5v6*) 11778 # Note: We CANNOT use -z defs as we might desire, because we do not 11779 # link with -lc, and that would cause any symbols used from libc to 11780 # always be unresolved, which means just about no library would 11781 # ever link correctly. If we're not using GNU ld we use -z text 11782 # though, which does catch some bad symbols but isn't as heavy-handed 11783 # as -z defs. 11784 no_undefined_flag='$wl-z,text' 11785 allow_undefined_flag='$wl-z,nodefs' 11786 archive_cmds_need_lc=no 11787 hardcode_shlibpath_var=no 11788 hardcode_libdir_flag_spec='$wl-R,$libdir' 11789 hardcode_libdir_separator=':' 11790 link_all_deplibs=yes 11791 export_dynamic_flag_spec='$wl-Bexport' 11792 runpath_var='LD_RUN_PATH' 11793 11794 if test yes = "$GCC"; then 11795 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11796 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11797 else 11798 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11799 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11800 fi 11801 ;; 11802 11803 uts4*) 11804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11805 hardcode_libdir_flag_spec='-L$libdir' 11806 hardcode_shlibpath_var=no 11807 ;; 11808 11809 *) 11810 ld_shlibs=no 11811 ;; 11812 esac 11813 11814 if test sni = "$host_vendor"; then 11815 case $host in 11816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11817 export_dynamic_flag_spec='$wl-Blargedynsym' 11818 ;; 11819 esac 11820 fi 11821 fi 11822 11823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11824printf "%s\n" "$ld_shlibs" >&6; } 11825test no = "$ld_shlibs" && can_build_shared=no 11826 11827with_gnu_ld=$with_gnu_ld 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843# 11844# Do we need to explicitly link libc? 11845# 11846case "x$archive_cmds_need_lc" in 11847x|xyes) 11848 # Assume -lc should be added 11849 archive_cmds_need_lc=yes 11850 11851 if test yes,yes = "$GCC,$enable_shared"; then 11852 case $archive_cmds in 11853 *'~'*) 11854 # FIXME: we may have to deal with multi-command sequences. 11855 ;; 11856 '$CC '*) 11857 # Test whether the compiler implicitly links with -lc since on some 11858 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11859 # to ld, don't add -lc before -lgcc. 11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11861printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11862if test ${lt_cv_archive_cmds_need_lc+y} 11863then : 11864 printf %s "(cached) " >&6 11865else $as_nop 11866 $RM conftest* 11867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11868 11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11870 (eval $ac_compile) 2>&5 11871 ac_status=$? 11872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11873 test $ac_status = 0; } 2>conftest.err; then 11874 soname=conftest 11875 lib=conftest 11876 libobjs=conftest.$ac_objext 11877 deplibs= 11878 wl=$lt_prog_compiler_wl 11879 pic_flag=$lt_prog_compiler_pic 11880 compiler_flags=-v 11881 linker_flags=-v 11882 verstring= 11883 output_objdir=. 11884 libname=conftest 11885 lt_save_allow_undefined_flag=$allow_undefined_flag 11886 allow_undefined_flag= 11887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11888 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11889 ac_status=$? 11890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11891 test $ac_status = 0; } 11892 then 11893 lt_cv_archive_cmds_need_lc=no 11894 else 11895 lt_cv_archive_cmds_need_lc=yes 11896 fi 11897 allow_undefined_flag=$lt_save_allow_undefined_flag 11898 else 11899 cat conftest.err 1>&5 11900 fi 11901 $RM conftest* 11902 11903fi 11904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11905printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11906 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11907 ;; 11908 esac 11909 fi 11910 ;; 11911esac 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12065printf %s "checking dynamic linker characteristics... " >&6; } 12066 12067if test yes = "$GCC"; then 12068 case $host_os in 12069 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12070 *) lt_awk_arg='/^libraries:/' ;; 12071 esac 12072 case $host_os in 12073 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12074 *) lt_sed_strip_eq='s|=/|/|g' ;; 12075 esac 12076 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12077 case $lt_search_path_spec in 12078 *\;*) 12079 # if the path contains ";" then we assume it to be the separator 12080 # otherwise default to the standard path separator (i.e. ":") - it is 12081 # assumed that no part of a normal pathname contains ";" but that should 12082 # okay in the real world where ";" in dirpaths is itself problematic. 12083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12084 ;; 12085 *) 12086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12087 ;; 12088 esac 12089 # Ok, now we have the path, separated by spaces, we can step through it 12090 # and add multilib dir if necessary... 12091 lt_tmp_lt_search_path_spec= 12092 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12093 # ...but if some path component already ends with the multilib dir we assume 12094 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12095 case "$lt_multi_os_dir; $lt_search_path_spec " in 12096 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12097 lt_multi_os_dir= 12098 ;; 12099 esac 12100 for lt_sys_path in $lt_search_path_spec; do 12101 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12103 elif test -n "$lt_multi_os_dir"; then 12104 test -d "$lt_sys_path" && \ 12105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12106 fi 12107 done 12108 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12109BEGIN {RS = " "; FS = "/|\n";} { 12110 lt_foo = ""; 12111 lt_count = 0; 12112 for (lt_i = NF; lt_i > 0; lt_i--) { 12113 if ($lt_i != "" && $lt_i != ".") { 12114 if ($lt_i == "..") { 12115 lt_count++; 12116 } else { 12117 if (lt_count == 0) { 12118 lt_foo = "/" $lt_i lt_foo; 12119 } else { 12120 lt_count--; 12121 } 12122 } 12123 } 12124 } 12125 if (lt_foo != "") { lt_freq[lt_foo]++; } 12126 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12127}'` 12128 # AWK program above erroneously prepends '/' to C:/dos/paths 12129 # for these hosts. 12130 case $host_os in 12131 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12132 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12133 esac 12134 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12135else 12136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12137fi 12138library_names_spec= 12139libname_spec='lib$name' 12140soname_spec= 12141shrext_cmds=.so 12142postinstall_cmds= 12143postuninstall_cmds= 12144finish_cmds= 12145finish_eval= 12146shlibpath_var= 12147shlibpath_overrides_runpath=unknown 12148version_type=none 12149dynamic_linker="$host_os ld.so" 12150sys_lib_dlsearch_path_spec="/lib /usr/lib" 12151need_lib_prefix=unknown 12152hardcode_into_libs=no 12153 12154# when you set need_version to no, make sure it does not cause -set_version 12155# flags to be left without arguments 12156need_version=unknown 12157 12158 12159 12160case $host_os in 12161aix3*) 12162 version_type=linux # correct to gnu/linux during the next big refactor 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12164 shlibpath_var=LIBPATH 12165 12166 # AIX 3 has no versioning support, so we append a major version to the name. 12167 soname_spec='$libname$release$shared_ext$major' 12168 ;; 12169 12170aix[4-9]*) 12171 version_type=linux # correct to gnu/linux during the next big refactor 12172 need_lib_prefix=no 12173 need_version=no 12174 hardcode_into_libs=yes 12175 if test ia64 = "$host_cpu"; then 12176 # AIX 5 supports IA64 12177 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12178 shlibpath_var=LD_LIBRARY_PATH 12179 else 12180 # With GCC up to 2.95.x, collect2 would create an import file 12181 # for dependence libraries. The import file would start with 12182 # the line '#! .'. This would cause the generated library to 12183 # depend on '.', always an invalid library. This was fixed in 12184 # development snapshots of GCC prior to 3.0. 12185 case $host_os in 12186 aix4 | aix4.[01] | aix4.[01].*) 12187 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12188 echo ' yes ' 12189 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12190 : 12191 else 12192 can_build_shared=no 12193 fi 12194 ;; 12195 esac 12196 # Using Import Files as archive members, it is possible to support 12197 # filename-based versioning of shared library archives on AIX. While 12198 # this would work for both with and without runtime linking, it will 12199 # prevent static linking of such archives. So we do filename-based 12200 # shared library versioning with .so extension only, which is used 12201 # when both runtime linking and shared linking is enabled. 12202 # Unfortunately, runtime linking may impact performance, so we do 12203 # not want this to be the default eventually. Also, we use the 12204 # versioned .so libs for executables only if there is the -brtl 12205 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12206 # To allow for filename-based versioning support, we need to create 12207 # libNAME.so.V as an archive file, containing: 12208 # *) an Import File, referring to the versioned filename of the 12209 # archive as well as the shared archive member, telling the 12210 # bitwidth (32 or 64) of that shared object, and providing the 12211 # list of exported symbols of that shared object, eventually 12212 # decorated with the 'weak' keyword 12213 # *) the shared object with the F_LOADONLY flag set, to really avoid 12214 # it being seen by the linker. 12215 # At run time we better use the real file rather than another symlink, 12216 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12217 12218 case $with_aix_soname,$aix_use_runtimelinking in 12219 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12220 # soname into executable. Probably we can add versioning support to 12221 # collect2, so additional links can be useful in future. 12222 aix,yes) # traditional libtool 12223 dynamic_linker='AIX unversionable lib.so' 12224 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12225 # instead of lib<name>.a to let people know that these are not 12226 # typical AIX shared libraries. 12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12228 ;; 12229 aix,no) # traditional AIX only 12230 dynamic_linker='AIX lib.a(lib.so.V)' 12231 # We preserve .a as extension for shared libraries through AIX4.2 12232 # and later when we are not doing run time linking. 12233 library_names_spec='$libname$release.a $libname.a' 12234 soname_spec='$libname$release$shared_ext$major' 12235 ;; 12236 svr4,*) # full svr4 only 12237 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12238 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12239 # We do not specify a path in Import Files, so LIBPATH fires. 12240 shlibpath_overrides_runpath=yes 12241 ;; 12242 *,yes) # both, prefer svr4 12243 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12244 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12245 # unpreferred sharedlib libNAME.a needs extra handling 12246 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"' 12247 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"' 12248 # We do not specify a path in Import Files, so LIBPATH fires. 12249 shlibpath_overrides_runpath=yes 12250 ;; 12251 *,no) # both, prefer aix 12252 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12253 library_names_spec='$libname$release.a $libname.a' 12254 soname_spec='$libname$release$shared_ext$major' 12255 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12256 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)' 12257 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"' 12258 ;; 12259 esac 12260 shlibpath_var=LIBPATH 12261 fi 12262 ;; 12263 12264amigaos*) 12265 case $host_cpu in 12266 powerpc) 12267 # Since July 2007 AmigaOS4 officially supports .so libraries. 12268 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12270 ;; 12271 m68k) 12272 library_names_spec='$libname.ixlibrary $libname.a' 12273 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12274 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' 12275 ;; 12276 esac 12277 ;; 12278 12279beos*) 12280 library_names_spec='$libname$shared_ext' 12281 dynamic_linker="$host_os ld.so" 12282 shlibpath_var=LIBRARY_PATH 12283 ;; 12284 12285bsdi[45]*) 12286 version_type=linux # correct to gnu/linux during the next big refactor 12287 need_version=no 12288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12289 soname_spec='$libname$release$shared_ext$major' 12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12291 shlibpath_var=LD_LIBRARY_PATH 12292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12294 # the default ld.so.conf also contains /usr/contrib/lib and 12295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12296 # libtool to hard-code these into programs 12297 ;; 12298 12299cygwin* | mingw* | pw32* | cegcc*) 12300 version_type=windows 12301 shrext_cmds=.dll 12302 need_version=no 12303 need_lib_prefix=no 12304 12305 case $GCC,$cc_basename in 12306 yes,*) 12307 # gcc 12308 library_names_spec='$libname.dll.a' 12309 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12310 postinstall_cmds='base_file=`basename \$file`~ 12311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12312 dldir=$destdir/`dirname \$dlpath`~ 12313 test -d \$dldir || mkdir -p \$dldir~ 12314 $install_prog $dir/$dlname \$dldir/$dlname~ 12315 chmod a+x \$dldir/$dlname~ 12316 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12317 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12318 fi' 12319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12320 dlpath=$dir/\$dldll~ 12321 $RM \$dlpath' 12322 shlibpath_overrides_runpath=yes 12323 12324 case $host_os in 12325 cygwin*) 12326 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12327 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12328 12329 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12330 ;; 12331 mingw* | cegcc*) 12332 # MinGW DLLs use traditional 'lib' prefix 12333 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12334 ;; 12335 pw32*) 12336 # pw32 DLLs use 'pw' prefix rather than 'lib' 12337 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12338 ;; 12339 esac 12340 dynamic_linker='Win32 ld.exe' 12341 ;; 12342 12343 *,cl* | *,icl*) 12344 # Native MSVC or ICC 12345 libname_spec='$name' 12346 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12347 library_names_spec='$libname.dll.lib' 12348 12349 case $build_os in 12350 mingw*) 12351 sys_lib_search_path_spec= 12352 lt_save_ifs=$IFS 12353 IFS=';' 12354 for lt_path in $LIB 12355 do 12356 IFS=$lt_save_ifs 12357 # Let DOS variable expansion print the short 8.3 style file name. 12358 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12359 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12360 done 12361 IFS=$lt_save_ifs 12362 # Convert to MSYS style. 12363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12364 ;; 12365 cygwin*) 12366 # Convert to unix form, then to dos form, then back to unix form 12367 # but this time dos style (no spaces!) so that the unix form looks 12368 # like /cygdrive/c/PROGRA~1:/cygdr... 12369 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12370 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12371 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12372 ;; 12373 *) 12374 sys_lib_search_path_spec=$LIB 12375 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12376 # It is most probably a Windows format PATH. 12377 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12378 else 12379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12380 fi 12381 # FIXME: find the short name or the path components, as spaces are 12382 # common. (e.g. "Program Files" -> "PROGRA~1") 12383 ;; 12384 esac 12385 12386 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12387 postinstall_cmds='base_file=`basename \$file`~ 12388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12389 dldir=$destdir/`dirname \$dlpath`~ 12390 test -d \$dldir || mkdir -p \$dldir~ 12391 $install_prog $dir/$dlname \$dldir/$dlname' 12392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12393 dlpath=$dir/\$dldll~ 12394 $RM \$dlpath' 12395 shlibpath_overrides_runpath=yes 12396 dynamic_linker='Win32 link.exe' 12397 ;; 12398 12399 *) 12400 # Assume MSVC and ICC wrapper 12401 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12402 dynamic_linker='Win32 ld.exe' 12403 ;; 12404 esac 12405 # FIXME: first we should search . and the directory the executable is in 12406 shlibpath_var=PATH 12407 ;; 12408 12409darwin* | rhapsody*) 12410 dynamic_linker="$host_os dyld" 12411 version_type=darwin 12412 need_lib_prefix=no 12413 need_version=no 12414 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12415 soname_spec='$libname$release$major$shared_ext' 12416 shlibpath_overrides_runpath=yes 12417 shlibpath_var=DYLD_LIBRARY_PATH 12418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12419 12420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12422 ;; 12423 12424dgux*) 12425 version_type=linux # correct to gnu/linux during the next big refactor 12426 need_lib_prefix=no 12427 need_version=no 12428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12429 soname_spec='$libname$release$shared_ext$major' 12430 shlibpath_var=LD_LIBRARY_PATH 12431 ;; 12432 12433freebsd* | dragonfly*) 12434 # DragonFly does not have aout. When/if they implement a new 12435 # versioning mechanism, adjust this. 12436 if test -x /usr/bin/objformat; then 12437 objformat=`/usr/bin/objformat` 12438 else 12439 case $host_os in 12440 freebsd[23].*) objformat=aout ;; 12441 *) objformat=elf ;; 12442 esac 12443 fi 12444 version_type=freebsd-$objformat 12445 case $version_type in 12446 freebsd-elf*) 12447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12448 soname_spec='$libname$release$shared_ext$major' 12449 need_version=no 12450 need_lib_prefix=no 12451 ;; 12452 freebsd-*) 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12454 need_version=yes 12455 ;; 12456 esac 12457 shlibpath_var=LD_LIBRARY_PATH 12458 case $host_os in 12459 freebsd2.*) 12460 shlibpath_overrides_runpath=yes 12461 ;; 12462 freebsd3.[01]* | freebsdelf3.[01]*) 12463 shlibpath_overrides_runpath=yes 12464 hardcode_into_libs=yes 12465 ;; 12466 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12467 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12468 shlibpath_overrides_runpath=no 12469 hardcode_into_libs=yes 12470 ;; 12471 *) # from 4.6 on, and DragonFly 12472 shlibpath_overrides_runpath=yes 12473 hardcode_into_libs=yes 12474 ;; 12475 esac 12476 ;; 12477 12478haiku*) 12479 version_type=linux # correct to gnu/linux during the next big refactor 12480 need_lib_prefix=no 12481 need_version=no 12482 dynamic_linker="$host_os runtime_loader" 12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12484 soname_spec='$libname$release$shared_ext$major' 12485 shlibpath_var=LIBRARY_PATH 12486 shlibpath_overrides_runpath=no 12487 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12488 hardcode_into_libs=yes 12489 ;; 12490 12491hpux9* | hpux10* | hpux11*) 12492 # Give a soname corresponding to the major version so that dld.sl refuses to 12493 # link against other versions. 12494 version_type=sunos 12495 need_lib_prefix=no 12496 need_version=no 12497 case $host_cpu in 12498 ia64*) 12499 shrext_cmds='.so' 12500 hardcode_into_libs=yes 12501 dynamic_linker="$host_os dld.so" 12502 shlibpath_var=LD_LIBRARY_PATH 12503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12505 soname_spec='$libname$release$shared_ext$major' 12506 if test 32 = "$HPUX_IA64_MODE"; then 12507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12508 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12509 else 12510 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12511 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12512 fi 12513 ;; 12514 hppa*64*) 12515 shrext_cmds='.sl' 12516 hardcode_into_libs=yes 12517 dynamic_linker="$host_os dld.sl" 12518 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12521 soname_spec='$libname$release$shared_ext$major' 12522 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12524 ;; 12525 *) 12526 shrext_cmds='.sl' 12527 dynamic_linker="$host_os dld.sl" 12528 shlibpath_var=SHLIB_PATH 12529 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12531 soname_spec='$libname$release$shared_ext$major' 12532 ;; 12533 esac 12534 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12535 postinstall_cmds='chmod 555 $lib' 12536 # or fails outright, so override atomically: 12537 install_override_mode=555 12538 ;; 12539 12540interix[3-9]*) 12541 version_type=linux # correct to gnu/linux during the next big refactor 12542 need_lib_prefix=no 12543 need_version=no 12544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12545 soname_spec='$libname$release$shared_ext$major' 12546 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12547 shlibpath_var=LD_LIBRARY_PATH 12548 shlibpath_overrides_runpath=no 12549 hardcode_into_libs=yes 12550 ;; 12551 12552irix5* | irix6* | nonstopux*) 12553 case $host_os in 12554 nonstopux*) version_type=nonstopux ;; 12555 *) 12556 if test yes = "$lt_cv_prog_gnu_ld"; then 12557 version_type=linux # correct to gnu/linux during the next big refactor 12558 else 12559 version_type=irix 12560 fi ;; 12561 esac 12562 need_lib_prefix=no 12563 need_version=no 12564 soname_spec='$libname$release$shared_ext$major' 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12566 case $host_os in 12567 irix5* | nonstopux*) 12568 libsuff= shlibsuff= 12569 ;; 12570 *) 12571 case $LD in # libtool.m4 will add one of these switches to LD 12572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12573 libsuff= shlibsuff= libmagic=32-bit;; 12574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12575 libsuff=32 shlibsuff=N32 libmagic=N32;; 12576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12577 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12578 *) libsuff= shlibsuff= libmagic=never-match;; 12579 esac 12580 ;; 12581 esac 12582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12583 shlibpath_overrides_runpath=no 12584 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12585 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12586 hardcode_into_libs=yes 12587 ;; 12588 12589# No shared lib support for Linux oldld, aout, or coff. 12590linux*oldld* | linux*aout* | linux*coff*) 12591 dynamic_linker=no 12592 ;; 12593 12594linux*android*) 12595 version_type=none # Android doesn't support versioned libraries. 12596 need_lib_prefix=no 12597 need_version=no 12598 library_names_spec='$libname$release$shared_ext' 12599 soname_spec='$libname$release$shared_ext' 12600 finish_cmds= 12601 shlibpath_var=LD_LIBRARY_PATH 12602 shlibpath_overrides_runpath=yes 12603 12604 # This implies no fast_install, which is unacceptable. 12605 # Some rework will be needed to allow for fast_install 12606 # before this can be enabled. 12607 hardcode_into_libs=yes 12608 12609 dynamic_linker='Android linker' 12610 # Don't embed -rpath directories since the linker doesn't support them. 12611 hardcode_libdir_flag_spec='-L$libdir' 12612 ;; 12613 12614# This must be glibc/ELF. 12615linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12616 version_type=linux # correct to gnu/linux during the next big refactor 12617 need_lib_prefix=no 12618 need_version=no 12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12620 soname_spec='$libname$release$shared_ext$major' 12621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12622 shlibpath_var=LD_LIBRARY_PATH 12623 shlibpath_overrides_runpath=no 12624 12625 # Some binutils ld are patched to set DT_RUNPATH 12626 if test ${lt_cv_shlibpath_overrides_runpath+y} 12627then : 12628 printf %s "(cached) " >&6 12629else $as_nop 12630 lt_cv_shlibpath_overrides_runpath=no 12631 save_LDFLAGS=$LDFLAGS 12632 save_libdir=$libdir 12633 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12634 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12636/* end confdefs.h. */ 12637 12638int 12639main (void) 12640{ 12641 12642 ; 12643 return 0; 12644} 12645_ACEOF 12646if ac_fn_c_try_link "$LINENO" 12647then : 12648 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12649then : 12650 lt_cv_shlibpath_overrides_runpath=yes 12651fi 12652fi 12653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12654 conftest$ac_exeext conftest.$ac_ext 12655 LDFLAGS=$save_LDFLAGS 12656 libdir=$save_libdir 12657 12658fi 12659 12660 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12661 12662 # This implies no fast_install, which is unacceptable. 12663 # Some rework will be needed to allow for fast_install 12664 # before this can be enabled. 12665 hardcode_into_libs=yes 12666 12667 # Ideally, we could use ldconfig to report *all* directores which are 12668 # searched for libraries, however this is still not possible. Aside from not 12669 # being certain /sbin/ldconfig is available, command 12670 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12671 # even though it is searched at run-time. Try to do the best guess by 12672 # appending ld.so.conf contents (and includes) to the search path. 12673 if test -f /etc/ld.so.conf; then 12674 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' ' '` 12675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12676 fi 12677 12678 # We used to test for /lib/ld.so.1 and disable shared libraries on 12679 # powerpc, because MkLinux only supported shared libraries with the 12680 # GNU dynamic linker. Since this was broken with cross compilers, 12681 # most powerpc-linux boxes support dynamic linking these days and 12682 # people can always --disable-shared, the test was removed, and we 12683 # assume the GNU/Linux dynamic linker is in use. 12684 dynamic_linker='GNU/Linux ld.so' 12685 ;; 12686 12687netbsd*) 12688 version_type=sunos 12689 need_lib_prefix=no 12690 need_version=no 12691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12694 dynamic_linker='NetBSD (a.out) ld.so' 12695 else 12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12697 soname_spec='$libname$release$shared_ext$major' 12698 dynamic_linker='NetBSD ld.elf_so' 12699 fi 12700 shlibpath_var=LD_LIBRARY_PATH 12701 shlibpath_overrides_runpath=yes 12702 hardcode_into_libs=yes 12703 ;; 12704 12705newsos6) 12706 version_type=linux # correct to gnu/linux during the next big refactor 12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12708 shlibpath_var=LD_LIBRARY_PATH 12709 shlibpath_overrides_runpath=yes 12710 ;; 12711 12712*nto* | *qnx*) 12713 version_type=qnx 12714 need_lib_prefix=no 12715 need_version=no 12716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12717 soname_spec='$libname$release$shared_ext$major' 12718 shlibpath_var=LD_LIBRARY_PATH 12719 shlibpath_overrides_runpath=no 12720 hardcode_into_libs=yes 12721 dynamic_linker='ldqnx.so' 12722 ;; 12723 12724openbsd* | bitrig*) 12725 version_type=sunos 12726 sys_lib_dlsearch_path_spec=/usr/lib 12727 need_lib_prefix=no 12728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12729 need_version=no 12730 else 12731 need_version=yes 12732 fi 12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12735 shlibpath_var=LD_LIBRARY_PATH 12736 shlibpath_overrides_runpath=yes 12737 ;; 12738 12739os2*) 12740 libname_spec='$name' 12741 version_type=windows 12742 shrext_cmds=.dll 12743 need_version=no 12744 need_lib_prefix=no 12745 # OS/2 can only load a DLL with a base name of 8 characters or less. 12746 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12747 v=$($ECHO $release$versuffix | tr -d .-); 12748 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12749 $ECHO $n$v`$shared_ext' 12750 library_names_spec='${libname}_dll.$libext' 12751 dynamic_linker='OS/2 ld.exe' 12752 shlibpath_var=BEGINLIBPATH 12753 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12755 postinstall_cmds='base_file=`basename \$file`~ 12756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12757 dldir=$destdir/`dirname \$dlpath`~ 12758 test -d \$dldir || mkdir -p \$dldir~ 12759 $install_prog $dir/$dlname \$dldir/$dlname~ 12760 chmod a+x \$dldir/$dlname~ 12761 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12762 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12763 fi' 12764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12765 dlpath=$dir/\$dldll~ 12766 $RM \$dlpath' 12767 ;; 12768 12769osf3* | osf4* | osf5*) 12770 version_type=osf 12771 need_lib_prefix=no 12772 need_version=no 12773 soname_spec='$libname$release$shared_ext$major' 12774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12775 shlibpath_var=LD_LIBRARY_PATH 12776 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12778 ;; 12779 12780rdos*) 12781 dynamic_linker=no 12782 ;; 12783 12784solaris*) 12785 version_type=linux # correct to gnu/linux during the next big refactor 12786 need_lib_prefix=no 12787 need_version=no 12788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12789 soname_spec='$libname$release$shared_ext$major' 12790 shlibpath_var=LD_LIBRARY_PATH 12791 shlibpath_overrides_runpath=yes 12792 hardcode_into_libs=yes 12793 # ldd complains unless libraries are executable 12794 postinstall_cmds='chmod +x $lib' 12795 ;; 12796 12797sunos4*) 12798 version_type=sunos 12799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12801 shlibpath_var=LD_LIBRARY_PATH 12802 shlibpath_overrides_runpath=yes 12803 if test yes = "$with_gnu_ld"; then 12804 need_lib_prefix=no 12805 fi 12806 need_version=yes 12807 ;; 12808 12809sysv4 | sysv4.3*) 12810 version_type=linux # correct to gnu/linux during the next big refactor 12811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12812 soname_spec='$libname$release$shared_ext$major' 12813 shlibpath_var=LD_LIBRARY_PATH 12814 case $host_vendor in 12815 sni) 12816 shlibpath_overrides_runpath=no 12817 need_lib_prefix=no 12818 runpath_var=LD_RUN_PATH 12819 ;; 12820 siemens) 12821 need_lib_prefix=no 12822 ;; 12823 motorola) 12824 need_lib_prefix=no 12825 need_version=no 12826 shlibpath_overrides_runpath=no 12827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12828 ;; 12829 esac 12830 ;; 12831 12832sysv4*MP*) 12833 if test -d /usr/nec; then 12834 version_type=linux # correct to gnu/linux during the next big refactor 12835 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12836 soname_spec='$libname$shared_ext.$major' 12837 shlibpath_var=LD_LIBRARY_PATH 12838 fi 12839 ;; 12840 12841sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12842 version_type=sco 12843 need_lib_prefix=no 12844 need_version=no 12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12846 soname_spec='$libname$release$shared_ext$major' 12847 shlibpath_var=LD_LIBRARY_PATH 12848 shlibpath_overrides_runpath=yes 12849 hardcode_into_libs=yes 12850 if test yes = "$with_gnu_ld"; then 12851 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12852 else 12853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12854 case $host_os in 12855 sco3.2v5*) 12856 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12857 ;; 12858 esac 12859 fi 12860 sys_lib_dlsearch_path_spec='/usr/lib' 12861 ;; 12862 12863tpf*) 12864 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12865 version_type=linux # correct to gnu/linux during the next big refactor 12866 need_lib_prefix=no 12867 need_version=no 12868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12869 shlibpath_var=LD_LIBRARY_PATH 12870 shlibpath_overrides_runpath=no 12871 hardcode_into_libs=yes 12872 ;; 12873 12874uts4*) 12875 version_type=linux # correct to gnu/linux during the next big refactor 12876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12877 soname_spec='$libname$release$shared_ext$major' 12878 shlibpath_var=LD_LIBRARY_PATH 12879 ;; 12880 12881*) 12882 dynamic_linker=no 12883 ;; 12884esac 12885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12886printf "%s\n" "$dynamic_linker" >&6; } 12887test no = "$dynamic_linker" && can_build_shared=no 12888 12889variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12890if test yes = "$GCC"; then 12891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12892fi 12893 12894if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12895 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12896fi 12897 12898if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12899 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12900fi 12901 12902# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12903configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12904 12905# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12906func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12907 12908# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12909configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13008printf %s "checking how to hardcode library paths into programs... " >&6; } 13009hardcode_action= 13010if test -n "$hardcode_libdir_flag_spec" || 13011 test -n "$runpath_var" || 13012 test yes = "$hardcode_automatic"; then 13013 13014 # We can hardcode non-existent directories. 13015 if test no != "$hardcode_direct" && 13016 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13017 # have to relink, otherwise we might link with an installed library 13018 # when we should be linking with a yet-to-be-installed one 13019 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13020 test no != "$hardcode_minus_L"; then 13021 # Linking always hardcodes the temporary library directory. 13022 hardcode_action=relink 13023 else 13024 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13025 hardcode_action=immediate 13026 fi 13027else 13028 # We cannot hardcode anything, or else we can only hardcode existing 13029 # directories. 13030 hardcode_action=unsupported 13031fi 13032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13033printf "%s\n" "$hardcode_action" >&6; } 13034 13035if test relink = "$hardcode_action" || 13036 test yes = "$inherit_rpath"; then 13037 # Fast installation is not supported 13038 enable_fast_install=no 13039elif test yes = "$shlibpath_overrides_runpath" || 13040 test no = "$enable_shared"; then 13041 # Fast installation is not necessary 13042 enable_fast_install=needless 13043fi 13044 13045 13046 13047 13048 13049 13050 if test yes != "$enable_dlopen"; then 13051 enable_dlopen=unknown 13052 enable_dlopen_self=unknown 13053 enable_dlopen_self_static=unknown 13054else 13055 lt_cv_dlopen=no 13056 lt_cv_dlopen_libs= 13057 13058 case $host_os in 13059 beos*) 13060 lt_cv_dlopen=load_add_on 13061 lt_cv_dlopen_libs= 13062 lt_cv_dlopen_self=yes 13063 ;; 13064 13065 mingw* | pw32* | cegcc*) 13066 lt_cv_dlopen=LoadLibrary 13067 lt_cv_dlopen_libs= 13068 ;; 13069 13070 cygwin*) 13071 lt_cv_dlopen=dlopen 13072 lt_cv_dlopen_libs= 13073 ;; 13074 13075 darwin*) 13076 # if libdl is installed we need to link against it 13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13078printf %s "checking for dlopen in -ldl... " >&6; } 13079if test ${ac_cv_lib_dl_dlopen+y} 13080then : 13081 printf %s "(cached) " >&6 13082else $as_nop 13083 ac_check_lib_save_LIBS=$LIBS 13084LIBS="-ldl $LIBS" 13085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086/* end confdefs.h. */ 13087 13088/* Override any GCC internal prototype to avoid an error. 13089 Use char because int might match the return type of a GCC 13090 builtin and then its argument prototype would still apply. */ 13091char dlopen (); 13092int 13093main (void) 13094{ 13095return dlopen (); 13096 ; 13097 return 0; 13098} 13099_ACEOF 13100if ac_fn_c_try_link "$LINENO" 13101then : 13102 ac_cv_lib_dl_dlopen=yes 13103else $as_nop 13104 ac_cv_lib_dl_dlopen=no 13105fi 13106rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13107 conftest$ac_exeext conftest.$ac_ext 13108LIBS=$ac_check_lib_save_LIBS 13109fi 13110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13111printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13112if test "x$ac_cv_lib_dl_dlopen" = xyes 13113then : 13114 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13115else $as_nop 13116 13117 lt_cv_dlopen=dyld 13118 lt_cv_dlopen_libs= 13119 lt_cv_dlopen_self=yes 13120 13121fi 13122 13123 ;; 13124 13125 tpf*) 13126 # Don't try to run any link tests for TPF. We know it's impossible 13127 # because TPF is a cross-compiler, and we know how we open DSOs. 13128 lt_cv_dlopen=dlopen 13129 lt_cv_dlopen_libs= 13130 lt_cv_dlopen_self=no 13131 ;; 13132 13133 *) 13134 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13135if test "x$ac_cv_func_shl_load" = xyes 13136then : 13137 lt_cv_dlopen=shl_load 13138else $as_nop 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13140printf %s "checking for shl_load in -ldld... " >&6; } 13141if test ${ac_cv_lib_dld_shl_load+y} 13142then : 13143 printf %s "(cached) " >&6 13144else $as_nop 13145 ac_check_lib_save_LIBS=$LIBS 13146LIBS="-ldld $LIBS" 13147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13148/* end confdefs.h. */ 13149 13150/* Override any GCC internal prototype to avoid an error. 13151 Use char because int might match the return type of a GCC 13152 builtin and then its argument prototype would still apply. */ 13153char shl_load (); 13154int 13155main (void) 13156{ 13157return shl_load (); 13158 ; 13159 return 0; 13160} 13161_ACEOF 13162if ac_fn_c_try_link "$LINENO" 13163then : 13164 ac_cv_lib_dld_shl_load=yes 13165else $as_nop 13166 ac_cv_lib_dld_shl_load=no 13167fi 13168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13169 conftest$ac_exeext conftest.$ac_ext 13170LIBS=$ac_check_lib_save_LIBS 13171fi 13172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13173printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13174if test "x$ac_cv_lib_dld_shl_load" = xyes 13175then : 13176 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13177else $as_nop 13178 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13179if test "x$ac_cv_func_dlopen" = xyes 13180then : 13181 lt_cv_dlopen=dlopen 13182else $as_nop 13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13184printf %s "checking for dlopen in -ldl... " >&6; } 13185if test ${ac_cv_lib_dl_dlopen+y} 13186then : 13187 printf %s "(cached) " >&6 13188else $as_nop 13189 ac_check_lib_save_LIBS=$LIBS 13190LIBS="-ldl $LIBS" 13191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13192/* end confdefs.h. */ 13193 13194/* Override any GCC internal prototype to avoid an error. 13195 Use char because int might match the return type of a GCC 13196 builtin and then its argument prototype would still apply. */ 13197char dlopen (); 13198int 13199main (void) 13200{ 13201return dlopen (); 13202 ; 13203 return 0; 13204} 13205_ACEOF 13206if ac_fn_c_try_link "$LINENO" 13207then : 13208 ac_cv_lib_dl_dlopen=yes 13209else $as_nop 13210 ac_cv_lib_dl_dlopen=no 13211fi 13212rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13213 conftest$ac_exeext conftest.$ac_ext 13214LIBS=$ac_check_lib_save_LIBS 13215fi 13216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13217printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13218if test "x$ac_cv_lib_dl_dlopen" = xyes 13219then : 13220 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13221else $as_nop 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13223printf %s "checking for dlopen in -lsvld... " >&6; } 13224if test ${ac_cv_lib_svld_dlopen+y} 13225then : 13226 printf %s "(cached) " >&6 13227else $as_nop 13228 ac_check_lib_save_LIBS=$LIBS 13229LIBS="-lsvld $LIBS" 13230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232 13233/* Override any GCC internal prototype to avoid an error. 13234 Use char because int might match the return type of a GCC 13235 builtin and then its argument prototype would still apply. */ 13236char dlopen (); 13237int 13238main (void) 13239{ 13240return dlopen (); 13241 ; 13242 return 0; 13243} 13244_ACEOF 13245if ac_fn_c_try_link "$LINENO" 13246then : 13247 ac_cv_lib_svld_dlopen=yes 13248else $as_nop 13249 ac_cv_lib_svld_dlopen=no 13250fi 13251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13252 conftest$ac_exeext conftest.$ac_ext 13253LIBS=$ac_check_lib_save_LIBS 13254fi 13255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13256printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13257if test "x$ac_cv_lib_svld_dlopen" = xyes 13258then : 13259 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13260else $as_nop 13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13262printf %s "checking for dld_link in -ldld... " >&6; } 13263if test ${ac_cv_lib_dld_dld_link+y} 13264then : 13265 printf %s "(cached) " >&6 13266else $as_nop 13267 ac_check_lib_save_LIBS=$LIBS 13268LIBS="-ldld $LIBS" 13269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13270/* end confdefs.h. */ 13271 13272/* Override any GCC internal prototype to avoid an error. 13273 Use char because int might match the return type of a GCC 13274 builtin and then its argument prototype would still apply. */ 13275char dld_link (); 13276int 13277main (void) 13278{ 13279return dld_link (); 13280 ; 13281 return 0; 13282} 13283_ACEOF 13284if ac_fn_c_try_link "$LINENO" 13285then : 13286 ac_cv_lib_dld_dld_link=yes 13287else $as_nop 13288 ac_cv_lib_dld_dld_link=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13291 conftest$ac_exeext conftest.$ac_ext 13292LIBS=$ac_check_lib_save_LIBS 13293fi 13294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13295printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13296if test "x$ac_cv_lib_dld_dld_link" = xyes 13297then : 13298 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13299fi 13300 13301 13302fi 13303 13304 13305fi 13306 13307 13308fi 13309 13310 13311fi 13312 13313 13314fi 13315 13316 ;; 13317 esac 13318 13319 if test no = "$lt_cv_dlopen"; then 13320 enable_dlopen=no 13321 else 13322 enable_dlopen=yes 13323 fi 13324 13325 case $lt_cv_dlopen in 13326 dlopen) 13327 save_CPPFLAGS=$CPPFLAGS 13328 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13329 13330 save_LDFLAGS=$LDFLAGS 13331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13332 13333 save_LIBS=$LIBS 13334 LIBS="$lt_cv_dlopen_libs $LIBS" 13335 13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13337printf %s "checking whether a program can dlopen itself... " >&6; } 13338if test ${lt_cv_dlopen_self+y} 13339then : 13340 printf %s "(cached) " >&6 13341else $as_nop 13342 if test yes = "$cross_compiling"; then : 13343 lt_cv_dlopen_self=cross 13344else 13345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13346 lt_status=$lt_dlunknown 13347 cat > conftest.$ac_ext <<_LT_EOF 13348#line $LINENO "configure" 13349#include "confdefs.h" 13350 13351#if HAVE_DLFCN_H 13352#include <dlfcn.h> 13353#endif 13354 13355#include <stdio.h> 13356 13357#ifdef RTLD_GLOBAL 13358# define LT_DLGLOBAL RTLD_GLOBAL 13359#else 13360# ifdef DL_GLOBAL 13361# define LT_DLGLOBAL DL_GLOBAL 13362# else 13363# define LT_DLGLOBAL 0 13364# endif 13365#endif 13366 13367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13368 find out it does not work in some platform. */ 13369#ifndef LT_DLLAZY_OR_NOW 13370# ifdef RTLD_LAZY 13371# define LT_DLLAZY_OR_NOW RTLD_LAZY 13372# else 13373# ifdef DL_LAZY 13374# define LT_DLLAZY_OR_NOW DL_LAZY 13375# else 13376# ifdef RTLD_NOW 13377# define LT_DLLAZY_OR_NOW RTLD_NOW 13378# else 13379# ifdef DL_NOW 13380# define LT_DLLAZY_OR_NOW DL_NOW 13381# else 13382# define LT_DLLAZY_OR_NOW 0 13383# endif 13384# endif 13385# endif 13386# endif 13387#endif 13388 13389/* When -fvisibility=hidden is used, assume the code has been annotated 13390 correspondingly for the symbols needed. */ 13391#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13392int fnord () __attribute__((visibility("default"))); 13393#endif 13394 13395int fnord () { return 42; } 13396int main () 13397{ 13398 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13399 int status = $lt_dlunknown; 13400 13401 if (self) 13402 { 13403 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13404 else 13405 { 13406 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13407 else puts (dlerror ()); 13408 } 13409 /* dlclose (self); */ 13410 } 13411 else 13412 puts (dlerror ()); 13413 13414 return status; 13415} 13416_LT_EOF 13417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13418 (eval $ac_link) 2>&5 13419 ac_status=$? 13420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13421 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13422 (./conftest; exit; ) >&5 2>/dev/null 13423 lt_status=$? 13424 case x$lt_status in 13425 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13426 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13427 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13428 esac 13429 else : 13430 # compilation failed 13431 lt_cv_dlopen_self=no 13432 fi 13433fi 13434rm -fr conftest* 13435 13436 13437fi 13438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13439printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13440 13441 if test yes = "$lt_cv_dlopen_self"; then 13442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13444printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13445if test ${lt_cv_dlopen_self_static+y} 13446then : 13447 printf %s "(cached) " >&6 13448else $as_nop 13449 if test yes = "$cross_compiling"; then : 13450 lt_cv_dlopen_self_static=cross 13451else 13452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13453 lt_status=$lt_dlunknown 13454 cat > conftest.$ac_ext <<_LT_EOF 13455#line $LINENO "configure" 13456#include "confdefs.h" 13457 13458#if HAVE_DLFCN_H 13459#include <dlfcn.h> 13460#endif 13461 13462#include <stdio.h> 13463 13464#ifdef RTLD_GLOBAL 13465# define LT_DLGLOBAL RTLD_GLOBAL 13466#else 13467# ifdef DL_GLOBAL 13468# define LT_DLGLOBAL DL_GLOBAL 13469# else 13470# define LT_DLGLOBAL 0 13471# endif 13472#endif 13473 13474/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13475 find out it does not work in some platform. */ 13476#ifndef LT_DLLAZY_OR_NOW 13477# ifdef RTLD_LAZY 13478# define LT_DLLAZY_OR_NOW RTLD_LAZY 13479# else 13480# ifdef DL_LAZY 13481# define LT_DLLAZY_OR_NOW DL_LAZY 13482# else 13483# ifdef RTLD_NOW 13484# define LT_DLLAZY_OR_NOW RTLD_NOW 13485# else 13486# ifdef DL_NOW 13487# define LT_DLLAZY_OR_NOW DL_NOW 13488# else 13489# define LT_DLLAZY_OR_NOW 0 13490# endif 13491# endif 13492# endif 13493# endif 13494#endif 13495 13496/* When -fvisibility=hidden is used, assume the code has been annotated 13497 correspondingly for the symbols needed. */ 13498#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13499int fnord () __attribute__((visibility("default"))); 13500#endif 13501 13502int fnord () { return 42; } 13503int main () 13504{ 13505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13506 int status = $lt_dlunknown; 13507 13508 if (self) 13509 { 13510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13511 else 13512 { 13513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13514 else puts (dlerror ()); 13515 } 13516 /* dlclose (self); */ 13517 } 13518 else 13519 puts (dlerror ()); 13520 13521 return status; 13522} 13523_LT_EOF 13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13525 (eval $ac_link) 2>&5 13526 ac_status=$? 13527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13528 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13529 (./conftest; exit; ) >&5 2>/dev/null 13530 lt_status=$? 13531 case x$lt_status in 13532 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13533 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13534 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13535 esac 13536 else : 13537 # compilation failed 13538 lt_cv_dlopen_self_static=no 13539 fi 13540fi 13541rm -fr conftest* 13542 13543 13544fi 13545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13546printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13547 fi 13548 13549 CPPFLAGS=$save_CPPFLAGS 13550 LDFLAGS=$save_LDFLAGS 13551 LIBS=$save_LIBS 13552 ;; 13553 esac 13554 13555 case $lt_cv_dlopen_self in 13556 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13557 *) enable_dlopen_self=unknown ;; 13558 esac 13559 13560 case $lt_cv_dlopen_self_static in 13561 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13562 *) enable_dlopen_self_static=unknown ;; 13563 esac 13564fi 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582striplib= 13583old_striplib= 13584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13585printf %s "checking whether stripping libraries is possible... " >&6; } 13586if test -z "$STRIP"; then 13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13588printf "%s\n" "no" >&6; } 13589else 13590 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13591 old_striplib="$STRIP --strip-debug" 13592 striplib="$STRIP --strip-unneeded" 13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13594printf "%s\n" "yes" >&6; } 13595 else 13596 case $host_os in 13597 darwin*) 13598 # FIXME - insert some real tests, host_os isn't really good enough 13599 striplib="$STRIP -x" 13600 old_striplib="$STRIP -S" 13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13602printf "%s\n" "yes" >&6; } 13603 ;; 13604 freebsd*) 13605 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13606 old_striplib="$STRIP --strip-debug" 13607 striplib="$STRIP --strip-unneeded" 13608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13609printf "%s\n" "yes" >&6; } 13610 else 13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13612printf "%s\n" "no" >&6; } 13613 fi 13614 ;; 13615 *) 13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13617printf "%s\n" "no" >&6; } 13618 ;; 13619 esac 13620 fi 13621fi 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 # Report what library types will actually be built 13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13636printf %s "checking if libtool supports shared libraries... " >&6; } 13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13638printf "%s\n" "$can_build_shared" >&6; } 13639 13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13641printf %s "checking whether to build shared libraries... " >&6; } 13642 test no = "$can_build_shared" && enable_shared=no 13643 13644 # On AIX, shared libraries and static libraries use the same namespace, and 13645 # are all built from PIC. 13646 case $host_os in 13647 aix3*) 13648 test yes = "$enable_shared" && enable_static=no 13649 if test -n "$RANLIB"; then 13650 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13651 postinstall_cmds='$RANLIB $lib' 13652 fi 13653 ;; 13654 13655 aix[4-9]*) 13656 if test ia64 != "$host_cpu"; then 13657 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13658 yes,aix,yes) ;; # shared object as lib.so file only 13659 yes,svr4,*) ;; # shared object as lib.so archive member only 13660 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13661 esac 13662 fi 13663 ;; 13664 esac 13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13666printf "%s\n" "$enable_shared" >&6; } 13667 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13669printf %s "checking whether to build static libraries... " >&6; } 13670 # Make sure either enable_shared or enable_static is yes. 13671 test yes = "$enable_shared" || enable_static=yes 13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13673printf "%s\n" "$enable_static" >&6; } 13674 13675 13676 13677 13678fi 13679ac_ext=c 13680ac_cpp='$CPP $CPPFLAGS' 13681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13683ac_compiler_gnu=$ac_cv_c_compiler_gnu 13684 13685CC=$lt_save_CC 13686 13687 if test -n "$CXX" && ( test no != "$CXX" && 13688 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13689 (test g++ != "$CXX"))); then 13690 ac_ext=cpp 13691ac_cpp='$CXXCPP $CPPFLAGS' 13692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13696printf %s "checking how to run the C++ preprocessor... " >&6; } 13697if test -z "$CXXCPP"; then 13698 if test ${ac_cv_prog_CXXCPP+y} 13699then : 13700 printf %s "(cached) " >&6 13701else $as_nop 13702 # Double quotes because $CXX needs to be expanded 13703 for CXXCPP in "$CXX -E" cpp /lib/cpp 13704 do 13705 ac_preproc_ok=false 13706for ac_cxx_preproc_warn_flag in '' yes 13707do 13708 # Use a header file that comes with gcc, so configuring glibc 13709 # with a fresh cross-compiler works. 13710 # On the NeXT, cc -E runs the code through the compiler's parser, 13711 # not just through cpp. "Syntax error" is here to catch this case. 13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714#include <limits.h> 13715 Syntax error 13716_ACEOF 13717if ac_fn_cxx_try_cpp "$LINENO" 13718then : 13719 13720else $as_nop 13721 # Broken: fails on valid input. 13722continue 13723fi 13724rm -f conftest.err conftest.i conftest.$ac_ext 13725 13726 # OK, works on sane cases. Now check whether nonexistent headers 13727 # can be detected and how. 13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729/* end confdefs.h. */ 13730#include <ac_nonexistent.h> 13731_ACEOF 13732if ac_fn_cxx_try_cpp "$LINENO" 13733then : 13734 # Broken: success on invalid input. 13735continue 13736else $as_nop 13737 # Passes both tests. 13738ac_preproc_ok=: 13739break 13740fi 13741rm -f conftest.err conftest.i conftest.$ac_ext 13742 13743done 13744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13745rm -f conftest.i conftest.err conftest.$ac_ext 13746if $ac_preproc_ok 13747then : 13748 break 13749fi 13750 13751 done 13752 ac_cv_prog_CXXCPP=$CXXCPP 13753 13754fi 13755 CXXCPP=$ac_cv_prog_CXXCPP 13756else 13757 ac_cv_prog_CXXCPP=$CXXCPP 13758fi 13759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13760printf "%s\n" "$CXXCPP" >&6; } 13761ac_preproc_ok=false 13762for ac_cxx_preproc_warn_flag in '' yes 13763do 13764 # Use a header file that comes with gcc, so configuring glibc 13765 # with a fresh cross-compiler works. 13766 # On the NeXT, cc -E runs the code through the compiler's parser, 13767 # not just through cpp. "Syntax error" is here to catch this case. 13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770#include <limits.h> 13771 Syntax error 13772_ACEOF 13773if ac_fn_cxx_try_cpp "$LINENO" 13774then : 13775 13776else $as_nop 13777 # Broken: fails on valid input. 13778continue 13779fi 13780rm -f conftest.err conftest.i conftest.$ac_ext 13781 13782 # OK, works on sane cases. Now check whether nonexistent headers 13783 # can be detected and how. 13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786#include <ac_nonexistent.h> 13787_ACEOF 13788if ac_fn_cxx_try_cpp "$LINENO" 13789then : 13790 # Broken: success on invalid input. 13791continue 13792else $as_nop 13793 # Passes both tests. 13794ac_preproc_ok=: 13795break 13796fi 13797rm -f conftest.err conftest.i conftest.$ac_ext 13798 13799done 13800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13801rm -f conftest.i conftest.err conftest.$ac_ext 13802if $ac_preproc_ok 13803then : 13804 13805else $as_nop 13806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13807printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13808as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13809See \`config.log' for more details" "$LINENO" 5; } 13810fi 13811 13812ac_ext=c 13813ac_cpp='$CPP $CPPFLAGS' 13814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13816ac_compiler_gnu=$ac_cv_c_compiler_gnu 13817 13818else 13819 _lt_caught_CXX_error=yes 13820fi 13821 13822ac_ext=cpp 13823ac_cpp='$CXXCPP $CPPFLAGS' 13824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13827 13828archive_cmds_need_lc_CXX=no 13829allow_undefined_flag_CXX= 13830always_export_symbols_CXX=no 13831archive_expsym_cmds_CXX= 13832compiler_needs_object_CXX=no 13833export_dynamic_flag_spec_CXX= 13834hardcode_direct_CXX=no 13835hardcode_direct_absolute_CXX=no 13836hardcode_libdir_flag_spec_CXX= 13837hardcode_libdir_separator_CXX= 13838hardcode_minus_L_CXX=no 13839hardcode_shlibpath_var_CXX=unsupported 13840hardcode_automatic_CXX=no 13841inherit_rpath_CXX=no 13842module_cmds_CXX= 13843module_expsym_cmds_CXX= 13844link_all_deplibs_CXX=unknown 13845old_archive_cmds_CXX=$old_archive_cmds 13846reload_flag_CXX=$reload_flag 13847reload_cmds_CXX=$reload_cmds 13848no_undefined_flag_CXX= 13849whole_archive_flag_spec_CXX= 13850enable_shared_with_static_runtimes_CXX=no 13851 13852# Source file extension for C++ test sources. 13853ac_ext=cpp 13854 13855# Object file extension for compiled C++ test sources. 13856objext=o 13857objext_CXX=$objext 13858 13859# No sense in running all these tests if we already determined that 13860# the CXX compiler isn't working. Some variables (like enable_shared) 13861# are currently assumed to apply to all compilers on this platform, 13862# and will be corrupted by setting them based on a non-working compiler. 13863if test yes != "$_lt_caught_CXX_error"; then 13864 # Code to be used in simple compile tests 13865 lt_simple_compile_test_code="int some_variable = 0;" 13866 13867 # Code to be used in simple link tests 13868 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13869 13870 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13871 13872 13873 13874 13875 13876 13877# If no C compiler was specified, use CC. 13878LTCC=${LTCC-"$CC"} 13879 13880# If no C compiler flags were specified, use CFLAGS. 13881LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13882 13883# Allow CC to be a program name with arguments. 13884compiler=$CC 13885 13886 13887 # save warnings/boilerplate of simple test code 13888 ac_outfile=conftest.$ac_objext 13889echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13890eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13891_lt_compiler_boilerplate=`cat conftest.err` 13892$RM conftest* 13893 13894 ac_outfile=conftest.$ac_objext 13895echo "$lt_simple_link_test_code" >conftest.$ac_ext 13896eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13897_lt_linker_boilerplate=`cat conftest.err` 13898$RM -r conftest* 13899 13900 13901 # Allow CC to be a program name with arguments. 13902 lt_save_CC=$CC 13903 lt_save_CFLAGS=$CFLAGS 13904 lt_save_LD=$LD 13905 lt_save_GCC=$GCC 13906 GCC=$GXX 13907 lt_save_with_gnu_ld=$with_gnu_ld 13908 lt_save_path_LD=$lt_cv_path_LD 13909 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13910 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13911 else 13912 $as_unset lt_cv_prog_gnu_ld 13913 fi 13914 if test -n "${lt_cv_path_LDCXX+set}"; then 13915 lt_cv_path_LD=$lt_cv_path_LDCXX 13916 else 13917 $as_unset lt_cv_path_LD 13918 fi 13919 test -z "${LDCXX+set}" || LD=$LDCXX 13920 CC=${CXX-"c++"} 13921 CFLAGS=$CXXFLAGS 13922 compiler=$CC 13923 compiler_CXX=$CC 13924 func_cc_basename $compiler 13925cc_basename=$func_cc_basename_result 13926 13927 13928 if test -n "$compiler"; then 13929 # We don't want -fno-exception when compiling C++ code, so set the 13930 # no_builtin_flag separately 13931 if test yes = "$GXX"; then 13932 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13933 else 13934 lt_prog_compiler_no_builtin_flag_CXX= 13935 fi 13936 13937 if test yes = "$GXX"; then 13938 # Set up default GNU C++ configuration 13939 13940 13941 13942# Check whether --with-gnu-ld was given. 13943if test ${with_gnu_ld+y} 13944then : 13945 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13946else $as_nop 13947 with_gnu_ld=no 13948fi 13949 13950ac_prog=ld 13951if test yes = "$GCC"; then 13952 # Check if gcc -print-prog-name=ld gives a path. 13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13954printf %s "checking for ld used by $CC... " >&6; } 13955 case $host in 13956 *-*-mingw*) 13957 # gcc leaves a trailing carriage return, which upsets mingw 13958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13959 *) 13960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13961 esac 13962 case $ac_prog in 13963 # Accept absolute paths. 13964 [\\/]* | ?:[\\/]*) 13965 re_direlt='/[^/][^/]*/\.\./' 13966 # Canonicalize the pathname of ld 13967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13970 done 13971 test -z "$LD" && LD=$ac_prog 13972 ;; 13973 "") 13974 # If it fails, then pretend we aren't using GCC. 13975 ac_prog=ld 13976 ;; 13977 *) 13978 # If it is relative, then search for the first ld in PATH. 13979 with_gnu_ld=unknown 13980 ;; 13981 esac 13982elif test yes = "$with_gnu_ld"; then 13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13984printf %s "checking for GNU ld... " >&6; } 13985else 13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13987printf %s "checking for non-GNU ld... " >&6; } 13988fi 13989if test ${lt_cv_path_LD+y} 13990then : 13991 printf %s "(cached) " >&6 13992else $as_nop 13993 if test -z "$LD"; then 13994 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13995 for ac_dir in $PATH; do 13996 IFS=$lt_save_ifs 13997 test -z "$ac_dir" && ac_dir=. 13998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13999 lt_cv_path_LD=$ac_dir/$ac_prog 14000 # Check to see if the program is GNU ld. I'd rather use --version, 14001 # but apparently some variants of GNU ld only accept -v. 14002 # Break only if it was the GNU/non-GNU ld that we prefer. 14003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14004 *GNU* | *'with BFD'*) 14005 test no != "$with_gnu_ld" && break 14006 ;; 14007 *) 14008 test yes != "$with_gnu_ld" && break 14009 ;; 14010 esac 14011 fi 14012 done 14013 IFS=$lt_save_ifs 14014else 14015 lt_cv_path_LD=$LD # Let the user override the test with a path. 14016fi 14017fi 14018 14019LD=$lt_cv_path_LD 14020if test -n "$LD"; then 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14022printf "%s\n" "$LD" >&6; } 14023else 14024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14025printf "%s\n" "no" >&6; } 14026fi 14027test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14029printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14030if test ${lt_cv_prog_gnu_ld+y} 14031then : 14032 printf %s "(cached) " >&6 14033else $as_nop 14034 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14035case `$LD -v 2>&1 </dev/null` in 14036*GNU* | *'with BFD'*) 14037 lt_cv_prog_gnu_ld=yes 14038 ;; 14039*) 14040 lt_cv_prog_gnu_ld=no 14041 ;; 14042esac 14043fi 14044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14045printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14046with_gnu_ld=$lt_cv_prog_gnu_ld 14047 14048 14049 14050 14051 14052 14053 14054 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14055 # archiving commands below assume that GNU ld is being used. 14056 if test yes = "$with_gnu_ld"; then 14057 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14058 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' 14059 14060 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14061 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14062 14063 # If archive_cmds runs LD, not CC, wlarc should be empty 14064 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14065 # investigate it a little bit more. (MM) 14066 wlarc='$wl' 14067 14068 # ancient GNU ld didn't support --whole-archive et. al. 14069 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14070 $GREP 'no-whole-archive' > /dev/null; then 14071 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14072 else 14073 whole_archive_flag_spec_CXX= 14074 fi 14075 else 14076 with_gnu_ld=no 14077 wlarc= 14078 14079 # A generic and very simple default shared library creation 14080 # command for GNU C++ for the case where it uses the native 14081 # linker, instead of GNU ld. If possible, this setting should 14082 # overridden to take advantage of the native linker features on 14083 # the platform it is being used on. 14084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14085 fi 14086 14087 # Commands to make compiler produce verbose output that lists 14088 # what "hidden" libraries, object files and flags are used when 14089 # linking a shared library. 14090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14091 14092 else 14093 GXX=no 14094 with_gnu_ld=no 14095 wlarc= 14096 fi 14097 14098 # PORTME: fill in a description of your system's C++ link characteristics 14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14100printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14101 ld_shlibs_CXX=yes 14102 case $host_os in 14103 aix3*) 14104 # FIXME: insert proper C++ library support 14105 ld_shlibs_CXX=no 14106 ;; 14107 aix[4-9]*) 14108 if test ia64 = "$host_cpu"; then 14109 # On IA64, the linker does run time linking by default, so we don't 14110 # have to do anything special. 14111 aix_use_runtimelinking=no 14112 exp_sym_flag='-Bexport' 14113 no_entry_flag= 14114 else 14115 aix_use_runtimelinking=no 14116 14117 # Test if we are trying to use run time linking or normal 14118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14119 # have runtime linking enabled, and use it for executables. 14120 # For shared libraries, we enable/disable runtime linking 14121 # depending on the kind of the shared library created - 14122 # when "with_aix_soname,aix_use_runtimelinking" is: 14123 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14124 # "aix,yes" lib.so shared, rtl:yes, for executables 14125 # lib.a static archive 14126 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14127 # lib.a(lib.so.V) shared, rtl:no, for executables 14128 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14129 # lib.a(lib.so.V) shared, rtl:no 14130 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14131 # lib.a static archive 14132 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14133 for ld_flag in $LDFLAGS; do 14134 case $ld_flag in 14135 *-brtl*) 14136 aix_use_runtimelinking=yes 14137 break 14138 ;; 14139 esac 14140 done 14141 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14142 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14143 # so we don't have lib.a shared libs to link our executables. 14144 # We have to force runtime linking in this case. 14145 aix_use_runtimelinking=yes 14146 LDFLAGS="$LDFLAGS -Wl,-brtl" 14147 fi 14148 ;; 14149 esac 14150 14151 exp_sym_flag='-bexport' 14152 no_entry_flag='-bnoentry' 14153 fi 14154 14155 # When large executables or shared objects are built, AIX ld can 14156 # have problems creating the table of contents. If linking a library 14157 # or program results in "error TOC overflow" add -mminimal-toc to 14158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14160 14161 archive_cmds_CXX='' 14162 hardcode_direct_CXX=yes 14163 hardcode_direct_absolute_CXX=yes 14164 hardcode_libdir_separator_CXX=':' 14165 link_all_deplibs_CXX=yes 14166 file_list_spec_CXX='$wl-f,' 14167 case $with_aix_soname,$aix_use_runtimelinking in 14168 aix,*) ;; # no import file 14169 svr4,* | *,yes) # use import file 14170 # The Import File defines what to hardcode. 14171 hardcode_direct_CXX=no 14172 hardcode_direct_absolute_CXX=no 14173 ;; 14174 esac 14175 14176 if test yes = "$GXX"; then 14177 case $host_os in aix4.[012]|aix4.[012].*) 14178 # We only want to do this on AIX 4.2 and lower, the check 14179 # below for broken collect2 doesn't work under 4.3+ 14180 collect2name=`$CC -print-prog-name=collect2` 14181 if test -f "$collect2name" && 14182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14183 then 14184 # We have reworked collect2 14185 : 14186 else 14187 # We have old collect2 14188 hardcode_direct_CXX=unsupported 14189 # It fails to find uninstalled libraries when the uninstalled 14190 # path is not listed in the libpath. Setting hardcode_minus_L 14191 # to unsupported forces relinking 14192 hardcode_minus_L_CXX=yes 14193 hardcode_libdir_flag_spec_CXX='-L$libdir' 14194 hardcode_libdir_separator_CXX= 14195 fi 14196 esac 14197 shared_flag='-shared' 14198 if test yes = "$aix_use_runtimelinking"; then 14199 shared_flag=$shared_flag' $wl-G' 14200 fi 14201 # Need to ensure runtime linking is disabled for the traditional 14202 # shared library, or the linker may eventually find shared libraries 14203 # /with/ Import File - we do not want to mix them. 14204 shared_flag_aix='-shared' 14205 shared_flag_svr4='-shared $wl-G' 14206 else 14207 # not using gcc 14208 if test ia64 = "$host_cpu"; then 14209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14210 # chokes on -Wl,-G. The following line is correct: 14211 shared_flag='-G' 14212 else 14213 if test yes = "$aix_use_runtimelinking"; then 14214 shared_flag='$wl-G' 14215 else 14216 shared_flag='$wl-bM:SRE' 14217 fi 14218 shared_flag_aix='$wl-bM:SRE' 14219 shared_flag_svr4='$wl-G' 14220 fi 14221 fi 14222 14223 export_dynamic_flag_spec_CXX='$wl-bexpall' 14224 # It seems that -bexpall does not export symbols beginning with 14225 # underscore (_), so it is better to generate a list of symbols to 14226 # export. 14227 always_export_symbols_CXX=yes 14228 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14229 # Warning - without using the other runtime loading flags (-brtl), 14230 # -berok will link without error, but may produce a broken library. 14231 # The "-G" linker flag allows undefined symbols. 14232 no_undefined_flag_CXX='-bernotok' 14233 # Determine the default libpath from the value encoded in an empty 14234 # executable. 14235 if test set = "${lt_cv_aix_libpath+set}"; then 14236 aix_libpath=$lt_cv_aix_libpath 14237else 14238 if test ${lt_cv_aix_libpath__CXX+y} 14239then : 14240 printf %s "(cached) " >&6 14241else $as_nop 14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244 14245int 14246main (void) 14247{ 14248 14249 ; 14250 return 0; 14251} 14252_ACEOF 14253if ac_fn_cxx_try_link "$LINENO" 14254then : 14255 14256 lt_aix_libpath_sed=' 14257 /Import File Strings/,/^$/ { 14258 /^0/ { 14259 s/^0 *\([^ ]*\) *$/\1/ 14260 p 14261 } 14262 }' 14263 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14264 # Check for a 64-bit object if we didn't find anything. 14265 if test -z "$lt_cv_aix_libpath__CXX"; then 14266 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14267 fi 14268fi 14269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14270 conftest$ac_exeext conftest.$ac_ext 14271 if test -z "$lt_cv_aix_libpath__CXX"; then 14272 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14273 fi 14274 14275fi 14276 14277 aix_libpath=$lt_cv_aix_libpath__CXX 14278fi 14279 14280 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14281 14282 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 14283 else 14284 if test ia64 = "$host_cpu"; then 14285 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14286 allow_undefined_flag_CXX="-z nodefs" 14287 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" 14288 else 14289 # Determine the default libpath from the value encoded in an 14290 # empty executable. 14291 if test set = "${lt_cv_aix_libpath+set}"; then 14292 aix_libpath=$lt_cv_aix_libpath 14293else 14294 if test ${lt_cv_aix_libpath__CXX+y} 14295then : 14296 printf %s "(cached) " >&6 14297else $as_nop 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300 14301int 14302main (void) 14303{ 14304 14305 ; 14306 return 0; 14307} 14308_ACEOF 14309if ac_fn_cxx_try_link "$LINENO" 14310then : 14311 14312 lt_aix_libpath_sed=' 14313 /Import File Strings/,/^$/ { 14314 /^0/ { 14315 s/^0 *\([^ ]*\) *$/\1/ 14316 p 14317 } 14318 }' 14319 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14320 # Check for a 64-bit object if we didn't find anything. 14321 if test -z "$lt_cv_aix_libpath__CXX"; then 14322 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14323 fi 14324fi 14325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14326 conftest$ac_exeext conftest.$ac_ext 14327 if test -z "$lt_cv_aix_libpath__CXX"; then 14328 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14329 fi 14330 14331fi 14332 14333 aix_libpath=$lt_cv_aix_libpath__CXX 14334fi 14335 14336 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14337 # Warning - without using the other run time loading flags, 14338 # -berok will link without error, but may produce a broken library. 14339 no_undefined_flag_CXX=' $wl-bernotok' 14340 allow_undefined_flag_CXX=' $wl-berok' 14341 if test yes = "$with_gnu_ld"; then 14342 # We only use this code for GNU lds that support --whole-archive. 14343 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14344 else 14345 # Exported symbols can be pulled into shared objects from archives 14346 whole_archive_flag_spec_CXX='$convenience' 14347 fi 14348 archive_cmds_need_lc_CXX=yes 14349 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14350 # -brtl affects multiple linker settings, -berok does not and is overridden later 14351 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14352 if test svr4 != "$with_aix_soname"; then 14353 # This is similar to how AIX traditionally builds its shared 14354 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14355 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' 14356 fi 14357 if test aix != "$with_aix_soname"; then 14358 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' 14359 else 14360 # used by -dlpreopen to get the symbols 14361 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14362 fi 14363 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14364 fi 14365 fi 14366 ;; 14367 14368 beos*) 14369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14370 allow_undefined_flag_CXX=unsupported 14371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14372 # support --undefined. This deserves some investigation. FIXME 14373 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14374 else 14375 ld_shlibs_CXX=no 14376 fi 14377 ;; 14378 14379 chorus*) 14380 case $cc_basename in 14381 *) 14382 # FIXME: insert proper C++ library support 14383 ld_shlibs_CXX=no 14384 ;; 14385 esac 14386 ;; 14387 14388 cygwin* | mingw* | pw32* | cegcc*) 14389 case $GXX,$cc_basename in 14390 ,cl* | no,cl* | ,icl* | no,icl*) 14391 # Native MSVC or ICC 14392 # hardcode_libdir_flag_spec is actually meaningless, as there is 14393 # no search path for DLLs. 14394 hardcode_libdir_flag_spec_CXX=' ' 14395 allow_undefined_flag_CXX=unsupported 14396 always_export_symbols_CXX=yes 14397 file_list_spec_CXX='@' 14398 # Tell ltmain to make .lib files, not .a files. 14399 libext=lib 14400 # Tell ltmain to make .dll files, not .so files. 14401 shrext_cmds=.dll 14402 # FIXME: Setting linknames here is a bad hack. 14403 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14404 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14405 cp "$export_symbols" "$output_objdir/$soname.def"; 14406 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14407 else 14408 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14409 fi~ 14410 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14411 linknames=' 14412 # The linker will not automatically build a static lib if we build a DLL. 14413 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14414 enable_shared_with_static_runtimes_CXX=yes 14415 # Don't use ranlib 14416 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14417 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14418 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14419 case $lt_outputfile in 14420 *.exe|*.EXE) ;; 14421 *) 14422 lt_outputfile=$lt_outputfile.exe 14423 lt_tool_outputfile=$lt_tool_outputfile.exe 14424 ;; 14425 esac~ 14426 func_to_tool_file "$lt_outputfile"~ 14427 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14428 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14429 $RM "$lt_outputfile.manifest"; 14430 fi' 14431 ;; 14432 *) 14433 # g++ 14434 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14435 # as there is no search path for DLLs. 14436 hardcode_libdir_flag_spec_CXX='-L$libdir' 14437 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14438 allow_undefined_flag_CXX=unsupported 14439 always_export_symbols_CXX=no 14440 enable_shared_with_static_runtimes_CXX=yes 14441 14442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14443 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' 14444 # If the export-symbols file already is a .def file, use it as 14445 # is; otherwise, prepend EXPORTS... 14446 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14447 cp $export_symbols $output_objdir/$soname.def; 14448 else 14449 echo EXPORTS > $output_objdir/$soname.def; 14450 cat $export_symbols >> $output_objdir/$soname.def; 14451 fi~ 14452 $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' 14453 else 14454 ld_shlibs_CXX=no 14455 fi 14456 ;; 14457 esac 14458 ;; 14459 darwin* | rhapsody*) 14460 14461 14462 archive_cmds_need_lc_CXX=no 14463 hardcode_direct_CXX=no 14464 hardcode_automatic_CXX=yes 14465 hardcode_shlibpath_var_CXX=unsupported 14466 if test yes = "$lt_cv_ld_force_load"; then 14467 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\"`' 14468 14469 else 14470 whole_archive_flag_spec_CXX='' 14471 fi 14472 link_all_deplibs_CXX=yes 14473 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14474 case $cc_basename in 14475 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14476 *) _lt_dar_can_shared=$GCC ;; 14477 esac 14478 if test yes = "$_lt_dar_can_shared"; then 14479 output_verbose_link_cmd=func_echo_all 14480 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" 14481 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14482 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" 14483 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" 14484 if test yes != "$lt_cv_apple_cc_single_mod"; then 14485 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" 14486 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" 14487 fi 14488 14489 else 14490 ld_shlibs_CXX=no 14491 fi 14492 14493 ;; 14494 14495 os2*) 14496 hardcode_libdir_flag_spec_CXX='-L$libdir' 14497 hardcode_minus_L_CXX=yes 14498 allow_undefined_flag_CXX=unsupported 14499 shrext_cmds=.dll 14500 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14501 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14502 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14503 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14504 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14506 emximp -o $lib $output_objdir/$libname.def' 14507 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14508 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14509 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14510 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14511 prefix_cmds="$SED"~ 14512 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14513 prefix_cmds="$prefix_cmds -e 1d"; 14514 fi~ 14515 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14516 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14517 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14518 emximp -o $lib $output_objdir/$libname.def' 14519 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14520 enable_shared_with_static_runtimes_CXX=yes 14521 file_list_spec_CXX='@' 14522 ;; 14523 14524 dgux*) 14525 case $cc_basename in 14526 ec++*) 14527 # FIXME: insert proper C++ library support 14528 ld_shlibs_CXX=no 14529 ;; 14530 ghcx*) 14531 # Green Hills C++ Compiler 14532 # FIXME: insert proper C++ library support 14533 ld_shlibs_CXX=no 14534 ;; 14535 *) 14536 # FIXME: insert proper C++ library support 14537 ld_shlibs_CXX=no 14538 ;; 14539 esac 14540 ;; 14541 14542 freebsd2.*) 14543 # C++ shared libraries reported to be fairly broken before 14544 # switch to ELF 14545 ld_shlibs_CXX=no 14546 ;; 14547 14548 freebsd-elf*) 14549 archive_cmds_need_lc_CXX=no 14550 ;; 14551 14552 freebsd* | dragonfly*) 14553 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14554 # conventions 14555 ld_shlibs_CXX=yes 14556 ;; 14557 14558 haiku*) 14559 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14560 link_all_deplibs_CXX=yes 14561 ;; 14562 14563 hpux9*) 14564 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14565 hardcode_libdir_separator_CXX=: 14566 export_dynamic_flag_spec_CXX='$wl-E' 14567 hardcode_direct_CXX=yes 14568 hardcode_minus_L_CXX=yes # Not in the search PATH, 14569 # but as the default 14570 # location of the library. 14571 14572 case $cc_basename in 14573 CC*) 14574 # FIXME: insert proper C++ library support 14575 ld_shlibs_CXX=no 14576 ;; 14577 aCC*) 14578 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' 14579 # Commands to make compiler produce verbose output that lists 14580 # what "hidden" libraries, object files and flags are used when 14581 # linking a shared library. 14582 # 14583 # There doesn't appear to be a way to prevent this compiler from 14584 # explicitly linking system object files so we need to strip them 14585 # from the output so that they don't get included in the library 14586 # dependencies. 14587 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"' 14588 ;; 14589 *) 14590 if test yes = "$GXX"; then 14591 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' 14592 else 14593 # FIXME: insert proper C++ library support 14594 ld_shlibs_CXX=no 14595 fi 14596 ;; 14597 esac 14598 ;; 14599 14600 hpux10*|hpux11*) 14601 if test no = "$with_gnu_ld"; then 14602 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14603 hardcode_libdir_separator_CXX=: 14604 14605 case $host_cpu in 14606 hppa*64*|ia64*) 14607 ;; 14608 *) 14609 export_dynamic_flag_spec_CXX='$wl-E' 14610 ;; 14611 esac 14612 fi 14613 case $host_cpu in 14614 hppa*64*|ia64*) 14615 hardcode_direct_CXX=no 14616 hardcode_shlibpath_var_CXX=no 14617 ;; 14618 *) 14619 hardcode_direct_CXX=yes 14620 hardcode_direct_absolute_CXX=yes 14621 hardcode_minus_L_CXX=yes # Not in the search PATH, 14622 # but as the default 14623 # location of the library. 14624 ;; 14625 esac 14626 14627 case $cc_basename in 14628 CC*) 14629 # FIXME: insert proper C++ library support 14630 ld_shlibs_CXX=no 14631 ;; 14632 aCC*) 14633 case $host_cpu in 14634 hppa*64*) 14635 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14636 ;; 14637 ia64*) 14638 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14639 ;; 14640 *) 14641 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14642 ;; 14643 esac 14644 # Commands to make compiler produce verbose output that lists 14645 # what "hidden" libraries, object files and flags are used when 14646 # linking a shared library. 14647 # 14648 # There doesn't appear to be a way to prevent this compiler from 14649 # explicitly linking system object files so we need to strip them 14650 # from the output so that they don't get included in the library 14651 # dependencies. 14652 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"' 14653 ;; 14654 *) 14655 if test yes = "$GXX"; then 14656 if test no = "$with_gnu_ld"; then 14657 case $host_cpu in 14658 hppa*64*) 14659 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14660 ;; 14661 ia64*) 14662 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14663 ;; 14664 *) 14665 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' 14666 ;; 14667 esac 14668 fi 14669 else 14670 # FIXME: insert proper C++ library support 14671 ld_shlibs_CXX=no 14672 fi 14673 ;; 14674 esac 14675 ;; 14676 14677 interix[3-9]*) 14678 hardcode_direct_CXX=no 14679 hardcode_shlibpath_var_CXX=no 14680 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14681 export_dynamic_flag_spec_CXX='$wl-E' 14682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14683 # Instead, shared libraries are loaded at an image base (0x10000000 by 14684 # default) and relocated if they conflict, which is a slow very memory 14685 # consuming and fragmenting process. To avoid this, we pick a random, 14686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14687 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14688 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' 14689 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' 14690 ;; 14691 irix5* | irix6*) 14692 case $cc_basename in 14693 CC*) 14694 # SGI C++ 14695 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' 14696 14697 # Archives containing C++ object files must be created using 14698 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14699 # necessary to make sure instantiated templates are included 14700 # in the archive. 14701 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14702 ;; 14703 *) 14704 if test yes = "$GXX"; then 14705 if test no = "$with_gnu_ld"; then 14706 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' 14707 else 14708 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' 14709 fi 14710 fi 14711 link_all_deplibs_CXX=yes 14712 ;; 14713 esac 14714 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14715 hardcode_libdir_separator_CXX=: 14716 inherit_rpath_CXX=yes 14717 ;; 14718 14719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14720 case $cc_basename in 14721 KCC*) 14722 # Kuck and Associates, Inc. (KAI) C++ Compiler 14723 14724 # KCC will only create a shared library if the output file 14725 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14726 # to its proper name (with version) after linking. 14727 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' 14728 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' 14729 # Commands to make compiler produce verbose output that lists 14730 # what "hidden" libraries, object files and flags are used when 14731 # linking a shared library. 14732 # 14733 # There doesn't appear to be a way to prevent this compiler from 14734 # explicitly linking system object files so we need to strip them 14735 # from the output so that they don't get included in the library 14736 # dependencies. 14737 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"' 14738 14739 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14740 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14741 14742 # Archives containing C++ object files must be created using 14743 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14744 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14745 ;; 14746 icpc* | ecpc* ) 14747 # Intel C++ 14748 with_gnu_ld=yes 14749 # version 8.0 and above of icpc choke on multiply defined symbols 14750 # if we add $predep_objects and $postdep_objects, however 7.1 and 14751 # earlier do not add the objects themselves. 14752 case `$CC -V 2>&1` in 14753 *"Version 7."*) 14754 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14755 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' 14756 ;; 14757 *) # Version 8.0 or newer 14758 tmp_idyn= 14759 case $host_cpu in 14760 ia64*) tmp_idyn=' -i_dynamic';; 14761 esac 14762 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14763 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' 14764 ;; 14765 esac 14766 archive_cmds_need_lc_CXX=no 14767 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14768 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14769 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14770 ;; 14771 pgCC* | pgcpp*) 14772 # Portland Group C++ compiler 14773 case `$CC -V` in 14774 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14775 prelink_cmds_CXX='tpldir=Template.dir~ 14776 rm -rf $tpldir~ 14777 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14778 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14779 old_archive_cmds_CXX='tpldir=Template.dir~ 14780 rm -rf $tpldir~ 14781 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14782 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14783 $RANLIB $oldlib' 14784 archive_cmds_CXX='tpldir=Template.dir~ 14785 rm -rf $tpldir~ 14786 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14787 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14788 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14789 rm -rf $tpldir~ 14790 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14791 $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' 14792 ;; 14793 *) # Version 6 and above use weak symbols 14794 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14795 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' 14796 ;; 14797 esac 14798 14799 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14800 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14801 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' 14802 ;; 14803 cxx*) 14804 # Compaq C++ 14805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14806 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' 14807 14808 runpath_var=LD_RUN_PATH 14809 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14810 hardcode_libdir_separator_CXX=: 14811 14812 # Commands to make compiler produce verbose output that lists 14813 # what "hidden" libraries, object files and flags are used when 14814 # linking a shared library. 14815 # 14816 # There doesn't appear to be a way to prevent this compiler from 14817 # explicitly linking system object files so we need to strip them 14818 # from the output so that they don't get included in the library 14819 # dependencies. 14820 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' 14821 ;; 14822 xl* | mpixl* | bgxl*) 14823 # IBM XL 8.0 on PPC, with GNU ld 14824 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14825 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14826 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14827 if test yes = "$supports_anon_versioning"; then 14828 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14830 echo "local: *; };" >> $output_objdir/$libname.ver~ 14831 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14832 fi 14833 ;; 14834 *) 14835 case `$CC -V 2>&1 | sed 5q` in 14836 *Sun\ C*) 14837 # Sun C++ 5.9 14838 no_undefined_flag_CXX=' -zdefs' 14839 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14840 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' 14841 hardcode_libdir_flag_spec_CXX='-R$libdir' 14842 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' 14843 compiler_needs_object_CXX=yes 14844 14845 # Not sure whether something based on 14846 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14847 # would be better. 14848 output_verbose_link_cmd='func_echo_all' 14849 14850 # Archives containing C++ object files must be created using 14851 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14852 # necessary to make sure instantiated templates are included 14853 # in the archive. 14854 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14855 ;; 14856 esac 14857 ;; 14858 esac 14859 ;; 14860 14861 lynxos*) 14862 # FIXME: insert proper C++ library support 14863 ld_shlibs_CXX=no 14864 ;; 14865 14866 m88k*) 14867 # FIXME: insert proper C++ library support 14868 ld_shlibs_CXX=no 14869 ;; 14870 14871 mvs*) 14872 case $cc_basename in 14873 cxx*) 14874 # FIXME: insert proper C++ library support 14875 ld_shlibs_CXX=no 14876 ;; 14877 *) 14878 # FIXME: insert proper C++ library support 14879 ld_shlibs_CXX=no 14880 ;; 14881 esac 14882 ;; 14883 14884 netbsd*) 14885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14886 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14887 wlarc= 14888 hardcode_libdir_flag_spec_CXX='-R$libdir' 14889 hardcode_direct_CXX=yes 14890 hardcode_shlibpath_var_CXX=no 14891 fi 14892 # Workaround some broken pre-1.5 toolchains 14893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14894 ;; 14895 14896 *nto* | *qnx*) 14897 ld_shlibs_CXX=yes 14898 ;; 14899 14900 openbsd* | bitrig*) 14901 if test -f /usr/libexec/ld.so; then 14902 hardcode_direct_CXX=yes 14903 hardcode_shlibpath_var_CXX=no 14904 hardcode_direct_absolute_CXX=yes 14905 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14906 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14908 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14909 export_dynamic_flag_spec_CXX='$wl-E' 14910 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14911 fi 14912 output_verbose_link_cmd=func_echo_all 14913 else 14914 ld_shlibs_CXX=no 14915 fi 14916 ;; 14917 14918 osf3* | osf4* | osf5*) 14919 case $cc_basename in 14920 KCC*) 14921 # Kuck and Associates, Inc. (KAI) C++ Compiler 14922 14923 # KCC will only create a shared library if the output file 14924 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14925 # to its proper name (with version) after linking. 14926 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' 14927 14928 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14929 hardcode_libdir_separator_CXX=: 14930 14931 # Archives containing C++ object files must be created using 14932 # the KAI C++ compiler. 14933 case $host in 14934 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14935 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14936 esac 14937 ;; 14938 RCC*) 14939 # Rational C++ 2.4.1 14940 # FIXME: insert proper C++ library support 14941 ld_shlibs_CXX=no 14942 ;; 14943 cxx*) 14944 case $host in 14945 osf3*) 14946 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14947 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' 14948 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14949 ;; 14950 *) 14951 allow_undefined_flag_CXX=' -expect_unresolved \*' 14952 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' 14953 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14954 echo "-hidden">> $lib.exp~ 14955 $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~ 14956 $RM $lib.exp' 14957 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14958 ;; 14959 esac 14960 14961 hardcode_libdir_separator_CXX=: 14962 14963 # Commands to make compiler produce verbose output that lists 14964 # what "hidden" libraries, object files and flags are used when 14965 # linking a shared library. 14966 # 14967 # There doesn't appear to be a way to prevent this compiler from 14968 # explicitly linking system object files so we need to strip them 14969 # from the output so that they don't get included in the library 14970 # dependencies. 14971 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"' 14972 ;; 14973 *) 14974 if test yes,no = "$GXX,$with_gnu_ld"; then 14975 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14976 case $host in 14977 osf3*) 14978 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' 14979 ;; 14980 *) 14981 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' 14982 ;; 14983 esac 14984 14985 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14986 hardcode_libdir_separator_CXX=: 14987 14988 # Commands to make compiler produce verbose output that lists 14989 # what "hidden" libraries, object files and flags are used when 14990 # linking a shared library. 14991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14992 14993 else 14994 # FIXME: insert proper C++ library support 14995 ld_shlibs_CXX=no 14996 fi 14997 ;; 14998 esac 14999 ;; 15000 15001 psos*) 15002 # FIXME: insert proper C++ library support 15003 ld_shlibs_CXX=no 15004 ;; 15005 15006 sunos4*) 15007 case $cc_basename in 15008 CC*) 15009 # Sun C++ 4.x 15010 # FIXME: insert proper C++ library support 15011 ld_shlibs_CXX=no 15012 ;; 15013 lcc*) 15014 # Lucid 15015 # FIXME: insert proper C++ library support 15016 ld_shlibs_CXX=no 15017 ;; 15018 *) 15019 # FIXME: insert proper C++ library support 15020 ld_shlibs_CXX=no 15021 ;; 15022 esac 15023 ;; 15024 15025 solaris*) 15026 case $cc_basename in 15027 CC* | sunCC*) 15028 # Sun C++ 4.2, 5.x and Centerline C++ 15029 archive_cmds_need_lc_CXX=yes 15030 no_undefined_flag_CXX=' -zdefs' 15031 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15033 $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' 15034 15035 hardcode_libdir_flag_spec_CXX='-R$libdir' 15036 hardcode_shlibpath_var_CXX=no 15037 case $host_os in 15038 solaris2.[0-5] | solaris2.[0-5].*) ;; 15039 *) 15040 # The compiler driver will combine and reorder linker options, 15041 # but understands '-z linker_flag'. 15042 # Supported since Solaris 2.6 (maybe 2.5.1?) 15043 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15044 ;; 15045 esac 15046 link_all_deplibs_CXX=yes 15047 15048 output_verbose_link_cmd='func_echo_all' 15049 15050 # Archives containing C++ object files must be created using 15051 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15052 # necessary to make sure instantiated templates are included 15053 # in the archive. 15054 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15055 ;; 15056 gcx*) 15057 # Green Hills C++ Compiler 15058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15059 15060 # The C++ compiler must be used to create the archive. 15061 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15062 ;; 15063 *) 15064 # GNU C++ compiler with Solaris linker 15065 if test yes,no = "$GXX,$with_gnu_ld"; then 15066 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15067 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15068 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15069 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15070 $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' 15071 15072 # Commands to make compiler produce verbose output that lists 15073 # what "hidden" libraries, object files and flags are used when 15074 # linking a shared library. 15075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15076 else 15077 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15078 # platform. 15079 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15081 $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' 15082 15083 # Commands to make compiler produce verbose output that lists 15084 # what "hidden" libraries, object files and flags are used when 15085 # linking a shared library. 15086 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15087 fi 15088 15089 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15090 case $host_os in 15091 solaris2.[0-5] | solaris2.[0-5].*) ;; 15092 *) 15093 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15094 ;; 15095 esac 15096 fi 15097 ;; 15098 esac 15099 ;; 15100 15101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15102 no_undefined_flag_CXX='$wl-z,text' 15103 archive_cmds_need_lc_CXX=no 15104 hardcode_shlibpath_var_CXX=no 15105 runpath_var='LD_RUN_PATH' 15106 15107 case $cc_basename in 15108 CC*) 15109 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15110 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15111 ;; 15112 *) 15113 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15114 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15115 ;; 15116 esac 15117 ;; 15118 15119 sysv5* | sco3.2v5* | sco5v6*) 15120 # Note: We CANNOT use -z defs as we might desire, because we do not 15121 # link with -lc, and that would cause any symbols used from libc to 15122 # always be unresolved, which means just about no library would 15123 # ever link correctly. If we're not using GNU ld we use -z text 15124 # though, which does catch some bad symbols but isn't as heavy-handed 15125 # as -z defs. 15126 no_undefined_flag_CXX='$wl-z,text' 15127 allow_undefined_flag_CXX='$wl-z,nodefs' 15128 archive_cmds_need_lc_CXX=no 15129 hardcode_shlibpath_var_CXX=no 15130 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15131 hardcode_libdir_separator_CXX=':' 15132 link_all_deplibs_CXX=yes 15133 export_dynamic_flag_spec_CXX='$wl-Bexport' 15134 runpath_var='LD_RUN_PATH' 15135 15136 case $cc_basename in 15137 CC*) 15138 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15139 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15140 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15141 '"$old_archive_cmds_CXX" 15142 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15143 '"$reload_cmds_CXX" 15144 ;; 15145 *) 15146 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15147 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15148 ;; 15149 esac 15150 ;; 15151 15152 tandem*) 15153 case $cc_basename in 15154 NCC*) 15155 # NonStop-UX NCC 3.20 15156 # FIXME: insert proper C++ library support 15157 ld_shlibs_CXX=no 15158 ;; 15159 *) 15160 # FIXME: insert proper C++ library support 15161 ld_shlibs_CXX=no 15162 ;; 15163 esac 15164 ;; 15165 15166 vxworks*) 15167 # FIXME: insert proper C++ library support 15168 ld_shlibs_CXX=no 15169 ;; 15170 15171 *) 15172 # FIXME: insert proper C++ library support 15173 ld_shlibs_CXX=no 15174 ;; 15175 esac 15176 15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15178printf "%s\n" "$ld_shlibs_CXX" >&6; } 15179 test no = "$ld_shlibs_CXX" && can_build_shared=no 15180 15181 GCC_CXX=$GXX 15182 LD_CXX=$LD 15183 15184 ## CAVEAT EMPTOR: 15185 ## There is no encapsulation within the following macros, do not change 15186 ## the running order or otherwise move them around unless you know exactly 15187 ## what you are doing... 15188 # Dependencies to place before and after the object being linked: 15189predep_objects_CXX= 15190postdep_objects_CXX= 15191predeps_CXX= 15192postdeps_CXX= 15193compiler_lib_search_path_CXX= 15194 15195cat > conftest.$ac_ext <<_LT_EOF 15196class Foo 15197{ 15198public: 15199 Foo (void) { a = 0; } 15200private: 15201 int a; 15202}; 15203_LT_EOF 15204 15205 15206_lt_libdeps_save_CFLAGS=$CFLAGS 15207case "$CC $CFLAGS " in #( 15208*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15209*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15210*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15211esac 15212 15213if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15214 (eval $ac_compile) 2>&5 15215 ac_status=$? 15216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15217 test $ac_status = 0; }; then 15218 # Parse the compiler output and extract the necessary 15219 # objects, libraries and library flags. 15220 15221 # Sentinel used to keep track of whether or not we are before 15222 # the conftest object file. 15223 pre_test_object_deps_done=no 15224 15225 for p in `eval "$output_verbose_link_cmd"`; do 15226 case $prev$p in 15227 15228 -L* | -R* | -l*) 15229 # Some compilers place space between "-{L,R}" and the path. 15230 # Remove the space. 15231 if test x-L = "$p" || 15232 test x-R = "$p"; then 15233 prev=$p 15234 continue 15235 fi 15236 15237 # Expand the sysroot to ease extracting the directories later. 15238 if test -z "$prev"; then 15239 case $p in 15240 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15241 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15242 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15243 esac 15244 fi 15245 case $p in 15246 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15247 esac 15248 if test no = "$pre_test_object_deps_done"; then 15249 case $prev in 15250 -L | -R) 15251 # Internal compiler library paths should come after those 15252 # provided the user. The postdeps already come after the 15253 # user supplied libs so there is no need to process them. 15254 if test -z "$compiler_lib_search_path_CXX"; then 15255 compiler_lib_search_path_CXX=$prev$p 15256 else 15257 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15258 fi 15259 ;; 15260 # The "-l" case would never come before the object being 15261 # linked, so don't bother handling this case. 15262 esac 15263 else 15264 if test -z "$postdeps_CXX"; then 15265 postdeps_CXX=$prev$p 15266 else 15267 postdeps_CXX="${postdeps_CXX} $prev$p" 15268 fi 15269 fi 15270 prev= 15271 ;; 15272 15273 *.lto.$objext) ;; # Ignore GCC LTO objects 15274 *.$objext) 15275 # This assumes that the test object file only shows up 15276 # once in the compiler output. 15277 if test "$p" = "conftest.$objext"; then 15278 pre_test_object_deps_done=yes 15279 continue 15280 fi 15281 15282 if test no = "$pre_test_object_deps_done"; then 15283 if test -z "$predep_objects_CXX"; then 15284 predep_objects_CXX=$p 15285 else 15286 predep_objects_CXX="$predep_objects_CXX $p" 15287 fi 15288 else 15289 if test -z "$postdep_objects_CXX"; then 15290 postdep_objects_CXX=$p 15291 else 15292 postdep_objects_CXX="$postdep_objects_CXX $p" 15293 fi 15294 fi 15295 ;; 15296 15297 *) ;; # Ignore the rest. 15298 15299 esac 15300 done 15301 15302 # Clean up. 15303 rm -f a.out a.exe 15304else 15305 echo "libtool.m4: error: problem compiling CXX test program" 15306fi 15307 15308$RM -f confest.$objext 15309CFLAGS=$_lt_libdeps_save_CFLAGS 15310 15311# PORTME: override above test on systems where it is broken 15312case $host_os in 15313interix[3-9]*) 15314 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15315 # hack all around it, let's just trust "g++" to DTRT. 15316 predep_objects_CXX= 15317 postdep_objects_CXX= 15318 postdeps_CXX= 15319 ;; 15320esac 15321 15322 15323case " $postdeps_CXX " in 15324*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15325esac 15326 compiler_lib_search_dirs_CXX= 15327if test -n "${compiler_lib_search_path_CXX}"; then 15328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15329fi 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 lt_prog_compiler_wl_CXX= 15362lt_prog_compiler_pic_CXX= 15363lt_prog_compiler_static_CXX= 15364 15365 15366 # C++ specific cases for pic, static, wl, etc. 15367 if test yes = "$GXX"; then 15368 lt_prog_compiler_wl_CXX='-Wl,' 15369 lt_prog_compiler_static_CXX='-static' 15370 15371 case $host_os in 15372 aix*) 15373 # All AIX code is PIC. 15374 if test ia64 = "$host_cpu"; then 15375 # AIX 5 now supports IA64 processor 15376 lt_prog_compiler_static_CXX='-Bstatic' 15377 fi 15378 lt_prog_compiler_pic_CXX='-fPIC' 15379 ;; 15380 15381 amigaos*) 15382 case $host_cpu in 15383 powerpc) 15384 # see comment about AmigaOS4 .so support 15385 lt_prog_compiler_pic_CXX='-fPIC' 15386 ;; 15387 m68k) 15388 # FIXME: we need at least 68020 code to build shared libraries, but 15389 # adding the '-m68020' flag to GCC prevents building anything better, 15390 # like '-m68040'. 15391 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15392 ;; 15393 esac 15394 ;; 15395 15396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15397 # PIC is the default for these OSes. 15398 ;; 15399 mingw* | cygwin* | os2* | pw32* | cegcc*) 15400 # This hack is so that the source file can tell whether it is being 15401 # built for inclusion in a dll (and should export symbols for example). 15402 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15403 # (--disable-auto-import) libraries 15404 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15405 case $host_os in 15406 os2*) 15407 lt_prog_compiler_static_CXX='$wl-static' 15408 ;; 15409 esac 15410 ;; 15411 darwin* | rhapsody*) 15412 # PIC is the default on this platform 15413 # Common symbols not allowed in MH_DYLIB files 15414 lt_prog_compiler_pic_CXX='-fno-common' 15415 ;; 15416 *djgpp*) 15417 # DJGPP does not support shared libraries at all 15418 lt_prog_compiler_pic_CXX= 15419 ;; 15420 haiku*) 15421 # PIC is the default for Haiku. 15422 # The "-static" flag exists, but is broken. 15423 lt_prog_compiler_static_CXX= 15424 ;; 15425 interix[3-9]*) 15426 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15427 # Instead, we relocate shared libraries at runtime. 15428 ;; 15429 sysv4*MP*) 15430 if test -d /usr/nec; then 15431 lt_prog_compiler_pic_CXX=-Kconform_pic 15432 fi 15433 ;; 15434 hpux*) 15435 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15436 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15437 # sets the default TLS model and affects inlining. 15438 case $host_cpu in 15439 hppa*64*) 15440 ;; 15441 *) 15442 lt_prog_compiler_pic_CXX='-fPIC' 15443 ;; 15444 esac 15445 ;; 15446 *qnx* | *nto*) 15447 # QNX uses GNU C++, but need to define -shared option too, otherwise 15448 # it will coredump. 15449 lt_prog_compiler_pic_CXX='-fPIC -shared' 15450 ;; 15451 *) 15452 lt_prog_compiler_pic_CXX='-fPIC' 15453 ;; 15454 esac 15455 else 15456 case $host_os in 15457 aix[4-9]*) 15458 # All AIX code is PIC. 15459 if test ia64 = "$host_cpu"; then 15460 # AIX 5 now supports IA64 processor 15461 lt_prog_compiler_static_CXX='-Bstatic' 15462 else 15463 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15464 fi 15465 ;; 15466 chorus*) 15467 case $cc_basename in 15468 cxch68*) 15469 # Green Hills C++ Compiler 15470 # _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" 15471 ;; 15472 esac 15473 ;; 15474 mingw* | cygwin* | os2* | pw32* | cegcc*) 15475 # This hack is so that the source file can tell whether it is being 15476 # built for inclusion in a dll (and should export symbols for example). 15477 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15478 ;; 15479 dgux*) 15480 case $cc_basename in 15481 ec++*) 15482 lt_prog_compiler_pic_CXX='-KPIC' 15483 ;; 15484 ghcx*) 15485 # Green Hills C++ Compiler 15486 lt_prog_compiler_pic_CXX='-pic' 15487 ;; 15488 *) 15489 ;; 15490 esac 15491 ;; 15492 freebsd* | dragonfly*) 15493 # FreeBSD uses GNU C++ 15494 ;; 15495 hpux9* | hpux10* | hpux11*) 15496 case $cc_basename in 15497 CC*) 15498 lt_prog_compiler_wl_CXX='-Wl,' 15499 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15500 if test ia64 != "$host_cpu"; then 15501 lt_prog_compiler_pic_CXX='+Z' 15502 fi 15503 ;; 15504 aCC*) 15505 lt_prog_compiler_wl_CXX='-Wl,' 15506 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15507 case $host_cpu in 15508 hppa*64*|ia64*) 15509 # +Z the default 15510 ;; 15511 *) 15512 lt_prog_compiler_pic_CXX='+Z' 15513 ;; 15514 esac 15515 ;; 15516 *) 15517 ;; 15518 esac 15519 ;; 15520 interix*) 15521 # This is c89, which is MS Visual C++ (no shared libs) 15522 # Anyone wants to do a port? 15523 ;; 15524 irix5* | irix6* | nonstopux*) 15525 case $cc_basename in 15526 CC*) 15527 lt_prog_compiler_wl_CXX='-Wl,' 15528 lt_prog_compiler_static_CXX='-non_shared' 15529 # CC pic flag -KPIC is the default. 15530 ;; 15531 *) 15532 ;; 15533 esac 15534 ;; 15535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15536 case $cc_basename in 15537 KCC*) 15538 # KAI C++ Compiler 15539 lt_prog_compiler_wl_CXX='--backend -Wl,' 15540 lt_prog_compiler_pic_CXX='-fPIC' 15541 ;; 15542 ecpc* ) 15543 # old Intel C++ for x86_64, which still supported -KPIC. 15544 lt_prog_compiler_wl_CXX='-Wl,' 15545 lt_prog_compiler_pic_CXX='-KPIC' 15546 lt_prog_compiler_static_CXX='-static' 15547 ;; 15548 icpc* ) 15549 # Intel C++, used to be incompatible with GCC. 15550 # ICC 10 doesn't accept -KPIC any more. 15551 lt_prog_compiler_wl_CXX='-Wl,' 15552 lt_prog_compiler_pic_CXX='-fPIC' 15553 lt_prog_compiler_static_CXX='-static' 15554 ;; 15555 pgCC* | pgcpp*) 15556 # Portland Group C++ compiler 15557 lt_prog_compiler_wl_CXX='-Wl,' 15558 lt_prog_compiler_pic_CXX='-fpic' 15559 lt_prog_compiler_static_CXX='-Bstatic' 15560 ;; 15561 cxx*) 15562 # Compaq C++ 15563 # Make sure the PIC flag is empty. It appears that all Alpha 15564 # Linux and Compaq Tru64 Unix objects are PIC. 15565 lt_prog_compiler_pic_CXX= 15566 lt_prog_compiler_static_CXX='-non_shared' 15567 ;; 15568 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15569 # IBM XL 8.0, 9.0 on PPC and BlueGene 15570 lt_prog_compiler_wl_CXX='-Wl,' 15571 lt_prog_compiler_pic_CXX='-qpic' 15572 lt_prog_compiler_static_CXX='-qstaticlink' 15573 ;; 15574 *) 15575 case `$CC -V 2>&1 | sed 5q` in 15576 *Sun\ C*) 15577 # Sun C++ 5.9 15578 lt_prog_compiler_pic_CXX='-KPIC' 15579 lt_prog_compiler_static_CXX='-Bstatic' 15580 lt_prog_compiler_wl_CXX='-Qoption ld ' 15581 ;; 15582 esac 15583 ;; 15584 esac 15585 ;; 15586 lynxos*) 15587 ;; 15588 m88k*) 15589 ;; 15590 mvs*) 15591 case $cc_basename in 15592 cxx*) 15593 lt_prog_compiler_pic_CXX='-W c,exportall' 15594 ;; 15595 *) 15596 ;; 15597 esac 15598 ;; 15599 netbsd*) 15600 ;; 15601 *qnx* | *nto*) 15602 # QNX uses GNU C++, but need to define -shared option too, otherwise 15603 # it will coredump. 15604 lt_prog_compiler_pic_CXX='-fPIC -shared' 15605 ;; 15606 osf3* | osf4* | osf5*) 15607 case $cc_basename in 15608 KCC*) 15609 lt_prog_compiler_wl_CXX='--backend -Wl,' 15610 ;; 15611 RCC*) 15612 # Rational C++ 2.4.1 15613 lt_prog_compiler_pic_CXX='-pic' 15614 ;; 15615 cxx*) 15616 # Digital/Compaq C++ 15617 lt_prog_compiler_wl_CXX='-Wl,' 15618 # Make sure the PIC flag is empty. It appears that all Alpha 15619 # Linux and Compaq Tru64 Unix objects are PIC. 15620 lt_prog_compiler_pic_CXX= 15621 lt_prog_compiler_static_CXX='-non_shared' 15622 ;; 15623 *) 15624 ;; 15625 esac 15626 ;; 15627 psos*) 15628 ;; 15629 solaris*) 15630 case $cc_basename in 15631 CC* | sunCC*) 15632 # Sun C++ 4.2, 5.x and Centerline C++ 15633 lt_prog_compiler_pic_CXX='-KPIC' 15634 lt_prog_compiler_static_CXX='-Bstatic' 15635 lt_prog_compiler_wl_CXX='-Qoption ld ' 15636 ;; 15637 gcx*) 15638 # Green Hills C++ Compiler 15639 lt_prog_compiler_pic_CXX='-PIC' 15640 ;; 15641 *) 15642 ;; 15643 esac 15644 ;; 15645 sunos4*) 15646 case $cc_basename in 15647 CC*) 15648 # Sun C++ 4.x 15649 lt_prog_compiler_pic_CXX='-pic' 15650 lt_prog_compiler_static_CXX='-Bstatic' 15651 ;; 15652 lcc*) 15653 # Lucid 15654 lt_prog_compiler_pic_CXX='-pic' 15655 ;; 15656 *) 15657 ;; 15658 esac 15659 ;; 15660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15661 case $cc_basename in 15662 CC*) 15663 lt_prog_compiler_wl_CXX='-Wl,' 15664 lt_prog_compiler_pic_CXX='-KPIC' 15665 lt_prog_compiler_static_CXX='-Bstatic' 15666 ;; 15667 esac 15668 ;; 15669 tandem*) 15670 case $cc_basename in 15671 NCC*) 15672 # NonStop-UX NCC 3.20 15673 lt_prog_compiler_pic_CXX='-KPIC' 15674 ;; 15675 *) 15676 ;; 15677 esac 15678 ;; 15679 vxworks*) 15680 ;; 15681 *) 15682 lt_prog_compiler_can_build_shared_CXX=no 15683 ;; 15684 esac 15685 fi 15686 15687case $host_os in 15688 # For platforms that do not support PIC, -DPIC is meaningless: 15689 *djgpp*) 15690 lt_prog_compiler_pic_CXX= 15691 ;; 15692 *) 15693 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15694 ;; 15695esac 15696 15697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15698printf %s "checking for $compiler option to produce PIC... " >&6; } 15699if test ${lt_cv_prog_compiler_pic_CXX+y} 15700then : 15701 printf %s "(cached) " >&6 15702else $as_nop 15703 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15704fi 15705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15706printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 15707lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15708 15709# 15710# Check to make sure the PIC flag actually works. 15711# 15712if test -n "$lt_prog_compiler_pic_CXX"; then 15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15714printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15715if test ${lt_cv_prog_compiler_pic_works_CXX+y} 15716then : 15717 printf %s "(cached) " >&6 15718else $as_nop 15719 lt_cv_prog_compiler_pic_works_CXX=no 15720 ac_outfile=conftest.$ac_objext 15721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15723 # Insert the option either (1) after the last *FLAGS variable, or 15724 # (2) before a word containing "conftest.", or (3) at the end. 15725 # Note that $ac_compile itself does not contain backslashes and begins 15726 # with a dollar sign (not a hyphen), so the echo should work correctly. 15727 # The option is referenced via a variable to avoid confusing sed. 15728 lt_compile=`echo "$ac_compile" | $SED \ 15729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15731 -e 's:$: $lt_compiler_flag:'` 15732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15733 (eval "$lt_compile" 2>conftest.err) 15734 ac_status=$? 15735 cat conftest.err >&5 15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15737 if (exit $ac_status) && test -s "$ac_outfile"; then 15738 # The compiler can only warn and ignore the option if not recognized 15739 # So say no if there are warnings other than the usual output. 15740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15743 lt_cv_prog_compiler_pic_works_CXX=yes 15744 fi 15745 fi 15746 $RM conftest* 15747 15748fi 15749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15750printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15751 15752if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15753 case $lt_prog_compiler_pic_CXX in 15754 "" | " "*) ;; 15755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15756 esac 15757else 15758 lt_prog_compiler_pic_CXX= 15759 lt_prog_compiler_can_build_shared_CXX=no 15760fi 15761 15762fi 15763 15764 15765 15766 15767 15768# 15769# Check to make sure the static flag actually works. 15770# 15771wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15773printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15774if test ${lt_cv_prog_compiler_static_works_CXX+y} 15775then : 15776 printf %s "(cached) " >&6 15777else $as_nop 15778 lt_cv_prog_compiler_static_works_CXX=no 15779 save_LDFLAGS=$LDFLAGS 15780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15781 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15783 # The linker can only warn and ignore the option if not recognized 15784 # So say no if there are warnings 15785 if test -s conftest.err; then 15786 # Append any errors to the config.log. 15787 cat conftest.err 1>&5 15788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15790 if diff conftest.exp conftest.er2 >/dev/null; then 15791 lt_cv_prog_compiler_static_works_CXX=yes 15792 fi 15793 else 15794 lt_cv_prog_compiler_static_works_CXX=yes 15795 fi 15796 fi 15797 $RM -r conftest* 15798 LDFLAGS=$save_LDFLAGS 15799 15800fi 15801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15802printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15803 15804if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15805 : 15806else 15807 lt_prog_compiler_static_CXX= 15808fi 15809 15810 15811 15812 15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15814printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15815if test ${lt_cv_prog_compiler_c_o_CXX+y} 15816then : 15817 printf %s "(cached) " >&6 15818else $as_nop 15819 lt_cv_prog_compiler_c_o_CXX=no 15820 $RM -r conftest 2>/dev/null 15821 mkdir conftest 15822 cd conftest 15823 mkdir out 15824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15825 15826 lt_compiler_flag="-o out/conftest2.$ac_objext" 15827 # Insert the option either (1) after the last *FLAGS variable, or 15828 # (2) before a word containing "conftest.", or (3) at the end. 15829 # Note that $ac_compile itself does not contain backslashes and begins 15830 # with a dollar sign (not a hyphen), so the echo should work correctly. 15831 lt_compile=`echo "$ac_compile" | $SED \ 15832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15834 -e 's:$: $lt_compiler_flag:'` 15835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15836 (eval "$lt_compile" 2>out/conftest.err) 15837 ac_status=$? 15838 cat out/conftest.err >&5 15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15840 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15841 then 15842 # The compiler can only warn and ignore the option if not recognized 15843 # So say no if there are warnings 15844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15847 lt_cv_prog_compiler_c_o_CXX=yes 15848 fi 15849 fi 15850 chmod u+w . 2>&5 15851 $RM conftest* 15852 # SGI C++ compiler will create directory out/ii_files/ for 15853 # template instantiation 15854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15855 $RM out/* && rmdir out 15856 cd .. 15857 $RM -r conftest 15858 $RM conftest* 15859 15860fi 15861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15862printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15863 15864 15865 15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15867printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15868if test ${lt_cv_prog_compiler_c_o_CXX+y} 15869then : 15870 printf %s "(cached) " >&6 15871else $as_nop 15872 lt_cv_prog_compiler_c_o_CXX=no 15873 $RM -r conftest 2>/dev/null 15874 mkdir conftest 15875 cd conftest 15876 mkdir out 15877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15878 15879 lt_compiler_flag="-o out/conftest2.$ac_objext" 15880 # Insert the option either (1) after the last *FLAGS variable, or 15881 # (2) before a word containing "conftest.", or (3) at the end. 15882 # Note that $ac_compile itself does not contain backslashes and begins 15883 # with a dollar sign (not a hyphen), so the echo should work correctly. 15884 lt_compile=`echo "$ac_compile" | $SED \ 15885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15887 -e 's:$: $lt_compiler_flag:'` 15888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15889 (eval "$lt_compile" 2>out/conftest.err) 15890 ac_status=$? 15891 cat out/conftest.err >&5 15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15893 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15894 then 15895 # The compiler can only warn and ignore the option if not recognized 15896 # So say no if there are warnings 15897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15900 lt_cv_prog_compiler_c_o_CXX=yes 15901 fi 15902 fi 15903 chmod u+w . 2>&5 15904 $RM conftest* 15905 # SGI C++ compiler will create directory out/ii_files/ for 15906 # template instantiation 15907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15908 $RM out/* && rmdir out 15909 cd .. 15910 $RM -r conftest 15911 $RM conftest* 15912 15913fi 15914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15915printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15916 15917 15918 15919 15920hard_links=nottested 15921if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15922 # do not overwrite the value of need_locks provided by the user 15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15924printf %s "checking if we can lock with hard links... " >&6; } 15925 hard_links=yes 15926 $RM conftest* 15927 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15928 touch conftest.a 15929 ln conftest.a conftest.b 2>&5 || hard_links=no 15930 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15932printf "%s\n" "$hard_links" >&6; } 15933 if test no = "$hard_links"; then 15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15935printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15936 need_locks=warn 15937 fi 15938else 15939 need_locks=no 15940fi 15941 15942 15943 15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15945printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15946 15947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15948 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15949 case $host_os in 15950 aix[4-9]*) 15951 # If we're using GNU nm, then we don't want the "-C" option. 15952 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15953 # Without the "-l" option, or with the "-B" option, AIX nm treats 15954 # weak defined symbols like other global defined symbols, whereas 15955 # GNU nm marks them as "W". 15956 # While the 'weak' keyword is ignored in the Export File, we need 15957 # it in the Import File for the 'aix-soname' feature, so we have 15958 # to replace the "-B" option with "-P" for AIX nm. 15959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15960 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' 15961 else 15962 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 == "L") || (\$ 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' 15963 fi 15964 ;; 15965 pw32*) 15966 export_symbols_cmds_CXX=$ltdll_cmds 15967 ;; 15968 cygwin* | mingw* | cegcc*) 15969 case $cc_basename in 15970 cl* | icl*) 15971 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15972 ;; 15973 *) 15974 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' 15975 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15976 ;; 15977 esac 15978 ;; 15979 *) 15980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15981 ;; 15982 esac 15983 15984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15985printf "%s\n" "$ld_shlibs_CXX" >&6; } 15986test no = "$ld_shlibs_CXX" && can_build_shared=no 15987 15988with_gnu_ld_CXX=$with_gnu_ld 15989 15990 15991 15992 15993 15994 15995# 15996# Do we need to explicitly link libc? 15997# 15998case "x$archive_cmds_need_lc_CXX" in 15999x|xyes) 16000 # Assume -lc should be added 16001 archive_cmds_need_lc_CXX=yes 16002 16003 if test yes,yes = "$GCC,$enable_shared"; then 16004 case $archive_cmds_CXX in 16005 *'~'*) 16006 # FIXME: we may have to deal with multi-command sequences. 16007 ;; 16008 '$CC '*) 16009 # Test whether the compiler implicitly links with -lc since on some 16010 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16011 # to ld, don't add -lc before -lgcc. 16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16013printf %s "checking whether -lc should be explicitly linked in... " >&6; } 16014if test ${lt_cv_archive_cmds_need_lc_CXX+y} 16015then : 16016 printf %s "(cached) " >&6 16017else $as_nop 16018 $RM conftest* 16019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16020 16021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16022 (eval $ac_compile) 2>&5 16023 ac_status=$? 16024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16025 test $ac_status = 0; } 2>conftest.err; then 16026 soname=conftest 16027 lib=conftest 16028 libobjs=conftest.$ac_objext 16029 deplibs= 16030 wl=$lt_prog_compiler_wl_CXX 16031 pic_flag=$lt_prog_compiler_pic_CXX 16032 compiler_flags=-v 16033 linker_flags=-v 16034 verstring= 16035 output_objdir=. 16036 libname=conftest 16037 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16038 allow_undefined_flag_CXX= 16039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16040 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16041 ac_status=$? 16042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16043 test $ac_status = 0; } 16044 then 16045 lt_cv_archive_cmds_need_lc_CXX=no 16046 else 16047 lt_cv_archive_cmds_need_lc_CXX=yes 16048 fi 16049 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16050 else 16051 cat conftest.err 1>&5 16052 fi 16053 $RM conftest* 16054 16055fi 16056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16057printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16058 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16059 ;; 16060 esac 16061 fi 16062 ;; 16063esac 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16127printf %s "checking dynamic linker characteristics... " >&6; } 16128 16129library_names_spec= 16130libname_spec='lib$name' 16131soname_spec= 16132shrext_cmds=.so 16133postinstall_cmds= 16134postuninstall_cmds= 16135finish_cmds= 16136finish_eval= 16137shlibpath_var= 16138shlibpath_overrides_runpath=unknown 16139version_type=none 16140dynamic_linker="$host_os ld.so" 16141sys_lib_dlsearch_path_spec="/lib /usr/lib" 16142need_lib_prefix=unknown 16143hardcode_into_libs=no 16144 16145# when you set need_version to no, make sure it does not cause -set_version 16146# flags to be left without arguments 16147need_version=unknown 16148 16149 16150 16151case $host_os in 16152aix3*) 16153 version_type=linux # correct to gnu/linux during the next big refactor 16154 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16155 shlibpath_var=LIBPATH 16156 16157 # AIX 3 has no versioning support, so we append a major version to the name. 16158 soname_spec='$libname$release$shared_ext$major' 16159 ;; 16160 16161aix[4-9]*) 16162 version_type=linux # correct to gnu/linux during the next big refactor 16163 need_lib_prefix=no 16164 need_version=no 16165 hardcode_into_libs=yes 16166 if test ia64 = "$host_cpu"; then 16167 # AIX 5 supports IA64 16168 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16169 shlibpath_var=LD_LIBRARY_PATH 16170 else 16171 # With GCC up to 2.95.x, collect2 would create an import file 16172 # for dependence libraries. The import file would start with 16173 # the line '#! .'. This would cause the generated library to 16174 # depend on '.', always an invalid library. This was fixed in 16175 # development snapshots of GCC prior to 3.0. 16176 case $host_os in 16177 aix4 | aix4.[01] | aix4.[01].*) 16178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16179 echo ' yes ' 16180 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16181 : 16182 else 16183 can_build_shared=no 16184 fi 16185 ;; 16186 esac 16187 # Using Import Files as archive members, it is possible to support 16188 # filename-based versioning of shared library archives on AIX. While 16189 # this would work for both with and without runtime linking, it will 16190 # prevent static linking of such archives. So we do filename-based 16191 # shared library versioning with .so extension only, which is used 16192 # when both runtime linking and shared linking is enabled. 16193 # Unfortunately, runtime linking may impact performance, so we do 16194 # not want this to be the default eventually. Also, we use the 16195 # versioned .so libs for executables only if there is the -brtl 16196 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16197 # To allow for filename-based versioning support, we need to create 16198 # libNAME.so.V as an archive file, containing: 16199 # *) an Import File, referring to the versioned filename of the 16200 # archive as well as the shared archive member, telling the 16201 # bitwidth (32 or 64) of that shared object, and providing the 16202 # list of exported symbols of that shared object, eventually 16203 # decorated with the 'weak' keyword 16204 # *) the shared object with the F_LOADONLY flag set, to really avoid 16205 # it being seen by the linker. 16206 # At run time we better use the real file rather than another symlink, 16207 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16208 16209 case $with_aix_soname,$aix_use_runtimelinking in 16210 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16211 # soname into executable. Probably we can add versioning support to 16212 # collect2, so additional links can be useful in future. 16213 aix,yes) # traditional libtool 16214 dynamic_linker='AIX unversionable lib.so' 16215 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16216 # instead of lib<name>.a to let people know that these are not 16217 # typical AIX shared libraries. 16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16219 ;; 16220 aix,no) # traditional AIX only 16221 dynamic_linker='AIX lib.a(lib.so.V)' 16222 # We preserve .a as extension for shared libraries through AIX4.2 16223 # and later when we are not doing run time linking. 16224 library_names_spec='$libname$release.a $libname.a' 16225 soname_spec='$libname$release$shared_ext$major' 16226 ;; 16227 svr4,*) # full svr4 only 16228 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16229 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16230 # We do not specify a path in Import Files, so LIBPATH fires. 16231 shlibpath_overrides_runpath=yes 16232 ;; 16233 *,yes) # both, prefer svr4 16234 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16235 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16236 # unpreferred sharedlib libNAME.a needs extra handling 16237 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"' 16238 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"' 16239 # We do not specify a path in Import Files, so LIBPATH fires. 16240 shlibpath_overrides_runpath=yes 16241 ;; 16242 *,no) # both, prefer aix 16243 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16244 library_names_spec='$libname$release.a $libname.a' 16245 soname_spec='$libname$release$shared_ext$major' 16246 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16247 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)' 16248 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"' 16249 ;; 16250 esac 16251 shlibpath_var=LIBPATH 16252 fi 16253 ;; 16254 16255amigaos*) 16256 case $host_cpu in 16257 powerpc) 16258 # Since July 2007 AmigaOS4 officially supports .so libraries. 16259 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16261 ;; 16262 m68k) 16263 library_names_spec='$libname.ixlibrary $libname.a' 16264 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16265 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' 16266 ;; 16267 esac 16268 ;; 16269 16270beos*) 16271 library_names_spec='$libname$shared_ext' 16272 dynamic_linker="$host_os ld.so" 16273 shlibpath_var=LIBRARY_PATH 16274 ;; 16275 16276bsdi[45]*) 16277 version_type=linux # correct to gnu/linux during the next big refactor 16278 need_version=no 16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16280 soname_spec='$libname$release$shared_ext$major' 16281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16282 shlibpath_var=LD_LIBRARY_PATH 16283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16285 # the default ld.so.conf also contains /usr/contrib/lib and 16286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16287 # libtool to hard-code these into programs 16288 ;; 16289 16290cygwin* | mingw* | pw32* | cegcc*) 16291 version_type=windows 16292 shrext_cmds=.dll 16293 need_version=no 16294 need_lib_prefix=no 16295 16296 case $GCC,$cc_basename in 16297 yes,*) 16298 # gcc 16299 library_names_spec='$libname.dll.a' 16300 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16301 postinstall_cmds='base_file=`basename \$file`~ 16302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16303 dldir=$destdir/`dirname \$dlpath`~ 16304 test -d \$dldir || mkdir -p \$dldir~ 16305 $install_prog $dir/$dlname \$dldir/$dlname~ 16306 chmod a+x \$dldir/$dlname~ 16307 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16308 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16309 fi' 16310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16311 dlpath=$dir/\$dldll~ 16312 $RM \$dlpath' 16313 shlibpath_overrides_runpath=yes 16314 16315 case $host_os in 16316 cygwin*) 16317 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16318 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16319 16320 ;; 16321 mingw* | cegcc*) 16322 # MinGW DLLs use traditional 'lib' prefix 16323 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16324 ;; 16325 pw32*) 16326 # pw32 DLLs use 'pw' prefix rather than 'lib' 16327 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16328 ;; 16329 esac 16330 dynamic_linker='Win32 ld.exe' 16331 ;; 16332 16333 *,cl* | *,icl*) 16334 # Native MSVC or ICC 16335 libname_spec='$name' 16336 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16337 library_names_spec='$libname.dll.lib' 16338 16339 case $build_os in 16340 mingw*) 16341 sys_lib_search_path_spec= 16342 lt_save_ifs=$IFS 16343 IFS=';' 16344 for lt_path in $LIB 16345 do 16346 IFS=$lt_save_ifs 16347 # Let DOS variable expansion print the short 8.3 style file name. 16348 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16349 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16350 done 16351 IFS=$lt_save_ifs 16352 # Convert to MSYS style. 16353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16354 ;; 16355 cygwin*) 16356 # Convert to unix form, then to dos form, then back to unix form 16357 # but this time dos style (no spaces!) so that the unix form looks 16358 # like /cygdrive/c/PROGRA~1:/cygdr... 16359 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16360 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16361 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16362 ;; 16363 *) 16364 sys_lib_search_path_spec=$LIB 16365 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16366 # It is most probably a Windows format PATH. 16367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16368 else 16369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16370 fi 16371 # FIXME: find the short name or the path components, as spaces are 16372 # common. (e.g. "Program Files" -> "PROGRA~1") 16373 ;; 16374 esac 16375 16376 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16377 postinstall_cmds='base_file=`basename \$file`~ 16378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16379 dldir=$destdir/`dirname \$dlpath`~ 16380 test -d \$dldir || mkdir -p \$dldir~ 16381 $install_prog $dir/$dlname \$dldir/$dlname' 16382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16383 dlpath=$dir/\$dldll~ 16384 $RM \$dlpath' 16385 shlibpath_overrides_runpath=yes 16386 dynamic_linker='Win32 link.exe' 16387 ;; 16388 16389 *) 16390 # Assume MSVC and ICC wrapper 16391 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16392 dynamic_linker='Win32 ld.exe' 16393 ;; 16394 esac 16395 # FIXME: first we should search . and the directory the executable is in 16396 shlibpath_var=PATH 16397 ;; 16398 16399darwin* | rhapsody*) 16400 dynamic_linker="$host_os dyld" 16401 version_type=darwin 16402 need_lib_prefix=no 16403 need_version=no 16404 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16405 soname_spec='$libname$release$major$shared_ext' 16406 shlibpath_overrides_runpath=yes 16407 shlibpath_var=DYLD_LIBRARY_PATH 16408 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16409 16410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16411 ;; 16412 16413dgux*) 16414 version_type=linux # correct to gnu/linux during the next big refactor 16415 need_lib_prefix=no 16416 need_version=no 16417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16418 soname_spec='$libname$release$shared_ext$major' 16419 shlibpath_var=LD_LIBRARY_PATH 16420 ;; 16421 16422freebsd* | dragonfly*) 16423 # DragonFly does not have aout. When/if they implement a new 16424 # versioning mechanism, adjust this. 16425 if test -x /usr/bin/objformat; then 16426 objformat=`/usr/bin/objformat` 16427 else 16428 case $host_os in 16429 freebsd[23].*) objformat=aout ;; 16430 *) objformat=elf ;; 16431 esac 16432 fi 16433 version_type=freebsd-$objformat 16434 case $version_type in 16435 freebsd-elf*) 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 need_version=no 16439 need_lib_prefix=no 16440 ;; 16441 freebsd-*) 16442 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16443 need_version=yes 16444 ;; 16445 esac 16446 shlibpath_var=LD_LIBRARY_PATH 16447 case $host_os in 16448 freebsd2.*) 16449 shlibpath_overrides_runpath=yes 16450 ;; 16451 freebsd3.[01]* | freebsdelf3.[01]*) 16452 shlibpath_overrides_runpath=yes 16453 hardcode_into_libs=yes 16454 ;; 16455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16457 shlibpath_overrides_runpath=no 16458 hardcode_into_libs=yes 16459 ;; 16460 *) # from 4.6 on, and DragonFly 16461 shlibpath_overrides_runpath=yes 16462 hardcode_into_libs=yes 16463 ;; 16464 esac 16465 ;; 16466 16467haiku*) 16468 version_type=linux # correct to gnu/linux during the next big refactor 16469 need_lib_prefix=no 16470 need_version=no 16471 dynamic_linker="$host_os runtime_loader" 16472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16473 soname_spec='$libname$release$shared_ext$major' 16474 shlibpath_var=LIBRARY_PATH 16475 shlibpath_overrides_runpath=no 16476 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16477 hardcode_into_libs=yes 16478 ;; 16479 16480hpux9* | hpux10* | hpux11*) 16481 # Give a soname corresponding to the major version so that dld.sl refuses to 16482 # link against other versions. 16483 version_type=sunos 16484 need_lib_prefix=no 16485 need_version=no 16486 case $host_cpu in 16487 ia64*) 16488 shrext_cmds='.so' 16489 hardcode_into_libs=yes 16490 dynamic_linker="$host_os dld.so" 16491 shlibpath_var=LD_LIBRARY_PATH 16492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16494 soname_spec='$libname$release$shared_ext$major' 16495 if test 32 = "$HPUX_IA64_MODE"; then 16496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16497 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16498 else 16499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16500 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16501 fi 16502 ;; 16503 hppa*64*) 16504 shrext_cmds='.sl' 16505 hardcode_into_libs=yes 16506 dynamic_linker="$host_os dld.sl" 16507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16510 soname_spec='$libname$release$shared_ext$major' 16511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16513 ;; 16514 *) 16515 shrext_cmds='.sl' 16516 dynamic_linker="$host_os dld.sl" 16517 shlibpath_var=SHLIB_PATH 16518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16520 soname_spec='$libname$release$shared_ext$major' 16521 ;; 16522 esac 16523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16524 postinstall_cmds='chmod 555 $lib' 16525 # or fails outright, so override atomically: 16526 install_override_mode=555 16527 ;; 16528 16529interix[3-9]*) 16530 version_type=linux # correct to gnu/linux during the next big refactor 16531 need_lib_prefix=no 16532 need_version=no 16533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16534 soname_spec='$libname$release$shared_ext$major' 16535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16536 shlibpath_var=LD_LIBRARY_PATH 16537 shlibpath_overrides_runpath=no 16538 hardcode_into_libs=yes 16539 ;; 16540 16541irix5* | irix6* | nonstopux*) 16542 case $host_os in 16543 nonstopux*) version_type=nonstopux ;; 16544 *) 16545 if test yes = "$lt_cv_prog_gnu_ld"; then 16546 version_type=linux # correct to gnu/linux during the next big refactor 16547 else 16548 version_type=irix 16549 fi ;; 16550 esac 16551 need_lib_prefix=no 16552 need_version=no 16553 soname_spec='$libname$release$shared_ext$major' 16554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16555 case $host_os in 16556 irix5* | nonstopux*) 16557 libsuff= shlibsuff= 16558 ;; 16559 *) 16560 case $LD in # libtool.m4 will add one of these switches to LD 16561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16562 libsuff= shlibsuff= libmagic=32-bit;; 16563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16564 libsuff=32 shlibsuff=N32 libmagic=N32;; 16565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16566 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16567 *) libsuff= shlibsuff= libmagic=never-match;; 16568 esac 16569 ;; 16570 esac 16571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16572 shlibpath_overrides_runpath=no 16573 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16574 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16575 hardcode_into_libs=yes 16576 ;; 16577 16578# No shared lib support for Linux oldld, aout, or coff. 16579linux*oldld* | linux*aout* | linux*coff*) 16580 dynamic_linker=no 16581 ;; 16582 16583linux*android*) 16584 version_type=none # Android doesn't support versioned libraries. 16585 need_lib_prefix=no 16586 need_version=no 16587 library_names_spec='$libname$release$shared_ext' 16588 soname_spec='$libname$release$shared_ext' 16589 finish_cmds= 16590 shlibpath_var=LD_LIBRARY_PATH 16591 shlibpath_overrides_runpath=yes 16592 16593 # This implies no fast_install, which is unacceptable. 16594 # Some rework will be needed to allow for fast_install 16595 # before this can be enabled. 16596 hardcode_into_libs=yes 16597 16598 dynamic_linker='Android linker' 16599 # Don't embed -rpath directories since the linker doesn't support them. 16600 hardcode_libdir_flag_spec_CXX='-L$libdir' 16601 ;; 16602 16603# This must be glibc/ELF. 16604linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 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 soname_spec='$libname$release$shared_ext$major' 16610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16611 shlibpath_var=LD_LIBRARY_PATH 16612 shlibpath_overrides_runpath=no 16613 16614 # Some binutils ld are patched to set DT_RUNPATH 16615 if test ${lt_cv_shlibpath_overrides_runpath+y} 16616then : 16617 printf %s "(cached) " >&6 16618else $as_nop 16619 lt_cv_shlibpath_overrides_runpath=no 16620 save_LDFLAGS=$LDFLAGS 16621 save_libdir=$libdir 16622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16625/* end confdefs.h. */ 16626 16627int 16628main (void) 16629{ 16630 16631 ; 16632 return 0; 16633} 16634_ACEOF 16635if ac_fn_cxx_try_link "$LINENO" 16636then : 16637 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16638then : 16639 lt_cv_shlibpath_overrides_runpath=yes 16640fi 16641fi 16642rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16643 conftest$ac_exeext conftest.$ac_ext 16644 LDFLAGS=$save_LDFLAGS 16645 libdir=$save_libdir 16646 16647fi 16648 16649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16650 16651 # This implies no fast_install, which is unacceptable. 16652 # Some rework will be needed to allow for fast_install 16653 # before this can be enabled. 16654 hardcode_into_libs=yes 16655 16656 # Ideally, we could use ldconfig to report *all* directores which are 16657 # searched for libraries, however this is still not possible. Aside from not 16658 # being certain /sbin/ldconfig is available, command 16659 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16660 # even though it is searched at run-time. Try to do the best guess by 16661 # appending ld.so.conf contents (and includes) to the search path. 16662 if test -f /etc/ld.so.conf; then 16663 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' ' '` 16664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16665 fi 16666 16667 # We used to test for /lib/ld.so.1 and disable shared libraries on 16668 # powerpc, because MkLinux only supported shared libraries with the 16669 # GNU dynamic linker. Since this was broken with cross compilers, 16670 # most powerpc-linux boxes support dynamic linking these days and 16671 # people can always --disable-shared, the test was removed, and we 16672 # assume the GNU/Linux dynamic linker is in use. 16673 dynamic_linker='GNU/Linux ld.so' 16674 ;; 16675 16676netbsd*) 16677 version_type=sunos 16678 need_lib_prefix=no 16679 need_version=no 16680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16681 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16683 dynamic_linker='NetBSD (a.out) ld.so' 16684 else 16685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16686 soname_spec='$libname$release$shared_ext$major' 16687 dynamic_linker='NetBSD ld.elf_so' 16688 fi 16689 shlibpath_var=LD_LIBRARY_PATH 16690 shlibpath_overrides_runpath=yes 16691 hardcode_into_libs=yes 16692 ;; 16693 16694newsos6) 16695 version_type=linux # correct to gnu/linux during the next big refactor 16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16697 shlibpath_var=LD_LIBRARY_PATH 16698 shlibpath_overrides_runpath=yes 16699 ;; 16700 16701*nto* | *qnx*) 16702 version_type=qnx 16703 need_lib_prefix=no 16704 need_version=no 16705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16706 soname_spec='$libname$release$shared_ext$major' 16707 shlibpath_var=LD_LIBRARY_PATH 16708 shlibpath_overrides_runpath=no 16709 hardcode_into_libs=yes 16710 dynamic_linker='ldqnx.so' 16711 ;; 16712 16713openbsd* | bitrig*) 16714 version_type=sunos 16715 sys_lib_dlsearch_path_spec=/usr/lib 16716 need_lib_prefix=no 16717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16718 need_version=no 16719 else 16720 need_version=yes 16721 fi 16722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16724 shlibpath_var=LD_LIBRARY_PATH 16725 shlibpath_overrides_runpath=yes 16726 ;; 16727 16728os2*) 16729 libname_spec='$name' 16730 version_type=windows 16731 shrext_cmds=.dll 16732 need_version=no 16733 need_lib_prefix=no 16734 # OS/2 can only load a DLL with a base name of 8 characters or less. 16735 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16736 v=$($ECHO $release$versuffix | tr -d .-); 16737 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16738 $ECHO $n$v`$shared_ext' 16739 library_names_spec='${libname}_dll.$libext' 16740 dynamic_linker='OS/2 ld.exe' 16741 shlibpath_var=BEGINLIBPATH 16742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16744 postinstall_cmds='base_file=`basename \$file`~ 16745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16746 dldir=$destdir/`dirname \$dlpath`~ 16747 test -d \$dldir || mkdir -p \$dldir~ 16748 $install_prog $dir/$dlname \$dldir/$dlname~ 16749 chmod a+x \$dldir/$dlname~ 16750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16752 fi' 16753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16754 dlpath=$dir/\$dldll~ 16755 $RM \$dlpath' 16756 ;; 16757 16758osf3* | osf4* | osf5*) 16759 version_type=osf 16760 need_lib_prefix=no 16761 need_version=no 16762 soname_spec='$libname$release$shared_ext$major' 16763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16767 ;; 16768 16769rdos*) 16770 dynamic_linker=no 16771 ;; 16772 16773solaris*) 16774 version_type=linux # correct to gnu/linux during the next big refactor 16775 need_lib_prefix=no 16776 need_version=no 16777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16778 soname_spec='$libname$release$shared_ext$major' 16779 shlibpath_var=LD_LIBRARY_PATH 16780 shlibpath_overrides_runpath=yes 16781 hardcode_into_libs=yes 16782 # ldd complains unless libraries are executable 16783 postinstall_cmds='chmod +x $lib' 16784 ;; 16785 16786sunos4*) 16787 version_type=sunos 16788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16790 shlibpath_var=LD_LIBRARY_PATH 16791 shlibpath_overrides_runpath=yes 16792 if test yes = "$with_gnu_ld"; then 16793 need_lib_prefix=no 16794 fi 16795 need_version=yes 16796 ;; 16797 16798sysv4 | sysv4.3*) 16799 version_type=linux # correct to gnu/linux during the next big refactor 16800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16801 soname_spec='$libname$release$shared_ext$major' 16802 shlibpath_var=LD_LIBRARY_PATH 16803 case $host_vendor in 16804 sni) 16805 shlibpath_overrides_runpath=no 16806 need_lib_prefix=no 16807 runpath_var=LD_RUN_PATH 16808 ;; 16809 siemens) 16810 need_lib_prefix=no 16811 ;; 16812 motorola) 16813 need_lib_prefix=no 16814 need_version=no 16815 shlibpath_overrides_runpath=no 16816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16817 ;; 16818 esac 16819 ;; 16820 16821sysv4*MP*) 16822 if test -d /usr/nec; then 16823 version_type=linux # correct to gnu/linux during the next big refactor 16824 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16825 soname_spec='$libname$shared_ext.$major' 16826 shlibpath_var=LD_LIBRARY_PATH 16827 fi 16828 ;; 16829 16830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16831 version_type=sco 16832 need_lib_prefix=no 16833 need_version=no 16834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16835 soname_spec='$libname$release$shared_ext$major' 16836 shlibpath_var=LD_LIBRARY_PATH 16837 shlibpath_overrides_runpath=yes 16838 hardcode_into_libs=yes 16839 if test yes = "$with_gnu_ld"; then 16840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16841 else 16842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16843 case $host_os in 16844 sco3.2v5*) 16845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16846 ;; 16847 esac 16848 fi 16849 sys_lib_dlsearch_path_spec='/usr/lib' 16850 ;; 16851 16852tpf*) 16853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16854 version_type=linux # correct to gnu/linux during the next big refactor 16855 need_lib_prefix=no 16856 need_version=no 16857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16858 shlibpath_var=LD_LIBRARY_PATH 16859 shlibpath_overrides_runpath=no 16860 hardcode_into_libs=yes 16861 ;; 16862 16863uts4*) 16864 version_type=linux # correct to gnu/linux during the next big refactor 16865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16866 soname_spec='$libname$release$shared_ext$major' 16867 shlibpath_var=LD_LIBRARY_PATH 16868 ;; 16869 16870*) 16871 dynamic_linker=no 16872 ;; 16873esac 16874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16875printf "%s\n" "$dynamic_linker" >&6; } 16876test no = "$dynamic_linker" && can_build_shared=no 16877 16878variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16879if test yes = "$GCC"; then 16880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16881fi 16882 16883if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16884 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16885fi 16886 16887if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16888 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16889fi 16890 16891# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16892configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16893 16894# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16895func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16896 16897# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16898configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16940printf %s "checking how to hardcode library paths into programs... " >&6; } 16941hardcode_action_CXX= 16942if test -n "$hardcode_libdir_flag_spec_CXX" || 16943 test -n "$runpath_var_CXX" || 16944 test yes = "$hardcode_automatic_CXX"; then 16945 16946 # We can hardcode non-existent directories. 16947 if test no != "$hardcode_direct_CXX" && 16948 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16949 # have to relink, otherwise we might link with an installed library 16950 # when we should be linking with a yet-to-be-installed one 16951 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16952 test no != "$hardcode_minus_L_CXX"; then 16953 # Linking always hardcodes the temporary library directory. 16954 hardcode_action_CXX=relink 16955 else 16956 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16957 hardcode_action_CXX=immediate 16958 fi 16959else 16960 # We cannot hardcode anything, or else we can only hardcode existing 16961 # directories. 16962 hardcode_action_CXX=unsupported 16963fi 16964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16965printf "%s\n" "$hardcode_action_CXX" >&6; } 16966 16967if test relink = "$hardcode_action_CXX" || 16968 test yes = "$inherit_rpath_CXX"; then 16969 # Fast installation is not supported 16970 enable_fast_install=no 16971elif test yes = "$shlibpath_overrides_runpath" || 16972 test no = "$enable_shared"; then 16973 # Fast installation is not necessary 16974 enable_fast_install=needless 16975fi 16976 16977 16978 16979 16980 16981 16982 16983 fi # test -n "$compiler" 16984 16985 CC=$lt_save_CC 16986 CFLAGS=$lt_save_CFLAGS 16987 LDCXX=$LD 16988 LD=$lt_save_LD 16989 GCC=$lt_save_GCC 16990 with_gnu_ld=$lt_save_with_gnu_ld 16991 lt_cv_path_LDCXX=$lt_cv_path_LD 16992 lt_cv_path_LD=$lt_save_path_LD 16993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16995fi # test yes != "$_lt_caught_CXX_error" 16996 16997ac_ext=c 16998ac_cpp='$CPP $CPPFLAGS' 16999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17001ac_compiler_gnu=$ac_cv_c_compiler_gnu 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 ac_config_commands="$ac_config_commands libtool" 17018 17019 17020 17021 17022# Only expand once: 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17034 if test -n "$ac_tool_prefix"; then 17035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17036set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17038printf %s "checking for $ac_word... " >&6; } 17039if test ${ac_cv_path_PKG_CONFIG+y} 17040then : 17041 printf %s "(cached) " >&6 17042else $as_nop 17043 case $PKG_CONFIG in 17044 [\\/]* | ?:[\\/]*) 17045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17046 ;; 17047 *) 17048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17049for as_dir in $PATH 17050do 17051 IFS=$as_save_IFS 17052 case $as_dir in #((( 17053 '') as_dir=./ ;; 17054 */) ;; 17055 *) as_dir=$as_dir/ ;; 17056 esac 17057 for ac_exec_ext in '' $ac_executable_extensions; do 17058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17059 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17061 break 2 17062 fi 17063done 17064 done 17065IFS=$as_save_IFS 17066 17067 ;; 17068esac 17069fi 17070PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17071if test -n "$PKG_CONFIG"; then 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17073printf "%s\n" "$PKG_CONFIG" >&6; } 17074else 17075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17076printf "%s\n" "no" >&6; } 17077fi 17078 17079 17080fi 17081if test -z "$ac_cv_path_PKG_CONFIG"; then 17082 ac_pt_PKG_CONFIG=$PKG_CONFIG 17083 # Extract the first word of "pkg-config", so it can be a program name with args. 17084set dummy pkg-config; ac_word=$2 17085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17086printf %s "checking for $ac_word... " >&6; } 17087if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 17088then : 17089 printf %s "(cached) " >&6 17090else $as_nop 17091 case $ac_pt_PKG_CONFIG in 17092 [\\/]* | ?:[\\/]*) 17093 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17094 ;; 17095 *) 17096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17097for as_dir in $PATH 17098do 17099 IFS=$as_save_IFS 17100 case $as_dir in #((( 17101 '') as_dir=./ ;; 17102 */) ;; 17103 *) as_dir=$as_dir/ ;; 17104 esac 17105 for ac_exec_ext in '' $ac_executable_extensions; do 17106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17107 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 17108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17109 break 2 17110 fi 17111done 17112 done 17113IFS=$as_save_IFS 17114 17115 ;; 17116esac 17117fi 17118ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17119if test -n "$ac_pt_PKG_CONFIG"; then 17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17121printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 17122else 17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17124printf "%s\n" "no" >&6; } 17125fi 17126 17127 if test "x$ac_pt_PKG_CONFIG" = x; then 17128 PKG_CONFIG="" 17129 else 17130 case $cross_compiling:$ac_tool_warned in 17131yes:) 17132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17133printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17134ac_tool_warned=yes ;; 17135esac 17136 PKG_CONFIG=$ac_pt_PKG_CONFIG 17137 fi 17138else 17139 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17140fi 17141 17142fi 17143if test -n "$PKG_CONFIG"; then 17144 _pkg_min_version=0.9.0 17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17146printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17147 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17149printf "%s\n" "yes" >&6; } 17150 else 17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17152printf "%s\n" "no" >&6; } 17153 PKG_CONFIG="" 17154 fi 17155fi 17156 17157# Check whether --enable-fatal-warnings was given. 17158if test ${enable_fatal_warnings+y} 17159then : 17160 enableval=$enable_fatal_warnings; enable_fatal_warnings=$enableval 17161else $as_nop 17162 enable_fatal_warnings=no 17163fi 17164 17165if test x"$enable_fatal_warnings" != "xno" 17166then : 17167 17168 WERROR_CFLAGS="-Werror" 17169 17170fi 17171 17172if test "x$GCC" = "xyes"; then 17173 GCC_CFLAGS="$WERROR_CFLAGS -Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden" 17174fi 17175 17176 17177ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 17178if test "x$ac_cv_header_sys_prctl_h" = xyes 17179then : 17180 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h 17181 17182fi 17183 17184ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 17185if test "x$ac_cv_func_accept4" = xyes 17186then : 17187 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 17188 17189fi 17190ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 17191if test "x$ac_cv_func_mkostemp" = xyes 17192then : 17193 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 17194 17195fi 17196ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 17197if test "x$ac_cv_func_posix_fallocate" = xyes 17198then : 17199 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 17200 17201fi 17202ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" 17203if test "x$ac_cv_func_prctl" = xyes 17204then : 17205 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h 17206 17207fi 17208ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 17209if test "x$ac_cv_func_memfd_create" = xyes 17210then : 17211 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 17212 17213fi 17214ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 17215if test "x$ac_cv_func_strndup" = xyes 17216then : 17217 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 17218 17219fi 17220 17221 17222# *BSD don't have libdl, but they have its functions in libc 17223 17224 weston_save_LIBS=${LIBS} 17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 17226printf %s "checking for library containing dlsym... " >&6; } 17227if test ${ac_cv_search_dlsym+y} 17228then : 17229 printf %s "(cached) " >&6 17230else $as_nop 17231 ac_func_search_save_LIBS=$LIBS 17232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17233/* end confdefs.h. */ 17234 17235/* Override any GCC internal prototype to avoid an error. 17236 Use char because int might match the return type of a GCC 17237 builtin and then its argument prototype would still apply. */ 17238char dlsym (); 17239int 17240main (void) 17241{ 17242return dlsym (); 17243 ; 17244 return 0; 17245} 17246_ACEOF 17247for ac_lib in '' dl 17248do 17249 if test -z "$ac_lib"; then 17250 ac_res="none required" 17251 else 17252 ac_res=-l$ac_lib 17253 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17254 fi 17255 if ac_fn_c_try_link "$LINENO" 17256then : 17257 ac_cv_search_dlsym=$ac_res 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17260 conftest$ac_exeext 17261 if test ${ac_cv_search_dlsym+y} 17262then : 17263 break 17264fi 17265done 17266if test ${ac_cv_search_dlsym+y} 17267then : 17268 17269else $as_nop 17270 ac_cv_search_dlsym=no 17271fi 17272rm conftest.$ac_ext 17273LIBS=$ac_func_search_save_LIBS 17274fi 17275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 17276printf "%s\n" "$ac_cv_search_dlsym" >&6; } 17277ac_res=$ac_cv_search_dlsym 17278if test "$ac_res" != no 17279then : 17280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17281 17282fi 17283 17284 case ${ac_cv_search_dlsym} in #( 17285 'none required') : 17286 ;; #( 17287 no) : 17288 ;; #( 17289 *) : 17290 DL_LIBS=${ac_cv_search_dlsym} 17291 ;; 17292esac 17293 17294 LIBS=${weston_save_LIBS} 17295 17296 17297# OpenBSD doesn't have librt, but it has its functions in libc 17298 17299 weston_save_LIBS=${LIBS} 17300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 17301printf %s "checking for library containing clock_gettime... " >&6; } 17302if test ${ac_cv_search_clock_gettime+y} 17303then : 17304 printf %s "(cached) " >&6 17305else $as_nop 17306 ac_func_search_save_LIBS=$LIBS 17307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310/* Override any GCC internal prototype to avoid an error. 17311 Use char because int might match the return type of a GCC 17312 builtin and then its argument prototype would still apply. */ 17313char clock_gettime (); 17314int 17315main (void) 17316{ 17317return clock_gettime (); 17318 ; 17319 return 0; 17320} 17321_ACEOF 17322for ac_lib in '' rt 17323do 17324 if test -z "$ac_lib"; then 17325 ac_res="none required" 17326 else 17327 ac_res=-l$ac_lib 17328 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17329 fi 17330 if ac_fn_c_try_link "$LINENO" 17331then : 17332 ac_cv_search_clock_gettime=$ac_res 17333fi 17334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17335 conftest$ac_exeext 17336 if test ${ac_cv_search_clock_gettime+y} 17337then : 17338 break 17339fi 17340done 17341if test ${ac_cv_search_clock_gettime+y} 17342then : 17343 17344else $as_nop 17345 ac_cv_search_clock_gettime=no 17346fi 17347rm conftest.$ac_ext 17348LIBS=$ac_func_search_save_LIBS 17349fi 17350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 17351printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 17352ac_res=$ac_cv_search_clock_gettime 17353if test "$ac_res" != no 17354then : 17355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17356 17357fi 17358 17359 case ${ac_cv_search_clock_gettime} in #( 17360 'none required') : 17361 ;; #( 17362 no) : 17363 ;; #( 17364 *) : 17365 RT_LIBS=${ac_cv_search_clock_gettime} 17366 ;; 17367esac 17368 17369 LIBS=${weston_save_LIBS} 17370 17371 17372# Check whether --enable-libraries was given. 17373if test ${enable_libraries+y} 17374then : 17375 enableval=$enable_libraries; 17376else $as_nop 17377 enable_libraries=yes 17378fi 17379 17380 17381 17382# Check whether --with-host-scanner was given. 17383if test ${with_host_scanner+y} 17384then : 17385 withval=$with_host_scanner; 17386else $as_nop 17387 with_host_scanner=no 17388fi 17389 17390 17391# Check whether --enable-documentation was given. 17392if test ${enable_documentation+y} 17393then : 17394 enableval=$enable_documentation; 17395else $as_nop 17396 enable_documentation=yes 17397fi 17398 17399 17400# Check whether --enable-dtd-validation was given. 17401if test ${enable_dtd_validation+y} 17402then : 17403 enableval=$enable_dtd_validation; 17404else $as_nop 17405 enable_dtd_validation=yes 17406fi 17407 17408 17409 if test "x$with_host_scanner" = xyes; then 17410 USE_HOST_SCANNER_TRUE= 17411 USE_HOST_SCANNER_FALSE='#' 17412else 17413 USE_HOST_SCANNER_TRUE='#' 17414 USE_HOST_SCANNER_FALSE= 17415fi 17416 17417 17418 if test "x$enable_libraries" = xyes; then 17419 ENABLE_LIBRARIES_TRUE= 17420 ENABLE_LIBRARIES_FALSE='#' 17421else 17422 ENABLE_LIBRARIES_TRUE='#' 17423 ENABLE_LIBRARIES_FALSE= 17424fi 17425 17426 17427 17428# Check whether --with-icondir was given. 17429if test ${with_icondir+y} 17430then : 17431 withval=$with_icondir; ICONDIR=$withval 17432else $as_nop 17433 ICONDIR=${datadir}/icons 17434fi 17435 17436 17437 17438if test "x$enable_libraries" = "xyes"; then 17439 17440pkg_failed=no 17441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5 17442printf %s "checking for FFI... " >&6; } 17443 17444if test -n "$FFI_CFLAGS"; then 17445 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS" 17446 elif test -n "$PKG_CONFIG"; then 17447 if test -n "$PKG_CONFIG" && \ 17448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 17449 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 17450 ac_status=$? 17451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17452 test $ac_status = 0; }; then 17453 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 17454 test "x$?" != "x0" && pkg_failed=yes 17455else 17456 pkg_failed=yes 17457fi 17458 else 17459 pkg_failed=untried 17460fi 17461if test -n "$FFI_LIBS"; then 17462 pkg_cv_FFI_LIBS="$FFI_LIBS" 17463 elif test -n "$PKG_CONFIG"; then 17464 if test -n "$PKG_CONFIG" && \ 17465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 17466 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 17467 ac_status=$? 17468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17469 test $ac_status = 0; }; then 17470 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 17471 test "x$?" != "x0" && pkg_failed=yes 17472else 17473 pkg_failed=yes 17474fi 17475 else 17476 pkg_failed=untried 17477fi 17478 17479 17480 17481if test $pkg_failed = yes; then 17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17483printf "%s\n" "no" >&6; } 17484 17485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17486 _pkg_short_errors_supported=yes 17487else 17488 _pkg_short_errors_supported=no 17489fi 17490 if test $_pkg_short_errors_supported = yes; then 17491 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` 17492 else 17493 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` 17494 fi 17495 # Put the nasty error message in config.log where it belongs 17496 echo "$FFI_PKG_ERRORS" >&5 17497 17498 as_fn_error $? "Package requirements (libffi) were not met: 17499 17500$FFI_PKG_ERRORS 17501 17502Consider adjusting the PKG_CONFIG_PATH environment variable if you 17503installed software in a non-standard prefix. 17504 17505Alternatively, you may set the environment variables FFI_CFLAGS 17506and FFI_LIBS to avoid the need to call pkg-config. 17507See the pkg-config man page for more details." "$LINENO" 5 17508elif test $pkg_failed = untried; then 17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17510printf "%s\n" "no" >&6; } 17511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17513as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17514is in your PATH or set the PKG_CONFIG environment variable to the full 17515path to pkg-config. 17516 17517Alternatively, you may set the environment variables FFI_CFLAGS 17518and FFI_LIBS to avoid the need to call pkg-config. 17519See the pkg-config man page for more details. 17520 17521To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17522See \`config.log' for more details" "$LINENO" 5; } 17523else 17524 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS 17525 FFI_LIBS=$pkg_cv_FFI_LIBS 17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17527printf "%s\n" "yes" >&6; } 17528 17529fi 17530 # The Clang compiler raises a warning for an undeclared identifier that matches 17531# a compiler builtin function. All extant Clang versions are affected, as of 17532# Clang 3.6.0. Test a builtin known to every version. This problem affects the 17533# C and Objective C languages, but Clang does report an error under C++ and 17534# Objective C++. 17535# 17536# Passing -fno-builtin to the compiler would suppress this problem. That 17537# strategy would have the advantage of being insensitive to stray warnings, but 17538# it would make tests less realistic. 17539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5 17540printf %s "checking how $CC reports undeclared, standard C functions... " >&6; } 17541if test ${ac_cv_c_decl_report+y} 17542then : 17543 printf %s "(cached) " >&6 17544else $as_nop 17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17546/* end confdefs.h. */ 17547 17548int 17549main (void) 17550{ 17551(void) strchr; 17552 ; 17553 return 0; 17554} 17555_ACEOF 17556if ac_fn_c_try_compile "$LINENO" 17557then : 17558 if test -s conftest.err 17559then : 17560 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on 17561 # valid AC_CHECK_DECL input. No library function is consistently available 17562 # on freestanding implementations, so test against a dummy declaration. 17563 # Include always-available headers on the off chance that they somehow 17564 # elicit warnings. 17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567#include <float.h> 17568#include <limits.h> 17569#include <stdarg.h> 17570#include <stddef.h> 17571extern void ac_decl (int, char *); 17572int 17573main (void) 17574{ 17575#ifdef __cplusplus 17576 (void) ac_decl ((int) 0, (char *) 0); 17577 (void) ac_decl; 17578#else 17579 (void) ac_decl; 17580#endif 17581 17582 ; 17583 return 0; 17584} 17585_ACEOF 17586if ac_fn_c_try_compile "$LINENO" 17587then : 17588 if test -s conftest.err 17589then : 17590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17591printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17592as_fn_error $? "cannot detect from compiler exit status or warnings 17593See \`config.log' for more details" "$LINENO" 5; } 17594else $as_nop 17595 ac_cv_c_decl_report=warning 17596fi 17597else $as_nop 17598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17599printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17600as_fn_error $? "cannot compile a simple declaration test 17601See \`config.log' for more details" "$LINENO" 5; } 17602fi 17603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17604else $as_nop 17605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17606printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17607as_fn_error $? "compiler does not report undeclared identifiers 17608See \`config.log' for more details" "$LINENO" 5; } 17609fi 17610else $as_nop 17611 ac_cv_c_decl_report=error 17612fi 17613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17614fi 17615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5 17616printf "%s\n" "$ac_cv_c_decl_report" >&6; } 17617 17618case $ac_cv_c_decl_report in 17619 warning) ac_c_decl_warn_flag=yes ;; 17620 *) ac_c_decl_warn_flag= ;; 17621esac 17622 17623ac_fn_c_check_decl "$LINENO" "SFD_CLOEXEC" "ac_cv_have_decl_SFD_CLOEXEC" "#include <sys/signalfd.h> 17624" 17625if test "x$ac_cv_have_decl_SFD_CLOEXEC" = xyes 17626then : 17627 17628else $as_nop 17629 as_fn_error $? "\"SFD_CLOEXEC is needed to compile wayland libraries\"" "$LINENO" 5 17630fi 17631 17632 ac_fn_c_check_decl "$LINENO" "TFD_CLOEXEC" "ac_cv_have_decl_TFD_CLOEXEC" "#include <sys/timerfd.h> 17633" 17634if test "x$ac_cv_have_decl_TFD_CLOEXEC" = xyes 17635then : 17636 17637else $as_nop 17638 as_fn_error $? "\"TFD_CLOEXEC is needed to compile wayland libraries\"" "$LINENO" 5 17639fi 17640 17641 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 17642" 17643if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 17644then : 17645 17646else $as_nop 17647 as_fn_error $? "\"CLOCK_MONOTONIC is needed to compile wayland libraries\"" "$LINENO" 5 17648fi 17649 17650fi 17651 17652 17653pkg_failed=no 17654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5 17655printf %s "checking for EXPAT... " >&6; } 17656 17657if test -n "$EXPAT_CFLAGS"; then 17658 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" 17659 elif test -n "$PKG_CONFIG"; then 17660 if test -n "$PKG_CONFIG" && \ 17661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 17662 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 17663 ac_status=$? 17664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17665 test $ac_status = 0; }; then 17666 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` 17667 test "x$?" != "x0" && pkg_failed=yes 17668else 17669 pkg_failed=yes 17670fi 17671 else 17672 pkg_failed=untried 17673fi 17674if test -n "$EXPAT_LIBS"; then 17675 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" 17676 elif test -n "$PKG_CONFIG"; then 17677 if test -n "$PKG_CONFIG" && \ 17678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 17679 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 17680 ac_status=$? 17681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17682 test $ac_status = 0; }; then 17683 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` 17684 test "x$?" != "x0" && pkg_failed=yes 17685else 17686 pkg_failed=yes 17687fi 17688 else 17689 pkg_failed=untried 17690fi 17691 17692 17693 17694if test $pkg_failed = yes; then 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17696printf "%s\n" "no" >&6; } 17697 17698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17699 _pkg_short_errors_supported=yes 17700else 17701 _pkg_short_errors_supported=no 17702fi 17703 if test $_pkg_short_errors_supported = yes; then 17704 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` 17705 else 17706 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` 17707 fi 17708 # Put the nasty error message in config.log where it belongs 17709 echo "$EXPAT_PKG_ERRORS" >&5 17710 17711 as_fn_error $? "Package requirements (expat) were not met: 17712 17713$EXPAT_PKG_ERRORS 17714 17715Consider adjusting the PKG_CONFIG_PATH environment variable if you 17716installed software in a non-standard prefix. 17717 17718Alternatively, you may set the environment variables EXPAT_CFLAGS 17719and EXPAT_LIBS to avoid the need to call pkg-config. 17720See the pkg-config man page for more details." "$LINENO" 5 17721elif test $pkg_failed = untried; then 17722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17723printf "%s\n" "no" >&6; } 17724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17725printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17726as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17727is in your PATH or set the PKG_CONFIG environment variable to the full 17728path to pkg-config. 17729 17730Alternatively, you may set the environment variables EXPAT_CFLAGS 17731and EXPAT_LIBS to avoid the need to call pkg-config. 17732See the pkg-config man page for more details. 17733 17734To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17735See \`config.log' for more details" "$LINENO" 5; } 17736else 17737 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS 17738 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS 17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17740printf "%s\n" "yes" >&6; } 17741 17742fi 17743 17744 if test "x$enable_dtd_validation" = "xyes"; then 17745 DTD_VALIDATION_TRUE= 17746 DTD_VALIDATION_FALSE='#' 17747else 17748 DTD_VALIDATION_TRUE='#' 17749 DTD_VALIDATION_FALSE= 17750fi 17751 17752if test "x$enable_dtd_validation" = "xyes"; then 17753 17754pkg_failed=no 17755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 17756printf %s "checking for LIBXML... " >&6; } 17757 17758if test -n "$LIBXML_CFLAGS"; then 17759 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 17760 elif test -n "$PKG_CONFIG"; then 17761 if test -n "$PKG_CONFIG" && \ 17762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 17763 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 17764 ac_status=$? 17765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17766 test $ac_status = 0; }; then 17767 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 17768 test "x$?" != "x0" && pkg_failed=yes 17769else 17770 pkg_failed=yes 17771fi 17772 else 17773 pkg_failed=untried 17774fi 17775if test -n "$LIBXML_LIBS"; then 17776 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 17777 elif test -n "$PKG_CONFIG"; then 17778 if test -n "$PKG_CONFIG" && \ 17779 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 17780 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 17781 ac_status=$? 17782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17783 test $ac_status = 0; }; then 17784 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 17785 test "x$?" != "x0" && pkg_failed=yes 17786else 17787 pkg_failed=yes 17788fi 17789 else 17790 pkg_failed=untried 17791fi 17792 17793 17794 17795if test $pkg_failed = yes; then 17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17797printf "%s\n" "no" >&6; } 17798 17799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17800 _pkg_short_errors_supported=yes 17801else 17802 _pkg_short_errors_supported=no 17803fi 17804 if test $_pkg_short_errors_supported = yes; then 17805 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 17806 else 17807 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 17808 fi 17809 # Put the nasty error message in config.log where it belongs 17810 echo "$LIBXML_PKG_ERRORS" >&5 17811 17812 as_fn_error $? "Package requirements (libxml-2.0) were not met: 17813 17814$LIBXML_PKG_ERRORS 17815 17816Consider adjusting the PKG_CONFIG_PATH environment variable if you 17817installed software in a non-standard prefix. 17818 17819Alternatively, you may set the environment variables LIBXML_CFLAGS 17820and LIBXML_LIBS to avoid the need to call pkg-config. 17821See the pkg-config man page for more details." "$LINENO" 5 17822elif test $pkg_failed = untried; then 17823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17824printf "%s\n" "no" >&6; } 17825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17826printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17827as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17828is in your PATH or set the PKG_CONFIG environment variable to the full 17829path to pkg-config. 17830 17831Alternatively, you may set the environment variables LIBXML_CFLAGS 17832and LIBXML_LIBS to avoid the need to call pkg-config. 17833See the pkg-config man page for more details. 17834 17835To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17836See \`config.log' for more details" "$LINENO" 5; } 17837else 17838 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 17839 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17841printf "%s\n" "yes" >&6; } 17842 17843fi 17844 17845printf "%s\n" "#define HAVE_LIBXML 1" >>confdefs.h 17846 17847 ac_config_links="$ac_config_links src/wayland.dtd.embed:protocol/wayland.dtd" 17848 17849fi 17850 17851# Extract the first word of "xsltproc", so it can be a program name with args. 17852set dummy xsltproc; ac_word=$2 17853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17854printf %s "checking for $ac_word... " >&6; } 17855if test ${ac_cv_path_XSLTPROC+y} 17856then : 17857 printf %s "(cached) " >&6 17858else $as_nop 17859 case $XSLTPROC in 17860 [\\/]* | ?:[\\/]*) 17861 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 17862 ;; 17863 *) 17864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17865for as_dir in $PATH 17866do 17867 IFS=$as_save_IFS 17868 case $as_dir in #((( 17869 '') as_dir=./ ;; 17870 */) ;; 17871 *) as_dir=$as_dir/ ;; 17872 esac 17873 for ac_exec_ext in '' $ac_executable_extensions; do 17874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17875 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 17876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17877 break 2 17878 fi 17879done 17880 done 17881IFS=$as_save_IFS 17882 17883 ;; 17884esac 17885fi 17886XSLTPROC=$ac_cv_path_XSLTPROC 17887if test -n "$XSLTPROC"; then 17888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 17889printf "%s\n" "$XSLTPROC" >&6; } 17890else 17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17892printf "%s\n" "no" >&6; } 17893fi 17894 17895 17896 if test "x$XSLTPROC" != "x"; then 17897 HAVE_XSLTPROC_TRUE= 17898 HAVE_XSLTPROC_FALSE='#' 17899else 17900 HAVE_XSLTPROC_TRUE='#' 17901 HAVE_XSLTPROC_FALSE= 17902fi 17903 17904 17905 17906 if test x$enable_documentation = xyes; then 17907 BUILD_DOCS_TRUE= 17908 BUILD_DOCS_FALSE='#' 17909else 17910 BUILD_DOCS_TRUE='#' 17911 BUILD_DOCS_FALSE= 17912fi 17913 17914if test "x$enable_documentation" = "xyes"; then 17915 # Extract the first word of "doxygen", so it can be a program name with args. 17916set dummy doxygen; ac_word=$2 17917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17918printf %s "checking for $ac_word... " >&6; } 17919if test ${ac_cv_path_DOXYGEN+y} 17920then : 17921 printf %s "(cached) " >&6 17922else $as_nop 17923 case $DOXYGEN in 17924 [\\/]* | ?:[\\/]*) 17925 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 17926 ;; 17927 *) 17928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17929for as_dir in $PATH 17930do 17931 IFS=$as_save_IFS 17932 case $as_dir in #((( 17933 '') as_dir=./ ;; 17934 */) ;; 17935 *) as_dir=$as_dir/ ;; 17936 esac 17937 for ac_exec_ext in '' $ac_executable_extensions; do 17938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17939 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 17940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17941 break 2 17942 fi 17943done 17944 done 17945IFS=$as_save_IFS 17946 17947 ;; 17948esac 17949fi 17950DOXYGEN=$ac_cv_path_DOXYGEN 17951if test -n "$DOXYGEN"; then 17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 17953printf "%s\n" "$DOXYGEN" >&6; } 17954else 17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17956printf "%s\n" "no" >&6; } 17957fi 17958 17959 17960 17961 if test "x$DOXYGEN" = "x"; then 17962 as_fn_error $? "Documentation build requested but doxygen not found. Install doxygen or disable the documentation using --disable-documentation" "$LINENO" 5 17963 fi 17964 17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible doxygen version" >&5 17966printf %s "checking for compatible doxygen version... " >&6; } 17967 doxygen_version=`$DOXYGEN --version` 17968 as_arg_v1=$doxygen_version 17969as_arg_v2=1.6.0 17970awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17971case $? in #( 17972 1) : 17973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17974printf "%s\n" "no" >&6; } 17975 as_fn_error $? "Doxygen $doxygen_version too old. Doxygen 1.6+ required for documentation build. Install required doxygen version or disable the documentation using --disable-documentation" "$LINENO" 5 ;; #( 17976 0) : 17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17978printf "%s\n" "yes" >&6; } ;; #( 17979 2) : 17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17981printf "%s\n" "yes" >&6; } ;; #( 17982 *) : 17983 ;; 17984esac 17985 17986 # Extract the first word of "xmlto", so it can be a program name with args. 17987set dummy xmlto; ac_word=$2 17988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17989printf %s "checking for $ac_word... " >&6; } 17990if test ${ac_cv_path_XMLTO+y} 17991then : 17992 printf %s "(cached) " >&6 17993else $as_nop 17994 case $XMLTO in 17995 [\\/]* | ?:[\\/]*) 17996 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17997 ;; 17998 *) 17999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18000for as_dir in $PATH 18001do 18002 IFS=$as_save_IFS 18003 case $as_dir in #((( 18004 '') as_dir=./ ;; 18005 */) ;; 18006 *) as_dir=$as_dir/ ;; 18007 esac 18008 for ac_exec_ext in '' $ac_executable_extensions; do 18009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18010 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 18011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18012 break 2 18013 fi 18014done 18015 done 18016IFS=$as_save_IFS 18017 18018 ;; 18019esac 18020fi 18021XMLTO=$ac_cv_path_XMLTO 18022if test -n "$XMLTO"; then 18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18024printf "%s\n" "$XMLTO" >&6; } 18025else 18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18027printf "%s\n" "no" >&6; } 18028fi 18029 18030 18031 18032 if test "x$XMLTO" = "x"; then 18033 as_fn_error $? "Documentation build requested but xmlto not found. Install xmlto or disable the documentation using --disable-documentation" "$LINENO" 5 18034 fi 18035 18036 # Extract the first word of "dot", so it can be a program name with args. 18037set dummy dot; ac_word=$2 18038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18039printf %s "checking for $ac_word... " >&6; } 18040if test ${ac_cv_path_DOT+y} 18041then : 18042 printf %s "(cached) " >&6 18043else $as_nop 18044 case $DOT in 18045 [\\/]* | ?:[\\/]*) 18046 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 18047 ;; 18048 *) 18049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18050for as_dir in $PATH 18051do 18052 IFS=$as_save_IFS 18053 case $as_dir in #((( 18054 '') as_dir=./ ;; 18055 */) ;; 18056 *) as_dir=$as_dir/ ;; 18057 esac 18058 for ac_exec_ext in '' $ac_executable_extensions; do 18059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18060 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 18061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18062 break 2 18063 fi 18064done 18065 done 18066IFS=$as_save_IFS 18067 18068 ;; 18069esac 18070fi 18071DOT=$ac_cv_path_DOT 18072if test -n "$DOT"; then 18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 18074printf "%s\n" "$DOT" >&6; } 18075else 18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18077printf "%s\n" "no" >&6; } 18078fi 18079 18080 18081 if test "x$DOT" = "x"; then 18082 as_fn_error $? "Documentation build requested but graphviz's dot not found. Install graphviz or disable the documentation using --disable-documentation" "$LINENO" 5 18083 fi 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible dot version" >&5 18085printf %s "checking for compatible dot version... " >&6; } 18086 dot_version=`$DOT -V 2>&1|$GREP -o '[0-9]*\.[0-9]*\.[0-9]*'` 18087 as_arg_v1=$dot_version 18088as_arg_v2=2.26.0 18089awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18090case $? in #( 18091 1) : 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18093printf "%s\n" "no" >&6; } 18094 as_fn_error $? "Graphviz dot $dot_version too old. Graphviz 2.26+ required for documentation build. Install required graphviz version or disable the documentation using --disable-documentation" "$LINENO" 5 ;; #( 18095 0) : 18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18097printf "%s\n" "yes" >&6; } ;; #( 18098 2) : 18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18100printf "%s\n" "yes" >&6; } ;; #( 18101 *) : 18102 ;; 18103esac 18104 18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for docbook stylesheets" >&5 18106printf %s "checking for docbook stylesheets... " >&6; } 18107 DOCS_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 18108 if test -z "$XSLTPROC_TMP"; then 18109 ac_path_XSLTPROC_TMP_found=false 18110 # Loop through the user's path and test for each of PROGNAME-LIST 18111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18112for as_dir in $PATH 18113do 18114 IFS=$as_save_IFS 18115 case $as_dir in #((( 18116 '') as_dir=./ ;; 18117 */) ;; 18118 *) as_dir=$as_dir/ ;; 18119 esac 18120 for ac_prog in xsltproc 18121 do 18122 for ac_exec_ext in '' $ac_executable_extensions; do 18123 ac_path_XSLTPROC_TMP="$as_dir$ac_prog$ac_exec_ext" 18124 as_fn_executable_p "$ac_path_XSLTPROC_TMP" || continue 18125if `"$ac_path_XSLTPROC_TMP" --nonet "$DOCS_STYLESHEET" > /dev/null 2>&1` 18126then : 18127 HAVE_DOCS_STYLESHEET=yes 18128fi 18129 $ac_path_XSLTPROC_TMP_found && break 3 18130 done 18131 done 18132 done 18133IFS=$as_save_IFS 18134 if test -z "$ac_cv_path_XSLTPROC_TMP"; then 18135 : 18136 fi 18137else 18138 ac_cv_path_XSLTPROC_TMP=$XSLTPROC_TMP 18139fi 18140 18141 if test "x$HAVE_DOCS_STYLESHEET" != "xyes"; then 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18143printf "%s\n" "no" >&6; } 18144 as_fn_error $? "Documentation build requested but docbook-xsl stylesheets are not found. Install the docbook-xsl package or disable the documentation using --disable-documentation" "$LINENO" 5 18145 fi 18146 18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18148printf "%s\n" "yes" >&6; } 18149 18150 18151 ac_config_files="$ac_config_files doc/doxygen/wayland.doxygen" 18152 18153 18154fi 18155 if test "x$XMLTO" != "x"; then 18156 HAVE_XMLTO_TRUE= 18157 HAVE_XMLTO_FALSE='#' 18158else 18159 HAVE_XMLTO_TRUE='#' 18160 HAVE_XMLTO_FALSE= 18161fi 18162 18163 18164ac_config_files="$ac_config_files Makefile cursor/wayland-cursor.pc cursor/wayland-cursor-uninstalled.pc doc/Makefile doc/publican/Makefile doc/doxygen/Makefile egl/wayland-egl.pc egl/wayland-egl-backend.pc src/wayland-server-uninstalled.pc src/wayland-client-uninstalled.pc src/wayland-scanner-uninstalled.pc src/wayland-server.pc src/wayland-client.pc src/wayland-scanner.pc src/wayland-version.h" 18165 18166cat >confcache <<\_ACEOF 18167# This file is a shell script that caches the results of configure 18168# tests run on this system so they can be shared between configure 18169# scripts and configure runs, see configure's option --config-cache. 18170# It is not useful on other systems. If it contains results you don't 18171# want to keep, you may remove or edit it. 18172# 18173# config.status only pays attention to the cache file if you give it 18174# the --recheck option to rerun configure. 18175# 18176# `ac_cv_env_foo' variables (set or unset) will be overridden when 18177# loading this file, other *unset* `ac_cv_foo' will be assigned the 18178# following values. 18179 18180_ACEOF 18181 18182# The following way of writing the cache mishandles newlines in values, 18183# but we know of no workaround that is simple, portable, and efficient. 18184# So, we kill variables containing newlines. 18185# Ultrix sh set writes to stderr and can't be redirected directly, 18186# and sets the high bit in the cache file unless we assign to the vars. 18187( 18188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18189 eval ac_val=\$$ac_var 18190 case $ac_val in #( 18191 *${as_nl}*) 18192 case $ac_var in #( 18193 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18194printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18195 esac 18196 case $ac_var in #( 18197 _ | IFS | as_nl) ;; #( 18198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18199 *) { eval $ac_var=; unset $ac_var;} ;; 18200 esac ;; 18201 esac 18202 done 18203 18204 (set) 2>&1 | 18205 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18206 *${as_nl}ac_space=\ *) 18207 # `set' does not quote correctly, so add quotes: double-quote 18208 # substitution turns \\\\ into \\, and sed turns \\ into \. 18209 sed -n \ 18210 "s/'/'\\\\''/g; 18211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18212 ;; #( 18213 *) 18214 # `set' quotes correctly as required by POSIX, so do not add quotes. 18215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18216 ;; 18217 esac | 18218 sort 18219) | 18220 sed ' 18221 /^ac_cv_env_/b end 18222 t clear 18223 :clear 18224 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 18225 t end 18226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18227 :end' >>confcache 18228if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18229 if test -w "$cache_file"; then 18230 if test "x$cache_file" != "x/dev/null"; then 18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18232printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 18233 if test ! -f "$cache_file" || test -h "$cache_file"; then 18234 cat confcache >"$cache_file" 18235 else 18236 case $cache_file in #( 18237 */* | ?:*) 18238 mv -f confcache "$cache_file"$$ && 18239 mv -f "$cache_file"$$ "$cache_file" ;; #( 18240 *) 18241 mv -f confcache "$cache_file" ;; 18242 esac 18243 fi 18244 fi 18245 else 18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18247printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 18248 fi 18249fi 18250rm -f confcache 18251 18252test "x$prefix" = xNONE && prefix=$ac_default_prefix 18253# Let make expand exec_prefix. 18254test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18255 18256DEFS=-DHAVE_CONFIG_H 18257 18258ac_libobjs= 18259ac_ltlibobjs= 18260U= 18261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18262 # 1. Remove the extension, and $U if already installed. 18263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18264 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 18265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18266 # will be set to the directory where LIBOBJS objects are built. 18267 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18268 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18269done 18270LIBOBJS=$ac_libobjs 18271 18272LTLIBOBJS=$ac_ltlibobjs 18273 18274 18275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18276printf %s "checking that generated files are newer than configure... " >&6; } 18277 if test -n "$am_sleep_pid"; then 18278 # Hide warnings about reused PIDs. 18279 wait $am_sleep_pid 2>/dev/null 18280 fi 18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 18282printf "%s\n" "done" >&6; } 18283 if test -n "$EXEEXT"; then 18284 am__EXEEXT_TRUE= 18285 am__EXEEXT_FALSE='#' 18286else 18287 am__EXEEXT_TRUE='#' 18288 am__EXEEXT_FALSE= 18289fi 18290 18291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18292 as_fn_error $? "conditional \"AMDEP\" was never defined. 18293Usually this means the macro was only invoked conditionally." "$LINENO" 5 18294fi 18295if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18296 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18297Usually this means the macro was only invoked conditionally." "$LINENO" 5 18298fi 18299if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18300 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18301Usually this means the macro was only invoked conditionally." "$LINENO" 5 18302fi 18303if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 18304 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 18305Usually this means the macro was only invoked conditionally." "$LINENO" 5 18306fi 18307if test -z "${ENABLE_CPP_TEST_TRUE}" && test -z "${ENABLE_CPP_TEST_FALSE}"; then 18308 as_fn_error $? "conditional \"ENABLE_CPP_TEST\" was never defined. 18309Usually this means the macro was only invoked conditionally." "$LINENO" 5 18310fi 18311if test -z "${USE_HOST_SCANNER_TRUE}" && test -z "${USE_HOST_SCANNER_FALSE}"; then 18312 as_fn_error $? "conditional \"USE_HOST_SCANNER\" was never defined. 18313Usually this means the macro was only invoked conditionally." "$LINENO" 5 18314fi 18315if test -z "${ENABLE_LIBRARIES_TRUE}" && test -z "${ENABLE_LIBRARIES_FALSE}"; then 18316 as_fn_error $? "conditional \"ENABLE_LIBRARIES\" was never defined. 18317Usually this means the macro was only invoked conditionally." "$LINENO" 5 18318fi 18319if test -z "${DTD_VALIDATION_TRUE}" && test -z "${DTD_VALIDATION_FALSE}"; then 18320 as_fn_error $? "conditional \"DTD_VALIDATION\" was never defined. 18321Usually this means the macro was only invoked conditionally." "$LINENO" 5 18322fi 18323if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18324 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18325Usually this means the macro was only invoked conditionally." "$LINENO" 5 18326fi 18327if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 18328 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 18329Usually this means the macro was only invoked conditionally." "$LINENO" 5 18330fi 18331if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18332 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18333Usually this means the macro was only invoked conditionally." "$LINENO" 5 18334fi 18335 18336: "${CONFIG_STATUS=./config.status}" 18337ac_write_fail=0 18338ac_clean_files_save=$ac_clean_files 18339ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18341printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 18342as_write_fail=0 18343cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18344#! $SHELL 18345# Generated by $as_me. 18346# Run this file to recreate the current configuration. 18347# Compiler output produced by configure, useful for debugging 18348# configure, is in config.log if it exists. 18349 18350debug=false 18351ac_cs_recheck=false 18352ac_cs_silent=false 18353 18354SHELL=\${CONFIG_SHELL-$SHELL} 18355export SHELL 18356_ASEOF 18357cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18358## -------------------- ## 18359## M4sh Initialization. ## 18360## -------------------- ## 18361 18362# Be more Bourne compatible 18363DUALCASE=1; export DUALCASE # for MKS sh 18364as_nop=: 18365if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 18366then : 18367 emulate sh 18368 NULLCMD=: 18369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18370 # is contrary to our usage. Disable this feature. 18371 alias -g '${1+"$@"}'='"$@"' 18372 setopt NO_GLOB_SUBST 18373else $as_nop 18374 case `(set -o) 2>/dev/null` in #( 18375 *posix*) : 18376 set -o posix ;; #( 18377 *) : 18378 ;; 18379esac 18380fi 18381 18382 18383 18384# Reset variables that may have inherited troublesome values from 18385# the environment. 18386 18387# IFS needs to be set, to space, tab, and newline, in precisely that order. 18388# (If _AS_PATH_WALK were called with IFS unset, it would have the 18389# side effect of setting IFS to empty, thus disabling word splitting.) 18390# Quoting is to prevent editors from complaining about space-tab. 18391as_nl=' 18392' 18393export as_nl 18394IFS=" "" $as_nl" 18395 18396PS1='$ ' 18397PS2='> ' 18398PS4='+ ' 18399 18400# Ensure predictable behavior from utilities with locale-dependent output. 18401LC_ALL=C 18402export LC_ALL 18403LANGUAGE=C 18404export LANGUAGE 18405 18406# We cannot yet rely on "unset" to work, but we need these variables 18407# to be unset--not just set to an empty or harmless value--now, to 18408# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 18409# also avoids known problems related to "unset" and subshell syntax 18410# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 18411for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 18412do eval test \${$as_var+y} \ 18413 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18414done 18415 18416# Ensure that fds 0, 1, and 2 are open. 18417if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 18418if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 18419if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 18420 18421# The user is always right. 18422if ${PATH_SEPARATOR+false} :; then 18423 PATH_SEPARATOR=: 18424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18425 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18426 PATH_SEPARATOR=';' 18427 } 18428fi 18429 18430 18431# Find who we are. Look in the path if we contain no directory separator. 18432as_myself= 18433case $0 in #(( 18434 *[\\/]* ) as_myself=$0 ;; 18435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18436for as_dir in $PATH 18437do 18438 IFS=$as_save_IFS 18439 case $as_dir in #((( 18440 '') as_dir=./ ;; 18441 */) ;; 18442 *) as_dir=$as_dir/ ;; 18443 esac 18444 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 18445 done 18446IFS=$as_save_IFS 18447 18448 ;; 18449esac 18450# We did not find ourselves, most probably we were run as `sh COMMAND' 18451# in which case we are not to be found in the path. 18452if test "x$as_myself" = x; then 18453 as_myself=$0 18454fi 18455if test ! -f "$as_myself"; then 18456 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18457 exit 1 18458fi 18459 18460 18461 18462# as_fn_error STATUS ERROR [LINENO LOG_FD] 18463# ---------------------------------------- 18464# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18465# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18466# script with STATUS, using 1 if that was 0. 18467as_fn_error () 18468{ 18469 as_status=$1; test $as_status -eq 0 && as_status=1 18470 if test "$4"; then 18471 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18473 fi 18474 printf "%s\n" "$as_me: error: $2" >&2 18475 as_fn_exit $as_status 18476} # as_fn_error 18477 18478 18479 18480# as_fn_set_status STATUS 18481# ----------------------- 18482# Set $? to STATUS, without forking. 18483as_fn_set_status () 18484{ 18485 return $1 18486} # as_fn_set_status 18487 18488# as_fn_exit STATUS 18489# ----------------- 18490# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18491as_fn_exit () 18492{ 18493 set +e 18494 as_fn_set_status $1 18495 exit $1 18496} # as_fn_exit 18497 18498# as_fn_unset VAR 18499# --------------- 18500# Portably unset VAR. 18501as_fn_unset () 18502{ 18503 { eval $1=; unset $1;} 18504} 18505as_unset=as_fn_unset 18506 18507# as_fn_append VAR VALUE 18508# ---------------------- 18509# Append the text in VALUE to the end of the definition contained in VAR. Take 18510# advantage of any shell optimizations that allow amortized linear growth over 18511# repeated appends, instead of the typical quadratic growth present in naive 18512# implementations. 18513if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 18514then : 18515 eval 'as_fn_append () 18516 { 18517 eval $1+=\$2 18518 }' 18519else $as_nop 18520 as_fn_append () 18521 { 18522 eval $1=\$$1\$2 18523 } 18524fi # as_fn_append 18525 18526# as_fn_arith ARG... 18527# ------------------ 18528# Perform arithmetic evaluation on the ARGs, and store the result in the 18529# global $as_val. Take advantage of shells that can avoid forks. The arguments 18530# must be portable across $(()) and expr. 18531if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 18532then : 18533 eval 'as_fn_arith () 18534 { 18535 as_val=$(( $* )) 18536 }' 18537else $as_nop 18538 as_fn_arith () 18539 { 18540 as_val=`expr "$@" || test $? -eq 1` 18541 } 18542fi # as_fn_arith 18543 18544 18545if expr a : '\(a\)' >/dev/null 2>&1 && 18546 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18547 as_expr=expr 18548else 18549 as_expr=false 18550fi 18551 18552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18553 as_basename=basename 18554else 18555 as_basename=false 18556fi 18557 18558if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18559 as_dirname=dirname 18560else 18561 as_dirname=false 18562fi 18563 18564as_me=`$as_basename -- "$0" || 18565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18566 X"$0" : 'X\(//\)$' \| \ 18567 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18568printf "%s\n" X/"$0" | 18569 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18570 s//\1/ 18571 q 18572 } 18573 /^X\/\(\/\/\)$/{ 18574 s//\1/ 18575 q 18576 } 18577 /^X\/\(\/\).*/{ 18578 s//\1/ 18579 q 18580 } 18581 s/.*/./; q'` 18582 18583# Avoid depending upon Character Ranges. 18584as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18586as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18587as_cr_digits='0123456789' 18588as_cr_alnum=$as_cr_Letters$as_cr_digits 18589 18590 18591# Determine whether it's possible to make 'echo' print without a newline. 18592# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 18593# for compatibility with existing Makefiles. 18594ECHO_C= ECHO_N= ECHO_T= 18595case `echo -n x` in #((((( 18596-n*) 18597 case `echo 'xy\c'` in 18598 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18599 xy) ECHO_C='\c';; 18600 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18601 ECHO_T=' ';; 18602 esac;; 18603*) 18604 ECHO_N='-n';; 18605esac 18606 18607# For backward compatibility with old third-party macros, we provide 18608# the shell variables $as_echo and $as_echo_n. New code should use 18609# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 18610as_echo='printf %s\n' 18611as_echo_n='printf %s' 18612 18613rm -f conf$$ conf$$.exe conf$$.file 18614if test -d conf$$.dir; then 18615 rm -f conf$$.dir/conf$$.file 18616else 18617 rm -f conf$$.dir 18618 mkdir conf$$.dir 2>/dev/null 18619fi 18620if (echo >conf$$.file) 2>/dev/null; then 18621 if ln -s conf$$.file conf$$ 2>/dev/null; then 18622 as_ln_s='ln -s' 18623 # ... but there are two gotchas: 18624 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18625 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18626 # In both cases, we have to default to `cp -pR'. 18627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18628 as_ln_s='cp -pR' 18629 elif ln conf$$.file conf$$ 2>/dev/null; then 18630 as_ln_s=ln 18631 else 18632 as_ln_s='cp -pR' 18633 fi 18634else 18635 as_ln_s='cp -pR' 18636fi 18637rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18638rmdir conf$$.dir 2>/dev/null 18639 18640 18641# as_fn_mkdir_p 18642# ------------- 18643# Create "$as_dir" as a directory, including parents if necessary. 18644as_fn_mkdir_p () 18645{ 18646 18647 case $as_dir in #( 18648 -*) as_dir=./$as_dir;; 18649 esac 18650 test -d "$as_dir" || eval $as_mkdir_p || { 18651 as_dirs= 18652 while :; do 18653 case $as_dir in #( 18654 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18655 *) as_qdir=$as_dir;; 18656 esac 18657 as_dirs="'$as_qdir' $as_dirs" 18658 as_dir=`$as_dirname -- "$as_dir" || 18659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18660 X"$as_dir" : 'X\(//\)[^/]' \| \ 18661 X"$as_dir" : 'X\(//\)$' \| \ 18662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18663printf "%s\n" X"$as_dir" | 18664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18665 s//\1/ 18666 q 18667 } 18668 /^X\(\/\/\)[^/].*/{ 18669 s//\1/ 18670 q 18671 } 18672 /^X\(\/\/\)$/{ 18673 s//\1/ 18674 q 18675 } 18676 /^X\(\/\).*/{ 18677 s//\1/ 18678 q 18679 } 18680 s/.*/./; q'` 18681 test -d "$as_dir" && break 18682 done 18683 test -z "$as_dirs" || eval "mkdir $as_dirs" 18684 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18685 18686 18687} # as_fn_mkdir_p 18688if mkdir -p . 2>/dev/null; then 18689 as_mkdir_p='mkdir -p "$as_dir"' 18690else 18691 test -d ./-p && rmdir ./-p 18692 as_mkdir_p=false 18693fi 18694 18695 18696# as_fn_executable_p FILE 18697# ----------------------- 18698# Test if FILE is an executable regular file. 18699as_fn_executable_p () 18700{ 18701 test -f "$1" && test -x "$1" 18702} # as_fn_executable_p 18703as_test_x='test -x' 18704as_executable_p=as_fn_executable_p 18705 18706# Sed expression to map a string onto a valid CPP name. 18707as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18708 18709# Sed expression to map a string onto a valid variable name. 18710as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18711 18712 18713exec 6>&1 18714## ----------------------------------- ## 18715## Main body of $CONFIG_STATUS script. ## 18716## ----------------------------------- ## 18717_ASEOF 18718test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18719 18720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18721# Save the log message, to keep $0 and so on meaningful, and to 18722# report actual input values of CONFIG_FILES etc. instead of their 18723# values after options handling. 18724ac_log=" 18725This file was extended by wayland $as_me 1.19.0, which was 18726generated by GNU Autoconf 2.70. Invocation command line was 18727 18728 CONFIG_FILES = $CONFIG_FILES 18729 CONFIG_HEADERS = $CONFIG_HEADERS 18730 CONFIG_LINKS = $CONFIG_LINKS 18731 CONFIG_COMMANDS = $CONFIG_COMMANDS 18732 $ $0 $@ 18733 18734on `(hostname || uname -n) 2>/dev/null | sed 1q` 18735" 18736 18737_ACEOF 18738 18739case $ac_config_files in *" 18740"*) set x $ac_config_files; shift; ac_config_files=$*;; 18741esac 18742 18743case $ac_config_headers in *" 18744"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18745esac 18746 18747 18748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18749# Files that config.status was made for. 18750config_files="$ac_config_files" 18751config_headers="$ac_config_headers" 18752config_links="$ac_config_links" 18753config_commands="$ac_config_commands" 18754 18755_ACEOF 18756 18757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18758ac_cs_usage="\ 18759\`$as_me' instantiates files and other configuration actions 18760from templates according to the current configuration. Unless the files 18761and actions are specified as TAGs, all are instantiated by default. 18762 18763Usage: $0 [OPTION]... [TAG]... 18764 18765 -h, --help print this help, then exit 18766 -V, --version print version number and configuration settings, then exit 18767 --config print configuration, then exit 18768 -q, --quiet, --silent 18769 do not print progress messages 18770 -d, --debug don't remove temporary files 18771 --recheck update $as_me by reconfiguring in the same conditions 18772 --file=FILE[:TEMPLATE] 18773 instantiate the configuration file FILE 18774 --header=FILE[:TEMPLATE] 18775 instantiate the configuration header FILE 18776 18777Configuration files: 18778$config_files 18779 18780Configuration headers: 18781$config_headers 18782 18783Configuration links: 18784$config_links 18785 18786Configuration commands: 18787$config_commands 18788 18789Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 18790wayland home page: <https://wayland.freedesktop.org/>." 18791 18792_ACEOF 18793ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 18794ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 18795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18796ac_cs_config='$ac_cs_config_escaped' 18797ac_cs_version="\\ 18798wayland config.status 1.19.0 18799configured by $0, generated by GNU Autoconf 2.70, 18800 with options \\"\$ac_cs_config\\" 18801 18802Copyright (C) 2020 Free Software Foundation, Inc. 18803This config.status script is free software; the Free Software Foundation 18804gives unlimited permission to copy, distribute and modify it." 18805 18806ac_pwd='$ac_pwd' 18807srcdir='$srcdir' 18808INSTALL='$INSTALL' 18809MKDIR_P='$MKDIR_P' 18810AWK='$AWK' 18811test -n "\$AWK" || AWK=awk 18812_ACEOF 18813 18814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18815# The default lists apply if the user does not specify any file. 18816ac_need_defaults=: 18817while test $# != 0 18818do 18819 case $1 in 18820 --*=?*) 18821 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18823 ac_shift=: 18824 ;; 18825 --*=) 18826 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18827 ac_optarg= 18828 ac_shift=: 18829 ;; 18830 *) 18831 ac_option=$1 18832 ac_optarg=$2 18833 ac_shift=shift 18834 ;; 18835 esac 18836 18837 case $ac_option in 18838 # Handling of the options. 18839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18840 ac_cs_recheck=: ;; 18841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18842 printf "%s\n" "$ac_cs_version"; exit ;; 18843 --config | --confi | --conf | --con | --co | --c ) 18844 printf "%s\n" "$ac_cs_config"; exit ;; 18845 --debug | --debu | --deb | --de | --d | -d ) 18846 debug=: ;; 18847 --file | --fil | --fi | --f ) 18848 $ac_shift 18849 case $ac_optarg in 18850 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18851 '') as_fn_error $? "missing file argument" ;; 18852 esac 18853 as_fn_append CONFIG_FILES " '$ac_optarg'" 18854 ac_need_defaults=false;; 18855 --header | --heade | --head | --hea ) 18856 $ac_shift 18857 case $ac_optarg in 18858 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18859 esac 18860 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18861 ac_need_defaults=false;; 18862 --he | --h) 18863 # Conflict between --help and --header 18864 as_fn_error $? "ambiguous option: \`$1' 18865Try \`$0 --help' for more information.";; 18866 --help | --hel | -h ) 18867 printf "%s\n" "$ac_cs_usage"; exit ;; 18868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18869 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18870 ac_cs_silent=: ;; 18871 18872 # This is an error. 18873 -*) as_fn_error $? "unrecognized option: \`$1' 18874Try \`$0 --help' for more information." ;; 18875 18876 *) as_fn_append ac_config_targets " $1" 18877 ac_need_defaults=false ;; 18878 18879 esac 18880 shift 18881done 18882 18883ac_configure_extra_args= 18884 18885if $ac_cs_silent; then 18886 exec 6>/dev/null 18887 ac_configure_extra_args="$ac_configure_extra_args --silent" 18888fi 18889 18890_ACEOF 18891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18892if \$ac_cs_recheck; then 18893 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18894 shift 18895 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 18896 CONFIG_SHELL='$SHELL' 18897 export CONFIG_SHELL 18898 exec "\$@" 18899fi 18900 18901_ACEOF 18902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18903exec 5>>config.log 18904{ 18905 echo 18906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18907## Running $as_me. ## 18908_ASBOX 18909 printf "%s\n" "$ac_log" 18910} >&5 18911 18912_ACEOF 18913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18914# 18915# INIT-COMMANDS 18916# 18917AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18918 18919 18920# The HP-UX ksh and POSIX shell print the target directory to stdout 18921# if CDPATH is set. 18922(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18923 18924sed_quote_subst='$sed_quote_subst' 18925double_quote_subst='$double_quote_subst' 18926delay_variable_subst='$delay_variable_subst' 18927NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18928macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18929macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18930enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18931enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18932pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18933enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18934shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18935SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18936ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18937PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18938host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18939host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18940host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18941build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18942build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18943build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18944SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18945Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18946GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18947EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18948FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18949LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18950LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18951max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18952ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18953exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18954lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18955lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18956lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18957lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18958lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18964file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18965want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18966DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18967sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18968AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18969lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 18970AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18971archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18972STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18973RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18974old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18975old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18976old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18977lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18978CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18979CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18980compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18981GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18982lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18983lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18984lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18985lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18986lt_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"`' 18987lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18988nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18989lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18990lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18991objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18992MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18993lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18994lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18995lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18996lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18997lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18998need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18999MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19000DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19001NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19002LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19003OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19004OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19005libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19006shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19007extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19008archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19009enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19010export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19011whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19012compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19013old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19014old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19015archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19016archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19017module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19018module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19019with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19020allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19021no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19022hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19055configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19056configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19057hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19058enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19059enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19060enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19061old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19062striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19063compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19064predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19065postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19066predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19067postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19068compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19069LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19070reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19071reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19072old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19073compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19074GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19075lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19076lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19077lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19078lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19079lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19080archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19081enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19082export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19083whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19084compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19085old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19086old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19087archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19088archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19089module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19090module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19091with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19092allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19093no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19094hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19095hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19096hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19097hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19098hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19099hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19100hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19101inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19102link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19103always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19104export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19105exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19106include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19107prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19108postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19109file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19110hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19111compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19112predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19113postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19114predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19115postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19116compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19117 19118LTCC='$LTCC' 19119LTCFLAGS='$LTCFLAGS' 19120compiler='$compiler_DEFAULT' 19121 19122# A function that is used when there is no print builtin or printf. 19123func_fallback_echo () 19124{ 19125 eval 'cat <<_LTECHO_EOF 19126\$1 19127_LTECHO_EOF' 19128} 19129 19130# Quote evaled strings. 19131for var in NM \ 19132SHELL \ 19133ECHO \ 19134PATH_SEPARATOR \ 19135SED \ 19136GREP \ 19137EGREP \ 19138FGREP \ 19139LD \ 19140LN_S \ 19141lt_SP2NL \ 19142lt_NL2SP \ 19143reload_flag \ 19144OBJDUMP \ 19145deplibs_check_method \ 19146file_magic_cmd \ 19147file_magic_glob \ 19148want_nocaseglob \ 19149DLLTOOL \ 19150sharedlib_from_linklib_cmd \ 19151AR \ 19152archiver_list_spec \ 19153STRIP \ 19154RANLIB \ 19155CC \ 19156CFLAGS \ 19157compiler \ 19158lt_cv_sys_global_symbol_pipe \ 19159lt_cv_sys_global_symbol_to_cdecl \ 19160lt_cv_sys_global_symbol_to_import \ 19161lt_cv_sys_global_symbol_to_c_name_address \ 19162lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19163lt_cv_nm_interface \ 19164nm_file_list_spec \ 19165lt_cv_truncate_bin \ 19166lt_prog_compiler_no_builtin_flag \ 19167lt_prog_compiler_pic \ 19168lt_prog_compiler_wl \ 19169lt_prog_compiler_static \ 19170lt_cv_prog_compiler_c_o \ 19171need_locks \ 19172MANIFEST_TOOL \ 19173DSYMUTIL \ 19174NMEDIT \ 19175LIPO \ 19176OTOOL \ 19177OTOOL64 \ 19178shrext_cmds \ 19179export_dynamic_flag_spec \ 19180whole_archive_flag_spec \ 19181compiler_needs_object \ 19182with_gnu_ld \ 19183allow_undefined_flag \ 19184no_undefined_flag \ 19185hardcode_libdir_flag_spec \ 19186hardcode_libdir_separator \ 19187exclude_expsyms \ 19188include_expsyms \ 19189file_list_spec \ 19190variables_saved_for_relink \ 19191libname_spec \ 19192library_names_spec \ 19193soname_spec \ 19194install_override_mode \ 19195finish_eval \ 19196old_striplib \ 19197striplib \ 19198compiler_lib_search_dirs \ 19199predep_objects \ 19200postdep_objects \ 19201predeps \ 19202postdeps \ 19203compiler_lib_search_path \ 19204LD_CXX \ 19205reload_flag_CXX \ 19206compiler_CXX \ 19207lt_prog_compiler_no_builtin_flag_CXX \ 19208lt_prog_compiler_pic_CXX \ 19209lt_prog_compiler_wl_CXX \ 19210lt_prog_compiler_static_CXX \ 19211lt_cv_prog_compiler_c_o_CXX \ 19212export_dynamic_flag_spec_CXX \ 19213whole_archive_flag_spec_CXX \ 19214compiler_needs_object_CXX \ 19215with_gnu_ld_CXX \ 19216allow_undefined_flag_CXX \ 19217no_undefined_flag_CXX \ 19218hardcode_libdir_flag_spec_CXX \ 19219hardcode_libdir_separator_CXX \ 19220exclude_expsyms_CXX \ 19221include_expsyms_CXX \ 19222file_list_spec_CXX \ 19223compiler_lib_search_dirs_CXX \ 19224predep_objects_CXX \ 19225postdep_objects_CXX \ 19226predeps_CXX \ 19227postdeps_CXX \ 19228compiler_lib_search_path_CXX; do 19229 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19230 *[\\\\\\\`\\"\\\$]*) 19231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19232 ;; 19233 *) 19234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19235 ;; 19236 esac 19237done 19238 19239# Double-quote double-evaled strings. 19240for var in reload_cmds \ 19241old_postinstall_cmds \ 19242old_postuninstall_cmds \ 19243old_archive_cmds \ 19244extract_expsyms_cmds \ 19245old_archive_from_new_cmds \ 19246old_archive_from_expsyms_cmds \ 19247archive_cmds \ 19248archive_expsym_cmds \ 19249module_cmds \ 19250module_expsym_cmds \ 19251export_symbols_cmds \ 19252prelink_cmds \ 19253postlink_cmds \ 19254postinstall_cmds \ 19255postuninstall_cmds \ 19256finish_cmds \ 19257sys_lib_search_path_spec \ 19258configure_time_dlsearch_path \ 19259configure_time_lt_sys_library_path \ 19260reload_cmds_CXX \ 19261old_archive_cmds_CXX \ 19262old_archive_from_new_cmds_CXX \ 19263old_archive_from_expsyms_cmds_CXX \ 19264archive_cmds_CXX \ 19265archive_expsym_cmds_CXX \ 19266module_cmds_CXX \ 19267module_expsym_cmds_CXX \ 19268export_symbols_cmds_CXX \ 19269prelink_cmds_CXX \ 19270postlink_cmds_CXX; do 19271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19272 *[\\\\\\\`\\"\\\$]*) 19273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19274 ;; 19275 *) 19276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19277 ;; 19278 esac 19279done 19280 19281ac_aux_dir='$ac_aux_dir' 19282 19283# See if we are running on zsh, and set the options that allow our 19284# commands through without removal of \ escapes INIT. 19285if test -n "\${ZSH_VERSION+set}"; then 19286 setopt NO_GLOB_SUBST 19287fi 19288 19289 19290 PACKAGE='$PACKAGE' 19291 VERSION='$VERSION' 19292 RM='$RM' 19293 ofile='$ofile' 19294 19295 19296 19297 19298 19299 19300_ACEOF 19301 19302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19303 19304# Handling of arguments. 19305for ac_config_target in $ac_config_targets 19306do 19307 case $ac_config_target in 19308 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19311 "src/wayland.dtd.embed") CONFIG_LINKS="$CONFIG_LINKS src/wayland.dtd.embed:protocol/wayland.dtd" ;; 19312 "doc/doxygen/wayland.doxygen") CONFIG_FILES="$CONFIG_FILES doc/doxygen/wayland.doxygen" ;; 19313 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19314 "cursor/wayland-cursor.pc") CONFIG_FILES="$CONFIG_FILES cursor/wayland-cursor.pc" ;; 19315 "cursor/wayland-cursor-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cursor/wayland-cursor-uninstalled.pc" ;; 19316 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19317 "doc/publican/Makefile") CONFIG_FILES="$CONFIG_FILES doc/publican/Makefile" ;; 19318 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 19319 "egl/wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES egl/wayland-egl.pc" ;; 19320 "egl/wayland-egl-backend.pc") CONFIG_FILES="$CONFIG_FILES egl/wayland-egl-backend.pc" ;; 19321 "src/wayland-server-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-server-uninstalled.pc" ;; 19322 "src/wayland-client-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-client-uninstalled.pc" ;; 19323 "src/wayland-scanner-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-scanner-uninstalled.pc" ;; 19324 "src/wayland-server.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-server.pc" ;; 19325 "src/wayland-client.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-client.pc" ;; 19326 "src/wayland-scanner.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-scanner.pc" ;; 19327 "src/wayland-version.h") CONFIG_FILES="$CONFIG_FILES src/wayland-version.h" ;; 19328 19329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19330 esac 19331done 19332 19333 19334# If the user did not use the arguments to specify the items to instantiate, 19335# then the envvar interface is used. Set only those that are not. 19336# We use the long form for the default assignment because of an extremely 19337# bizarre bug on SunOS 4.1.3. 19338if $ac_need_defaults; then 19339 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 19340 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 19341 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links 19342 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 19343fi 19344 19345# Have a temporary directory for convenience. Make it in the build tree 19346# simply because there is no reason against having it here, and in addition, 19347# creating and moving files from /tmp can sometimes cause problems. 19348# Hook for its removal unless debugging. 19349# Note that there is a small window in which the directory will not be cleaned: 19350# after its creation but before its name has been assigned to `$tmp'. 19351$debug || 19352{ 19353 tmp= ac_tmp= 19354 trap 'exit_status=$? 19355 : "${ac_tmp:=$tmp}" 19356 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19357' 0 19358 trap 'as_fn_exit 1' 1 2 13 15 19359} 19360# Create a (secure) tmp directory for tmp files. 19361 19362{ 19363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19364 test -d "$tmp" 19365} || 19366{ 19367 tmp=./conf$$-$RANDOM 19368 (umask 077 && mkdir "$tmp") 19369} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19370ac_tmp=$tmp 19371 19372# Set up the scripts for CONFIG_FILES section. 19373# No need to generate them if there are no CONFIG_FILES. 19374# This happens for instance with `./config.status config.h'. 19375if test -n "$CONFIG_FILES"; then 19376 19377 19378ac_cr=`echo X | tr X '\015'` 19379# On cygwin, bash can eat \r inside `` if the user requested igncr. 19380# But we know of no other shell where ac_cr would be empty at this 19381# point, so we can use a bashism as a fallback. 19382if test "x$ac_cr" = x; then 19383 eval ac_cr=\$\'\\r\' 19384fi 19385ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19386if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19387 ac_cs_awk_cr='\\r' 19388else 19389 ac_cs_awk_cr=$ac_cr 19390fi 19391 19392echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19393_ACEOF 19394 19395 19396{ 19397 echo "cat >conf$$subs.awk <<_ACEOF" && 19398 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19399 echo "_ACEOF" 19400} >conf$$subs.sh || 19401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19402ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19403ac_delim='%!_!# ' 19404for ac_last_try in false false false false false :; do 19405 . ./conf$$subs.sh || 19406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19407 19408 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19409 if test $ac_delim_n = $ac_delim_num; then 19410 break 19411 elif $ac_last_try; then 19412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19413 else 19414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19415 fi 19416done 19417rm -f conf$$subs.sh 19418 19419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19420cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19421_ACEOF 19422sed -n ' 19423h 19424s/^/S["/; s/!.*/"]=/ 19425p 19426g 19427s/^[^!]*!// 19428:repl 19429t repl 19430s/'"$ac_delim"'$// 19431t delim 19432:nl 19433h 19434s/\(.\{148\}\)..*/\1/ 19435t more1 19436s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19437p 19438n 19439b repl 19440:more1 19441s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19442p 19443g 19444s/.\{148\}// 19445t nl 19446:delim 19447h 19448s/\(.\{148\}\)..*/\1/ 19449t more2 19450s/["\\]/\\&/g; s/^/"/; s/$/"/ 19451p 19452b 19453:more2 19454s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19455p 19456g 19457s/.\{148\}// 19458t delim 19459' <conf$$subs.awk | sed ' 19460/^[^""]/{ 19461 N 19462 s/\n// 19463} 19464' >>$CONFIG_STATUS || ac_write_fail=1 19465rm -f conf$$subs.awk 19466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19467_ACAWK 19468cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19469 for (key in S) S_is_set[key] = 1 19470 FS = "" 19471 19472} 19473{ 19474 line = $ 0 19475 nfields = split(line, field, "@") 19476 substed = 0 19477 len = length(field[1]) 19478 for (i = 2; i < nfields; i++) { 19479 key = field[i] 19480 keylen = length(key) 19481 if (S_is_set[key]) { 19482 value = S[key] 19483 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19484 len += length(value) + length(field[++i]) 19485 substed = 1 19486 } else 19487 len += 1 + keylen 19488 } 19489 19490 print line 19491} 19492 19493_ACAWK 19494_ACEOF 19495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19496if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19498else 19499 cat 19500fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19502_ACEOF 19503 19504# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19505# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19506# trailing colons and then remove the whole line if VPATH becomes empty 19507# (actually we leave an empty line to preserve line numbers). 19508if test "x$srcdir" = x.; then 19509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19510h 19511s/// 19512s/^/:/ 19513s/[ ]*$/:/ 19514s/:\$(srcdir):/:/g 19515s/:\${srcdir}:/:/g 19516s/:@srcdir@:/:/g 19517s/^:*// 19518s/:*$// 19519x 19520s/\(=[ ]*\).*/\1/ 19521G 19522s/\n// 19523s/^[^=]*=[ ]*$// 19524}' 19525fi 19526 19527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19528fi # test -n "$CONFIG_FILES" 19529 19530# Set up the scripts for CONFIG_HEADERS section. 19531# No need to generate them if there are no CONFIG_HEADERS. 19532# This happens for instance with `./config.status Makefile'. 19533if test -n "$CONFIG_HEADERS"; then 19534cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19535BEGIN { 19536_ACEOF 19537 19538# Transform confdefs.h into an awk script `defines.awk', embedded as 19539# here-document in config.status, that substitutes the proper values into 19540# config.h.in to produce config.h. 19541 19542# Create a delimiter string that does not exist in confdefs.h, to ease 19543# handling of long lines. 19544ac_delim='%!_!# ' 19545for ac_last_try in false false :; do 19546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19547 if test -z "$ac_tt"; then 19548 break 19549 elif $ac_last_try; then 19550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19551 else 19552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19553 fi 19554done 19555 19556# For the awk script, D is an array of macro values keyed by name, 19557# likewise P contains macro parameters if any. Preserve backslash 19558# newline sequences. 19559 19560ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19561sed -n ' 19562s/.\{148\}/&'"$ac_delim"'/g 19563t rset 19564:rset 19565s/^[ ]*#[ ]*define[ ][ ]*/ / 19566t def 19567d 19568:def 19569s/\\$// 19570t bsnl 19571s/["\\]/\\&/g 19572s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19573D["\1"]=" \3"/p 19574s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19575d 19576:bsnl 19577s/["\\]/\\&/g 19578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19579D["\1"]=" \3\\\\\\n"\\/p 19580t cont 19581s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19582t cont 19583d 19584:cont 19585n 19586s/.\{148\}/&'"$ac_delim"'/g 19587t clear 19588:clear 19589s/\\$// 19590t bsnlc 19591s/["\\]/\\&/g; s/^/"/; s/$/"/p 19592d 19593:bsnlc 19594s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19595b cont 19596' <confdefs.h | sed ' 19597s/'"$ac_delim"'/"\\\ 19598"/g' >>$CONFIG_STATUS || ac_write_fail=1 19599 19600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19601 for (key in D) D_is_set[key] = 1 19602 FS = "" 19603} 19604/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19605 line = \$ 0 19606 split(line, arg, " ") 19607 if (arg[1] == "#") { 19608 defundef = arg[2] 19609 mac1 = arg[3] 19610 } else { 19611 defundef = substr(arg[1], 2) 19612 mac1 = arg[2] 19613 } 19614 split(mac1, mac2, "(") #) 19615 macro = mac2[1] 19616 prefix = substr(line, 1, index(line, defundef) - 1) 19617 if (D_is_set[macro]) { 19618 # Preserve the white space surrounding the "#". 19619 print prefix "define", macro P[macro] D[macro] 19620 next 19621 } else { 19622 # Replace #undef with comments. This is necessary, for example, 19623 # in the case of _POSIX_SOURCE, which is predefined and required 19624 # on some systems where configure will not decide to define it. 19625 if (defundef == "undef") { 19626 print "/*", prefix defundef, macro, "*/" 19627 next 19628 } 19629 } 19630} 19631{ print } 19632_ACAWK 19633_ACEOF 19634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19636fi # test -n "$CONFIG_HEADERS" 19637 19638 19639eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 19640shift 19641for ac_tag 19642do 19643 case $ac_tag in 19644 :[FHLC]) ac_mode=$ac_tag; continue;; 19645 esac 19646 case $ac_mode$ac_tag in 19647 :[FHL]*:*);; 19648 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19649 :[FH]-) ac_tag=-:-;; 19650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19651 esac 19652 ac_save_IFS=$IFS 19653 IFS=: 19654 set x $ac_tag 19655 IFS=$ac_save_IFS 19656 shift 19657 ac_file=$1 19658 shift 19659 19660 case $ac_mode in 19661 :L) ac_source=$1;; 19662 :[FH]) 19663 ac_file_inputs= 19664 for ac_f 19665 do 19666 case $ac_f in 19667 -) ac_f="$ac_tmp/stdin";; 19668 *) # Look for the file first in the build tree, then in the source tree 19669 # (if the path is not absolute). The absolute path cannot be DOS-style, 19670 # because $ac_f cannot contain `:'. 19671 test -f "$ac_f" || 19672 case $ac_f in 19673 [\\/$]*) false;; 19674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19675 esac || 19676 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19677 esac 19678 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19679 as_fn_append ac_file_inputs " '$ac_f'" 19680 done 19681 19682 # Let's still pretend it is `configure' which instantiates (i.e., don't 19683 # use $as_me), people would be surprised to read: 19684 # /* config.h. Generated by config.status. */ 19685 configure_input='Generated from '` 19686 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19687 `' by configure.' 19688 if test x"$ac_file" != x-; then 19689 configure_input="$ac_file. $configure_input" 19690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19691printf "%s\n" "$as_me: creating $ac_file" >&6;} 19692 fi 19693 # Neutralize special characters interpreted by sed in replacement strings. 19694 case $configure_input in #( 19695 *\&* | *\|* | *\\* ) 19696 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 19697 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19698 *) ac_sed_conf_input=$configure_input;; 19699 esac 19700 19701 case $ac_tag in 19702 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19704 esac 19705 ;; 19706 esac 19707 19708 ac_dir=`$as_dirname -- "$ac_file" || 19709$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19710 X"$ac_file" : 'X\(//\)[^/]' \| \ 19711 X"$ac_file" : 'X\(//\)$' \| \ 19712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19713printf "%s\n" X"$ac_file" | 19714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19715 s//\1/ 19716 q 19717 } 19718 /^X\(\/\/\)[^/].*/{ 19719 s//\1/ 19720 q 19721 } 19722 /^X\(\/\/\)$/{ 19723 s//\1/ 19724 q 19725 } 19726 /^X\(\/\).*/{ 19727 s//\1/ 19728 q 19729 } 19730 s/.*/./; q'` 19731 as_dir="$ac_dir"; as_fn_mkdir_p 19732 ac_builddir=. 19733 19734case "$ac_dir" in 19735.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19736*) 19737 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 19738 # A ".." for each directory in $ac_dir_suffix. 19739 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19740 case $ac_top_builddir_sub in 19741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19743 esac ;; 19744esac 19745ac_abs_top_builddir=$ac_pwd 19746ac_abs_builddir=$ac_pwd$ac_dir_suffix 19747# for backward compatibility: 19748ac_top_builddir=$ac_top_build_prefix 19749 19750case $srcdir in 19751 .) # We are building in place. 19752 ac_srcdir=. 19753 ac_top_srcdir=$ac_top_builddir_sub 19754 ac_abs_top_srcdir=$ac_pwd ;; 19755 [\\/]* | ?:[\\/]* ) # Absolute name. 19756 ac_srcdir=$srcdir$ac_dir_suffix; 19757 ac_top_srcdir=$srcdir 19758 ac_abs_top_srcdir=$srcdir ;; 19759 *) # Relative name. 19760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19761 ac_top_srcdir=$ac_top_build_prefix$srcdir 19762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19763esac 19764ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19765 19766 19767 case $ac_mode in 19768 :F) 19769 # 19770 # CONFIG_FILE 19771 # 19772 19773 case $INSTALL in 19774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19776 esac 19777 ac_MKDIR_P=$MKDIR_P 19778 case $MKDIR_P in 19779 [\\/$]* | ?:[\\/]* ) ;; 19780 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19781 esac 19782_ACEOF 19783 19784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19785# If the template does not know about datarootdir, expand it. 19786# FIXME: This hack should be removed a few years after 2.60. 19787ac_datarootdir_hack=; ac_datarootdir_seen= 19788ac_sed_dataroot=' 19789/datarootdir/ { 19790 p 19791 q 19792} 19793/@datadir@/p 19794/@docdir@/p 19795/@infodir@/p 19796/@localedir@/p 19797/@mandir@/p' 19798case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19799*datarootdir*) ac_datarootdir_seen=yes;; 19800*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19802printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19803_ACEOF 19804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19805 ac_datarootdir_hack=' 19806 s&@datadir@&$datadir&g 19807 s&@docdir@&$docdir&g 19808 s&@infodir@&$infodir&g 19809 s&@localedir@&$localedir&g 19810 s&@mandir@&$mandir&g 19811 s&\\\${datarootdir}&$datarootdir&g' ;; 19812esac 19813_ACEOF 19814 19815# Neutralize VPATH when `$srcdir' = `.'. 19816# Shell code in configure.ac might set extrasub. 19817# FIXME: do we really want to maintain this feature? 19818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19819ac_sed_extra="$ac_vpsub 19820$extrasub 19821_ACEOF 19822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19823:t 19824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19825s|@configure_input@|$ac_sed_conf_input|;t t 19826s&@top_builddir@&$ac_top_builddir_sub&;t t 19827s&@top_build_prefix@&$ac_top_build_prefix&;t t 19828s&@srcdir@&$ac_srcdir&;t t 19829s&@abs_srcdir@&$ac_abs_srcdir&;t t 19830s&@top_srcdir@&$ac_top_srcdir&;t t 19831s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19832s&@builddir@&$ac_builddir&;t t 19833s&@abs_builddir@&$ac_abs_builddir&;t t 19834s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19835s&@INSTALL@&$ac_INSTALL&;t t 19836s&@MKDIR_P@&$ac_MKDIR_P&;t t 19837$ac_datarootdir_hack 19838" 19839eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19840 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19841 19842test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19843 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19844 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19845 "$ac_tmp/out"`; test -z "$ac_out"; } && 19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19847which seems to be undefined. Please make sure it is defined" >&5 19848printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19849which seems to be undefined. Please make sure it is defined" >&2;} 19850 19851 rm -f "$ac_tmp/stdin" 19852 case $ac_file in 19853 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19854 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19855 esac \ 19856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19857 ;; 19858 :H) 19859 # 19860 # CONFIG_HEADER 19861 # 19862 if test x"$ac_file" != x-; then 19863 { 19864 printf "%s\n" "/* $configure_input */" >&1 \ 19865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19866 } >"$ac_tmp/config.h" \ 19867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19868 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19870printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 19871 else 19872 rm -f "$ac_file" 19873 mv "$ac_tmp/config.h" "$ac_file" \ 19874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19875 fi 19876 else 19877 printf "%s\n" "/* $configure_input */" >&1 \ 19878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19879 || as_fn_error $? "could not create -" "$LINENO" 5 19880 fi 19881# Compute "$ac_file"'s index in $config_headers. 19882_am_arg="$ac_file" 19883_am_stamp_count=1 19884for _am_header in $config_headers :; do 19885 case $_am_header in 19886 $_am_arg | $_am_arg:* ) 19887 break ;; 19888 * ) 19889 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19890 esac 19891done 19892echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19893$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19894 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19895 X"$_am_arg" : 'X\(//\)$' \| \ 19896 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19897printf "%s\n" X"$_am_arg" | 19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19899 s//\1/ 19900 q 19901 } 19902 /^X\(\/\/\)[^/].*/{ 19903 s//\1/ 19904 q 19905 } 19906 /^X\(\/\/\)$/{ 19907 s//\1/ 19908 q 19909 } 19910 /^X\(\/\).*/{ 19911 s//\1/ 19912 q 19913 } 19914 s/.*/./; q'`/stamp-h$_am_stamp_count 19915 ;; 19916 :L) 19917 # 19918 # CONFIG_LINK 19919 # 19920 19921 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 19922 : 19923 else 19924 # Prefer the file from the source tree if names are identical. 19925 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 19926 ac_source=$srcdir/$ac_source 19927 fi 19928 19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 19930printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} 19931 19932 if test ! -r "$ac_source"; then 19933 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 19934 fi 19935 rm -f "$ac_file" 19936 19937 # Try a relative symlink, then a hard link, then a copy. 19938 case $ac_source in 19939 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 19940 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 19941 esac 19942 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 19943 ln "$ac_source" "$ac_file" 2>/dev/null || 19944 cp -p "$ac_source" "$ac_file" || 19945 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 19946 fi 19947 ;; 19948 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19949printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 19950 ;; 19951 esac 19952 19953 19954 case $ac_file$ac_mode in 19955 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19956 # Older Autoconf quotes --file arguments for eval, but not when files 19957 # are listed without --file. Let's play safe and only enable the eval 19958 # if we detect the quoting. 19959 # TODO: see whether this extra hack can be removed once we start 19960 # requiring Autoconf 2.70 or later. 19961 case $CONFIG_FILES in #( 19962 *\'*) : 19963 eval set x "$CONFIG_FILES" ;; #( 19964 *) : 19965 set x $CONFIG_FILES ;; #( 19966 *) : 19967 ;; 19968esac 19969 shift 19970 # Used to flag and report bootstrapping failures. 19971 am_rc=0 19972 for am_mf 19973 do 19974 # Strip MF so we end up with the name of the file. 19975 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 19976 # Check whether this is an Automake generated Makefile which includes 19977 # dependency-tracking related rules and includes. 19978 # Grep'ing the whole file directly is not great: AIX grep has a line 19979 # limit of 2048, but all sed's we know have understand at least 4000. 19980 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19981 || continue 19982 am_dirpart=`$as_dirname -- "$am_mf" || 19983$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19984 X"$am_mf" : 'X\(//\)[^/]' \| \ 19985 X"$am_mf" : 'X\(//\)$' \| \ 19986 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19987printf "%s\n" X"$am_mf" | 19988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19989 s//\1/ 19990 q 19991 } 19992 /^X\(\/\/\)[^/].*/{ 19993 s//\1/ 19994 q 19995 } 19996 /^X\(\/\/\)$/{ 19997 s//\1/ 19998 q 19999 } 20000 /^X\(\/\).*/{ 20001 s//\1/ 20002 q 20003 } 20004 s/.*/./; q'` 20005 am_filepart=`$as_basename -- "$am_mf" || 20006$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20007 X"$am_mf" : 'X\(//\)$' \| \ 20008 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20009printf "%s\n" X/"$am_mf" | 20010 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20011 s//\1/ 20012 q 20013 } 20014 /^X\/\(\/\/\)$/{ 20015 s//\1/ 20016 q 20017 } 20018 /^X\/\(\/\).*/{ 20019 s//\1/ 20020 q 20021 } 20022 s/.*/./; q'` 20023 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20024 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20025 | $MAKE -f - am--depfiles" >&5 20026 (cd "$am_dirpart" \ 20027 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20028 | $MAKE -f - am--depfiles) >&5 2>&5 20029 ac_status=$? 20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20031 (exit $ac_status); } || am_rc=$? 20032 done 20033 if test $am_rc -ne 0; then 20034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20035printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20036as_fn_error $? "Something went wrong bootstrapping makefile fragments 20037 for automatic dependency tracking. If GNU make was not used, consider 20038 re-running the configure script with MAKE=\"gmake\" (or whatever is 20039 necessary). You can also try re-running configure with the 20040 '--disable-dependency-tracking' option to at least be able to build 20041 the package (albeit without support for automatic dependency tracking). 20042See \`config.log' for more details" "$LINENO" 5; } 20043 fi 20044 { am_dirpart=; unset am_dirpart;} 20045 { am_filepart=; unset am_filepart;} 20046 { am_mf=; unset am_mf;} 20047 { am_rc=; unset am_rc;} 20048 rm -f conftest-deps.mk 20049} 20050 ;; 20051 "libtool":C) 20052 20053 # See if we are running on zsh, and set the options that allow our 20054 # commands through without removal of \ escapes. 20055 if test -n "${ZSH_VERSION+set}"; then 20056 setopt NO_GLOB_SUBST 20057 fi 20058 20059 cfgfile=${ofile}T 20060 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20061 $RM "$cfgfile" 20062 20063 cat <<_LT_EOF >> "$cfgfile" 20064#! $SHELL 20065# Generated automatically by $as_me ($PACKAGE) $VERSION 20066# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20067 20068# Provide generalized library-building support services. 20069# Written by Gordon Matzigkeit, 1996 20070 20071# Copyright (C) 2014 Free Software Foundation, Inc. 20072# This is free software; see the source for copying conditions. There is NO 20073# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20074 20075# GNU Libtool is free software; you can redistribute it and/or modify 20076# it under the terms of the GNU General Public License as published by 20077# the Free Software Foundation; either version 2 of of the License, or 20078# (at your option) any later version. 20079# 20080# As a special exception to the GNU General Public License, if you 20081# distribute this file as part of a program or library that is built 20082# using GNU Libtool, you may include this file under the same 20083# distribution terms that you use for the rest of that program. 20084# 20085# GNU Libtool is distributed in the hope that it will be useful, but 20086# WITHOUT ANY WARRANTY; without even the implied warranty of 20087# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20088# GNU General Public License for more details. 20089# 20090# You should have received a copy of the GNU General Public License 20091# along with this program. If not, see <http://www.gnu.org/licenses/>. 20092 20093 20094# The names of the tagged configurations supported by this script. 20095available_tags='CXX ' 20096 20097# Configured defaults for sys_lib_dlsearch_path munging. 20098: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20099 20100# ### BEGIN LIBTOOL CONFIG 20101 20102# A BSD- or MS-compatible name lister. 20103NM=$lt_NM 20104 20105# Which release of libtool.m4 was used? 20106macro_version=$macro_version 20107macro_revision=$macro_revision 20108 20109# Whether or not to build static libraries. 20110build_old_libs=$enable_static 20111 20112# Whether or not to build shared libraries. 20113build_libtool_libs=$enable_shared 20114 20115# What type of objects to build. 20116pic_mode=$pic_mode 20117 20118# Whether or not to optimize for fast installation. 20119fast_install=$enable_fast_install 20120 20121# Shared archive member basename,for filename based shared library versioning on AIX. 20122shared_archive_member_spec=$shared_archive_member_spec 20123 20124# Shell to use when invoking shell scripts. 20125SHELL=$lt_SHELL 20126 20127# An echo program that protects backslashes. 20128ECHO=$lt_ECHO 20129 20130# The PATH separator for the build system. 20131PATH_SEPARATOR=$lt_PATH_SEPARATOR 20132 20133# The host system. 20134host_alias=$host_alias 20135host=$host 20136host_os=$host_os 20137 20138# The build system. 20139build_alias=$build_alias 20140build=$build 20141build_os=$build_os 20142 20143# A sed program that does not truncate output. 20144SED=$lt_SED 20145 20146# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20147Xsed="\$SED -e 1s/^X//" 20148 20149# A grep program that handles long lines. 20150GREP=$lt_GREP 20151 20152# An ERE matcher. 20153EGREP=$lt_EGREP 20154 20155# A literal string matcher. 20156FGREP=$lt_FGREP 20157 20158# Whether we need soft or hard links. 20159LN_S=$lt_LN_S 20160 20161# What is the maximum length of a command? 20162max_cmd_len=$max_cmd_len 20163 20164# Object file suffix (normally "o"). 20165objext=$ac_objext 20166 20167# Executable file suffix (normally ""). 20168exeext=$exeext 20169 20170# whether the shell understands "unset". 20171lt_unset=$lt_unset 20172 20173# turn spaces into newlines. 20174SP2NL=$lt_lt_SP2NL 20175 20176# turn newlines into spaces. 20177NL2SP=$lt_lt_NL2SP 20178 20179# convert \$build file names to \$host format. 20180to_host_file_cmd=$lt_cv_to_host_file_cmd 20181 20182# convert \$build files to toolchain format. 20183to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20184 20185# An object symbol dumper. 20186OBJDUMP=$lt_OBJDUMP 20187 20188# Method to check whether dependent libraries are shared objects. 20189deplibs_check_method=$lt_deplibs_check_method 20190 20191# Command to use when deplibs_check_method = "file_magic". 20192file_magic_cmd=$lt_file_magic_cmd 20193 20194# How to find potential files when deplibs_check_method = "file_magic". 20195file_magic_glob=$lt_file_magic_glob 20196 20197# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20198want_nocaseglob=$lt_want_nocaseglob 20199 20200# DLL creation program. 20201DLLTOOL=$lt_DLLTOOL 20202 20203# Command to associate shared and link libraries. 20204sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20205 20206# The archiver. 20207AR=$lt_AR 20208 20209# Flags to create an archive (by configure). 20210lt_ar_flags=$lt_ar_flags 20211 20212# Flags to create an archive. 20213AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 20214 20215# How to feed a file listing to the archiver. 20216archiver_list_spec=$lt_archiver_list_spec 20217 20218# A symbol stripping program. 20219STRIP=$lt_STRIP 20220 20221# Commands used to install an old-style archive. 20222RANLIB=$lt_RANLIB 20223old_postinstall_cmds=$lt_old_postinstall_cmds 20224old_postuninstall_cmds=$lt_old_postuninstall_cmds 20225 20226# Whether to use a lock for old archive extraction. 20227lock_old_archive_extraction=$lock_old_archive_extraction 20228 20229# A C compiler. 20230LTCC=$lt_CC 20231 20232# LTCC compiler flags. 20233LTCFLAGS=$lt_CFLAGS 20234 20235# Take the output of nm and produce a listing of raw symbols and C names. 20236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20237 20238# Transform the output of nm in a proper C declaration. 20239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20240 20241# Transform the output of nm into a list of symbols to manually relocate. 20242global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20243 20244# Transform the output of nm in a C name address pair. 20245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20246 20247# Transform the output of nm in a C name address pair when lib prefix is needed. 20248global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20249 20250# The name lister interface. 20251nm_interface=$lt_lt_cv_nm_interface 20252 20253# Specify filename containing input files for \$NM. 20254nm_file_list_spec=$lt_nm_file_list_spec 20255 20256# The root where to search for dependent libraries,and where our libraries should be installed. 20257lt_sysroot=$lt_sysroot 20258 20259# Command to truncate a binary pipe. 20260lt_truncate_bin=$lt_lt_cv_truncate_bin 20261 20262# The name of the directory that contains temporary libtool files. 20263objdir=$objdir 20264 20265# Used to examine libraries when file_magic_cmd begins with "file". 20266MAGIC_CMD=$MAGIC_CMD 20267 20268# Must we lock files when doing compilation? 20269need_locks=$lt_need_locks 20270 20271# Manifest tool. 20272MANIFEST_TOOL=$lt_MANIFEST_TOOL 20273 20274# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20275DSYMUTIL=$lt_DSYMUTIL 20276 20277# Tool to change global to local symbols on Mac OS X. 20278NMEDIT=$lt_NMEDIT 20279 20280# Tool to manipulate fat objects and archives on Mac OS X. 20281LIPO=$lt_LIPO 20282 20283# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20284OTOOL=$lt_OTOOL 20285 20286# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20287OTOOL64=$lt_OTOOL64 20288 20289# Old archive suffix (normally "a"). 20290libext=$libext 20291 20292# Shared library suffix (normally ".so"). 20293shrext_cmds=$lt_shrext_cmds 20294 20295# The commands to extract the exported symbol list from a shared archive. 20296extract_expsyms_cmds=$lt_extract_expsyms_cmds 20297 20298# Variables whose values should be saved in libtool wrapper scripts and 20299# restored at link time. 20300variables_saved_for_relink=$lt_variables_saved_for_relink 20301 20302# Do we need the "lib" prefix for modules? 20303need_lib_prefix=$need_lib_prefix 20304 20305# Do we need a version for libraries? 20306need_version=$need_version 20307 20308# Library versioning type. 20309version_type=$version_type 20310 20311# Shared library runtime path variable. 20312runpath_var=$runpath_var 20313 20314# Shared library path variable. 20315shlibpath_var=$shlibpath_var 20316 20317# Is shlibpath searched before the hard-coded library search path? 20318shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20319 20320# Format of library name prefix. 20321libname_spec=$lt_libname_spec 20322 20323# List of archive names. First name is the real one, the rest are links. 20324# The last name is the one that the linker finds with -lNAME 20325library_names_spec=$lt_library_names_spec 20326 20327# The coded name of the library, if different from the real name. 20328soname_spec=$lt_soname_spec 20329 20330# Permission mode override for installation of shared libraries. 20331install_override_mode=$lt_install_override_mode 20332 20333# Command to use after installation of a shared archive. 20334postinstall_cmds=$lt_postinstall_cmds 20335 20336# Command to use after uninstallation of a shared archive. 20337postuninstall_cmds=$lt_postuninstall_cmds 20338 20339# Commands used to finish a libtool library installation in a directory. 20340finish_cmds=$lt_finish_cmds 20341 20342# As "finish_cmds", except a single script fragment to be evaled but 20343# not shown. 20344finish_eval=$lt_finish_eval 20345 20346# Whether we should hardcode library paths into libraries. 20347hardcode_into_libs=$hardcode_into_libs 20348 20349# Compile-time system search path for libraries. 20350sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20351 20352# Detected run-time system search path for libraries. 20353sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20354 20355# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20356configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20357 20358# Whether dlopen is supported. 20359dlopen_support=$enable_dlopen 20360 20361# Whether dlopen of programs is supported. 20362dlopen_self=$enable_dlopen_self 20363 20364# Whether dlopen of statically linked programs is supported. 20365dlopen_self_static=$enable_dlopen_self_static 20366 20367# Commands to strip libraries. 20368old_striplib=$lt_old_striplib 20369striplib=$lt_striplib 20370 20371 20372# The linker used to build libraries. 20373LD=$lt_LD 20374 20375# How to create reloadable object files. 20376reload_flag=$lt_reload_flag 20377reload_cmds=$lt_reload_cmds 20378 20379# Commands used to build an old-style archive. 20380old_archive_cmds=$lt_old_archive_cmds 20381 20382# A language specific compiler. 20383CC=$lt_compiler 20384 20385# Is the compiler the GNU compiler? 20386with_gcc=$GCC 20387 20388# Compiler flag to turn off builtin functions. 20389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20390 20391# Additional compiler flags for building library objects. 20392pic_flag=$lt_lt_prog_compiler_pic 20393 20394# How to pass a linker flag through the compiler. 20395wl=$lt_lt_prog_compiler_wl 20396 20397# Compiler flag to prevent dynamic linking. 20398link_static_flag=$lt_lt_prog_compiler_static 20399 20400# Does compiler simultaneously support -c and -o options? 20401compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20402 20403# Whether or not to add -lc for building shared libraries. 20404build_libtool_need_lc=$archive_cmds_need_lc 20405 20406# Whether or not to disallow shared libs when runtime libs are static. 20407allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20408 20409# Compiler flag to allow reflexive dlopens. 20410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20411 20412# Compiler flag to generate shared objects directly from archives. 20413whole_archive_flag_spec=$lt_whole_archive_flag_spec 20414 20415# Whether the compiler copes with passing no objects directly. 20416compiler_needs_object=$lt_compiler_needs_object 20417 20418# Create an old-style archive from a shared archive. 20419old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20420 20421# Create a temporary old-style archive to link instead of a shared archive. 20422old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20423 20424# Commands used to build a shared archive. 20425archive_cmds=$lt_archive_cmds 20426archive_expsym_cmds=$lt_archive_expsym_cmds 20427 20428# Commands used to build a loadable module if different from building 20429# a shared archive. 20430module_cmds=$lt_module_cmds 20431module_expsym_cmds=$lt_module_expsym_cmds 20432 20433# Whether we are building with GNU ld or not. 20434with_gnu_ld=$lt_with_gnu_ld 20435 20436# Flag that allows shared libraries with undefined symbols to be built. 20437allow_undefined_flag=$lt_allow_undefined_flag 20438 20439# Flag that enforces no undefined symbols. 20440no_undefined_flag=$lt_no_undefined_flag 20441 20442# Flag to hardcode \$libdir into a binary during linking. 20443# This must work even if \$libdir does not exist 20444hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20445 20446# Whether we need a single "-rpath" flag with a separated argument. 20447hardcode_libdir_separator=$lt_hardcode_libdir_separator 20448 20449# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20450# DIR into the resulting binary. 20451hardcode_direct=$hardcode_direct 20452 20453# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20454# DIR into the resulting binary and the resulting library dependency is 20455# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20456# library is relocated. 20457hardcode_direct_absolute=$hardcode_direct_absolute 20458 20459# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20460# into the resulting binary. 20461hardcode_minus_L=$hardcode_minus_L 20462 20463# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20464# into the resulting binary. 20465hardcode_shlibpath_var=$hardcode_shlibpath_var 20466 20467# Set to "yes" if building a shared library automatically hardcodes DIR 20468# into the library and all subsequent libraries and executables linked 20469# against it. 20470hardcode_automatic=$hardcode_automatic 20471 20472# Set to yes if linker adds runtime paths of dependent libraries 20473# to runtime path list. 20474inherit_rpath=$inherit_rpath 20475 20476# Whether libtool must link a program against all its dependency libraries. 20477link_all_deplibs=$link_all_deplibs 20478 20479# Set to "yes" if exported symbols are required. 20480always_export_symbols=$always_export_symbols 20481 20482# The commands to list exported symbols. 20483export_symbols_cmds=$lt_export_symbols_cmds 20484 20485# Symbols that should not be listed in the preloaded symbols. 20486exclude_expsyms=$lt_exclude_expsyms 20487 20488# Symbols that must always be exported. 20489include_expsyms=$lt_include_expsyms 20490 20491# Commands necessary for linking programs (against libraries) with templates. 20492prelink_cmds=$lt_prelink_cmds 20493 20494# Commands necessary for finishing linking programs. 20495postlink_cmds=$lt_postlink_cmds 20496 20497# Specify filename containing input files. 20498file_list_spec=$lt_file_list_spec 20499 20500# How to hardcode a shared library path into an executable. 20501hardcode_action=$hardcode_action 20502 20503# The directories searched by this compiler when creating a shared library. 20504compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20505 20506# Dependencies to place before and after the objects being linked to 20507# create a shared library. 20508predep_objects=$lt_predep_objects 20509postdep_objects=$lt_postdep_objects 20510predeps=$lt_predeps 20511postdeps=$lt_postdeps 20512 20513# The library search path used internally by the compiler when linking 20514# a shared library. 20515compiler_lib_search_path=$lt_compiler_lib_search_path 20516 20517# ### END LIBTOOL CONFIG 20518 20519_LT_EOF 20520 20521 cat <<'_LT_EOF' >> "$cfgfile" 20522 20523# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20524 20525# func_munge_path_list VARIABLE PATH 20526# ----------------------------------- 20527# VARIABLE is name of variable containing _space_ separated list of 20528# directories to be munged by the contents of PATH, which is string 20529# having a format: 20530# "DIR[:DIR]:" 20531# string "DIR[ DIR]" will be prepended to VARIABLE 20532# ":DIR[:DIR]" 20533# string "DIR[ DIR]" will be appended to VARIABLE 20534# "DIRP[:DIRP]::[DIRA:]DIRA" 20535# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20536# "DIRA[ DIRA]" will be appended to VARIABLE 20537# "DIR[:DIR]" 20538# VARIABLE will be replaced by "DIR[ DIR]" 20539func_munge_path_list () 20540{ 20541 case x$2 in 20542 x) 20543 ;; 20544 *:) 20545 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20546 ;; 20547 x:*) 20548 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20549 ;; 20550 *::*) 20551 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20552 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20553 ;; 20554 *) 20555 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20556 ;; 20557 esac 20558} 20559 20560 20561# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20562func_cc_basename () 20563{ 20564 for cc_temp in $*""; do 20565 case $cc_temp in 20566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20568 \-*) ;; 20569 *) break;; 20570 esac 20571 done 20572 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20573} 20574 20575 20576# ### END FUNCTIONS SHARED WITH CONFIGURE 20577 20578_LT_EOF 20579 20580 case $host_os in 20581 aix3*) 20582 cat <<\_LT_EOF >> "$cfgfile" 20583# AIX sometimes has problems with the GCC collect2 program. For some 20584# reason, if we set the COLLECT_NAMES environment variable, the problems 20585# vanish in a puff of smoke. 20586if test set != "${COLLECT_NAMES+set}"; then 20587 COLLECT_NAMES= 20588 export COLLECT_NAMES 20589fi 20590_LT_EOF 20591 ;; 20592 esac 20593 20594 20595 20596ltmain=$ac_aux_dir/ltmain.sh 20597 20598 20599 # We use sed instead of cat because bash on DJGPP gets confused if 20600 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20601 # text mode, it properly converts lines to CR/LF. This bash problem 20602 # is reportedly fixed, but why not run on old versions too? 20603 sed '$q' "$ltmain" >> "$cfgfile" \ 20604 || (rm -f "$cfgfile"; exit 1) 20605 20606 mv -f "$cfgfile" "$ofile" || 20607 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20608 chmod +x "$ofile" 20609 20610 20611 cat <<_LT_EOF >> "$ofile" 20612 20613# ### BEGIN LIBTOOL TAG CONFIG: CXX 20614 20615# The linker used to build libraries. 20616LD=$lt_LD_CXX 20617 20618# How to create reloadable object files. 20619reload_flag=$lt_reload_flag_CXX 20620reload_cmds=$lt_reload_cmds_CXX 20621 20622# Commands used to build an old-style archive. 20623old_archive_cmds=$lt_old_archive_cmds_CXX 20624 20625# A language specific compiler. 20626CC=$lt_compiler_CXX 20627 20628# Is the compiler the GNU compiler? 20629with_gcc=$GCC_CXX 20630 20631# Compiler flag to turn off builtin functions. 20632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20633 20634# Additional compiler flags for building library objects. 20635pic_flag=$lt_lt_prog_compiler_pic_CXX 20636 20637# How to pass a linker flag through the compiler. 20638wl=$lt_lt_prog_compiler_wl_CXX 20639 20640# Compiler flag to prevent dynamic linking. 20641link_static_flag=$lt_lt_prog_compiler_static_CXX 20642 20643# Does compiler simultaneously support -c and -o options? 20644compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20645 20646# Whether or not to add -lc for building shared libraries. 20647build_libtool_need_lc=$archive_cmds_need_lc_CXX 20648 20649# Whether or not to disallow shared libs when runtime libs are static. 20650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20651 20652# Compiler flag to allow reflexive dlopens. 20653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20654 20655# Compiler flag to generate shared objects directly from archives. 20656whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20657 20658# Whether the compiler copes with passing no objects directly. 20659compiler_needs_object=$lt_compiler_needs_object_CXX 20660 20661# Create an old-style archive from a shared archive. 20662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20663 20664# Create a temporary old-style archive to link instead of a shared archive. 20665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20666 20667# Commands used to build a shared archive. 20668archive_cmds=$lt_archive_cmds_CXX 20669archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20670 20671# Commands used to build a loadable module if different from building 20672# a shared archive. 20673module_cmds=$lt_module_cmds_CXX 20674module_expsym_cmds=$lt_module_expsym_cmds_CXX 20675 20676# Whether we are building with GNU ld or not. 20677with_gnu_ld=$lt_with_gnu_ld_CXX 20678 20679# Flag that allows shared libraries with undefined symbols to be built. 20680allow_undefined_flag=$lt_allow_undefined_flag_CXX 20681 20682# Flag that enforces no undefined symbols. 20683no_undefined_flag=$lt_no_undefined_flag_CXX 20684 20685# Flag to hardcode \$libdir into a binary during linking. 20686# This must work even if \$libdir does not exist 20687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20688 20689# Whether we need a single "-rpath" flag with a separated argument. 20690hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20691 20692# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20693# DIR into the resulting binary. 20694hardcode_direct=$hardcode_direct_CXX 20695 20696# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20697# DIR into the resulting binary and the resulting library dependency is 20698# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20699# library is relocated. 20700hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20701 20702# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20703# into the resulting binary. 20704hardcode_minus_L=$hardcode_minus_L_CXX 20705 20706# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20707# into the resulting binary. 20708hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20709 20710# Set to "yes" if building a shared library automatically hardcodes DIR 20711# into the library and all subsequent libraries and executables linked 20712# against it. 20713hardcode_automatic=$hardcode_automatic_CXX 20714 20715# Set to yes if linker adds runtime paths of dependent libraries 20716# to runtime path list. 20717inherit_rpath=$inherit_rpath_CXX 20718 20719# Whether libtool must link a program against all its dependency libraries. 20720link_all_deplibs=$link_all_deplibs_CXX 20721 20722# Set to "yes" if exported symbols are required. 20723always_export_symbols=$always_export_symbols_CXX 20724 20725# The commands to list exported symbols. 20726export_symbols_cmds=$lt_export_symbols_cmds_CXX 20727 20728# Symbols that should not be listed in the preloaded symbols. 20729exclude_expsyms=$lt_exclude_expsyms_CXX 20730 20731# Symbols that must always be exported. 20732include_expsyms=$lt_include_expsyms_CXX 20733 20734# Commands necessary for linking programs (against libraries) with templates. 20735prelink_cmds=$lt_prelink_cmds_CXX 20736 20737# Commands necessary for finishing linking programs. 20738postlink_cmds=$lt_postlink_cmds_CXX 20739 20740# Specify filename containing input files. 20741file_list_spec=$lt_file_list_spec_CXX 20742 20743# How to hardcode a shared library path into an executable. 20744hardcode_action=$hardcode_action_CXX 20745 20746# The directories searched by this compiler when creating a shared library. 20747compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20748 20749# Dependencies to place before and after the objects being linked to 20750# create a shared library. 20751predep_objects=$lt_predep_objects_CXX 20752postdep_objects=$lt_postdep_objects_CXX 20753predeps=$lt_predeps_CXX 20754postdeps=$lt_postdeps_CXX 20755 20756# The library search path used internally by the compiler when linking 20757# a shared library. 20758compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20759 20760# ### END LIBTOOL TAG CONFIG: CXX 20761_LT_EOF 20762 20763 ;; 20764 20765 esac 20766done # for ac_tag 20767 20768 20769as_fn_exit 0 20770_ACEOF 20771ac_clean_files=$ac_clean_files_save 20772 20773test $ac_write_fail = 0 || 20774 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20775 20776 20777# configure is writing to config.log, and then calls config.status. 20778# config.status does its own redirection, appending to config.log. 20779# Unfortunately, on DOS this fails, as config.log is still kept open 20780# by configure, so config.status won't be able to write to it; its 20781# output is simply discarded. So we exec the FD to /dev/null, 20782# effectively closing config.log, so it can be properly (re)opened and 20783# appended to by config.status. When coming back to configure, we 20784# need to make the FD available again. 20785if test "$no_create" != yes; then 20786 ac_cs_success=: 20787 ac_config_status_args= 20788 test "$silent" = yes && 20789 ac_config_status_args="$ac_config_status_args --quiet" 20790 exec 5>/dev/null 20791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20792 exec 5>>config.log 20793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20794 # would make configure fail if this is the last instruction. 20795 $ac_cs_success || as_fn_exit 1 20796fi 20797if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20799printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20800fi 20801 20802 20803