configure revision d17cd367
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libICE 1.0.7. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532as_awk_strverscmp=' 533 # Use only awk features that work with 7th edition Unix awk (1978). 534 # My, what an old awk you have, Mr. Solaris! 535 END { 536 while (length(v1) && length(v2)) { 537 # Set d1 to be the next thing to compare from v1, and likewise for d2. 538 # Normally this is a single character, but if v1 and v2 contain digits, 539 # compare them as integers and fractions as strverscmp does. 540 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 541 # Split v1 and v2 into their leading digit string components d1 and d2, 542 # and advance v1 and v2 past the leading digit strings. 543 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 544 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 545 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 546 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 547 if (d1 ~ /^0/) { 548 if (d2 ~ /^0/) { 549 # Compare two fractions. 550 while (d1 ~ /^0/ && d2 ~ /^0/) { 551 d1 = substr(d1, 2); len1-- 552 d2 = substr(d2, 2); len2-- 553 } 554 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 555 # The two components differ in length, and the common prefix 556 # contains only leading zeros. Consider the longer to be less. 557 d1 = -len1 558 d2 = -len2 559 } else { 560 # Otherwise, compare as strings. 561 d1 = "x" d1 562 d2 = "x" d2 563 } 564 } else { 565 # A fraction is less than an integer. 566 exit 1 567 } 568 } else { 569 if (d2 ~ /^0/) { 570 # An integer is greater than a fraction. 571 exit 2 572 } else { 573 # Compare two integers. 574 d1 += 0 575 d2 += 0 576 } 577 } 578 } else { 579 # The normal case, without worrying about digits. 580 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 581 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 582 } 583 if (d1 < d2) exit 1 584 if (d1 > d2) exit 2 585 } 586 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 587 # which mishandles some comparisons of empty strings to integers. 588 if (length(v2)) exit 1 589 if (length(v1)) exit 2 590 } 591' 592 593 594# Check that we are running under the correct shell. 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597case X$lt_ECHO in 598X*--fallback-echo) 599 # Remove one level of quotation (which was required for Make). 600 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 601 ;; 602esac 603 604ECHO=${lt_ECHO-echo} 605if test "X$1" = X--no-reexec; then 606 # Discard the --no-reexec flag, and continue. 607 shift 608elif test "X$1" = X--fallback-echo; then 609 # Avoid inline document here, it may be left over 610 : 611elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 612 # Yippee, $ECHO works! 613 : 614else 615 # Restart under the correct shell. 616 exec $SHELL "$0" --no-reexec ${1+"$@"} 617fi 618 619if test "X$1" = X--fallback-echo; then 620 # used as fallback echo 621 shift 622 cat <<_LT_EOF 623$* 624_LT_EOF 625 exit 0 626fi 627 628# The HP-UX ksh and POSIX shell print the target directory to stdout 629# if CDPATH is set. 630(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 631 632if test -z "$lt_ECHO"; then 633 if test "X${echo_test_string+set}" != Xset; then 634 # find a string as large as possible, as long as the shell can cope with it 635 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 636 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 637 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 638 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 639 then 640 break 641 fi 642 done 643 fi 644 645 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 646 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 647 test "X$echo_testing_string" = "X$echo_test_string"; then 648 : 649 else 650 # The Solaris, AIX, and Digital Unix default echo programs unquote 651 # backslashes. This makes it impossible to quote backslashes using 652 # echo "$something" | sed 's/\\/\\\\/g' 653 # 654 # So, first we look for a working echo in the user's PATH. 655 656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 657 for dir in $PATH /usr/ucb; do 658 IFS="$lt_save_ifs" 659 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 660 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 661 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 662 test "X$echo_testing_string" = "X$echo_test_string"; then 663 ECHO="$dir/echo" 664 break 665 fi 666 done 667 IFS="$lt_save_ifs" 668 669 if test "X$ECHO" = Xecho; then 670 # We didn't find a better echo, so look for alternatives. 671 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # This shell has a builtin print -r that does the trick. 675 ECHO='print -r' 676 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 677 test "X$CONFIG_SHELL" != X/bin/ksh; then 678 # If we have ksh, try running configure again with it. 679 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 680 export ORIGINAL_CONFIG_SHELL 681 CONFIG_SHELL=/bin/ksh 682 export CONFIG_SHELL 683 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 684 else 685 # Try using printf. 686 ECHO='printf %s\n' 687 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 688 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 689 test "X$echo_testing_string" = "X$echo_test_string"; then 690 # Cool, printf works 691 : 692 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 693 test "X$echo_testing_string" = 'X\t' && 694 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 695 test "X$echo_testing_string" = "X$echo_test_string"; then 696 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 697 export CONFIG_SHELL 698 SHELL="$CONFIG_SHELL" 699 export SHELL 700 ECHO="$CONFIG_SHELL $0 --fallback-echo" 701 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 702 test "X$echo_testing_string" = 'X\t' && 703 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 704 test "X$echo_testing_string" = "X$echo_test_string"; then 705 ECHO="$CONFIG_SHELL $0 --fallback-echo" 706 else 707 # maybe with a smaller string... 708 prev=: 709 710 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 711 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 712 then 713 break 714 fi 715 prev="$cmd" 716 done 717 718 if test "$prev" != 'sed 50q "$0"'; then 719 echo_test_string=`eval $prev` 720 export echo_test_string 721 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 722 else 723 # Oops. We lost completely, so just stick with echo. 724 ECHO=echo 725 fi 726 fi 727 fi 728 fi 729 fi 730fi 731 732# Copy echo and quote the copy suitably for passing to libtool from 733# the Makefile, instead of quoting the original, which is used later. 734lt_ECHO=$ECHO 735if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 736 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 737fi 738 739 740 741 742test -n "$DJDIR" || exec 7<&0 </dev/null 743exec 6>&1 744 745# Name of the host. 746# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 747# so uname gets run too. 748ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 749 750# 751# Initializations. 752# 753ac_default_prefix=/usr/local 754ac_clean_files= 755ac_config_libobj_dir=. 756LIBOBJS= 757cross_compiling=no 758subdirs= 759MFLAGS= 760MAKEFLAGS= 761 762# Identity of this package. 763PACKAGE_NAME='libICE' 764PACKAGE_TARNAME='libICE' 765PACKAGE_VERSION='1.0.7' 766PACKAGE_STRING='libICE 1.0.7' 767PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 768PACKAGE_URL='' 769 770ac_unique_file="Makefile.am" 771# Factoring default headers for most tests. 772ac_includes_default="\ 773#include <stdio.h> 774#ifdef HAVE_SYS_TYPES_H 775# include <sys/types.h> 776#endif 777#ifdef HAVE_SYS_STAT_H 778# include <sys/stat.h> 779#endif 780#ifdef STDC_HEADERS 781# include <stdlib.h> 782# include <stddef.h> 783#else 784# ifdef HAVE_STDLIB_H 785# include <stdlib.h> 786# endif 787#endif 788#ifdef HAVE_STRING_H 789# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 790# include <memory.h> 791# endif 792# include <string.h> 793#endif 794#ifdef HAVE_STRINGS_H 795# include <strings.h> 796#endif 797#ifdef HAVE_INTTYPES_H 798# include <inttypes.h> 799#endif 800#ifdef HAVE_STDINT_H 801# include <stdint.h> 802#endif 803#ifdef HAVE_UNISTD_H 804# include <unistd.h> 805#endif" 806 807ac_subst_vars='am__EXEEXT_FALSE 808am__EXEEXT_TRUE 809LTLIBOBJS 810LIBOBJS 811MAKE_LINT_LIB_FALSE 812MAKE_LINT_LIB_TRUE 813LINTLIB 814LINT_FALSE 815LINT_TRUE 816LINT_FLAGS 817LINT 818XTRANS_LIBS 819XTRANS_CFLAGS 820ICE_LIBS 821ICE_CFLAGS 822OTOOL64 823OTOOL 824LIPO 825NMEDIT 826DSYMUTIL 827lt_ECHO 828RANLIB 829AR 830OBJDUMP 831LN_S 832NM 833ac_ct_DUMPBIN 834DUMPBIN 835LD 836FGREP 837LIBTOOL 838HAVE_STYLESHEETS_FALSE 839HAVE_STYLESHEETS_TRUE 840XSL_STYLESHEET 841STYLESHEET_SRCDIR 842XORG_SGML_PATH 843HAVE_FOP_FALSE 844HAVE_FOP_TRUE 845FOP 846HAVE_XMLTO_FALSE 847HAVE_XMLTO_TRUE 848HAVE_XMLTO_TEXT_FALSE 849HAVE_XMLTO_TEXT_TRUE 850XMLTO 851ENABLE_SPECS_FALSE 852ENABLE_SPECS_TRUE 853ENABLE_DOCS_FALSE 854ENABLE_DOCS_TRUE 855AM_BACKSLASH 856AM_DEFAULT_VERBOSITY 857MAN_SUBSTS 858XORG_MAN_PAGE 859ADMIN_MAN_DIR 860DRIVER_MAN_DIR 861MISC_MAN_DIR 862FILE_MAN_DIR 863LIB_MAN_DIR 864APP_MAN_DIR 865ADMIN_MAN_SUFFIX 866DRIVER_MAN_SUFFIX 867MISC_MAN_SUFFIX 868FILE_MAN_SUFFIX 869LIB_MAN_SUFFIX 870APP_MAN_SUFFIX 871SED 872host_os 873host_vendor 874host_cpu 875host 876build_os 877build_vendor 878build_cpu 879build 880INSTALL_CMD 881PKG_CONFIG 882CHANGELOG_CMD 883CWARNFLAGS 884EGREP 885GREP 886CPP 887am__fastdepCC_FALSE 888am__fastdepCC_TRUE 889CCDEPMODE 890AMDEPBACKSLASH 891AMDEP_FALSE 892AMDEP_TRUE 893am__quote 894am__include 895DEPDIR 896OBJEXT 897EXEEXT 898ac_ct_CC 899CPPFLAGS 900LDFLAGS 901CFLAGS 902CC 903MAINT 904MAINTAINER_MODE_FALSE 905MAINTAINER_MODE_TRUE 906am__untar 907am__tar 908AMTAR 909am__leading_dot 910SET_MAKE 911AWK 912mkdir_p 913MKDIR_P 914INSTALL_STRIP_PROGRAM 915STRIP 916install_sh 917MAKEINFO 918AUTOHEADER 919AUTOMAKE 920AUTOCONF 921ACLOCAL 922VERSION 923PACKAGE 924CYGPATH_W 925am__isrc 926INSTALL_DATA 927INSTALL_SCRIPT 928INSTALL_PROGRAM 929target_alias 930host_alias 931build_alias 932LIBS 933ECHO_T 934ECHO_N 935ECHO_C 936DEFS 937mandir 938localedir 939libdir 940psdir 941pdfdir 942dvidir 943htmldir 944infodir 945docdir 946oldincludedir 947includedir 948localstatedir 949sharedstatedir 950sysconfdir 951datadir 952datarootdir 953libexecdir 954sbindir 955bindir 956program_transform_name 957prefix 958exec_prefix 959PACKAGE_URL 960PACKAGE_BUGREPORT 961PACKAGE_STRING 962PACKAGE_VERSION 963PACKAGE_TARNAME 964PACKAGE_NAME 965PATH_SEPARATOR 966SHELL' 967ac_subst_files='' 968ac_user_opts=' 969enable_option_checking 970enable_maintainer_mode 971enable_dependency_tracking 972enable_strict_compilation 973enable_silent_rules 974enable_docs 975enable_specs 976with_xmlto 977with_fop 978enable_shared 979enable_static 980with_pic 981enable_fast_install 982with_gnu_ld 983enable_libtool_lock 984enable_unix_transport 985enable_tcp_transport 986enable_ipv6 987enable_local_transport 988with_lint 989enable_lint_library 990' 991 ac_precious_vars='build_alias 992host_alias 993target_alias 994CC 995CFLAGS 996LDFLAGS 997LIBS 998CPPFLAGS 999CPP 1000PKG_CONFIG 1001XMLTO 1002FOP 1003ICE_CFLAGS 1004ICE_LIBS 1005XTRANS_CFLAGS 1006XTRANS_LIBS 1007LINT 1008LINT_FLAGS' 1009 1010 1011# Initialize some variables set by options. 1012ac_init_help= 1013ac_init_version=false 1014ac_unrecognized_opts= 1015ac_unrecognized_sep= 1016# The variables have the same names as the options, with 1017# dashes changed to underlines. 1018cache_file=/dev/null 1019exec_prefix=NONE 1020no_create= 1021no_recursion= 1022prefix=NONE 1023program_prefix=NONE 1024program_suffix=NONE 1025program_transform_name=s,x,x, 1026silent= 1027site= 1028srcdir= 1029verbose= 1030x_includes=NONE 1031x_libraries=NONE 1032 1033# Installation directory options. 1034# These are left unexpanded so users can "make install exec_prefix=/foo" 1035# and all the variables that are supposed to be based on exec_prefix 1036# by default will actually change. 1037# Use braces instead of parens because sh, perl, etc. also accept them. 1038# (The list follows the same order as the GNU Coding Standards.) 1039bindir='${exec_prefix}/bin' 1040sbindir='${exec_prefix}/sbin' 1041libexecdir='${exec_prefix}/libexec' 1042datarootdir='${prefix}/share' 1043datadir='${datarootdir}' 1044sysconfdir='${prefix}/etc' 1045sharedstatedir='${prefix}/com' 1046localstatedir='${prefix}/var' 1047includedir='${prefix}/include' 1048oldincludedir='/usr/include' 1049docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1050infodir='${datarootdir}/info' 1051htmldir='${docdir}' 1052dvidir='${docdir}' 1053pdfdir='${docdir}' 1054psdir='${docdir}' 1055libdir='${exec_prefix}/lib' 1056localedir='${datarootdir}/locale' 1057mandir='${datarootdir}/man' 1058 1059ac_prev= 1060ac_dashdash= 1061for ac_option 1062do 1063 # If the previous option needs an argument, assign it. 1064 if test -n "$ac_prev"; then 1065 eval $ac_prev=\$ac_option 1066 ac_prev= 1067 continue 1068 fi 1069 1070 case $ac_option in 1071 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1072 *) ac_optarg=yes ;; 1073 esac 1074 1075 # Accept the important Cygnus configure options, so we can diagnose typos. 1076 1077 case $ac_dashdash$ac_option in 1078 --) 1079 ac_dashdash=yes ;; 1080 1081 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1082 ac_prev=bindir ;; 1083 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1084 bindir=$ac_optarg ;; 1085 1086 -build | --build | --buil | --bui | --bu) 1087 ac_prev=build_alias ;; 1088 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1089 build_alias=$ac_optarg ;; 1090 1091 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1092 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1093 ac_prev=cache_file ;; 1094 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1095 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1096 cache_file=$ac_optarg ;; 1097 1098 --config-cache | -C) 1099 cache_file=config.cache ;; 1100 1101 -datadir | --datadir | --datadi | --datad) 1102 ac_prev=datadir ;; 1103 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1104 datadir=$ac_optarg ;; 1105 1106 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1107 | --dataroo | --dataro | --datar) 1108 ac_prev=datarootdir ;; 1109 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1110 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1111 datarootdir=$ac_optarg ;; 1112 1113 -disable-* | --disable-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error "invalid feature name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"enable_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval enable_$ac_useropt=no ;; 1128 1129 -docdir | --docdir | --docdi | --doc | --do) 1130 ac_prev=docdir ;; 1131 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1132 docdir=$ac_optarg ;; 1133 1134 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1135 ac_prev=dvidir ;; 1136 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1137 dvidir=$ac_optarg ;; 1138 1139 -enable-* | --enable-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error "invalid feature name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"enable_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval enable_$ac_useropt=\$ac_optarg ;; 1154 1155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1157 | --exec | --exe | --ex) 1158 ac_prev=exec_prefix ;; 1159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1161 | --exec=* | --exe=* | --ex=*) 1162 exec_prefix=$ac_optarg ;; 1163 1164 -gas | --gas | --ga | --g) 1165 # Obsolete; use --with-gas. 1166 with_gas=yes ;; 1167 1168 -help | --help | --hel | --he | -h) 1169 ac_init_help=long ;; 1170 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1171 ac_init_help=recursive ;; 1172 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1173 ac_init_help=short ;; 1174 1175 -host | --host | --hos | --ho) 1176 ac_prev=host_alias ;; 1177 -host=* | --host=* | --hos=* | --ho=*) 1178 host_alias=$ac_optarg ;; 1179 1180 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1181 ac_prev=htmldir ;; 1182 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1183 | --ht=*) 1184 htmldir=$ac_optarg ;; 1185 1186 -includedir | --includedir | --includedi | --included | --include \ 1187 | --includ | --inclu | --incl | --inc) 1188 ac_prev=includedir ;; 1189 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1190 | --includ=* | --inclu=* | --incl=* | --inc=*) 1191 includedir=$ac_optarg ;; 1192 1193 -infodir | --infodir | --infodi | --infod | --info | --inf) 1194 ac_prev=infodir ;; 1195 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1196 infodir=$ac_optarg ;; 1197 1198 -libdir | --libdir | --libdi | --libd) 1199 ac_prev=libdir ;; 1200 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1201 libdir=$ac_optarg ;; 1202 1203 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1204 | --libexe | --libex | --libe) 1205 ac_prev=libexecdir ;; 1206 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1207 | --libexe=* | --libex=* | --libe=*) 1208 libexecdir=$ac_optarg ;; 1209 1210 -localedir | --localedir | --localedi | --localed | --locale) 1211 ac_prev=localedir ;; 1212 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1213 localedir=$ac_optarg ;; 1214 1215 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1216 | --localstate | --localstat | --localsta | --localst | --locals) 1217 ac_prev=localstatedir ;; 1218 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1219 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1220 localstatedir=$ac_optarg ;; 1221 1222 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1223 ac_prev=mandir ;; 1224 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1225 mandir=$ac_optarg ;; 1226 1227 -nfp | --nfp | --nf) 1228 # Obsolete; use --without-fp. 1229 with_fp=no ;; 1230 1231 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1232 | --no-cr | --no-c | -n) 1233 no_create=yes ;; 1234 1235 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1236 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1237 no_recursion=yes ;; 1238 1239 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1240 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1241 | --oldin | --oldi | --old | --ol | --o) 1242 ac_prev=oldincludedir ;; 1243 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1244 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1245 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1246 oldincludedir=$ac_optarg ;; 1247 1248 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1249 ac_prev=prefix ;; 1250 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1251 prefix=$ac_optarg ;; 1252 1253 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1254 | --program-pre | --program-pr | --program-p) 1255 ac_prev=program_prefix ;; 1256 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1257 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1258 program_prefix=$ac_optarg ;; 1259 1260 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1261 | --program-suf | --program-su | --program-s) 1262 ac_prev=program_suffix ;; 1263 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1264 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1265 program_suffix=$ac_optarg ;; 1266 1267 -program-transform-name | --program-transform-name \ 1268 | --program-transform-nam | --program-transform-na \ 1269 | --program-transform-n | --program-transform- \ 1270 | --program-transform | --program-transfor \ 1271 | --program-transfo | --program-transf \ 1272 | --program-trans | --program-tran \ 1273 | --progr-tra | --program-tr | --program-t) 1274 ac_prev=program_transform_name ;; 1275 -program-transform-name=* | --program-transform-name=* \ 1276 | --program-transform-nam=* | --program-transform-na=* \ 1277 | --program-transform-n=* | --program-transform-=* \ 1278 | --program-transform=* | --program-transfor=* \ 1279 | --program-transfo=* | --program-transf=* \ 1280 | --program-trans=* | --program-tran=* \ 1281 | --progr-tra=* | --program-tr=* | --program-t=*) 1282 program_transform_name=$ac_optarg ;; 1283 1284 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1285 ac_prev=pdfdir ;; 1286 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1287 pdfdir=$ac_optarg ;; 1288 1289 -psdir | --psdir | --psdi | --psd | --ps) 1290 ac_prev=psdir ;; 1291 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1292 psdir=$ac_optarg ;; 1293 1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1295 | -silent | --silent | --silen | --sile | --sil) 1296 silent=yes ;; 1297 1298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1299 ac_prev=sbindir ;; 1300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1301 | --sbi=* | --sb=*) 1302 sbindir=$ac_optarg ;; 1303 1304 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1306 | --sharedst | --shareds | --shared | --share | --shar \ 1307 | --sha | --sh) 1308 ac_prev=sharedstatedir ;; 1309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1312 | --sha=* | --sh=*) 1313 sharedstatedir=$ac_optarg ;; 1314 1315 -site | --site | --sit) 1316 ac_prev=site ;; 1317 -site=* | --site=* | --sit=*) 1318 site=$ac_optarg ;; 1319 1320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1321 ac_prev=srcdir ;; 1322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1323 srcdir=$ac_optarg ;; 1324 1325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1326 | --syscon | --sysco | --sysc | --sys | --sy) 1327 ac_prev=sysconfdir ;; 1328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1330 sysconfdir=$ac_optarg ;; 1331 1332 -target | --target | --targe | --targ | --tar | --ta | --t) 1333 ac_prev=target_alias ;; 1334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1335 target_alias=$ac_optarg ;; 1336 1337 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1338 verbose=yes ;; 1339 1340 -version | --version | --versio | --versi | --vers | -V) 1341 ac_init_version=: ;; 1342 1343 -with-* | --with-*) 1344 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1345 # Reject names that are not valid shell variable names. 1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1347 as_fn_error "invalid package name: $ac_useropt" 1348 ac_useropt_orig=$ac_useropt 1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1350 case $ac_user_opts in 1351 *" 1352"with_$ac_useropt" 1353"*) ;; 1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1355 ac_unrecognized_sep=', ';; 1356 esac 1357 eval with_$ac_useropt=\$ac_optarg ;; 1358 1359 -without-* | --without-*) 1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1361 # Reject names that are not valid shell variable names. 1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1363 as_fn_error "invalid package name: $ac_useropt" 1364 ac_useropt_orig=$ac_useropt 1365 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1366 case $ac_user_opts in 1367 *" 1368"with_$ac_useropt" 1369"*) ;; 1370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1371 ac_unrecognized_sep=', ';; 1372 esac 1373 eval with_$ac_useropt=no ;; 1374 1375 --x) 1376 # Obsolete; use --with-x. 1377 with_x=yes ;; 1378 1379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1380 | --x-incl | --x-inc | --x-in | --x-i) 1381 ac_prev=x_includes ;; 1382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1384 x_includes=$ac_optarg ;; 1385 1386 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1388 ac_prev=x_libraries ;; 1389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1391 x_libraries=$ac_optarg ;; 1392 1393 -*) as_fn_error "unrecognized option: \`$ac_option' 1394Try \`$0 --help' for more information." 1395 ;; 1396 1397 *=*) 1398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1399 # Reject names that are not valid shell variable names. 1400 case $ac_envvar in #( 1401 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1402 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1403 esac 1404 eval $ac_envvar=\$ac_optarg 1405 export $ac_envvar ;; 1406 1407 *) 1408 # FIXME: should be removed in autoconf 3.0. 1409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1412 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1413 ;; 1414 1415 esac 1416done 1417 1418if test -n "$ac_prev"; then 1419 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1420 as_fn_error "missing argument to $ac_option" 1421fi 1422 1423if test -n "$ac_unrecognized_opts"; then 1424 case $enable_option_checking in 1425 no) ;; 1426 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1428 esac 1429fi 1430 1431# Check all directory arguments for consistency. 1432for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1433 datadir sysconfdir sharedstatedir localstatedir includedir \ 1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1435 libdir localedir mandir 1436do 1437 eval ac_val=\$$ac_var 1438 # Remove trailing slashes. 1439 case $ac_val in 1440 */ ) 1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1442 eval $ac_var=\$ac_val;; 1443 esac 1444 # Be sure to have absolute directory names. 1445 case $ac_val in 1446 [\\/$]* | ?:[\\/]* ) continue;; 1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1448 esac 1449 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1450done 1451 1452# There might be people who depend on the old broken behavior: `$host' 1453# used to hold the argument of --host etc. 1454# FIXME: To remove some day. 1455build=$build_alias 1456host=$host_alias 1457target=$target_alias 1458 1459# FIXME: To remove some day. 1460if test "x$host_alias" != x; then 1461 if test "x$build_alias" = x; then 1462 cross_compiling=maybe 1463 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1464 If a cross compiler is detected then cross compile mode will be used." >&2 1465 elif test "x$build_alias" != "x$host_alias"; then 1466 cross_compiling=yes 1467 fi 1468fi 1469 1470ac_tool_prefix= 1471test -n "$host_alias" && ac_tool_prefix=$host_alias- 1472 1473test "$silent" = yes && exec 6>/dev/null 1474 1475 1476ac_pwd=`pwd` && test -n "$ac_pwd" && 1477ac_ls_di=`ls -di .` && 1478ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1479 as_fn_error "working directory cannot be determined" 1480test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1481 as_fn_error "pwd does not report name of working directory" 1482 1483 1484# Find the source files, if location was not specified. 1485if test -z "$srcdir"; then 1486 ac_srcdir_defaulted=yes 1487 # Try the directory containing this script, then the parent directory. 1488 ac_confdir=`$as_dirname -- "$as_myself" || 1489$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1490 X"$as_myself" : 'X\(//\)[^/]' \| \ 1491 X"$as_myself" : 'X\(//\)$' \| \ 1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1493$as_echo X"$as_myself" | 1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1495 s//\1/ 1496 q 1497 } 1498 /^X\(\/\/\)[^/].*/{ 1499 s//\1/ 1500 q 1501 } 1502 /^X\(\/\/\)$/{ 1503 s//\1/ 1504 q 1505 } 1506 /^X\(\/\).*/{ 1507 s//\1/ 1508 q 1509 } 1510 s/.*/./; q'` 1511 srcdir=$ac_confdir 1512 if test ! -r "$srcdir/$ac_unique_file"; then 1513 srcdir=.. 1514 fi 1515else 1516 ac_srcdir_defaulted=no 1517fi 1518if test ! -r "$srcdir/$ac_unique_file"; then 1519 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1520 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1521fi 1522ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1523ac_abs_confdir=`( 1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1525 pwd)` 1526# When building in place, set srcdir=. 1527if test "$ac_abs_confdir" = "$ac_pwd"; then 1528 srcdir=. 1529fi 1530# Remove unnecessary trailing slashes from srcdir. 1531# Double slashes in file names in object file debugging info 1532# mess up M-x gdb in Emacs. 1533case $srcdir in 1534*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1535esac 1536for ac_var in $ac_precious_vars; do 1537 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1538 eval ac_env_${ac_var}_value=\$${ac_var} 1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1540 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1541done 1542 1543# 1544# Report the --help message. 1545# 1546if test "$ac_init_help" = "long"; then 1547 # Omit some internal or obsolete options to make the list less imposing. 1548 # This message is too long to be a string in the A/UX 3.1 sh. 1549 cat <<_ACEOF 1550\`configure' configures libICE 1.0.7 to adapt to many kinds of systems. 1551 1552Usage: $0 [OPTION]... [VAR=VALUE]... 1553 1554To assign environment variables (e.g., CC, CFLAGS...), specify them as 1555VAR=VALUE. See below for descriptions of some of the useful variables. 1556 1557Defaults for the options are specified in brackets. 1558 1559Configuration: 1560 -h, --help display this help and exit 1561 --help=short display options specific to this package 1562 --help=recursive display the short help of all the included packages 1563 -V, --version display version information and exit 1564 -q, --quiet, --silent do not print \`checking...' messages 1565 --cache-file=FILE cache test results in FILE [disabled] 1566 -C, --config-cache alias for \`--cache-file=config.cache' 1567 -n, --no-create do not create output files 1568 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1569 1570Installation directories: 1571 --prefix=PREFIX install architecture-independent files in PREFIX 1572 [$ac_default_prefix] 1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1574 [PREFIX] 1575 1576By default, \`make install' will install all the files in 1577\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1578an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1579for instance \`--prefix=\$HOME'. 1580 1581For better control, use the options below. 1582 1583Fine tuning of the installation directories: 1584 --bindir=DIR user executables [EPREFIX/bin] 1585 --sbindir=DIR system admin executables [EPREFIX/sbin] 1586 --libexecdir=DIR program executables [EPREFIX/libexec] 1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1590 --libdir=DIR object code libraries [EPREFIX/lib] 1591 --includedir=DIR C header files [PREFIX/include] 1592 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1595 --infodir=DIR info documentation [DATAROOTDIR/info] 1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1597 --mandir=DIR man documentation [DATAROOTDIR/man] 1598 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE] 1599 --htmldir=DIR html documentation [DOCDIR] 1600 --dvidir=DIR dvi documentation [DOCDIR] 1601 --pdfdir=DIR pdf documentation [DOCDIR] 1602 --psdir=DIR ps documentation [DOCDIR] 1603_ACEOF 1604 1605 cat <<\_ACEOF 1606 1607Program names: 1608 --program-prefix=PREFIX prepend PREFIX to installed program names 1609 --program-suffix=SUFFIX append SUFFIX to installed program names 1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1611 1612System types: 1613 --build=BUILD configure for building on BUILD [guessed] 1614 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1615_ACEOF 1616fi 1617 1618if test -n "$ac_init_help"; then 1619 case $ac_init_help in 1620 short | recursive ) echo "Configuration of libICE 1.0.7:";; 1621 esac 1622 cat <<\_ACEOF 1623 1624Optional Features: 1625 --disable-option-checking ignore unrecognized --enable/--with options 1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1628 --enable-maintainer-mode enable make rules and dependencies not useful 1629 (and sometimes confusing) to the casual installer 1630 --disable-dependency-tracking speeds up one-time build 1631 --enable-dependency-tracking do not reject slow dependency extractors 1632 --enable-strict-compilation 1633 Enable all warnings from compiler and make them 1634 errors (default: disabled) 1635 --enable-silent-rules less verbose build output (undo: `make V=1') 1636 --disable-silent-rules verbose build output (undo: `make V=0') 1637 --enable-docs Enable building the documentation (default: yes) 1638 --enable-specs Enable building the specs (default: yes) 1639 --enable-shared[=PKGS] build shared libraries [default=yes] 1640 --enable-static[=PKGS] build static libraries [default=yes] 1641 --enable-fast-install[=PKGS] 1642 optimize for fast installation [default=yes] 1643 --disable-libtool-lock avoid locking (might break parallel builds) 1644 --enable-unix-transport Enable UNIX domain socket transport 1645 --enable-tcp-transport Enable TCP socket transport 1646 --enable-IPv6 Enable IPv6 support 1647 --enable-local-transport 1648 Enable os-specific local transport 1649 --enable-lint-library Create lint library (default: disabled) 1650 1651Optional Packages: 1652 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1653 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1654 --with-xmlto Use xmlto to regenerate documentation (default: yes, 1655 if installed) 1656 --with-fop Use fop to regenerate documentation (default: yes, 1657 if installed) 1658 --with-pic try to use only PIC/non-PIC objects [default=use 1659 both] 1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1661 --with-lint Use a lint-style source code checker (default: 1662 disabled) 1663 1664Some influential environment variables: 1665 CC C compiler command 1666 CFLAGS C compiler flags 1667 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1668 nonstandard directory <lib dir> 1669 LIBS libraries to pass to the linker, e.g. -l<library> 1670 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1671 you have headers in a nonstandard directory <include dir> 1672 CPP C preprocessor 1673 PKG_CONFIG path to pkg-config utility 1674 XMLTO Path to xmlto command 1675 FOP Path to fop command 1676 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config 1677 ICE_LIBS linker flags for ICE, overriding pkg-config 1678 XTRANS_CFLAGS 1679 C compiler flags for XTRANS, overriding pkg-config 1680 XTRANS_LIBS linker flags for XTRANS, overriding pkg-config 1681 LINT Path to a lint-style command 1682 LINT_FLAGS Flags for the lint-style command 1683 1684Use these variables to override the choices made by `configure' or to help 1685it to find libraries and programs with nonstandard names/locations. 1686 1687Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1688_ACEOF 1689ac_status=$? 1690fi 1691 1692if test "$ac_init_help" = "recursive"; then 1693 # If there are subdirs, report their specific --help. 1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1695 test -d "$ac_dir" || 1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1697 continue 1698 ac_builddir=. 1699 1700case "$ac_dir" in 1701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1702*) 1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1704 # A ".." for each directory in $ac_dir_suffix. 1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1706 case $ac_top_builddir_sub in 1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1709 esac ;; 1710esac 1711ac_abs_top_builddir=$ac_pwd 1712ac_abs_builddir=$ac_pwd$ac_dir_suffix 1713# for backward compatibility: 1714ac_top_builddir=$ac_top_build_prefix 1715 1716case $srcdir in 1717 .) # We are building in place. 1718 ac_srcdir=. 1719 ac_top_srcdir=$ac_top_builddir_sub 1720 ac_abs_top_srcdir=$ac_pwd ;; 1721 [\\/]* | ?:[\\/]* ) # Absolute name. 1722 ac_srcdir=$srcdir$ac_dir_suffix; 1723 ac_top_srcdir=$srcdir 1724 ac_abs_top_srcdir=$srcdir ;; 1725 *) # Relative name. 1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1727 ac_top_srcdir=$ac_top_build_prefix$srcdir 1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1729esac 1730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1731 1732 cd "$ac_dir" || { ac_status=$?; continue; } 1733 # Check for guested configure. 1734 if test -f "$ac_srcdir/configure.gnu"; then 1735 echo && 1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1737 elif test -f "$ac_srcdir/configure"; then 1738 echo && 1739 $SHELL "$ac_srcdir/configure" --help=recursive 1740 else 1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1742 fi || ac_status=$? 1743 cd "$ac_pwd" || { ac_status=$?; break; } 1744 done 1745fi 1746 1747test -n "$ac_init_help" && exit $ac_status 1748if $ac_init_version; then 1749 cat <<\_ACEOF 1750libICE configure 1.0.7 1751generated by GNU Autoconf 2.65 1752 1753Copyright (C) 2009 Free Software Foundation, Inc. 1754This configure script is free software; the Free Software Foundation 1755gives unlimited permission to copy, distribute and modify it. 1756_ACEOF 1757 exit 1758fi 1759 1760## ------------------------ ## 1761## Autoconf initialization. ## 1762## ------------------------ ## 1763 1764# ac_fn_c_try_compile LINENO 1765# -------------------------- 1766# Try to compile conftest.$ac_ext, and return whether this succeeded. 1767ac_fn_c_try_compile () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 rm -f conftest.$ac_objext 1771 if { { ac_try="$ac_compile" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_compile") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { 1787 test -z "$ac_c_werror_flag" || 1788 test ! -s conftest.err 1789 } && test -s conftest.$ac_objext; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_compile 1801 1802# ac_fn_c_check_decl LINENO SYMBOL VAR 1803# ------------------------------------ 1804# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1805ac_fn_c_check_decl () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1809$as_echo_n "checking whether $2 is declared... " >&6; } 1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main () 1818{ 1819#ifndef $2 1820 (void) $2; 1821#endif 1822 1823 ; 1824 return 0; 1825} 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 eval "$3=yes" 1829else 1830 eval "$3=no" 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1833fi 1834eval ac_res=\$$3 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836$as_echo "$ac_res" >&6; } 1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1838 1839} # ac_fn_c_check_decl 1840 1841# ac_fn_c_try_cpp LINENO 1842# ---------------------- 1843# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1844ac_fn_c_try_cpp () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 if { { ac_try="$ac_cpp conftest.$ac_ext" 1848case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853$as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1855 ac_status=$? 1856 if test -s conftest.err; then 1857 grep -v '^ *+' conftest.err >conftest.er1 1858 cat conftest.er1 >&5 1859 mv -f conftest.er1 conftest.err 1860 fi 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } >/dev/null && { 1863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1864 test ! -s conftest.err 1865 }; then : 1866 ac_retval=0 1867else 1868 $as_echo "$as_me: failed program was:" >&5 1869sed 's/^/| /' conftest.$ac_ext >&5 1870 1871 ac_retval=1 1872fi 1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_cpp 1877 1878# ac_fn_c_try_run LINENO 1879# ---------------------- 1880# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1881# that executables *can* be run. 1882ac_fn_c_try_run () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 if { { ac_try="$ac_link" 1886case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889esac 1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891$as_echo "$ac_try_echo"; } >&5 1892 (eval "$ac_link") 2>&5 1893 ac_status=$? 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1896 { { case "(($ac_try" in 1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1898 *) ac_try_echo=$ac_try;; 1899esac 1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1901$as_echo "$ac_try_echo"; } >&5 1902 (eval "$ac_try") 2>&5 1903 ac_status=$? 1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1905 test $ac_status = 0; }; }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: program exited with status $ac_status" >&5 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=$ac_status 1913fi 1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1916 as_fn_set_status $ac_retval 1917 1918} # ac_fn_c_try_run 1919 1920# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1921# ------------------------------------------------------- 1922# Tests whether HEADER exists and can be compiled using the include files in 1923# INCLUDES, setting the cache variable VAR accordingly. 1924ac_fn_c_check_header_compile () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928$as_echo_n "checking for $2... " >&6; } 1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935#include <$2> 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 eval "$3=yes" 1939else 1940 eval "$3=no" 1941fi 1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1943fi 1944eval ac_res=\$$3 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1946$as_echo "$ac_res" >&6; } 1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1948 1949} # ac_fn_c_check_header_compile 1950 1951# ac_fn_c_try_link LINENO 1952# ----------------------- 1953# Try to link conftest.$ac_ext, and return whether this succeeded. 1954ac_fn_c_try_link () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 rm -f conftest.$ac_objext conftest$ac_exeext 1958 if { { ac_try="$ac_link" 1959case "(($ac_try" in 1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1961 *) ac_try_echo=$ac_try;; 1962esac 1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1964$as_echo "$ac_try_echo"; } >&5 1965 (eval "$ac_link") 2>conftest.err 1966 ac_status=$? 1967 if test -s conftest.err; then 1968 grep -v '^ *+' conftest.err >conftest.er1 1969 cat conftest.er1 >&5 1970 mv -f conftest.er1 conftest.err 1971 fi 1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1973 test $ac_status = 0; } && { 1974 test -z "$ac_c_werror_flag" || 1975 test ! -s conftest.err 1976 } && test -s conftest$ac_exeext && { 1977 test "$cross_compiling" = yes || 1978 $as_test_x conftest$ac_exeext 1979 }; then : 1980 ac_retval=0 1981else 1982 $as_echo "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=1 1986fi 1987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1989 # interfere with the next link command; also delete a directory that is 1990 # left behind by Apple's compiler. We do this before executing the actions. 1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1993 as_fn_set_status $ac_retval 1994 1995} # ac_fn_c_try_link 1996 1997# ac_fn_c_check_func LINENO FUNC VAR 1998# ---------------------------------- 1999# Tests whether FUNC exists, setting the cache variable VAR accordingly 2000ac_fn_c_check_func () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2004$as_echo_n "checking for $2... " >&6; } 2005if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2006 $as_echo_n "(cached) " >&6 2007else 2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2011 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2012#define $2 innocuous_$2 2013 2014/* System header to define __stub macros and hopefully few prototypes, 2015 which can conflict with char $2 (); below. 2016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2017 <limits.h> exists even on freestanding compilers. */ 2018 2019#ifdef __STDC__ 2020# include <limits.h> 2021#else 2022# include <assert.h> 2023#endif 2024 2025#undef $2 2026 2027/* Override any GCC internal prototype to avoid an error. 2028 Use char because int might match the return type of a GCC 2029 builtin and then its argument prototype would still apply. */ 2030#ifdef __cplusplus 2031extern "C" 2032#endif 2033char $2 (); 2034/* The GNU C library defines this for functions which it implements 2035 to always fail with ENOSYS. Some functions are actually named 2036 something starting with __ and the normal name is an alias. */ 2037#if defined __stub_$2 || defined __stub___$2 2038choke me 2039#endif 2040 2041int 2042main () 2043{ 2044return $2 (); 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_link "$LINENO"; then : 2050 eval "$3=yes" 2051else 2052 eval "$3=no" 2053fi 2054rm -f core conftest.err conftest.$ac_objext \ 2055 conftest$ac_exeext conftest.$ac_ext 2056fi 2057eval ac_res=\$$3 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2059$as_echo "$ac_res" >&6; } 2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2061 2062} # ac_fn_c_check_func 2063 2064# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2065# ---------------------------------------------------- 2066# Tries to find if the field MEMBER exists in type AGGR, after including 2067# INCLUDES, setting cache variable VAR accordingly. 2068ac_fn_c_check_member () 2069{ 2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2072$as_echo_n "checking for $2.$3... " >&6; } 2073if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2074 $as_echo_n "(cached) " >&6 2075else 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078$5 2079int 2080main () 2081{ 2082static $2 ac_aggr; 2083if (ac_aggr.$3) 2084return 0; 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_compile "$LINENO"; then : 2090 eval "$4=yes" 2091else 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$5 2095int 2096main () 2097{ 2098static $2 ac_aggr; 2099if (sizeof ac_aggr.$3) 2100return 0; 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 eval "$4=yes" 2107else 2108 eval "$4=no" 2109fi 2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113fi 2114eval ac_res=\$$4 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2116$as_echo "$ac_res" >&6; } 2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2118 2119} # ac_fn_c_check_member 2120 2121# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2122# ------------------------------------------- 2123# Tests whether TYPE exists after having included INCLUDES, setting cache 2124# variable VAR accordingly. 2125ac_fn_c_check_type () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129$as_echo_n "checking for $2... " >&6; } 2130if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 eval "$3=no" 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140if (sizeof ($2)) 2141 return 0; 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$4 2150int 2151main () 2152{ 2153if (sizeof (($2))) 2154 return 0; 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_compile "$LINENO"; then : 2160 2161else 2162 eval "$3=yes" 2163fi 2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2172 2173} # ac_fn_c_check_type 2174cat >config.log <<_ACEOF 2175This file contains any messages produced by compilers while 2176running configure, to aid debugging if configure makes a mistake. 2177 2178It was created by libICE $as_me 1.0.7, which was 2179generated by GNU Autoconf 2.65. Invocation command line was 2180 2181 $ $0 $@ 2182 2183_ACEOF 2184exec 5>>config.log 2185{ 2186cat <<_ASUNAME 2187## --------- ## 2188## Platform. ## 2189## --------- ## 2190 2191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2192uname -m = `(uname -m) 2>/dev/null || echo unknown` 2193uname -r = `(uname -r) 2>/dev/null || echo unknown` 2194uname -s = `(uname -s) 2>/dev/null || echo unknown` 2195uname -v = `(uname -v) 2>/dev/null || echo unknown` 2196 2197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2199 2200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2203/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2207 2208_ASUNAME 2209 2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2211for as_dir in $PATH 2212do 2213 IFS=$as_save_IFS 2214 test -z "$as_dir" && as_dir=. 2215 $as_echo "PATH: $as_dir" 2216 done 2217IFS=$as_save_IFS 2218 2219} >&5 2220 2221cat >&5 <<_ACEOF 2222 2223 2224## ----------- ## 2225## Core tests. ## 2226## ----------- ## 2227 2228_ACEOF 2229 2230 2231# Keep a trace of the command line. 2232# Strip out --no-create and --no-recursion so they do not pile up. 2233# Strip out --silent because we don't want to record it for future runs. 2234# Also quote any args containing shell meta-characters. 2235# Make two passes to allow for proper duplicate-argument suppression. 2236ac_configure_args= 2237ac_configure_args0= 2238ac_configure_args1= 2239ac_must_keep_next=false 2240for ac_pass in 1 2 2241do 2242 for ac_arg 2243 do 2244 case $ac_arg in 2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2247 | -silent | --silent | --silen | --sile | --sil) 2248 continue ;; 2249 *\'*) 2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2251 esac 2252 case $ac_pass in 2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2254 2) 2255 as_fn_append ac_configure_args1 " '$ac_arg'" 2256 if test $ac_must_keep_next = true; then 2257 ac_must_keep_next=false # Got value, back to normal. 2258 else 2259 case $ac_arg in 2260 *=* | --config-cache | -C | -disable-* | --disable-* \ 2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2263 | -with-* | --with-* | -without-* | --without-* | --x) 2264 case "$ac_configure_args0 " in 2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2266 esac 2267 ;; 2268 -* ) ac_must_keep_next=true ;; 2269 esac 2270 fi 2271 as_fn_append ac_configure_args " '$ac_arg'" 2272 ;; 2273 esac 2274 done 2275done 2276{ ac_configure_args0=; unset ac_configure_args0;} 2277{ ac_configure_args1=; unset ac_configure_args1;} 2278 2279# When interrupted or exit'd, cleanup temporary files, and complete 2280# config.log. We remove comments because anyway the quotes in there 2281# would cause problems or look ugly. 2282# WARNING: Use '\'' to represent an apostrophe within the trap. 2283# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2284trap 'exit_status=$? 2285 # Save into config.log some information that might help in debugging. 2286 { 2287 echo 2288 2289 cat <<\_ASBOX 2290## ---------------- ## 2291## Cache variables. ## 2292## ---------------- ## 2293_ASBOX 2294 echo 2295 # The following way of writing the cache mishandles newlines in values, 2296( 2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2298 eval ac_val=\$$ac_var 2299 case $ac_val in #( 2300 *${as_nl}*) 2301 case $ac_var in #( 2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2303$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2304 esac 2305 case $ac_var in #( 2306 _ | IFS | as_nl) ;; #( 2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2308 *) { eval $ac_var=; unset $ac_var;} ;; 2309 esac ;; 2310 esac 2311 done 2312 (set) 2>&1 | 2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2314 *${as_nl}ac_space=\ *) 2315 sed -n \ 2316 "s/'\''/'\''\\\\'\'''\''/g; 2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2318 ;; #( 2319 *) 2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2321 ;; 2322 esac | 2323 sort 2324) 2325 echo 2326 2327 cat <<\_ASBOX 2328## ----------------- ## 2329## Output variables. ## 2330## ----------------- ## 2331_ASBOX 2332 echo 2333 for ac_var in $ac_subst_vars 2334 do 2335 eval ac_val=\$$ac_var 2336 case $ac_val in 2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2338 esac 2339 $as_echo "$ac_var='\''$ac_val'\''" 2340 done | sort 2341 echo 2342 2343 if test -n "$ac_subst_files"; then 2344 cat <<\_ASBOX 2345## ------------------- ## 2346## File substitutions. ## 2347## ------------------- ## 2348_ASBOX 2349 echo 2350 for ac_var in $ac_subst_files 2351 do 2352 eval ac_val=\$$ac_var 2353 case $ac_val in 2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2355 esac 2356 $as_echo "$ac_var='\''$ac_val'\''" 2357 done | sort 2358 echo 2359 fi 2360 2361 if test -s confdefs.h; then 2362 cat <<\_ASBOX 2363## ----------- ## 2364## confdefs.h. ## 2365## ----------- ## 2366_ASBOX 2367 echo 2368 cat confdefs.h 2369 echo 2370 fi 2371 test "$ac_signal" != 0 && 2372 $as_echo "$as_me: caught signal $ac_signal" 2373 $as_echo "$as_me: exit $exit_status" 2374 } >&5 2375 rm -f core *.core core.conftest.* && 2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2377 exit $exit_status 2378' 0 2379for ac_signal in 1 2 13 15; do 2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2381done 2382ac_signal=0 2383 2384# confdefs.h avoids OS command line length limits that DEFS can exceed. 2385rm -f -r conftest* confdefs.h 2386 2387$as_echo "/* confdefs.h */" > confdefs.h 2388 2389# Predefined preprocessor variables. 2390 2391cat >>confdefs.h <<_ACEOF 2392#define PACKAGE_NAME "$PACKAGE_NAME" 2393_ACEOF 2394 2395cat >>confdefs.h <<_ACEOF 2396#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2397_ACEOF 2398 2399cat >>confdefs.h <<_ACEOF 2400#define PACKAGE_VERSION "$PACKAGE_VERSION" 2401_ACEOF 2402 2403cat >>confdefs.h <<_ACEOF 2404#define PACKAGE_STRING "$PACKAGE_STRING" 2405_ACEOF 2406 2407cat >>confdefs.h <<_ACEOF 2408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2409_ACEOF 2410 2411cat >>confdefs.h <<_ACEOF 2412#define PACKAGE_URL "$PACKAGE_URL" 2413_ACEOF 2414 2415 2416# Let the site file select an alternate cache file if it wants to. 2417# Prefer an explicitly selected file to automatically selected ones. 2418ac_site_file1=NONE 2419ac_site_file2=NONE 2420if test -n "$CONFIG_SITE"; then 2421 ac_site_file1=$CONFIG_SITE 2422elif test "x$prefix" != xNONE; then 2423 ac_site_file1=$prefix/share/config.site 2424 ac_site_file2=$prefix/etc/config.site 2425else 2426 ac_site_file1=$ac_default_prefix/share/config.site 2427 ac_site_file2=$ac_default_prefix/etc/config.site 2428fi 2429for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2430do 2431 test "x$ac_site_file" = xNONE && continue 2432 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2434$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2435 sed 's/^/| /' "$ac_site_file" >&5 2436 . "$ac_site_file" 2437 fi 2438done 2439 2440if test -r "$cache_file"; then 2441 # Some versions of bash will fail to source /dev/null (special files 2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2445$as_echo "$as_me: loading cache $cache_file" >&6;} 2446 case $cache_file in 2447 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2448 *) . "./$cache_file";; 2449 esac 2450 fi 2451else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2453$as_echo "$as_me: creating cache $cache_file" >&6;} 2454 >$cache_file 2455fi 2456 2457# Check that the precious variables saved in the cache have kept the same 2458# value. 2459ac_cache_corrupted=false 2460for ac_var in $ac_precious_vars; do 2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2462 eval ac_new_set=\$ac_env_${ac_var}_set 2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2464 eval ac_new_val=\$ac_env_${ac_var}_value 2465 case $ac_old_set,$ac_new_set in 2466 set,) 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2468$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2469 ac_cache_corrupted=: ;; 2470 ,set) 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2472$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2473 ac_cache_corrupted=: ;; 2474 ,);; 2475 *) 2476 if test "x$ac_old_val" != "x$ac_new_val"; then 2477 # differences in whitespace do not lead to failure. 2478 ac_old_val_w=`echo x $ac_old_val` 2479 ac_new_val_w=`echo x $ac_new_val` 2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2482$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2483 ac_cache_corrupted=: 2484 else 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2486$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2487 eval $ac_var=\$ac_old_val 2488 fi 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2490$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2492$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2493 fi;; 2494 esac 2495 # Pass precious variables to config.status. 2496 if test "$ac_new_set" = set; then 2497 case $ac_new_val in 2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2499 *) ac_arg=$ac_var=$ac_new_val ;; 2500 esac 2501 case " $ac_configure_args " in 2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2504 esac 2505 fi 2506done 2507if $ac_cache_corrupted; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2511$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2512 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2513fi 2514## -------------------- ## 2515## Main body of script. ## 2516## -------------------- ## 2517 2518ac_ext=c 2519ac_cpp='$CPP $CPPFLAGS' 2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2522ac_compiler_gnu=$ac_cv_c_compiler_gnu 2523 2524 2525 2526 2527am__api_version='1.11' 2528 2529ac_aux_dir= 2530for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2531 for ac_t in install-sh install.sh shtool; do 2532 if test -f "$ac_dir/$ac_t"; then 2533 ac_aux_dir=$ac_dir 2534 ac_install_sh="$ac_aux_dir/$ac_t -c" 2535 break 2 2536 fi 2537 done 2538done 2539if test -z "$ac_aux_dir"; then 2540 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2541fi 2542 2543# These three variables are undocumented and unsupported, 2544# and are intended to be withdrawn in a future Autoconf release. 2545# They can cause serious problems if a builder's source tree is in a directory 2546# whose full name contains unusual characters. 2547ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2548ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2549ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2550 2551 2552# Find a good install program. We prefer a C program (faster), 2553# so one script is as good as another. But avoid the broken or 2554# incompatible versions: 2555# SysV /etc/install, /usr/sbin/install 2556# SunOS /usr/etc/install 2557# IRIX /sbin/install 2558# AIX /bin/install 2559# AmigaOS /C/install, which installs bootblocks on floppy discs 2560# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2561# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2563# OS/2's system install, which has a completely different semantic 2564# ./install, which can be erroneously created by make from ./install.sh. 2565# Reject install programs that cannot install multiple files. 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2567$as_echo_n "checking for a BSD-compatible install... " >&6; } 2568if test -z "$INSTALL"; then 2569if test "${ac_cv_path_install+set}" = set; then : 2570 $as_echo_n "(cached) " >&6 2571else 2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 # Account for people who put trailing slashes in PATH elements. 2578case $as_dir/ in #(( 2579 ./ | .// | /[cC]/* | \ 2580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2582 /usr/ucb/* ) ;; 2583 *) 2584 # OSF1 and SCO ODT 3.0 have their own names for install. 2585 # Don't use installbsd from OSF since it installs stuff as root 2586 # by default. 2587 for ac_prog in ginstall scoinst install; do 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2590 if test $ac_prog = install && 2591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2592 # AIX install. It has an incompatible calling convention. 2593 : 2594 elif test $ac_prog = install && 2595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2596 # program-specific install script used by HP pwplus--don't use. 2597 : 2598 else 2599 rm -rf conftest.one conftest.two conftest.dir 2600 echo one > conftest.one 2601 echo two > conftest.two 2602 mkdir conftest.dir 2603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2604 test -s conftest.one && test -s conftest.two && 2605 test -s conftest.dir/conftest.one && 2606 test -s conftest.dir/conftest.two 2607 then 2608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2609 break 3 2610 fi 2611 fi 2612 fi 2613 done 2614 done 2615 ;; 2616esac 2617 2618 done 2619IFS=$as_save_IFS 2620 2621rm -rf conftest.one conftest.two conftest.dir 2622 2623fi 2624 if test "${ac_cv_path_install+set}" = set; then 2625 INSTALL=$ac_cv_path_install 2626 else 2627 # As a last resort, use the slow shell script. Don't cache a 2628 # value for INSTALL within a source directory, because that will 2629 # break other packages using the cache if that directory is 2630 # removed, or if the value is a relative name. 2631 INSTALL=$ac_install_sh 2632 fi 2633fi 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2635$as_echo "$INSTALL" >&6; } 2636 2637# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2638# It thinks the first close brace ends the variable substitution. 2639test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2640 2641test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2642 2643test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2644 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2646$as_echo_n "checking whether build environment is sane... " >&6; } 2647# Just in case 2648sleep 1 2649echo timestamp > conftest.file 2650# Reject unsafe characters in $srcdir or the absolute working directory 2651# name. Accept space and tab only in the latter. 2652am_lf=' 2653' 2654case `pwd` in 2655 *[\\\"\#\$\&\'\`$am_lf]*) 2656 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2657esac 2658case $srcdir in 2659 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2660 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2661esac 2662 2663# Do `set' in a subshell so we don't clobber the current shell's 2664# arguments. Must try -L first in case configure is actually a 2665# symlink; some systems play weird games with the mod time of symlinks 2666# (eg FreeBSD returns the mod time of the symlink's containing 2667# directory). 2668if ( 2669 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2670 if test "$*" = "X"; then 2671 # -L didn't work. 2672 set X `ls -t "$srcdir/configure" conftest.file` 2673 fi 2674 rm -f conftest.file 2675 if test "$*" != "X $srcdir/configure conftest.file" \ 2676 && test "$*" != "X conftest.file $srcdir/configure"; then 2677 2678 # If neither matched, then we have a broken ls. This can happen 2679 # if, for instance, CONFIG_SHELL is bash and it inherits a 2680 # broken ls alias from the environment. This has actually 2681 # happened. Such a system could not be considered "sane". 2682 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2683alias in your environment" "$LINENO" 5 2684 fi 2685 2686 test "$2" = conftest.file 2687 ) 2688then 2689 # Ok. 2690 : 2691else 2692 as_fn_error "newly created file is older than distributed files! 2693Check your system clock" "$LINENO" 5 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2696$as_echo "yes" >&6; } 2697test "$program_prefix" != NONE && 2698 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2699# Use a double $ so make ignores it. 2700test "$program_suffix" != NONE && 2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2702# Double any \ or $. 2703# By default was `s,x,x', remove it if useless. 2704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2705program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2706 2707# expand $ac_aux_dir to an absolute path 2708am_aux_dir=`cd $ac_aux_dir && pwd` 2709 2710if test x"${MISSING+set}" != xset; then 2711 case $am_aux_dir in 2712 *\ * | *\ *) 2713 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2714 *) 2715 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2716 esac 2717fi 2718# Use eval to expand $SHELL 2719if eval "$MISSING --run true"; then 2720 am_missing_run="$MISSING --run " 2721else 2722 am_missing_run= 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2724$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2725fi 2726 2727if test x"${install_sh}" != xset; then 2728 case $am_aux_dir in 2729 *\ * | *\ *) 2730 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2731 *) 2732 install_sh="\${SHELL} $am_aux_dir/install-sh" 2733 esac 2734fi 2735 2736# Installed binaries are usually stripped using `strip' when the user 2737# run `make install-strip'. However `strip' might not be the right 2738# tool to use in cross-compilation environments, therefore Automake 2739# will honor the `STRIP' environment variable to overrule this program. 2740if test "$cross_compiling" != no; then 2741 if test -n "$ac_tool_prefix"; then 2742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2743set dummy ${ac_tool_prefix}strip; ac_word=$2 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2745$as_echo_n "checking for $ac_word... " >&6; } 2746if test "${ac_cv_prog_STRIP+set}" = set; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if test -n "$STRIP"; then 2750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2751else 2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753for as_dir in $PATH 2754do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 for ac_exec_ext in '' $ac_executable_extensions; do 2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2759 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2761 break 2 2762 fi 2763done 2764 done 2765IFS=$as_save_IFS 2766 2767fi 2768fi 2769STRIP=$ac_cv_prog_STRIP 2770if test -n "$STRIP"; then 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2772$as_echo "$STRIP" >&6; } 2773else 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775$as_echo "no" >&6; } 2776fi 2777 2778 2779fi 2780if test -z "$ac_cv_prog_STRIP"; then 2781 ac_ct_STRIP=$STRIP 2782 # Extract the first word of "strip", so it can be a program name with args. 2783set dummy strip; ac_word=$2 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$ac_ct_STRIP"; then 2790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 ac_cv_prog_ac_ct_STRIP="strip" 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804 done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2810if test -n "$ac_ct_STRIP"; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2812$as_echo "$ac_ct_STRIP" >&6; } 2813else 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 if test "x$ac_ct_STRIP" = x; then 2819 STRIP=":" 2820 else 2821 case $cross_compiling:$ac_tool_warned in 2822yes:) 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2825ac_tool_warned=yes ;; 2826esac 2827 STRIP=$ac_ct_STRIP 2828 fi 2829else 2830 STRIP="$ac_cv_prog_STRIP" 2831fi 2832 2833fi 2834INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2835 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2837$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2838if test -z "$MKDIR_P"; then 2839 if test "${ac_cv_path_mkdir+set}" = set; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_prog in mkdir gmkdir; do 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2850 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2851 'mkdir (GNU coreutils) '* | \ 2852 'mkdir (coreutils) '* | \ 2853 'mkdir (fileutils) '4.1*) 2854 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2855 break 3;; 2856 esac 2857 done 2858 done 2859 done 2860IFS=$as_save_IFS 2861 2862fi 2863 2864 test -d ./--version && rmdir ./--version 2865 if test "${ac_cv_path_mkdir+set}" = set; then 2866 MKDIR_P="$ac_cv_path_mkdir -p" 2867 else 2868 # As a last resort, use the slow shell script. Don't cache a 2869 # value for MKDIR_P within a source directory, because that will 2870 # break other packages using the cache if that directory is 2871 # removed, or if the value is a relative name. 2872 MKDIR_P="$ac_install_sh -d" 2873 fi 2874fi 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2876$as_echo "$MKDIR_P" >&6; } 2877 2878mkdir_p="$MKDIR_P" 2879case $mkdir_p in 2880 [\\/$]* | ?:[\\/]*) ;; 2881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2882esac 2883 2884for ac_prog in gawk mawk nawk awk 2885do 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2887set dummy $ac_prog; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if test "${ac_cv_prog_AWK+set}" = set; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$AWK"; then 2894 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2903 ac_cv_prog_AWK="$ac_prog" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913AWK=$ac_cv_prog_AWK 2914if test -n "$AWK"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2916$as_echo "$AWK" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 test -n "$AWK" && break 2924done 2925 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2927$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2928set x ${MAKE-make} 2929ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2930if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 cat >conftest.make <<\_ACEOF 2934SHELL = /bin/sh 2935all: 2936 @echo '@@@%%%=$(MAKE)=@@@%%%' 2937_ACEOF 2938# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2939case `${MAKE-make} -f conftest.make 2>/dev/null` in 2940 *@@@%%%=?*=@@@%%%*) 2941 eval ac_cv_prog_make_${ac_make}_set=yes;; 2942 *) 2943 eval ac_cv_prog_make_${ac_make}_set=no;; 2944esac 2945rm -f conftest.make 2946fi 2947if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2949$as_echo "yes" >&6; } 2950 SET_MAKE= 2951else 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2953$as_echo "no" >&6; } 2954 SET_MAKE="MAKE=${MAKE-make}" 2955fi 2956 2957rm -rf .tst 2>/dev/null 2958mkdir .tst 2>/dev/null 2959if test -d .tst; then 2960 am__leading_dot=. 2961else 2962 am__leading_dot=_ 2963fi 2964rmdir .tst 2>/dev/null 2965 2966if test "`cd $srcdir && pwd`" != "`pwd`"; then 2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2968 # is not polluted with repeated "-I." 2969 am__isrc=' -I$(srcdir)' 2970 # test to see if srcdir already configured 2971 if test -f $srcdir/config.status; then 2972 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2973 fi 2974fi 2975 2976# test whether we have cygpath 2977if test -z "$CYGPATH_W"; then 2978 if (cygpath --version) >/dev/null 2>/dev/null; then 2979 CYGPATH_W='cygpath -w' 2980 else 2981 CYGPATH_W=echo 2982 fi 2983fi 2984 2985 2986# Define the identity of the package. 2987 PACKAGE='libICE' 2988 VERSION='1.0.7' 2989 2990 2991cat >>confdefs.h <<_ACEOF 2992#define PACKAGE "$PACKAGE" 2993_ACEOF 2994 2995 2996cat >>confdefs.h <<_ACEOF 2997#define VERSION "$VERSION" 2998_ACEOF 2999 3000# Some tools Automake needs. 3001 3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3003 3004 3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3006 3007 3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3009 3010 3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3012 3013 3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3015 3016# We need awk for the "check" target. The system "awk" is bad on 3017# some platforms. 3018# Always define AMTAR for backward compatibility. 3019 3020AMTAR=${AMTAR-"${am_missing_run}tar"} 3021 3022am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3023 3024 3025 3026 3027 3028 3029 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3031$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3032 # Check whether --enable-maintainer-mode was given. 3033if test "${enable_maintainer_mode+set}" = set; then : 3034 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3035else 3036 USE_MAINTAINER_MODE=no 3037fi 3038 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3040$as_echo "$USE_MAINTAINER_MODE" >&6; } 3041 if test $USE_MAINTAINER_MODE = yes; then 3042 MAINTAINER_MODE_TRUE= 3043 MAINTAINER_MODE_FALSE='#' 3044else 3045 MAINTAINER_MODE_TRUE='#' 3046 MAINTAINER_MODE_FALSE= 3047fi 3048 3049 MAINT=$MAINTAINER_MODE_TRUE 3050 3051 3052ac_config_headers="$ac_config_headers config.h" 3053 3054 3055# Require xorg-macros minimum of 1.10 for DocBook XML documentation 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067DEPDIR="${am__leading_dot}deps" 3068 3069ac_config_commands="$ac_config_commands depfiles" 3070 3071 3072am_make=${MAKE-make} 3073cat > confinc << 'END' 3074am__doit: 3075 @echo this is the am__doit target 3076.PHONY: am__doit 3077END 3078# If we don't find an include directive, just comment out the code. 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3080$as_echo_n "checking for style of include used by $am_make... " >&6; } 3081am__include="#" 3082am__quote= 3083_am_result=none 3084# First try GNU make style include. 3085echo "include confinc" > confmf 3086# Ignore all kinds of additional output from `make'. 3087case `$am_make -s -f confmf 2> /dev/null` in #( 3088*the\ am__doit\ target*) 3089 am__include=include 3090 am__quote= 3091 _am_result=GNU 3092 ;; 3093esac 3094# Now try BSD make style include. 3095if test "$am__include" = "#"; then 3096 echo '.include "confinc"' > confmf 3097 case `$am_make -s -f confmf 2> /dev/null` in #( 3098 *the\ am__doit\ target*) 3099 am__include=.include 3100 am__quote="\"" 3101 _am_result=BSD 3102 ;; 3103 esac 3104fi 3105 3106 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3108$as_echo "$_am_result" >&6; } 3109rm -f confinc confmf 3110 3111# Check whether --enable-dependency-tracking was given. 3112if test "${enable_dependency_tracking+set}" = set; then : 3113 enableval=$enable_dependency_tracking; 3114fi 3115 3116if test "x$enable_dependency_tracking" != xno; then 3117 am_depcomp="$ac_aux_dir/depcomp" 3118 AMDEPBACKSLASH='\' 3119fi 3120 if test "x$enable_dependency_tracking" != xno; then 3121 AMDEP_TRUE= 3122 AMDEP_FALSE='#' 3123else 3124 AMDEP_TRUE='#' 3125 AMDEP_FALSE= 3126fi 3127 3128 3129ac_ext=c 3130ac_cpp='$CPP $CPPFLAGS' 3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3133ac_compiler_gnu=$ac_cv_c_compiler_gnu 3134if test -n "$ac_tool_prefix"; then 3135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3136set dummy ${ac_tool_prefix}gcc; ac_word=$2 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138$as_echo_n "checking for $ac_word... " >&6; } 3139if test "${ac_cv_prog_CC+set}" = set; then : 3140 $as_echo_n "(cached) " >&6 3141else 3142 if test -n "$CC"; then 3143 ac_cv_prog_CC="$CC" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3152 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3154 break 2 3155 fi 3156done 3157 done 3158IFS=$as_save_IFS 3159 3160fi 3161fi 3162CC=$ac_cv_prog_CC 3163if test -n "$CC"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3165$as_echo "$CC" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169fi 3170 3171 3172fi 3173if test -z "$ac_cv_prog_CC"; then 3174 ac_ct_CC=$CC 3175 # Extract the first word of "gcc", so it can be a program name with args. 3176set dummy gcc; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_CC"; then 3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3192 ac_cv_prog_ac_ct_CC="gcc" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_CC=$ac_cv_prog_ac_ct_CC 3203if test -n "$ac_ct_CC"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3205$as_echo "$ac_ct_CC" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222else 3223 CC="$ac_cv_prog_CC" 3224fi 3225 3226if test -z "$CC"; then 3227 if test -n "$ac_tool_prefix"; then 3228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3229set dummy ${ac_tool_prefix}cc; ac_word=$2 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231$as_echo_n "checking for $ac_word... " >&6; } 3232if test "${ac_cv_prog_CC+set}" = set; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3245 ac_cv_prog_CC="${ac_tool_prefix}cc" 3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265 fi 3266fi 3267if test -z "$CC"; then 3268 # Extract the first word of "cc", so it can be a program name with args. 3269set dummy cc; ac_word=$2 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271$as_echo_n "checking for $ac_word... " >&6; } 3272if test "${ac_cv_prog_CC+set}" = set; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -n "$CC"; then 3276 ac_cv_prog_CC="$CC" # Let the user override the test. 3277else 3278 ac_prog_rejected=no 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3287 ac_prog_rejected=yes 3288 continue 3289 fi 3290 ac_cv_prog_CC="cc" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298if test $ac_prog_rejected = yes; then 3299 # We found a bogon in the path, so make sure we never use it. 3300 set dummy $ac_cv_prog_CC 3301 shift 3302 if test $# != 0; then 3303 # We chose a different compiler from the bogus one. 3304 # However, it has the same basename, so the bogon will be chosen 3305 # first if we set CC to just the basename; use the full file name. 3306 shift 3307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3308 fi 3309fi 3310fi 3311fi 3312CC=$ac_cv_prog_CC 3313if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315$as_echo "$CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322fi 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 for ac_prog in cl.exe 3326 do 3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3328set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3330$as_echo_n "checking for $ac_word... " >&6; } 3331if test "${ac_cv_prog_CC+set}" = set; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 if test -n "$CC"; then 3335 ac_cv_prog_CC="$CC" # 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 test -z "$as_dir" && as_dir=. 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3346 break 2 3347 fi 3348done 3349 done 3350IFS=$as_save_IFS 3351 3352fi 3353fi 3354CC=$ac_cv_prog_CC 3355if test -n "$CC"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357$as_echo "$CC" >&6; } 3358else 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360$as_echo "no" >&6; } 3361fi 3362 3363 3364 test -n "$CC" && break 3365 done 3366fi 3367if test -z "$CC"; then 3368 ac_ct_CC=$CC 3369 for ac_prog in cl.exe 3370do 3371 # Extract the first word of "$ac_prog", so it can be a program name with args. 3372set dummy $ac_prog; ac_word=$2 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374$as_echo_n "checking for $ac_word... " >&6; } 3375if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 if test -n "$ac_ct_CC"; then 3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3380else 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3388 ac_cv_prog_ac_ct_CC="$ac_prog" 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398ac_ct_CC=$ac_cv_prog_ac_ct_CC 3399if test -n "$ac_ct_CC"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3401$as_echo "$ac_ct_CC" >&6; } 3402else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405fi 3406 3407 3408 test -n "$ac_ct_CC" && break 3409done 3410 3411 if test "x$ac_ct_CC" = x; then 3412 CC="" 3413 else 3414 case $cross_compiling:$ac_tool_warned in 3415yes:) 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3418ac_tool_warned=yes ;; 3419esac 3420 CC=$ac_ct_CC 3421 fi 3422fi 3423 3424fi 3425 3426 3427test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error "no acceptable C compiler found in \$PATH 3430See \`config.log' for more details." "$LINENO" 5; } 3431 3432# Provide some information about the compiler. 3433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3434set X $ac_compile 3435ac_compiler=$2 3436for ac_option in --version -v -V -qversion; do 3437 { { ac_try="$ac_compiler $ac_option >&5" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3445 ac_status=$? 3446 if test -s conftest.err; then 3447 sed '10a\ 3448... rest of stderr output deleted ... 3449 10q' conftest.err >conftest.er1 3450 cat conftest.er1 >&5 3451 fi 3452 rm -f conftest.er1 conftest.err 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; } 3455done 3456 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459 3460int 3461main () 3462{ 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468ac_clean_files_save=$ac_clean_files 3469ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3470# Try to create an executable without -o first, disregard a.out. 3471# It will help us diagnose broken compilers, and finding out an intuition 3472# of exeext. 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3474$as_echo_n "checking whether the C compiler works... " >&6; } 3475ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3476 3477# The possible output files: 3478ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3479 3480ac_rmfiles= 3481for ac_file in $ac_files 3482do 3483 case $ac_file in 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3485 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3486 esac 3487done 3488rm -f $ac_rmfiles 3489 3490if { { ac_try="$ac_link_default" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_link_default") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3502# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3503# in a Makefile. We should not override ac_cv_exeext if it was cached, 3504# so that the user can short-circuit this test for compilers unknown to 3505# Autoconf. 3506for ac_file in $ac_files '' 3507do 3508 test -f "$ac_file" || continue 3509 case $ac_file in 3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3511 ;; 3512 [ab].out ) 3513 # We found the default executable, but exeext='' is most 3514 # certainly right. 3515 break;; 3516 *.* ) 3517 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3518 then :; else 3519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3520 fi 3521 # We set ac_cv_exeext here because the later test for it is not 3522 # safe: cross compilers may not add the suffix if given an `-o' 3523 # argument, so we may need to know it at that point already. 3524 # Even if this section looks crufty: it has the advantage of 3525 # actually working. 3526 break;; 3527 * ) 3528 break;; 3529 esac 3530done 3531test "$ac_cv_exeext" = no && ac_cv_exeext= 3532 3533else 3534 ac_file='' 3535fi 3536if test -z "$ac_file"; then : 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538$as_echo "no" >&6; } 3539$as_echo "$as_me: failed program was:" >&5 3540sed 's/^/| /' conftest.$ac_ext >&5 3541 3542{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3544{ as_fn_set_status 77 3545as_fn_error "C compiler cannot create executables 3546See \`config.log' for more details." "$LINENO" 5; }; } 3547else 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3549$as_echo "yes" >&6; } 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3552$as_echo_n "checking for C compiler default output file name... " >&6; } 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3554$as_echo "$ac_file" >&6; } 3555ac_exeext=$ac_cv_exeext 3556 3557rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3558ac_clean_files=$ac_clean_files_save 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3560$as_echo_n "checking for suffix of executables... " >&6; } 3561if { { ac_try="$ac_link" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567$as_echo "$ac_try_echo"; } >&5 3568 (eval "$ac_link") 2>&5 3569 ac_status=$? 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; }; then : 3572 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3573# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3574# work properly (i.e., refer to `conftest.exe'), while it won't with 3575# `rm'. 3576for ac_file in conftest.exe conftest conftest.*; do 3577 test -f "$ac_file" || continue 3578 case $ac_file in 3579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3581 break;; 3582 * ) break;; 3583 esac 3584done 3585else 3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3588as_fn_error "cannot compute suffix of executables: cannot compile and link 3589See \`config.log' for more details." "$LINENO" 5; } 3590fi 3591rm -f conftest conftest$ac_cv_exeext 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3593$as_echo "$ac_cv_exeext" >&6; } 3594 3595rm -f conftest.$ac_ext 3596EXEEXT=$ac_cv_exeext 3597ac_exeext=$EXEEXT 3598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600#include <stdio.h> 3601int 3602main () 3603{ 3604FILE *f = fopen ("conftest.out", "w"); 3605 return ferror (f) || fclose (f) != 0; 3606 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611ac_clean_files="$ac_clean_files conftest.out" 3612# Check that the compiler produces executables we can run. If not, either 3613# the compiler is broken, or we cross compile. 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3615$as_echo_n "checking whether we are cross compiling... " >&6; } 3616if test "$cross_compiling" != yes; then 3617 { { ac_try="$ac_link" 3618case "(($ac_try" in 3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3620 *) ac_try_echo=$ac_try;; 3621esac 3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3623$as_echo "$ac_try_echo"; } >&5 3624 (eval "$ac_link") 2>&5 3625 ac_status=$? 3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3627 test $ac_status = 0; } 3628 if { ac_try='./conftest$ac_cv_exeext' 3629 { { case "(($ac_try" in 3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3631 *) ac_try_echo=$ac_try;; 3632esac 3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3634$as_echo "$ac_try_echo"; } >&5 3635 (eval "$ac_try") 2>&5 3636 ac_status=$? 3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3638 test $ac_status = 0; }; }; then 3639 cross_compiling=no 3640 else 3641 if test "$cross_compiling" = maybe; then 3642 cross_compiling=yes 3643 else 3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3646as_fn_error "cannot run C compiled programs. 3647If you meant to cross compile, use \`--host'. 3648See \`config.log' for more details." "$LINENO" 5; } 3649 fi 3650 fi 3651fi 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3653$as_echo "$cross_compiling" >&6; } 3654 3655rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3656ac_clean_files=$ac_clean_files_save 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3658$as_echo_n "checking for suffix of object files... " >&6; } 3659if test "${ac_cv_objext+set}" = set; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664 3665int 3666main () 3667{ 3668 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673rm -f conftest.o conftest.obj 3674if { { ac_try="$ac_compile" 3675case "(($ac_try" in 3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3677 *) ac_try_echo=$ac_try;; 3678esac 3679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3680$as_echo "$ac_try_echo"; } >&5 3681 (eval "$ac_compile") 2>&5 3682 ac_status=$? 3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3684 test $ac_status = 0; }; then : 3685 for ac_file in conftest.o conftest.obj conftest.*; do 3686 test -f "$ac_file" || continue; 3687 case $ac_file in 3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3690 break;; 3691 esac 3692done 3693else 3694 $as_echo "$as_me: failed program was:" >&5 3695sed 's/^/| /' conftest.$ac_ext >&5 3696 3697{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3699as_fn_error "cannot compute suffix of object files: cannot compile 3700See \`config.log' for more details." "$LINENO" 5; } 3701fi 3702rm -f conftest.$ac_cv_objext conftest.$ac_ext 3703fi 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3705$as_echo "$ac_cv_objext" >&6; } 3706OBJEXT=$ac_cv_objext 3707ac_objext=$OBJEXT 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3709$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3710if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3714/* end confdefs.h. */ 3715 3716int 3717main () 3718{ 3719#ifndef __GNUC__ 3720 choke me 3721#endif 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727if ac_fn_c_try_compile "$LINENO"; then : 3728 ac_compiler_gnu=yes 3729else 3730 ac_compiler_gnu=no 3731fi 3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3733ac_cv_c_compiler_gnu=$ac_compiler_gnu 3734 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3737$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3738if test $ac_compiler_gnu = yes; then 3739 GCC=yes 3740else 3741 GCC= 3742fi 3743ac_test_CFLAGS=${CFLAGS+set} 3744ac_save_CFLAGS=$CFLAGS 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3746$as_echo_n "checking whether $CC accepts -g... " >&6; } 3747if test "${ac_cv_prog_cc_g+set}" = set; then : 3748 $as_echo_n "(cached) " >&6 3749else 3750 ac_save_c_werror_flag=$ac_c_werror_flag 3751 ac_c_werror_flag=yes 3752 ac_cv_prog_cc_g=no 3753 CFLAGS="-g" 3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3755/* end confdefs.h. */ 3756 3757int 3758main () 3759{ 3760 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765if ac_fn_c_try_compile "$LINENO"; then : 3766 ac_cv_prog_cc_g=yes 3767else 3768 CFLAGS="" 3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771 3772int 3773main () 3774{ 3775 3776 ; 3777 return 0; 3778} 3779_ACEOF 3780if ac_fn_c_try_compile "$LINENO"; then : 3781 3782else 3783 ac_c_werror_flag=$ac_save_c_werror_flag 3784 CFLAGS="-g" 3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787 3788int 3789main () 3790{ 3791 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796if ac_fn_c_try_compile "$LINENO"; then : 3797 ac_cv_prog_cc_g=yes 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800fi 3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3802fi 3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3804 ac_c_werror_flag=$ac_save_c_werror_flag 3805fi 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3807$as_echo "$ac_cv_prog_cc_g" >&6; } 3808if test "$ac_test_CFLAGS" = set; then 3809 CFLAGS=$ac_save_CFLAGS 3810elif test $ac_cv_prog_cc_g = yes; then 3811 if test "$GCC" = yes; then 3812 CFLAGS="-g -O2" 3813 else 3814 CFLAGS="-g" 3815 fi 3816else 3817 if test "$GCC" = yes; then 3818 CFLAGS="-O2" 3819 else 3820 CFLAGS= 3821 fi 3822fi 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3824$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3825if test "${ac_cv_prog_cc_c89+set}" = set; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 ac_cv_prog_cc_c89=no 3829ac_save_CC=$CC 3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832#include <stdarg.h> 3833#include <stdio.h> 3834#include <sys/types.h> 3835#include <sys/stat.h> 3836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3837struct buf { int x; }; 3838FILE * (*rcsopen) (struct buf *, struct stat *, int); 3839static char *e (p, i) 3840 char **p; 3841 int i; 3842{ 3843 return p[i]; 3844} 3845static char *f (char * (*g) (char **, int), char **p, ...) 3846{ 3847 char *s; 3848 va_list v; 3849 va_start (v,p); 3850 s = g (p, va_arg (v,int)); 3851 va_end (v); 3852 return s; 3853} 3854 3855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3856 function prototypes and stuff, but not '\xHH' hex character constants. 3857 These don't provoke an error unfortunately, instead are silently treated 3858 as 'x'. The following induces an error, until -std is added to get 3859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3860 array size at least. It's necessary to write '\x00'==0 to get something 3861 that's true only with -std. */ 3862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3863 3864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3865 inside strings and character constants. */ 3866#define FOO(x) 'x' 3867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3868 3869int test (int i, double x); 3870struct s1 {int (*f) (int a);}; 3871struct s2 {int (*f) (double a);}; 3872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3873int argc; 3874char **argv; 3875int 3876main () 3877{ 3878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3885do 3886 CC="$ac_save_CC $ac_arg" 3887 if ac_fn_c_try_compile "$LINENO"; then : 3888 ac_cv_prog_cc_c89=$ac_arg 3889fi 3890rm -f core conftest.err conftest.$ac_objext 3891 test "x$ac_cv_prog_cc_c89" != "xno" && break 3892done 3893rm -f conftest.$ac_ext 3894CC=$ac_save_CC 3895 3896fi 3897# AC_CACHE_VAL 3898case "x$ac_cv_prog_cc_c89" in 3899 x) 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3901$as_echo "none needed" >&6; } ;; 3902 xno) 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3904$as_echo "unsupported" >&6; } ;; 3905 *) 3906 CC="$CC $ac_cv_prog_cc_c89" 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3908$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3909esac 3910if test "x$ac_cv_prog_cc_c89" != xno; then : 3911 3912fi 3913 3914ac_ext=c 3915ac_cpp='$CPP $CPPFLAGS' 3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3918ac_compiler_gnu=$ac_cv_c_compiler_gnu 3919 3920depcc="$CC" am_compiler_list= 3921 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3923$as_echo_n "checking dependency style of $depcc... " >&6; } 3924if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3928 # We make a subdir and do the tests there. Otherwise we can end up 3929 # making bogus files that we don't know about and never remove. For 3930 # instance it was reported that on HP-UX the gcc test will end up 3931 # making a dummy file named `D' -- because `-MD' means `put the output 3932 # in D'. 3933 mkdir conftest.dir 3934 # Copy depcomp to subdir because otherwise we won't find it if we're 3935 # using a relative directory. 3936 cp "$am_depcomp" conftest.dir 3937 cd conftest.dir 3938 # We will build objects and dependencies in a subdirectory because 3939 # it helps to detect inapplicable dependency modes. For instance 3940 # both Tru64's cc and ICC support -MD to output dependencies as a 3941 # side effect of compilation, but ICC will put the dependencies in 3942 # the current directory while Tru64 will put them in the object 3943 # directory. 3944 mkdir sub 3945 3946 am_cv_CC_dependencies_compiler_type=none 3947 if test "$am_compiler_list" = ""; then 3948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3949 fi 3950 am__universal=false 3951 case " $depcc " in #( 3952 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3953 esac 3954 3955 for depmode in $am_compiler_list; do 3956 # Setup a source with many dependencies, because some compilers 3957 # like to wrap large dependency lists on column 80 (with \), and 3958 # we should not choose a depcomp mode which is confused by this. 3959 # 3960 # We need to recreate these files for each test, as the compiler may 3961 # overwrite some of them when testing with obscure command lines. 3962 # This happens at least with the AIX C compiler. 3963 : > sub/conftest.c 3964 for i in 1 2 3 4 5 6; do 3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3967 # Solaris 8's {/usr,}/bin/sh. 3968 touch sub/conftst$i.h 3969 done 3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3971 3972 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3973 # mode. It turns out that the SunPro C++ compiler does not properly 3974 # handle `-M -o', and we need to detect this. Also, some Intel 3975 # versions had trouble with output in subdirs 3976 am__obj=sub/conftest.${OBJEXT-o} 3977 am__minus_obj="-o $am__obj" 3978 case $depmode in 3979 gcc) 3980 # This depmode causes a compiler race in universal mode. 3981 test "$am__universal" = false || continue 3982 ;; 3983 nosideeffect) 3984 # after this tag, mechanisms are not by side-effect, so they'll 3985 # only be used when explicitly requested 3986 if test "x$enable_dependency_tracking" = xyes; then 3987 continue 3988 else 3989 break 3990 fi 3991 ;; 3992 msvisualcpp | msvcmsys) 3993 # This compiler won't grok `-c -o', but also, the minuso test has 3994 # not run yet. These depmodes are late enough in the game, and 3995 # so weak that their functioning should not be impacted. 3996 am__obj=conftest.${OBJEXT-o} 3997 am__minus_obj= 3998 ;; 3999 none) break ;; 4000 esac 4001 if depmode=$depmode \ 4002 source=sub/conftest.c object=$am__obj \ 4003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4005 >/dev/null 2>conftest.err && 4006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4010 # icc doesn't choke on unknown options, it will just issue warnings 4011 # or remarks (even with -Werror). So we grep stderr for any message 4012 # that says an option was ignored or not supported. 4013 # When given -MP, icc 7.0 and 7.1 complain thusly: 4014 # icc: Command line warning: ignoring option '-M'; no argument required 4015 # The diagnosis changed in icc 8.0: 4016 # icc: Command line remark: option '-MP' not supported 4017 if (grep 'ignoring option' conftest.err || 4018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4019 am_cv_CC_dependencies_compiler_type=$depmode 4020 break 4021 fi 4022 fi 4023 done 4024 4025 cd .. 4026 rm -rf conftest.dir 4027else 4028 am_cv_CC_dependencies_compiler_type=none 4029fi 4030 4031fi 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4033$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4034CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4035 4036 if 4037 test "x$enable_dependency_tracking" != xno \ 4038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4039 am__fastdepCC_TRUE= 4040 am__fastdepCC_FALSE='#' 4041else 4042 am__fastdepCC_TRUE='#' 4043 am__fastdepCC_FALSE= 4044fi 4045 4046 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4048$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4049if test "${ac_cv_prog_cc_c99+set}" = set; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 ac_cv_prog_cc_c99=no 4053ac_save_CC=$CC 4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <stdarg.h> 4057#include <stdbool.h> 4058#include <stdlib.h> 4059#include <wchar.h> 4060#include <stdio.h> 4061 4062// Check varargs macros. These examples are taken from C99 6.10.3.5. 4063#define debug(...) fprintf (stderr, __VA_ARGS__) 4064#define showlist(...) puts (#__VA_ARGS__) 4065#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4066static void 4067test_varargs_macros (void) 4068{ 4069 int x = 1234; 4070 int y = 5678; 4071 debug ("Flag"); 4072 debug ("X = %d\n", x); 4073 showlist (The first, second, and third items.); 4074 report (x>y, "x is %d but y is %d", x, y); 4075} 4076 4077// Check long long types. 4078#define BIG64 18446744073709551615ull 4079#define BIG32 4294967295ul 4080#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4081#if !BIG_OK 4082 your preprocessor is broken; 4083#endif 4084#if BIG_OK 4085#else 4086 your preprocessor is broken; 4087#endif 4088static long long int bignum = -9223372036854775807LL; 4089static unsigned long long int ubignum = BIG64; 4090 4091struct incomplete_array 4092{ 4093 int datasize; 4094 double data[]; 4095}; 4096 4097struct named_init { 4098 int number; 4099 const wchar_t *name; 4100 double average; 4101}; 4102 4103typedef const char *ccp; 4104 4105static inline int 4106test_restrict (ccp restrict text) 4107{ 4108 // See if C++-style comments work. 4109 // Iterate through items via the restricted pointer. 4110 // Also check for declarations in for loops. 4111 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4112 continue; 4113 return 0; 4114} 4115 4116// Check varargs and va_copy. 4117static void 4118test_varargs (const char *format, ...) 4119{ 4120 va_list args; 4121 va_start (args, format); 4122 va_list args_copy; 4123 va_copy (args_copy, args); 4124 4125 const char *str; 4126 int number; 4127 float fnumber; 4128 4129 while (*format) 4130 { 4131 switch (*format++) 4132 { 4133 case 's': // string 4134 str = va_arg (args_copy, const char *); 4135 break; 4136 case 'd': // int 4137 number = va_arg (args_copy, int); 4138 break; 4139 case 'f': // float 4140 fnumber = va_arg (args_copy, double); 4141 break; 4142 default: 4143 break; 4144 } 4145 } 4146 va_end (args_copy); 4147 va_end (args); 4148} 4149 4150int 4151main () 4152{ 4153 4154 // Check bool. 4155 _Bool success = false; 4156 4157 // Check restrict. 4158 if (test_restrict ("String literal") == 0) 4159 success = true; 4160 char *restrict newvar = "Another string"; 4161 4162 // Check varargs. 4163 test_varargs ("s, d' f .", "string", 65, 34.234); 4164 test_varargs_macros (); 4165 4166 // Check flexible array members. 4167 struct incomplete_array *ia = 4168 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4169 ia->datasize = 10; 4170 for (int i = 0; i < ia->datasize; ++i) 4171 ia->data[i] = i * 1.234; 4172 4173 // Check named initializers. 4174 struct named_init ni = { 4175 .number = 34, 4176 .name = L"Test wide string", 4177 .average = 543.34343, 4178 }; 4179 4180 ni.number = 58; 4181 4182 int dynamic_array[ni.number]; 4183 dynamic_array[ni.number - 1] = 543; 4184 4185 // work around unused variable warnings 4186 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4187 || dynamic_array[ni.number - 1] != 543); 4188 4189 ; 4190 return 0; 4191} 4192_ACEOF 4193for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4194do 4195 CC="$ac_save_CC $ac_arg" 4196 if ac_fn_c_try_compile "$LINENO"; then : 4197 ac_cv_prog_cc_c99=$ac_arg 4198fi 4199rm -f core conftest.err conftest.$ac_objext 4200 test "x$ac_cv_prog_cc_c99" != "xno" && break 4201done 4202rm -f conftest.$ac_ext 4203CC=$ac_save_CC 4204 4205fi 4206# AC_CACHE_VAL 4207case "x$ac_cv_prog_cc_c99" in 4208 x) 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4210$as_echo "none needed" >&6; } ;; 4211 xno) 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4213$as_echo "unsupported" >&6; } ;; 4214 *) 4215 CC="$CC $ac_cv_prog_cc_c99" 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4217$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4218esac 4219if test "x$ac_cv_prog_cc_c99" != xno; then : 4220 4221fi 4222 4223 4224 4225ac_ext=c 4226ac_cpp='$CPP $CPPFLAGS' 4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4229ac_compiler_gnu=$ac_cv_c_compiler_gnu 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4231$as_echo_n "checking how to run the C preprocessor... " >&6; } 4232# On Suns, sometimes $CPP names a directory. 4233if test -n "$CPP" && test -d "$CPP"; then 4234 CPP= 4235fi 4236if test -z "$CPP"; then 4237 if test "${ac_cv_prog_CPP+set}" = set; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 # Double quotes because CPP needs to be expanded 4241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4242 do 4243 ac_preproc_ok=false 4244for ac_c_preproc_warn_flag in '' yes 4245do 4246 # Use a header file that comes with gcc, so configuring glibc 4247 # with a fresh cross-compiler works. 4248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4249 # <limits.h> exists even on freestanding compilers. 4250 # On the NeXT, cc -E runs the code through the compiler's parser, 4251 # not just through cpp. "Syntax error" is here to catch this case. 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254#ifdef __STDC__ 4255# include <limits.h> 4256#else 4257# include <assert.h> 4258#endif 4259 Syntax error 4260_ACEOF 4261if ac_fn_c_try_cpp "$LINENO"; then : 4262 4263else 4264 # Broken: fails on valid input. 4265continue 4266fi 4267rm -f conftest.err conftest.$ac_ext 4268 4269 # OK, works on sane cases. Now check whether nonexistent headers 4270 # can be detected and how. 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273#include <ac_nonexistent.h> 4274_ACEOF 4275if ac_fn_c_try_cpp "$LINENO"; then : 4276 # Broken: success on invalid input. 4277continue 4278else 4279 # Passes both tests. 4280ac_preproc_ok=: 4281break 4282fi 4283rm -f conftest.err conftest.$ac_ext 4284 4285done 4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4287rm -f conftest.err conftest.$ac_ext 4288if $ac_preproc_ok; then : 4289 break 4290fi 4291 4292 done 4293 ac_cv_prog_CPP=$CPP 4294 4295fi 4296 CPP=$ac_cv_prog_CPP 4297else 4298 ac_cv_prog_CPP=$CPP 4299fi 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4301$as_echo "$CPP" >&6; } 4302ac_preproc_ok=false 4303for ac_c_preproc_warn_flag in '' yes 4304do 4305 # Use a header file that comes with gcc, so configuring glibc 4306 # with a fresh cross-compiler works. 4307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4308 # <limits.h> exists even on freestanding compilers. 4309 # On the NeXT, cc -E runs the code through the compiler's parser, 4310 # not just through cpp. "Syntax error" is here to catch this case. 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#ifdef __STDC__ 4314# include <limits.h> 4315#else 4316# include <assert.h> 4317#endif 4318 Syntax error 4319_ACEOF 4320if ac_fn_c_try_cpp "$LINENO"; then : 4321 4322else 4323 # Broken: fails on valid input. 4324continue 4325fi 4326rm -f conftest.err conftest.$ac_ext 4327 4328 # OK, works on sane cases. Now check whether nonexistent headers 4329 # can be detected and how. 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4331/* end confdefs.h. */ 4332#include <ac_nonexistent.h> 4333_ACEOF 4334if ac_fn_c_try_cpp "$LINENO"; then : 4335 # Broken: success on invalid input. 4336continue 4337else 4338 # Passes both tests. 4339ac_preproc_ok=: 4340break 4341fi 4342rm -f conftest.err conftest.$ac_ext 4343 4344done 4345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4346rm -f conftest.err conftest.$ac_ext 4347if $ac_preproc_ok; then : 4348 4349else 4350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4352as_fn_error "C preprocessor \"$CPP\" fails sanity check 4353See \`config.log' for more details." "$LINENO" 5; } 4354fi 4355 4356ac_ext=c 4357ac_cpp='$CPP $CPPFLAGS' 4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4360ac_compiler_gnu=$ac_cv_c_compiler_gnu 4361 4362 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4364$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4365if test "${ac_cv_path_GREP+set}" = set; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 if test -z "$GREP"; then 4369 ac_path_GREP_found=false 4370 # Loop through the user's path and test for each of PROGNAME-LIST 4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4372for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4373do 4374 IFS=$as_save_IFS 4375 test -z "$as_dir" && as_dir=. 4376 for ac_prog in grep ggrep; do 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4379 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4380# Check for GNU ac_path_GREP and select it if it is found. 4381 # Check for GNU $ac_path_GREP 4382case `"$ac_path_GREP" --version 2>&1` in 4383*GNU*) 4384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4385*) 4386 ac_count=0 4387 $as_echo_n 0123456789 >"conftest.in" 4388 while : 4389 do 4390 cat "conftest.in" "conftest.in" >"conftest.tmp" 4391 mv "conftest.tmp" "conftest.in" 4392 cp "conftest.in" "conftest.nl" 4393 $as_echo 'GREP' >> "conftest.nl" 4394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4396 as_fn_arith $ac_count + 1 && ac_count=$as_val 4397 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4398 # Best one so far, save it but keep looking for a better one 4399 ac_cv_path_GREP="$ac_path_GREP" 4400 ac_path_GREP_max=$ac_count 4401 fi 4402 # 10*(2^10) chars as input seems more than enough 4403 test $ac_count -gt 10 && break 4404 done 4405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4406esac 4407 4408 $ac_path_GREP_found && break 3 4409 done 4410 done 4411 done 4412IFS=$as_save_IFS 4413 if test -z "$ac_cv_path_GREP"; then 4414 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4415 fi 4416else 4417 ac_cv_path_GREP=$GREP 4418fi 4419 4420fi 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4422$as_echo "$ac_cv_path_GREP" >&6; } 4423 GREP="$ac_cv_path_GREP" 4424 4425 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4427$as_echo_n "checking for egrep... " >&6; } 4428if test "${ac_cv_path_EGREP+set}" = set; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4432 then ac_cv_path_EGREP="$GREP -E" 4433 else 4434 if test -z "$EGREP"; then 4435 ac_path_EGREP_found=false 4436 # Loop through the user's path and test for each of PROGNAME-LIST 4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4439do 4440 IFS=$as_save_IFS 4441 test -z "$as_dir" && as_dir=. 4442 for ac_prog in egrep; do 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4445 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4446# Check for GNU ac_path_EGREP and select it if it is found. 4447 # Check for GNU $ac_path_EGREP 4448case `"$ac_path_EGREP" --version 2>&1` in 4449*GNU*) 4450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4451*) 4452 ac_count=0 4453 $as_echo_n 0123456789 >"conftest.in" 4454 while : 4455 do 4456 cat "conftest.in" "conftest.in" >"conftest.tmp" 4457 mv "conftest.tmp" "conftest.in" 4458 cp "conftest.in" "conftest.nl" 4459 $as_echo 'EGREP' >> "conftest.nl" 4460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4462 as_fn_arith $ac_count + 1 && ac_count=$as_val 4463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4464 # Best one so far, save it but keep looking for a better one 4465 ac_cv_path_EGREP="$ac_path_EGREP" 4466 ac_path_EGREP_max=$ac_count 4467 fi 4468 # 10*(2^10) chars as input seems more than enough 4469 test $ac_count -gt 10 && break 4470 done 4471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4472esac 4473 4474 $ac_path_EGREP_found && break 3 4475 done 4476 done 4477 done 4478IFS=$as_save_IFS 4479 if test -z "$ac_cv_path_EGREP"; then 4480 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4481 fi 4482else 4483 ac_cv_path_EGREP=$EGREP 4484fi 4485 4486 fi 4487fi 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4489$as_echo "$ac_cv_path_EGREP" >&6; } 4490 EGREP="$ac_cv_path_EGREP" 4491 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4494$as_echo_n "checking for ANSI C header files... " >&6; } 4495if test "${ac_cv_header_stdc+set}" = set; then : 4496 $as_echo_n "(cached) " >&6 4497else 4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4499/* end confdefs.h. */ 4500#include <stdlib.h> 4501#include <stdarg.h> 4502#include <string.h> 4503#include <float.h> 4504 4505int 4506main () 4507{ 4508 4509 ; 4510 return 0; 4511} 4512_ACEOF 4513if ac_fn_c_try_compile "$LINENO"; then : 4514 ac_cv_header_stdc=yes 4515else 4516 ac_cv_header_stdc=no 4517fi 4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4519 4520if test $ac_cv_header_stdc = yes; then 4521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523/* end confdefs.h. */ 4524#include <string.h> 4525 4526_ACEOF 4527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4528 $EGREP "memchr" >/dev/null 2>&1; then : 4529 4530else 4531 ac_cv_header_stdc=no 4532fi 4533rm -f conftest* 4534 4535fi 4536 4537if test $ac_cv_header_stdc = yes; then 4538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4540/* end confdefs.h. */ 4541#include <stdlib.h> 4542 4543_ACEOF 4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4545 $EGREP "free" >/dev/null 2>&1; then : 4546 4547else 4548 ac_cv_header_stdc=no 4549fi 4550rm -f conftest* 4551 4552fi 4553 4554if test $ac_cv_header_stdc = yes; then 4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4556 if test "$cross_compiling" = yes; then : 4557 : 4558else 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561#include <ctype.h> 4562#include <stdlib.h> 4563#if ((' ' & 0x0FF) == 0x020) 4564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4566#else 4567# define ISLOWER(c) \ 4568 (('a' <= (c) && (c) <= 'i') \ 4569 || ('j' <= (c) && (c) <= 'r') \ 4570 || ('s' <= (c) && (c) <= 'z')) 4571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4572#endif 4573 4574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4575int 4576main () 4577{ 4578 int i; 4579 for (i = 0; i < 256; i++) 4580 if (XOR (islower (i), ISLOWER (i)) 4581 || toupper (i) != TOUPPER (i)) 4582 return 2; 4583 return 0; 4584} 4585_ACEOF 4586if ac_fn_c_try_run "$LINENO"; then : 4587 4588else 4589 ac_cv_header_stdc=no 4590fi 4591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4592 conftest.$ac_objext conftest.beam conftest.$ac_ext 4593fi 4594 4595fi 4596fi 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4598$as_echo "$ac_cv_header_stdc" >&6; } 4599if test $ac_cv_header_stdc = yes; then 4600 4601$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4602 4603fi 4604 4605# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4607 inttypes.h stdint.h unistd.h 4608do : 4609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4611" 4612eval as_val=\$$as_ac_Header 4613 if test "x$as_val" = x""yes; then : 4614 cat >>confdefs.h <<_ACEOF 4615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4616_ACEOF 4617 4618fi 4619 4620done 4621 4622 4623 4624 4625if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4626 if test -n "$ac_tool_prefix"; then 4627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4628set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630$as_echo_n "checking for $ac_word... " >&6; } 4631if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 case $PKG_CONFIG in 4635 [\\/]* | ?:[\\/]*) 4636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4637 ;; 4638 *) 4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4640for as_dir in $PATH 4641do 4642 IFS=$as_save_IFS 4643 test -z "$as_dir" && as_dir=. 4644 for ac_exec_ext in '' $ac_executable_extensions; do 4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4648 break 2 4649 fi 4650done 4651 done 4652IFS=$as_save_IFS 4653 4654 ;; 4655esac 4656fi 4657PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4658if test -n "$PKG_CONFIG"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4660$as_echo "$PKG_CONFIG" >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663$as_echo "no" >&6; } 4664fi 4665 4666 4667fi 4668if test -z "$ac_cv_path_PKG_CONFIG"; then 4669 ac_pt_PKG_CONFIG=$PKG_CONFIG 4670 # Extract the first word of "pkg-config", so it can be a program name with args. 4671set dummy pkg-config; ac_word=$2 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4673$as_echo_n "checking for $ac_word... " >&6; } 4674if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4675 $as_echo_n "(cached) " >&6 4676else 4677 case $ac_pt_PKG_CONFIG in 4678 [\\/]* | ?:[\\/]*) 4679 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4680 ;; 4681 *) 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4683for as_dir in $PATH 4684do 4685 IFS=$as_save_IFS 4686 test -z "$as_dir" && as_dir=. 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4689 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693done 4694 done 4695IFS=$as_save_IFS 4696 4697 ;; 4698esac 4699fi 4700ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4701if test -n "$ac_pt_PKG_CONFIG"; then 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4703$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4704else 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706$as_echo "no" >&6; } 4707fi 4708 4709 if test "x$ac_pt_PKG_CONFIG" = x; then 4710 PKG_CONFIG="" 4711 else 4712 case $cross_compiling:$ac_tool_warned in 4713yes:) 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4716ac_tool_warned=yes ;; 4717esac 4718 PKG_CONFIG=$ac_pt_PKG_CONFIG 4719 fi 4720else 4721 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4722fi 4723 4724fi 4725if test -n "$PKG_CONFIG"; then 4726 _pkg_min_version=0.9.0 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4728$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4729 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4731$as_echo "yes" >&6; } 4732 else 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4734$as_echo "no" >&6; } 4735 PKG_CONFIG="" 4736 fi 4737 4738fi 4739# Make sure we can run config.sub. 4740$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4741 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4742 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4744$as_echo_n "checking build system type... " >&6; } 4745if test "${ac_cv_build+set}" = set; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 ac_build_alias=$build_alias 4749test "x$ac_build_alias" = x && 4750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4751test "x$ac_build_alias" = x && 4752 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4754 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4755 4756fi 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4758$as_echo "$ac_cv_build" >&6; } 4759case $ac_cv_build in 4760*-*-*) ;; 4761*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4762esac 4763build=$ac_cv_build 4764ac_save_IFS=$IFS; IFS='-' 4765set x $ac_cv_build 4766shift 4767build_cpu=$1 4768build_vendor=$2 4769shift; shift 4770# Remember, the first character of IFS is used to create $*, 4771# except with old shells: 4772build_os=$* 4773IFS=$ac_save_IFS 4774case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4775 4776 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4778$as_echo_n "checking host system type... " >&6; } 4779if test "${ac_cv_host+set}" = set; then : 4780 $as_echo_n "(cached) " >&6 4781else 4782 if test "x$host_alias" = x; then 4783 ac_cv_host=$ac_cv_build 4784else 4785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4786 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4787fi 4788 4789fi 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4791$as_echo "$ac_cv_host" >&6; } 4792case $ac_cv_host in 4793*-*-*) ;; 4794*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4795esac 4796host=$ac_cv_host 4797ac_save_IFS=$IFS; IFS='-' 4798set x $ac_cv_host 4799shift 4800host_cpu=$1 4801host_vendor=$2 4802shift; shift 4803# Remember, the first character of IFS is used to create $*, 4804# except with old shells: 4805host_os=$* 4806IFS=$ac_save_IFS 4807case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4808 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4811$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4812if test "${ac_cv_path_SED+set}" = set; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4816 for ac_i in 1 2 3 4 5 6 7; do 4817 ac_script="$ac_script$as_nl$ac_script" 4818 done 4819 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4820 { ac_script=; unset ac_script;} 4821 if test -z "$SED"; then 4822 ac_path_SED_found=false 4823 # Loop through the user's path and test for each of PROGNAME-LIST 4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4825for as_dir in $PATH 4826do 4827 IFS=$as_save_IFS 4828 test -z "$as_dir" && as_dir=. 4829 for ac_prog in sed gsed; do 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4832 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4833# Check for GNU ac_path_SED and select it if it is found. 4834 # Check for GNU $ac_path_SED 4835case `"$ac_path_SED" --version 2>&1` in 4836*GNU*) 4837 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4838*) 4839 ac_count=0 4840 $as_echo_n 0123456789 >"conftest.in" 4841 while : 4842 do 4843 cat "conftest.in" "conftest.in" >"conftest.tmp" 4844 mv "conftest.tmp" "conftest.in" 4845 cp "conftest.in" "conftest.nl" 4846 $as_echo '' >> "conftest.nl" 4847 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4849 as_fn_arith $ac_count + 1 && ac_count=$as_val 4850 if test $ac_count -gt ${ac_path_SED_max-0}; then 4851 # Best one so far, save it but keep looking for a better one 4852 ac_cv_path_SED="$ac_path_SED" 4853 ac_path_SED_max=$ac_count 4854 fi 4855 # 10*(2^10) chars as input seems more than enough 4856 test $ac_count -gt 10 && break 4857 done 4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4859esac 4860 4861 $ac_path_SED_found && break 3 4862 done 4863 done 4864 done 4865IFS=$as_save_IFS 4866 if test -z "$ac_cv_path_SED"; then 4867 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4868 fi 4869else 4870 ac_cv_path_SED=$SED 4871fi 4872 4873fi 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4875$as_echo "$ac_cv_path_SED" >&6; } 4876 SED="$ac_cv_path_SED" 4877 rm -f conftest.sed 4878 4879 4880 4881 4882 4883if test "x$GCC" = xyes ; then 4884 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4885-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4886-Wbad-function-cast -Wformat=2" 4887 case `$CC -dumpversion` in 4888 3.4.* | 4.*) 4889 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4890 ;; 4891 esac 4892else 4893 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4894if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4895 SUNCC="yes" 4896else 4897 SUNCC="no" 4898fi 4899 4900 if test "x$SUNCC" = "xyes"; then 4901 CWARNFLAGS="-v" 4902 fi 4903fi 4904 4905 4906 4907# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4908 4909 4910 4911# Check whether --enable-strict-compilation was given. 4912if test "${enable_strict_compilation+set}" = set; then : 4913 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4914else 4915 STRICT_COMPILE=no 4916fi 4917 4918if test "x$STRICT_COMPILE" = "xyes"; then 4919 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4920if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4921 SUNCC="yes" 4922else 4923 SUNCC="no" 4924fi 4925 4926 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4927if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4928 INTELCC="yes" 4929else 4930 INTELCC="no" 4931fi 4932 4933 if test "x$GCC" = xyes ; then 4934 STRICT_CFLAGS="-pedantic -Werror" 4935 elif test "x$SUNCC" = "xyes"; then 4936 STRICT_CFLAGS="-errwarn" 4937 elif test "x$INTELCC" = "xyes"; then 4938 STRICT_CFLAGS="-Werror" 4939 fi 4940fi 4941CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4942 4943 4944 4945 4946cat >>confdefs.h <<_ACEOF 4947#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4948_ACEOF 4949 4950 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4951 if test "x$PVM" = "x"; then 4952 PVM="0" 4953 fi 4954 4955cat >>confdefs.h <<_ACEOF 4956#define PACKAGE_VERSION_MINOR $PVM 4957_ACEOF 4958 4959 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4960 if test "x$PVP" = "x"; then 4961 PVP="0" 4962 fi 4963 4964cat >>confdefs.h <<_ACEOF 4965#define PACKAGE_VERSION_PATCHLEVEL $PVP 4966_ACEOF 4967 4968 4969 4970CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4971mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4972|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4973echo 'git directory not found: installing possibly empty changelog.' >&2)" 4974 4975 4976 4977 4978macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4979INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4980mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4981|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4982echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4983 4984 4985 4986 4987 4988 4989if test x$APP_MAN_SUFFIX = x ; then 4990 APP_MAN_SUFFIX=1 4991fi 4992if test x$APP_MAN_DIR = x ; then 4993 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4994fi 4995 4996if test x$LIB_MAN_SUFFIX = x ; then 4997 LIB_MAN_SUFFIX=3 4998fi 4999if test x$LIB_MAN_DIR = x ; then 5000 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5001fi 5002 5003if test x$FILE_MAN_SUFFIX = x ; then 5004 case $host_os in 5005 solaris*) FILE_MAN_SUFFIX=4 ;; 5006 *) FILE_MAN_SUFFIX=5 ;; 5007 esac 5008fi 5009if test x$FILE_MAN_DIR = x ; then 5010 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5011fi 5012 5013if test x$MISC_MAN_SUFFIX = x ; then 5014 case $host_os in 5015 solaris*) MISC_MAN_SUFFIX=5 ;; 5016 *) MISC_MAN_SUFFIX=7 ;; 5017 esac 5018fi 5019if test x$MISC_MAN_DIR = x ; then 5020 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5021fi 5022 5023if test x$DRIVER_MAN_SUFFIX = x ; then 5024 case $host_os in 5025 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5026 *) DRIVER_MAN_SUFFIX=4 ;; 5027 esac 5028fi 5029if test x$DRIVER_MAN_DIR = x ; then 5030 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5031fi 5032 5033if test x$ADMIN_MAN_SUFFIX = x ; then 5034 case $host_os in 5035 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5036 *) ADMIN_MAN_SUFFIX=8 ;; 5037 esac 5038fi 5039if test x$ADMIN_MAN_DIR = x ; then 5040 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5041fi 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057XORG_MAN_PAGE="X Version 11" 5058 5059MAN_SUBSTS="\ 5060 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5061 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5062 -e 's|__xservername__|Xorg|g' \ 5063 -e 's|__xconfigfile__|xorg.conf|g' \ 5064 -e 's|__projectroot__|\$(prefix)|g' \ 5065 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 5066 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 5067 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 5068 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 5069 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 5070 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 5071 5072 5073 5074# Check whether --enable-silent-rules was given. 5075if test "${enable_silent_rules+set}" = set; then : 5076 enableval=$enable_silent_rules; 5077fi 5078 5079case $enable_silent_rules in 5080yes) AM_DEFAULT_VERBOSITY=0;; 5081no) AM_DEFAULT_VERBOSITY=1;; 5082*) AM_DEFAULT_VERBOSITY=0;; 5083esac 5084AM_BACKSLASH='\' 5085 5086 5087 5088default= 5089if test "x$default" = x ; then 5090 default="yes" 5091fi 5092# Check whether --enable-docs was given. 5093if test "${enable_docs+set}" = set; then : 5094 enableval=$enable_docs; build_docs=$enableval 5095else 5096 build_docs=$default 5097fi 5098 5099 if test x$build_docs = xyes; then 5100 ENABLE_DOCS_TRUE= 5101 ENABLE_DOCS_FALSE='#' 5102else 5103 ENABLE_DOCS_TRUE='#' 5104 ENABLE_DOCS_FALSE= 5105fi 5106 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 5108$as_echo_n "checking whether to build documentation... " >&6; } 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 5110$as_echo "$build_docs" >&6; } 5111 5112 5113spec_default= 5114if test "x$spec_default" = x ; then 5115 spec_default="yes" 5116fi 5117# Check whether --enable-specs was given. 5118if test "${enable_specs+set}" = set; then : 5119 enableval=$enable_specs; build_specs=$enableval 5120else 5121 build_specs=$spec_default 5122fi 5123 5124 if test x$build_specs = xyes; then 5125 ENABLE_SPECS_TRUE= 5126 ENABLE_SPECS_FALSE='#' 5127else 5128 ENABLE_SPECS_TRUE='#' 5129 ENABLE_SPECS_FALSE= 5130fi 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 5133$as_echo_n "checking whether to build functional specifications... " >&6; } 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 5135$as_echo "$build_specs" >&6; } 5136 5137 5138 5139 5140# Check whether --with-xmlto was given. 5141if test "${with_xmlto+set}" = set; then : 5142 withval=$with_xmlto; use_xmlto=$withval 5143else 5144 use_xmlto=auto 5145fi 5146 5147 5148if test "x$use_xmlto" = x"auto"; then 5149 # Extract the first word of "xmlto", so it can be a program name with args. 5150set dummy xmlto; ac_word=$2 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5152$as_echo_n "checking for $ac_word... " >&6; } 5153if test "${ac_cv_path_XMLTO+set}" = set; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 case $XMLTO in 5157 [\\/]* | ?:[\\/]*) 5158 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 5159 ;; 5160 *) 5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_exec_ext in '' $ac_executable_extensions; do 5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5168 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5170 break 2 5171 fi 5172done 5173 done 5174IFS=$as_save_IFS 5175 5176 ;; 5177esac 5178fi 5179XMLTO=$ac_cv_path_XMLTO 5180if test -n "$XMLTO"; then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 5182$as_echo "$XMLTO" >&6; } 5183else 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5185$as_echo "no" >&6; } 5186fi 5187 5188 5189 if test "x$XMLTO" = "x"; then 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 5191$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 5192 have_xmlto=no 5193 else 5194 have_xmlto=yes 5195 fi 5196elif test "x$use_xmlto" = x"yes" ; then 5197 # Extract the first word of "xmlto", so it can be a program name with args. 5198set dummy xmlto; ac_word=$2 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5200$as_echo_n "checking for $ac_word... " >&6; } 5201if test "${ac_cv_path_XMLTO+set}" = set; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 case $XMLTO in 5205 [\\/]* | ?:[\\/]*) 5206 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 5207 ;; 5208 *) 5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5210for as_dir in $PATH 5211do 5212 IFS=$as_save_IFS 5213 test -z "$as_dir" && as_dir=. 5214 for ac_exec_ext in '' $ac_executable_extensions; do 5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5216 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5218 break 2 5219 fi 5220done 5221 done 5222IFS=$as_save_IFS 5223 5224 ;; 5225esac 5226fi 5227XMLTO=$ac_cv_path_XMLTO 5228if test -n "$XMLTO"; then 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 5230$as_echo "$XMLTO" >&6; } 5231else 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5233$as_echo "no" >&6; } 5234fi 5235 5236 5237 if test "x$XMLTO" = "x"; then 5238 as_fn_error "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 5239 fi 5240 have_xmlto=yes 5241elif test "x$use_xmlto" = x"no" ; then 5242 if test "x$XMLTO" != "x"; then 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 5244$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 5245 fi 5246 have_xmlto=no 5247else 5248 as_fn_error "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 5249fi 5250 5251# Test for a minimum version of xmlto, if provided. 5252if test "$have_xmlto" = yes; then 5253 # scrape the xmlto version 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 5255$as_echo_n "checking the xmlto version... " >&6; } 5256 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 5258$as_echo "$xmlto_version" >&6; } 5259 as_arg_v1=$xmlto_version 5260as_arg_v2=0.0.20 5261awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 5262case $? in #( 5263 1) : 5264 if test "x$use_xmlto" = xauto; then 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 5266$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 5267 have_xmlto=no 5268 else 5269 as_fn_error "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 5270 fi ;; #( 5271 0) : 5272 ;; #( 5273 2) : 5274 ;; #( 5275 *) : 5276 ;; 5277esac 5278fi 5279 5280# Test for the ability of xmlto to generate a text target 5281have_xmlto_text=no 5282cat > conftest.xml << "EOF" 5283EOF 5284if test "$have_xmlto" = yes; then : 5285 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 5286 have_xmlto_text=yes 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 5289$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 5290fi 5291fi 5292rm -f conftest.xml 5293 if test $have_xmlto_text = yes; then 5294 HAVE_XMLTO_TEXT_TRUE= 5295 HAVE_XMLTO_TEXT_FALSE='#' 5296else 5297 HAVE_XMLTO_TEXT_TRUE='#' 5298 HAVE_XMLTO_TEXT_FALSE= 5299fi 5300 5301 if test "$have_xmlto" = yes; then 5302 HAVE_XMLTO_TRUE= 5303 HAVE_XMLTO_FALSE='#' 5304else 5305 HAVE_XMLTO_TRUE='#' 5306 HAVE_XMLTO_FALSE= 5307fi 5308 5309 5310 5311 5312 5313# Check whether --with-fop was given. 5314if test "${with_fop+set}" = set; then : 5315 withval=$with_fop; use_fop=$withval 5316else 5317 use_fop=auto 5318fi 5319 5320 5321if test "x$use_fop" = x"auto"; then 5322 # Extract the first word of "fop", so it can be a program name with args. 5323set dummy fop; ac_word=$2 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5325$as_echo_n "checking for $ac_word... " >&6; } 5326if test "${ac_cv_path_FOP+set}" = set; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 case $FOP in 5330 [\\/]* | ?:[\\/]*) 5331 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5332 ;; 5333 *) 5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335for as_dir in $PATH 5336do 5337 IFS=$as_save_IFS 5338 test -z "$as_dir" && as_dir=. 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5341 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349 ;; 5350esac 5351fi 5352FOP=$ac_cv_path_FOP 5353if test -n "$FOP"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5355$as_echo "$FOP" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 5362 if test "x$FOP" = "x"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 5364$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 5365 have_fop=no 5366 else 5367 have_fop=yes 5368 fi 5369elif test "x$use_fop" = x"yes" ; then 5370 # Extract the first word of "fop", so it can be a program name with args. 5371set dummy fop; ac_word=$2 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5373$as_echo_n "checking for $ac_word... " >&6; } 5374if test "${ac_cv_path_FOP+set}" = set; then : 5375 $as_echo_n "(cached) " >&6 5376else 5377 case $FOP in 5378 [\\/]* | ?:[\\/]*) 5379 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5380 ;; 5381 *) 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383for as_dir in $PATH 5384do 5385 IFS=$as_save_IFS 5386 test -z "$as_dir" && as_dir=. 5387 for ac_exec_ext in '' $ac_executable_extensions; do 5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5389 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5391 break 2 5392 fi 5393done 5394 done 5395IFS=$as_save_IFS 5396 5397 ;; 5398esac 5399fi 5400FOP=$ac_cv_path_FOP 5401if test -n "$FOP"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5403$as_echo "$FOP" >&6; } 5404else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406$as_echo "no" >&6; } 5407fi 5408 5409 5410 if test "x$FOP" = "x"; then 5411 as_fn_error "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 5412 fi 5413 have_fop=yes 5414elif test "x$use_fop" = x"no" ; then 5415 if test "x$FOP" != "x"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 5417$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 5418 fi 5419 have_fop=no 5420else 5421 as_fn_error "--with-fop expects 'yes' or 'no'" "$LINENO" 5 5422fi 5423 if test "$have_fop" = yes; then 5424 HAVE_FOP_TRUE= 5425 HAVE_FOP_FALSE='#' 5426else 5427 HAVE_FOP_TRUE='#' 5428 HAVE_FOP_FALSE= 5429fi 5430 5431 5432 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 5434$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 5435XORG_SGML_PATH= 5436if test -n "$PKG_CONFIG" && \ 5437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 5438 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 5439 ac_status=$? 5440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5441 test $ac_status = 0; }; then 5442 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 5443else 5444 : 5445 5446fi 5447 5448# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 5449# the path and the name of the doc stylesheet 5450if test "x$XORG_SGML_PATH" != "x" ; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 5452$as_echo "$XORG_SGML_PATH" >&6; } 5453 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 5454 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 5455else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457$as_echo "no" >&6; } 5458fi 5459 5460 5461 5462 5463 if test "x$XSL_STYLESHEET" != "x"; then 5464 HAVE_STYLESHEETS_TRUE= 5465 HAVE_STYLESHEETS_FALSE='#' 5466else 5467 HAVE_STYLESHEETS_TRUE='#' 5468 HAVE_STYLESHEETS_FALSE= 5469fi 5470 5471 5472 5473# Checks for programs. 5474case `pwd` in 5475 *\ * | *\ *) 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5477$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5478esac 5479 5480 5481 5482macro_version='2.2.6b' 5483macro_revision='1.3017' 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497ltmain="$ac_aux_dir/ltmain.sh" 5498 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5500$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5501if test "${ac_cv_path_SED+set}" = set; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5505 for ac_i in 1 2 3 4 5 6 7; do 5506 ac_script="$ac_script$as_nl$ac_script" 5507 done 5508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5509 { ac_script=; unset ac_script;} 5510 if test -z "$SED"; then 5511 ac_path_SED_found=false 5512 # Loop through the user's path and test for each of PROGNAME-LIST 5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514for as_dir in $PATH 5515do 5516 IFS=$as_save_IFS 5517 test -z "$as_dir" && as_dir=. 5518 for ac_prog in sed gsed; do 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5522# Check for GNU ac_path_SED and select it if it is found. 5523 # Check for GNU $ac_path_SED 5524case `"$ac_path_SED" --version 2>&1` in 5525*GNU*) 5526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5527*) 5528 ac_count=0 5529 $as_echo_n 0123456789 >"conftest.in" 5530 while : 5531 do 5532 cat "conftest.in" "conftest.in" >"conftest.tmp" 5533 mv "conftest.tmp" "conftest.in" 5534 cp "conftest.in" "conftest.nl" 5535 $as_echo '' >> "conftest.nl" 5536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5538 as_fn_arith $ac_count + 1 && ac_count=$as_val 5539 if test $ac_count -gt ${ac_path_SED_max-0}; then 5540 # Best one so far, save it but keep looking for a better one 5541 ac_cv_path_SED="$ac_path_SED" 5542 ac_path_SED_max=$ac_count 5543 fi 5544 # 10*(2^10) chars as input seems more than enough 5545 test $ac_count -gt 10 && break 5546 done 5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5548esac 5549 5550 $ac_path_SED_found && break 3 5551 done 5552 done 5553 done 5554IFS=$as_save_IFS 5555 if test -z "$ac_cv_path_SED"; then 5556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5557 fi 5558else 5559 ac_cv_path_SED=$SED 5560fi 5561 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5564$as_echo "$ac_cv_path_SED" >&6; } 5565 SED="$ac_cv_path_SED" 5566 rm -f conftest.sed 5567 5568test -z "$SED" && SED=sed 5569Xsed="$SED -e 1s/^X//" 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5582$as_echo_n "checking for fgrep... " >&6; } 5583if test "${ac_cv_path_FGREP+set}" = set; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5587 then ac_cv_path_FGREP="$GREP -F" 5588 else 5589 if test -z "$FGREP"; then 5590 ac_path_FGREP_found=false 5591 # Loop through the user's path and test for each of PROGNAME-LIST 5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5593for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5594do 5595 IFS=$as_save_IFS 5596 test -z "$as_dir" && as_dir=. 5597 for ac_prog in fgrep; do 5598 for ac_exec_ext in '' $ac_executable_extensions; do 5599 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5600 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5601# Check for GNU ac_path_FGREP and select it if it is found. 5602 # Check for GNU $ac_path_FGREP 5603case `"$ac_path_FGREP" --version 2>&1` in 5604*GNU*) 5605 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5606*) 5607 ac_count=0 5608 $as_echo_n 0123456789 >"conftest.in" 5609 while : 5610 do 5611 cat "conftest.in" "conftest.in" >"conftest.tmp" 5612 mv "conftest.tmp" "conftest.in" 5613 cp "conftest.in" "conftest.nl" 5614 $as_echo 'FGREP' >> "conftest.nl" 5615 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5617 as_fn_arith $ac_count + 1 && ac_count=$as_val 5618 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5619 # Best one so far, save it but keep looking for a better one 5620 ac_cv_path_FGREP="$ac_path_FGREP" 5621 ac_path_FGREP_max=$ac_count 5622 fi 5623 # 10*(2^10) chars as input seems more than enough 5624 test $ac_count -gt 10 && break 5625 done 5626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5627esac 5628 5629 $ac_path_FGREP_found && break 3 5630 done 5631 done 5632 done 5633IFS=$as_save_IFS 5634 if test -z "$ac_cv_path_FGREP"; then 5635 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5636 fi 5637else 5638 ac_cv_path_FGREP=$FGREP 5639fi 5640 5641 fi 5642fi 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5644$as_echo "$ac_cv_path_FGREP" >&6; } 5645 FGREP="$ac_cv_path_FGREP" 5646 5647 5648test -z "$GREP" && GREP=grep 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668# Check whether --with-gnu-ld was given. 5669if test "${with_gnu_ld+set}" = set; then : 5670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5671else 5672 with_gnu_ld=no 5673fi 5674 5675ac_prog=ld 5676if test "$GCC" = yes; then 5677 # Check if gcc -print-prog-name=ld gives a path. 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5679$as_echo_n "checking for ld used by $CC... " >&6; } 5680 case $host in 5681 *-*-mingw*) 5682 # gcc leaves a trailing carriage return which upsets mingw 5683 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5684 *) 5685 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5686 esac 5687 case $ac_prog in 5688 # Accept absolute paths. 5689 [\\/]* | ?:[\\/]*) 5690 re_direlt='/[^/][^/]*/\.\./' 5691 # Canonicalize the pathname of ld 5692 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5693 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5694 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5695 done 5696 test -z "$LD" && LD="$ac_prog" 5697 ;; 5698 "") 5699 # If it fails, then pretend we aren't using GCC. 5700 ac_prog=ld 5701 ;; 5702 *) 5703 # If it is relative, then search for the first ld in PATH. 5704 with_gnu_ld=unknown 5705 ;; 5706 esac 5707elif test "$with_gnu_ld" = yes; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5709$as_echo_n "checking for GNU ld... " >&6; } 5710else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5712$as_echo_n "checking for non-GNU ld... " >&6; } 5713fi 5714if test "${lt_cv_path_LD+set}" = set; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 if test -z "$LD"; then 5718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5719 for ac_dir in $PATH; do 5720 IFS="$lt_save_ifs" 5721 test -z "$ac_dir" && ac_dir=. 5722 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5723 lt_cv_path_LD="$ac_dir/$ac_prog" 5724 # Check to see if the program is GNU ld. I'd rather use --version, 5725 # but apparently some variants of GNU ld only accept -v. 5726 # Break only if it was the GNU/non-GNU ld that we prefer. 5727 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5728 *GNU* | *'with BFD'*) 5729 test "$with_gnu_ld" != no && break 5730 ;; 5731 *) 5732 test "$with_gnu_ld" != yes && break 5733 ;; 5734 esac 5735 fi 5736 done 5737 IFS="$lt_save_ifs" 5738else 5739 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5740fi 5741fi 5742 5743LD="$lt_cv_path_LD" 5744if test -n "$LD"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5746$as_echo "$LD" >&6; } 5747else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749$as_echo "no" >&6; } 5750fi 5751test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5753$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5754if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5758case `$LD -v 2>&1 </dev/null` in 5759*GNU* | *'with BFD'*) 5760 lt_cv_prog_gnu_ld=yes 5761 ;; 5762*) 5763 lt_cv_prog_gnu_ld=no 5764 ;; 5765esac 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5768$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5769with_gnu_ld=$lt_cv_prog_gnu_ld 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5780$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5781if test "${lt_cv_path_NM+set}" = set; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 if test -n "$NM"; then 5785 # Let the user override the test. 5786 lt_cv_path_NM="$NM" 5787else 5788 lt_nm_to_check="${ac_tool_prefix}nm" 5789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5790 lt_nm_to_check="$lt_nm_to_check nm" 5791 fi 5792 for lt_tmp_nm in $lt_nm_to_check; do 5793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5795 IFS="$lt_save_ifs" 5796 test -z "$ac_dir" && ac_dir=. 5797 tmp_nm="$ac_dir/$lt_tmp_nm" 5798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5799 # Check to see if the nm accepts a BSD-compat flag. 5800 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5801 # nm: unknown option "B" ignored 5802 # Tru64's nm complains that /dev/null is an invalid object file 5803 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5804 */dev/null* | *'Invalid file or object type'*) 5805 lt_cv_path_NM="$tmp_nm -B" 5806 break 5807 ;; 5808 *) 5809 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5810 */dev/null*) 5811 lt_cv_path_NM="$tmp_nm -p" 5812 break 5813 ;; 5814 *) 5815 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5816 continue # so that we can try to find one that supports BSD flags 5817 ;; 5818 esac 5819 ;; 5820 esac 5821 fi 5822 done 5823 IFS="$lt_save_ifs" 5824 done 5825 : ${lt_cv_path_NM=no} 5826fi 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5829$as_echo "$lt_cv_path_NM" >&6; } 5830if test "$lt_cv_path_NM" != "no"; then 5831 NM="$lt_cv_path_NM" 5832else 5833 # Didn't find any BSD compatible name lister, look for dumpbin. 5834 if test -n "$ac_tool_prefix"; then 5835 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5836 do 5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5840$as_echo_n "checking for $ac_word... " >&6; } 5841if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 if test -n "$DUMPBIN"; then 5845 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5846else 5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5848for as_dir in $PATH 5849do 5850 IFS=$as_save_IFS 5851 test -z "$as_dir" && as_dir=. 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5854 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859 done 5860IFS=$as_save_IFS 5861 5862fi 5863fi 5864DUMPBIN=$ac_cv_prog_DUMPBIN 5865if test -n "$DUMPBIN"; then 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5867$as_echo "$DUMPBIN" >&6; } 5868else 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870$as_echo "no" >&6; } 5871fi 5872 5873 5874 test -n "$DUMPBIN" && break 5875 done 5876fi 5877if test -z "$DUMPBIN"; then 5878 ac_ct_DUMPBIN=$DUMPBIN 5879 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5880do 5881 # Extract the first word of "$ac_prog", so it can be a program name with args. 5882set dummy $ac_prog; ac_word=$2 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5884$as_echo_n "checking for $ac_word... " >&6; } 5885if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 if test -n "$ac_ct_DUMPBIN"; then 5889 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5890else 5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892for as_dir in $PATH 5893do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5898 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902done 5903 done 5904IFS=$as_save_IFS 5905 5906fi 5907fi 5908ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5909if test -n "$ac_ct_DUMPBIN"; then 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5911$as_echo "$ac_ct_DUMPBIN" >&6; } 5912else 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5914$as_echo "no" >&6; } 5915fi 5916 5917 5918 test -n "$ac_ct_DUMPBIN" && break 5919done 5920 5921 if test "x$ac_ct_DUMPBIN" = x; then 5922 DUMPBIN=":" 5923 else 5924 case $cross_compiling:$ac_tool_warned in 5925yes:) 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5928ac_tool_warned=yes ;; 5929esac 5930 DUMPBIN=$ac_ct_DUMPBIN 5931 fi 5932fi 5933 5934 5935 if test "$DUMPBIN" != ":"; then 5936 NM="$DUMPBIN" 5937 fi 5938fi 5939test -z "$NM" && NM=nm 5940 5941 5942 5943 5944 5945 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5947$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5948if test "${lt_cv_nm_interface+set}" = set; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 lt_cv_nm_interface="BSD nm" 5952 echo "int some_variable = 0;" > conftest.$ac_ext 5953 (eval echo "\"\$as_me:5953: $ac_compile\"" >&5) 5954 (eval "$ac_compile" 2>conftest.err) 5955 cat conftest.err >&5 5956 (eval echo "\"\$as_me:5956: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5957 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5958 cat conftest.err >&5 5959 (eval echo "\"\$as_me:5959: output\"" >&5) 5960 cat conftest.out >&5 5961 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5962 lt_cv_nm_interface="MS dumpbin" 5963 fi 5964 rm -f conftest* 5965fi 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5967$as_echo "$lt_cv_nm_interface" >&6; } 5968 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5970$as_echo_n "checking whether ln -s works... " >&6; } 5971LN_S=$as_ln_s 5972if test "$LN_S" = "ln -s"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5974$as_echo "yes" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5977$as_echo "no, using $LN_S" >&6; } 5978fi 5979 5980# find the maximum length of command line arguments 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5982$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5983if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5984 $as_echo_n "(cached) " >&6 5985else 5986 i=0 5987 teststring="ABCD" 5988 5989 case $build_os in 5990 msdosdjgpp*) 5991 # On DJGPP, this test can blow up pretty badly due to problems in libc 5992 # (any single argument exceeding 2000 bytes causes a buffer overrun 5993 # during glob expansion). Even if it were fixed, the result of this 5994 # check would be larger than it should be. 5995 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5996 ;; 5997 5998 gnu*) 5999 # Under GNU Hurd, this test is not required because there is 6000 # no limit to the length of command line arguments. 6001 # Libtool will interpret -1 as no limit whatsoever 6002 lt_cv_sys_max_cmd_len=-1; 6003 ;; 6004 6005 cygwin* | mingw* | cegcc*) 6006 # On Win9x/ME, this test blows up -- it succeeds, but takes 6007 # about 5 minutes as the teststring grows exponentially. 6008 # Worse, since 9x/ME are not pre-emptively multitasking, 6009 # you end up with a "frozen" computer, even though with patience 6010 # the test eventually succeeds (with a max line length of 256k). 6011 # Instead, let's just punt: use the minimum linelength reported by 6012 # all of the supported platforms: 8192 (on NT/2K/XP). 6013 lt_cv_sys_max_cmd_len=8192; 6014 ;; 6015 6016 amigaos*) 6017 # On AmigaOS with pdksh, this test takes hours, literally. 6018 # So we just punt and use a minimum line length of 8192. 6019 lt_cv_sys_max_cmd_len=8192; 6020 ;; 6021 6022 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6023 # This has been around since 386BSD, at least. Likely further. 6024 if test -x /sbin/sysctl; then 6025 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6026 elif test -x /usr/sbin/sysctl; then 6027 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6028 else 6029 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6030 fi 6031 # And add a safety zone 6032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6034 ;; 6035 6036 interix*) 6037 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6038 lt_cv_sys_max_cmd_len=196608 6039 ;; 6040 6041 osf*) 6042 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6043 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6044 # nice to cause kernel panics so lets avoid the loop below. 6045 # First set a reasonable default. 6046 lt_cv_sys_max_cmd_len=16384 6047 # 6048 if test -x /sbin/sysconfig; then 6049 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6050 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6051 esac 6052 fi 6053 ;; 6054 sco3.2v5*) 6055 lt_cv_sys_max_cmd_len=102400 6056 ;; 6057 sysv5* | sco5v6* | sysv4.2uw2*) 6058 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6059 if test -n "$kargmax"; then 6060 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6061 else 6062 lt_cv_sys_max_cmd_len=32768 6063 fi 6064 ;; 6065 *) 6066 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6067 if test -n "$lt_cv_sys_max_cmd_len"; then 6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6070 else 6071 # Make teststring a little bigger before we do anything with it. 6072 # a 1K string should be a reasonable start. 6073 for i in 1 2 3 4 5 6 7 8 ; do 6074 teststring=$teststring$teststring 6075 done 6076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6077 # If test is not a shell built-in, we'll probably end up computing a 6078 # maximum length that is only half of the actual maximum length, but 6079 # we can't tell. 6080 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6081 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6082 test $i != 17 # 1/2 MB should be enough 6083 do 6084 i=`expr $i + 1` 6085 teststring=$teststring$teststring 6086 done 6087 # Only check the string length outside the loop. 6088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6089 teststring= 6090 # Add a significant safety factor because C++ compilers can tack on 6091 # massive amounts of additional arguments before passing them to the 6092 # linker. It appears as though 1/2 is a usable value. 6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6094 fi 6095 ;; 6096 esac 6097 6098fi 6099 6100if test -n $lt_cv_sys_max_cmd_len ; then 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6102$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6105$as_echo "none" >&6; } 6106fi 6107max_cmd_len=$lt_cv_sys_max_cmd_len 6108 6109 6110 6111 6112 6113 6114: ${CP="cp -f"} 6115: ${MV="mv -f"} 6116: ${RM="rm -f"} 6117 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6119$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6120# Try some XSI features 6121xsi_shell=no 6122( _lt_dummy="a/b/c" 6123 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6124 = c,a/b,, \ 6125 && eval 'test $(( 1 + 1 )) -eq 2 \ 6126 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6127 && xsi_shell=yes 6128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6129$as_echo "$xsi_shell" >&6; } 6130 6131 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6133$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6134lt_shell_append=no 6135( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6136 >/dev/null 2>&1 \ 6137 && lt_shell_append=yes 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6139$as_echo "$lt_shell_append" >&6; } 6140 6141 6142if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6143 lt_unset=unset 6144else 6145 lt_unset=false 6146fi 6147 6148 6149 6150 6151 6152# test EBCDIC or ASCII 6153case `echo X|tr X '\101'` in 6154 A) # ASCII based system 6155 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6156 lt_SP2NL='tr \040 \012' 6157 lt_NL2SP='tr \015\012 \040\040' 6158 ;; 6159 *) # EBCDIC based system 6160 lt_SP2NL='tr \100 \n' 6161 lt_NL2SP='tr \r\n \100\100' 6162 ;; 6163esac 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6174$as_echo_n "checking for $LD option to reload object files... " >&6; } 6175if test "${lt_cv_ld_reload_flag+set}" = set; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 lt_cv_ld_reload_flag='-r' 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6181$as_echo "$lt_cv_ld_reload_flag" >&6; } 6182reload_flag=$lt_cv_ld_reload_flag 6183case $reload_flag in 6184"" | " "*) ;; 6185*) reload_flag=" $reload_flag" ;; 6186esac 6187reload_cmds='$LD$reload_flag -o $output$reload_objs' 6188case $host_os in 6189 darwin*) 6190 if test "$GCC" = yes; then 6191 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6192 else 6193 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6194 fi 6195 ;; 6196esac 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206if test -n "$ac_tool_prefix"; then 6207 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6208set dummy ${ac_tool_prefix}objdump; ac_word=$2 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6210$as_echo_n "checking for $ac_word... " >&6; } 6211if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 if test -n "$OBJDUMP"; then 6215 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6216else 6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6218for as_dir in $PATH 6219do 6220 IFS=$as_save_IFS 6221 test -z "$as_dir" && as_dir=. 6222 for ac_exec_ext in '' $ac_executable_extensions; do 6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6224 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6226 break 2 6227 fi 6228done 6229 done 6230IFS=$as_save_IFS 6231 6232fi 6233fi 6234OBJDUMP=$ac_cv_prog_OBJDUMP 6235if test -n "$OBJDUMP"; then 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6237$as_echo "$OBJDUMP" >&6; } 6238else 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6240$as_echo "no" >&6; } 6241fi 6242 6243 6244fi 6245if test -z "$ac_cv_prog_OBJDUMP"; then 6246 ac_ct_OBJDUMP=$OBJDUMP 6247 # Extract the first word of "objdump", so it can be a program name with args. 6248set dummy objdump; ac_word=$2 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250$as_echo_n "checking for $ac_word... " >&6; } 6251if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 if test -n "$ac_ct_OBJDUMP"; then 6255 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6256else 6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6258for as_dir in $PATH 6259do 6260 IFS=$as_save_IFS 6261 test -z "$as_dir" && as_dir=. 6262 for ac_exec_ext in '' $ac_executable_extensions; do 6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6264 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6266 break 2 6267 fi 6268done 6269 done 6270IFS=$as_save_IFS 6271 6272fi 6273fi 6274ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6275if test -n "$ac_ct_OBJDUMP"; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6277$as_echo "$ac_ct_OBJDUMP" >&6; } 6278else 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280$as_echo "no" >&6; } 6281fi 6282 6283 if test "x$ac_ct_OBJDUMP" = x; then 6284 OBJDUMP="false" 6285 else 6286 case $cross_compiling:$ac_tool_warned in 6287yes:) 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6290ac_tool_warned=yes ;; 6291esac 6292 OBJDUMP=$ac_ct_OBJDUMP 6293 fi 6294else 6295 OBJDUMP="$ac_cv_prog_OBJDUMP" 6296fi 6297 6298test -z "$OBJDUMP" && OBJDUMP=objdump 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6309$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6310if test "${lt_cv_deplibs_check_method+set}" = set; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 lt_cv_file_magic_cmd='$MAGIC_CMD' 6314lt_cv_file_magic_test_file= 6315lt_cv_deplibs_check_method='unknown' 6316# Need to set the preceding variable on all platforms that support 6317# interlibrary dependencies. 6318# 'none' -- dependencies not supported. 6319# `unknown' -- same as none, but documents that we really don't know. 6320# 'pass_all' -- all dependencies passed with no checks. 6321# 'test_compile' -- check by making test program. 6322# 'file_magic [[regex]]' -- check by looking for files in library path 6323# which responds to the $file_magic_cmd with a given extended regex. 6324# If you have `file' or equivalent on your system and you're not sure 6325# whether `pass_all' will *always* work, you probably want this one. 6326 6327case $host_os in 6328aix[4-9]*) 6329 lt_cv_deplibs_check_method=pass_all 6330 ;; 6331 6332beos*) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335 6336bsdi[45]*) 6337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6338 lt_cv_file_magic_cmd='/usr/bin/file -L' 6339 lt_cv_file_magic_test_file=/shlib/libc.so 6340 ;; 6341 6342cygwin*) 6343 # func_win32_libid is a shell function defined in ltmain.sh 6344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6345 lt_cv_file_magic_cmd='func_win32_libid' 6346 ;; 6347 6348mingw* | pw32*) 6349 # Base MSYS/MinGW do not provide the 'file' command needed by 6350 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6351 # unless we find 'file', for example because we are cross-compiling. 6352 if ( file / ) >/dev/null 2>&1; then 6353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6354 lt_cv_file_magic_cmd='func_win32_libid' 6355 else 6356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6357 lt_cv_file_magic_cmd='$OBJDUMP -f' 6358 fi 6359 ;; 6360 6361cegcc) 6362 # use the weaker test based on 'objdump'. See mingw*. 6363 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6364 lt_cv_file_magic_cmd='$OBJDUMP -f' 6365 ;; 6366 6367darwin* | rhapsody*) 6368 lt_cv_deplibs_check_method=pass_all 6369 ;; 6370 6371freebsd* | dragonfly*) 6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6373 case $host_cpu in 6374 i*86 ) 6375 # Not sure whether the presence of OpenBSD here was a mistake. 6376 # Let's accept both of them until this is cleared up. 6377 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6378 lt_cv_file_magic_cmd=/usr/bin/file 6379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6380 ;; 6381 esac 6382 else 6383 lt_cv_deplibs_check_method=pass_all 6384 fi 6385 ;; 6386 6387gnu*) 6388 lt_cv_deplibs_check_method=pass_all 6389 ;; 6390 6391hpux10.20* | hpux11*) 6392 lt_cv_file_magic_cmd=/usr/bin/file 6393 case $host_cpu in 6394 ia64*) 6395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6397 ;; 6398 hppa*64*) 6399 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6401 ;; 6402 *) 6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6404 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6405 ;; 6406 esac 6407 ;; 6408 6409interix[3-9]*) 6410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6412 ;; 6413 6414irix5* | irix6* | nonstopux*) 6415 case $LD in 6416 *-32|*"-32 ") libmagic=32-bit;; 6417 *-n32|*"-n32 ") libmagic=N32;; 6418 *-64|*"-64 ") libmagic=64-bit;; 6419 *) libmagic=never-match;; 6420 esac 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424# This must be Linux ELF. 6425linux* | k*bsd*-gnu) 6426 lt_cv_deplibs_check_method=pass_all 6427 ;; 6428 6429netbsd*) 6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6432 else 6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6434 fi 6435 ;; 6436 6437newos6*) 6438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6439 lt_cv_file_magic_cmd=/usr/bin/file 6440 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6441 ;; 6442 6443*nto* | *qnx*) 6444 lt_cv_deplibs_check_method=pass_all 6445 ;; 6446 6447openbsd*) 6448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6450 else 6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6452 fi 6453 ;; 6454 6455osf3* | osf4* | osf5*) 6456 lt_cv_deplibs_check_method=pass_all 6457 ;; 6458 6459rdos*) 6460 lt_cv_deplibs_check_method=pass_all 6461 ;; 6462 6463solaris*) 6464 lt_cv_deplibs_check_method=pass_all 6465 ;; 6466 6467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6468 lt_cv_deplibs_check_method=pass_all 6469 ;; 6470 6471sysv4 | sysv4.3*) 6472 case $host_vendor in 6473 motorola) 6474 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]' 6475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6476 ;; 6477 ncr) 6478 lt_cv_deplibs_check_method=pass_all 6479 ;; 6480 sequent) 6481 lt_cv_file_magic_cmd='/bin/file' 6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6483 ;; 6484 sni) 6485 lt_cv_file_magic_cmd='/bin/file' 6486 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6487 lt_cv_file_magic_test_file=/lib/libc.so 6488 ;; 6489 siemens) 6490 lt_cv_deplibs_check_method=pass_all 6491 ;; 6492 pc) 6493 lt_cv_deplibs_check_method=pass_all 6494 ;; 6495 esac 6496 ;; 6497 6498tpf*) 6499 lt_cv_deplibs_check_method=pass_all 6500 ;; 6501esac 6502 6503fi 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6505$as_echo "$lt_cv_deplibs_check_method" >&6; } 6506file_magic_cmd=$lt_cv_file_magic_cmd 6507deplibs_check_method=$lt_cv_deplibs_check_method 6508test -z "$deplibs_check_method" && deplibs_check_method=unknown 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521if test -n "$ac_tool_prefix"; then 6522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6523set dummy ${ac_tool_prefix}ar; ac_word=$2 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6525$as_echo_n "checking for $ac_word... " >&6; } 6526if test "${ac_cv_prog_AR+set}" = set; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 if test -n "$AR"; then 6530 ac_cv_prog_AR="$AR" # Let the user override the test. 6531else 6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6533for as_dir in $PATH 6534do 6535 IFS=$as_save_IFS 6536 test -z "$as_dir" && as_dir=. 6537 for ac_exec_ext in '' $ac_executable_extensions; do 6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6539 ac_cv_prog_AR="${ac_tool_prefix}ar" 6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6541 break 2 6542 fi 6543done 6544 done 6545IFS=$as_save_IFS 6546 6547fi 6548fi 6549AR=$ac_cv_prog_AR 6550if test -n "$AR"; then 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6552$as_echo "$AR" >&6; } 6553else 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6555$as_echo "no" >&6; } 6556fi 6557 6558 6559fi 6560if test -z "$ac_cv_prog_AR"; then 6561 ac_ct_AR=$AR 6562 # Extract the first word of "ar", so it can be a program name with args. 6563set dummy ar; ac_word=$2 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6565$as_echo_n "checking for $ac_word... " >&6; } 6566if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 if test -n "$ac_ct_AR"; then 6570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6579 ac_cv_prog_ac_ct_AR="ar" 6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584 done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589ac_ct_AR=$ac_cv_prog_ac_ct_AR 6590if test -n "$ac_ct_AR"; then 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6592$as_echo "$ac_ct_AR" >&6; } 6593else 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6595$as_echo "no" >&6; } 6596fi 6597 6598 if test "x$ac_ct_AR" = x; then 6599 AR="false" 6600 else 6601 case $cross_compiling:$ac_tool_warned in 6602yes:) 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6605ac_tool_warned=yes ;; 6606esac 6607 AR=$ac_ct_AR 6608 fi 6609else 6610 AR="$ac_cv_prog_AR" 6611fi 6612 6613test -z "$AR" && AR=ar 6614test -z "$AR_FLAGS" && AR_FLAGS=cru 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626if test -n "$ac_tool_prefix"; then 6627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6628set dummy ${ac_tool_prefix}strip; ac_word=$2 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6630$as_echo_n "checking for $ac_word... " >&6; } 6631if test "${ac_cv_prog_STRIP+set}" = set; then : 6632 $as_echo_n "(cached) " >&6 6633else 6634 if test -n "$STRIP"; then 6635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6636else 6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638for as_dir in $PATH 6639do 6640 IFS=$as_save_IFS 6641 test -z "$as_dir" && as_dir=. 6642 for ac_exec_ext in '' $ac_executable_extensions; do 6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6644 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6646 break 2 6647 fi 6648done 6649 done 6650IFS=$as_save_IFS 6651 6652fi 6653fi 6654STRIP=$ac_cv_prog_STRIP 6655if test -n "$STRIP"; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6657$as_echo "$STRIP" >&6; } 6658else 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6660$as_echo "no" >&6; } 6661fi 6662 6663 6664fi 6665if test -z "$ac_cv_prog_STRIP"; then 6666 ac_ct_STRIP=$STRIP 6667 # Extract the first word of "strip", so it can be a program name with args. 6668set dummy strip; ac_word=$2 6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6670$as_echo_n "checking for $ac_word... " >&6; } 6671if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6672 $as_echo_n "(cached) " >&6 6673else 6674 if test -n "$ac_ct_STRIP"; then 6675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6676else 6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6678for as_dir in $PATH 6679do 6680 IFS=$as_save_IFS 6681 test -z "$as_dir" && as_dir=. 6682 for ac_exec_ext in '' $ac_executable_extensions; do 6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6684 ac_cv_prog_ac_ct_STRIP="strip" 6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6686 break 2 6687 fi 6688done 6689 done 6690IFS=$as_save_IFS 6691 6692fi 6693fi 6694ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6695if test -n "$ac_ct_STRIP"; then 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6697$as_echo "$ac_ct_STRIP" >&6; } 6698else 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6700$as_echo "no" >&6; } 6701fi 6702 6703 if test "x$ac_ct_STRIP" = x; then 6704 STRIP=":" 6705 else 6706 case $cross_compiling:$ac_tool_warned in 6707yes:) 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6710ac_tool_warned=yes ;; 6711esac 6712 STRIP=$ac_ct_STRIP 6713 fi 6714else 6715 STRIP="$ac_cv_prog_STRIP" 6716fi 6717 6718test -z "$STRIP" && STRIP=: 6719 6720 6721 6722 6723 6724 6725if test -n "$ac_tool_prefix"; then 6726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6727set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6729$as_echo_n "checking for $ac_word... " >&6; } 6730if test "${ac_cv_prog_RANLIB+set}" = set; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 if test -n "$RANLIB"; then 6734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6735else 6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737for as_dir in $PATH 6738do 6739 IFS=$as_save_IFS 6740 test -z "$as_dir" && as_dir=. 6741 for ac_exec_ext in '' $ac_executable_extensions; do 6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6745 break 2 6746 fi 6747done 6748 done 6749IFS=$as_save_IFS 6750 6751fi 6752fi 6753RANLIB=$ac_cv_prog_RANLIB 6754if test -n "$RANLIB"; then 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6756$as_echo "$RANLIB" >&6; } 6757else 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6759$as_echo "no" >&6; } 6760fi 6761 6762 6763fi 6764if test -z "$ac_cv_prog_RANLIB"; then 6765 ac_ct_RANLIB=$RANLIB 6766 # Extract the first word of "ranlib", so it can be a program name with args. 6767set dummy ranlib; ac_word=$2 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6769$as_echo_n "checking for $ac_word... " >&6; } 6770if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6771 $as_echo_n "(cached) " >&6 6772else 6773 if test -n "$ac_ct_RANLIB"; then 6774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6775else 6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_prog_ac_ct_RANLIB="ranlib" 6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788 done 6789IFS=$as_save_IFS 6790 6791fi 6792fi 6793ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6794if test -n "$ac_ct_RANLIB"; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6796$as_echo "$ac_ct_RANLIB" >&6; } 6797else 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6799$as_echo "no" >&6; } 6800fi 6801 6802 if test "x$ac_ct_RANLIB" = x; then 6803 RANLIB=":" 6804 else 6805 case $cross_compiling:$ac_tool_warned in 6806yes:) 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6809ac_tool_warned=yes ;; 6810esac 6811 RANLIB=$ac_ct_RANLIB 6812 fi 6813else 6814 RANLIB="$ac_cv_prog_RANLIB" 6815fi 6816 6817test -z "$RANLIB" && RANLIB=: 6818 6819 6820 6821 6822 6823 6824# Determine commands to create old-style static archives. 6825old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6826old_postinstall_cmds='chmod 644 $oldlib' 6827old_postuninstall_cmds= 6828 6829if test -n "$RANLIB"; then 6830 case $host_os in 6831 openbsd*) 6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6833 ;; 6834 *) 6835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6836 ;; 6837 esac 6838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6839fi 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874# If no C compiler was specified, use CC. 6875LTCC=${LTCC-"$CC"} 6876 6877# If no C compiler flags were specified, use CFLAGS. 6878LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6879 6880# Allow CC to be a program name with arguments. 6881compiler=$CC 6882 6883 6884# Check for command to grab the raw symbol name followed by C symbol from nm. 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6886$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6887if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6888 $as_echo_n "(cached) " >&6 6889else 6890 6891# These are sane defaults that work on at least a few old systems. 6892# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6893 6894# Character class describing NM global symbol codes. 6895symcode='[BCDEGRST]' 6896 6897# Regexp to match symbols that can be accessed directly from C. 6898sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6899 6900# Define system-specific variables. 6901case $host_os in 6902aix*) 6903 symcode='[BCDT]' 6904 ;; 6905cygwin* | mingw* | pw32* | cegcc*) 6906 symcode='[ABCDGISTW]' 6907 ;; 6908hpux*) 6909 if test "$host_cpu" = ia64; then 6910 symcode='[ABCDEGRST]' 6911 fi 6912 ;; 6913irix* | nonstopux*) 6914 symcode='[BCDEGRST]' 6915 ;; 6916osf*) 6917 symcode='[BCDEGQRST]' 6918 ;; 6919solaris*) 6920 symcode='[BDRT]' 6921 ;; 6922sco3.2v5*) 6923 symcode='[DT]' 6924 ;; 6925sysv4.2uw2*) 6926 symcode='[DT]' 6927 ;; 6928sysv5* | sco5v6* | unixware* | OpenUNIX*) 6929 symcode='[ABDT]' 6930 ;; 6931sysv4) 6932 symcode='[DFNSTU]' 6933 ;; 6934esac 6935 6936# If we're using GNU nm, then use its standard symbol codes. 6937case `$NM -V 2>&1` in 6938*GNU* | *'with BFD'*) 6939 symcode='[ABCDGIRSTW]' ;; 6940esac 6941 6942# Transform an extracted symbol line into a proper C declaration. 6943# Some systems (esp. on ia64) link data and code symbols differently, 6944# so use this general approach. 6945lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6946 6947# Transform an extracted symbol line into symbol name and symbol address 6948lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6949lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6950 6951# Handle CRLF in mingw tool chain 6952opt_cr= 6953case $build_os in 6954mingw*) 6955 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6956 ;; 6957esac 6958 6959# Try without a prefix underscore, then with it. 6960for ac_symprfx in "" "_"; do 6961 6962 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6963 symxfrm="\\1 $ac_symprfx\\2 \\2" 6964 6965 # Write the raw and C identifiers. 6966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6967 # Fake it for dumpbin and say T for any non-static function 6968 # and D for any global variable. 6969 # Also find C++ and __fastcall symbols from MSVC++, 6970 # which start with @ or ?. 6971 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6972" {last_section=section; section=\$ 3};"\ 6973" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6974" \$ 0!~/External *\|/{next};"\ 6975" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6976" {if(hide[section]) next};"\ 6977" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6978" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6979" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6980" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6981" ' prfx=^$ac_symprfx" 6982 else 6983 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6984 fi 6985 6986 # Check to see that the pipe works correctly. 6987 pipe_works=no 6988 6989 rm -f conftest* 6990 cat > conftest.$ac_ext <<_LT_EOF 6991#ifdef __cplusplus 6992extern "C" { 6993#endif 6994char nm_test_var; 6995void nm_test_func(void); 6996void nm_test_func(void){} 6997#ifdef __cplusplus 6998} 6999#endif 7000int main(){nm_test_var='a';nm_test_func();return(0);} 7001_LT_EOF 7002 7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7004 (eval $ac_compile) 2>&5 7005 ac_status=$? 7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; }; then 7008 # Now try to grab the symbols. 7009 nlist=conftest.nm 7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7011 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7012 ac_status=$? 7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7014 test $ac_status = 0; } && test -s "$nlist"; then 7015 # Try sorting and uniquifying the output. 7016 if sort "$nlist" | uniq > "$nlist"T; then 7017 mv -f "$nlist"T "$nlist" 7018 else 7019 rm -f "$nlist"T 7020 fi 7021 7022 # Make sure that we snagged all the symbols we need. 7023 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7024 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7025 cat <<_LT_EOF > conftest.$ac_ext 7026#ifdef __cplusplus 7027extern "C" { 7028#endif 7029 7030_LT_EOF 7031 # Now generate the symbol file. 7032 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7033 7034 cat <<_LT_EOF >> conftest.$ac_ext 7035 7036/* The mapping between symbol names and symbols. */ 7037const struct { 7038 const char *name; 7039 void *address; 7040} 7041lt__PROGRAM__LTX_preloaded_symbols[] = 7042{ 7043 { "@PROGRAM@", (void *) 0 }, 7044_LT_EOF 7045 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7046 cat <<\_LT_EOF >> conftest.$ac_ext 7047 {0, (void *) 0} 7048}; 7049 7050/* This works around a problem in FreeBSD linker */ 7051#ifdef FREEBSD_WORKAROUND 7052static const void *lt_preloaded_setup() { 7053 return lt__PROGRAM__LTX_preloaded_symbols; 7054} 7055#endif 7056 7057#ifdef __cplusplus 7058} 7059#endif 7060_LT_EOF 7061 # Now try linking the two files. 7062 mv conftest.$ac_objext conftstm.$ac_objext 7063 lt_save_LIBS="$LIBS" 7064 lt_save_CFLAGS="$CFLAGS" 7065 LIBS="conftstm.$ac_objext" 7066 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7068 (eval $ac_link) 2>&5 7069 ac_status=$? 7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7071 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7072 pipe_works=yes 7073 fi 7074 LIBS="$lt_save_LIBS" 7075 CFLAGS="$lt_save_CFLAGS" 7076 else 7077 echo "cannot find nm_test_func in $nlist" >&5 7078 fi 7079 else 7080 echo "cannot find nm_test_var in $nlist" >&5 7081 fi 7082 else 7083 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7084 fi 7085 else 7086 echo "$progname: failed program was:" >&5 7087 cat conftest.$ac_ext >&5 7088 fi 7089 rm -rf conftest* conftst* 7090 7091 # Do not use the global_symbol_pipe unless it works. 7092 if test "$pipe_works" = yes; then 7093 break 7094 else 7095 lt_cv_sys_global_symbol_pipe= 7096 fi 7097done 7098 7099fi 7100 7101if test -z "$lt_cv_sys_global_symbol_pipe"; then 7102 lt_cv_sys_global_symbol_to_cdecl= 7103fi 7104if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7106$as_echo "failed" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7109$as_echo "ok" >&6; } 7110fi 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133# Check whether --enable-libtool-lock was given. 7134if test "${enable_libtool_lock+set}" = set; then : 7135 enableval=$enable_libtool_lock; 7136fi 7137 7138test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7139 7140# Some flags need to be propagated to the compiler or linker for good 7141# libtool support. 7142case $host in 7143ia64-*-hpux*) 7144 # Find out which ABI we are using. 7145 echo 'int i;' > conftest.$ac_ext 7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7147 (eval $ac_compile) 2>&5 7148 ac_status=$? 7149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7150 test $ac_status = 0; }; then 7151 case `/usr/bin/file conftest.$ac_objext` in 7152 *ELF-32*) 7153 HPUX_IA64_MODE="32" 7154 ;; 7155 *ELF-64*) 7156 HPUX_IA64_MODE="64" 7157 ;; 7158 esac 7159 fi 7160 rm -rf conftest* 7161 ;; 7162*-*-irix6*) 7163 # Find out which ABI we are using. 7164 echo '#line 7164 "configure"' > conftest.$ac_ext 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7166 (eval $ac_compile) 2>&5 7167 ac_status=$? 7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7169 test $ac_status = 0; }; then 7170 if test "$lt_cv_prog_gnu_ld" = yes; then 7171 case `/usr/bin/file conftest.$ac_objext` in 7172 *32-bit*) 7173 LD="${LD-ld} -melf32bsmip" 7174 ;; 7175 *N32*) 7176 LD="${LD-ld} -melf32bmipn32" 7177 ;; 7178 *64-bit*) 7179 LD="${LD-ld} -melf64bmip" 7180 ;; 7181 esac 7182 else 7183 case `/usr/bin/file conftest.$ac_objext` in 7184 *32-bit*) 7185 LD="${LD-ld} -32" 7186 ;; 7187 *N32*) 7188 LD="${LD-ld} -n32" 7189 ;; 7190 *64-bit*) 7191 LD="${LD-ld} -64" 7192 ;; 7193 esac 7194 fi 7195 fi 7196 rm -rf conftest* 7197 ;; 7198 7199x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7200s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7201 # Find out which ABI we are using. 7202 echo 'int i;' > conftest.$ac_ext 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7204 (eval $ac_compile) 2>&5 7205 ac_status=$? 7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7207 test $ac_status = 0; }; then 7208 case `/usr/bin/file conftest.o` in 7209 *32-bit*) 7210 case $host in 7211 x86_64-*kfreebsd*-gnu) 7212 LD="${LD-ld} -m elf_i386_fbsd" 7213 ;; 7214 x86_64-*linux*) 7215 LD="${LD-ld} -m elf_i386" 7216 ;; 7217 ppc64-*linux*|powerpc64-*linux*) 7218 LD="${LD-ld} -m elf32ppclinux" 7219 ;; 7220 s390x-*linux*) 7221 LD="${LD-ld} -m elf_s390" 7222 ;; 7223 sparc64-*linux*) 7224 LD="${LD-ld} -m elf32_sparc" 7225 ;; 7226 esac 7227 ;; 7228 *64-bit*) 7229 case $host in 7230 x86_64-*kfreebsd*-gnu) 7231 LD="${LD-ld} -m elf_x86_64_fbsd" 7232 ;; 7233 x86_64-*linux*) 7234 LD="${LD-ld} -m elf_x86_64" 7235 ;; 7236 ppc*-*linux*|powerpc*-*linux*) 7237 LD="${LD-ld} -m elf64ppc" 7238 ;; 7239 s390*-*linux*|s390*-*tpf*) 7240 LD="${LD-ld} -m elf64_s390" 7241 ;; 7242 sparc*-*linux*) 7243 LD="${LD-ld} -m elf64_sparc" 7244 ;; 7245 esac 7246 ;; 7247 esac 7248 fi 7249 rm -rf conftest* 7250 ;; 7251 7252*-*-sco3.2v5*) 7253 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7254 SAVE_CFLAGS="$CFLAGS" 7255 CFLAGS="$CFLAGS -belf" 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7257$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7258if test "${lt_cv_cc_needs_belf+set}" = set; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 ac_ext=c 7262ac_cpp='$CPP $CPPFLAGS' 7263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7265ac_compiler_gnu=$ac_cv_c_compiler_gnu 7266 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269 7270int 7271main () 7272{ 7273 7274 ; 7275 return 0; 7276} 7277_ACEOF 7278if ac_fn_c_try_link "$LINENO"; then : 7279 lt_cv_cc_needs_belf=yes 7280else 7281 lt_cv_cc_needs_belf=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext \ 7284 conftest$ac_exeext conftest.$ac_ext 7285 ac_ext=c 7286ac_cpp='$CPP $CPPFLAGS' 7287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7289ac_compiler_gnu=$ac_cv_c_compiler_gnu 7290 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7293$as_echo "$lt_cv_cc_needs_belf" >&6; } 7294 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7295 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7296 CFLAGS="$SAVE_CFLAGS" 7297 fi 7298 ;; 7299sparc*-*solaris*) 7300 # Find out which ABI we are using. 7301 echo 'int i;' > conftest.$ac_ext 7302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7303 (eval $ac_compile) 2>&5 7304 ac_status=$? 7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7306 test $ac_status = 0; }; then 7307 case `/usr/bin/file conftest.o` in 7308 *64-bit*) 7309 case $lt_cv_prog_gnu_ld in 7310 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7311 *) 7312 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7313 LD="${LD-ld} -64" 7314 fi 7315 ;; 7316 esac 7317 ;; 7318 esac 7319 fi 7320 rm -rf conftest* 7321 ;; 7322esac 7323 7324need_locks="$enable_libtool_lock" 7325 7326 7327 case $host_os in 7328 rhapsody* | darwin*) 7329 if test -n "$ac_tool_prefix"; then 7330 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7331set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7333$as_echo_n "checking for $ac_word... " >&6; } 7334if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 if test -n "$DSYMUTIL"; then 7338 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7339else 7340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7341for as_dir in $PATH 7342do 7343 IFS=$as_save_IFS 7344 test -z "$as_dir" && as_dir=. 7345 for ac_exec_ext in '' $ac_executable_extensions; do 7346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7347 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7349 break 2 7350 fi 7351done 7352 done 7353IFS=$as_save_IFS 7354 7355fi 7356fi 7357DSYMUTIL=$ac_cv_prog_DSYMUTIL 7358if test -n "$DSYMUTIL"; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7360$as_echo "$DSYMUTIL" >&6; } 7361else 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7363$as_echo "no" >&6; } 7364fi 7365 7366 7367fi 7368if test -z "$ac_cv_prog_DSYMUTIL"; then 7369 ac_ct_DSYMUTIL=$DSYMUTIL 7370 # Extract the first word of "dsymutil", so it can be a program name with args. 7371set dummy dsymutil; ac_word=$2 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7373$as_echo_n "checking for $ac_word... " >&6; } 7374if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 if test -n "$ac_ct_DSYMUTIL"; then 7378 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7379else 7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381for as_dir in $PATH 7382do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7387 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7389 break 2 7390 fi 7391done 7392 done 7393IFS=$as_save_IFS 7394 7395fi 7396fi 7397ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7398if test -n "$ac_ct_DSYMUTIL"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7400$as_echo "$ac_ct_DSYMUTIL" >&6; } 7401else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7403$as_echo "no" >&6; } 7404fi 7405 7406 if test "x$ac_ct_DSYMUTIL" = x; then 7407 DSYMUTIL=":" 7408 else 7409 case $cross_compiling:$ac_tool_warned in 7410yes:) 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7413ac_tool_warned=yes ;; 7414esac 7415 DSYMUTIL=$ac_ct_DSYMUTIL 7416 fi 7417else 7418 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7419fi 7420 7421 if test -n "$ac_tool_prefix"; then 7422 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7423set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7425$as_echo_n "checking for $ac_word... " >&6; } 7426if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 if test -n "$NMEDIT"; then 7430 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7431else 7432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433for as_dir in $PATH 7434do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_exec_ext in '' $ac_executable_extensions; do 7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7439 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7441 break 2 7442 fi 7443done 7444 done 7445IFS=$as_save_IFS 7446 7447fi 7448fi 7449NMEDIT=$ac_cv_prog_NMEDIT 7450if test -n "$NMEDIT"; then 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7452$as_echo "$NMEDIT" >&6; } 7453else 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7455$as_echo "no" >&6; } 7456fi 7457 7458 7459fi 7460if test -z "$ac_cv_prog_NMEDIT"; then 7461 ac_ct_NMEDIT=$NMEDIT 7462 # Extract the first word of "nmedit", so it can be a program name with args. 7463set dummy nmedit; ac_word=$2 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7465$as_echo_n "checking for $ac_word... " >&6; } 7466if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 if test -n "$ac_ct_NMEDIT"; then 7470 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7471else 7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 test -z "$as_dir" && as_dir=. 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7479 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483done 7484 done 7485IFS=$as_save_IFS 7486 7487fi 7488fi 7489ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7490if test -n "$ac_ct_NMEDIT"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7492$as_echo "$ac_ct_NMEDIT" >&6; } 7493else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496fi 7497 7498 if test "x$ac_ct_NMEDIT" = x; then 7499 NMEDIT=":" 7500 else 7501 case $cross_compiling:$ac_tool_warned in 7502yes:) 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7505ac_tool_warned=yes ;; 7506esac 7507 NMEDIT=$ac_ct_NMEDIT 7508 fi 7509else 7510 NMEDIT="$ac_cv_prog_NMEDIT" 7511fi 7512 7513 if test -n "$ac_tool_prefix"; then 7514 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7515set dummy ${ac_tool_prefix}lipo; ac_word=$2 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7517$as_echo_n "checking for $ac_word... " >&6; } 7518if test "${ac_cv_prog_LIPO+set}" = set; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 if test -n "$LIPO"; then 7522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7523else 7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7531 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539fi 7540fi 7541LIPO=$ac_cv_prog_LIPO 7542if test -n "$LIPO"; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7544$as_echo "$LIPO" >&6; } 7545else 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547$as_echo "no" >&6; } 7548fi 7549 7550 7551fi 7552if test -z "$ac_cv_prog_LIPO"; then 7553 ac_ct_LIPO=$LIPO 7554 # Extract the first word of "lipo", so it can be a program name with args. 7555set dummy lipo; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$ac_ct_LIPO"; then 7562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7571 ac_cv_prog_ac_ct_LIPO="lipo" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7582if test -n "$ac_ct_LIPO"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7584$as_echo "$ac_ct_LIPO" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 if test "x$ac_ct_LIPO" = x; then 7591 LIPO=":" 7592 else 7593 case $cross_compiling:$ac_tool_warned in 7594yes:) 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7597ac_tool_warned=yes ;; 7598esac 7599 LIPO=$ac_ct_LIPO 7600 fi 7601else 7602 LIPO="$ac_cv_prog_LIPO" 7603fi 7604 7605 if test -n "$ac_tool_prefix"; then 7606 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7607set dummy ${ac_tool_prefix}otool; ac_word=$2 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609$as_echo_n "checking for $ac_word... " >&6; } 7610if test "${ac_cv_prog_OTOOL+set}" = set; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 if test -n "$OTOOL"; then 7614 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7615else 7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617for as_dir in $PATH 7618do 7619 IFS=$as_save_IFS 7620 test -z "$as_dir" && as_dir=. 7621 for ac_exec_ext in '' $ac_executable_extensions; do 7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7623 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7625 break 2 7626 fi 7627done 7628 done 7629IFS=$as_save_IFS 7630 7631fi 7632fi 7633OTOOL=$ac_cv_prog_OTOOL 7634if test -n "$OTOOL"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7636$as_echo "$OTOOL" >&6; } 7637else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639$as_echo "no" >&6; } 7640fi 7641 7642 7643fi 7644if test -z "$ac_cv_prog_OTOOL"; then 7645 ac_ct_OTOOL=$OTOOL 7646 # Extract the first word of "otool", so it can be a program name with args. 7647set dummy otool; ac_word=$2 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649$as_echo_n "checking for $ac_word... " >&6; } 7650if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 if test -n "$ac_ct_OTOOL"; then 7654 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7655else 7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7663 ac_cv_prog_ac_ct_OTOOL="otool" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667done 7668 done 7669IFS=$as_save_IFS 7670 7671fi 7672fi 7673ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7674if test -n "$ac_ct_OTOOL"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7676$as_echo "$ac_ct_OTOOL" >&6; } 7677else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679$as_echo "no" >&6; } 7680fi 7681 7682 if test "x$ac_ct_OTOOL" = x; then 7683 OTOOL=":" 7684 else 7685 case $cross_compiling:$ac_tool_warned in 7686yes:) 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7689ac_tool_warned=yes ;; 7690esac 7691 OTOOL=$ac_ct_OTOOL 7692 fi 7693else 7694 OTOOL="$ac_cv_prog_OTOOL" 7695fi 7696 7697 if test -n "$ac_tool_prefix"; then 7698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7699set dummy ${ac_tool_prefix}otool64; ac_word=$2 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7701$as_echo_n "checking for $ac_word... " >&6; } 7702if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 if test -n "$OTOOL64"; then 7706 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7707else 7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7709for as_dir in $PATH 7710do 7711 IFS=$as_save_IFS 7712 test -z "$as_dir" && as_dir=. 7713 for ac_exec_ext in '' $ac_executable_extensions; do 7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7715 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7717 break 2 7718 fi 7719done 7720 done 7721IFS=$as_save_IFS 7722 7723fi 7724fi 7725OTOOL64=$ac_cv_prog_OTOOL64 7726if test -n "$OTOOL64"; then 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7728$as_echo "$OTOOL64" >&6; } 7729else 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7731$as_echo "no" >&6; } 7732fi 7733 7734 7735fi 7736if test -z "$ac_cv_prog_OTOOL64"; then 7737 ac_ct_OTOOL64=$OTOOL64 7738 # Extract the first word of "otool64", so it can be a program name with args. 7739set dummy otool64; ac_word=$2 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7741$as_echo_n "checking for $ac_word... " >&6; } 7742if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 if test -n "$ac_ct_OTOOL64"; then 7746 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7747else 7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7749for as_dir in $PATH 7750do 7751 IFS=$as_save_IFS 7752 test -z "$as_dir" && as_dir=. 7753 for ac_exec_ext in '' $ac_executable_extensions; do 7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7755 ac_cv_prog_ac_ct_OTOOL64="otool64" 7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7757 break 2 7758 fi 7759done 7760 done 7761IFS=$as_save_IFS 7762 7763fi 7764fi 7765ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7766if test -n "$ac_ct_OTOOL64"; then 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7768$as_echo "$ac_ct_OTOOL64" >&6; } 7769else 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7771$as_echo "no" >&6; } 7772fi 7773 7774 if test "x$ac_ct_OTOOL64" = x; then 7775 OTOOL64=":" 7776 else 7777 case $cross_compiling:$ac_tool_warned in 7778yes:) 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7781ac_tool_warned=yes ;; 7782esac 7783 OTOOL64=$ac_ct_OTOOL64 7784 fi 7785else 7786 OTOOL64="$ac_cv_prog_OTOOL64" 7787fi 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7816$as_echo_n "checking for -single_module linker flag... " >&6; } 7817if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7818 $as_echo_n "(cached) " >&6 7819else 7820 lt_cv_apple_cc_single_mod=no 7821 if test -z "${LT_MULTI_MODULE}"; then 7822 # By default we will add the -single_module flag. You can override 7823 # by either setting the environment variable LT_MULTI_MODULE 7824 # non-empty at configure time, or by adding -multi_module to the 7825 # link flags. 7826 rm -rf libconftest.dylib* 7827 echo "int foo(void){return 1;}" > conftest.c 7828 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7829-dynamiclib -Wl,-single_module conftest.c" >&5 7830 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7831 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7832 _lt_result=$? 7833 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7834 lt_cv_apple_cc_single_mod=yes 7835 else 7836 cat conftest.err >&5 7837 fi 7838 rm -rf libconftest.dylib* 7839 rm -f conftest.* 7840 fi 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7843$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7845$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7846if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 lt_cv_ld_exported_symbols_list=no 7850 save_LDFLAGS=$LDFLAGS 7851 echo "_main" > conftest.sym 7852 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855 7856int 7857main () 7858{ 7859 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864if ac_fn_c_try_link "$LINENO"; then : 7865 lt_cv_ld_exported_symbols_list=yes 7866else 7867 lt_cv_ld_exported_symbols_list=no 7868fi 7869rm -f core conftest.err conftest.$ac_objext \ 7870 conftest$ac_exeext conftest.$ac_ext 7871 LDFLAGS="$save_LDFLAGS" 7872 7873fi 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7875$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7876 case $host_os in 7877 rhapsody* | darwin1.[012]) 7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7879 darwin1.*) 7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7881 darwin*) # darwin 5.x on 7882 # if running on 10.5 or later, the deployment target defaults 7883 # to the OS version, if on x86, and 10.4, the deployment 7884 # target defaults to 10.4. Don't you love it? 7885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7886 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7888 10.[012]*) 7889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7890 10.*) 7891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7892 esac 7893 ;; 7894 esac 7895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7896 _lt_dar_single_mod='$single_module' 7897 fi 7898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7900 else 7901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7902 fi 7903 if test "$DSYMUTIL" != ":"; then 7904 _lt_dsymutil='~$DSYMUTIL $lib || :' 7905 else 7906 _lt_dsymutil= 7907 fi 7908 ;; 7909 esac 7910 7911for ac_header in dlfcn.h 7912do : 7913 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7914" 7915if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7916 cat >>confdefs.h <<_ACEOF 7917#define HAVE_DLFCN_H 1 7918_ACEOF 7919 7920fi 7921 7922done 7923 7924 7925 7926# Set options 7927 7928 7929 7930 enable_dlopen=no 7931 7932 7933 enable_win32_dll=no 7934 7935 7936 # Check whether --enable-shared was given. 7937if test "${enable_shared+set}" = set; then : 7938 enableval=$enable_shared; p=${PACKAGE-default} 7939 case $enableval in 7940 yes) enable_shared=yes ;; 7941 no) enable_shared=no ;; 7942 *) 7943 enable_shared=no 7944 # Look at the argument we got. We use all the common list separators. 7945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7946 for pkg in $enableval; do 7947 IFS="$lt_save_ifs" 7948 if test "X$pkg" = "X$p"; then 7949 enable_shared=yes 7950 fi 7951 done 7952 IFS="$lt_save_ifs" 7953 ;; 7954 esac 7955else 7956 enable_shared=yes 7957fi 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 # Check whether --enable-static was given. 7968if test "${enable_static+set}" = set; then : 7969 enableval=$enable_static; p=${PACKAGE-default} 7970 case $enableval in 7971 yes) enable_static=yes ;; 7972 no) enable_static=no ;; 7973 *) 7974 enable_static=no 7975 # Look at the argument we got. We use all the common list separators. 7976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7977 for pkg in $enableval; do 7978 IFS="$lt_save_ifs" 7979 if test "X$pkg" = "X$p"; then 7980 enable_static=yes 7981 fi 7982 done 7983 IFS="$lt_save_ifs" 7984 ;; 7985 esac 7986else 7987 enable_static=yes 7988fi 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999# Check whether --with-pic was given. 8000if test "${with_pic+set}" = set; then : 8001 withval=$with_pic; pic_mode="$withval" 8002else 8003 pic_mode=default 8004fi 8005 8006 8007test -z "$pic_mode" && pic_mode=default 8008 8009 8010 8011 8012 8013 8014 8015 # Check whether --enable-fast-install was given. 8016if test "${enable_fast_install+set}" = set; then : 8017 enableval=$enable_fast_install; p=${PACKAGE-default} 8018 case $enableval in 8019 yes) enable_fast_install=yes ;; 8020 no) enable_fast_install=no ;; 8021 *) 8022 enable_fast_install=no 8023 # Look at the argument we got. We use all the common list separators. 8024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8025 for pkg in $enableval; do 8026 IFS="$lt_save_ifs" 8027 if test "X$pkg" = "X$p"; then 8028 enable_fast_install=yes 8029 fi 8030 done 8031 IFS="$lt_save_ifs" 8032 ;; 8033 esac 8034else 8035 enable_fast_install=yes 8036fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048# This can be used to rebuild libtool when needed 8049LIBTOOL_DEPS="$ltmain" 8050 8051# Always use our own libtool. 8052LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 8078test -z "$LN_S" && LN_S="ln -s" 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093if test -n "${ZSH_VERSION+set}" ; then 8094 setopt NO_GLOB_SUBST 8095fi 8096 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8098$as_echo_n "checking for objdir... " >&6; } 8099if test "${lt_cv_objdir+set}" = set; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 rm -f .libs 2>/dev/null 8103mkdir .libs 2>/dev/null 8104if test -d .libs; then 8105 lt_cv_objdir=.libs 8106else 8107 # MS-DOS does not allow filenames that begin with a dot. 8108 lt_cv_objdir=_libs 8109fi 8110rmdir .libs 2>/dev/null 8111fi 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8113$as_echo "$lt_cv_objdir" >&6; } 8114objdir=$lt_cv_objdir 8115 8116 8117 8118 8119 8120cat >>confdefs.h <<_ACEOF 8121#define LT_OBJDIR "$lt_cv_objdir/" 8122_ACEOF 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140case $host_os in 8141aix3*) 8142 # AIX sometimes has problems with the GCC collect2 program. For some 8143 # reason, if we set the COLLECT_NAMES environment variable, the problems 8144 # vanish in a puff of smoke. 8145 if test "X${COLLECT_NAMES+set}" != Xset; then 8146 COLLECT_NAMES= 8147 export COLLECT_NAMES 8148 fi 8149 ;; 8150esac 8151 8152# Sed substitution that helps us do robust quoting. It backslashifies 8153# metacharacters that are still active within double-quoted strings. 8154sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8155 8156# Same as above, but do not quote variable references. 8157double_quote_subst='s/\(["`\\]\)/\\\1/g' 8158 8159# Sed substitution to delay expansion of an escaped shell variable in a 8160# double_quote_subst'ed string. 8161delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8162 8163# Sed substitution to delay expansion of an escaped single quote. 8164delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8165 8166# Sed substitution to avoid accidental globbing in evaled expressions 8167no_glob_subst='s/\*/\\\*/g' 8168 8169# Global variables: 8170ofile=libtool 8171can_build_shared=yes 8172 8173# All known linkers require a `.a' archive for static linking (except MSVC, 8174# which needs '.lib'). 8175libext=a 8176 8177with_gnu_ld="$lt_cv_prog_gnu_ld" 8178 8179old_CC="$CC" 8180old_CFLAGS="$CFLAGS" 8181 8182# Set sane defaults for various variables 8183test -z "$CC" && CC=cc 8184test -z "$LTCC" && LTCC=$CC 8185test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8186test -z "$LD" && LD=ld 8187test -z "$ac_objext" && ac_objext=o 8188 8189for cc_temp in $compiler""; do 8190 case $cc_temp in 8191 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8192 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8193 \-*) ;; 8194 *) break;; 8195 esac 8196done 8197cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8198 8199 8200# Only perform the check for file, if the check method requires it 8201test -z "$MAGIC_CMD" && MAGIC_CMD=file 8202case $deplibs_check_method in 8203file_magic*) 8204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8206$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8207if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 case $MAGIC_CMD in 8211[\\/*] | ?:[\\/]*) 8212 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8213 ;; 8214*) 8215 lt_save_MAGIC_CMD="$MAGIC_CMD" 8216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8218 for ac_dir in $ac_dummy; do 8219 IFS="$lt_save_ifs" 8220 test -z "$ac_dir" && ac_dir=. 8221 if test -f $ac_dir/${ac_tool_prefix}file; then 8222 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8223 if test -n "$file_magic_test_file"; then 8224 case $deplibs_check_method in 8225 "file_magic "*) 8226 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8229 $EGREP "$file_magic_regex" > /dev/null; then 8230 : 8231 else 8232 cat <<_LT_EOF 1>&2 8233 8234*** Warning: the command libtool uses to detect shared libraries, 8235*** $file_magic_cmd, produces output that libtool cannot recognize. 8236*** The result is that libtool may fail to recognize shared libraries 8237*** as such. This will affect the creation of libtool libraries that 8238*** depend on shared libraries, but programs linked with such libtool 8239*** libraries will work regardless of this problem. Nevertheless, you 8240*** may want to report the problem to your system manager and/or to 8241*** bug-libtool@gnu.org 8242 8243_LT_EOF 8244 fi ;; 8245 esac 8246 fi 8247 break 8248 fi 8249 done 8250 IFS="$lt_save_ifs" 8251 MAGIC_CMD="$lt_save_MAGIC_CMD" 8252 ;; 8253esac 8254fi 8255 8256MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8257if test -n "$MAGIC_CMD"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8259$as_echo "$MAGIC_CMD" >&6; } 8260else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262$as_echo "no" >&6; } 8263fi 8264 8265 8266 8267 8268 8269if test -z "$lt_cv_path_MAGIC_CMD"; then 8270 if test -n "$ac_tool_prefix"; then 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8272$as_echo_n "checking for file... " >&6; } 8273if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 case $MAGIC_CMD in 8277[\\/*] | ?:[\\/]*) 8278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8279 ;; 8280*) 8281 lt_save_MAGIC_CMD="$MAGIC_CMD" 8282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8284 for ac_dir in $ac_dummy; do 8285 IFS="$lt_save_ifs" 8286 test -z "$ac_dir" && ac_dir=. 8287 if test -f $ac_dir/file; then 8288 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8289 if test -n "$file_magic_test_file"; then 8290 case $deplibs_check_method in 8291 "file_magic "*) 8292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8295 $EGREP "$file_magic_regex" > /dev/null; then 8296 : 8297 else 8298 cat <<_LT_EOF 1>&2 8299 8300*** Warning: the command libtool uses to detect shared libraries, 8301*** $file_magic_cmd, produces output that libtool cannot recognize. 8302*** The result is that libtool may fail to recognize shared libraries 8303*** as such. This will affect the creation of libtool libraries that 8304*** depend on shared libraries, but programs linked with such libtool 8305*** libraries will work regardless of this problem. Nevertheless, you 8306*** may want to report the problem to your system manager and/or to 8307*** bug-libtool@gnu.org 8308 8309_LT_EOF 8310 fi ;; 8311 esac 8312 fi 8313 break 8314 fi 8315 done 8316 IFS="$lt_save_ifs" 8317 MAGIC_CMD="$lt_save_MAGIC_CMD" 8318 ;; 8319esac 8320fi 8321 8322MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8323if test -n "$MAGIC_CMD"; then 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8325$as_echo "$MAGIC_CMD" >&6; } 8326else 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8328$as_echo "no" >&6; } 8329fi 8330 8331 8332 else 8333 MAGIC_CMD=: 8334 fi 8335fi 8336 8337 fi 8338 ;; 8339esac 8340 8341# Use C for the default configuration in the libtool script 8342 8343lt_save_CC="$CC" 8344ac_ext=c 8345ac_cpp='$CPP $CPPFLAGS' 8346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8348ac_compiler_gnu=$ac_cv_c_compiler_gnu 8349 8350 8351# Source file extension for C test sources. 8352ac_ext=c 8353 8354# Object file extension for compiled C test sources. 8355objext=o 8356objext=$objext 8357 8358# Code to be used in simple compile tests 8359lt_simple_compile_test_code="int some_variable = 0;" 8360 8361# Code to be used in simple link tests 8362lt_simple_link_test_code='int main(){return(0);}' 8363 8364 8365 8366 8367 8368 8369 8370# If no C compiler was specified, use CC. 8371LTCC=${LTCC-"$CC"} 8372 8373# If no C compiler flags were specified, use CFLAGS. 8374LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8375 8376# Allow CC to be a program name with arguments. 8377compiler=$CC 8378 8379# Save the default compiler, since it gets overwritten when the other 8380# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8381compiler_DEFAULT=$CC 8382 8383# save warnings/boilerplate of simple test code 8384ac_outfile=conftest.$ac_objext 8385echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8387_lt_compiler_boilerplate=`cat conftest.err` 8388$RM conftest* 8389 8390ac_outfile=conftest.$ac_objext 8391echo "$lt_simple_link_test_code" >conftest.$ac_ext 8392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8393_lt_linker_boilerplate=`cat conftest.err` 8394$RM -r conftest* 8395 8396 8397if test -n "$compiler"; then 8398 8399lt_prog_compiler_no_builtin_flag= 8400 8401if test "$GCC" = yes; then 8402 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8405$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8406if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 lt_cv_prog_compiler_rtti_exceptions=no 8410 ac_outfile=conftest.$ac_objext 8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8412 lt_compiler_flag="-fno-rtti -fno-exceptions" 8413 # Insert the option either (1) after the last *FLAGS variable, or 8414 # (2) before a word containing "conftest.", or (3) at the end. 8415 # Note that $ac_compile itself does not contain backslashes and begins 8416 # with a dollar sign (not a hyphen), so the echo should work correctly. 8417 # The option is referenced via a variable to avoid confusing sed. 8418 lt_compile=`echo "$ac_compile" | $SED \ 8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8421 -e 's:$: $lt_compiler_flag:'` 8422 (eval echo "\"\$as_me:8422: $lt_compile\"" >&5) 8423 (eval "$lt_compile" 2>conftest.err) 8424 ac_status=$? 8425 cat conftest.err >&5 8426 echo "$as_me:8426: \$? = $ac_status" >&5 8427 if (exit $ac_status) && test -s "$ac_outfile"; then 8428 # The compiler can only warn and ignore the option if not recognized 8429 # So say no if there are warnings other than the usual output. 8430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8433 lt_cv_prog_compiler_rtti_exceptions=yes 8434 fi 8435 fi 8436 $RM conftest* 8437 8438fi 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8440$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8441 8442if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8444else 8445 : 8446fi 8447 8448fi 8449 8450 8451 8452 8453 8454 8455 lt_prog_compiler_wl= 8456lt_prog_compiler_pic= 8457lt_prog_compiler_static= 8458 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8460$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8461 8462 if test "$GCC" = yes; then 8463 lt_prog_compiler_wl='-Wl,' 8464 lt_prog_compiler_static='-static' 8465 8466 case $host_os in 8467 aix*) 8468 # All AIX code is PIC. 8469 if test "$host_cpu" = ia64; then 8470 # AIX 5 now supports IA64 processor 8471 lt_prog_compiler_static='-Bstatic' 8472 fi 8473 ;; 8474 8475 amigaos*) 8476 case $host_cpu in 8477 powerpc) 8478 # see comment about AmigaOS4 .so support 8479 lt_prog_compiler_pic='-fPIC' 8480 ;; 8481 m68k) 8482 # FIXME: we need at least 68020 code to build shared libraries, but 8483 # adding the `-m68020' flag to GCC prevents building anything better, 8484 # like `-m68040'. 8485 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8486 ;; 8487 esac 8488 ;; 8489 8490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8491 # PIC is the default for these OSes. 8492 ;; 8493 8494 mingw* | cygwin* | pw32* | os2* | cegcc*) 8495 # This hack is so that the source file can tell whether it is being 8496 # built for inclusion in a dll (and should export symbols for example). 8497 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8498 # (--disable-auto-import) libraries 8499 lt_prog_compiler_pic='-DDLL_EXPORT' 8500 ;; 8501 8502 darwin* | rhapsody*) 8503 # PIC is the default on this platform 8504 # Common symbols not allowed in MH_DYLIB files 8505 lt_prog_compiler_pic='-fno-common' 8506 ;; 8507 8508 hpux*) 8509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8511 # sets the default TLS model and affects inlining. 8512 case $host_cpu in 8513 hppa*64*) 8514 # +Z the default 8515 ;; 8516 *) 8517 lt_prog_compiler_pic='-fPIC' 8518 ;; 8519 esac 8520 ;; 8521 8522 interix[3-9]*) 8523 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8524 # Instead, we relocate shared libraries at runtime. 8525 ;; 8526 8527 msdosdjgpp*) 8528 # Just because we use GCC doesn't mean we suddenly get shared libraries 8529 # on systems that don't support them. 8530 lt_prog_compiler_can_build_shared=no 8531 enable_shared=no 8532 ;; 8533 8534 *nto* | *qnx*) 8535 # QNX uses GNU C++, but need to define -shared option too, otherwise 8536 # it will coredump. 8537 lt_prog_compiler_pic='-fPIC -shared' 8538 ;; 8539 8540 sysv4*MP*) 8541 if test -d /usr/nec; then 8542 lt_prog_compiler_pic=-Kconform_pic 8543 fi 8544 ;; 8545 8546 *) 8547 lt_prog_compiler_pic='-fPIC' 8548 ;; 8549 esac 8550 else 8551 # PORTME Check for flag to pass linker flags through the system compiler. 8552 case $host_os in 8553 aix*) 8554 lt_prog_compiler_wl='-Wl,' 8555 if test "$host_cpu" = ia64; then 8556 # AIX 5 now supports IA64 processor 8557 lt_prog_compiler_static='-Bstatic' 8558 else 8559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8560 fi 8561 ;; 8562 8563 mingw* | cygwin* | pw32* | os2* | cegcc*) 8564 # This hack is so that the source file can tell whether it is being 8565 # built for inclusion in a dll (and should export symbols for example). 8566 lt_prog_compiler_pic='-DDLL_EXPORT' 8567 ;; 8568 8569 hpux9* | hpux10* | hpux11*) 8570 lt_prog_compiler_wl='-Wl,' 8571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8572 # not for PA HP-UX. 8573 case $host_cpu in 8574 hppa*64*|ia64*) 8575 # +Z the default 8576 ;; 8577 *) 8578 lt_prog_compiler_pic='+Z' 8579 ;; 8580 esac 8581 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8582 lt_prog_compiler_static='${wl}-a ${wl}archive' 8583 ;; 8584 8585 irix5* | irix6* | nonstopux*) 8586 lt_prog_compiler_wl='-Wl,' 8587 # PIC (with -KPIC) is the default. 8588 lt_prog_compiler_static='-non_shared' 8589 ;; 8590 8591 linux* | k*bsd*-gnu) 8592 case $cc_basename in 8593 # old Intel for x86_64 which still supported -KPIC. 8594 ecc*) 8595 lt_prog_compiler_wl='-Wl,' 8596 lt_prog_compiler_pic='-KPIC' 8597 lt_prog_compiler_static='-static' 8598 ;; 8599 # icc used to be incompatible with GCC. 8600 # ICC 10 doesn't accept -KPIC any more. 8601 icc* | ifort*) 8602 lt_prog_compiler_wl='-Wl,' 8603 lt_prog_compiler_pic='-fPIC' 8604 lt_prog_compiler_static='-static' 8605 ;; 8606 # Lahey Fortran 8.1. 8607 lf95*) 8608 lt_prog_compiler_wl='-Wl,' 8609 lt_prog_compiler_pic='--shared' 8610 lt_prog_compiler_static='--static' 8611 ;; 8612 pgcc* | pgf77* | pgf90* | pgf95*) 8613 # Portland Group compilers (*not* the Pentium gcc compiler, 8614 # which looks to be a dead project) 8615 lt_prog_compiler_wl='-Wl,' 8616 lt_prog_compiler_pic='-fpic' 8617 lt_prog_compiler_static='-Bstatic' 8618 ;; 8619 ccc*) 8620 lt_prog_compiler_wl='-Wl,' 8621 # All Alpha code is PIC. 8622 lt_prog_compiler_static='-non_shared' 8623 ;; 8624 xl*) 8625 # IBM XL C 8.0/Fortran 10.1 on PPC 8626 lt_prog_compiler_wl='-Wl,' 8627 lt_prog_compiler_pic='-qpic' 8628 lt_prog_compiler_static='-qstaticlink' 8629 ;; 8630 *) 8631 case `$CC -V 2>&1 | sed 5q` in 8632 *Sun\ C*) 8633 # Sun C 5.9 8634 lt_prog_compiler_pic='-KPIC' 8635 lt_prog_compiler_static='-Bstatic' 8636 lt_prog_compiler_wl='-Wl,' 8637 ;; 8638 *Sun\ F*) 8639 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8640 lt_prog_compiler_pic='-KPIC' 8641 lt_prog_compiler_static='-Bstatic' 8642 lt_prog_compiler_wl='' 8643 ;; 8644 esac 8645 ;; 8646 esac 8647 ;; 8648 8649 newsos6) 8650 lt_prog_compiler_pic='-KPIC' 8651 lt_prog_compiler_static='-Bstatic' 8652 ;; 8653 8654 *nto* | *qnx*) 8655 # QNX uses GNU C++, but need to define -shared option too, otherwise 8656 # it will coredump. 8657 lt_prog_compiler_pic='-fPIC -shared' 8658 ;; 8659 8660 osf3* | osf4* | osf5*) 8661 lt_prog_compiler_wl='-Wl,' 8662 # All OSF/1 code is PIC. 8663 lt_prog_compiler_static='-non_shared' 8664 ;; 8665 8666 rdos*) 8667 lt_prog_compiler_static='-non_shared' 8668 ;; 8669 8670 solaris*) 8671 lt_prog_compiler_pic='-KPIC' 8672 lt_prog_compiler_static='-Bstatic' 8673 case $cc_basename in 8674 f77* | f90* | f95*) 8675 lt_prog_compiler_wl='-Qoption ld ';; 8676 *) 8677 lt_prog_compiler_wl='-Wl,';; 8678 esac 8679 ;; 8680 8681 sunos4*) 8682 lt_prog_compiler_wl='-Qoption ld ' 8683 lt_prog_compiler_pic='-PIC' 8684 lt_prog_compiler_static='-Bstatic' 8685 ;; 8686 8687 sysv4 | sysv4.2uw2* | sysv4.3*) 8688 lt_prog_compiler_wl='-Wl,' 8689 lt_prog_compiler_pic='-KPIC' 8690 lt_prog_compiler_static='-Bstatic' 8691 ;; 8692 8693 sysv4*MP*) 8694 if test -d /usr/nec ;then 8695 lt_prog_compiler_pic='-Kconform_pic' 8696 lt_prog_compiler_static='-Bstatic' 8697 fi 8698 ;; 8699 8700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8701 lt_prog_compiler_wl='-Wl,' 8702 lt_prog_compiler_pic='-KPIC' 8703 lt_prog_compiler_static='-Bstatic' 8704 ;; 8705 8706 unicos*) 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_can_build_shared=no 8709 ;; 8710 8711 uts4*) 8712 lt_prog_compiler_pic='-pic' 8713 lt_prog_compiler_static='-Bstatic' 8714 ;; 8715 8716 *) 8717 lt_prog_compiler_can_build_shared=no 8718 ;; 8719 esac 8720 fi 8721 8722case $host_os in 8723 # For platforms which do not support PIC, -DPIC is meaningless: 8724 *djgpp*) 8725 lt_prog_compiler_pic= 8726 ;; 8727 *) 8728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8729 ;; 8730esac 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8732$as_echo "$lt_prog_compiler_pic" >&6; } 8733 8734 8735 8736 8737 8738 8739# 8740# Check to make sure the PIC flag actually works. 8741# 8742if test -n "$lt_prog_compiler_pic"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8744$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8745if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 lt_cv_prog_compiler_pic_works=no 8749 ac_outfile=conftest.$ac_objext 8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8752 # Insert the option either (1) after the last *FLAGS variable, or 8753 # (2) before a word containing "conftest.", or (3) at the end. 8754 # Note that $ac_compile itself does not contain backslashes and begins 8755 # with a dollar sign (not a hyphen), so the echo should work correctly. 8756 # The option is referenced via a variable to avoid confusing sed. 8757 lt_compile=`echo "$ac_compile" | $SED \ 8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8760 -e 's:$: $lt_compiler_flag:'` 8761 (eval echo "\"\$as_me:8761: $lt_compile\"" >&5) 8762 (eval "$lt_compile" 2>conftest.err) 8763 ac_status=$? 8764 cat conftest.err >&5 8765 echo "$as_me:8765: \$? = $ac_status" >&5 8766 if (exit $ac_status) && test -s "$ac_outfile"; then 8767 # The compiler can only warn and ignore the option if not recognized 8768 # So say no if there are warnings other than the usual output. 8769 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8772 lt_cv_prog_compiler_pic_works=yes 8773 fi 8774 fi 8775 $RM conftest* 8776 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8779$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8780 8781if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8782 case $lt_prog_compiler_pic in 8783 "" | " "*) ;; 8784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8785 esac 8786else 8787 lt_prog_compiler_pic= 8788 lt_prog_compiler_can_build_shared=no 8789fi 8790 8791fi 8792 8793 8794 8795 8796 8797 8798# 8799# Check to make sure the static flag actually works. 8800# 8801wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8803$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8804if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8805 $as_echo_n "(cached) " >&6 8806else 8807 lt_cv_prog_compiler_static_works=no 8808 save_LDFLAGS="$LDFLAGS" 8809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8810 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8812 # The linker can only warn and ignore the option if not recognized 8813 # So say no if there are warnings 8814 if test -s conftest.err; then 8815 # Append any errors to the config.log. 8816 cat conftest.err 1>&5 8817 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8819 if diff conftest.exp conftest.er2 >/dev/null; then 8820 lt_cv_prog_compiler_static_works=yes 8821 fi 8822 else 8823 lt_cv_prog_compiler_static_works=yes 8824 fi 8825 fi 8826 $RM -r conftest* 8827 LDFLAGS="$save_LDFLAGS" 8828 8829fi 8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8831$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8832 8833if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8834 : 8835else 8836 lt_prog_compiler_static= 8837fi 8838 8839 8840 8841 8842 8843 8844 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8846$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8847if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8848 $as_echo_n "(cached) " >&6 8849else 8850 lt_cv_prog_compiler_c_o=no 8851 $RM -r conftest 2>/dev/null 8852 mkdir conftest 8853 cd conftest 8854 mkdir out 8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8856 8857 lt_compiler_flag="-o out/conftest2.$ac_objext" 8858 # Insert the option either (1) after the last *FLAGS variable, or 8859 # (2) before a word containing "conftest.", or (3) at the end. 8860 # Note that $ac_compile itself does not contain backslashes and begins 8861 # with a dollar sign (not a hyphen), so the echo should work correctly. 8862 lt_compile=`echo "$ac_compile" | $SED \ 8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8865 -e 's:$: $lt_compiler_flag:'` 8866 (eval echo "\"\$as_me:8866: $lt_compile\"" >&5) 8867 (eval "$lt_compile" 2>out/conftest.err) 8868 ac_status=$? 8869 cat out/conftest.err >&5 8870 echo "$as_me:8870: \$? = $ac_status" >&5 8871 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8872 then 8873 # The compiler can only warn and ignore the option if not recognized 8874 # So say no if there are warnings 8875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8878 lt_cv_prog_compiler_c_o=yes 8879 fi 8880 fi 8881 chmod u+w . 2>&5 8882 $RM conftest* 8883 # SGI C++ compiler will create directory out/ii_files/ for 8884 # template instantiation 8885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8886 $RM out/* && rmdir out 8887 cd .. 8888 $RM -r conftest 8889 $RM conftest* 8890 8891fi 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8893$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8894 8895 8896 8897 8898 8899 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8902if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 lt_cv_prog_compiler_c_o=no 8906 $RM -r conftest 2>/dev/null 8907 mkdir conftest 8908 cd conftest 8909 mkdir out 8910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8911 8912 lt_compiler_flag="-o out/conftest2.$ac_objext" 8913 # Insert the option either (1) after the last *FLAGS variable, or 8914 # (2) before a word containing "conftest.", or (3) at the end. 8915 # Note that $ac_compile itself does not contain backslashes and begins 8916 # with a dollar sign (not a hyphen), so the echo should work correctly. 8917 lt_compile=`echo "$ac_compile" | $SED \ 8918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8920 -e 's:$: $lt_compiler_flag:'` 8921 (eval echo "\"\$as_me:8921: $lt_compile\"" >&5) 8922 (eval "$lt_compile" 2>out/conftest.err) 8923 ac_status=$? 8924 cat out/conftest.err >&5 8925 echo "$as_me:8925: \$? = $ac_status" >&5 8926 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8927 then 8928 # The compiler can only warn and ignore the option if not recognized 8929 # So say no if there are warnings 8930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8933 lt_cv_prog_compiler_c_o=yes 8934 fi 8935 fi 8936 chmod u+w . 2>&5 8937 $RM conftest* 8938 # SGI C++ compiler will create directory out/ii_files/ for 8939 # template instantiation 8940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8941 $RM out/* && rmdir out 8942 cd .. 8943 $RM -r conftest 8944 $RM conftest* 8945 8946fi 8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8948$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8949 8950 8951 8952 8953hard_links="nottested" 8954if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8955 # do not overwrite the value of need_locks provided by the user 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8957$as_echo_n "checking if we can lock with hard links... " >&6; } 8958 hard_links=yes 8959 $RM conftest* 8960 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8961 touch conftest.a 8962 ln conftest.a conftest.b 2>&5 || hard_links=no 8963 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8965$as_echo "$hard_links" >&6; } 8966 if test "$hard_links" = no; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8968$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8969 need_locks=warn 8970 fi 8971else 8972 need_locks=no 8973fi 8974 8975 8976 8977 8978 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8981$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8982 8983 runpath_var= 8984 allow_undefined_flag= 8985 always_export_symbols=no 8986 archive_cmds= 8987 archive_expsym_cmds= 8988 compiler_needs_object=no 8989 enable_shared_with_static_runtimes=no 8990 export_dynamic_flag_spec= 8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8992 hardcode_automatic=no 8993 hardcode_direct=no 8994 hardcode_direct_absolute=no 8995 hardcode_libdir_flag_spec= 8996 hardcode_libdir_flag_spec_ld= 8997 hardcode_libdir_separator= 8998 hardcode_minus_L=no 8999 hardcode_shlibpath_var=unsupported 9000 inherit_rpath=no 9001 link_all_deplibs=unknown 9002 module_cmds= 9003 module_expsym_cmds= 9004 old_archive_from_new_cmds= 9005 old_archive_from_expsyms_cmds= 9006 thread_safe_flag_spec= 9007 whole_archive_flag_spec= 9008 # include_expsyms should be a list of space-separated symbols to be *always* 9009 # included in the symbol list 9010 include_expsyms= 9011 # exclude_expsyms can be an extended regexp of symbols to exclude 9012 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9014 # as well as any symbol that contains `d'. 9015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9017 # platforms (ab)use it in PIC code, but their linkers get confused if 9018 # the symbol is explicitly referenced. Since portable code cannot 9019 # rely on this symbol name, it's probably fine to never include it in 9020 # preloaded symbol tables. 9021 # Exclude shared library initialization/finalization symbols. 9022 extract_expsyms_cmds= 9023 9024 case $host_os in 9025 cygwin* | mingw* | pw32* | cegcc*) 9026 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9027 # When not using gcc, we currently assume that we are using 9028 # Microsoft Visual C++. 9029 if test "$GCC" != yes; then 9030 with_gnu_ld=no 9031 fi 9032 ;; 9033 interix*) 9034 # we just hope/assume this is gcc and not c89 (= MSVC++) 9035 with_gnu_ld=yes 9036 ;; 9037 openbsd*) 9038 with_gnu_ld=no 9039 ;; 9040 esac 9041 9042 ld_shlibs=yes 9043 if test "$with_gnu_ld" = yes; then 9044 # If archive_cmds runs LD, not CC, wlarc should be empty 9045 wlarc='${wl}' 9046 9047 # Set some defaults for GNU ld with shared library support. These 9048 # are reset later if shared libraries are not supported. Putting them 9049 # here allows them to be overridden if necessary. 9050 runpath_var=LD_RUN_PATH 9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9052 export_dynamic_flag_spec='${wl}--export-dynamic' 9053 # ancient GNU ld didn't support --whole-archive et. al. 9054 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9055 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9056 else 9057 whole_archive_flag_spec= 9058 fi 9059 supports_anon_versioning=no 9060 case `$LD -v 2>&1` in 9061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9064 *\ 2.11.*) ;; # other 2.11 versions 9065 *) supports_anon_versioning=yes ;; 9066 esac 9067 9068 # See if GNU ld supports shared libraries. 9069 case $host_os in 9070 aix[3-9]*) 9071 # On AIX/PPC, the GNU linker is very broken 9072 if test "$host_cpu" != ia64; then 9073 ld_shlibs=no 9074 cat <<_LT_EOF 1>&2 9075 9076*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9077*** to be unable to reliably create shared libraries on AIX. 9078*** Therefore, libtool is disabling shared libraries support. If you 9079*** really care for shared libraries, you may want to modify your PATH 9080*** so that a non-GNU linker is found, and then restart. 9081 9082_LT_EOF 9083 fi 9084 ;; 9085 9086 amigaos*) 9087 case $host_cpu in 9088 powerpc) 9089 # see comment about AmigaOS4 .so support 9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='' 9092 ;; 9093 m68k) 9094 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)' 9095 hardcode_libdir_flag_spec='-L$libdir' 9096 hardcode_minus_L=yes 9097 ;; 9098 esac 9099 ;; 9100 9101 beos*) 9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9103 allow_undefined_flag=unsupported 9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9105 # support --undefined. This deserves some investigation. FIXME 9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9107 else 9108 ld_shlibs=no 9109 fi 9110 ;; 9111 9112 cygwin* | mingw* | pw32* | cegcc*) 9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9114 # as there is no search path for DLLs. 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 allow_undefined_flag=unsupported 9117 always_export_symbols=no 9118 enable_shared_with_static_runtimes=yes 9119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9120 9121 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9123 # If the export-symbols file already is a .def file (1st line 9124 # is EXPORTS), use it as is; otherwise, prepend... 9125 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9126 cp $export_symbols $output_objdir/$soname.def; 9127 else 9128 echo EXPORTS > $output_objdir/$soname.def; 9129 cat $export_symbols >> $output_objdir/$soname.def; 9130 fi~ 9131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9132 else 9133 ld_shlibs=no 9134 fi 9135 ;; 9136 9137 interix[3-9]*) 9138 hardcode_direct=no 9139 hardcode_shlibpath_var=no 9140 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9141 export_dynamic_flag_spec='${wl}-E' 9142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9143 # Instead, shared libraries are loaded at an image base (0x10000000 by 9144 # default) and relocated if they conflict, which is a slow very memory 9145 # consuming and fragmenting process. To avoid this, we pick a random, 9146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9147 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9149 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' 9150 ;; 9151 9152 gnu* | linux* | tpf* | k*bsd*-gnu) 9153 tmp_diet=no 9154 if test "$host_os" = linux-dietlibc; then 9155 case $cc_basename in 9156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9157 esac 9158 fi 9159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9160 && test "$tmp_diet" = no 9161 then 9162 tmp_addflag= 9163 tmp_sharedflag='-shared' 9164 case $cc_basename,$host_cpu in 9165 pgcc*) # Portland Group C compiler 9166 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9167 tmp_addflag=' $pic_flag' 9168 ;; 9169 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9170 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9171 tmp_addflag=' $pic_flag -Mnomain' ;; 9172 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9173 tmp_addflag=' -i_dynamic' ;; 9174 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9175 tmp_addflag=' -i_dynamic -nofor_main' ;; 9176 ifc* | ifort*) # Intel Fortran compiler 9177 tmp_addflag=' -nofor_main' ;; 9178 lf95*) # Lahey Fortran 8.1 9179 whole_archive_flag_spec= 9180 tmp_sharedflag='--shared' ;; 9181 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9182 tmp_sharedflag='-qmkshrobj' 9183 tmp_addflag= ;; 9184 esac 9185 case `$CC -V 2>&1 | sed 5q` in 9186 *Sun\ C*) # Sun C 5.9 9187 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9188 compiler_needs_object=yes 9189 tmp_sharedflag='-G' ;; 9190 *Sun\ F*) # Sun Fortran 8.3 9191 tmp_sharedflag='-G' ;; 9192 esac 9193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 9195 if test "x$supports_anon_versioning" = xyes; then 9196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9198 echo "local: *; };" >> $output_objdir/$libname.ver~ 9199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9200 fi 9201 9202 case $cc_basename in 9203 xlf*) 9204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9206 hardcode_libdir_flag_spec= 9207 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9208 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9209 if test "x$supports_anon_versioning" = xyes; then 9210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9212 echo "local: *; };" >> $output_objdir/$libname.ver~ 9213 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9214 fi 9215 ;; 9216 esac 9217 else 9218 ld_shlibs=no 9219 fi 9220 ;; 9221 9222 netbsd*) 9223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9225 wlarc= 9226 else 9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9229 fi 9230 ;; 9231 9232 solaris*) 9233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9234 ld_shlibs=no 9235 cat <<_LT_EOF 1>&2 9236 9237*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9238*** create shared libraries on Solaris systems. Therefore, libtool 9239*** is disabling shared libraries support. We urge you to upgrade GNU 9240*** binutils to release 2.9.1 or newer. Another option is to modify 9241*** your PATH or compiler configuration so that the native linker is 9242*** used, and then restart. 9243 9244_LT_EOF 9245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9248 else 9249 ld_shlibs=no 9250 fi 9251 ;; 9252 9253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9254 case `$LD -v 2>&1` in 9255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9256 ld_shlibs=no 9257 cat <<_LT_EOF 1>&2 9258 9259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9260*** reliably create shared libraries on SCO systems. Therefore, libtool 9261*** is disabling shared libraries support. We urge you to upgrade GNU 9262*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9263*** your PATH or compiler configuration so that the native linker is 9264*** used, and then restart. 9265 9266_LT_EOF 9267 ;; 9268 *) 9269 # For security reasons, it is highly recommended that you always 9270 # use absolute paths for naming shared libraries, and exclude the 9271 # DT_RUNPATH tag from executables and libraries. But doing so 9272 # requires that you compile everything twice, which is a pain. 9273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9277 else 9278 ld_shlibs=no 9279 fi 9280 ;; 9281 esac 9282 ;; 9283 9284 sunos4*) 9285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9286 wlarc= 9287 hardcode_direct=yes 9288 hardcode_shlibpath_var=no 9289 ;; 9290 9291 *) 9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9295 else 9296 ld_shlibs=no 9297 fi 9298 ;; 9299 esac 9300 9301 if test "$ld_shlibs" = no; then 9302 runpath_var= 9303 hardcode_libdir_flag_spec= 9304 export_dynamic_flag_spec= 9305 whole_archive_flag_spec= 9306 fi 9307 else 9308 # PORTME fill in a description of your system's linker (not GNU ld) 9309 case $host_os in 9310 aix3*) 9311 allow_undefined_flag=unsupported 9312 always_export_symbols=yes 9313 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' 9314 # Note: this linker hardcodes the directories in LIBPATH if there 9315 # are no directories specified by -L. 9316 hardcode_minus_L=yes 9317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9318 # Neither direct hardcoding nor static linking is supported with a 9319 # broken collect2. 9320 hardcode_direct=unsupported 9321 fi 9322 ;; 9323 9324 aix[4-9]*) 9325 if test "$host_cpu" = ia64; then 9326 # On IA64, the linker does run time linking by default, so we don't 9327 # have to do anything special. 9328 aix_use_runtimelinking=no 9329 exp_sym_flag='-Bexport' 9330 no_entry_flag="" 9331 else 9332 # If we're using GNU nm, then we don't want the "-C" option. 9333 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9334 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9335 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9336 else 9337 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9338 fi 9339 aix_use_runtimelinking=no 9340 9341 # Test if we are trying to use run time linking or normal 9342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9343 # need to do runtime linking. 9344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9345 for ld_flag in $LDFLAGS; do 9346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9347 aix_use_runtimelinking=yes 9348 break 9349 fi 9350 done 9351 ;; 9352 esac 9353 9354 exp_sym_flag='-bexport' 9355 no_entry_flag='-bnoentry' 9356 fi 9357 9358 # When large executables or shared objects are built, AIX ld can 9359 # have problems creating the table of contents. If linking a library 9360 # or program results in "error TOC overflow" add -mminimal-toc to 9361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9363 9364 archive_cmds='' 9365 hardcode_direct=yes 9366 hardcode_direct_absolute=yes 9367 hardcode_libdir_separator=':' 9368 link_all_deplibs=yes 9369 file_list_spec='${wl}-f,' 9370 9371 if test "$GCC" = yes; then 9372 case $host_os in aix4.[012]|aix4.[012].*) 9373 # We only want to do this on AIX 4.2 and lower, the check 9374 # below for broken collect2 doesn't work under 4.3+ 9375 collect2name=`${CC} -print-prog-name=collect2` 9376 if test -f "$collect2name" && 9377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9378 then 9379 # We have reworked collect2 9380 : 9381 else 9382 # We have old collect2 9383 hardcode_direct=unsupported 9384 # It fails to find uninstalled libraries when the uninstalled 9385 # path is not listed in the libpath. Setting hardcode_minus_L 9386 # to unsupported forces relinking 9387 hardcode_minus_L=yes 9388 hardcode_libdir_flag_spec='-L$libdir' 9389 hardcode_libdir_separator= 9390 fi 9391 ;; 9392 esac 9393 shared_flag='-shared' 9394 if test "$aix_use_runtimelinking" = yes; then 9395 shared_flag="$shared_flag "'${wl}-G' 9396 fi 9397 else 9398 # not using gcc 9399 if test "$host_cpu" = ia64; then 9400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9401 # chokes on -Wl,-G. The following line is correct: 9402 shared_flag='-G' 9403 else 9404 if test "$aix_use_runtimelinking" = yes; then 9405 shared_flag='${wl}-G' 9406 else 9407 shared_flag='${wl}-bM:SRE' 9408 fi 9409 fi 9410 fi 9411 9412 export_dynamic_flag_spec='${wl}-bexpall' 9413 # It seems that -bexpall does not export symbols beginning with 9414 # underscore (_), so it is better to generate a list of symbols to export. 9415 always_export_symbols=yes 9416 if test "$aix_use_runtimelinking" = yes; then 9417 # Warning - without using the other runtime loading flags (-brtl), 9418 # -berok will link without error, but may produce a broken library. 9419 allow_undefined_flag='-berok' 9420 # Determine the default libpath from the value encoded in an 9421 # empty executable. 9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9423/* end confdefs.h. */ 9424 9425int 9426main () 9427{ 9428 9429 ; 9430 return 0; 9431} 9432_ACEOF 9433if ac_fn_c_try_link "$LINENO"; then : 9434 9435lt_aix_libpath_sed=' 9436 /Import File Strings/,/^$/ { 9437 /^0/ { 9438 s/^0 *\(.*\)$/\1/ 9439 p 9440 } 9441 }' 9442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9443# Check for a 64-bit object if we didn't find anything. 9444if test -z "$aix_libpath"; then 9445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9446fi 9447fi 9448rm -f core conftest.err conftest.$ac_objext \ 9449 conftest$ac_exeext conftest.$ac_ext 9450if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9451 9452 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9453 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9454 else 9455 if test "$host_cpu" = ia64; then 9456 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9457 allow_undefined_flag="-z nodefs" 9458 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" 9459 else 9460 # Determine the default libpath from the value encoded in an 9461 # empty executable. 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463/* end confdefs.h. */ 9464 9465int 9466main () 9467{ 9468 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473if ac_fn_c_try_link "$LINENO"; then : 9474 9475lt_aix_libpath_sed=' 9476 /Import File Strings/,/^$/ { 9477 /^0/ { 9478 s/^0 *\(.*\)$/\1/ 9479 p 9480 } 9481 }' 9482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9483# Check for a 64-bit object if we didn't find anything. 9484if test -z "$aix_libpath"; then 9485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9486fi 9487fi 9488rm -f core conftest.err conftest.$ac_objext \ 9489 conftest$ac_exeext conftest.$ac_ext 9490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9491 9492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9493 # Warning - without using the other run time loading flags, 9494 # -berok will link without error, but may produce a broken library. 9495 no_undefined_flag=' ${wl}-bernotok' 9496 allow_undefined_flag=' ${wl}-berok' 9497 # Exported symbols can be pulled into shared objects from archives 9498 whole_archive_flag_spec='$convenience' 9499 archive_cmds_need_lc=yes 9500 # This is similar to how AIX traditionally builds its shared libraries. 9501 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9502 fi 9503 fi 9504 ;; 9505 9506 amigaos*) 9507 case $host_cpu in 9508 powerpc) 9509 # see comment about AmigaOS4 .so support 9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9511 archive_expsym_cmds='' 9512 ;; 9513 m68k) 9514 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)' 9515 hardcode_libdir_flag_spec='-L$libdir' 9516 hardcode_minus_L=yes 9517 ;; 9518 esac 9519 ;; 9520 9521 bsdi[45]*) 9522 export_dynamic_flag_spec=-rdynamic 9523 ;; 9524 9525 cygwin* | mingw* | pw32* | cegcc*) 9526 # When not using gcc, we currently assume that we are using 9527 # Microsoft Visual C++. 9528 # hardcode_libdir_flag_spec is actually meaningless, as there is 9529 # no search path for DLLs. 9530 hardcode_libdir_flag_spec=' ' 9531 allow_undefined_flag=unsupported 9532 # Tell ltmain to make .lib files, not .a files. 9533 libext=lib 9534 # Tell ltmain to make .dll files, not .so files. 9535 shrext_cmds=".dll" 9536 # FIXME: Setting linknames here is a bad hack. 9537 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9538 # The linker will automatically build a .lib file if we build a DLL. 9539 old_archive_from_new_cmds='true' 9540 # FIXME: Should let the user specify the lib program. 9541 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9542 fix_srcfile_path='`cygpath -w "$srcfile"`' 9543 enable_shared_with_static_runtimes=yes 9544 ;; 9545 9546 darwin* | rhapsody*) 9547 9548 9549 archive_cmds_need_lc=no 9550 hardcode_direct=no 9551 hardcode_automatic=yes 9552 hardcode_shlibpath_var=unsupported 9553 whole_archive_flag_spec='' 9554 link_all_deplibs=yes 9555 allow_undefined_flag="$_lt_dar_allow_undefined" 9556 case $cc_basename in 9557 ifort*) _lt_dar_can_shared=yes ;; 9558 *) _lt_dar_can_shared=$GCC ;; 9559 esac 9560 if test "$_lt_dar_can_shared" = "yes"; then 9561 output_verbose_link_cmd=echo 9562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9564 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}" 9565 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}" 9566 9567 else 9568 ld_shlibs=no 9569 fi 9570 9571 ;; 9572 9573 dgux*) 9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9575 hardcode_libdir_flag_spec='-L$libdir' 9576 hardcode_shlibpath_var=no 9577 ;; 9578 9579 freebsd1*) 9580 ld_shlibs=no 9581 ;; 9582 9583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9584 # support. Future versions do this automatically, but an explicit c++rt0.o 9585 # does not break anything, and helps significantly (at the cost of a little 9586 # extra space). 9587 freebsd2.2*) 9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9589 hardcode_libdir_flag_spec='-R$libdir' 9590 hardcode_direct=yes 9591 hardcode_shlibpath_var=no 9592 ;; 9593 9594 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9595 freebsd2*) 9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9597 hardcode_direct=yes 9598 hardcode_minus_L=yes 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9603 freebsd* | dragonfly*) 9604 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9605 hardcode_libdir_flag_spec='-R$libdir' 9606 hardcode_direct=yes 9607 hardcode_shlibpath_var=no 9608 ;; 9609 9610 hpux9*) 9611 if test "$GCC" = yes; then 9612 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9613 else 9614 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9615 fi 9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9617 hardcode_libdir_separator=: 9618 hardcode_direct=yes 9619 9620 # hardcode_minus_L: Not really in the search PATH, 9621 # but as the default location of the library. 9622 hardcode_minus_L=yes 9623 export_dynamic_flag_spec='${wl}-E' 9624 ;; 9625 9626 hpux10*) 9627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9628 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9629 else 9630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9631 fi 9632 if test "$with_gnu_ld" = no; then 9633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9634 hardcode_libdir_flag_spec_ld='+b $libdir' 9635 hardcode_libdir_separator=: 9636 hardcode_direct=yes 9637 hardcode_direct_absolute=yes 9638 export_dynamic_flag_spec='${wl}-E' 9639 # hardcode_minus_L: Not really in the search PATH, 9640 # but as the default location of the library. 9641 hardcode_minus_L=yes 9642 fi 9643 ;; 9644 9645 hpux11*) 9646 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9647 case $host_cpu in 9648 hppa*64*) 9649 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9650 ;; 9651 ia64*) 9652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9653 ;; 9654 *) 9655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9656 ;; 9657 esac 9658 else 9659 case $host_cpu in 9660 hppa*64*) 9661 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9662 ;; 9663 ia64*) 9664 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9665 ;; 9666 *) 9667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9668 ;; 9669 esac 9670 fi 9671 if test "$with_gnu_ld" = no; then 9672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9673 hardcode_libdir_separator=: 9674 9675 case $host_cpu in 9676 hppa*64*|ia64*) 9677 hardcode_direct=no 9678 hardcode_shlibpath_var=no 9679 ;; 9680 *) 9681 hardcode_direct=yes 9682 hardcode_direct_absolute=yes 9683 export_dynamic_flag_spec='${wl}-E' 9684 9685 # hardcode_minus_L: Not really in the search PATH, 9686 # but as the default location of the library. 9687 hardcode_minus_L=yes 9688 ;; 9689 esac 9690 fi 9691 ;; 9692 9693 irix5* | irix6* | nonstopux*) 9694 if test "$GCC" = yes; then 9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9696 # Try to use the -exported_symbol ld option, if it does not 9697 # work, assume that -exports_file does not work either and 9698 # implicitly export all symbols. 9699 save_LDFLAGS="$LDFLAGS" 9700 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int foo(void) {} 9704_ACEOF 9705if ac_fn_c_try_link "$LINENO"; then : 9706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9707 9708fi 9709rm -f core conftest.err conftest.$ac_objext \ 9710 conftest$ac_exeext conftest.$ac_ext 9711 LDFLAGS="$save_LDFLAGS" 9712 else 9713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9715 fi 9716 archive_cmds_need_lc='no' 9717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9718 hardcode_libdir_separator=: 9719 inherit_rpath=yes 9720 link_all_deplibs=yes 9721 ;; 9722 9723 netbsd*) 9724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9726 else 9727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9728 fi 9729 hardcode_libdir_flag_spec='-R$libdir' 9730 hardcode_direct=yes 9731 hardcode_shlibpath_var=no 9732 ;; 9733 9734 newsos6) 9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9736 hardcode_direct=yes 9737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9738 hardcode_libdir_separator=: 9739 hardcode_shlibpath_var=no 9740 ;; 9741 9742 *nto* | *qnx*) 9743 ;; 9744 9745 openbsd*) 9746 if test -f /usr/libexec/ld.so; then 9747 hardcode_direct=yes 9748 hardcode_shlibpath_var=no 9749 hardcode_direct_absolute=yes 9750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9754 export_dynamic_flag_spec='${wl}-E' 9755 else 9756 case $host_os in 9757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9759 hardcode_libdir_flag_spec='-R$libdir' 9760 ;; 9761 *) 9762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9764 ;; 9765 esac 9766 fi 9767 else 9768 ld_shlibs=no 9769 fi 9770 ;; 9771 9772 os2*) 9773 hardcode_libdir_flag_spec='-L$libdir' 9774 hardcode_minus_L=yes 9775 allow_undefined_flag=unsupported 9776 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9778 ;; 9779 9780 osf3*) 9781 if test "$GCC" = yes; then 9782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9784 else 9785 allow_undefined_flag=' -expect_unresolved \*' 9786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9787 fi 9788 archive_cmds_need_lc='no' 9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9790 hardcode_libdir_separator=: 9791 ;; 9792 9793 osf4* | osf5*) # as osf3* with the addition of -msym flag 9794 if test "$GCC" = yes; then 9795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9796 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9798 else 9799 allow_undefined_flag=' -expect_unresolved \*' 9800 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9801 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~ 9802 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9803 9804 # Both c and cxx compiler support -rpath directly 9805 hardcode_libdir_flag_spec='-rpath $libdir' 9806 fi 9807 archive_cmds_need_lc='no' 9808 hardcode_libdir_separator=: 9809 ;; 9810 9811 solaris*) 9812 no_undefined_flag=' -z defs' 9813 if test "$GCC" = yes; then 9814 wlarc='${wl}' 9815 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9817 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9818 else 9819 case `$CC -V 2>&1` in 9820 *"Compilers 5.0"*) 9821 wlarc='' 9822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9825 ;; 9826 *) 9827 wlarc='${wl}' 9828 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9830 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9831 ;; 9832 esac 9833 fi 9834 hardcode_libdir_flag_spec='-R$libdir' 9835 hardcode_shlibpath_var=no 9836 case $host_os in 9837 solaris2.[0-5] | solaris2.[0-5].*) ;; 9838 *) 9839 # The compiler driver will combine and reorder linker options, 9840 # but understands `-z linker_flag'. GCC discards it without `$wl', 9841 # but is careful enough not to reorder. 9842 # Supported since Solaris 2.6 (maybe 2.5.1?) 9843 if test "$GCC" = yes; then 9844 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9845 else 9846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9847 fi 9848 ;; 9849 esac 9850 link_all_deplibs=yes 9851 ;; 9852 9853 sunos4*) 9854 if test "x$host_vendor" = xsequent; then 9855 # Use $CC to link under sequent, because it throws in some extra .o 9856 # files that make .init and .fini sections work. 9857 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9858 else 9859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9860 fi 9861 hardcode_libdir_flag_spec='-L$libdir' 9862 hardcode_direct=yes 9863 hardcode_minus_L=yes 9864 hardcode_shlibpath_var=no 9865 ;; 9866 9867 sysv4) 9868 case $host_vendor in 9869 sni) 9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9871 hardcode_direct=yes # is this really true??? 9872 ;; 9873 siemens) 9874 ## LD is ld it makes a PLAMLIB 9875 ## CC just makes a GrossModule. 9876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9877 reload_cmds='$CC -r -o $output$reload_objs' 9878 hardcode_direct=no 9879 ;; 9880 motorola) 9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9883 ;; 9884 esac 9885 runpath_var='LD_RUN_PATH' 9886 hardcode_shlibpath_var=no 9887 ;; 9888 9889 sysv4.3*) 9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9891 hardcode_shlibpath_var=no 9892 export_dynamic_flag_spec='-Bexport' 9893 ;; 9894 9895 sysv4*MP*) 9896 if test -d /usr/nec; then 9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9898 hardcode_shlibpath_var=no 9899 runpath_var=LD_RUN_PATH 9900 hardcode_runpath_var=yes 9901 ld_shlibs=yes 9902 fi 9903 ;; 9904 9905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9906 no_undefined_flag='${wl}-z,text' 9907 archive_cmds_need_lc=no 9908 hardcode_shlibpath_var=no 9909 runpath_var='LD_RUN_PATH' 9910 9911 if test "$GCC" = yes; then 9912 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9914 else 9915 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9917 fi 9918 ;; 9919 9920 sysv5* | sco3.2v5* | sco5v6*) 9921 # Note: We can NOT use -z defs as we might desire, because we do not 9922 # link with -lc, and that would cause any symbols used from libc to 9923 # always be unresolved, which means just about no library would 9924 # ever link correctly. If we're not using GNU ld we use -z text 9925 # though, which does catch some bad symbols but isn't as heavy-handed 9926 # as -z defs. 9927 no_undefined_flag='${wl}-z,text' 9928 allow_undefined_flag='${wl}-z,nodefs' 9929 archive_cmds_need_lc=no 9930 hardcode_shlibpath_var=no 9931 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9932 hardcode_libdir_separator=':' 9933 link_all_deplibs=yes 9934 export_dynamic_flag_spec='${wl}-Bexport' 9935 runpath_var='LD_RUN_PATH' 9936 9937 if test "$GCC" = yes; then 9938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9940 else 9941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9943 fi 9944 ;; 9945 9946 uts4*) 9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 hardcode_libdir_flag_spec='-L$libdir' 9949 hardcode_shlibpath_var=no 9950 ;; 9951 9952 *) 9953 ld_shlibs=no 9954 ;; 9955 esac 9956 9957 if test x$host_vendor = xsni; then 9958 case $host in 9959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9960 export_dynamic_flag_spec='${wl}-Blargedynsym' 9961 ;; 9962 esac 9963 fi 9964 fi 9965 9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9967$as_echo "$ld_shlibs" >&6; } 9968test "$ld_shlibs" = no && can_build_shared=no 9969 9970with_gnu_ld=$with_gnu_ld 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986# 9987# Do we need to explicitly link libc? 9988# 9989case "x$archive_cmds_need_lc" in 9990x|xyes) 9991 # Assume -lc should be added 9992 archive_cmds_need_lc=yes 9993 9994 if test "$enable_shared" = yes && test "$GCC" = yes; then 9995 case $archive_cmds in 9996 *'~'*) 9997 # FIXME: we may have to deal with multi-command sequences. 9998 ;; 9999 '$CC '*) 10000 # Test whether the compiler implicitly links with -lc since on some 10001 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10002 # to ld, don't add -lc before -lgcc. 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10004$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10005 $RM conftest* 10006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10007 10008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10009 (eval $ac_compile) 2>&5 10010 ac_status=$? 10011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10012 test $ac_status = 0; } 2>conftest.err; then 10013 soname=conftest 10014 lib=conftest 10015 libobjs=conftest.$ac_objext 10016 deplibs= 10017 wl=$lt_prog_compiler_wl 10018 pic_flag=$lt_prog_compiler_pic 10019 compiler_flags=-v 10020 linker_flags=-v 10021 verstring= 10022 output_objdir=. 10023 libname=conftest 10024 lt_save_allow_undefined_flag=$allow_undefined_flag 10025 allow_undefined_flag= 10026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10027 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10028 ac_status=$? 10029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10030 test $ac_status = 0; } 10031 then 10032 archive_cmds_need_lc=no 10033 else 10034 archive_cmds_need_lc=yes 10035 fi 10036 allow_undefined_flag=$lt_save_allow_undefined_flag 10037 else 10038 cat conftest.err 1>&5 10039 fi 10040 $RM conftest* 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10042$as_echo "$archive_cmds_need_lc" >&6; } 10043 ;; 10044 esac 10045 fi 10046 ;; 10047esac 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10206$as_echo_n "checking dynamic linker characteristics... " >&6; } 10207 10208if test "$GCC" = yes; then 10209 case $host_os in 10210 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10211 *) lt_awk_arg="/^libraries:/" ;; 10212 esac 10213 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10214 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10215 # if the path contains ";" then we assume it to be the separator 10216 # otherwise default to the standard path separator (i.e. ":") - it is 10217 # assumed that no part of a normal pathname contains ";" but that should 10218 # okay in the real world where ";" in dirpaths is itself problematic. 10219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10220 else 10221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10222 fi 10223 # Ok, now we have the path, separated by spaces, we can step through it 10224 # and add multilib dir if necessary. 10225 lt_tmp_lt_search_path_spec= 10226 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10227 for lt_sys_path in $lt_search_path_spec; do 10228 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10230 else 10231 test -d "$lt_sys_path" && \ 10232 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10233 fi 10234 done 10235 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10236BEGIN {RS=" "; FS="/|\n";} { 10237 lt_foo=""; 10238 lt_count=0; 10239 for (lt_i = NF; lt_i > 0; lt_i--) { 10240 if ($lt_i != "" && $lt_i != ".") { 10241 if ($lt_i == "..") { 10242 lt_count++; 10243 } else { 10244 if (lt_count == 0) { 10245 lt_foo="/" $lt_i lt_foo; 10246 } else { 10247 lt_count--; 10248 } 10249 } 10250 } 10251 } 10252 if (lt_foo != "") { lt_freq[lt_foo]++; } 10253 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10254}'` 10255 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10256else 10257 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10258fi 10259library_names_spec= 10260libname_spec='lib$name' 10261soname_spec= 10262shrext_cmds=".so" 10263postinstall_cmds= 10264postuninstall_cmds= 10265finish_cmds= 10266finish_eval= 10267shlibpath_var= 10268shlibpath_overrides_runpath=unknown 10269version_type=none 10270dynamic_linker="$host_os ld.so" 10271sys_lib_dlsearch_path_spec="/lib /usr/lib" 10272need_lib_prefix=unknown 10273hardcode_into_libs=no 10274 10275# when you set need_version to no, make sure it does not cause -set_version 10276# flags to be left without arguments 10277need_version=unknown 10278 10279case $host_os in 10280aix3*) 10281 version_type=linux 10282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10283 shlibpath_var=LIBPATH 10284 10285 # AIX 3 has no versioning support, so we append a major version to the name. 10286 soname_spec='${libname}${release}${shared_ext}$major' 10287 ;; 10288 10289aix[4-9]*) 10290 version_type=linux 10291 need_lib_prefix=no 10292 need_version=no 10293 hardcode_into_libs=yes 10294 if test "$host_cpu" = ia64; then 10295 # AIX 5 supports IA64 10296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10297 shlibpath_var=LD_LIBRARY_PATH 10298 else 10299 # With GCC up to 2.95.x, collect2 would create an import file 10300 # for dependence libraries. The import file would start with 10301 # the line `#! .'. This would cause the generated library to 10302 # depend on `.', always an invalid library. This was fixed in 10303 # development snapshots of GCC prior to 3.0. 10304 case $host_os in 10305 aix4 | aix4.[01] | aix4.[01].*) 10306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10307 echo ' yes ' 10308 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10309 : 10310 else 10311 can_build_shared=no 10312 fi 10313 ;; 10314 esac 10315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10316 # soname into executable. Probably we can add versioning support to 10317 # collect2, so additional links can be useful in future. 10318 if test "$aix_use_runtimelinking" = yes; then 10319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10320 # instead of lib<name>.a to let people know that these are not 10321 # typical AIX shared libraries. 10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10323 else 10324 # We preserve .a as extension for shared libraries through AIX4.2 10325 # and later when we are not doing run time linking. 10326 library_names_spec='${libname}${release}.a $libname.a' 10327 soname_spec='${libname}${release}${shared_ext}$major' 10328 fi 10329 shlibpath_var=LIBPATH 10330 fi 10331 ;; 10332 10333amigaos*) 10334 case $host_cpu in 10335 powerpc) 10336 # Since July 2007 AmigaOS4 officially supports .so libraries. 10337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10339 ;; 10340 m68k) 10341 library_names_spec='$libname.ixlibrary $libname.a' 10342 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10343 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10344 ;; 10345 esac 10346 ;; 10347 10348beos*) 10349 library_names_spec='${libname}${shared_ext}' 10350 dynamic_linker="$host_os ld.so" 10351 shlibpath_var=LIBRARY_PATH 10352 ;; 10353 10354bsdi[45]*) 10355 version_type=linux 10356 need_version=no 10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10360 shlibpath_var=LD_LIBRARY_PATH 10361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10363 # the default ld.so.conf also contains /usr/contrib/lib and 10364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10365 # libtool to hard-code these into programs 10366 ;; 10367 10368cygwin* | mingw* | pw32* | cegcc*) 10369 version_type=windows 10370 shrext_cmds=".dll" 10371 need_version=no 10372 need_lib_prefix=no 10373 10374 case $GCC,$host_os in 10375 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10376 library_names_spec='$libname.dll.a' 10377 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10378 postinstall_cmds='base_file=`basename \${file}`~ 10379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10380 dldir=$destdir/`dirname \$dlpath`~ 10381 test -d \$dldir || mkdir -p \$dldir~ 10382 $install_prog $dir/$dlname \$dldir/$dlname~ 10383 chmod a+x \$dldir/$dlname~ 10384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10386 fi' 10387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10388 dlpath=$dir/\$dldll~ 10389 $RM \$dlpath' 10390 shlibpath_overrides_runpath=yes 10391 10392 case $host_os in 10393 cygwin*) 10394 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10397 ;; 10398 mingw* | cegcc*) 10399 # MinGW DLLs use traditional 'lib' prefix 10400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10401 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10402 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10403 # It is most probably a Windows format PATH printed by 10404 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10405 # path with ; separators, and with drive letters. We can handle the 10406 # drive letters (cygwin fileutils understands them), so leave them, 10407 # especially as we might pass files found there to a mingw objdump, 10408 # which wouldn't understand a cygwinified path. Ahh. 10409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10410 else 10411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10412 fi 10413 ;; 10414 pw32*) 10415 # pw32 DLLs use 'pw' prefix rather than 'lib' 10416 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10417 ;; 10418 esac 10419 ;; 10420 10421 *) 10422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10423 ;; 10424 esac 10425 dynamic_linker='Win32 ld.exe' 10426 # FIXME: first we should search . and the directory the executable is in 10427 shlibpath_var=PATH 10428 ;; 10429 10430darwin* | rhapsody*) 10431 dynamic_linker="$host_os dyld" 10432 version_type=darwin 10433 need_lib_prefix=no 10434 need_version=no 10435 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10436 soname_spec='${libname}${release}${major}$shared_ext' 10437 shlibpath_overrides_runpath=yes 10438 shlibpath_var=DYLD_LIBRARY_PATH 10439 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10440 10441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10443 ;; 10444 10445dgux*) 10446 version_type=linux 10447 need_lib_prefix=no 10448 need_version=no 10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10450 soname_spec='${libname}${release}${shared_ext}$major' 10451 shlibpath_var=LD_LIBRARY_PATH 10452 ;; 10453 10454freebsd1*) 10455 dynamic_linker=no 10456 ;; 10457 10458freebsd* | dragonfly*) 10459 # DragonFly does not have aout. When/if they implement a new 10460 # versioning mechanism, adjust this. 10461 if test -x /usr/bin/objformat; then 10462 objformat=`/usr/bin/objformat` 10463 else 10464 case $host_os in 10465 freebsd[123]*) objformat=aout ;; 10466 *) objformat=elf ;; 10467 esac 10468 fi 10469 version_type=freebsd-$objformat 10470 case $version_type in 10471 freebsd-elf*) 10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10473 need_version=no 10474 need_lib_prefix=no 10475 ;; 10476 freebsd-*) 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10478 need_version=yes 10479 ;; 10480 esac 10481 shlibpath_var=LD_LIBRARY_PATH 10482 case $host_os in 10483 freebsd2*) 10484 shlibpath_overrides_runpath=yes 10485 ;; 10486 freebsd3.[01]* | freebsdelf3.[01]*) 10487 shlibpath_overrides_runpath=yes 10488 hardcode_into_libs=yes 10489 ;; 10490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10492 shlibpath_overrides_runpath=no 10493 hardcode_into_libs=yes 10494 ;; 10495 *) # from 4.6 on, and DragonFly 10496 shlibpath_overrides_runpath=yes 10497 hardcode_into_libs=yes 10498 ;; 10499 esac 10500 ;; 10501 10502gnu*) 10503 version_type=linux 10504 need_lib_prefix=no 10505 need_version=no 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10507 soname_spec='${libname}${release}${shared_ext}$major' 10508 shlibpath_var=LD_LIBRARY_PATH 10509 hardcode_into_libs=yes 10510 ;; 10511 10512hpux9* | hpux10* | hpux11*) 10513 # Give a soname corresponding to the major version so that dld.sl refuses to 10514 # link against other versions. 10515 version_type=sunos 10516 need_lib_prefix=no 10517 need_version=no 10518 case $host_cpu in 10519 ia64*) 10520 shrext_cmds='.so' 10521 hardcode_into_libs=yes 10522 dynamic_linker="$host_os dld.so" 10523 shlibpath_var=LD_LIBRARY_PATH 10524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10526 soname_spec='${libname}${release}${shared_ext}$major' 10527 if test "X$HPUX_IA64_MODE" = X32; then 10528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10529 else 10530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10531 fi 10532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10533 ;; 10534 hppa*64*) 10535 shrext_cmds='.sl' 10536 hardcode_into_libs=yes 10537 dynamic_linker="$host_os dld.sl" 10538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10541 soname_spec='${libname}${release}${shared_ext}$major' 10542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10544 ;; 10545 *) 10546 shrext_cmds='.sl' 10547 dynamic_linker="$host_os dld.sl" 10548 shlibpath_var=SHLIB_PATH 10549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 ;; 10553 esac 10554 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10555 postinstall_cmds='chmod 555 $lib' 10556 ;; 10557 10558interix[3-9]*) 10559 version_type=linux 10560 need_lib_prefix=no 10561 need_version=no 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10563 soname_spec='${libname}${release}${shared_ext}$major' 10564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 shlibpath_overrides_runpath=no 10567 hardcode_into_libs=yes 10568 ;; 10569 10570irix5* | irix6* | nonstopux*) 10571 case $host_os in 10572 nonstopux*) version_type=nonstopux ;; 10573 *) 10574 if test "$lt_cv_prog_gnu_ld" = yes; then 10575 version_type=linux 10576 else 10577 version_type=irix 10578 fi ;; 10579 esac 10580 need_lib_prefix=no 10581 need_version=no 10582 soname_spec='${libname}${release}${shared_ext}$major' 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10584 case $host_os in 10585 irix5* | nonstopux*) 10586 libsuff= shlibsuff= 10587 ;; 10588 *) 10589 case $LD in # libtool.m4 will add one of these switches to LD 10590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10591 libsuff= shlibsuff= libmagic=32-bit;; 10592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10593 libsuff=32 shlibsuff=N32 libmagic=N32;; 10594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10595 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10596 *) libsuff= shlibsuff= libmagic=never-match;; 10597 esac 10598 ;; 10599 esac 10600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10601 shlibpath_overrides_runpath=no 10602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10604 hardcode_into_libs=yes 10605 ;; 10606 10607# No shared lib support for Linux oldld, aout, or coff. 10608linux*oldld* | linux*aout* | linux*coff*) 10609 dynamic_linker=no 10610 ;; 10611 10612# This must be Linux ELF. 10613linux* | k*bsd*-gnu) 10614 version_type=linux 10615 need_lib_prefix=no 10616 need_version=no 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10618 soname_spec='${libname}${release}${shared_ext}$major' 10619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10620 shlibpath_var=LD_LIBRARY_PATH 10621 shlibpath_overrides_runpath=no 10622 # Some binutils ld are patched to set DT_RUNPATH 10623 save_LDFLAGS=$LDFLAGS 10624 save_libdir=$libdir 10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10628/* end confdefs.h. */ 10629 10630int 10631main () 10632{ 10633 10634 ; 10635 return 0; 10636} 10637_ACEOF 10638if ac_fn_c_try_link "$LINENO"; then : 10639 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10640 shlibpath_overrides_runpath=yes 10641fi 10642fi 10643rm -f core conftest.err conftest.$ac_objext \ 10644 conftest$ac_exeext conftest.$ac_ext 10645 LDFLAGS=$save_LDFLAGS 10646 libdir=$save_libdir 10647 10648 # This implies no fast_install, which is unacceptable. 10649 # Some rework will be needed to allow for fast_install 10650 # before this can be enabled. 10651 hardcode_into_libs=yes 10652 10653 # Add ABI-specific directories to the system library path. 10654 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10655 10656 # Append ld.so.conf contents to the search path 10657 if test -f /etc/ld.so.conf; then 10658 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10659 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10660 fi 10661 10662 # We used to test for /lib/ld.so.1 and disable shared libraries on 10663 # powerpc, because MkLinux only supported shared libraries with the 10664 # GNU dynamic linker. Since this was broken with cross compilers, 10665 # most powerpc-linux boxes support dynamic linking these days and 10666 # people can always --disable-shared, the test was removed, and we 10667 # assume the GNU/Linux dynamic linker is in use. 10668 dynamic_linker='GNU/Linux ld.so' 10669 ;; 10670 10671netbsd*) 10672 version_type=sunos 10673 need_lib_prefix=no 10674 need_version=no 10675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10678 dynamic_linker='NetBSD (a.out) ld.so' 10679 else 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10681 soname_spec='${libname}${release}${shared_ext}$major' 10682 dynamic_linker='NetBSD ld.elf_so' 10683 fi 10684 shlibpath_var=LD_LIBRARY_PATH 10685 shlibpath_overrides_runpath=yes 10686 hardcode_into_libs=yes 10687 ;; 10688 10689newsos6) 10690 version_type=linux 10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10692 shlibpath_var=LD_LIBRARY_PATH 10693 shlibpath_overrides_runpath=yes 10694 ;; 10695 10696*nto* | *qnx*) 10697 version_type=qnx 10698 need_lib_prefix=no 10699 need_version=no 10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10701 soname_spec='${libname}${release}${shared_ext}$major' 10702 shlibpath_var=LD_LIBRARY_PATH 10703 shlibpath_overrides_runpath=no 10704 hardcode_into_libs=yes 10705 dynamic_linker='ldqnx.so' 10706 ;; 10707 10708openbsd*) 10709 version_type=sunos 10710 sys_lib_dlsearch_path_spec="/usr/lib" 10711 need_lib_prefix=no 10712 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10713 case $host_os in 10714 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10715 *) need_version=no ;; 10716 esac 10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10721 case $host_os in 10722 openbsd2.[89] | openbsd2.[89].*) 10723 shlibpath_overrides_runpath=no 10724 ;; 10725 *) 10726 shlibpath_overrides_runpath=yes 10727 ;; 10728 esac 10729 else 10730 shlibpath_overrides_runpath=yes 10731 fi 10732 ;; 10733 10734os2*) 10735 libname_spec='$name' 10736 shrext_cmds=".dll" 10737 need_lib_prefix=no 10738 library_names_spec='$libname${shared_ext} $libname.a' 10739 dynamic_linker='OS/2 ld.exe' 10740 shlibpath_var=LIBPATH 10741 ;; 10742 10743osf3* | osf4* | osf5*) 10744 version_type=osf 10745 need_lib_prefix=no 10746 need_version=no 10747 soname_spec='${libname}${release}${shared_ext}$major' 10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10749 shlibpath_var=LD_LIBRARY_PATH 10750 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10751 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10752 ;; 10753 10754rdos*) 10755 dynamic_linker=no 10756 ;; 10757 10758solaris*) 10759 version_type=linux 10760 need_lib_prefix=no 10761 need_version=no 10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10763 soname_spec='${libname}${release}${shared_ext}$major' 10764 shlibpath_var=LD_LIBRARY_PATH 10765 shlibpath_overrides_runpath=yes 10766 hardcode_into_libs=yes 10767 # ldd complains unless libraries are executable 10768 postinstall_cmds='chmod +x $lib' 10769 ;; 10770 10771sunos4*) 10772 version_type=sunos 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10774 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10775 shlibpath_var=LD_LIBRARY_PATH 10776 shlibpath_overrides_runpath=yes 10777 if test "$with_gnu_ld" = yes; then 10778 need_lib_prefix=no 10779 fi 10780 need_version=yes 10781 ;; 10782 10783sysv4 | sysv4.3*) 10784 version_type=linux 10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10786 soname_spec='${libname}${release}${shared_ext}$major' 10787 shlibpath_var=LD_LIBRARY_PATH 10788 case $host_vendor in 10789 sni) 10790 shlibpath_overrides_runpath=no 10791 need_lib_prefix=no 10792 runpath_var=LD_RUN_PATH 10793 ;; 10794 siemens) 10795 need_lib_prefix=no 10796 ;; 10797 motorola) 10798 need_lib_prefix=no 10799 need_version=no 10800 shlibpath_overrides_runpath=no 10801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10802 ;; 10803 esac 10804 ;; 10805 10806sysv4*MP*) 10807 if test -d /usr/nec ;then 10808 version_type=linux 10809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10810 soname_spec='$libname${shared_ext}.$major' 10811 shlibpath_var=LD_LIBRARY_PATH 10812 fi 10813 ;; 10814 10815sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10816 version_type=freebsd-elf 10817 need_lib_prefix=no 10818 need_version=no 10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10820 soname_spec='${libname}${release}${shared_ext}$major' 10821 shlibpath_var=LD_LIBRARY_PATH 10822 shlibpath_overrides_runpath=yes 10823 hardcode_into_libs=yes 10824 if test "$with_gnu_ld" = yes; then 10825 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10826 else 10827 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10828 case $host_os in 10829 sco3.2v5*) 10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10831 ;; 10832 esac 10833 fi 10834 sys_lib_dlsearch_path_spec='/usr/lib' 10835 ;; 10836 10837tpf*) 10838 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10839 version_type=linux 10840 need_lib_prefix=no 10841 need_version=no 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10843 shlibpath_var=LD_LIBRARY_PATH 10844 shlibpath_overrides_runpath=no 10845 hardcode_into_libs=yes 10846 ;; 10847 10848uts4*) 10849 version_type=linux 10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10851 soname_spec='${libname}${release}${shared_ext}$major' 10852 shlibpath_var=LD_LIBRARY_PATH 10853 ;; 10854 10855*) 10856 dynamic_linker=no 10857 ;; 10858esac 10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10860$as_echo "$dynamic_linker" >&6; } 10861test "$dynamic_linker" = no && can_build_shared=no 10862 10863variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10864if test "$GCC" = yes; then 10865 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10866fi 10867 10868if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10869 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10870fi 10871if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10872 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10873fi 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10962$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10963hardcode_action= 10964if test -n "$hardcode_libdir_flag_spec" || 10965 test -n "$runpath_var" || 10966 test "X$hardcode_automatic" = "Xyes" ; then 10967 10968 # We can hardcode non-existent directories. 10969 if test "$hardcode_direct" != no && 10970 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10971 # have to relink, otherwise we might link with an installed library 10972 # when we should be linking with a yet-to-be-installed one 10973 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10974 test "$hardcode_minus_L" != no; then 10975 # Linking always hardcodes the temporary library directory. 10976 hardcode_action=relink 10977 else 10978 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10979 hardcode_action=immediate 10980 fi 10981else 10982 # We cannot hardcode anything, or else we can only hardcode existing 10983 # directories. 10984 hardcode_action=unsupported 10985fi 10986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10987$as_echo "$hardcode_action" >&6; } 10988 10989if test "$hardcode_action" = relink || 10990 test "$inherit_rpath" = yes; then 10991 # Fast installation is not supported 10992 enable_fast_install=no 10993elif test "$shlibpath_overrides_runpath" = yes || 10994 test "$enable_shared" = no; then 10995 # Fast installation is not necessary 10996 enable_fast_install=needless 10997fi 10998 10999 11000 11001 11002 11003 11004 if test "x$enable_dlopen" != xyes; then 11005 enable_dlopen=unknown 11006 enable_dlopen_self=unknown 11007 enable_dlopen_self_static=unknown 11008else 11009 lt_cv_dlopen=no 11010 lt_cv_dlopen_libs= 11011 11012 case $host_os in 11013 beos*) 11014 lt_cv_dlopen="load_add_on" 11015 lt_cv_dlopen_libs= 11016 lt_cv_dlopen_self=yes 11017 ;; 11018 11019 mingw* | pw32* | cegcc*) 11020 lt_cv_dlopen="LoadLibrary" 11021 lt_cv_dlopen_libs= 11022 ;; 11023 11024 cygwin*) 11025 lt_cv_dlopen="dlopen" 11026 lt_cv_dlopen_libs= 11027 ;; 11028 11029 darwin*) 11030 # if libdl is installed we need to link against it 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11032$as_echo_n "checking for dlopen in -ldl... " >&6; } 11033if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11034 $as_echo_n "(cached) " >&6 11035else 11036 ac_check_lib_save_LIBS=$LIBS 11037LIBS="-ldl $LIBS" 11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039/* end confdefs.h. */ 11040 11041/* Override any GCC internal prototype to avoid an error. 11042 Use char because int might match the return type of a GCC 11043 builtin and then its argument prototype would still apply. */ 11044#ifdef __cplusplus 11045extern "C" 11046#endif 11047char dlopen (); 11048int 11049main () 11050{ 11051return dlopen (); 11052 ; 11053 return 0; 11054} 11055_ACEOF 11056if ac_fn_c_try_link "$LINENO"; then : 11057 ac_cv_lib_dl_dlopen=yes 11058else 11059 ac_cv_lib_dl_dlopen=no 11060fi 11061rm -f core conftest.err conftest.$ac_objext \ 11062 conftest$ac_exeext conftest.$ac_ext 11063LIBS=$ac_check_lib_save_LIBS 11064fi 11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11066$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11067if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11069else 11070 11071 lt_cv_dlopen="dyld" 11072 lt_cv_dlopen_libs= 11073 lt_cv_dlopen_self=yes 11074 11075fi 11076 11077 ;; 11078 11079 *) 11080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11081if test "x$ac_cv_func_shl_load" = x""yes; then : 11082 lt_cv_dlopen="shl_load" 11083else 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11085$as_echo_n "checking for shl_load in -ldld... " >&6; } 11086if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11087 $as_echo_n "(cached) " >&6 11088else 11089 ac_check_lib_save_LIBS=$LIBS 11090LIBS="-ldld $LIBS" 11091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11092/* end confdefs.h. */ 11093 11094/* Override any GCC internal prototype to avoid an error. 11095 Use char because int might match the return type of a GCC 11096 builtin and then its argument prototype would still apply. */ 11097#ifdef __cplusplus 11098extern "C" 11099#endif 11100char shl_load (); 11101int 11102main () 11103{ 11104return shl_load (); 11105 ; 11106 return 0; 11107} 11108_ACEOF 11109if ac_fn_c_try_link "$LINENO"; then : 11110 ac_cv_lib_dld_shl_load=yes 11111else 11112 ac_cv_lib_dld_shl_load=no 11113fi 11114rm -f core conftest.err conftest.$ac_objext \ 11115 conftest$ac_exeext conftest.$ac_ext 11116LIBS=$ac_check_lib_save_LIBS 11117fi 11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11119$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11120if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11121 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11122else 11123 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11124if test "x$ac_cv_func_dlopen" = x""yes; then : 11125 lt_cv_dlopen="dlopen" 11126else 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11128$as_echo_n "checking for dlopen in -ldl... " >&6; } 11129if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11130 $as_echo_n "(cached) " >&6 11131else 11132 ac_check_lib_save_LIBS=$LIBS 11133LIBS="-ldl $LIBS" 11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11135/* end confdefs.h. */ 11136 11137/* Override any GCC internal prototype to avoid an error. 11138 Use char because int might match the return type of a GCC 11139 builtin and then its argument prototype would still apply. */ 11140#ifdef __cplusplus 11141extern "C" 11142#endif 11143char dlopen (); 11144int 11145main () 11146{ 11147return dlopen (); 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152if ac_fn_c_try_link "$LINENO"; then : 11153 ac_cv_lib_dl_dlopen=yes 11154else 11155 ac_cv_lib_dl_dlopen=no 11156fi 11157rm -f core conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159LIBS=$ac_check_lib_save_LIBS 11160fi 11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11162$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11163if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11164 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11165else 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11167$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11168if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11169 $as_echo_n "(cached) " >&6 11170else 11171 ac_check_lib_save_LIBS=$LIBS 11172LIBS="-lsvld $LIBS" 11173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11174/* end confdefs.h. */ 11175 11176/* Override any GCC internal prototype to avoid an error. 11177 Use char because int might match the return type of a GCC 11178 builtin and then its argument prototype would still apply. */ 11179#ifdef __cplusplus 11180extern "C" 11181#endif 11182char dlopen (); 11183int 11184main () 11185{ 11186return dlopen (); 11187 ; 11188 return 0; 11189} 11190_ACEOF 11191if ac_fn_c_try_link "$LINENO"; then : 11192 ac_cv_lib_svld_dlopen=yes 11193else 11194 ac_cv_lib_svld_dlopen=no 11195fi 11196rm -f core conftest.err conftest.$ac_objext \ 11197 conftest$ac_exeext conftest.$ac_ext 11198LIBS=$ac_check_lib_save_LIBS 11199fi 11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11201$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11202if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11204else 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11206$as_echo_n "checking for dld_link in -ldld... " >&6; } 11207if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11208 $as_echo_n "(cached) " >&6 11209else 11210 ac_check_lib_save_LIBS=$LIBS 11211LIBS="-ldld $LIBS" 11212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11213/* end confdefs.h. */ 11214 11215/* Override any GCC internal prototype to avoid an error. 11216 Use char because int might match the return type of a GCC 11217 builtin and then its argument prototype would still apply. */ 11218#ifdef __cplusplus 11219extern "C" 11220#endif 11221char dld_link (); 11222int 11223main () 11224{ 11225return dld_link (); 11226 ; 11227 return 0; 11228} 11229_ACEOF 11230if ac_fn_c_try_link "$LINENO"; then : 11231 ac_cv_lib_dld_dld_link=yes 11232else 11233 ac_cv_lib_dld_dld_link=no 11234fi 11235rm -f core conftest.err conftest.$ac_objext \ 11236 conftest$ac_exeext conftest.$ac_ext 11237LIBS=$ac_check_lib_save_LIBS 11238fi 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11240$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11241if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11243fi 11244 11245 11246fi 11247 11248 11249fi 11250 11251 11252fi 11253 11254 11255fi 11256 11257 11258fi 11259 11260 ;; 11261 esac 11262 11263 if test "x$lt_cv_dlopen" != xno; then 11264 enable_dlopen=yes 11265 else 11266 enable_dlopen=no 11267 fi 11268 11269 case $lt_cv_dlopen in 11270 dlopen) 11271 save_CPPFLAGS="$CPPFLAGS" 11272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11273 11274 save_LDFLAGS="$LDFLAGS" 11275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11276 11277 save_LIBS="$LIBS" 11278 LIBS="$lt_cv_dlopen_libs $LIBS" 11279 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11281$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11282if test "${lt_cv_dlopen_self+set}" = set; then : 11283 $as_echo_n "(cached) " >&6 11284else 11285 if test "$cross_compiling" = yes; then : 11286 lt_cv_dlopen_self=cross 11287else 11288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11289 lt_status=$lt_dlunknown 11290 cat > conftest.$ac_ext <<_LT_EOF 11291#line 11291 "configure" 11292#include "confdefs.h" 11293 11294#if HAVE_DLFCN_H 11295#include <dlfcn.h> 11296#endif 11297 11298#include <stdio.h> 11299 11300#ifdef RTLD_GLOBAL 11301# define LT_DLGLOBAL RTLD_GLOBAL 11302#else 11303# ifdef DL_GLOBAL 11304# define LT_DLGLOBAL DL_GLOBAL 11305# else 11306# define LT_DLGLOBAL 0 11307# endif 11308#endif 11309 11310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11311 find out it does not work in some platform. */ 11312#ifndef LT_DLLAZY_OR_NOW 11313# ifdef RTLD_LAZY 11314# define LT_DLLAZY_OR_NOW RTLD_LAZY 11315# else 11316# ifdef DL_LAZY 11317# define LT_DLLAZY_OR_NOW DL_LAZY 11318# else 11319# ifdef RTLD_NOW 11320# define LT_DLLAZY_OR_NOW RTLD_NOW 11321# else 11322# ifdef DL_NOW 11323# define LT_DLLAZY_OR_NOW DL_NOW 11324# else 11325# define LT_DLLAZY_OR_NOW 0 11326# endif 11327# endif 11328# endif 11329# endif 11330#endif 11331 11332void fnord() { int i=42;} 11333int main () 11334{ 11335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11336 int status = $lt_dlunknown; 11337 11338 if (self) 11339 { 11340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11342 /* dlclose (self); */ 11343 } 11344 else 11345 puts (dlerror ()); 11346 11347 return status; 11348} 11349_LT_EOF 11350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11351 (eval $ac_link) 2>&5 11352 ac_status=$? 11353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11355 (./conftest; exit; ) >&5 2>/dev/null 11356 lt_status=$? 11357 case x$lt_status in 11358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11361 esac 11362 else : 11363 # compilation failed 11364 lt_cv_dlopen_self=no 11365 fi 11366fi 11367rm -fr conftest* 11368 11369 11370fi 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11372$as_echo "$lt_cv_dlopen_self" >&6; } 11373 11374 if test "x$lt_cv_dlopen_self" = xyes; then 11375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11377$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11378if test "${lt_cv_dlopen_self_static+set}" = set; then : 11379 $as_echo_n "(cached) " >&6 11380else 11381 if test "$cross_compiling" = yes; then : 11382 lt_cv_dlopen_self_static=cross 11383else 11384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11385 lt_status=$lt_dlunknown 11386 cat > conftest.$ac_ext <<_LT_EOF 11387#line 11387 "configure" 11388#include "confdefs.h" 11389 11390#if HAVE_DLFCN_H 11391#include <dlfcn.h> 11392#endif 11393 11394#include <stdio.h> 11395 11396#ifdef RTLD_GLOBAL 11397# define LT_DLGLOBAL RTLD_GLOBAL 11398#else 11399# ifdef DL_GLOBAL 11400# define LT_DLGLOBAL DL_GLOBAL 11401# else 11402# define LT_DLGLOBAL 0 11403# endif 11404#endif 11405 11406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11407 find out it does not work in some platform. */ 11408#ifndef LT_DLLAZY_OR_NOW 11409# ifdef RTLD_LAZY 11410# define LT_DLLAZY_OR_NOW RTLD_LAZY 11411# else 11412# ifdef DL_LAZY 11413# define LT_DLLAZY_OR_NOW DL_LAZY 11414# else 11415# ifdef RTLD_NOW 11416# define LT_DLLAZY_OR_NOW RTLD_NOW 11417# else 11418# ifdef DL_NOW 11419# define LT_DLLAZY_OR_NOW DL_NOW 11420# else 11421# define LT_DLLAZY_OR_NOW 0 11422# endif 11423# endif 11424# endif 11425# endif 11426#endif 11427 11428void fnord() { int i=42;} 11429int main () 11430{ 11431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11432 int status = $lt_dlunknown; 11433 11434 if (self) 11435 { 11436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11438 /* dlclose (self); */ 11439 } 11440 else 11441 puts (dlerror ()); 11442 11443 return status; 11444} 11445_LT_EOF 11446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11447 (eval $ac_link) 2>&5 11448 ac_status=$? 11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11450 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11451 (./conftest; exit; ) >&5 2>/dev/null 11452 lt_status=$? 11453 case x$lt_status in 11454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11457 esac 11458 else : 11459 # compilation failed 11460 lt_cv_dlopen_self_static=no 11461 fi 11462fi 11463rm -fr conftest* 11464 11465 11466fi 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11468$as_echo "$lt_cv_dlopen_self_static" >&6; } 11469 fi 11470 11471 CPPFLAGS="$save_CPPFLAGS" 11472 LDFLAGS="$save_LDFLAGS" 11473 LIBS="$save_LIBS" 11474 ;; 11475 esac 11476 11477 case $lt_cv_dlopen_self in 11478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11479 *) enable_dlopen_self=unknown ;; 11480 esac 11481 11482 case $lt_cv_dlopen_self_static in 11483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11484 *) enable_dlopen_self_static=unknown ;; 11485 esac 11486fi 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504striplib= 11505old_striplib= 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11507$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11508if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11510 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11512$as_echo "yes" >&6; } 11513else 11514# FIXME - insert some real tests, host_os isn't really good enough 11515 case $host_os in 11516 darwin*) 11517 if test -n "$STRIP" ; then 11518 striplib="$STRIP -x" 11519 old_striplib="$STRIP -S" 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11521$as_echo "yes" >&6; } 11522 else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524$as_echo "no" >&6; } 11525 fi 11526 ;; 11527 *) 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11529$as_echo "no" >&6; } 11530 ;; 11531 esac 11532fi 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 # Report which library types will actually be built 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11547$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11549$as_echo "$can_build_shared" >&6; } 11550 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11552$as_echo_n "checking whether to build shared libraries... " >&6; } 11553 test "$can_build_shared" = "no" && enable_shared=no 11554 11555 # On AIX, shared libraries and static libraries use the same namespace, and 11556 # are all built from PIC. 11557 case $host_os in 11558 aix3*) 11559 test "$enable_shared" = yes && enable_static=no 11560 if test -n "$RANLIB"; then 11561 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11562 postinstall_cmds='$RANLIB $lib' 11563 fi 11564 ;; 11565 11566 aix[4-9]*) 11567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11568 test "$enable_shared" = yes && enable_static=no 11569 fi 11570 ;; 11571 esac 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11573$as_echo "$enable_shared" >&6; } 11574 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11576$as_echo_n "checking whether to build static libraries... " >&6; } 11577 # Make sure either enable_shared or enable_static is yes. 11578 test "$enable_shared" = yes || enable_static=yes 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11580$as_echo "$enable_static" >&6; } 11581 11582 11583 11584 11585fi 11586ac_ext=c 11587ac_cpp='$CPP $CPPFLAGS' 11588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11590ac_compiler_gnu=$ac_cv_c_compiler_gnu 11591 11592CC="$lt_save_CC" 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 ac_config_commands="$ac_config_commands libtool" 11607 11608 11609 11610 11611# Only expand once: 11612 11613 11614ac_ext=c 11615ac_cpp='$CPP $CPPFLAGS' 11616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11618ac_compiler_gnu=$ac_cv_c_compiler_gnu 11619if test -n "$ac_tool_prefix"; then 11620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11621set dummy ${ac_tool_prefix}gcc; ac_word=$2 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11623$as_echo_n "checking for $ac_word... " >&6; } 11624if test "${ac_cv_prog_CC+set}" = set; then : 11625 $as_echo_n "(cached) " >&6 11626else 11627 if test -n "$CC"; then 11628 ac_cv_prog_CC="$CC" # Let the user override the test. 11629else 11630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11631for as_dir in $PATH 11632do 11633 IFS=$as_save_IFS 11634 test -z "$as_dir" && as_dir=. 11635 for ac_exec_ext in '' $ac_executable_extensions; do 11636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11637 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11639 break 2 11640 fi 11641done 11642 done 11643IFS=$as_save_IFS 11644 11645fi 11646fi 11647CC=$ac_cv_prog_CC 11648if test -n "$CC"; then 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11650$as_echo "$CC" >&6; } 11651else 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11653$as_echo "no" >&6; } 11654fi 11655 11656 11657fi 11658if test -z "$ac_cv_prog_CC"; then 11659 ac_ct_CC=$CC 11660 # Extract the first word of "gcc", so it can be a program name with args. 11661set dummy gcc; ac_word=$2 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11663$as_echo_n "checking for $ac_word... " >&6; } 11664if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11665 $as_echo_n "(cached) " >&6 11666else 11667 if test -n "$ac_ct_CC"; then 11668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11669else 11670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11671for as_dir in $PATH 11672do 11673 IFS=$as_save_IFS 11674 test -z "$as_dir" && as_dir=. 11675 for ac_exec_ext in '' $ac_executable_extensions; do 11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11677 ac_cv_prog_ac_ct_CC="gcc" 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11679 break 2 11680 fi 11681done 11682 done 11683IFS=$as_save_IFS 11684 11685fi 11686fi 11687ac_ct_CC=$ac_cv_prog_ac_ct_CC 11688if test -n "$ac_ct_CC"; then 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11690$as_echo "$ac_ct_CC" >&6; } 11691else 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11693$as_echo "no" >&6; } 11694fi 11695 11696 if test "x$ac_ct_CC" = x; then 11697 CC="" 11698 else 11699 case $cross_compiling:$ac_tool_warned in 11700yes:) 11701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11703ac_tool_warned=yes ;; 11704esac 11705 CC=$ac_ct_CC 11706 fi 11707else 11708 CC="$ac_cv_prog_CC" 11709fi 11710 11711if test -z "$CC"; then 11712 if test -n "$ac_tool_prefix"; then 11713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11714set dummy ${ac_tool_prefix}cc; ac_word=$2 11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11716$as_echo_n "checking for $ac_word... " >&6; } 11717if test "${ac_cv_prog_CC+set}" = set; then : 11718 $as_echo_n "(cached) " >&6 11719else 11720 if test -n "$CC"; then 11721 ac_cv_prog_CC="$CC" # Let the user override the test. 11722else 11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11724for as_dir in $PATH 11725do 11726 IFS=$as_save_IFS 11727 test -z "$as_dir" && as_dir=. 11728 for ac_exec_ext in '' $ac_executable_extensions; do 11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11730 ac_cv_prog_CC="${ac_tool_prefix}cc" 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11732 break 2 11733 fi 11734done 11735 done 11736IFS=$as_save_IFS 11737 11738fi 11739fi 11740CC=$ac_cv_prog_CC 11741if test -n "$CC"; then 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11743$as_echo "$CC" >&6; } 11744else 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11746$as_echo "no" >&6; } 11747fi 11748 11749 11750 fi 11751fi 11752if test -z "$CC"; then 11753 # Extract the first word of "cc", so it can be a program name with args. 11754set dummy cc; ac_word=$2 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11756$as_echo_n "checking for $ac_word... " >&6; } 11757if test "${ac_cv_prog_CC+set}" = set; then : 11758 $as_echo_n "(cached) " >&6 11759else 11760 if test -n "$CC"; then 11761 ac_cv_prog_CC="$CC" # Let the user override the test. 11762else 11763 ac_prog_rejected=no 11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11765for as_dir in $PATH 11766do 11767 IFS=$as_save_IFS 11768 test -z "$as_dir" && as_dir=. 11769 for ac_exec_ext in '' $ac_executable_extensions; do 11770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11772 ac_prog_rejected=yes 11773 continue 11774 fi 11775 ac_cv_prog_CC="cc" 11776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11777 break 2 11778 fi 11779done 11780 done 11781IFS=$as_save_IFS 11782 11783if test $ac_prog_rejected = yes; then 11784 # We found a bogon in the path, so make sure we never use it. 11785 set dummy $ac_cv_prog_CC 11786 shift 11787 if test $# != 0; then 11788 # We chose a different compiler from the bogus one. 11789 # However, it has the same basename, so the bogon will be chosen 11790 # first if we set CC to just the basename; use the full file name. 11791 shift 11792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11793 fi 11794fi 11795fi 11796fi 11797CC=$ac_cv_prog_CC 11798if test -n "$CC"; then 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11800$as_echo "$CC" >&6; } 11801else 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11803$as_echo "no" >&6; } 11804fi 11805 11806 11807fi 11808if test -z "$CC"; then 11809 if test -n "$ac_tool_prefix"; then 11810 for ac_prog in cl.exe 11811 do 11812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11813set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11815$as_echo_n "checking for $ac_word... " >&6; } 11816if test "${ac_cv_prog_CC+set}" = set; then : 11817 $as_echo_n "(cached) " >&6 11818else 11819 if test -n "$CC"; then 11820 ac_cv_prog_CC="$CC" # Let the user override the test. 11821else 11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11823for as_dir in $PATH 11824do 11825 IFS=$as_save_IFS 11826 test -z "$as_dir" && as_dir=. 11827 for ac_exec_ext in '' $ac_executable_extensions; do 11828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11831 break 2 11832 fi 11833done 11834 done 11835IFS=$as_save_IFS 11836 11837fi 11838fi 11839CC=$ac_cv_prog_CC 11840if test -n "$CC"; then 11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11842$as_echo "$CC" >&6; } 11843else 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11845$as_echo "no" >&6; } 11846fi 11847 11848 11849 test -n "$CC" && break 11850 done 11851fi 11852if test -z "$CC"; then 11853 ac_ct_CC=$CC 11854 for ac_prog in cl.exe 11855do 11856 # Extract the first word of "$ac_prog", so it can be a program name with args. 11857set dummy $ac_prog; ac_word=$2 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11859$as_echo_n "checking for $ac_word... " >&6; } 11860if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11861 $as_echo_n "(cached) " >&6 11862else 11863 if test -n "$ac_ct_CC"; then 11864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11865else 11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11867for as_dir in $PATH 11868do 11869 IFS=$as_save_IFS 11870 test -z "$as_dir" && as_dir=. 11871 for ac_exec_ext in '' $ac_executable_extensions; do 11872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11873 ac_cv_prog_ac_ct_CC="$ac_prog" 11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11875 break 2 11876 fi 11877done 11878 done 11879IFS=$as_save_IFS 11880 11881fi 11882fi 11883ac_ct_CC=$ac_cv_prog_ac_ct_CC 11884if test -n "$ac_ct_CC"; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11886$as_echo "$ac_ct_CC" >&6; } 11887else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889$as_echo "no" >&6; } 11890fi 11891 11892 11893 test -n "$ac_ct_CC" && break 11894done 11895 11896 if test "x$ac_ct_CC" = x; then 11897 CC="" 11898 else 11899 case $cross_compiling:$ac_tool_warned in 11900yes:) 11901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11903ac_tool_warned=yes ;; 11904esac 11905 CC=$ac_ct_CC 11906 fi 11907fi 11908 11909fi 11910 11911 11912test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11914as_fn_error "no acceptable C compiler found in \$PATH 11915See \`config.log' for more details." "$LINENO" 5; } 11916 11917# Provide some information about the compiler. 11918$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11919set X $ac_compile 11920ac_compiler=$2 11921for ac_option in --version -v -V -qversion; do 11922 { { ac_try="$ac_compiler $ac_option >&5" 11923case "(($ac_try" in 11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11925 *) ac_try_echo=$ac_try;; 11926esac 11927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11928$as_echo "$ac_try_echo"; } >&5 11929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11930 ac_status=$? 11931 if test -s conftest.err; then 11932 sed '10a\ 11933... rest of stderr output deleted ... 11934 10q' conftest.err >conftest.er1 11935 cat conftest.er1 >&5 11936 fi 11937 rm -f conftest.er1 conftest.err 11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11939 test $ac_status = 0; } 11940done 11941 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11943$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11944if test "${ac_cv_c_compiler_gnu+set}" = set; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11948/* end confdefs.h. */ 11949 11950int 11951main () 11952{ 11953#ifndef __GNUC__ 11954 choke me 11955#endif 11956 11957 ; 11958 return 0; 11959} 11960_ACEOF 11961if ac_fn_c_try_compile "$LINENO"; then : 11962 ac_compiler_gnu=yes 11963else 11964 ac_compiler_gnu=no 11965fi 11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11967ac_cv_c_compiler_gnu=$ac_compiler_gnu 11968 11969fi 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11971$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11972if test $ac_compiler_gnu = yes; then 11973 GCC=yes 11974else 11975 GCC= 11976fi 11977ac_test_CFLAGS=${CFLAGS+set} 11978ac_save_CFLAGS=$CFLAGS 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11980$as_echo_n "checking whether $CC accepts -g... " >&6; } 11981if test "${ac_cv_prog_cc_g+set}" = set; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 ac_save_c_werror_flag=$ac_c_werror_flag 11985 ac_c_werror_flag=yes 11986 ac_cv_prog_cc_g=no 11987 CFLAGS="-g" 11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11989/* end confdefs.h. */ 11990 11991int 11992main () 11993{ 11994 11995 ; 11996 return 0; 11997} 11998_ACEOF 11999if ac_fn_c_try_compile "$LINENO"; then : 12000 ac_cv_prog_cc_g=yes 12001else 12002 CFLAGS="" 12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12004/* end confdefs.h. */ 12005 12006int 12007main () 12008{ 12009 12010 ; 12011 return 0; 12012} 12013_ACEOF 12014if ac_fn_c_try_compile "$LINENO"; then : 12015 12016else 12017 ac_c_werror_flag=$ac_save_c_werror_flag 12018 CFLAGS="-g" 12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12020/* end confdefs.h. */ 12021 12022int 12023main () 12024{ 12025 12026 ; 12027 return 0; 12028} 12029_ACEOF 12030if ac_fn_c_try_compile "$LINENO"; then : 12031 ac_cv_prog_cc_g=yes 12032fi 12033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12034fi 12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12036fi 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038 ac_c_werror_flag=$ac_save_c_werror_flag 12039fi 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12041$as_echo "$ac_cv_prog_cc_g" >&6; } 12042if test "$ac_test_CFLAGS" = set; then 12043 CFLAGS=$ac_save_CFLAGS 12044elif test $ac_cv_prog_cc_g = yes; then 12045 if test "$GCC" = yes; then 12046 CFLAGS="-g -O2" 12047 else 12048 CFLAGS="-g" 12049 fi 12050else 12051 if test "$GCC" = yes; then 12052 CFLAGS="-O2" 12053 else 12054 CFLAGS= 12055 fi 12056fi 12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12058$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12059if test "${ac_cv_prog_cc_c89+set}" = set; then : 12060 $as_echo_n "(cached) " >&6 12061else 12062 ac_cv_prog_cc_c89=no 12063ac_save_CC=$CC 12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066#include <stdarg.h> 12067#include <stdio.h> 12068#include <sys/types.h> 12069#include <sys/stat.h> 12070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12071struct buf { int x; }; 12072FILE * (*rcsopen) (struct buf *, struct stat *, int); 12073static char *e (p, i) 12074 char **p; 12075 int i; 12076{ 12077 return p[i]; 12078} 12079static char *f (char * (*g) (char **, int), char **p, ...) 12080{ 12081 char *s; 12082 va_list v; 12083 va_start (v,p); 12084 s = g (p, va_arg (v,int)); 12085 va_end (v); 12086 return s; 12087} 12088 12089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12090 function prototypes and stuff, but not '\xHH' hex character constants. 12091 These don't provoke an error unfortunately, instead are silently treated 12092 as 'x'. The following induces an error, until -std is added to get 12093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12094 array size at least. It's necessary to write '\x00'==0 to get something 12095 that's true only with -std. */ 12096int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12097 12098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12099 inside strings and character constants. */ 12100#define FOO(x) 'x' 12101int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12102 12103int test (int i, double x); 12104struct s1 {int (*f) (int a);}; 12105struct s2 {int (*f) (double a);}; 12106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12107int argc; 12108char **argv; 12109int 12110main () 12111{ 12112return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12119do 12120 CC="$ac_save_CC $ac_arg" 12121 if ac_fn_c_try_compile "$LINENO"; then : 12122 ac_cv_prog_cc_c89=$ac_arg 12123fi 12124rm -f core conftest.err conftest.$ac_objext 12125 test "x$ac_cv_prog_cc_c89" != "xno" && break 12126done 12127rm -f conftest.$ac_ext 12128CC=$ac_save_CC 12129 12130fi 12131# AC_CACHE_VAL 12132case "x$ac_cv_prog_cc_c89" in 12133 x) 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12135$as_echo "none needed" >&6; } ;; 12136 xno) 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12138$as_echo "unsupported" >&6; } ;; 12139 *) 12140 CC="$CC $ac_cv_prog_cc_c89" 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12142$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12143esac 12144if test "x$ac_cv_prog_cc_c89" != xno; then : 12145 12146fi 12147 12148ac_ext=c 12149ac_cpp='$CPP $CPPFLAGS' 12150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12152ac_compiler_gnu=$ac_cv_c_compiler_gnu 12153 12154depcc="$CC" am_compiler_list= 12155 12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12157$as_echo_n "checking dependency style of $depcc... " >&6; } 12158if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12162 # We make a subdir and do the tests there. Otherwise we can end up 12163 # making bogus files that we don't know about and never remove. For 12164 # instance it was reported that on HP-UX the gcc test will end up 12165 # making a dummy file named `D' -- because `-MD' means `put the output 12166 # in D'. 12167 mkdir conftest.dir 12168 # Copy depcomp to subdir because otherwise we won't find it if we're 12169 # using a relative directory. 12170 cp "$am_depcomp" conftest.dir 12171 cd conftest.dir 12172 # We will build objects and dependencies in a subdirectory because 12173 # it helps to detect inapplicable dependency modes. For instance 12174 # both Tru64's cc and ICC support -MD to output dependencies as a 12175 # side effect of compilation, but ICC will put the dependencies in 12176 # the current directory while Tru64 will put them in the object 12177 # directory. 12178 mkdir sub 12179 12180 am_cv_CC_dependencies_compiler_type=none 12181 if test "$am_compiler_list" = ""; then 12182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12183 fi 12184 am__universal=false 12185 case " $depcc " in #( 12186 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12187 esac 12188 12189 for depmode in $am_compiler_list; do 12190 # Setup a source with many dependencies, because some compilers 12191 # like to wrap large dependency lists on column 80 (with \), and 12192 # we should not choose a depcomp mode which is confused by this. 12193 # 12194 # We need to recreate these files for each test, as the compiler may 12195 # overwrite some of them when testing with obscure command lines. 12196 # This happens at least with the AIX C compiler. 12197 : > sub/conftest.c 12198 for i in 1 2 3 4 5 6; do 12199 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12201 # Solaris 8's {/usr,}/bin/sh. 12202 touch sub/conftst$i.h 12203 done 12204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12205 12206 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12207 # mode. It turns out that the SunPro C++ compiler does not properly 12208 # handle `-M -o', and we need to detect this. Also, some Intel 12209 # versions had trouble with output in subdirs 12210 am__obj=sub/conftest.${OBJEXT-o} 12211 am__minus_obj="-o $am__obj" 12212 case $depmode in 12213 gcc) 12214 # This depmode causes a compiler race in universal mode. 12215 test "$am__universal" = false || continue 12216 ;; 12217 nosideeffect) 12218 # after this tag, mechanisms are not by side-effect, so they'll 12219 # only be used when explicitly requested 12220 if test "x$enable_dependency_tracking" = xyes; then 12221 continue 12222 else 12223 break 12224 fi 12225 ;; 12226 msvisualcpp | msvcmsys) 12227 # This compiler won't grok `-c -o', but also, the minuso test has 12228 # not run yet. These depmodes are late enough in the game, and 12229 # so weak that their functioning should not be impacted. 12230 am__obj=conftest.${OBJEXT-o} 12231 am__minus_obj= 12232 ;; 12233 none) break ;; 12234 esac 12235 if depmode=$depmode \ 12236 source=sub/conftest.c object=$am__obj \ 12237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12239 >/dev/null 2>conftest.err && 12240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12244 # icc doesn't choke on unknown options, it will just issue warnings 12245 # or remarks (even with -Werror). So we grep stderr for any message 12246 # that says an option was ignored or not supported. 12247 # When given -MP, icc 7.0 and 7.1 complain thusly: 12248 # icc: Command line warning: ignoring option '-M'; no argument required 12249 # The diagnosis changed in icc 8.0: 12250 # icc: Command line remark: option '-MP' not supported 12251 if (grep 'ignoring option' conftest.err || 12252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12253 am_cv_CC_dependencies_compiler_type=$depmode 12254 break 12255 fi 12256 fi 12257 done 12258 12259 cd .. 12260 rm -rf conftest.dir 12261else 12262 am_cv_CC_dependencies_compiler_type=none 12263fi 12264 12265fi 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12269 12270 if 12271 test "x$enable_dependency_tracking" != xno \ 12272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12273 am__fastdepCC_TRUE= 12274 am__fastdepCC_FALSE='#' 12275else 12276 am__fastdepCC_TRUE='#' 12277 am__fastdepCC_FALSE= 12278fi 12279 12280 12281 12282# Checks for pkg-config packages 12283 12284pkg_failed=no 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5 12286$as_echo_n "checking for ICE... " >&6; } 12287 12288if test -n "$ICE_CFLAGS"; then 12289 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS" 12290 elif test -n "$PKG_CONFIG"; then 12291 if test -n "$PKG_CONFIG" && \ 12292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 12293 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 12294 ac_status=$? 12295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12296 test $ac_status = 0; }; then 12297 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 12298else 12299 pkg_failed=yes 12300fi 12301 else 12302 pkg_failed=untried 12303fi 12304if test -n "$ICE_LIBS"; then 12305 pkg_cv_ICE_LIBS="$ICE_LIBS" 12306 elif test -n "$PKG_CONFIG"; then 12307 if test -n "$PKG_CONFIG" && \ 12308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 12309 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 12310 ac_status=$? 12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12312 test $ac_status = 0; }; then 12313 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 12314else 12315 pkg_failed=yes 12316fi 12317 else 12318 pkg_failed=untried 12319fi 12320 12321 12322 12323if test $pkg_failed = yes; then 12324 12325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12326 _pkg_short_errors_supported=yes 12327else 12328 _pkg_short_errors_supported=no 12329fi 12330 if test $_pkg_short_errors_supported = yes; then 12331 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 12332 else 12333 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 12334 fi 12335 # Put the nasty error message in config.log where it belongs 12336 echo "$ICE_PKG_ERRORS" >&5 12337 12338 as_fn_error "Package requirements (xproto) were not met: 12339 12340$ICE_PKG_ERRORS 12341 12342Consider adjusting the PKG_CONFIG_PATH environment variable if you 12343installed software in a non-standard prefix. 12344 12345Alternatively, you may set the environment variables ICE_CFLAGS 12346and ICE_LIBS to avoid the need to call pkg-config. 12347See the pkg-config man page for more details. 12348" "$LINENO" 5 12349elif test $pkg_failed = untried; then 12350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12352as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12353is in your PATH or set the PKG_CONFIG environment variable to the full 12354path to pkg-config. 12355 12356Alternatively, you may set the environment variables ICE_CFLAGS 12357and ICE_LIBS to avoid the need to call pkg-config. 12358See the pkg-config man page for more details. 12359 12360To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12361See \`config.log' for more details." "$LINENO" 5; } 12362else 12363 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS 12364 ICE_LIBS=$pkg_cv_ICE_LIBS 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12366$as_echo "yes" >&6; } 12367 : 12368fi 12369 12370 12371pkg_failed=no 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTRANS" >&5 12373$as_echo_n "checking for XTRANS... " >&6; } 12374 12375if test -n "$XTRANS_CFLAGS"; then 12376 pkg_cv_XTRANS_CFLAGS="$XTRANS_CFLAGS" 12377 elif test -n "$PKG_CONFIG"; then 12378 if test -n "$PKG_CONFIG" && \ 12379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 12380 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12381 ac_status=$? 12382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12383 test $ac_status = 0; }; then 12384 pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null` 12385else 12386 pkg_failed=yes 12387fi 12388 else 12389 pkg_failed=untried 12390fi 12391if test -n "$XTRANS_LIBS"; then 12392 pkg_cv_XTRANS_LIBS="$XTRANS_LIBS" 12393 elif test -n "$PKG_CONFIG"; then 12394 if test -n "$PKG_CONFIG" && \ 12395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtrans\""; } >&5 12396 ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5 12397 ac_status=$? 12398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12399 test $ac_status = 0; }; then 12400 pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null` 12401else 12402 pkg_failed=yes 12403fi 12404 else 12405 pkg_failed=untried 12406fi 12407 12408 12409 12410if test $pkg_failed = yes; then 12411 12412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12413 _pkg_short_errors_supported=yes 12414else 12415 _pkg_short_errors_supported=no 12416fi 12417 if test $_pkg_short_errors_supported = yes; then 12418 XTRANS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtrans" 2>&1` 12419 else 12420 XTRANS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtrans" 2>&1` 12421 fi 12422 # Put the nasty error message in config.log where it belongs 12423 echo "$XTRANS_PKG_ERRORS" >&5 12424 12425 as_fn_error "Package requirements (xtrans) were not met: 12426 12427$XTRANS_PKG_ERRORS 12428 12429Consider adjusting the PKG_CONFIG_PATH environment variable if you 12430installed software in a non-standard prefix. 12431 12432Alternatively, you may set the environment variables XTRANS_CFLAGS 12433and XTRANS_LIBS to avoid the need to call pkg-config. 12434See the pkg-config man page for more details. 12435" "$LINENO" 5 12436elif test $pkg_failed = untried; then 12437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12439as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12440is in your PATH or set the PKG_CONFIG environment variable to the full 12441path to pkg-config. 12442 12443Alternatively, you may set the environment variables XTRANS_CFLAGS 12444and XTRANS_LIBS to avoid the need to call pkg-config. 12445See the pkg-config man page for more details. 12446 12447To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12448See \`config.log' for more details." "$LINENO" 5; } 12449else 12450 XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS 12451 XTRANS_LIBS=$pkg_cv_XTRANS_LIBS 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12453$as_echo "yes" >&6; } 12454 : 12455fi 12456 12457 12458 12459# Transport selection macro from xtrans.m4 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12461$as_echo_n "checking return type of signal handlers... " >&6; } 12462if test "${ac_cv_type_signal+set}" = set; then : 12463 $as_echo_n "(cached) " >&6 12464else 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467#include <sys/types.h> 12468#include <signal.h> 12469 12470int 12471main () 12472{ 12473return *(signal (0, 0)) (0) == 1; 12474 ; 12475 return 0; 12476} 12477_ACEOF 12478if ac_fn_c_try_compile "$LINENO"; then : 12479 ac_cv_type_signal=int 12480else 12481 ac_cv_type_signal=void 12482fi 12483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12484fi 12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12486$as_echo "$ac_cv_type_signal" >&6; } 12487 12488cat >>confdefs.h <<_ACEOF 12489#define RETSIGTYPE $ac_cv_type_signal 12490_ACEOF 12491 12492 12493 12494 12495 12496 case $host_os in 12497 mingw*) unixdef="no" ;; 12498 *) unixdef="yes" ;; 12499 esac 12500 # Check whether --enable-unix-transport was given. 12501if test "${enable_unix_transport+set}" = set; then : 12502 enableval=$enable_unix_transport; UNIXCONN=$enableval 12503else 12504 UNIXCONN=$unixdef 12505fi 12506 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 12508$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 12509 if test "$UNIXCONN" = "yes"; then 12510 12511$as_echo "#define UNIXCONN 1" >>confdefs.h 12512 12513 fi 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 12515$as_echo "$UNIXCONN" >&6; } 12516 # Check whether --enable-tcp-transport was given. 12517if test "${enable_tcp_transport+set}" = set; then : 12518 enableval=$enable_tcp_transport; TCPCONN=$enableval 12519else 12520 TCPCONN=yes 12521fi 12522 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 12524$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 12526$as_echo "$TCPCONN" >&6; } 12527 if test "$TCPCONN" = "yes"; then 12528 12529$as_echo "#define TCPCONN 1" >>confdefs.h 12530 12531 12532 # SVR4 hides these in libraries other than libc 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12534$as_echo_n "checking for library containing socket... " >&6; } 12535if test "${ac_cv_search_socket+set}" = set; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 ac_func_search_save_LIBS=$LIBS 12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542/* Override any GCC internal prototype to avoid an error. 12543 Use char because int might match the return type of a GCC 12544 builtin and then its argument prototype would still apply. */ 12545#ifdef __cplusplus 12546extern "C" 12547#endif 12548char socket (); 12549int 12550main () 12551{ 12552return socket (); 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557for ac_lib in '' socket; do 12558 if test -z "$ac_lib"; then 12559 ac_res="none required" 12560 else 12561 ac_res=-l$ac_lib 12562 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12563 fi 12564 if ac_fn_c_try_link "$LINENO"; then : 12565 ac_cv_search_socket=$ac_res 12566fi 12567rm -f core conftest.err conftest.$ac_objext \ 12568 conftest$ac_exeext 12569 if test "${ac_cv_search_socket+set}" = set; then : 12570 break 12571fi 12572done 12573if test "${ac_cv_search_socket+set}" = set; then : 12574 12575else 12576 ac_cv_search_socket=no 12577fi 12578rm conftest.$ac_ext 12579LIBS=$ac_func_search_save_LIBS 12580fi 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12582$as_echo "$ac_cv_search_socket" >&6; } 12583ac_res=$ac_cv_search_socket 12584if test "$ac_res" != no; then : 12585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12586 12587fi 12588 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12590$as_echo_n "checking for library containing gethostbyname... " >&6; } 12591if test "${ac_cv_search_gethostbyname+set}" = set; then : 12592 $as_echo_n "(cached) " >&6 12593else 12594 ac_func_search_save_LIBS=$LIBS 12595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12596/* end confdefs.h. */ 12597 12598/* Override any GCC internal prototype to avoid an error. 12599 Use char because int might match the return type of a GCC 12600 builtin and then its argument prototype would still apply. */ 12601#ifdef __cplusplus 12602extern "C" 12603#endif 12604char gethostbyname (); 12605int 12606main () 12607{ 12608return gethostbyname (); 12609 ; 12610 return 0; 12611} 12612_ACEOF 12613for ac_lib in '' nsl; do 12614 if test -z "$ac_lib"; then 12615 ac_res="none required" 12616 else 12617 ac_res=-l$ac_lib 12618 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12619 fi 12620 if ac_fn_c_try_link "$LINENO"; then : 12621 ac_cv_search_gethostbyname=$ac_res 12622fi 12623rm -f core conftest.err conftest.$ac_objext \ 12624 conftest$ac_exeext 12625 if test "${ac_cv_search_gethostbyname+set}" = set; then : 12626 break 12627fi 12628done 12629if test "${ac_cv_search_gethostbyname+set}" = set; then : 12630 12631else 12632 ac_cv_search_gethostbyname=no 12633fi 12634rm conftest.$ac_ext 12635LIBS=$ac_func_search_save_LIBS 12636fi 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12638$as_echo "$ac_cv_search_gethostbyname" >&6; } 12639ac_res=$ac_cv_search_gethostbyname 12640if test "$ac_res" != no; then : 12641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12642 12643fi 12644 12645 12646 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12647 # Check whether --enable-ipv6 was given. 12648if test "${enable_ipv6+set}" = set; then : 12649 enableval=$enable_ipv6; IPV6CONN=$enableval 12650else 12651 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12652if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 12653 IPV6CONN=yes 12654else 12655 IPV6CONN=no 12656fi 12657 12658fi 12659 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 12661$as_echo_n "checking if IPv6 support should be built... " >&6; } 12662 if test "$IPV6CONN" = "yes"; then 12663 12664$as_echo "#define IPv6 1" >>confdefs.h 12665 12666 fi 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 12668$as_echo "$IPV6CONN" >&6; } 12669 12670 # 4.3BSD-Reno added a new member to struct sockaddr_in 12671 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 12672#include <sys/types.h> 12673#include <sys/socket.h> 12674#include <netinet/in.h> 12675 12676" 12677if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then : 12678 12679$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 12680 12681fi 12682 12683 12684 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 12685 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 12686$ac_includes_default 12687#include <sys/socket.h> 12688" 12689if test "x$ac_cv_type_socklen_t" = x""yes; then : 12690 12691cat >>confdefs.h <<_ACEOF 12692#define HAVE_SOCKLEN_T 1 12693_ACEOF 12694 12695 12696fi 12697 12698 12699 12700 fi 12701 case $host_os in 12702 solaris*|sco*|sysv4*) localdef="yes" ;; 12703 *) localdef="no" ;; 12704 esac 12705 # Check whether --enable-local-transport was given. 12706if test "${enable_local_transport+set}" = set; then : 12707 enableval=$enable_local_transport; LOCALCONN=$enableval 12708else 12709 LOCALCONN=$localdef 12710fi 12711 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 12713$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 12715$as_echo "$LOCALCONN" >&6; } 12716 if test "$LOCALCONN" = "yes"; then 12717 12718$as_echo "#define LOCALCONN 1" >>confdefs.h 12719 12720 fi 12721 12722 12723 12724$as_echo "#define ICE_t 1" >>confdefs.h 12725 12726 12727# Checks for libraries. 12728 12729# Checks for header files. 12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12731$as_echo_n "checking for ANSI C header files... " >&6; } 12732if test "${ac_cv_header_stdc+set}" = set; then : 12733 $as_echo_n "(cached) " >&6 12734else 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737#include <stdlib.h> 12738#include <stdarg.h> 12739#include <string.h> 12740#include <float.h> 12741 12742int 12743main () 12744{ 12745 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750if ac_fn_c_try_compile "$LINENO"; then : 12751 ac_cv_header_stdc=yes 12752else 12753 ac_cv_header_stdc=no 12754fi 12755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12756 12757if test $ac_cv_header_stdc = yes; then 12758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761#include <string.h> 12762 12763_ACEOF 12764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12765 $EGREP "memchr" >/dev/null 2>&1; then : 12766 12767else 12768 ac_cv_header_stdc=no 12769fi 12770rm -f conftest* 12771 12772fi 12773 12774if test $ac_cv_header_stdc = yes; then 12775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12777/* end confdefs.h. */ 12778#include <stdlib.h> 12779 12780_ACEOF 12781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12782 $EGREP "free" >/dev/null 2>&1; then : 12783 12784else 12785 ac_cv_header_stdc=no 12786fi 12787rm -f conftest* 12788 12789fi 12790 12791if test $ac_cv_header_stdc = yes; then 12792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12793 if test "$cross_compiling" = yes; then : 12794 : 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798#include <ctype.h> 12799#include <stdlib.h> 12800#if ((' ' & 0x0FF) == 0x020) 12801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12803#else 12804# define ISLOWER(c) \ 12805 (('a' <= (c) && (c) <= 'i') \ 12806 || ('j' <= (c) && (c) <= 'r') \ 12807 || ('s' <= (c) && (c) <= 'z')) 12808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12809#endif 12810 12811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12812int 12813main () 12814{ 12815 int i; 12816 for (i = 0; i < 256; i++) 12817 if (XOR (islower (i), ISLOWER (i)) 12818 || toupper (i) != TOUPPER (i)) 12819 return 2; 12820 return 0; 12821} 12822_ACEOF 12823if ac_fn_c_try_run "$LINENO"; then : 12824 12825else 12826 ac_cv_header_stdc=no 12827fi 12828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12829 conftest.$ac_objext conftest.beam conftest.$ac_ext 12830fi 12831 12832fi 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12835$as_echo "$ac_cv_header_stdc" >&6; } 12836if test $ac_cv_header_stdc = yes; then 12837 12838$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12839 12840fi 12841 12842 12843 12844 12845 12846 12847 12848# Check whether --with-lint was given. 12849if test "${with_lint+set}" = set; then : 12850 withval=$with_lint; use_lint=$withval 12851else 12852 use_lint=no 12853fi 12854 12855 12856# Obtain platform specific info like program name and options 12857# The lint program on FreeBSD and NetBSD is different from the one on Solaris 12858case $host_os in 12859 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12860 lint_name=splint 12861 lint_options="-badflag" 12862 ;; 12863 *freebsd* | *netbsd*) 12864 lint_name=lint 12865 lint_options="-u -b" 12866 ;; 12867 *solaris*) 12868 lint_name=lint 12869 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12870 ;; 12871esac 12872 12873# Test for the presence of the program (either guessed by the code or spelled out by the user) 12874if test "x$use_lint" = x"yes" ; then 12875 # Extract the first word of "$lint_name", so it can be a program name with args. 12876set dummy $lint_name; ac_word=$2 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12878$as_echo_n "checking for $ac_word... " >&6; } 12879if test "${ac_cv_path_LINT+set}" = set; then : 12880 $as_echo_n "(cached) " >&6 12881else 12882 case $LINT in 12883 [\\/]* | ?:[\\/]*) 12884 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12885 ;; 12886 *) 12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12888for as_dir in $PATH 12889do 12890 IFS=$as_save_IFS 12891 test -z "$as_dir" && as_dir=. 12892 for ac_exec_ext in '' $ac_executable_extensions; do 12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12894 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12896 break 2 12897 fi 12898done 12899 done 12900IFS=$as_save_IFS 12901 12902 ;; 12903esac 12904fi 12905LINT=$ac_cv_path_LINT 12906if test -n "$LINT"; then 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12908$as_echo "$LINT" >&6; } 12909else 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12911$as_echo "no" >&6; } 12912fi 12913 12914 12915 if test "x$LINT" = "x"; then 12916 as_fn_error "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12917 fi 12918elif test "x$use_lint" = x"no" ; then 12919 if test "x$LINT" != "x"; then 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12921$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12922 fi 12923else 12924 as_fn_error "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12925fi 12926 12927# User supplied flags override default flags 12928if test "x$LINT_FLAGS" != "x"; then 12929 lint_options=$LINT_FLAGS 12930fi 12931 12932LINT_FLAGS=$lint_options 12933 12934 if test "x$LINT" != x; then 12935 LINT_TRUE= 12936 LINT_FALSE='#' 12937else 12938 LINT_TRUE='#' 12939 LINT_FALSE= 12940fi 12941 12942 12943 12944 12945 12946# Check whether --enable-lint-library was given. 12947if test "${enable_lint_library+set}" = set; then : 12948 enableval=$enable_lint_library; make_lint_lib=$enableval 12949else 12950 make_lint_lib=no 12951fi 12952 12953 12954if test "x$make_lint_lib" = x"yes" ; then 12955 LINTLIB=llib-lICE.ln 12956 if test "x$LINT" = "x"; then 12957 as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5 12958 fi 12959elif test "x$make_lint_lib" != x"no" ; then 12960 as_fn_error "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 12961fi 12962 12963 12964 if test x$make_lint_lib != xno; then 12965 MAKE_LINT_LIB_TRUE= 12966 MAKE_LINT_LIB_FALSE='#' 12967else 12968 MAKE_LINT_LIB_TRUE='#' 12969 MAKE_LINT_LIB_FALSE= 12970fi 12971 12972 12973 12974LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}" 12975 12976 12977ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc" 12978 12979cat >confcache <<\_ACEOF 12980# This file is a shell script that caches the results of configure 12981# tests run on this system so they can be shared between configure 12982# scripts and configure runs, see configure's option --config-cache. 12983# It is not useful on other systems. If it contains results you don't 12984# want to keep, you may remove or edit it. 12985# 12986# config.status only pays attention to the cache file if you give it 12987# the --recheck option to rerun configure. 12988# 12989# `ac_cv_env_foo' variables (set or unset) will be overridden when 12990# loading this file, other *unset* `ac_cv_foo' will be assigned the 12991# following values. 12992 12993_ACEOF 12994 12995# The following way of writing the cache mishandles newlines in values, 12996# but we know of no workaround that is simple, portable, and efficient. 12997# So, we kill variables containing newlines. 12998# Ultrix sh set writes to stderr and can't be redirected directly, 12999# and sets the high bit in the cache file unless we assign to the vars. 13000( 13001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13002 eval ac_val=\$$ac_var 13003 case $ac_val in #( 13004 *${as_nl}*) 13005 case $ac_var in #( 13006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13007$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13008 esac 13009 case $ac_var in #( 13010 _ | IFS | as_nl) ;; #( 13011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13012 *) { eval $ac_var=; unset $ac_var;} ;; 13013 esac ;; 13014 esac 13015 done 13016 13017 (set) 2>&1 | 13018 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13019 *${as_nl}ac_space=\ *) 13020 # `set' does not quote correctly, so add quotes: double-quote 13021 # substitution turns \\\\ into \\, and sed turns \\ into \. 13022 sed -n \ 13023 "s/'/'\\\\''/g; 13024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13025 ;; #( 13026 *) 13027 # `set' quotes correctly as required by POSIX, so do not add quotes. 13028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13029 ;; 13030 esac | 13031 sort 13032) | 13033 sed ' 13034 /^ac_cv_env_/b end 13035 t clear 13036 :clear 13037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13038 t end 13039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13040 :end' >>confcache 13041if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13042 if test -w "$cache_file"; then 13043 test "x$cache_file" != "x/dev/null" && 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13045$as_echo "$as_me: updating cache $cache_file" >&6;} 13046 cat confcache >$cache_file 13047 else 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13049$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13050 fi 13051fi 13052rm -f confcache 13053 13054test "x$prefix" = xNONE && prefix=$ac_default_prefix 13055# Let make expand exec_prefix. 13056test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13057 13058DEFS=-DHAVE_CONFIG_H 13059 13060ac_libobjs= 13061ac_ltlibobjs= 13062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13063 # 1. Remove the extension, and $U if already installed. 13064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13067 # will be set to the directory where LIBOBJS objects are built. 13068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13070done 13071LIBOBJS=$ac_libobjs 13072 13073LTLIBOBJS=$ac_ltlibobjs 13074 13075 13076 if test -n "$EXEEXT"; then 13077 am__EXEEXT_TRUE= 13078 am__EXEEXT_FALSE='#' 13079else 13080 am__EXEEXT_TRUE='#' 13081 am__EXEEXT_FALSE= 13082fi 13083 13084if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13085 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 13086Usually this means the macro was only invoked conditionally." "$LINENO" 5 13087fi 13088if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13089 as_fn_error "conditional \"AMDEP\" was never defined. 13090Usually this means the macro was only invoked conditionally." "$LINENO" 5 13091fi 13092if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13093 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13094Usually this means the macro was only invoked conditionally." "$LINENO" 5 13095fi 13096if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 13097 as_fn_error "conditional \"ENABLE_DOCS\" was never defined. 13098Usually this means the macro was only invoked conditionally." "$LINENO" 5 13099fi 13100if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 13101 as_fn_error "conditional \"ENABLE_SPECS\" was never defined. 13102Usually this means the macro was only invoked conditionally." "$LINENO" 5 13103fi 13104if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 13105 as_fn_error "conditional \"HAVE_XMLTO_TEXT\" was never defined. 13106Usually this means the macro was only invoked conditionally." "$LINENO" 5 13107fi 13108if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 13109 as_fn_error "conditional \"HAVE_XMLTO\" was never defined. 13110Usually this means the macro was only invoked conditionally." "$LINENO" 5 13111fi 13112if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 13113 as_fn_error "conditional \"HAVE_FOP\" was never defined. 13114Usually this means the macro was only invoked conditionally." "$LINENO" 5 13115fi 13116if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 13117 as_fn_error "conditional \"HAVE_STYLESHEETS\" was never defined. 13118Usually this means the macro was only invoked conditionally." "$LINENO" 5 13119fi 13120if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13121 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13122Usually this means the macro was only invoked conditionally." "$LINENO" 5 13123fi 13124if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 13125 as_fn_error "conditional \"LINT\" was never defined. 13126Usually this means the macro was only invoked conditionally." "$LINENO" 5 13127fi 13128if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 13129 as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined. 13130Usually this means the macro was only invoked conditionally." "$LINENO" 5 13131fi 13132 13133: ${CONFIG_STATUS=./config.status} 13134ac_write_fail=0 13135ac_clean_files_save=$ac_clean_files 13136ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13138$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13139as_write_fail=0 13140cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13141#! $SHELL 13142# Generated by $as_me. 13143# Run this file to recreate the current configuration. 13144# Compiler output produced by configure, useful for debugging 13145# configure, is in config.log if it exists. 13146 13147debug=false 13148ac_cs_recheck=false 13149ac_cs_silent=false 13150 13151SHELL=\${CONFIG_SHELL-$SHELL} 13152export SHELL 13153_ASEOF 13154cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13155## -------------------- ## 13156## M4sh Initialization. ## 13157## -------------------- ## 13158 13159# Be more Bourne compatible 13160DUALCASE=1; export DUALCASE # for MKS sh 13161if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13162 emulate sh 13163 NULLCMD=: 13164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13165 # is contrary to our usage. Disable this feature. 13166 alias -g '${1+"$@"}'='"$@"' 13167 setopt NO_GLOB_SUBST 13168else 13169 case `(set -o) 2>/dev/null` in #( 13170 *posix*) : 13171 set -o posix ;; #( 13172 *) : 13173 ;; 13174esac 13175fi 13176 13177 13178as_nl=' 13179' 13180export as_nl 13181# Printing a long string crashes Solaris 7 /usr/bin/printf. 13182as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13183as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13184as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13185# Prefer a ksh shell builtin over an external printf program on Solaris, 13186# but without wasting forks for bash or zsh. 13187if test -z "$BASH_VERSION$ZSH_VERSION" \ 13188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13189 as_echo='print -r --' 13190 as_echo_n='print -rn --' 13191elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13192 as_echo='printf %s\n' 13193 as_echo_n='printf %s' 13194else 13195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13197 as_echo_n='/usr/ucb/echo -n' 13198 else 13199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13200 as_echo_n_body='eval 13201 arg=$1; 13202 case $arg in #( 13203 *"$as_nl"*) 13204 expr "X$arg" : "X\\(.*\\)$as_nl"; 13205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13206 esac; 13207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13208 ' 13209 export as_echo_n_body 13210 as_echo_n='sh -c $as_echo_n_body as_echo' 13211 fi 13212 export as_echo_body 13213 as_echo='sh -c $as_echo_body as_echo' 13214fi 13215 13216# The user is always right. 13217if test "${PATH_SEPARATOR+set}" != set; then 13218 PATH_SEPARATOR=: 13219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13221 PATH_SEPARATOR=';' 13222 } 13223fi 13224 13225 13226# IFS 13227# We need space, tab and new line, in precisely that order. Quoting is 13228# there to prevent editors from complaining about space-tab. 13229# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13230# splitting by setting IFS to empty value.) 13231IFS=" "" $as_nl" 13232 13233# Find who we are. Look in the path if we contain no directory separator. 13234case $0 in #(( 13235 *[\\/]* ) as_myself=$0 ;; 13236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13237for as_dir in $PATH 13238do 13239 IFS=$as_save_IFS 13240 test -z "$as_dir" && as_dir=. 13241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13242 done 13243IFS=$as_save_IFS 13244 13245 ;; 13246esac 13247# We did not find ourselves, most probably we were run as `sh COMMAND' 13248# in which case we are not to be found in the path. 13249if test "x$as_myself" = x; then 13250 as_myself=$0 13251fi 13252if test ! -f "$as_myself"; then 13253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13254 exit 1 13255fi 13256 13257# Unset variables that we do not need and which cause bugs (e.g. in 13258# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13259# suppresses any "Segmentation fault" message there. '((' could 13260# trigger a bug in pdksh 5.2.14. 13261for as_var in BASH_ENV ENV MAIL MAILPATH 13262do eval test x\${$as_var+set} = xset \ 13263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13264done 13265PS1='$ ' 13266PS2='> ' 13267PS4='+ ' 13268 13269# NLS nuisances. 13270LC_ALL=C 13271export LC_ALL 13272LANGUAGE=C 13273export LANGUAGE 13274 13275# CDPATH. 13276(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13277 13278 13279# as_fn_error ERROR [LINENO LOG_FD] 13280# --------------------------------- 13281# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13282# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13283# script with status $?, using 1 if that was 0. 13284as_fn_error () 13285{ 13286 as_status=$?; test $as_status -eq 0 && as_status=1 13287 if test "$3"; then 13288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 13290 fi 13291 $as_echo "$as_me: error: $1" >&2 13292 as_fn_exit $as_status 13293} # as_fn_error 13294 13295 13296# as_fn_set_status STATUS 13297# ----------------------- 13298# Set $? to STATUS, without forking. 13299as_fn_set_status () 13300{ 13301 return $1 13302} # as_fn_set_status 13303 13304# as_fn_exit STATUS 13305# ----------------- 13306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13307as_fn_exit () 13308{ 13309 set +e 13310 as_fn_set_status $1 13311 exit $1 13312} # as_fn_exit 13313 13314# as_fn_unset VAR 13315# --------------- 13316# Portably unset VAR. 13317as_fn_unset () 13318{ 13319 { eval $1=; unset $1;} 13320} 13321as_unset=as_fn_unset 13322# as_fn_append VAR VALUE 13323# ---------------------- 13324# Append the text in VALUE to the end of the definition contained in VAR. Take 13325# advantage of any shell optimizations that allow amortized linear growth over 13326# repeated appends, instead of the typical quadratic growth present in naive 13327# implementations. 13328if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13329 eval 'as_fn_append () 13330 { 13331 eval $1+=\$2 13332 }' 13333else 13334 as_fn_append () 13335 { 13336 eval $1=\$$1\$2 13337 } 13338fi # as_fn_append 13339 13340# as_fn_arith ARG... 13341# ------------------ 13342# Perform arithmetic evaluation on the ARGs, and store the result in the 13343# global $as_val. Take advantage of shells that can avoid forks. The arguments 13344# must be portable across $(()) and expr. 13345if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13346 eval 'as_fn_arith () 13347 { 13348 as_val=$(( $* )) 13349 }' 13350else 13351 as_fn_arith () 13352 { 13353 as_val=`expr "$@" || test $? -eq 1` 13354 } 13355fi # as_fn_arith 13356 13357 13358if expr a : '\(a\)' >/dev/null 2>&1 && 13359 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13360 as_expr=expr 13361else 13362 as_expr=false 13363fi 13364 13365if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13366 as_basename=basename 13367else 13368 as_basename=false 13369fi 13370 13371if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13372 as_dirname=dirname 13373else 13374 as_dirname=false 13375fi 13376 13377as_me=`$as_basename -- "$0" || 13378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13379 X"$0" : 'X\(//\)$' \| \ 13380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13381$as_echo X/"$0" | 13382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13383 s//\1/ 13384 q 13385 } 13386 /^X\/\(\/\/\)$/{ 13387 s//\1/ 13388 q 13389 } 13390 /^X\/\(\/\).*/{ 13391 s//\1/ 13392 q 13393 } 13394 s/.*/./; q'` 13395 13396# Avoid depending upon Character Ranges. 13397as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13398as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13399as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13400as_cr_digits='0123456789' 13401as_cr_alnum=$as_cr_Letters$as_cr_digits 13402 13403ECHO_C= ECHO_N= ECHO_T= 13404case `echo -n x` in #((((( 13405-n*) 13406 case `echo 'xy\c'` in 13407 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13408 xy) ECHO_C='\c';; 13409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13410 ECHO_T=' ';; 13411 esac;; 13412*) 13413 ECHO_N='-n';; 13414esac 13415 13416rm -f conf$$ conf$$.exe conf$$.file 13417if test -d conf$$.dir; then 13418 rm -f conf$$.dir/conf$$.file 13419else 13420 rm -f conf$$.dir 13421 mkdir conf$$.dir 2>/dev/null 13422fi 13423if (echo >conf$$.file) 2>/dev/null; then 13424 if ln -s conf$$.file conf$$ 2>/dev/null; then 13425 as_ln_s='ln -s' 13426 # ... but there are two gotchas: 13427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13429 # In both cases, we have to default to `cp -p'. 13430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13431 as_ln_s='cp -p' 13432 elif ln conf$$.file conf$$ 2>/dev/null; then 13433 as_ln_s=ln 13434 else 13435 as_ln_s='cp -p' 13436 fi 13437else 13438 as_ln_s='cp -p' 13439fi 13440rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13441rmdir conf$$.dir 2>/dev/null 13442 13443 13444# as_fn_mkdir_p 13445# ------------- 13446# Create "$as_dir" as a directory, including parents if necessary. 13447as_fn_mkdir_p () 13448{ 13449 13450 case $as_dir in #( 13451 -*) as_dir=./$as_dir;; 13452 esac 13453 test -d "$as_dir" || eval $as_mkdir_p || { 13454 as_dirs= 13455 while :; do 13456 case $as_dir in #( 13457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13458 *) as_qdir=$as_dir;; 13459 esac 13460 as_dirs="'$as_qdir' $as_dirs" 13461 as_dir=`$as_dirname -- "$as_dir" || 13462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13463 X"$as_dir" : 'X\(//\)[^/]' \| \ 13464 X"$as_dir" : 'X\(//\)$' \| \ 13465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13466$as_echo X"$as_dir" | 13467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13468 s//\1/ 13469 q 13470 } 13471 /^X\(\/\/\)[^/].*/{ 13472 s//\1/ 13473 q 13474 } 13475 /^X\(\/\/\)$/{ 13476 s//\1/ 13477 q 13478 } 13479 /^X\(\/\).*/{ 13480 s//\1/ 13481 q 13482 } 13483 s/.*/./; q'` 13484 test -d "$as_dir" && break 13485 done 13486 test -z "$as_dirs" || eval "mkdir $as_dirs" 13487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 13488 13489 13490} # as_fn_mkdir_p 13491if mkdir -p . 2>/dev/null; then 13492 as_mkdir_p='mkdir -p "$as_dir"' 13493else 13494 test -d ./-p && rmdir ./-p 13495 as_mkdir_p=false 13496fi 13497 13498if test -x / >/dev/null 2>&1; then 13499 as_test_x='test -x' 13500else 13501 if ls -dL / >/dev/null 2>&1; then 13502 as_ls_L_option=L 13503 else 13504 as_ls_L_option= 13505 fi 13506 as_test_x=' 13507 eval sh -c '\'' 13508 if test -d "$1"; then 13509 test -d "$1/."; 13510 else 13511 case $1 in #( 13512 -*)set "./$1";; 13513 esac; 13514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13515 ???[sx]*):;;*)false;;esac;fi 13516 '\'' sh 13517 ' 13518fi 13519as_executable_p=$as_test_x 13520 13521# Sed expression to map a string onto a valid CPP name. 13522as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13523 13524# Sed expression to map a string onto a valid variable name. 13525as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13526 13527 13528exec 6>&1 13529## ----------------------------------- ## 13530## Main body of $CONFIG_STATUS script. ## 13531## ----------------------------------- ## 13532_ASEOF 13533test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13534 13535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13536# Save the log message, to keep $0 and so on meaningful, and to 13537# report actual input values of CONFIG_FILES etc. instead of their 13538# values after options handling. 13539ac_log=" 13540This file was extended by libICE $as_me 1.0.7, which was 13541generated by GNU Autoconf 2.65. Invocation command line was 13542 13543 CONFIG_FILES = $CONFIG_FILES 13544 CONFIG_HEADERS = $CONFIG_HEADERS 13545 CONFIG_LINKS = $CONFIG_LINKS 13546 CONFIG_COMMANDS = $CONFIG_COMMANDS 13547 $ $0 $@ 13548 13549on `(hostname || uname -n) 2>/dev/null | sed 1q` 13550" 13551 13552_ACEOF 13553 13554case $ac_config_files in *" 13555"*) set x $ac_config_files; shift; ac_config_files=$*;; 13556esac 13557 13558case $ac_config_headers in *" 13559"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13560esac 13561 13562 13563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13564# Files that config.status was made for. 13565config_files="$ac_config_files" 13566config_headers="$ac_config_headers" 13567config_commands="$ac_config_commands" 13568 13569_ACEOF 13570 13571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13572ac_cs_usage="\ 13573\`$as_me' instantiates files and other configuration actions 13574from templates according to the current configuration. Unless the files 13575and actions are specified as TAGs, all are instantiated by default. 13576 13577Usage: $0 [OPTION]... [TAG]... 13578 13579 -h, --help print this help, then exit 13580 -V, --version print version number and configuration settings, then exit 13581 --config print configuration, then exit 13582 -q, --quiet, --silent 13583 do not print progress messages 13584 -d, --debug don't remove temporary files 13585 --recheck update $as_me by reconfiguring in the same conditions 13586 --file=FILE[:TEMPLATE] 13587 instantiate the configuration file FILE 13588 --header=FILE[:TEMPLATE] 13589 instantiate the configuration header FILE 13590 13591Configuration files: 13592$config_files 13593 13594Configuration headers: 13595$config_headers 13596 13597Configuration commands: 13598$config_commands 13599 13600Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 13601 13602_ACEOF 13603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13604ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13605ac_cs_version="\\ 13606libICE config.status 1.0.7 13607configured by $0, generated by GNU Autoconf 2.65, 13608 with options \\"\$ac_cs_config\\" 13609 13610Copyright (C) 2009 Free Software Foundation, Inc. 13611This config.status script is free software; the Free Software Foundation 13612gives unlimited permission to copy, distribute and modify it." 13613 13614ac_pwd='$ac_pwd' 13615srcdir='$srcdir' 13616INSTALL='$INSTALL' 13617MKDIR_P='$MKDIR_P' 13618AWK='$AWK' 13619test -n "\$AWK" || AWK=awk 13620_ACEOF 13621 13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13623# The default lists apply if the user does not specify any file. 13624ac_need_defaults=: 13625while test $# != 0 13626do 13627 case $1 in 13628 --*=*) 13629 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13631 ac_shift=: 13632 ;; 13633 *) 13634 ac_option=$1 13635 ac_optarg=$2 13636 ac_shift=shift 13637 ;; 13638 esac 13639 13640 case $ac_option in 13641 # Handling of the options. 13642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13643 ac_cs_recheck=: ;; 13644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13645 $as_echo "$ac_cs_version"; exit ;; 13646 --config | --confi | --conf | --con | --co | --c ) 13647 $as_echo "$ac_cs_config"; exit ;; 13648 --debug | --debu | --deb | --de | --d | -d ) 13649 debug=: ;; 13650 --file | --fil | --fi | --f ) 13651 $ac_shift 13652 case $ac_optarg in 13653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13654 esac 13655 as_fn_append CONFIG_FILES " '$ac_optarg'" 13656 ac_need_defaults=false;; 13657 --header | --heade | --head | --hea ) 13658 $ac_shift 13659 case $ac_optarg in 13660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13661 esac 13662 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13663 ac_need_defaults=false;; 13664 --he | --h) 13665 # Conflict between --help and --header 13666 as_fn_error "ambiguous option: \`$1' 13667Try \`$0 --help' for more information.";; 13668 --help | --hel | -h ) 13669 $as_echo "$ac_cs_usage"; exit ;; 13670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13671 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13672 ac_cs_silent=: ;; 13673 13674 # This is an error. 13675 -*) as_fn_error "unrecognized option: \`$1' 13676Try \`$0 --help' for more information." ;; 13677 13678 *) as_fn_append ac_config_targets " $1" 13679 ac_need_defaults=false ;; 13680 13681 esac 13682 shift 13683done 13684 13685ac_configure_extra_args= 13686 13687if $ac_cs_silent; then 13688 exec 6>/dev/null 13689 ac_configure_extra_args="$ac_configure_extra_args --silent" 13690fi 13691 13692_ACEOF 13693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13694if \$ac_cs_recheck; then 13695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13696 shift 13697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13698 CONFIG_SHELL='$SHELL' 13699 export CONFIG_SHELL 13700 exec "\$@" 13701fi 13702 13703_ACEOF 13704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13705exec 5>>config.log 13706{ 13707 echo 13708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13709## Running $as_me. ## 13710_ASBOX 13711 $as_echo "$ac_log" 13712} >&5 13713 13714_ACEOF 13715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13716# 13717# INIT-COMMANDS 13718# 13719AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13720 13721 13722# The HP-UX ksh and POSIX shell print the target directory to stdout 13723# if CDPATH is set. 13724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13725 13726sed_quote_subst='$sed_quote_subst' 13727double_quote_subst='$double_quote_subst' 13728delay_variable_subst='$delay_variable_subst' 13729macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13730macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13731enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13732enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13733pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13734enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13735host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13736host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13737host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13738build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13739build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13740build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13741SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13742Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13743GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13744EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13745FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13746LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13747NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13748LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13749max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13750ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13751exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13752lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13753lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13754lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13755reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13756reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13757OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13758deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13759file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13760AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13761AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13762STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13763RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13764old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13765old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13766old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13767CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13768CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13769compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13770GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13771lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13772lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13773lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13774lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13775objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13776SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13777ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13778MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13779lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13780lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13781lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13782lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13783lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13784need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13785DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13786NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13787LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13788OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13789OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13790libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13791shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13792extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13793archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13794enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13795export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13796whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13797compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13798old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13799old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13800archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13801archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13802module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13803module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13804with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13805allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13806no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13807hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13808hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13809hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13810hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13811hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13812hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13813hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13814hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13815inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13816link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13817fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13818always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13819export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13820exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13821include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13822prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13823file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13824variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13825need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13826need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13827version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13828runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13829shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13830shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13831libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13832library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13833soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13834postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13835postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13836finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13837finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13838hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13839sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13840sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13841hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13842enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13843enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13844enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13845old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13846striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13847 13848LTCC='$LTCC' 13849LTCFLAGS='$LTCFLAGS' 13850compiler='$compiler_DEFAULT' 13851 13852# Quote evaled strings. 13853for var in SED \ 13854GREP \ 13855EGREP \ 13856FGREP \ 13857LD \ 13858NM \ 13859LN_S \ 13860lt_SP2NL \ 13861lt_NL2SP \ 13862reload_flag \ 13863OBJDUMP \ 13864deplibs_check_method \ 13865file_magic_cmd \ 13866AR \ 13867AR_FLAGS \ 13868STRIP \ 13869RANLIB \ 13870CC \ 13871CFLAGS \ 13872compiler \ 13873lt_cv_sys_global_symbol_pipe \ 13874lt_cv_sys_global_symbol_to_cdecl \ 13875lt_cv_sys_global_symbol_to_c_name_address \ 13876lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13877SHELL \ 13878ECHO \ 13879lt_prog_compiler_no_builtin_flag \ 13880lt_prog_compiler_wl \ 13881lt_prog_compiler_pic \ 13882lt_prog_compiler_static \ 13883lt_cv_prog_compiler_c_o \ 13884need_locks \ 13885DSYMUTIL \ 13886NMEDIT \ 13887LIPO \ 13888OTOOL \ 13889OTOOL64 \ 13890shrext_cmds \ 13891export_dynamic_flag_spec \ 13892whole_archive_flag_spec \ 13893compiler_needs_object \ 13894with_gnu_ld \ 13895allow_undefined_flag \ 13896no_undefined_flag \ 13897hardcode_libdir_flag_spec \ 13898hardcode_libdir_flag_spec_ld \ 13899hardcode_libdir_separator \ 13900fix_srcfile_path \ 13901exclude_expsyms \ 13902include_expsyms \ 13903file_list_spec \ 13904variables_saved_for_relink \ 13905libname_spec \ 13906library_names_spec \ 13907soname_spec \ 13908finish_eval \ 13909old_striplib \ 13910striplib; do 13911 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13912 *[\\\\\\\`\\"\\\$]*) 13913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13914 ;; 13915 *) 13916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13917 ;; 13918 esac 13919done 13920 13921# Double-quote double-evaled strings. 13922for var in reload_cmds \ 13923old_postinstall_cmds \ 13924old_postuninstall_cmds \ 13925old_archive_cmds \ 13926extract_expsyms_cmds \ 13927old_archive_from_new_cmds \ 13928old_archive_from_expsyms_cmds \ 13929archive_cmds \ 13930archive_expsym_cmds \ 13931module_cmds \ 13932module_expsym_cmds \ 13933export_symbols_cmds \ 13934prelink_cmds \ 13935postinstall_cmds \ 13936postuninstall_cmds \ 13937finish_cmds \ 13938sys_lib_search_path_spec \ 13939sys_lib_dlsearch_path_spec; do 13940 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13941 *[\\\\\\\`\\"\\\$]*) 13942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13943 ;; 13944 *) 13945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13946 ;; 13947 esac 13948done 13949 13950# Fix-up fallback echo if it was mangled by the above quoting rules. 13951case \$lt_ECHO in 13952*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13953 ;; 13954esac 13955 13956ac_aux_dir='$ac_aux_dir' 13957xsi_shell='$xsi_shell' 13958lt_shell_append='$lt_shell_append' 13959 13960# See if we are running on zsh, and set the options which allow our 13961# commands through without removal of \ escapes INIT. 13962if test -n "\${ZSH_VERSION+set}" ; then 13963 setopt NO_GLOB_SUBST 13964fi 13965 13966 13967 PACKAGE='$PACKAGE' 13968 VERSION='$VERSION' 13969 TIMESTAMP='$TIMESTAMP' 13970 RM='$RM' 13971 ofile='$ofile' 13972 13973 13974 13975 13976_ACEOF 13977 13978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13979 13980# Handling of arguments. 13981for ac_config_target in $ac_config_targets 13982do 13983 case $ac_config_target in 13984 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13985 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13986 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13988 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13989 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 13990 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13991 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;; 13992 13993 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13994 esac 13995done 13996 13997 13998# If the user did not use the arguments to specify the items to instantiate, 13999# then the envvar interface is used. Set only those that are not. 14000# We use the long form for the default assignment because of an extremely 14001# bizarre bug on SunOS 4.1.3. 14002if $ac_need_defaults; then 14003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14006fi 14007 14008# Have a temporary directory for convenience. Make it in the build tree 14009# simply because there is no reason against having it here, and in addition, 14010# creating and moving files from /tmp can sometimes cause problems. 14011# Hook for its removal unless debugging. 14012# Note that there is a small window in which the directory will not be cleaned: 14013# after its creation but before its name has been assigned to `$tmp'. 14014$debug || 14015{ 14016 tmp= 14017 trap 'exit_status=$? 14018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14019' 0 14020 trap 'as_fn_exit 1' 1 2 13 15 14021} 14022# Create a (secure) tmp directory for tmp files. 14023 14024{ 14025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14026 test -n "$tmp" && test -d "$tmp" 14027} || 14028{ 14029 tmp=./conf$$-$RANDOM 14030 (umask 077 && mkdir "$tmp") 14031} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 14032 14033# Set up the scripts for CONFIG_FILES section. 14034# No need to generate them if there are no CONFIG_FILES. 14035# This happens for instance with `./config.status config.h'. 14036if test -n "$CONFIG_FILES"; then 14037 14038 14039ac_cr=`echo X | tr X '\015'` 14040# On cygwin, bash can eat \r inside `` if the user requested igncr. 14041# But we know of no other shell where ac_cr would be empty at this 14042# point, so we can use a bashism as a fallback. 14043if test "x$ac_cr" = x; then 14044 eval ac_cr=\$\'\\r\' 14045fi 14046ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14047if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14048 ac_cs_awk_cr='\r' 14049else 14050 ac_cs_awk_cr=$ac_cr 14051fi 14052 14053echo 'BEGIN {' >"$tmp/subs1.awk" && 14054_ACEOF 14055 14056 14057{ 14058 echo "cat >conf$$subs.awk <<_ACEOF" && 14059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14060 echo "_ACEOF" 14061} >conf$$subs.sh || 14062 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14063ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14064ac_delim='%!_!# ' 14065for ac_last_try in false false false false false :; do 14066 . ./conf$$subs.sh || 14067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14068 14069 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14070 if test $ac_delim_n = $ac_delim_num; then 14071 break 14072 elif $ac_last_try; then 14073 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14074 else 14075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14076 fi 14077done 14078rm -f conf$$subs.sh 14079 14080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14081cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14082_ACEOF 14083sed -n ' 14084h 14085s/^/S["/; s/!.*/"]=/ 14086p 14087g 14088s/^[^!]*!// 14089:repl 14090t repl 14091s/'"$ac_delim"'$// 14092t delim 14093:nl 14094h 14095s/\(.\{148\}\)..*/\1/ 14096t more1 14097s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14098p 14099n 14100b repl 14101:more1 14102s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14103p 14104g 14105s/.\{148\}// 14106t nl 14107:delim 14108h 14109s/\(.\{148\}\)..*/\1/ 14110t more2 14111s/["\\]/\\&/g; s/^/"/; s/$/"/ 14112p 14113b 14114:more2 14115s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14116p 14117g 14118s/.\{148\}// 14119t delim 14120' <conf$$subs.awk | sed ' 14121/^[^""]/{ 14122 N 14123 s/\n// 14124} 14125' >>$CONFIG_STATUS || ac_write_fail=1 14126rm -f conf$$subs.awk 14127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14128_ACAWK 14129cat >>"\$tmp/subs1.awk" <<_ACAWK && 14130 for (key in S) S_is_set[key] = 1 14131 FS = "" 14132 14133} 14134{ 14135 line = $ 0 14136 nfields = split(line, field, "@") 14137 substed = 0 14138 len = length(field[1]) 14139 for (i = 2; i < nfields; i++) { 14140 key = field[i] 14141 keylen = length(key) 14142 if (S_is_set[key]) { 14143 value = S[key] 14144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14145 len += length(value) + length(field[++i]) 14146 substed = 1 14147 } else 14148 len += 1 + keylen 14149 } 14150 14151 print line 14152} 14153 14154_ACAWK 14155_ACEOF 14156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14157if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14158 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14159else 14160 cat 14161fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14162 || as_fn_error "could not setup config files machinery" "$LINENO" 5 14163_ACEOF 14164 14165# VPATH may cause trouble with some makes, so we remove $(srcdir), 14166# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14167# trailing colons and then remove the whole line if VPATH becomes empty 14168# (actually we leave an empty line to preserve line numbers). 14169if test "x$srcdir" = x.; then 14170 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14171s/:*\$(srcdir):*/:/ 14172s/:*\${srcdir}:*/:/ 14173s/:*@srcdir@:*/:/ 14174s/^\([^=]*=[ ]*\):*/\1/ 14175s/:*$// 14176s/^[^=]*=[ ]*$// 14177}' 14178fi 14179 14180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14181fi # test -n "$CONFIG_FILES" 14182 14183# Set up the scripts for CONFIG_HEADERS section. 14184# No need to generate them if there are no CONFIG_HEADERS. 14185# This happens for instance with `./config.status Makefile'. 14186if test -n "$CONFIG_HEADERS"; then 14187cat >"$tmp/defines.awk" <<\_ACAWK || 14188BEGIN { 14189_ACEOF 14190 14191# Transform confdefs.h into an awk script `defines.awk', embedded as 14192# here-document in config.status, that substitutes the proper values into 14193# config.h.in to produce config.h. 14194 14195# Create a delimiter string that does not exist in confdefs.h, to ease 14196# handling of long lines. 14197ac_delim='%!_!# ' 14198for ac_last_try in false false :; do 14199 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14200 if test -z "$ac_t"; then 14201 break 14202 elif $ac_last_try; then 14203 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 14204 else 14205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14206 fi 14207done 14208 14209# For the awk script, D is an array of macro values keyed by name, 14210# likewise P contains macro parameters if any. Preserve backslash 14211# newline sequences. 14212 14213ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14214sed -n ' 14215s/.\{148\}/&'"$ac_delim"'/g 14216t rset 14217:rset 14218s/^[ ]*#[ ]*define[ ][ ]*/ / 14219t def 14220d 14221:def 14222s/\\$// 14223t bsnl 14224s/["\\]/\\&/g 14225s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14226D["\1"]=" \3"/p 14227s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14228d 14229:bsnl 14230s/["\\]/\\&/g 14231s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14232D["\1"]=" \3\\\\\\n"\\/p 14233t cont 14234s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14235t cont 14236d 14237:cont 14238n 14239s/.\{148\}/&'"$ac_delim"'/g 14240t clear 14241:clear 14242s/\\$// 14243t bsnlc 14244s/["\\]/\\&/g; s/^/"/; s/$/"/p 14245d 14246:bsnlc 14247s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14248b cont 14249' <confdefs.h | sed ' 14250s/'"$ac_delim"'/"\\\ 14251"/g' >>$CONFIG_STATUS || ac_write_fail=1 14252 14253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14254 for (key in D) D_is_set[key] = 1 14255 FS = "" 14256} 14257/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14258 line = \$ 0 14259 split(line, arg, " ") 14260 if (arg[1] == "#") { 14261 defundef = arg[2] 14262 mac1 = arg[3] 14263 } else { 14264 defundef = substr(arg[1], 2) 14265 mac1 = arg[2] 14266 } 14267 split(mac1, mac2, "(") #) 14268 macro = mac2[1] 14269 prefix = substr(line, 1, index(line, defundef) - 1) 14270 if (D_is_set[macro]) { 14271 # Preserve the white space surrounding the "#". 14272 print prefix "define", macro P[macro] D[macro] 14273 next 14274 } else { 14275 # Replace #undef with comments. This is necessary, for example, 14276 # in the case of _POSIX_SOURCE, which is predefined and required 14277 # on some systems where configure will not decide to define it. 14278 if (defundef == "undef") { 14279 print "/*", prefix defundef, macro, "*/" 14280 next 14281 } 14282 } 14283} 14284{ print } 14285_ACAWK 14286_ACEOF 14287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14288 as_fn_error "could not setup config headers machinery" "$LINENO" 5 14289fi # test -n "$CONFIG_HEADERS" 14290 14291 14292eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14293shift 14294for ac_tag 14295do 14296 case $ac_tag in 14297 :[FHLC]) ac_mode=$ac_tag; continue;; 14298 esac 14299 case $ac_mode$ac_tag in 14300 :[FHL]*:*);; 14301 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 14302 :[FH]-) ac_tag=-:-;; 14303 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14304 esac 14305 ac_save_IFS=$IFS 14306 IFS=: 14307 set x $ac_tag 14308 IFS=$ac_save_IFS 14309 shift 14310 ac_file=$1 14311 shift 14312 14313 case $ac_mode in 14314 :L) ac_source=$1;; 14315 :[FH]) 14316 ac_file_inputs= 14317 for ac_f 14318 do 14319 case $ac_f in 14320 -) ac_f="$tmp/stdin";; 14321 *) # Look for the file first in the build tree, then in the source tree 14322 # (if the path is not absolute). The absolute path cannot be DOS-style, 14323 # because $ac_f cannot contain `:'. 14324 test -f "$ac_f" || 14325 case $ac_f in 14326 [\\/$]*) false;; 14327 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14328 esac || 14329 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14330 esac 14331 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14332 as_fn_append ac_file_inputs " '$ac_f'" 14333 done 14334 14335 # Let's still pretend it is `configure' which instantiates (i.e., don't 14336 # use $as_me), people would be surprised to read: 14337 # /* config.h. Generated by config.status. */ 14338 configure_input='Generated from '` 14339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14340 `' by configure.' 14341 if test x"$ac_file" != x-; then 14342 configure_input="$ac_file. $configure_input" 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14344$as_echo "$as_me: creating $ac_file" >&6;} 14345 fi 14346 # Neutralize special characters interpreted by sed in replacement strings. 14347 case $configure_input in #( 14348 *\&* | *\|* | *\\* ) 14349 ac_sed_conf_input=`$as_echo "$configure_input" | 14350 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14351 *) ac_sed_conf_input=$configure_input;; 14352 esac 14353 14354 case $ac_tag in 14355 *:-:* | *:-) cat >"$tmp/stdin" \ 14356 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 14357 esac 14358 ;; 14359 esac 14360 14361 ac_dir=`$as_dirname -- "$ac_file" || 14362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14363 X"$ac_file" : 'X\(//\)[^/]' \| \ 14364 X"$ac_file" : 'X\(//\)$' \| \ 14365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14366$as_echo X"$ac_file" | 14367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14368 s//\1/ 14369 q 14370 } 14371 /^X\(\/\/\)[^/].*/{ 14372 s//\1/ 14373 q 14374 } 14375 /^X\(\/\/\)$/{ 14376 s//\1/ 14377 q 14378 } 14379 /^X\(\/\).*/{ 14380 s//\1/ 14381 q 14382 } 14383 s/.*/./; q'` 14384 as_dir="$ac_dir"; as_fn_mkdir_p 14385 ac_builddir=. 14386 14387case "$ac_dir" in 14388.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14389*) 14390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14391 # A ".." for each directory in $ac_dir_suffix. 14392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14393 case $ac_top_builddir_sub in 14394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14396 esac ;; 14397esac 14398ac_abs_top_builddir=$ac_pwd 14399ac_abs_builddir=$ac_pwd$ac_dir_suffix 14400# for backward compatibility: 14401ac_top_builddir=$ac_top_build_prefix 14402 14403case $srcdir in 14404 .) # We are building in place. 14405 ac_srcdir=. 14406 ac_top_srcdir=$ac_top_builddir_sub 14407 ac_abs_top_srcdir=$ac_pwd ;; 14408 [\\/]* | ?:[\\/]* ) # Absolute name. 14409 ac_srcdir=$srcdir$ac_dir_suffix; 14410 ac_top_srcdir=$srcdir 14411 ac_abs_top_srcdir=$srcdir ;; 14412 *) # Relative name. 14413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14414 ac_top_srcdir=$ac_top_build_prefix$srcdir 14415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14416esac 14417ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14418 14419 14420 case $ac_mode in 14421 :F) 14422 # 14423 # CONFIG_FILE 14424 # 14425 14426 case $INSTALL in 14427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14428 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14429 esac 14430 ac_MKDIR_P=$MKDIR_P 14431 case $MKDIR_P in 14432 [\\/$]* | ?:[\\/]* ) ;; 14433 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14434 esac 14435_ACEOF 14436 14437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14438# If the template does not know about datarootdir, expand it. 14439# FIXME: This hack should be removed a few years after 2.60. 14440ac_datarootdir_hack=; ac_datarootdir_seen= 14441ac_sed_dataroot=' 14442/datarootdir/ { 14443 p 14444 q 14445} 14446/@datadir@/p 14447/@docdir@/p 14448/@infodir@/p 14449/@localedir@/p 14450/@mandir@/p' 14451case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14452*datarootdir*) ac_datarootdir_seen=yes;; 14453*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14455$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14456_ACEOF 14457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14458 ac_datarootdir_hack=' 14459 s&@datadir@&$datadir&g 14460 s&@docdir@&$docdir&g 14461 s&@infodir@&$infodir&g 14462 s&@localedir@&$localedir&g 14463 s&@mandir@&$mandir&g 14464 s&\\\${datarootdir}&$datarootdir&g' ;; 14465esac 14466_ACEOF 14467 14468# Neutralize VPATH when `$srcdir' = `.'. 14469# Shell code in configure.ac might set extrasub. 14470# FIXME: do we really want to maintain this feature? 14471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14472ac_sed_extra="$ac_vpsub 14473$extrasub 14474_ACEOF 14475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14476:t 14477/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14478s|@configure_input@|$ac_sed_conf_input|;t t 14479s&@top_builddir@&$ac_top_builddir_sub&;t t 14480s&@top_build_prefix@&$ac_top_build_prefix&;t t 14481s&@srcdir@&$ac_srcdir&;t t 14482s&@abs_srcdir@&$ac_abs_srcdir&;t t 14483s&@top_srcdir@&$ac_top_srcdir&;t t 14484s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14485s&@builddir@&$ac_builddir&;t t 14486s&@abs_builddir@&$ac_abs_builddir&;t t 14487s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14488s&@INSTALL@&$ac_INSTALL&;t t 14489s&@MKDIR_P@&$ac_MKDIR_P&;t t 14490$ac_datarootdir_hack 14491" 14492eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14493 || as_fn_error "could not create $ac_file" "$LINENO" 5 14494 14495test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14499which seems to be undefined. Please make sure it is defined." >&5 14500$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14501which seems to be undefined. Please make sure it is defined." >&2;} 14502 14503 rm -f "$tmp/stdin" 14504 case $ac_file in 14505 -) cat "$tmp/out" && rm -f "$tmp/out";; 14506 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14507 esac \ 14508 || as_fn_error "could not create $ac_file" "$LINENO" 5 14509 ;; 14510 :H) 14511 # 14512 # CONFIG_HEADER 14513 # 14514 if test x"$ac_file" != x-; then 14515 { 14516 $as_echo "/* $configure_input */" \ 14517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14518 } >"$tmp/config.h" \ 14519 || as_fn_error "could not create $ac_file" "$LINENO" 5 14520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14522$as_echo "$as_me: $ac_file is unchanged" >&6;} 14523 else 14524 rm -f "$ac_file" 14525 mv "$tmp/config.h" "$ac_file" \ 14526 || as_fn_error "could not create $ac_file" "$LINENO" 5 14527 fi 14528 else 14529 $as_echo "/* $configure_input */" \ 14530 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14531 || as_fn_error "could not create -" "$LINENO" 5 14532 fi 14533# Compute "$ac_file"'s index in $config_headers. 14534_am_arg="$ac_file" 14535_am_stamp_count=1 14536for _am_header in $config_headers :; do 14537 case $_am_header in 14538 $_am_arg | $_am_arg:* ) 14539 break ;; 14540 * ) 14541 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14542 esac 14543done 14544echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14545$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14546 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14547 X"$_am_arg" : 'X\(//\)$' \| \ 14548 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14549$as_echo X"$_am_arg" | 14550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14551 s//\1/ 14552 q 14553 } 14554 /^X\(\/\/\)[^/].*/{ 14555 s//\1/ 14556 q 14557 } 14558 /^X\(\/\/\)$/{ 14559 s//\1/ 14560 q 14561 } 14562 /^X\(\/\).*/{ 14563 s//\1/ 14564 q 14565 } 14566 s/.*/./; q'`/stamp-h$_am_stamp_count 14567 ;; 14568 14569 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14570$as_echo "$as_me: executing $ac_file commands" >&6;} 14571 ;; 14572 esac 14573 14574 14575 case $ac_file$ac_mode in 14576 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14577 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14578 # are listed without --file. Let's play safe and only enable the eval 14579 # if we detect the quoting. 14580 case $CONFIG_FILES in 14581 *\'*) eval set x "$CONFIG_FILES" ;; 14582 *) set x $CONFIG_FILES ;; 14583 esac 14584 shift 14585 for mf 14586 do 14587 # Strip MF so we end up with the name of the file. 14588 mf=`echo "$mf" | sed -e 's/:.*$//'` 14589 # Check whether this is an Automake generated Makefile or not. 14590 # We used to match only the files named `Makefile.in', but 14591 # some people rename them; so instead we look at the file content. 14592 # Grep'ing the first line is not enough: some people post-process 14593 # each Makefile.in and add a new line on top of each file to say so. 14594 # Grep'ing the whole file is not good either: AIX grep has a line 14595 # limit of 2048, but all sed's we know have understand at least 4000. 14596 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14597 dirpart=`$as_dirname -- "$mf" || 14598$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14599 X"$mf" : 'X\(//\)[^/]' \| \ 14600 X"$mf" : 'X\(//\)$' \| \ 14601 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14602$as_echo X"$mf" | 14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14604 s//\1/ 14605 q 14606 } 14607 /^X\(\/\/\)[^/].*/{ 14608 s//\1/ 14609 q 14610 } 14611 /^X\(\/\/\)$/{ 14612 s//\1/ 14613 q 14614 } 14615 /^X\(\/\).*/{ 14616 s//\1/ 14617 q 14618 } 14619 s/.*/./; q'` 14620 else 14621 continue 14622 fi 14623 # Extract the definition of DEPDIR, am__include, and am__quote 14624 # from the Makefile without running `make'. 14625 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14626 test -z "$DEPDIR" && continue 14627 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14628 test -z "am__include" && continue 14629 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14630 # When using ansi2knr, U may be empty or an underscore; expand it 14631 U=`sed -n 's/^U = //p' < "$mf"` 14632 # Find all dependency output files, they are included files with 14633 # $(DEPDIR) in their names. We invoke sed twice because it is the 14634 # simplest approach to changing $(DEPDIR) to its actual value in the 14635 # expansion. 14636 for file in `sed -n " 14637 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14638 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14639 # Make sure the directory exists. 14640 test -f "$dirpart/$file" && continue 14641 fdir=`$as_dirname -- "$file" || 14642$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14643 X"$file" : 'X\(//\)[^/]' \| \ 14644 X"$file" : 'X\(//\)$' \| \ 14645 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14646$as_echo X"$file" | 14647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14648 s//\1/ 14649 q 14650 } 14651 /^X\(\/\/\)[^/].*/{ 14652 s//\1/ 14653 q 14654 } 14655 /^X\(\/\/\)$/{ 14656 s//\1/ 14657 q 14658 } 14659 /^X\(\/\).*/{ 14660 s//\1/ 14661 q 14662 } 14663 s/.*/./; q'` 14664 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14665 # echo "creating $dirpart/$file" 14666 echo '# dummy' > "$dirpart/$file" 14667 done 14668 done 14669} 14670 ;; 14671 "libtool":C) 14672 14673 # See if we are running on zsh, and set the options which allow our 14674 # commands through without removal of \ escapes. 14675 if test -n "${ZSH_VERSION+set}" ; then 14676 setopt NO_GLOB_SUBST 14677 fi 14678 14679 cfgfile="${ofile}T" 14680 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14681 $RM "$cfgfile" 14682 14683 cat <<_LT_EOF >> "$cfgfile" 14684#! $SHELL 14685 14686# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14687# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14688# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14689# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14690# 14691# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14692# 2006, 2007, 2008 Free Software Foundation, Inc. 14693# Written by Gordon Matzigkeit, 1996 14694# 14695# This file is part of GNU Libtool. 14696# 14697# GNU Libtool is free software; you can redistribute it and/or 14698# modify it under the terms of the GNU General Public License as 14699# published by the Free Software Foundation; either version 2 of 14700# the License, or (at your option) any later version. 14701# 14702# As a special exception to the GNU General Public License, 14703# if you distribute this file as part of a program or library that 14704# is built using GNU Libtool, you may include this file under the 14705# same distribution terms that you use for the rest of that program. 14706# 14707# GNU Libtool is distributed in the hope that it will be useful, 14708# but WITHOUT ANY WARRANTY; without even the implied warranty of 14709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14710# GNU General Public License for more details. 14711# 14712# You should have received a copy of the GNU General Public License 14713# along with GNU Libtool; see the file COPYING. If not, a copy 14714# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14715# obtained by writing to the Free Software Foundation, Inc., 14716# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14717 14718 14719# The names of the tagged configurations supported by this script. 14720available_tags="" 14721 14722# ### BEGIN LIBTOOL CONFIG 14723 14724# Which release of libtool.m4 was used? 14725macro_version=$macro_version 14726macro_revision=$macro_revision 14727 14728# Whether or not to build shared libraries. 14729build_libtool_libs=$enable_shared 14730 14731# Whether or not to build static libraries. 14732build_old_libs=$enable_static 14733 14734# What type of objects to build. 14735pic_mode=$pic_mode 14736 14737# Whether or not to optimize for fast installation. 14738fast_install=$enable_fast_install 14739 14740# The host system. 14741host_alias=$host_alias 14742host=$host 14743host_os=$host_os 14744 14745# The build system. 14746build_alias=$build_alias 14747build=$build 14748build_os=$build_os 14749 14750# A sed program that does not truncate output. 14751SED=$lt_SED 14752 14753# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14754Xsed="\$SED -e 1s/^X//" 14755 14756# A grep program that handles long lines. 14757GREP=$lt_GREP 14758 14759# An ERE matcher. 14760EGREP=$lt_EGREP 14761 14762# A literal string matcher. 14763FGREP=$lt_FGREP 14764 14765# A BSD- or MS-compatible name lister. 14766NM=$lt_NM 14767 14768# Whether we need soft or hard links. 14769LN_S=$lt_LN_S 14770 14771# What is the maximum length of a command? 14772max_cmd_len=$max_cmd_len 14773 14774# Object file suffix (normally "o"). 14775objext=$ac_objext 14776 14777# Executable file suffix (normally ""). 14778exeext=$exeext 14779 14780# whether the shell understands "unset". 14781lt_unset=$lt_unset 14782 14783# turn spaces into newlines. 14784SP2NL=$lt_lt_SP2NL 14785 14786# turn newlines into spaces. 14787NL2SP=$lt_lt_NL2SP 14788 14789# How to create reloadable object files. 14790reload_flag=$lt_reload_flag 14791reload_cmds=$lt_reload_cmds 14792 14793# An object symbol dumper. 14794OBJDUMP=$lt_OBJDUMP 14795 14796# Method to check whether dependent libraries are shared objects. 14797deplibs_check_method=$lt_deplibs_check_method 14798 14799# Command to use when deplibs_check_method == "file_magic". 14800file_magic_cmd=$lt_file_magic_cmd 14801 14802# The archiver. 14803AR=$lt_AR 14804AR_FLAGS=$lt_AR_FLAGS 14805 14806# A symbol stripping program. 14807STRIP=$lt_STRIP 14808 14809# Commands used to install an old-style archive. 14810RANLIB=$lt_RANLIB 14811old_postinstall_cmds=$lt_old_postinstall_cmds 14812old_postuninstall_cmds=$lt_old_postuninstall_cmds 14813 14814# A C compiler. 14815LTCC=$lt_CC 14816 14817# LTCC compiler flags. 14818LTCFLAGS=$lt_CFLAGS 14819 14820# Take the output of nm and produce a listing of raw symbols and C names. 14821global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14822 14823# Transform the output of nm in a proper C declaration. 14824global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14825 14826# Transform the output of nm in a C name address pair. 14827global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14828 14829# Transform the output of nm in a C name address pair when lib prefix is needed. 14830global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14831 14832# The name of the directory that contains temporary libtool files. 14833objdir=$objdir 14834 14835# Shell to use when invoking shell scripts. 14836SHELL=$lt_SHELL 14837 14838# An echo program that does not interpret backslashes. 14839ECHO=$lt_ECHO 14840 14841# Used to examine libraries when file_magic_cmd begins with "file". 14842MAGIC_CMD=$MAGIC_CMD 14843 14844# Must we lock files when doing compilation? 14845need_locks=$lt_need_locks 14846 14847# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14848DSYMUTIL=$lt_DSYMUTIL 14849 14850# Tool to change global to local symbols on Mac OS X. 14851NMEDIT=$lt_NMEDIT 14852 14853# Tool to manipulate fat objects and archives on Mac OS X. 14854LIPO=$lt_LIPO 14855 14856# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14857OTOOL=$lt_OTOOL 14858 14859# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14860OTOOL64=$lt_OTOOL64 14861 14862# Old archive suffix (normally "a"). 14863libext=$libext 14864 14865# Shared library suffix (normally ".so"). 14866shrext_cmds=$lt_shrext_cmds 14867 14868# The commands to extract the exported symbol list from a shared archive. 14869extract_expsyms_cmds=$lt_extract_expsyms_cmds 14870 14871# Variables whose values should be saved in libtool wrapper scripts and 14872# restored at link time. 14873variables_saved_for_relink=$lt_variables_saved_for_relink 14874 14875# Do we need the "lib" prefix for modules? 14876need_lib_prefix=$need_lib_prefix 14877 14878# Do we need a version for libraries? 14879need_version=$need_version 14880 14881# Library versioning type. 14882version_type=$version_type 14883 14884# Shared library runtime path variable. 14885runpath_var=$runpath_var 14886 14887# Shared library path variable. 14888shlibpath_var=$shlibpath_var 14889 14890# Is shlibpath searched before the hard-coded library search path? 14891shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14892 14893# Format of library name prefix. 14894libname_spec=$lt_libname_spec 14895 14896# List of archive names. First name is the real one, the rest are links. 14897# The last name is the one that the linker finds with -lNAME 14898library_names_spec=$lt_library_names_spec 14899 14900# The coded name of the library, if different from the real name. 14901soname_spec=$lt_soname_spec 14902 14903# Command to use after installation of a shared archive. 14904postinstall_cmds=$lt_postinstall_cmds 14905 14906# Command to use after uninstallation of a shared archive. 14907postuninstall_cmds=$lt_postuninstall_cmds 14908 14909# Commands used to finish a libtool library installation in a directory. 14910finish_cmds=$lt_finish_cmds 14911 14912# As "finish_cmds", except a single script fragment to be evaled but 14913# not shown. 14914finish_eval=$lt_finish_eval 14915 14916# Whether we should hardcode library paths into libraries. 14917hardcode_into_libs=$hardcode_into_libs 14918 14919# Compile-time system search path for libraries. 14920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14921 14922# Run-time system search path for libraries. 14923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14924 14925# Whether dlopen is supported. 14926dlopen_support=$enable_dlopen 14927 14928# Whether dlopen of programs is supported. 14929dlopen_self=$enable_dlopen_self 14930 14931# Whether dlopen of statically linked programs is supported. 14932dlopen_self_static=$enable_dlopen_self_static 14933 14934# Commands to strip libraries. 14935old_striplib=$lt_old_striplib 14936striplib=$lt_striplib 14937 14938 14939# The linker used to build libraries. 14940LD=$lt_LD 14941 14942# Commands used to build an old-style archive. 14943old_archive_cmds=$lt_old_archive_cmds 14944 14945# A language specific compiler. 14946CC=$lt_compiler 14947 14948# Is the compiler the GNU compiler? 14949with_gcc=$GCC 14950 14951# Compiler flag to turn off builtin functions. 14952no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14953 14954# How to pass a linker flag through the compiler. 14955wl=$lt_lt_prog_compiler_wl 14956 14957# Additional compiler flags for building library objects. 14958pic_flag=$lt_lt_prog_compiler_pic 14959 14960# Compiler flag to prevent dynamic linking. 14961link_static_flag=$lt_lt_prog_compiler_static 14962 14963# Does compiler simultaneously support -c and -o options? 14964compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14965 14966# Whether or not to add -lc for building shared libraries. 14967build_libtool_need_lc=$archive_cmds_need_lc 14968 14969# Whether or not to disallow shared libs when runtime libs are static. 14970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14971 14972# Compiler flag to allow reflexive dlopens. 14973export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14974 14975# Compiler flag to generate shared objects directly from archives. 14976whole_archive_flag_spec=$lt_whole_archive_flag_spec 14977 14978# Whether the compiler copes with passing no objects directly. 14979compiler_needs_object=$lt_compiler_needs_object 14980 14981# Create an old-style archive from a shared archive. 14982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14983 14984# Create a temporary old-style archive to link instead of a shared archive. 14985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14986 14987# Commands used to build a shared archive. 14988archive_cmds=$lt_archive_cmds 14989archive_expsym_cmds=$lt_archive_expsym_cmds 14990 14991# Commands used to build a loadable module if different from building 14992# a shared archive. 14993module_cmds=$lt_module_cmds 14994module_expsym_cmds=$lt_module_expsym_cmds 14995 14996# Whether we are building with GNU ld or not. 14997with_gnu_ld=$lt_with_gnu_ld 14998 14999# Flag that allows shared libraries with undefined symbols to be built. 15000allow_undefined_flag=$lt_allow_undefined_flag 15001 15002# Flag that enforces no undefined symbols. 15003no_undefined_flag=$lt_no_undefined_flag 15004 15005# Flag to hardcode \$libdir into a binary during linking. 15006# This must work even if \$libdir does not exist 15007hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15008 15009# If ld is used when linking, flag to hardcode \$libdir into a binary 15010# during linking. This must work even if \$libdir does not exist. 15011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15012 15013# Whether we need a single "-rpath" flag with a separated argument. 15014hardcode_libdir_separator=$lt_hardcode_libdir_separator 15015 15016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15017# DIR into the resulting binary. 15018hardcode_direct=$hardcode_direct 15019 15020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15021# DIR into the resulting binary and the resulting library dependency is 15022# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15023# library is relocated. 15024hardcode_direct_absolute=$hardcode_direct_absolute 15025 15026# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15027# into the resulting binary. 15028hardcode_minus_L=$hardcode_minus_L 15029 15030# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15031# into the resulting binary. 15032hardcode_shlibpath_var=$hardcode_shlibpath_var 15033 15034# Set to "yes" if building a shared library automatically hardcodes DIR 15035# into the library and all subsequent libraries and executables linked 15036# against it. 15037hardcode_automatic=$hardcode_automatic 15038 15039# Set to yes if linker adds runtime paths of dependent libraries 15040# to runtime path list. 15041inherit_rpath=$inherit_rpath 15042 15043# Whether libtool must link a program against all its dependency libraries. 15044link_all_deplibs=$link_all_deplibs 15045 15046# Fix the shell variable \$srcfile for the compiler. 15047fix_srcfile_path=$lt_fix_srcfile_path 15048 15049# Set to "yes" if exported symbols are required. 15050always_export_symbols=$always_export_symbols 15051 15052# The commands to list exported symbols. 15053export_symbols_cmds=$lt_export_symbols_cmds 15054 15055# Symbols that should not be listed in the preloaded symbols. 15056exclude_expsyms=$lt_exclude_expsyms 15057 15058# Symbols that must always be exported. 15059include_expsyms=$lt_include_expsyms 15060 15061# Commands necessary for linking programs (against libraries) with templates. 15062prelink_cmds=$lt_prelink_cmds 15063 15064# Specify filename containing input files. 15065file_list_spec=$lt_file_list_spec 15066 15067# How to hardcode a shared library path into an executable. 15068hardcode_action=$hardcode_action 15069 15070# ### END LIBTOOL CONFIG 15071 15072_LT_EOF 15073 15074 case $host_os in 15075 aix3*) 15076 cat <<\_LT_EOF >> "$cfgfile" 15077# AIX sometimes has problems with the GCC collect2 program. For some 15078# reason, if we set the COLLECT_NAMES environment variable, the problems 15079# vanish in a puff of smoke. 15080if test "X${COLLECT_NAMES+set}" != Xset; then 15081 COLLECT_NAMES= 15082 export COLLECT_NAMES 15083fi 15084_LT_EOF 15085 ;; 15086 esac 15087 15088 15089ltmain="$ac_aux_dir/ltmain.sh" 15090 15091 15092 # We use sed instead of cat because bash on DJGPP gets confused if 15093 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15094 # text mode, it properly converts lines to CR/LF. This bash problem 15095 # is reportedly fixed, but why not run on old versions too? 15096 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15097 || (rm -f "$cfgfile"; exit 1) 15098 15099 case $xsi_shell in 15100 yes) 15101 cat << \_LT_EOF >> "$cfgfile" 15102 15103# func_dirname file append nondir_replacement 15104# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15105# otherwise set result to NONDIR_REPLACEMENT. 15106func_dirname () 15107{ 15108 case ${1} in 15109 */*) func_dirname_result="${1%/*}${2}" ;; 15110 * ) func_dirname_result="${3}" ;; 15111 esac 15112} 15113 15114# func_basename file 15115func_basename () 15116{ 15117 func_basename_result="${1##*/}" 15118} 15119 15120# func_dirname_and_basename file append nondir_replacement 15121# perform func_basename and func_dirname in a single function 15122# call: 15123# dirname: Compute the dirname of FILE. If nonempty, 15124# add APPEND to the result, otherwise set result 15125# to NONDIR_REPLACEMENT. 15126# value returned in "$func_dirname_result" 15127# basename: Compute filename of FILE. 15128# value retuned in "$func_basename_result" 15129# Implementation must be kept synchronized with func_dirname 15130# and func_basename. For efficiency, we do not delegate to 15131# those functions but instead duplicate the functionality here. 15132func_dirname_and_basename () 15133{ 15134 case ${1} in 15135 */*) func_dirname_result="${1%/*}${2}" ;; 15136 * ) func_dirname_result="${3}" ;; 15137 esac 15138 func_basename_result="${1##*/}" 15139} 15140 15141# func_stripname prefix suffix name 15142# strip PREFIX and SUFFIX off of NAME. 15143# PREFIX and SUFFIX must not contain globbing or regex special 15144# characters, hashes, percent signs, but SUFFIX may contain a leading 15145# dot (in which case that matches only a dot). 15146func_stripname () 15147{ 15148 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15149 # positional parameters, so assign one to ordinary parameter first. 15150 func_stripname_result=${3} 15151 func_stripname_result=${func_stripname_result#"${1}"} 15152 func_stripname_result=${func_stripname_result%"${2}"} 15153} 15154 15155# func_opt_split 15156func_opt_split () 15157{ 15158 func_opt_split_opt=${1%%=*} 15159 func_opt_split_arg=${1#*=} 15160} 15161 15162# func_lo2o object 15163func_lo2o () 15164{ 15165 case ${1} in 15166 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15167 *) func_lo2o_result=${1} ;; 15168 esac 15169} 15170 15171# func_xform libobj-or-source 15172func_xform () 15173{ 15174 func_xform_result=${1%.*}.lo 15175} 15176 15177# func_arith arithmetic-term... 15178func_arith () 15179{ 15180 func_arith_result=$(( $* )) 15181} 15182 15183# func_len string 15184# STRING may not start with a hyphen. 15185func_len () 15186{ 15187 func_len_result=${#1} 15188} 15189 15190_LT_EOF 15191 ;; 15192 *) # Bourne compatible functions. 15193 cat << \_LT_EOF >> "$cfgfile" 15194 15195# func_dirname file append nondir_replacement 15196# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15197# otherwise set result to NONDIR_REPLACEMENT. 15198func_dirname () 15199{ 15200 # Extract subdirectory from the argument. 15201 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15202 if test "X$func_dirname_result" = "X${1}"; then 15203 func_dirname_result="${3}" 15204 else 15205 func_dirname_result="$func_dirname_result${2}" 15206 fi 15207} 15208 15209# func_basename file 15210func_basename () 15211{ 15212 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15213} 15214 15215 15216# func_stripname prefix suffix name 15217# strip PREFIX and SUFFIX off of NAME. 15218# PREFIX and SUFFIX must not contain globbing or regex special 15219# characters, hashes, percent signs, but SUFFIX may contain a leading 15220# dot (in which case that matches only a dot). 15221# func_strip_suffix prefix name 15222func_stripname () 15223{ 15224 case ${2} in 15225 .*) func_stripname_result=`$ECHO "X${3}" \ 15226 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15227 *) func_stripname_result=`$ECHO "X${3}" \ 15228 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15229 esac 15230} 15231 15232# sed scripts: 15233my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15234my_sed_long_arg='1s/^-[^=]*=//' 15235 15236# func_opt_split 15237func_opt_split () 15238{ 15239 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15240 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15241} 15242 15243# func_lo2o object 15244func_lo2o () 15245{ 15246 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15247} 15248 15249# func_xform libobj-or-source 15250func_xform () 15251{ 15252 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15253} 15254 15255# func_arith arithmetic-term... 15256func_arith () 15257{ 15258 func_arith_result=`expr "$@"` 15259} 15260 15261# func_len string 15262# STRING may not start with a hyphen. 15263func_len () 15264{ 15265 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15266} 15267 15268_LT_EOF 15269esac 15270 15271case $lt_shell_append in 15272 yes) 15273 cat << \_LT_EOF >> "$cfgfile" 15274 15275# func_append var value 15276# Append VALUE to the end of shell variable VAR. 15277func_append () 15278{ 15279 eval "$1+=\$2" 15280} 15281_LT_EOF 15282 ;; 15283 *) 15284 cat << \_LT_EOF >> "$cfgfile" 15285 15286# func_append var value 15287# Append VALUE to the end of shell variable VAR. 15288func_append () 15289{ 15290 eval "$1=\$$1\$2" 15291} 15292 15293_LT_EOF 15294 ;; 15295 esac 15296 15297 15298 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15299 || (rm -f "$cfgfile"; exit 1) 15300 15301 mv -f "$cfgfile" "$ofile" || 15302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15303 chmod +x "$ofile" 15304 15305 ;; 15306 15307 esac 15308done # for ac_tag 15309 15310 15311as_fn_exit 0 15312_ACEOF 15313ac_clean_files=$ac_clean_files_save 15314 15315test $ac_write_fail = 0 || 15316 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15317 15318 15319# configure is writing to config.log, and then calls config.status. 15320# config.status does its own redirection, appending to config.log. 15321# Unfortunately, on DOS this fails, as config.log is still kept open 15322# by configure, so config.status won't be able to write to it; its 15323# output is simply discarded. So we exec the FD to /dev/null, 15324# effectively closing config.log, so it can be properly (re)opened and 15325# appended to by config.status. When coming back to configure, we 15326# need to make the FD available again. 15327if test "$no_create" != yes; then 15328 ac_cs_success=: 15329 ac_config_status_args= 15330 test "$silent" = yes && 15331 ac_config_status_args="$ac_config_status_args --quiet" 15332 exec 5>/dev/null 15333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15334 exec 5>>config.log 15335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15336 # would make configure fail if this is the last instruction. 15337 $ac_cs_success || as_fn_exit $? 15338fi 15339if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15341$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15342fi 15343 15344