configure revision 521070a0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libXfixes 4.0.5. 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 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='libXfixes' 704PACKAGE_TARNAME='libXfixes' 705PACKAGE_VERSION='4.0.5' 706PACKAGE_STRING='libXfixes 4.0.5' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_subst_vars='am__EXEEXT_FALSE 747am__EXEEXT_TRUE 748LTLIBOBJS 749LIBOBJS 750FIXESEXT_LIBS 751FIXESEXT_CFLAGS 752FIXESEXT_VERSION 753AM_BACKSLASH 754AM_DEFAULT_VERBOSITY 755MAN_SUBSTS 756XORG_MAN_PAGE 757ADMIN_MAN_DIR 758DRIVER_MAN_DIR 759MISC_MAN_DIR 760FILE_MAN_DIR 761LIB_MAN_DIR 762APP_MAN_DIR 763ADMIN_MAN_SUFFIX 764DRIVER_MAN_SUFFIX 765MISC_MAN_SUFFIX 766FILE_MAN_SUFFIX 767LIB_MAN_SUFFIX 768APP_MAN_SUFFIX 769INSTALL_CMD 770PKG_CONFIG 771CHANGELOG_CMD 772CWARNFLAGS 773CPP 774OTOOL64 775OTOOL 776LIPO 777NMEDIT 778DSYMUTIL 779lt_ECHO 780RANLIB 781AR 782OBJDUMP 783LN_S 784NM 785ac_ct_DUMPBIN 786DUMPBIN 787LD 788FGREP 789EGREP 790GREP 791SED 792host_os 793host_vendor 794host_cpu 795host 796build_os 797build_vendor 798build_cpu 799build 800LIBTOOL 801am__fastdepCC_FALSE 802am__fastdepCC_TRUE 803CCDEPMODE 804AMDEPBACKSLASH 805AMDEP_FALSE 806AMDEP_TRUE 807am__quote 808am__include 809DEPDIR 810OBJEXT 811EXEEXT 812ac_ct_CC 813CPPFLAGS 814LDFLAGS 815CFLAGS 816CC 817MAINT 818MAINTAINER_MODE_FALSE 819MAINTAINER_MODE_TRUE 820am__untar 821am__tar 822AMTAR 823am__leading_dot 824SET_MAKE 825AWK 826mkdir_p 827MKDIR_P 828INSTALL_STRIP_PROGRAM 829STRIP 830install_sh 831MAKEINFO 832AUTOHEADER 833AUTOMAKE 834AUTOCONF 835ACLOCAL 836VERSION 837PACKAGE 838CYGPATH_W 839am__isrc 840INSTALL_DATA 841INSTALL_SCRIPT 842INSTALL_PROGRAM 843target_alias 844host_alias 845build_alias 846LIBS 847ECHO_T 848ECHO_N 849ECHO_C 850DEFS 851mandir 852localedir 853libdir 854psdir 855pdfdir 856dvidir 857htmldir 858infodir 859docdir 860oldincludedir 861includedir 862localstatedir 863sharedstatedir 864sysconfdir 865datadir 866datarootdir 867libexecdir 868sbindir 869bindir 870program_transform_name 871prefix 872exec_prefix 873PACKAGE_URL 874PACKAGE_BUGREPORT 875PACKAGE_STRING 876PACKAGE_VERSION 877PACKAGE_TARNAME 878PACKAGE_NAME 879PATH_SEPARATOR 880SHELL' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_maintainer_mode 885enable_dependency_tracking 886enable_shared 887enable_static 888with_pic 889enable_fast_install 890with_gnu_ld 891enable_libtool_lock 892enable_strict_compilation 893enable_silent_rules 894' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903CPP 904PKG_CONFIG 905FIXESEXT_CFLAGS 906FIXESEXT_LIBS' 907 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912ac_unrecognized_opts= 913ac_unrecognized_sep= 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945includedir='${prefix}/include' 946oldincludedir='/usr/include' 947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 948infodir='${datarootdir}/info' 949htmldir='${docdir}' 950dvidir='${docdir}' 951pdfdir='${docdir}' 952psdir='${docdir}' 953libdir='${exec_prefix}/lib' 954localedir='${datarootdir}/locale' 955mandir='${datarootdir}/man' 956 957ac_prev= 958ac_dashdash= 959for ac_option 960do 961 # If the previous option needs an argument, assign it. 962 if test -n "$ac_prev"; then 963 eval $ac_prev=\$ac_option 964 ac_prev= 965 continue 966 fi 967 968 case $ac_option in 969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1197 ac_prev=sbindir ;; 1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1199 | --sbi=* | --sb=*) 1200 sbindir=$ac_optarg ;; 1201 1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1204 | --sharedst | --shareds | --shared | --share | --shar \ 1205 | --sha | --sh) 1206 ac_prev=sharedstatedir ;; 1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1210 | --sha=* | --sh=*) 1211 sharedstatedir=$ac_optarg ;; 1212 1213 -site | --site | --sit) 1214 ac_prev=site ;; 1215 -site=* | --site=* | --sit=*) 1216 site=$ac_optarg ;; 1217 1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1219 ac_prev=srcdir ;; 1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1221 srcdir=$ac_optarg ;; 1222 1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1224 | --syscon | --sysco | --sysc | --sys | --sy) 1225 ac_prev=sysconfdir ;; 1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1228 sysconfdir=$ac_optarg ;; 1229 1230 -target | --target | --targe | --targ | --tar | --ta | --t) 1231 ac_prev=target_alias ;; 1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1233 target_alias=$ac_optarg ;; 1234 1235 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1236 verbose=yes ;; 1237 1238 -version | --version | --versio | --versi | --vers | -V) 1239 ac_init_version=: ;; 1240 1241 -with-* | --with-*) 1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1243 # Reject names that are not valid shell variable names. 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1245 as_fn_error "invalid package name: $ac_useropt" 1246 ac_useropt_orig=$ac_useropt 1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1248 case $ac_user_opts in 1249 *" 1250"with_$ac_useropt" 1251"*) ;; 1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1253 ac_unrecognized_sep=', ';; 1254 esac 1255 eval with_$ac_useropt=\$ac_optarg ;; 1256 1257 -without-* | --without-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=no ;; 1272 1273 --x) 1274 # Obsolete; use --with-x. 1275 with_x=yes ;; 1276 1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1278 | --x-incl | --x-inc | --x-in | --x-i) 1279 ac_prev=x_includes ;; 1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1282 x_includes=$ac_optarg ;; 1283 1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1286 ac_prev=x_libraries ;; 1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1289 x_libraries=$ac_optarg ;; 1290 1291 -*) as_fn_error "unrecognized option: \`$ac_option' 1292Try \`$0 --help' for more information." 1293 ;; 1294 1295 *=*) 1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1297 # Reject names that are not valid shell variable names. 1298 case $ac_envvar in #( 1299 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1300 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1301 esac 1302 eval $ac_envvar=\$ac_optarg 1303 export $ac_envvar ;; 1304 1305 *) 1306 # FIXME: should be removed in autoconf 3.0. 1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1311 ;; 1312 1313 esac 1314done 1315 1316if test -n "$ac_prev"; then 1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1318 as_fn_error "missing argument to $ac_option" 1319fi 1320 1321if test -n "$ac_unrecognized_opts"; then 1322 case $enable_option_checking in 1323 no) ;; 1324 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1326 esac 1327fi 1328 1329# Check all directory arguments for consistency. 1330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1331 datadir sysconfdir sharedstatedir localstatedir includedir \ 1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1333 libdir localedir mandir 1334do 1335 eval ac_val=\$$ac_var 1336 # Remove trailing slashes. 1337 case $ac_val in 1338 */ ) 1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1340 eval $ac_var=\$ac_val;; 1341 esac 1342 # Be sure to have absolute directory names. 1343 case $ac_val in 1344 [\\/$]* | ?:[\\/]* ) continue;; 1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1346 esac 1347 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1348done 1349 1350# There might be people who depend on the old broken behavior: `$host' 1351# used to hold the argument of --host etc. 1352# FIXME: To remove some day. 1353build=$build_alias 1354host=$host_alias 1355target=$target_alias 1356 1357# FIXME: To remove some day. 1358if test "x$host_alias" != x; then 1359 if test "x$build_alias" = x; then 1360 cross_compiling=maybe 1361 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1362 If a cross compiler is detected then cross compile mode will be used." >&2 1363 elif test "x$build_alias" != "x$host_alias"; then 1364 cross_compiling=yes 1365 fi 1366fi 1367 1368ac_tool_prefix= 1369test -n "$host_alias" && ac_tool_prefix=$host_alias- 1370 1371test "$silent" = yes && exec 6>/dev/null 1372 1373 1374ac_pwd=`pwd` && test -n "$ac_pwd" && 1375ac_ls_di=`ls -di .` && 1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1377 as_fn_error "working directory cannot be determined" 1378test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1379 as_fn_error "pwd does not report name of working directory" 1380 1381 1382# Find the source files, if location was not specified. 1383if test -z "$srcdir"; then 1384 ac_srcdir_defaulted=yes 1385 # Try the directory containing this script, then the parent directory. 1386 ac_confdir=`$as_dirname -- "$as_myself" || 1387$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1388 X"$as_myself" : 'X\(//\)[^/]' \| \ 1389 X"$as_myself" : 'X\(//\)$' \| \ 1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1391$as_echo X"$as_myself" | 1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1393 s//\1/ 1394 q 1395 } 1396 /^X\(\/\/\)[^/].*/{ 1397 s//\1/ 1398 q 1399 } 1400 /^X\(\/\/\)$/{ 1401 s//\1/ 1402 q 1403 } 1404 /^X\(\/\).*/{ 1405 s//\1/ 1406 q 1407 } 1408 s/.*/./; q'` 1409 srcdir=$ac_confdir 1410 if test ! -r "$srcdir/$ac_unique_file"; then 1411 srcdir=.. 1412 fi 1413else 1414 ac_srcdir_defaulted=no 1415fi 1416if test ! -r "$srcdir/$ac_unique_file"; then 1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1418 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1419fi 1420ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1421ac_abs_confdir=`( 1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1423 pwd)` 1424# When building in place, set srcdir=. 1425if test "$ac_abs_confdir" = "$ac_pwd"; then 1426 srcdir=. 1427fi 1428# Remove unnecessary trailing slashes from srcdir. 1429# Double slashes in file names in object file debugging info 1430# mess up M-x gdb in Emacs. 1431case $srcdir in 1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1433esac 1434for ac_var in $ac_precious_vars; do 1435 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1436 eval ac_env_${ac_var}_value=\$${ac_var} 1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1439done 1440 1441# 1442# Report the --help message. 1443# 1444if test "$ac_init_help" = "long"; then 1445 # Omit some internal or obsolete options to make the list less imposing. 1446 # This message is too long to be a string in the A/UX 3.1 sh. 1447 cat <<_ACEOF 1448\`configure' configures libXfixes 4.0.5 to adapt to many kinds of systems. 1449 1450Usage: $0 [OPTION]... [VAR=VALUE]... 1451 1452To assign environment variables (e.g., CC, CFLAGS...), specify them as 1453VAR=VALUE. See below for descriptions of some of the useful variables. 1454 1455Defaults for the options are specified in brackets. 1456 1457Configuration: 1458 -h, --help display this help and exit 1459 --help=short display options specific to this package 1460 --help=recursive display the short help of all the included packages 1461 -V, --version display version information and exit 1462 -q, --quiet, --silent do not print \`checking...' messages 1463 --cache-file=FILE cache test results in FILE [disabled] 1464 -C, --config-cache alias for \`--cache-file=config.cache' 1465 -n, --no-create do not create output files 1466 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1467 1468Installation directories: 1469 --prefix=PREFIX install architecture-independent files in PREFIX 1470 [$ac_default_prefix] 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1472 [PREFIX] 1473 1474By default, \`make install' will install all the files in 1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1476an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1477for instance \`--prefix=\$HOME'. 1478 1479For better control, use the options below. 1480 1481Fine tuning of the installation directories: 1482 --bindir=DIR user executables [EPREFIX/bin] 1483 --sbindir=DIR system admin executables [EPREFIX/sbin] 1484 --libexecdir=DIR program executables [EPREFIX/libexec] 1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1488 --libdir=DIR object code libraries [EPREFIX/lib] 1489 --includedir=DIR C header files [PREFIX/include] 1490 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1493 --infodir=DIR info documentation [DATAROOTDIR/info] 1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1495 --mandir=DIR man documentation [DATAROOTDIR/man] 1496 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfixes] 1497 --htmldir=DIR html documentation [DOCDIR] 1498 --dvidir=DIR dvi documentation [DOCDIR] 1499 --pdfdir=DIR pdf documentation [DOCDIR] 1500 --psdir=DIR ps documentation [DOCDIR] 1501_ACEOF 1502 1503 cat <<\_ACEOF 1504 1505Program names: 1506 --program-prefix=PREFIX prepend PREFIX to installed program names 1507 --program-suffix=SUFFIX append SUFFIX to installed program names 1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1509 1510System types: 1511 --build=BUILD configure for building on BUILD [guessed] 1512 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1513_ACEOF 1514fi 1515 1516if test -n "$ac_init_help"; then 1517 case $ac_init_help in 1518 short | recursive ) echo "Configuration of libXfixes 4.0.5:";; 1519 esac 1520 cat <<\_ACEOF 1521 1522Optional Features: 1523 --disable-option-checking ignore unrecognized --enable/--with options 1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1526 --enable-maintainer-mode enable make rules and dependencies not useful 1527 (and sometimes confusing) to the casual installer 1528 --disable-dependency-tracking speeds up one-time build 1529 --enable-dependency-tracking do not reject slow dependency extractors 1530 --enable-shared[=PKGS] build shared libraries [default=yes] 1531 --enable-static[=PKGS] build static libraries [default=yes] 1532 --enable-fast-install[=PKGS] 1533 optimize for fast installation [default=yes] 1534 --disable-libtool-lock avoid locking (might break parallel builds) 1535 --enable-strict-compilation 1536 Enable all warnings from compiler and make them 1537 errors (default: disabled) 1538 --enable-silent-rules less verbose build output (undo: `make V=1') 1539 --disable-silent-rules verbose build output (undo: `make V=0') 1540 1541Optional Packages: 1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1544 --with-pic try to use only PIC/non-PIC objects [default=use 1545 both] 1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1547 1548Some influential environment variables: 1549 CC C compiler command 1550 CFLAGS C compiler flags 1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1552 nonstandard directory <lib dir> 1553 LIBS libraries to pass to the linker, e.g. -l<library> 1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1555 you have headers in a nonstandard directory <include dir> 1556 CPP C preprocessor 1557 PKG_CONFIG path to pkg-config utility 1558 FIXESEXT_CFLAGS 1559 C compiler flags for FIXESEXT, overriding pkg-config 1560 FIXESEXT_LIBS 1561 linker flags for FIXESEXT, overriding pkg-config 1562 1563Use these variables to override the choices made by `configure' or to help 1564it to find libraries and programs with nonstandard names/locations. 1565 1566Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1567_ACEOF 1568ac_status=$? 1569fi 1570 1571if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629libXfixes configure 4.0.5 1630generated by GNU Autoconf 2.65 1631 1632Copyright (C) 2009 Free Software Foundation, Inc. 1633This configure script is free software; the Free Software Foundation 1634gives unlimited permission to copy, distribute and modify it. 1635_ACEOF 1636 exit 1637fi 1638 1639## ------------------------ ## 1640## Autoconf initialization. ## 1641## ------------------------ ## 1642 1643# ac_fn_c_try_compile LINENO 1644# -------------------------- 1645# Try to compile conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_c_try_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_compile 1680 1681# ac_fn_c_try_link LINENO 1682# ----------------------- 1683# Try to link conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_link () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 rm -f conftest.$ac_objext conftest$ac_exeext 1688 if { { ac_try="$ac_link" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_link") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { 1704 test -z "$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 } && test -s conftest$ac_exeext && { 1707 test "$cross_compiling" = yes || 1708 $as_test_x conftest$ac_exeext 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1719 # interfere with the next link command; also delete a directory that is 1720 # left behind by Apple's compiler. We do this before executing the actions. 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_link 1726 1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1728# ------------------------------------------------------- 1729# Tests whether HEADER exists and can be compiled using the include files in 1730# INCLUDES, setting the cache variable VAR accordingly. 1731ac_fn_c_check_header_compile () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735$as_echo_n "checking for $2... " >&6; } 1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1737 $as_echo_n "(cached) " >&6 1738else 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741$4 1742#include <$2> 1743_ACEOF 1744if ac_fn_c_try_compile "$LINENO"; then : 1745 eval "$3=yes" 1746else 1747 eval "$3=no" 1748fi 1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750fi 1751eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753$as_echo "$ac_res" >&6; } 1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1755 1756} # ac_fn_c_check_header_compile 1757 1758# ac_fn_c_try_cpp LINENO 1759# ---------------------- 1760# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1761ac_fn_c_try_cpp () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 if { { ac_try="$ac_cpp conftest.$ac_ext" 1765case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1772 ac_status=$? 1773 if test -s conftest.err; then 1774 grep -v '^ *+' conftest.err >conftest.er1 1775 cat conftest.er1 >&5 1776 mv -f conftest.er1 conftest.err 1777 fi 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } >/dev/null && { 1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1781 test ! -s conftest.err 1782 }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=1 1789fi 1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_c_try_cpp 1794 1795# ac_fn_c_try_run LINENO 1796# ---------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1798# that executables *can* be run. 1799ac_fn_c_try_run () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>&5 1810 ac_status=$? 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1813 { { case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_try") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; }; }; then : 1823 ac_retval=0 1824else 1825 $as_echo "$as_me: program exited with status $ac_status" >&5 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=$ac_status 1830fi 1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_c_try_run 1836 1837# ac_fn_c_check_func LINENO FUNC VAR 1838# ---------------------------------- 1839# Tests whether FUNC exists, setting the cache variable VAR accordingly 1840ac_fn_c_check_func () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1844$as_echo_n "checking for $2... " >&6; } 1845if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1846 $as_echo_n "(cached) " >&6 1847else 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1852#define $2 innocuous_$2 1853 1854/* System header to define __stub macros and hopefully few prototypes, 1855 which can conflict with char $2 (); below. 1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1857 <limits.h> exists even on freestanding compilers. */ 1858 1859#ifdef __STDC__ 1860# include <limits.h> 1861#else 1862# include <assert.h> 1863#endif 1864 1865#undef $2 1866 1867/* Override any GCC internal prototype to avoid an error. 1868 Use char because int might match the return type of a GCC 1869 builtin and then its argument prototype would still apply. */ 1870#ifdef __cplusplus 1871extern "C" 1872#endif 1873char $2 (); 1874/* The GNU C library defines this for functions which it implements 1875 to always fail with ENOSYS. Some functions are actually named 1876 something starting with __ and the normal name is an alias. */ 1877#if defined __stub_$2 || defined __stub___$2 1878choke me 1879#endif 1880 1881int 1882main () 1883{ 1884return $2 (); 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_link "$LINENO"; then : 1890 eval "$3=yes" 1891else 1892 eval "$3=no" 1893fi 1894rm -f core conftest.err conftest.$ac_objext \ 1895 conftest$ac_exeext conftest.$ac_ext 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1901 1902} # ac_fn_c_check_func 1903 1904# ac_fn_c_check_decl LINENO SYMBOL VAR 1905# ------------------------------------ 1906# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1907ac_fn_c_check_decl () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1911$as_echo_n "checking whether $2 is declared... " >&6; } 1912if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921#ifndef $2 1922 (void) $2; 1923#endif 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 eval "$3=yes" 1931else 1932 eval "$3=no" 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935fi 1936eval ac_res=\$$3 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1938$as_echo "$ac_res" >&6; } 1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1940 1941} # ac_fn_c_check_decl 1942cat >config.log <<_ACEOF 1943This file contains any messages produced by compilers while 1944running configure, to aid debugging if configure makes a mistake. 1945 1946It was created by libXfixes $as_me 4.0.5, which was 1947generated by GNU Autoconf 2.65. Invocation command line was 1948 1949 $ $0 $@ 1950 1951_ACEOF 1952exec 5>>config.log 1953{ 1954cat <<_ASUNAME 1955## --------- ## 1956## Platform. ## 1957## --------- ## 1958 1959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1960uname -m = `(uname -m) 2>/dev/null || echo unknown` 1961uname -r = `(uname -r) 2>/dev/null || echo unknown` 1962uname -s = `(uname -s) 2>/dev/null || echo unknown` 1963uname -v = `(uname -v) 2>/dev/null || echo unknown` 1964 1965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1967 1968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1971/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1975 1976_ASUNAME 1977 1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1979for as_dir in $PATH 1980do 1981 IFS=$as_save_IFS 1982 test -z "$as_dir" && as_dir=. 1983 $as_echo "PATH: $as_dir" 1984 done 1985IFS=$as_save_IFS 1986 1987} >&5 1988 1989cat >&5 <<_ACEOF 1990 1991 1992## ----------- ## 1993## Core tests. ## 1994## ----------- ## 1995 1996_ACEOF 1997 1998 1999# Keep a trace of the command line. 2000# Strip out --no-create and --no-recursion so they do not pile up. 2001# Strip out --silent because we don't want to record it for future runs. 2002# Also quote any args containing shell meta-characters. 2003# Make two passes to allow for proper duplicate-argument suppression. 2004ac_configure_args= 2005ac_configure_args0= 2006ac_configure_args1= 2007ac_must_keep_next=false 2008for ac_pass in 1 2 2009do 2010 for ac_arg 2011 do 2012 case $ac_arg in 2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2015 | -silent | --silent | --silen | --sile | --sil) 2016 continue ;; 2017 *\'*) 2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2019 esac 2020 case $ac_pass in 2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2022 2) 2023 as_fn_append ac_configure_args1 " '$ac_arg'" 2024 if test $ac_must_keep_next = true; then 2025 ac_must_keep_next=false # Got value, back to normal. 2026 else 2027 case $ac_arg in 2028 *=* | --config-cache | -C | -disable-* | --disable-* \ 2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2031 | -with-* | --with-* | -without-* | --without-* | --x) 2032 case "$ac_configure_args0 " in 2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2034 esac 2035 ;; 2036 -* ) ac_must_keep_next=true ;; 2037 esac 2038 fi 2039 as_fn_append ac_configure_args " '$ac_arg'" 2040 ;; 2041 esac 2042 done 2043done 2044{ ac_configure_args0=; unset ac_configure_args0;} 2045{ ac_configure_args1=; unset ac_configure_args1;} 2046 2047# When interrupted or exit'd, cleanup temporary files, and complete 2048# config.log. We remove comments because anyway the quotes in there 2049# would cause problems or look ugly. 2050# WARNING: Use '\'' to represent an apostrophe within the trap. 2051# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2052trap 'exit_status=$? 2053 # Save into config.log some information that might help in debugging. 2054 { 2055 echo 2056 2057 cat <<\_ASBOX 2058## ---------------- ## 2059## Cache variables. ## 2060## ---------------- ## 2061_ASBOX 2062 echo 2063 # The following way of writing the cache mishandles newlines in values, 2064( 2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in #( 2068 *${as_nl}*) 2069 case $ac_var in #( 2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2072 esac 2073 case $ac_var in #( 2074 _ | IFS | as_nl) ;; #( 2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2076 *) { eval $ac_var=; unset $ac_var;} ;; 2077 esac ;; 2078 esac 2079 done 2080 (set) 2>&1 | 2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2082 *${as_nl}ac_space=\ *) 2083 sed -n \ 2084 "s/'\''/'\''\\\\'\'''\''/g; 2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2086 ;; #( 2087 *) 2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2089 ;; 2090 esac | 2091 sort 2092) 2093 echo 2094 2095 cat <<\_ASBOX 2096## ----------------- ## 2097## Output variables. ## 2098## ----------------- ## 2099_ASBOX 2100 echo 2101 for ac_var in $ac_subst_vars 2102 do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in 2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2106 esac 2107 $as_echo "$ac_var='\''$ac_val'\''" 2108 done | sort 2109 echo 2110 2111 if test -n "$ac_subst_files"; then 2112 cat <<\_ASBOX 2113## ------------------- ## 2114## File substitutions. ## 2115## ------------------- ## 2116_ASBOX 2117 echo 2118 for ac_var in $ac_subst_files 2119 do 2120 eval ac_val=\$$ac_var 2121 case $ac_val in 2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2123 esac 2124 $as_echo "$ac_var='\''$ac_val'\''" 2125 done | sort 2126 echo 2127 fi 2128 2129 if test -s confdefs.h; then 2130 cat <<\_ASBOX 2131## ----------- ## 2132## confdefs.h. ## 2133## ----------- ## 2134_ASBOX 2135 echo 2136 cat confdefs.h 2137 echo 2138 fi 2139 test "$ac_signal" != 0 && 2140 $as_echo "$as_me: caught signal $ac_signal" 2141 $as_echo "$as_me: exit $exit_status" 2142 } >&5 2143 rm -f core *.core core.conftest.* && 2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2145 exit $exit_status 2146' 0 2147for ac_signal in 1 2 13 15; do 2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2149done 2150ac_signal=0 2151 2152# confdefs.h avoids OS command line length limits that DEFS can exceed. 2153rm -f -r conftest* confdefs.h 2154 2155$as_echo "/* confdefs.h */" > confdefs.h 2156 2157# Predefined preprocessor variables. 2158 2159cat >>confdefs.h <<_ACEOF 2160#define PACKAGE_NAME "$PACKAGE_NAME" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_VERSION "$PACKAGE_VERSION" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_STRING "$PACKAGE_STRING" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_URL "$PACKAGE_URL" 2181_ACEOF 2182 2183 2184# Let the site file select an alternate cache file if it wants to. 2185# Prefer an explicitly selected file to automatically selected ones. 2186ac_site_file1=NONE 2187ac_site_file2=NONE 2188if test -n "$CONFIG_SITE"; then 2189 ac_site_file1=$CONFIG_SITE 2190elif test "x$prefix" != xNONE; then 2191 ac_site_file1=$prefix/share/config.site 2192 ac_site_file2=$prefix/etc/config.site 2193else 2194 ac_site_file1=$ac_default_prefix/share/config.site 2195 ac_site_file2=$ac_default_prefix/etc/config.site 2196fi 2197for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2198do 2199 test "x$ac_site_file" = xNONE && continue 2200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2202$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2203 sed 's/^/| /' "$ac_site_file" >&5 2204 . "$ac_site_file" 2205 fi 2206done 2207 2208if test -r "$cache_file"; then 2209 # Some versions of bash will fail to source /dev/null (special files 2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2213$as_echo "$as_me: loading cache $cache_file" >&6;} 2214 case $cache_file in 2215 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2216 *) . "./$cache_file";; 2217 esac 2218 fi 2219else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2221$as_echo "$as_me: creating cache $cache_file" >&6;} 2222 >$cache_file 2223fi 2224 2225# Check that the precious variables saved in the cache have kept the same 2226# value. 2227ac_cache_corrupted=false 2228for ac_var in $ac_precious_vars; do 2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2230 eval ac_new_set=\$ac_env_${ac_var}_set 2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2232 eval ac_new_val=\$ac_env_${ac_var}_value 2233 case $ac_old_set,$ac_new_set in 2234 set,) 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2236$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2237 ac_cache_corrupted=: ;; 2238 ,set) 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2240$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2241 ac_cache_corrupted=: ;; 2242 ,);; 2243 *) 2244 if test "x$ac_old_val" != "x$ac_new_val"; then 2245 # differences in whitespace do not lead to failure. 2246 ac_old_val_w=`echo x $ac_old_val` 2247 ac_new_val_w=`echo x $ac_new_val` 2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2250$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2251 ac_cache_corrupted=: 2252 else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2254$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2255 eval $ac_var=\$ac_old_val 2256 fi 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2258$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2260$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2261 fi;; 2262 esac 2263 # Pass precious variables to config.status. 2264 if test "$ac_new_set" = set; then 2265 case $ac_new_val in 2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2267 *) ac_arg=$ac_var=$ac_new_val ;; 2268 esac 2269 case " $ac_configure_args " in 2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2272 esac 2273 fi 2274done 2275if $ac_cache_corrupted; then 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2279$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2280 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2281fi 2282## -------------------- ## 2283## Main body of script. ## 2284## -------------------- ## 2285 2286ac_ext=c 2287ac_cpp='$CPP $CPPFLAGS' 2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2290ac_compiler_gnu=$ac_cv_c_compiler_gnu 2291 2292 2293am__api_version='1.11' 2294 2295ac_aux_dir= 2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2297 for ac_t in install-sh install.sh shtool; do 2298 if test -f "$ac_dir/$ac_t"; then 2299 ac_aux_dir=$ac_dir 2300 ac_install_sh="$ac_aux_dir/$ac_t -c" 2301 break 2 2302 fi 2303 done 2304done 2305if test -z "$ac_aux_dir"; then 2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2307fi 2308 2309# These three variables are undocumented and unsupported, 2310# and are intended to be withdrawn in a future Autoconf release. 2311# They can cause serious problems if a builder's source tree is in a directory 2312# whose full name contains unusual characters. 2313ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2314ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2315ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2316 2317 2318# Find a good install program. We prefer a C program (faster), 2319# so one script is as good as another. But avoid the broken or 2320# incompatible versions: 2321# SysV /etc/install, /usr/sbin/install 2322# SunOS /usr/etc/install 2323# IRIX /sbin/install 2324# AIX /bin/install 2325# AmigaOS /C/install, which installs bootblocks on floppy discs 2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2329# OS/2's system install, which has a completely different semantic 2330# ./install, which can be erroneously created by make from ./install.sh. 2331# Reject install programs that cannot install multiple files. 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2333$as_echo_n "checking for a BSD-compatible install... " >&6; } 2334if test -z "$INSTALL"; then 2335if test "${ac_cv_path_install+set}" = set; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 # Account for people who put trailing slashes in PATH elements. 2344case $as_dir/ in #(( 2345 ./ | .// | /[cC]/* | \ 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2348 /usr/ucb/* ) ;; 2349 *) 2350 # OSF1 and SCO ODT 3.0 have their own names for install. 2351 # Don't use installbsd from OSF since it installs stuff as root 2352 # by default. 2353 for ac_prog in ginstall scoinst install; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2356 if test $ac_prog = install && 2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # AIX install. It has an incompatible calling convention. 2359 : 2360 elif test $ac_prog = install && 2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # program-specific install script used by HP pwplus--don't use. 2363 : 2364 else 2365 rm -rf conftest.one conftest.two conftest.dir 2366 echo one > conftest.one 2367 echo two > conftest.two 2368 mkdir conftest.dir 2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2370 test -s conftest.one && test -s conftest.two && 2371 test -s conftest.dir/conftest.one && 2372 test -s conftest.dir/conftest.two 2373 then 2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2375 break 3 2376 fi 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383 2384 done 2385IFS=$as_save_IFS 2386 2387rm -rf conftest.one conftest.two conftest.dir 2388 2389fi 2390 if test "${ac_cv_path_install+set}" = set; then 2391 INSTALL=$ac_cv_path_install 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for INSTALL within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 INSTALL=$ac_install_sh 2398 fi 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2401$as_echo "$INSTALL" >&6; } 2402 2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2404# It thinks the first close brace ends the variable substitution. 2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2406 2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2408 2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2412$as_echo_n "checking whether build environment is sane... " >&6; } 2413# Just in case 2414sleep 1 2415echo timestamp > conftest.file 2416# Reject unsafe characters in $srcdir or the absolute working directory 2417# name. Accept space and tab only in the latter. 2418am_lf=' 2419' 2420case `pwd` in 2421 *[\\\"\#\$\&\'\`$am_lf]*) 2422 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2423esac 2424case $srcdir in 2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2426 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2427esac 2428 2429# Do `set' in a subshell so we don't clobber the current shell's 2430# arguments. Must try -L first in case configure is actually a 2431# symlink; some systems play weird games with the mod time of symlinks 2432# (eg FreeBSD returns the mod time of the symlink's containing 2433# directory). 2434if ( 2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2436 if test "$*" = "X"; then 2437 # -L didn't work. 2438 set X `ls -t "$srcdir/configure" conftest.file` 2439 fi 2440 rm -f conftest.file 2441 if test "$*" != "X $srcdir/configure conftest.file" \ 2442 && test "$*" != "X conftest.file $srcdir/configure"; then 2443 2444 # If neither matched, then we have a broken ls. This can happen 2445 # if, for instance, CONFIG_SHELL is bash and it inherits a 2446 # broken ls alias from the environment. This has actually 2447 # happened. Such a system could not be considered "sane". 2448 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2449alias in your environment" "$LINENO" 5 2450 fi 2451 2452 test "$2" = conftest.file 2453 ) 2454then 2455 # Ok. 2456 : 2457else 2458 as_fn_error "newly created file is older than distributed files! 2459Check your system clock" "$LINENO" 5 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2462$as_echo "yes" >&6; } 2463test "$program_prefix" != NONE && 2464 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2465# Use a double $ so make ignores it. 2466test "$program_suffix" != NONE && 2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2468# Double any \ or $. 2469# By default was `s,x,x', remove it if useless. 2470ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2471program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2472 2473# expand $ac_aux_dir to an absolute path 2474am_aux_dir=`cd $ac_aux_dir && pwd` 2475 2476if test x"${MISSING+set}" != xset; then 2477 case $am_aux_dir in 2478 *\ * | *\ *) 2479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2480 *) 2481 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2482 esac 2483fi 2484# Use eval to expand $SHELL 2485if eval "$MISSING --run true"; then 2486 am_missing_run="$MISSING --run " 2487else 2488 am_missing_run= 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2490$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2491fi 2492 2493if test x"${install_sh}" != xset; then 2494 case $am_aux_dir in 2495 *\ * | *\ *) 2496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2497 *) 2498 install_sh="\${SHELL} $am_aux_dir/install-sh" 2499 esac 2500fi 2501 2502# Installed binaries are usually stripped using `strip' when the user 2503# run `make install-strip'. However `strip' might not be the right 2504# tool to use in cross-compilation environments, therefore Automake 2505# will honor the `STRIP' environment variable to overrule this program. 2506if test "$cross_compiling" != no; then 2507 if test -n "$ac_tool_prefix"; then 2508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2509set dummy ${ac_tool_prefix}strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if test "${ac_cv_prog_STRIP+set}" = set; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$STRIP"; then 2516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2525 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535STRIP=$ac_cv_prog_STRIP 2536if test -n "$STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2538$as_echo "$STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 2545fi 2546if test -z "$ac_cv_prog_STRIP"; then 2547 ac_ct_STRIP=$STRIP 2548 # Extract the first word of "strip", so it can be a program name with args. 2549set dummy strip; ac_word=$2 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2551$as_echo_n "checking for $ac_word... " >&6; } 2552if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2553 $as_echo_n "(cached) " >&6 2554else 2555 if test -n "$ac_ct_STRIP"; then 2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2557else 2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2565 ac_cv_prog_ac_ct_STRIP="strip" 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570 done 2571IFS=$as_save_IFS 2572 2573fi 2574fi 2575ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2576if test -n "$ac_ct_STRIP"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2578$as_echo "$ac_ct_STRIP" >&6; } 2579else 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 if test "x$ac_ct_STRIP" = x; then 2585 STRIP=":" 2586 else 2587 case $cross_compiling:$ac_tool_warned in 2588yes:) 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 STRIP=$ac_ct_STRIP 2594 fi 2595else 2596 STRIP="$ac_cv_prog_STRIP" 2597fi 2598 2599fi 2600INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2603$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2604if test -z "$MKDIR_P"; then 2605 if test "${ac_cv_path_mkdir+set}" = set; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_prog in mkdir gmkdir; do 2614 for ac_exec_ext in '' $ac_executable_extensions; do 2615 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2617 'mkdir (GNU coreutils) '* | \ 2618 'mkdir (coreutils) '* | \ 2619 'mkdir (fileutils) '4.1*) 2620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2621 break 3;; 2622 esac 2623 done 2624 done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629 2630 test -d ./--version && rmdir ./--version 2631 if test "${ac_cv_path_mkdir+set}" = set; then 2632 MKDIR_P="$ac_cv_path_mkdir -p" 2633 else 2634 # As a last resort, use the slow shell script. Don't cache a 2635 # value for MKDIR_P within a source directory, because that will 2636 # break other packages using the cache if that directory is 2637 # removed, or if the value is a relative name. 2638 MKDIR_P="$ac_install_sh -d" 2639 fi 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2642$as_echo "$MKDIR_P" >&6; } 2643 2644mkdir_p="$MKDIR_P" 2645case $mkdir_p in 2646 [\\/$]* | ?:[\\/]*) ;; 2647 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2648esac 2649 2650for ac_prog in gawk mawk nawk awk 2651do 2652 # Extract the first word of "$ac_prog", so it can be a program name with args. 2653set dummy $ac_prog; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if test "${ac_cv_prog_AWK+set}" = set; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$AWK"; then 2660 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2669 ac_cv_prog_AWK="$ac_prog" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679AWK=$ac_cv_prog_AWK 2680if test -n "$AWK"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2682$as_echo "$AWK" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$AWK" && break 2690done 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2693$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2694set x ${MAKE-make} 2695ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2696if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 cat >conftest.make <<\_ACEOF 2700SHELL = /bin/sh 2701all: 2702 @echo '@@@%%%=$(MAKE)=@@@%%%' 2703_ACEOF 2704# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2705case `${MAKE-make} -f conftest.make 2>/dev/null` in 2706 *@@@%%%=?*=@@@%%%*) 2707 eval ac_cv_prog_make_${ac_make}_set=yes;; 2708 *) 2709 eval ac_cv_prog_make_${ac_make}_set=no;; 2710esac 2711rm -f conftest.make 2712fi 2713if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716 SET_MAKE= 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720 SET_MAKE="MAKE=${MAKE-make}" 2721fi 2722 2723rm -rf .tst 2>/dev/null 2724mkdir .tst 2>/dev/null 2725if test -d .tst; then 2726 am__leading_dot=. 2727else 2728 am__leading_dot=_ 2729fi 2730rmdir .tst 2>/dev/null 2731 2732if test "`cd $srcdir && pwd`" != "`pwd`"; then 2733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2734 # is not polluted with repeated "-I." 2735 am__isrc=' -I$(srcdir)' 2736 # test to see if srcdir already configured 2737 if test -f $srcdir/config.status; then 2738 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2739 fi 2740fi 2741 2742# test whether we have cygpath 2743if test -z "$CYGPATH_W"; then 2744 if (cygpath --version) >/dev/null 2>/dev/null; then 2745 CYGPATH_W='cygpath -w' 2746 else 2747 CYGPATH_W=echo 2748 fi 2749fi 2750 2751 2752# Define the identity of the package. 2753 PACKAGE='libXfixes' 2754 VERSION='4.0.5' 2755 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE "$PACKAGE" 2759_ACEOF 2760 2761 2762cat >>confdefs.h <<_ACEOF 2763#define VERSION "$VERSION" 2764_ACEOF 2765 2766# Some tools Automake needs. 2767 2768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2769 2770 2771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2772 2773 2774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2775 2776 2777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2778 2779 2780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2781 2782# We need awk for the "check" target. The system "awk" is bad on 2783# some platforms. 2784# Always define AMTAR for backward compatibility. 2785 2786AMTAR=${AMTAR-"${am_missing_run}tar"} 2787 2788am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2789 2790 2791 2792 2793 2794 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2796$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2797 # Check whether --enable-maintainer-mode was given. 2798if test "${enable_maintainer_mode+set}" = set; then : 2799 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2800else 2801 USE_MAINTAINER_MODE=no 2802fi 2803 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2805$as_echo "$USE_MAINTAINER_MODE" >&6; } 2806 if test $USE_MAINTAINER_MODE = yes; then 2807 MAINTAINER_MODE_TRUE= 2808 MAINTAINER_MODE_FALSE='#' 2809else 2810 MAINTAINER_MODE_TRUE='#' 2811 MAINTAINER_MODE_FALSE= 2812fi 2813 2814 MAINT=$MAINTAINER_MODE_TRUE 2815 2816 2817 2818# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830ac_config_headers="$ac_config_headers config.h" 2831 2832 2833# Check for progs 2834ac_ext=c 2835ac_cpp='$CPP $CPPFLAGS' 2836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2838ac_compiler_gnu=$ac_cv_c_compiler_gnu 2839if test -n "$ac_tool_prefix"; then 2840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2841set dummy ${ac_tool_prefix}gcc; ac_word=$2 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843$as_echo_n "checking for $ac_word... " >&6; } 2844if test "${ac_cv_prog_CC+set}" = set; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 if test -n "$CC"; then 2848 ac_cv_prog_CC="$CC" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2857 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862 done 2863IFS=$as_save_IFS 2864 2865fi 2866fi 2867CC=$ac_cv_prog_CC 2868if test -n "$CC"; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2870$as_echo "$CC" >&6; } 2871else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874fi 2875 2876 2877fi 2878if test -z "$ac_cv_prog_CC"; then 2879 ac_ct_CC=$CC 2880 # Extract the first word of "gcc", so it can be a program name with args. 2881set dummy gcc; ac_word=$2 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883$as_echo_n "checking for $ac_word... " >&6; } 2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test -n "$ac_ct_CC"; then 2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2897 ac_cv_prog_ac_ct_CC="gcc" 2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902 done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907ac_ct_CC=$ac_cv_prog_ac_ct_CC 2908if test -n "$ac_ct_CC"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2910$as_echo "$ac_ct_CC" >&6; } 2911else 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913$as_echo "no" >&6; } 2914fi 2915 2916 if test "x$ac_ct_CC" = x; then 2917 CC="" 2918 else 2919 case $cross_compiling:$ac_tool_warned in 2920yes:) 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2923ac_tool_warned=yes ;; 2924esac 2925 CC=$ac_ct_CC 2926 fi 2927else 2928 CC="$ac_cv_prog_CC" 2929fi 2930 2931if test -z "$CC"; then 2932 if test -n "$ac_tool_prefix"; then 2933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2934set dummy ${ac_tool_prefix}cc; ac_word=$2 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936$as_echo_n "checking for $ac_word... " >&6; } 2937if test "${ac_cv_prog_CC+set}" = set; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 if test -n "$CC"; then 2941 ac_cv_prog_CC="$CC" # Let the user override the test. 2942else 2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944for as_dir in $PATH 2945do 2946 IFS=$as_save_IFS 2947 test -z "$as_dir" && as_dir=. 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2950 ac_cv_prog_CC="${ac_tool_prefix}cc" 2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2952 break 2 2953 fi 2954done 2955 done 2956IFS=$as_save_IFS 2957 2958fi 2959fi 2960CC=$ac_cv_prog_CC 2961if test -n "$CC"; then 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2963$as_echo "$CC" >&6; } 2964else 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966$as_echo "no" >&6; } 2967fi 2968 2969 2970 fi 2971fi 2972if test -z "$CC"; then 2973 # Extract the first word of "cc", so it can be a program name with args. 2974set dummy cc; ac_word=$2 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2976$as_echo_n "checking for $ac_word... " >&6; } 2977if test "${ac_cv_prog_CC+set}" = set; then : 2978 $as_echo_n "(cached) " >&6 2979else 2980 if test -n "$CC"; then 2981 ac_cv_prog_CC="$CC" # Let the user override the test. 2982else 2983 ac_prog_rejected=no 2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2985for as_dir in $PATH 2986do 2987 IFS=$as_save_IFS 2988 test -z "$as_dir" && as_dir=. 2989 for ac_exec_ext in '' $ac_executable_extensions; do 2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2992 ac_prog_rejected=yes 2993 continue 2994 fi 2995 ac_cv_prog_CC="cc" 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003if test $ac_prog_rejected = yes; then 3004 # We found a bogon in the path, so make sure we never use it. 3005 set dummy $ac_cv_prog_CC 3006 shift 3007 if test $# != 0; then 3008 # We chose a different compiler from the bogus one. 3009 # However, it has the same basename, so the bogon will be chosen 3010 # first if we set CC to just the basename; use the full file name. 3011 shift 3012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3013 fi 3014fi 3015fi 3016fi 3017CC=$ac_cv_prog_CC 3018if test -n "$CC"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3020$as_echo "$CC" >&6; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023$as_echo "no" >&6; } 3024fi 3025 3026 3027fi 3028if test -z "$CC"; then 3029 if test -n "$ac_tool_prefix"; then 3030 for ac_prog in cl.exe 3031 do 3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3033set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035$as_echo_n "checking for $ac_word... " >&6; } 3036if test "${ac_cv_prog_CC+set}" = set; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 if test -n "$CC"; then 3040 ac_cv_prog_CC="$CC" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059CC=$ac_cv_prog_CC 3060if test -n "$CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3062$as_echo "$CC" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069 test -n "$CC" && break 3070 done 3071fi 3072if test -z "$CC"; then 3073 ac_ct_CC=$CC 3074 for ac_prog in cl.exe 3075do 3076 # Extract the first word of "$ac_prog", so it can be a program name with args. 3077set dummy $ac_prog; ac_word=$2 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3079$as_echo_n "checking for $ac_word... " >&6; } 3080if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3081 $as_echo_n "(cached) " >&6 3082else 3083 if test -n "$ac_ct_CC"; then 3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3085else 3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3087for as_dir in $PATH 3088do 3089 IFS=$as_save_IFS 3090 test -z "$as_dir" && as_dir=. 3091 for ac_exec_ext in '' $ac_executable_extensions; do 3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3093 ac_cv_prog_ac_ct_CC="$ac_prog" 3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3095 break 2 3096 fi 3097done 3098 done 3099IFS=$as_save_IFS 3100 3101fi 3102fi 3103ac_ct_CC=$ac_cv_prog_ac_ct_CC 3104if test -n "$ac_ct_CC"; then 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3106$as_echo "$ac_ct_CC" >&6; } 3107else 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3109$as_echo "no" >&6; } 3110fi 3111 3112 3113 test -n "$ac_ct_CC" && break 3114done 3115 3116 if test "x$ac_ct_CC" = x; then 3117 CC="" 3118 else 3119 case $cross_compiling:$ac_tool_warned in 3120yes:) 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3123ac_tool_warned=yes ;; 3124esac 3125 CC=$ac_ct_CC 3126 fi 3127fi 3128 3129fi 3130 3131 3132test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3134as_fn_error "no acceptable C compiler found in \$PATH 3135See \`config.log' for more details." "$LINENO" 5; } 3136 3137# Provide some information about the compiler. 3138$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3139set X $ac_compile 3140ac_compiler=$2 3141for ac_option in --version -v -V -qversion; do 3142 { { ac_try="$ac_compiler $ac_option >&5" 3143case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146esac 3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3148$as_echo "$ac_try_echo"; } >&5 3149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3150 ac_status=$? 3151 if test -s conftest.err; then 3152 sed '10a\ 3153... rest of stderr output deleted ... 3154 10q' conftest.err >conftest.er1 3155 cat conftest.er1 >&5 3156 fi 3157 rm -f conftest.er1 conftest.err 3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3159 test $ac_status = 0; } 3160done 3161 3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3163/* end confdefs.h. */ 3164 3165int 3166main () 3167{ 3168 3169 ; 3170 return 0; 3171} 3172_ACEOF 3173ac_clean_files_save=$ac_clean_files 3174ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3175# Try to create an executable without -o first, disregard a.out. 3176# It will help us diagnose broken compilers, and finding out an intuition 3177# of exeext. 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3179$as_echo_n "checking whether the C compiler works... " >&6; } 3180ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3181 3182# The possible output files: 3183ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3184 3185ac_rmfiles= 3186for ac_file in $ac_files 3187do 3188 case $ac_file in 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3190 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3191 esac 3192done 3193rm -f $ac_rmfiles 3194 3195if { { ac_try="$ac_link_default" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3201$as_echo "$ac_try_echo"; } >&5 3202 (eval "$ac_link_default") 2>&5 3203 ac_status=$? 3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3205 test $ac_status = 0; }; then : 3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3207# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3208# in a Makefile. We should not override ac_cv_exeext if it was cached, 3209# so that the user can short-circuit this test for compilers unknown to 3210# Autoconf. 3211for ac_file in $ac_files '' 3212do 3213 test -f "$ac_file" || continue 3214 case $ac_file in 3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3216 ;; 3217 [ab].out ) 3218 # We found the default executable, but exeext='' is most 3219 # certainly right. 3220 break;; 3221 *.* ) 3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3223 then :; else 3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3225 fi 3226 # We set ac_cv_exeext here because the later test for it is not 3227 # safe: cross compilers may not add the suffix if given an `-o' 3228 # argument, so we may need to know it at that point already. 3229 # Even if this section looks crufty: it has the advantage of 3230 # actually working. 3231 break;; 3232 * ) 3233 break;; 3234 esac 3235done 3236test "$ac_cv_exeext" = no && ac_cv_exeext= 3237 3238else 3239 ac_file='' 3240fi 3241if test -z "$ac_file"; then : 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244$as_echo "$as_me: failed program was:" >&5 3245sed 's/^/| /' conftest.$ac_ext >&5 3246 3247{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3249{ as_fn_set_status 77 3250as_fn_error "C compiler cannot create executables 3251See \`config.log' for more details." "$LINENO" 5; }; } 3252else 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3254$as_echo "yes" >&6; } 3255fi 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3257$as_echo_n "checking for C compiler default output file name... " >&6; } 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3259$as_echo "$ac_file" >&6; } 3260ac_exeext=$ac_cv_exeext 3261 3262rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3263ac_clean_files=$ac_clean_files_save 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3265$as_echo_n "checking for suffix of executables... " >&6; } 3266if { { ac_try="$ac_link" 3267case "(($ac_try" in 3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3269 *) ac_try_echo=$ac_try;; 3270esac 3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3272$as_echo "$ac_try_echo"; } >&5 3273 (eval "$ac_link") 2>&5 3274 ac_status=$? 3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3276 test $ac_status = 0; }; then : 3277 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3279# work properly (i.e., refer to `conftest.exe'), while it won't with 3280# `rm'. 3281for ac_file in conftest.exe conftest conftest.*; do 3282 test -f "$ac_file" || continue 3283 case $ac_file in 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3286 break;; 3287 * ) break;; 3288 esac 3289done 3290else 3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3293as_fn_error "cannot compute suffix of executables: cannot compile and link 3294See \`config.log' for more details." "$LINENO" 5; } 3295fi 3296rm -f conftest conftest$ac_cv_exeext 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3298$as_echo "$ac_cv_exeext" >&6; } 3299 3300rm -f conftest.$ac_ext 3301EXEEXT=$ac_cv_exeext 3302ac_exeext=$EXEEXT 3303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3304/* end confdefs.h. */ 3305#include <stdio.h> 3306int 3307main () 3308{ 3309FILE *f = fopen ("conftest.out", "w"); 3310 return ferror (f) || fclose (f) != 0; 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316ac_clean_files="$ac_clean_files conftest.out" 3317# Check that the compiler produces executables we can run. If not, either 3318# the compiler is broken, or we cross compile. 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3320$as_echo_n "checking whether we are cross compiling... " >&6; } 3321if test "$cross_compiling" != yes; then 3322 { { ac_try="$ac_link" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3328$as_echo "$ac_try_echo"; } >&5 3329 (eval "$ac_link") 2>&5 3330 ac_status=$? 3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3332 test $ac_status = 0; } 3333 if { ac_try='./conftest$ac_cv_exeext' 3334 { { case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339$as_echo "$ac_try_echo"; } >&5 3340 (eval "$ac_try") 2>&5 3341 ac_status=$? 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3343 test $ac_status = 0; }; }; then 3344 cross_compiling=no 3345 else 3346 if test "$cross_compiling" = maybe; then 3347 cross_compiling=yes 3348 else 3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351as_fn_error "cannot run C compiled programs. 3352If you meant to cross compile, use \`--host'. 3353See \`config.log' for more details." "$LINENO" 5; } 3354 fi 3355 fi 3356fi 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3358$as_echo "$cross_compiling" >&6; } 3359 3360rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3361ac_clean_files=$ac_clean_files_save 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3363$as_echo_n "checking for suffix of object files... " >&6; } 3364if test "${ac_cv_objext+set}" = set; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378rm -f conftest.o conftest.obj 3379if { { ac_try="$ac_compile" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3385$as_echo "$ac_try_echo"; } >&5 3386 (eval "$ac_compile") 2>&5 3387 ac_status=$? 3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3389 test $ac_status = 0; }; then : 3390 for ac_file in conftest.o conftest.obj conftest.*; do 3391 test -f "$ac_file" || continue; 3392 case $ac_file in 3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3395 break;; 3396 esac 3397done 3398else 3399 $as_echo "$as_me: failed program was:" >&5 3400sed 's/^/| /' conftest.$ac_ext >&5 3401 3402{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3404as_fn_error "cannot compute suffix of object files: cannot compile 3405See \`config.log' for more details." "$LINENO" 5; } 3406fi 3407rm -f conftest.$ac_cv_objext conftest.$ac_ext 3408fi 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3410$as_echo "$ac_cv_objext" >&6; } 3411OBJEXT=$ac_cv_objext 3412ac_objext=$OBJEXT 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3414$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3415if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420 3421int 3422main () 3423{ 3424#ifndef __GNUC__ 3425 choke me 3426#endif 3427 3428 ; 3429 return 0; 3430} 3431_ACEOF 3432if ac_fn_c_try_compile "$LINENO"; then : 3433 ac_compiler_gnu=yes 3434else 3435 ac_compiler_gnu=no 3436fi 3437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3438ac_cv_c_compiler_gnu=$ac_compiler_gnu 3439 3440fi 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3442$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3443if test $ac_compiler_gnu = yes; then 3444 GCC=yes 3445else 3446 GCC= 3447fi 3448ac_test_CFLAGS=${CFLAGS+set} 3449ac_save_CFLAGS=$CFLAGS 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3451$as_echo_n "checking whether $CC accepts -g... " >&6; } 3452if test "${ac_cv_prog_cc_g+set}" = set; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 ac_save_c_werror_flag=$ac_c_werror_flag 3456 ac_c_werror_flag=yes 3457 ac_cv_prog_cc_g=no 3458 CFLAGS="-g" 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461 3462int 3463main () 3464{ 3465 3466 ; 3467 return 0; 3468} 3469_ACEOF 3470if ac_fn_c_try_compile "$LINENO"; then : 3471 ac_cv_prog_cc_g=yes 3472else 3473 CFLAGS="" 3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3475/* end confdefs.h. */ 3476 3477int 3478main () 3479{ 3480 3481 ; 3482 return 0; 3483} 3484_ACEOF 3485if ac_fn_c_try_compile "$LINENO"; then : 3486 3487else 3488 ac_c_werror_flag=$ac_save_c_werror_flag 3489 CFLAGS="-g" 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492 3493int 3494main () 3495{ 3496 3497 ; 3498 return 0; 3499} 3500_ACEOF 3501if ac_fn_c_try_compile "$LINENO"; then : 3502 ac_cv_prog_cc_g=yes 3503fi 3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3505fi 3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3507fi 3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509 ac_c_werror_flag=$ac_save_c_werror_flag 3510fi 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3512$as_echo "$ac_cv_prog_cc_g" >&6; } 3513if test "$ac_test_CFLAGS" = set; then 3514 CFLAGS=$ac_save_CFLAGS 3515elif test $ac_cv_prog_cc_g = yes; then 3516 if test "$GCC" = yes; then 3517 CFLAGS="-g -O2" 3518 else 3519 CFLAGS="-g" 3520 fi 3521else 3522 if test "$GCC" = yes; then 3523 CFLAGS="-O2" 3524 else 3525 CFLAGS= 3526 fi 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3529$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3530if test "${ac_cv_prog_cc_c89+set}" = set; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 ac_cv_prog_cc_c89=no 3534ac_save_CC=$CC 3535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537#include <stdarg.h> 3538#include <stdio.h> 3539#include <sys/types.h> 3540#include <sys/stat.h> 3541/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3542struct buf { int x; }; 3543FILE * (*rcsopen) (struct buf *, struct stat *, int); 3544static char *e (p, i) 3545 char **p; 3546 int i; 3547{ 3548 return p[i]; 3549} 3550static char *f (char * (*g) (char **, int), char **p, ...) 3551{ 3552 char *s; 3553 va_list v; 3554 va_start (v,p); 3555 s = g (p, va_arg (v,int)); 3556 va_end (v); 3557 return s; 3558} 3559 3560/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3561 function prototypes and stuff, but not '\xHH' hex character constants. 3562 These don't provoke an error unfortunately, instead are silently treated 3563 as 'x'. The following induces an error, until -std is added to get 3564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3565 array size at least. It's necessary to write '\x00'==0 to get something 3566 that's true only with -std. */ 3567int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3568 3569/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3570 inside strings and character constants. */ 3571#define FOO(x) 'x' 3572int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3573 3574int test (int i, double x); 3575struct s1 {int (*f) (int a);}; 3576struct s2 {int (*f) (double a);}; 3577int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3578int argc; 3579char **argv; 3580int 3581main () 3582{ 3583return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3590do 3591 CC="$ac_save_CC $ac_arg" 3592 if ac_fn_c_try_compile "$LINENO"; then : 3593 ac_cv_prog_cc_c89=$ac_arg 3594fi 3595rm -f core conftest.err conftest.$ac_objext 3596 test "x$ac_cv_prog_cc_c89" != "xno" && break 3597done 3598rm -f conftest.$ac_ext 3599CC=$ac_save_CC 3600 3601fi 3602# AC_CACHE_VAL 3603case "x$ac_cv_prog_cc_c89" in 3604 x) 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3606$as_echo "none needed" >&6; } ;; 3607 xno) 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3609$as_echo "unsupported" >&6; } ;; 3610 *) 3611 CC="$CC $ac_cv_prog_cc_c89" 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3613$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3614esac 3615if test "x$ac_cv_prog_cc_c89" != xno; then : 3616 3617fi 3618 3619ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624DEPDIR="${am__leading_dot}deps" 3625 3626ac_config_commands="$ac_config_commands depfiles" 3627 3628 3629am_make=${MAKE-make} 3630cat > confinc << 'END' 3631am__doit: 3632 @echo this is the am__doit target 3633.PHONY: am__doit 3634END 3635# If we don't find an include directive, just comment out the code. 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3637$as_echo_n "checking for style of include used by $am_make... " >&6; } 3638am__include="#" 3639am__quote= 3640_am_result=none 3641# First try GNU make style include. 3642echo "include confinc" > confmf 3643# Ignore all kinds of additional output from `make'. 3644case `$am_make -s -f confmf 2> /dev/null` in #( 3645*the\ am__doit\ target*) 3646 am__include=include 3647 am__quote= 3648 _am_result=GNU 3649 ;; 3650esac 3651# Now try BSD make style include. 3652if test "$am__include" = "#"; then 3653 echo '.include "confinc"' > confmf 3654 case `$am_make -s -f confmf 2> /dev/null` in #( 3655 *the\ am__doit\ target*) 3656 am__include=.include 3657 am__quote="\"" 3658 _am_result=BSD 3659 ;; 3660 esac 3661fi 3662 3663 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3665$as_echo "$_am_result" >&6; } 3666rm -f confinc confmf 3667 3668# Check whether --enable-dependency-tracking was given. 3669if test "${enable_dependency_tracking+set}" = set; then : 3670 enableval=$enable_dependency_tracking; 3671fi 3672 3673if test "x$enable_dependency_tracking" != xno; then 3674 am_depcomp="$ac_aux_dir/depcomp" 3675 AMDEPBACKSLASH='\' 3676fi 3677 if test "x$enable_dependency_tracking" != xno; then 3678 AMDEP_TRUE= 3679 AMDEP_FALSE='#' 3680else 3681 AMDEP_TRUE='#' 3682 AMDEP_FALSE= 3683fi 3684 3685 3686 3687depcc="$CC" am_compiler_list= 3688 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3690$as_echo_n "checking dependency style of $depcc... " >&6; } 3691if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3695 # We make a subdir and do the tests there. Otherwise we can end up 3696 # making bogus files that we don't know about and never remove. For 3697 # instance it was reported that on HP-UX the gcc test will end up 3698 # making a dummy file named `D' -- because `-MD' means `put the output 3699 # in D'. 3700 mkdir conftest.dir 3701 # Copy depcomp to subdir because otherwise we won't find it if we're 3702 # using a relative directory. 3703 cp "$am_depcomp" conftest.dir 3704 cd conftest.dir 3705 # We will build objects and dependencies in a subdirectory because 3706 # it helps to detect inapplicable dependency modes. For instance 3707 # both Tru64's cc and ICC support -MD to output dependencies as a 3708 # side effect of compilation, but ICC will put the dependencies in 3709 # the current directory while Tru64 will put them in the object 3710 # directory. 3711 mkdir sub 3712 3713 am_cv_CC_dependencies_compiler_type=none 3714 if test "$am_compiler_list" = ""; then 3715 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3716 fi 3717 am__universal=false 3718 case " $depcc " in #( 3719 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3720 esac 3721 3722 for depmode in $am_compiler_list; do 3723 # Setup a source with many dependencies, because some compilers 3724 # like to wrap large dependency lists on column 80 (with \), and 3725 # we should not choose a depcomp mode which is confused by this. 3726 # 3727 # We need to recreate these files for each test, as the compiler may 3728 # overwrite some of them when testing with obscure command lines. 3729 # This happens at least with the AIX C compiler. 3730 : > sub/conftest.c 3731 for i in 1 2 3 4 5 6; do 3732 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3734 # Solaris 8's {/usr,}/bin/sh. 3735 touch sub/conftst$i.h 3736 done 3737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3738 3739 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3740 # mode. It turns out that the SunPro C++ compiler does not properly 3741 # handle `-M -o', and we need to detect this. Also, some Intel 3742 # versions had trouble with output in subdirs 3743 am__obj=sub/conftest.${OBJEXT-o} 3744 am__minus_obj="-o $am__obj" 3745 case $depmode in 3746 gcc) 3747 # This depmode causes a compiler race in universal mode. 3748 test "$am__universal" = false || continue 3749 ;; 3750 nosideeffect) 3751 # after this tag, mechanisms are not by side-effect, so they'll 3752 # only be used when explicitly requested 3753 if test "x$enable_dependency_tracking" = xyes; then 3754 continue 3755 else 3756 break 3757 fi 3758 ;; 3759 msvisualcpp | msvcmsys) 3760 # This compiler won't grok `-c -o', but also, the minuso test has 3761 # not run yet. These depmodes are late enough in the game, and 3762 # so weak that their functioning should not be impacted. 3763 am__obj=conftest.${OBJEXT-o} 3764 am__minus_obj= 3765 ;; 3766 none) break ;; 3767 esac 3768 if depmode=$depmode \ 3769 source=sub/conftest.c object=$am__obj \ 3770 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3771 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3772 >/dev/null 2>conftest.err && 3773 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3775 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3777 # icc doesn't choke on unknown options, it will just issue warnings 3778 # or remarks (even with -Werror). So we grep stderr for any message 3779 # that says an option was ignored or not supported. 3780 # When given -MP, icc 7.0 and 7.1 complain thusly: 3781 # icc: Command line warning: ignoring option '-M'; no argument required 3782 # The diagnosis changed in icc 8.0: 3783 # icc: Command line remark: option '-MP' not supported 3784 if (grep 'ignoring option' conftest.err || 3785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3786 am_cv_CC_dependencies_compiler_type=$depmode 3787 break 3788 fi 3789 fi 3790 done 3791 3792 cd .. 3793 rm -rf conftest.dir 3794else 3795 am_cv_CC_dependencies_compiler_type=none 3796fi 3797 3798fi 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3800$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3801CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3802 3803 if 3804 test "x$enable_dependency_tracking" != xno \ 3805 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3806 am__fastdepCC_TRUE= 3807 am__fastdepCC_FALSE='#' 3808else 3809 am__fastdepCC_TRUE='#' 3810 am__fastdepCC_FALSE= 3811fi 3812 3813 3814case `pwd` in 3815 *\ * | *\ *) 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3817$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3818esac 3819 3820 3821 3822macro_version='2.2.6b' 3823macro_revision='1.3017' 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837ltmain="$ac_aux_dir/ltmain.sh" 3838 3839# Make sure we can run config.sub. 3840$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3841 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3842 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3844$as_echo_n "checking build system type... " >&6; } 3845if test "${ac_cv_build+set}" = set; then : 3846 $as_echo_n "(cached) " >&6 3847else 3848 ac_build_alias=$build_alias 3849test "x$ac_build_alias" = x && 3850 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3851test "x$ac_build_alias" = x && 3852 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3853ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3854 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3855 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3858$as_echo "$ac_cv_build" >&6; } 3859case $ac_cv_build in 3860*-*-*) ;; 3861*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3862esac 3863build=$ac_cv_build 3864ac_save_IFS=$IFS; IFS='-' 3865set x $ac_cv_build 3866shift 3867build_cpu=$1 3868build_vendor=$2 3869shift; shift 3870# Remember, the first character of IFS is used to create $*, 3871# except with old shells: 3872build_os=$* 3873IFS=$ac_save_IFS 3874case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3875 3876 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3878$as_echo_n "checking host system type... " >&6; } 3879if test "${ac_cv_host+set}" = set; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 if test "x$host_alias" = x; then 3883 ac_cv_host=$ac_cv_build 3884else 3885 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3886 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3887fi 3888 3889fi 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3891$as_echo "$ac_cv_host" >&6; } 3892case $ac_cv_host in 3893*-*-*) ;; 3894*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3895esac 3896host=$ac_cv_host 3897ac_save_IFS=$IFS; IFS='-' 3898set x $ac_cv_host 3899shift 3900host_cpu=$1 3901host_vendor=$2 3902shift; shift 3903# Remember, the first character of IFS is used to create $*, 3904# except with old shells: 3905host_os=$* 3906IFS=$ac_save_IFS 3907case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3908 3909 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3911$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3912if test "${ac_cv_path_SED+set}" = set; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3916 for ac_i in 1 2 3 4 5 6 7; do 3917 ac_script="$ac_script$as_nl$ac_script" 3918 done 3919 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3920 { ac_script=; unset ac_script;} 3921 if test -z "$SED"; then 3922 ac_path_SED_found=false 3923 # Loop through the user's path and test for each of PROGNAME-LIST 3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3925for as_dir in $PATH 3926do 3927 IFS=$as_save_IFS 3928 test -z "$as_dir" && as_dir=. 3929 for ac_prog in sed gsed; do 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3932 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3933# Check for GNU ac_path_SED and select it if it is found. 3934 # Check for GNU $ac_path_SED 3935case `"$ac_path_SED" --version 2>&1` in 3936*GNU*) 3937 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3938*) 3939 ac_count=0 3940 $as_echo_n 0123456789 >"conftest.in" 3941 while : 3942 do 3943 cat "conftest.in" "conftest.in" >"conftest.tmp" 3944 mv "conftest.tmp" "conftest.in" 3945 cp "conftest.in" "conftest.nl" 3946 $as_echo '' >> "conftest.nl" 3947 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3949 as_fn_arith $ac_count + 1 && ac_count=$as_val 3950 if test $ac_count -gt ${ac_path_SED_max-0}; then 3951 # Best one so far, save it but keep looking for a better one 3952 ac_cv_path_SED="$ac_path_SED" 3953 ac_path_SED_max=$ac_count 3954 fi 3955 # 10*(2^10) chars as input seems more than enough 3956 test $ac_count -gt 10 && break 3957 done 3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3959esac 3960 3961 $ac_path_SED_found && break 3 3962 done 3963 done 3964 done 3965IFS=$as_save_IFS 3966 if test -z "$ac_cv_path_SED"; then 3967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 3968 fi 3969else 3970 ac_cv_path_SED=$SED 3971fi 3972 3973fi 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3975$as_echo "$ac_cv_path_SED" >&6; } 3976 SED="$ac_cv_path_SED" 3977 rm -f conftest.sed 3978 3979test -z "$SED" && SED=sed 3980Xsed="$SED -e 1s/^X//" 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3993$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3994if test "${ac_cv_path_GREP+set}" = set; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -z "$GREP"; then 3998 ac_path_GREP_found=false 3999 # Loop through the user's path and test for each of PROGNAME-LIST 4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_prog in grep ggrep; do 4006 for ac_exec_ext in '' $ac_executable_extensions; do 4007 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4008 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4009# Check for GNU ac_path_GREP and select it if it is found. 4010 # Check for GNU $ac_path_GREP 4011case `"$ac_path_GREP" --version 2>&1` in 4012*GNU*) 4013 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4014*) 4015 ac_count=0 4016 $as_echo_n 0123456789 >"conftest.in" 4017 while : 4018 do 4019 cat "conftest.in" "conftest.in" >"conftest.tmp" 4020 mv "conftest.tmp" "conftest.in" 4021 cp "conftest.in" "conftest.nl" 4022 $as_echo 'GREP' >> "conftest.nl" 4023 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4025 as_fn_arith $ac_count + 1 && ac_count=$as_val 4026 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4027 # Best one so far, save it but keep looking for a better one 4028 ac_cv_path_GREP="$ac_path_GREP" 4029 ac_path_GREP_max=$ac_count 4030 fi 4031 # 10*(2^10) chars as input seems more than enough 4032 test $ac_count -gt 10 && break 4033 done 4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4035esac 4036 4037 $ac_path_GREP_found && break 3 4038 done 4039 done 4040 done 4041IFS=$as_save_IFS 4042 if test -z "$ac_cv_path_GREP"; then 4043 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4044 fi 4045else 4046 ac_cv_path_GREP=$GREP 4047fi 4048 4049fi 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4051$as_echo "$ac_cv_path_GREP" >&6; } 4052 GREP="$ac_cv_path_GREP" 4053 4054 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4056$as_echo_n "checking for egrep... " >&6; } 4057if test "${ac_cv_path_EGREP+set}" = set; then : 4058 $as_echo_n "(cached) " >&6 4059else 4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4061 then ac_cv_path_EGREP="$GREP -E" 4062 else 4063 if test -z "$EGREP"; then 4064 ac_path_EGREP_found=false 4065 # Loop through the user's path and test for each of PROGNAME-LIST 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4068do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_prog in egrep; do 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4074 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4075# Check for GNU ac_path_EGREP and select it if it is found. 4076 # Check for GNU $ac_path_EGREP 4077case `"$ac_path_EGREP" --version 2>&1` in 4078*GNU*) 4079 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4080*) 4081 ac_count=0 4082 $as_echo_n 0123456789 >"conftest.in" 4083 while : 4084 do 4085 cat "conftest.in" "conftest.in" >"conftest.tmp" 4086 mv "conftest.tmp" "conftest.in" 4087 cp "conftest.in" "conftest.nl" 4088 $as_echo 'EGREP' >> "conftest.nl" 4089 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4091 as_fn_arith $ac_count + 1 && ac_count=$as_val 4092 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4093 # Best one so far, save it but keep looking for a better one 4094 ac_cv_path_EGREP="$ac_path_EGREP" 4095 ac_path_EGREP_max=$ac_count 4096 fi 4097 # 10*(2^10) chars as input seems more than enough 4098 test $ac_count -gt 10 && break 4099 done 4100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4101esac 4102 4103 $ac_path_EGREP_found && break 3 4104 done 4105 done 4106 done 4107IFS=$as_save_IFS 4108 if test -z "$ac_cv_path_EGREP"; then 4109 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4110 fi 4111else 4112 ac_cv_path_EGREP=$EGREP 4113fi 4114 4115 fi 4116fi 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4118$as_echo "$ac_cv_path_EGREP" >&6; } 4119 EGREP="$ac_cv_path_EGREP" 4120 4121 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4123$as_echo_n "checking for fgrep... " >&6; } 4124if test "${ac_cv_path_FGREP+set}" = set; then : 4125 $as_echo_n "(cached) " >&6 4126else 4127 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4128 then ac_cv_path_FGREP="$GREP -F" 4129 else 4130 if test -z "$FGREP"; then 4131 ac_path_FGREP_found=false 4132 # Loop through the user's path and test for each of PROGNAME-LIST 4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4135do 4136 IFS=$as_save_IFS 4137 test -z "$as_dir" && as_dir=. 4138 for ac_prog in fgrep; do 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4141 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4142# Check for GNU ac_path_FGREP and select it if it is found. 4143 # Check for GNU $ac_path_FGREP 4144case `"$ac_path_FGREP" --version 2>&1` in 4145*GNU*) 4146 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4147*) 4148 ac_count=0 4149 $as_echo_n 0123456789 >"conftest.in" 4150 while : 4151 do 4152 cat "conftest.in" "conftest.in" >"conftest.tmp" 4153 mv "conftest.tmp" "conftest.in" 4154 cp "conftest.in" "conftest.nl" 4155 $as_echo 'FGREP' >> "conftest.nl" 4156 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4158 as_fn_arith $ac_count + 1 && ac_count=$as_val 4159 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4160 # Best one so far, save it but keep looking for a better one 4161 ac_cv_path_FGREP="$ac_path_FGREP" 4162 ac_path_FGREP_max=$ac_count 4163 fi 4164 # 10*(2^10) chars as input seems more than enough 4165 test $ac_count -gt 10 && break 4166 done 4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4168esac 4169 4170 $ac_path_FGREP_found && break 3 4171 done 4172 done 4173 done 4174IFS=$as_save_IFS 4175 if test -z "$ac_cv_path_FGREP"; then 4176 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4177 fi 4178else 4179 ac_cv_path_FGREP=$FGREP 4180fi 4181 4182 fi 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4185$as_echo "$ac_cv_path_FGREP" >&6; } 4186 FGREP="$ac_cv_path_FGREP" 4187 4188 4189test -z "$GREP" && GREP=grep 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209# Check whether --with-gnu-ld was given. 4210if test "${with_gnu_ld+set}" = set; then : 4211 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4212else 4213 with_gnu_ld=no 4214fi 4215 4216ac_prog=ld 4217if test "$GCC" = yes; then 4218 # Check if gcc -print-prog-name=ld gives a path. 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4220$as_echo_n "checking for ld used by $CC... " >&6; } 4221 case $host in 4222 *-*-mingw*) 4223 # gcc leaves a trailing carriage return which upsets mingw 4224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4225 *) 4226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4227 esac 4228 case $ac_prog in 4229 # Accept absolute paths. 4230 [\\/]* | ?:[\\/]*) 4231 re_direlt='/[^/][^/]*/\.\./' 4232 # Canonicalize the pathname of ld 4233 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4234 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4235 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4236 done 4237 test -z "$LD" && LD="$ac_prog" 4238 ;; 4239 "") 4240 # If it fails, then pretend we aren't using GCC. 4241 ac_prog=ld 4242 ;; 4243 *) 4244 # If it is relative, then search for the first ld in PATH. 4245 with_gnu_ld=unknown 4246 ;; 4247 esac 4248elif test "$with_gnu_ld" = yes; then 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4250$as_echo_n "checking for GNU ld... " >&6; } 4251else 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4253$as_echo_n "checking for non-GNU ld... " >&6; } 4254fi 4255if test "${lt_cv_path_LD+set}" = set; then : 4256 $as_echo_n "(cached) " >&6 4257else 4258 if test -z "$LD"; then 4259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4260 for ac_dir in $PATH; do 4261 IFS="$lt_save_ifs" 4262 test -z "$ac_dir" && ac_dir=. 4263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4264 lt_cv_path_LD="$ac_dir/$ac_prog" 4265 # Check to see if the program is GNU ld. I'd rather use --version, 4266 # but apparently some variants of GNU ld only accept -v. 4267 # Break only if it was the GNU/non-GNU ld that we prefer. 4268 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4269 *GNU* | *'with BFD'*) 4270 test "$with_gnu_ld" != no && break 4271 ;; 4272 *) 4273 test "$with_gnu_ld" != yes && break 4274 ;; 4275 esac 4276 fi 4277 done 4278 IFS="$lt_save_ifs" 4279else 4280 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4281fi 4282fi 4283 4284LD="$lt_cv_path_LD" 4285if test -n "$LD"; then 4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4287$as_echo "$LD" >&6; } 4288else 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4290$as_echo "no" >&6; } 4291fi 4292test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4294$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4295if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4296 $as_echo_n "(cached) " >&6 4297else 4298 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4299case `$LD -v 2>&1 </dev/null` in 4300*GNU* | *'with BFD'*) 4301 lt_cv_prog_gnu_ld=yes 4302 ;; 4303*) 4304 lt_cv_prog_gnu_ld=no 4305 ;; 4306esac 4307fi 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4309$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4310with_gnu_ld=$lt_cv_prog_gnu_ld 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4321$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4322if test "${lt_cv_path_NM+set}" = set; then : 4323 $as_echo_n "(cached) " >&6 4324else 4325 if test -n "$NM"; then 4326 # Let the user override the test. 4327 lt_cv_path_NM="$NM" 4328else 4329 lt_nm_to_check="${ac_tool_prefix}nm" 4330 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4331 lt_nm_to_check="$lt_nm_to_check nm" 4332 fi 4333 for lt_tmp_nm in $lt_nm_to_check; do 4334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4335 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4336 IFS="$lt_save_ifs" 4337 test -z "$ac_dir" && ac_dir=. 4338 tmp_nm="$ac_dir/$lt_tmp_nm" 4339 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4340 # Check to see if the nm accepts a BSD-compat flag. 4341 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4342 # nm: unknown option "B" ignored 4343 # Tru64's nm complains that /dev/null is an invalid object file 4344 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4345 */dev/null* | *'Invalid file or object type'*) 4346 lt_cv_path_NM="$tmp_nm -B" 4347 break 4348 ;; 4349 *) 4350 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4351 */dev/null*) 4352 lt_cv_path_NM="$tmp_nm -p" 4353 break 4354 ;; 4355 *) 4356 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4357 continue # so that we can try to find one that supports BSD flags 4358 ;; 4359 esac 4360 ;; 4361 esac 4362 fi 4363 done 4364 IFS="$lt_save_ifs" 4365 done 4366 : ${lt_cv_path_NM=no} 4367fi 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4370$as_echo "$lt_cv_path_NM" >&6; } 4371if test "$lt_cv_path_NM" != "no"; then 4372 NM="$lt_cv_path_NM" 4373else 4374 # Didn't find any BSD compatible name lister, look for dumpbin. 4375 if test -n "$ac_tool_prefix"; then 4376 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4377 do 4378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4379set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$DUMPBIN"; then 4386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405DUMPBIN=$ac_cv_prog_DUMPBIN 4406if test -n "$DUMPBIN"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4408$as_echo "$DUMPBIN" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415 test -n "$DUMPBIN" && break 4416 done 4417fi 4418if test -z "$DUMPBIN"; then 4419 ac_ct_DUMPBIN=$DUMPBIN 4420 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4421do 4422 # Extract the first word of "$ac_prog", so it can be a program name with args. 4423set dummy $ac_prog; ac_word=$2 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4425$as_echo_n "checking for $ac_word... " >&6; } 4426if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4427 $as_echo_n "(cached) " >&6 4428else 4429 if test -n "$ac_ct_DUMPBIN"; then 4430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4431else 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 break 2 4442 fi 4443done 4444 done 4445IFS=$as_save_IFS 4446 4447fi 4448fi 4449ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4450if test -n "$ac_ct_DUMPBIN"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4452$as_echo "$ac_ct_DUMPBIN" >&6; } 4453else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455$as_echo "no" >&6; } 4456fi 4457 4458 4459 test -n "$ac_ct_DUMPBIN" && break 4460done 4461 4462 if test "x$ac_ct_DUMPBIN" = x; then 4463 DUMPBIN=":" 4464 else 4465 case $cross_compiling:$ac_tool_warned in 4466yes:) 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4469ac_tool_warned=yes ;; 4470esac 4471 DUMPBIN=$ac_ct_DUMPBIN 4472 fi 4473fi 4474 4475 4476 if test "$DUMPBIN" != ":"; then 4477 NM="$DUMPBIN" 4478 fi 4479fi 4480test -z "$NM" && NM=nm 4481 4482 4483 4484 4485 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4488$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4489if test "${lt_cv_nm_interface+set}" = set; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 lt_cv_nm_interface="BSD nm" 4493 echo "int some_variable = 0;" > conftest.$ac_ext 4494 (eval echo "\"\$as_me:4494: $ac_compile\"" >&5) 4495 (eval "$ac_compile" 2>conftest.err) 4496 cat conftest.err >&5 4497 (eval echo "\"\$as_me:4497: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4498 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4499 cat conftest.err >&5 4500 (eval echo "\"\$as_me:4500: output\"" >&5) 4501 cat conftest.out >&5 4502 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4503 lt_cv_nm_interface="MS dumpbin" 4504 fi 4505 rm -f conftest* 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4508$as_echo "$lt_cv_nm_interface" >&6; } 4509 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4511$as_echo_n "checking whether ln -s works... " >&6; } 4512LN_S=$as_ln_s 4513if test "$LN_S" = "ln -s"; then 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4515$as_echo "yes" >&6; } 4516else 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4518$as_echo "no, using $LN_S" >&6; } 4519fi 4520 4521# find the maximum length of command line arguments 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4523$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4524if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 i=0 4528 teststring="ABCD" 4529 4530 case $build_os in 4531 msdosdjgpp*) 4532 # On DJGPP, this test can blow up pretty badly due to problems in libc 4533 # (any single argument exceeding 2000 bytes causes a buffer overrun 4534 # during glob expansion). Even if it were fixed, the result of this 4535 # check would be larger than it should be. 4536 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4537 ;; 4538 4539 gnu*) 4540 # Under GNU Hurd, this test is not required because there is 4541 # no limit to the length of command line arguments. 4542 # Libtool will interpret -1 as no limit whatsoever 4543 lt_cv_sys_max_cmd_len=-1; 4544 ;; 4545 4546 cygwin* | mingw* | cegcc*) 4547 # On Win9x/ME, this test blows up -- it succeeds, but takes 4548 # about 5 minutes as the teststring grows exponentially. 4549 # Worse, since 9x/ME are not pre-emptively multitasking, 4550 # you end up with a "frozen" computer, even though with patience 4551 # the test eventually succeeds (with a max line length of 256k). 4552 # Instead, let's just punt: use the minimum linelength reported by 4553 # all of the supported platforms: 8192 (on NT/2K/XP). 4554 lt_cv_sys_max_cmd_len=8192; 4555 ;; 4556 4557 amigaos*) 4558 # On AmigaOS with pdksh, this test takes hours, literally. 4559 # So we just punt and use a minimum line length of 8192. 4560 lt_cv_sys_max_cmd_len=8192; 4561 ;; 4562 4563 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4564 # This has been around since 386BSD, at least. Likely further. 4565 if test -x /sbin/sysctl; then 4566 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4567 elif test -x /usr/sbin/sysctl; then 4568 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4569 else 4570 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4571 fi 4572 # And add a safety zone 4573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4575 ;; 4576 4577 interix*) 4578 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4579 lt_cv_sys_max_cmd_len=196608 4580 ;; 4581 4582 osf*) 4583 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4584 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4585 # nice to cause kernel panics so lets avoid the loop below. 4586 # First set a reasonable default. 4587 lt_cv_sys_max_cmd_len=16384 4588 # 4589 if test -x /sbin/sysconfig; then 4590 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4591 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4592 esac 4593 fi 4594 ;; 4595 sco3.2v5*) 4596 lt_cv_sys_max_cmd_len=102400 4597 ;; 4598 sysv5* | sco5v6* | sysv4.2uw2*) 4599 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4600 if test -n "$kargmax"; then 4601 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4602 else 4603 lt_cv_sys_max_cmd_len=32768 4604 fi 4605 ;; 4606 *) 4607 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4608 if test -n "$lt_cv_sys_max_cmd_len"; then 4609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4611 else 4612 # Make teststring a little bigger before we do anything with it. 4613 # a 1K string should be a reasonable start. 4614 for i in 1 2 3 4 5 6 7 8 ; do 4615 teststring=$teststring$teststring 4616 done 4617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4618 # If test is not a shell built-in, we'll probably end up computing a 4619 # maximum length that is only half of the actual maximum length, but 4620 # we can't tell. 4621 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4622 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4623 test $i != 17 # 1/2 MB should be enough 4624 do 4625 i=`expr $i + 1` 4626 teststring=$teststring$teststring 4627 done 4628 # Only check the string length outside the loop. 4629 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4630 teststring= 4631 # Add a significant safety factor because C++ compilers can tack on 4632 # massive amounts of additional arguments before passing them to the 4633 # linker. It appears as though 1/2 is a usable value. 4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4635 fi 4636 ;; 4637 esac 4638 4639fi 4640 4641if test -n $lt_cv_sys_max_cmd_len ; then 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4643$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4646$as_echo "none" >&6; } 4647fi 4648max_cmd_len=$lt_cv_sys_max_cmd_len 4649 4650 4651 4652 4653 4654 4655: ${CP="cp -f"} 4656: ${MV="mv -f"} 4657: ${RM="rm -f"} 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4660$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4661# Try some XSI features 4662xsi_shell=no 4663( _lt_dummy="a/b/c" 4664 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4665 = c,a/b,, \ 4666 && eval 'test $(( 1 + 1 )) -eq 2 \ 4667 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4668 && xsi_shell=yes 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4670$as_echo "$xsi_shell" >&6; } 4671 4672 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4674$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4675lt_shell_append=no 4676( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4677 >/dev/null 2>&1 \ 4678 && lt_shell_append=yes 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4680$as_echo "$lt_shell_append" >&6; } 4681 4682 4683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4684 lt_unset=unset 4685else 4686 lt_unset=false 4687fi 4688 4689 4690 4691 4692 4693# test EBCDIC or ASCII 4694case `echo X|tr X '\101'` in 4695 A) # ASCII based system 4696 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4697 lt_SP2NL='tr \040 \012' 4698 lt_NL2SP='tr \015\012 \040\040' 4699 ;; 4700 *) # EBCDIC based system 4701 lt_SP2NL='tr \100 \n' 4702 lt_NL2SP='tr \r\n \100\100' 4703 ;; 4704esac 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4715$as_echo_n "checking for $LD option to reload object files... " >&6; } 4716if test "${lt_cv_ld_reload_flag+set}" = set; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 lt_cv_ld_reload_flag='-r' 4720fi 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4722$as_echo "$lt_cv_ld_reload_flag" >&6; } 4723reload_flag=$lt_cv_ld_reload_flag 4724case $reload_flag in 4725"" | " "*) ;; 4726*) reload_flag=" $reload_flag" ;; 4727esac 4728reload_cmds='$LD$reload_flag -o $output$reload_objs' 4729case $host_os in 4730 darwin*) 4731 if test "$GCC" = yes; then 4732 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4733 else 4734 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4735 fi 4736 ;; 4737esac 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747if test -n "$ac_tool_prefix"; then 4748 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4749set dummy ${ac_tool_prefix}objdump; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$OBJDUMP"; then 4756 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4765 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775OBJDUMP=$ac_cv_prog_OBJDUMP 4776if test -n "$OBJDUMP"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4778$as_echo "$OBJDUMP" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 4785fi 4786if test -z "$ac_cv_prog_OBJDUMP"; then 4787 ac_ct_OBJDUMP=$OBJDUMP 4788 # Extract the first word of "objdump", so it can be a program name with args. 4789set dummy objdump; ac_word=$2 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791$as_echo_n "checking for $ac_word... " >&6; } 4792if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 if test -n "$ac_ct_OBJDUMP"; then 4796 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4797else 4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4799for as_dir in $PATH 4800do 4801 IFS=$as_save_IFS 4802 test -z "$as_dir" && as_dir=. 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4805 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4807 break 2 4808 fi 4809done 4810 done 4811IFS=$as_save_IFS 4812 4813fi 4814fi 4815ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4816if test -n "$ac_ct_OBJDUMP"; then 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4818$as_echo "$ac_ct_OBJDUMP" >&6; } 4819else 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821$as_echo "no" >&6; } 4822fi 4823 4824 if test "x$ac_ct_OBJDUMP" = x; then 4825 OBJDUMP="false" 4826 else 4827 case $cross_compiling:$ac_tool_warned in 4828yes:) 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4831ac_tool_warned=yes ;; 4832esac 4833 OBJDUMP=$ac_ct_OBJDUMP 4834 fi 4835else 4836 OBJDUMP="$ac_cv_prog_OBJDUMP" 4837fi 4838 4839test -z "$OBJDUMP" && OBJDUMP=objdump 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4850$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4851if test "${lt_cv_deplibs_check_method+set}" = set; then : 4852 $as_echo_n "(cached) " >&6 4853else 4854 lt_cv_file_magic_cmd='$MAGIC_CMD' 4855lt_cv_file_magic_test_file= 4856lt_cv_deplibs_check_method='unknown' 4857# Need to set the preceding variable on all platforms that support 4858# interlibrary dependencies. 4859# 'none' -- dependencies not supported. 4860# `unknown' -- same as none, but documents that we really don't know. 4861# 'pass_all' -- all dependencies passed with no checks. 4862# 'test_compile' -- check by making test program. 4863# 'file_magic [[regex]]' -- check by looking for files in library path 4864# which responds to the $file_magic_cmd with a given extended regex. 4865# If you have `file' or equivalent on your system and you're not sure 4866# whether `pass_all' will *always* work, you probably want this one. 4867 4868case $host_os in 4869aix[4-9]*) 4870 lt_cv_deplibs_check_method=pass_all 4871 ;; 4872 4873beos*) 4874 lt_cv_deplibs_check_method=pass_all 4875 ;; 4876 4877bsdi[45]*) 4878 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4879 lt_cv_file_magic_cmd='/usr/bin/file -L' 4880 lt_cv_file_magic_test_file=/shlib/libc.so 4881 ;; 4882 4883cygwin*) 4884 # func_win32_libid is a shell function defined in ltmain.sh 4885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4886 lt_cv_file_magic_cmd='func_win32_libid' 4887 ;; 4888 4889mingw* | pw32*) 4890 # Base MSYS/MinGW do not provide the 'file' command needed by 4891 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4892 # unless we find 'file', for example because we are cross-compiling. 4893 if ( file / ) >/dev/null 2>&1; then 4894 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4895 lt_cv_file_magic_cmd='func_win32_libid' 4896 else 4897 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4898 lt_cv_file_magic_cmd='$OBJDUMP -f' 4899 fi 4900 ;; 4901 4902cegcc) 4903 # use the weaker test based on 'objdump'. See mingw*. 4904 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4905 lt_cv_file_magic_cmd='$OBJDUMP -f' 4906 ;; 4907 4908darwin* | rhapsody*) 4909 lt_cv_deplibs_check_method=pass_all 4910 ;; 4911 4912freebsd* | dragonfly*) 4913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4914 case $host_cpu in 4915 i*86 ) 4916 # Not sure whether the presence of OpenBSD here was a mistake. 4917 # Let's accept both of them until this is cleared up. 4918 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4919 lt_cv_file_magic_cmd=/usr/bin/file 4920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4921 ;; 4922 esac 4923 else 4924 lt_cv_deplibs_check_method=pass_all 4925 fi 4926 ;; 4927 4928gnu*) 4929 lt_cv_deplibs_check_method=pass_all 4930 ;; 4931 4932hpux10.20* | hpux11*) 4933 lt_cv_file_magic_cmd=/usr/bin/file 4934 case $host_cpu in 4935 ia64*) 4936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4937 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4938 ;; 4939 hppa*64*) 4940 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]' 4941 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4942 ;; 4943 *) 4944 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4945 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4946 ;; 4947 esac 4948 ;; 4949 4950interix[3-9]*) 4951 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4952 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4953 ;; 4954 4955irix5* | irix6* | nonstopux*) 4956 case $LD in 4957 *-32|*"-32 ") libmagic=32-bit;; 4958 *-n32|*"-n32 ") libmagic=N32;; 4959 *-64|*"-64 ") libmagic=64-bit;; 4960 *) libmagic=never-match;; 4961 esac 4962 lt_cv_deplibs_check_method=pass_all 4963 ;; 4964 4965# This must be Linux ELF. 4966linux* | k*bsd*-gnu) 4967 lt_cv_deplibs_check_method=pass_all 4968 ;; 4969 4970netbsd*) 4971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4973 else 4974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4975 fi 4976 ;; 4977 4978newos6*) 4979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4980 lt_cv_file_magic_cmd=/usr/bin/file 4981 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4982 ;; 4983 4984*nto* | *qnx*) 4985 lt_cv_deplibs_check_method=pass_all 4986 ;; 4987 4988openbsd*) 4989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4991 else 4992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4993 fi 4994 ;; 4995 4996osf3* | osf4* | osf5*) 4997 lt_cv_deplibs_check_method=pass_all 4998 ;; 4999 5000rdos*) 5001 lt_cv_deplibs_check_method=pass_all 5002 ;; 5003 5004solaris*) 5005 lt_cv_deplibs_check_method=pass_all 5006 ;; 5007 5008sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011 5012sysv4 | sysv4.3*) 5013 case $host_vendor in 5014 motorola) 5015 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]' 5016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5017 ;; 5018 ncr) 5019 lt_cv_deplibs_check_method=pass_all 5020 ;; 5021 sequent) 5022 lt_cv_file_magic_cmd='/bin/file' 5023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5024 ;; 5025 sni) 5026 lt_cv_file_magic_cmd='/bin/file' 5027 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5028 lt_cv_file_magic_test_file=/lib/libc.so 5029 ;; 5030 siemens) 5031 lt_cv_deplibs_check_method=pass_all 5032 ;; 5033 pc) 5034 lt_cv_deplibs_check_method=pass_all 5035 ;; 5036 esac 5037 ;; 5038 5039tpf*) 5040 lt_cv_deplibs_check_method=pass_all 5041 ;; 5042esac 5043 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5046$as_echo "$lt_cv_deplibs_check_method" >&6; } 5047file_magic_cmd=$lt_cv_file_magic_cmd 5048deplibs_check_method=$lt_cv_deplibs_check_method 5049test -z "$deplibs_check_method" && deplibs_check_method=unknown 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062if test -n "$ac_tool_prefix"; then 5063 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5064set dummy ${ac_tool_prefix}ar; ac_word=$2 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if test "${ac_cv_prog_AR+set}" = set; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$AR"; then 5071 ac_cv_prog_AR="$AR" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5080 ac_cv_prog_AR="${ac_tool_prefix}ar" 5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085 done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090AR=$ac_cv_prog_AR 5091if test -n "$AR"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5093$as_echo "$AR" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 5100fi 5101if test -z "$ac_cv_prog_AR"; then 5102 ac_ct_AR=$AR 5103 # Extract the first word of "ar", so it can be a program name with args. 5104set dummy ar; ac_word=$2 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5106$as_echo_n "checking for $ac_word... " >&6; } 5107if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 if test -n "$ac_ct_AR"; then 5111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5112else 5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH 5115do 5116 IFS=$as_save_IFS 5117 test -z "$as_dir" && as_dir=. 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5120 ac_cv_prog_ac_ct_AR="ar" 5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5122 break 2 5123 fi 5124done 5125 done 5126IFS=$as_save_IFS 5127 5128fi 5129fi 5130ac_ct_AR=$ac_cv_prog_ac_ct_AR 5131if test -n "$ac_ct_AR"; then 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5133$as_echo "$ac_ct_AR" >&6; } 5134else 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5136$as_echo "no" >&6; } 5137fi 5138 5139 if test "x$ac_ct_AR" = x; then 5140 AR="false" 5141 else 5142 case $cross_compiling:$ac_tool_warned in 5143yes:) 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5146ac_tool_warned=yes ;; 5147esac 5148 AR=$ac_ct_AR 5149 fi 5150else 5151 AR="$ac_cv_prog_AR" 5152fi 5153 5154test -z "$AR" && AR=ar 5155test -z "$AR_FLAGS" && AR_FLAGS=cru 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167if test -n "$ac_tool_prefix"; then 5168 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5169set dummy ${ac_tool_prefix}strip; ac_word=$2 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5171$as_echo_n "checking for $ac_word... " >&6; } 5172if test "${ac_cv_prog_STRIP+set}" = set; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 if test -n "$STRIP"; then 5176 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5185 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195STRIP=$ac_cv_prog_STRIP 5196if test -n "$STRIP"; then 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5198$as_echo "$STRIP" >&6; } 5199else 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201$as_echo "no" >&6; } 5202fi 5203 5204 5205fi 5206if test -z "$ac_cv_prog_STRIP"; then 5207 ac_ct_STRIP=$STRIP 5208 # Extract the first word of "strip", so it can be a program name with args. 5209set dummy strip; ac_word=$2 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211$as_echo_n "checking for $ac_word... " >&6; } 5212if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 if test -n "$ac_ct_STRIP"; then 5216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5225 ac_cv_prog_ac_ct_STRIP="strip" 5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230 done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5236if test -n "$ac_ct_STRIP"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5238$as_echo "$ac_ct_STRIP" >&6; } 5239else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242fi 5243 5244 if test "x$ac_ct_STRIP" = x; then 5245 STRIP=":" 5246 else 5247 case $cross_compiling:$ac_tool_warned in 5248yes:) 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5251ac_tool_warned=yes ;; 5252esac 5253 STRIP=$ac_ct_STRIP 5254 fi 5255else 5256 STRIP="$ac_cv_prog_STRIP" 5257fi 5258 5259test -z "$STRIP" && STRIP=: 5260 5261 5262 5263 5264 5265 5266if test -n "$ac_tool_prefix"; then 5267 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5268set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5270$as_echo_n "checking for $ac_word... " >&6; } 5271if test "${ac_cv_prog_RANLIB+set}" = set; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 if test -n "$RANLIB"; then 5275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5284 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289 done 5290IFS=$as_save_IFS 5291 5292fi 5293fi 5294RANLIB=$ac_cv_prog_RANLIB 5295if test -n "$RANLIB"; then 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5297$as_echo "$RANLIB" >&6; } 5298else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5300$as_echo "no" >&6; } 5301fi 5302 5303 5304fi 5305if test -z "$ac_cv_prog_RANLIB"; then 5306 ac_ct_RANLIB=$RANLIB 5307 # Extract the first word of "ranlib", so it can be a program name with args. 5308set dummy ranlib; ac_word=$2 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310$as_echo_n "checking for $ac_word... " >&6; } 5311if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if test -n "$ac_ct_RANLIB"; then 5315 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5316else 5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5318for as_dir in $PATH 5319do 5320 IFS=$as_save_IFS 5321 test -z "$as_dir" && as_dir=. 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5324 ac_cv_prog_ac_ct_RANLIB="ranlib" 5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi 5333fi 5334ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5335if test -n "$ac_ct_RANLIB"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5337$as_echo "$ac_ct_RANLIB" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 5343 if test "x$ac_ct_RANLIB" = x; then 5344 RANLIB=":" 5345 else 5346 case $cross_compiling:$ac_tool_warned in 5347yes:) 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5350ac_tool_warned=yes ;; 5351esac 5352 RANLIB=$ac_ct_RANLIB 5353 fi 5354else 5355 RANLIB="$ac_cv_prog_RANLIB" 5356fi 5357 5358test -z "$RANLIB" && RANLIB=: 5359 5360 5361 5362 5363 5364 5365# Determine commands to create old-style static archives. 5366old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5367old_postinstall_cmds='chmod 644 $oldlib' 5368old_postuninstall_cmds= 5369 5370if test -n "$RANLIB"; then 5371 case $host_os in 5372 openbsd*) 5373 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5374 ;; 5375 *) 5376 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5377 ;; 5378 esac 5379 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5380fi 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415# If no C compiler was specified, use CC. 5416LTCC=${LTCC-"$CC"} 5417 5418# If no C compiler flags were specified, use CFLAGS. 5419LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5420 5421# Allow CC to be a program name with arguments. 5422compiler=$CC 5423 5424 5425# Check for command to grab the raw symbol name followed by C symbol from nm. 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5427$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5428if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 5432# These are sane defaults that work on at least a few old systems. 5433# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5434 5435# Character class describing NM global symbol codes. 5436symcode='[BCDEGRST]' 5437 5438# Regexp to match symbols that can be accessed directly from C. 5439sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5440 5441# Define system-specific variables. 5442case $host_os in 5443aix*) 5444 symcode='[BCDT]' 5445 ;; 5446cygwin* | mingw* | pw32* | cegcc*) 5447 symcode='[ABCDGISTW]' 5448 ;; 5449hpux*) 5450 if test "$host_cpu" = ia64; then 5451 symcode='[ABCDEGRST]' 5452 fi 5453 ;; 5454irix* | nonstopux*) 5455 symcode='[BCDEGRST]' 5456 ;; 5457osf*) 5458 symcode='[BCDEGQRST]' 5459 ;; 5460solaris*) 5461 symcode='[BDRT]' 5462 ;; 5463sco3.2v5*) 5464 symcode='[DT]' 5465 ;; 5466sysv4.2uw2*) 5467 symcode='[DT]' 5468 ;; 5469sysv5* | sco5v6* | unixware* | OpenUNIX*) 5470 symcode='[ABDT]' 5471 ;; 5472sysv4) 5473 symcode='[DFNSTU]' 5474 ;; 5475esac 5476 5477# If we're using GNU nm, then use its standard symbol codes. 5478case `$NM -V 2>&1` in 5479*GNU* | *'with BFD'*) 5480 symcode='[ABCDGIRSTW]' ;; 5481esac 5482 5483# Transform an extracted symbol line into a proper C declaration. 5484# Some systems (esp. on ia64) link data and code symbols differently, 5485# so use this general approach. 5486lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5487 5488# Transform an extracted symbol line into symbol name and symbol address 5489lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5490lt_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'" 5491 5492# Handle CRLF in mingw tool chain 5493opt_cr= 5494case $build_os in 5495mingw*) 5496 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5497 ;; 5498esac 5499 5500# Try without a prefix underscore, then with it. 5501for ac_symprfx in "" "_"; do 5502 5503 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5504 symxfrm="\\1 $ac_symprfx\\2 \\2" 5505 5506 # Write the raw and C identifiers. 5507 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5508 # Fake it for dumpbin and say T for any non-static function 5509 # and D for any global variable. 5510 # Also find C++ and __fastcall symbols from MSVC++, 5511 # which start with @ or ?. 5512 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5513" {last_section=section; section=\$ 3};"\ 5514" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5515" \$ 0!~/External *\|/{next};"\ 5516" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5517" {if(hide[section]) next};"\ 5518" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5519" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5520" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5521" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5522" ' prfx=^$ac_symprfx" 5523 else 5524 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5525 fi 5526 5527 # Check to see that the pipe works correctly. 5528 pipe_works=no 5529 5530 rm -f conftest* 5531 cat > conftest.$ac_ext <<_LT_EOF 5532#ifdef __cplusplus 5533extern "C" { 5534#endif 5535char nm_test_var; 5536void nm_test_func(void); 5537void nm_test_func(void){} 5538#ifdef __cplusplus 5539} 5540#endif 5541int main(){nm_test_var='a';nm_test_func();return(0);} 5542_LT_EOF 5543 5544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5545 (eval $ac_compile) 2>&5 5546 ac_status=$? 5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5548 test $ac_status = 0; }; then 5549 # Now try to grab the symbols. 5550 nlist=conftest.nm 5551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5553 ac_status=$? 5554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5555 test $ac_status = 0; } && test -s "$nlist"; then 5556 # Try sorting and uniquifying the output. 5557 if sort "$nlist" | uniq > "$nlist"T; then 5558 mv -f "$nlist"T "$nlist" 5559 else 5560 rm -f "$nlist"T 5561 fi 5562 5563 # Make sure that we snagged all the symbols we need. 5564 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5565 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5566 cat <<_LT_EOF > conftest.$ac_ext 5567#ifdef __cplusplus 5568extern "C" { 5569#endif 5570 5571_LT_EOF 5572 # Now generate the symbol file. 5573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5574 5575 cat <<_LT_EOF >> conftest.$ac_ext 5576 5577/* The mapping between symbol names and symbols. */ 5578const struct { 5579 const char *name; 5580 void *address; 5581} 5582lt__PROGRAM__LTX_preloaded_symbols[] = 5583{ 5584 { "@PROGRAM@", (void *) 0 }, 5585_LT_EOF 5586 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5587 cat <<\_LT_EOF >> conftest.$ac_ext 5588 {0, (void *) 0} 5589}; 5590 5591/* This works around a problem in FreeBSD linker */ 5592#ifdef FREEBSD_WORKAROUND 5593static const void *lt_preloaded_setup() { 5594 return lt__PROGRAM__LTX_preloaded_symbols; 5595} 5596#endif 5597 5598#ifdef __cplusplus 5599} 5600#endif 5601_LT_EOF 5602 # Now try linking the two files. 5603 mv conftest.$ac_objext conftstm.$ac_objext 5604 lt_save_LIBS="$LIBS" 5605 lt_save_CFLAGS="$CFLAGS" 5606 LIBS="conftstm.$ac_objext" 5607 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5609 (eval $ac_link) 2>&5 5610 ac_status=$? 5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5612 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5613 pipe_works=yes 5614 fi 5615 LIBS="$lt_save_LIBS" 5616 CFLAGS="$lt_save_CFLAGS" 5617 else 5618 echo "cannot find nm_test_func in $nlist" >&5 5619 fi 5620 else 5621 echo "cannot find nm_test_var in $nlist" >&5 5622 fi 5623 else 5624 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5625 fi 5626 else 5627 echo "$progname: failed program was:" >&5 5628 cat conftest.$ac_ext >&5 5629 fi 5630 rm -rf conftest* conftst* 5631 5632 # Do not use the global_symbol_pipe unless it works. 5633 if test "$pipe_works" = yes; then 5634 break 5635 else 5636 lt_cv_sys_global_symbol_pipe= 5637 fi 5638done 5639 5640fi 5641 5642if test -z "$lt_cv_sys_global_symbol_pipe"; then 5643 lt_cv_sys_global_symbol_to_cdecl= 5644fi 5645if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5647$as_echo "failed" >&6; } 5648else 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5650$as_echo "ok" >&6; } 5651fi 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675# Check whether --enable-libtool-lock was given. 5676if test "${enable_libtool_lock+set}" = set; then : 5677 enableval=$enable_libtool_lock; 5678fi 5679 5680test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5681 5682# Some flags need to be propagated to the compiler or linker for good 5683# libtool support. 5684case $host in 5685ia64-*-hpux*) 5686 # Find out which ABI we are using. 5687 echo 'int i;' > conftest.$ac_ext 5688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5689 (eval $ac_compile) 2>&5 5690 ac_status=$? 5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5692 test $ac_status = 0; }; then 5693 case `/usr/bin/file conftest.$ac_objext` in 5694 *ELF-32*) 5695 HPUX_IA64_MODE="32" 5696 ;; 5697 *ELF-64*) 5698 HPUX_IA64_MODE="64" 5699 ;; 5700 esac 5701 fi 5702 rm -rf conftest* 5703 ;; 5704*-*-irix6*) 5705 # Find out which ABI we are using. 5706 echo '#line 5706 "configure"' > conftest.$ac_ext 5707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5708 (eval $ac_compile) 2>&5 5709 ac_status=$? 5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5711 test $ac_status = 0; }; then 5712 if test "$lt_cv_prog_gnu_ld" = yes; then 5713 case `/usr/bin/file conftest.$ac_objext` in 5714 *32-bit*) 5715 LD="${LD-ld} -melf32bsmip" 5716 ;; 5717 *N32*) 5718 LD="${LD-ld} -melf32bmipn32" 5719 ;; 5720 *64-bit*) 5721 LD="${LD-ld} -melf64bmip" 5722 ;; 5723 esac 5724 else 5725 case `/usr/bin/file conftest.$ac_objext` in 5726 *32-bit*) 5727 LD="${LD-ld} -32" 5728 ;; 5729 *N32*) 5730 LD="${LD-ld} -n32" 5731 ;; 5732 *64-bit*) 5733 LD="${LD-ld} -64" 5734 ;; 5735 esac 5736 fi 5737 fi 5738 rm -rf conftest* 5739 ;; 5740 5741x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5742s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5743 # Find out which ABI we are using. 5744 echo 'int i;' > conftest.$ac_ext 5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5746 (eval $ac_compile) 2>&5 5747 ac_status=$? 5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5749 test $ac_status = 0; }; then 5750 case `/usr/bin/file conftest.o` in 5751 *32-bit*) 5752 case $host in 5753 x86_64-*kfreebsd*-gnu) 5754 LD="${LD-ld} -m elf_i386_fbsd" 5755 ;; 5756 x86_64-*linux*) 5757 LD="${LD-ld} -m elf_i386" 5758 ;; 5759 ppc64-*linux*|powerpc64-*linux*) 5760 LD="${LD-ld} -m elf32ppclinux" 5761 ;; 5762 s390x-*linux*) 5763 LD="${LD-ld} -m elf_s390" 5764 ;; 5765 sparc64-*linux*) 5766 LD="${LD-ld} -m elf32_sparc" 5767 ;; 5768 esac 5769 ;; 5770 *64-bit*) 5771 case $host in 5772 x86_64-*kfreebsd*-gnu) 5773 LD="${LD-ld} -m elf_x86_64_fbsd" 5774 ;; 5775 x86_64-*linux*) 5776 LD="${LD-ld} -m elf_x86_64" 5777 ;; 5778 ppc*-*linux*|powerpc*-*linux*) 5779 LD="${LD-ld} -m elf64ppc" 5780 ;; 5781 s390*-*linux*|s390*-*tpf*) 5782 LD="${LD-ld} -m elf64_s390" 5783 ;; 5784 sparc*-*linux*) 5785 LD="${LD-ld} -m elf64_sparc" 5786 ;; 5787 esac 5788 ;; 5789 esac 5790 fi 5791 rm -rf conftest* 5792 ;; 5793 5794*-*-sco3.2v5*) 5795 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5796 SAVE_CFLAGS="$CFLAGS" 5797 CFLAGS="$CFLAGS -belf" 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5799$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5800if test "${lt_cv_cc_needs_belf+set}" = set; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 ac_ext=c 5804ac_cpp='$CPP $CPPFLAGS' 5805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5807ac_compiler_gnu=$ac_cv_c_compiler_gnu 5808 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5810/* end confdefs.h. */ 5811 5812int 5813main () 5814{ 5815 5816 ; 5817 return 0; 5818} 5819_ACEOF 5820if ac_fn_c_try_link "$LINENO"; then : 5821 lt_cv_cc_needs_belf=yes 5822else 5823 lt_cv_cc_needs_belf=no 5824fi 5825rm -f core conftest.err conftest.$ac_objext \ 5826 conftest$ac_exeext conftest.$ac_ext 5827 ac_ext=c 5828ac_cpp='$CPP $CPPFLAGS' 5829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5831ac_compiler_gnu=$ac_cv_c_compiler_gnu 5832 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5835$as_echo "$lt_cv_cc_needs_belf" >&6; } 5836 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5837 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5838 CFLAGS="$SAVE_CFLAGS" 5839 fi 5840 ;; 5841sparc*-*solaris*) 5842 # Find out which ABI we are using. 5843 echo 'int i;' > conftest.$ac_ext 5844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5845 (eval $ac_compile) 2>&5 5846 ac_status=$? 5847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5848 test $ac_status = 0; }; then 5849 case `/usr/bin/file conftest.o` in 5850 *64-bit*) 5851 case $lt_cv_prog_gnu_ld in 5852 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5853 *) 5854 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5855 LD="${LD-ld} -64" 5856 fi 5857 ;; 5858 esac 5859 ;; 5860 esac 5861 fi 5862 rm -rf conftest* 5863 ;; 5864esac 5865 5866need_locks="$enable_libtool_lock" 5867 5868 5869 case $host_os in 5870 rhapsody* | darwin*) 5871 if test -n "$ac_tool_prefix"; then 5872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5873set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875$as_echo_n "checking for $ac_word... " >&6; } 5876if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 if test -n "$DSYMUTIL"; then 5880 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5881else 5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883for as_dir in $PATH 5884do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5889 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893done 5894 done 5895IFS=$as_save_IFS 5896 5897fi 5898fi 5899DSYMUTIL=$ac_cv_prog_DSYMUTIL 5900if test -n "$DSYMUTIL"; then 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5902$as_echo "$DSYMUTIL" >&6; } 5903else 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5905$as_echo "no" >&6; } 5906fi 5907 5908 5909fi 5910if test -z "$ac_cv_prog_DSYMUTIL"; then 5911 ac_ct_DSYMUTIL=$DSYMUTIL 5912 # Extract the first word of "dsymutil", so it can be a program name with args. 5913set dummy dsymutil; ac_word=$2 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5915$as_echo_n "checking for $ac_word... " >&6; } 5916if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 5917 $as_echo_n "(cached) " >&6 5918else 5919 if test -n "$ac_ct_DSYMUTIL"; then 5920 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5921else 5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5923for as_dir in $PATH 5924do 5925 IFS=$as_save_IFS 5926 test -z "$as_dir" && as_dir=. 5927 for ac_exec_ext in '' $ac_executable_extensions; do 5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5929 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5931 break 2 5932 fi 5933done 5934 done 5935IFS=$as_save_IFS 5936 5937fi 5938fi 5939ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5940if test -n "$ac_ct_DSYMUTIL"; then 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5942$as_echo "$ac_ct_DSYMUTIL" >&6; } 5943else 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945$as_echo "no" >&6; } 5946fi 5947 5948 if test "x$ac_ct_DSYMUTIL" = x; then 5949 DSYMUTIL=":" 5950 else 5951 case $cross_compiling:$ac_tool_warned in 5952yes:) 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5955ac_tool_warned=yes ;; 5956esac 5957 DSYMUTIL=$ac_ct_DSYMUTIL 5958 fi 5959else 5960 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5961fi 5962 5963 if test -n "$ac_tool_prefix"; then 5964 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5965set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967$as_echo_n "checking for $ac_word... " >&6; } 5968if test "${ac_cv_prog_NMEDIT+set}" = set; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 if test -n "$NMEDIT"; then 5972 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5973else 5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5981 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989fi 5990fi 5991NMEDIT=$ac_cv_prog_NMEDIT 5992if test -n "$NMEDIT"; then 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5994$as_echo "$NMEDIT" >&6; } 5995else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997$as_echo "no" >&6; } 5998fi 5999 6000 6001fi 6002if test -z "$ac_cv_prog_NMEDIT"; then 6003 ac_ct_NMEDIT=$NMEDIT 6004 # Extract the first word of "nmedit", so it can be a program name with args. 6005set dummy nmedit; ac_word=$2 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007$as_echo_n "checking for $ac_word... " >&6; } 6008if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 if test -n "$ac_ct_NMEDIT"; then 6012 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6013else 6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6015for as_dir in $PATH 6016do 6017 IFS=$as_save_IFS 6018 test -z "$as_dir" && as_dir=. 6019 for ac_exec_ext in '' $ac_executable_extensions; do 6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6021 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6023 break 2 6024 fi 6025done 6026 done 6027IFS=$as_save_IFS 6028 6029fi 6030fi 6031ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6032if test -n "$ac_ct_NMEDIT"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6034$as_echo "$ac_ct_NMEDIT" >&6; } 6035else 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6037$as_echo "no" >&6; } 6038fi 6039 6040 if test "x$ac_ct_NMEDIT" = x; then 6041 NMEDIT=":" 6042 else 6043 case $cross_compiling:$ac_tool_warned in 6044yes:) 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6047ac_tool_warned=yes ;; 6048esac 6049 NMEDIT=$ac_ct_NMEDIT 6050 fi 6051else 6052 NMEDIT="$ac_cv_prog_NMEDIT" 6053fi 6054 6055 if test -n "$ac_tool_prefix"; then 6056 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6057set dummy ${ac_tool_prefix}lipo; ac_word=$2 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6059$as_echo_n "checking for $ac_word... " >&6; } 6060if test "${ac_cv_prog_LIPO+set}" = set; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 if test -n "$LIPO"; then 6064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6065else 6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6067for as_dir in $PATH 6068do 6069 IFS=$as_save_IFS 6070 test -z "$as_dir" && as_dir=. 6071 for ac_exec_ext in '' $ac_executable_extensions; do 6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6073 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6075 break 2 6076 fi 6077done 6078 done 6079IFS=$as_save_IFS 6080 6081fi 6082fi 6083LIPO=$ac_cv_prog_LIPO 6084if test -n "$LIPO"; then 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6086$as_echo "$LIPO" >&6; } 6087else 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6089$as_echo "no" >&6; } 6090fi 6091 6092 6093fi 6094if test -z "$ac_cv_prog_LIPO"; then 6095 ac_ct_LIPO=$LIPO 6096 # Extract the first word of "lipo", so it can be a program name with args. 6097set dummy lipo; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if test -n "$ac_ct_LIPO"; then 6104 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6113 ac_cv_prog_ac_ct_LIPO="lipo" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6124if test -n "$ac_ct_LIPO"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6126$as_echo "$ac_ct_LIPO" >&6; } 6127else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129$as_echo "no" >&6; } 6130fi 6131 6132 if test "x$ac_ct_LIPO" = x; then 6133 LIPO=":" 6134 else 6135 case $cross_compiling:$ac_tool_warned in 6136yes:) 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6139ac_tool_warned=yes ;; 6140esac 6141 LIPO=$ac_ct_LIPO 6142 fi 6143else 6144 LIPO="$ac_cv_prog_LIPO" 6145fi 6146 6147 if test -n "$ac_tool_prefix"; then 6148 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6149set dummy ${ac_tool_prefix}otool; ac_word=$2 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6151$as_echo_n "checking for $ac_word... " >&6; } 6152if test "${ac_cv_prog_OTOOL+set}" = set; then : 6153 $as_echo_n "(cached) " >&6 6154else 6155 if test -n "$OTOOL"; then 6156 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6157else 6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159for as_dir in $PATH 6160do 6161 IFS=$as_save_IFS 6162 test -z "$as_dir" && as_dir=. 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6165 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169done 6170 done 6171IFS=$as_save_IFS 6172 6173fi 6174fi 6175OTOOL=$ac_cv_prog_OTOOL 6176if test -n "$OTOOL"; then 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6178$as_echo "$OTOOL" >&6; } 6179else 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6181$as_echo "no" >&6; } 6182fi 6183 6184 6185fi 6186if test -z "$ac_cv_prog_OTOOL"; then 6187 ac_ct_OTOOL=$OTOOL 6188 # Extract the first word of "otool", so it can be a program name with args. 6189set dummy otool; ac_word=$2 6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6191$as_echo_n "checking for $ac_word... " >&6; } 6192if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6193 $as_echo_n "(cached) " >&6 6194else 6195 if test -n "$ac_ct_OTOOL"; then 6196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6197else 6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199for as_dir in $PATH 6200do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6205 ac_cv_prog_ac_ct_OTOOL="otool" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209done 6210 done 6211IFS=$as_save_IFS 6212 6213fi 6214fi 6215ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6216if test -n "$ac_ct_OTOOL"; then 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6218$as_echo "$ac_ct_OTOOL" >&6; } 6219else 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6221$as_echo "no" >&6; } 6222fi 6223 6224 if test "x$ac_ct_OTOOL" = x; then 6225 OTOOL=":" 6226 else 6227 case $cross_compiling:$ac_tool_warned in 6228yes:) 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6231ac_tool_warned=yes ;; 6232esac 6233 OTOOL=$ac_ct_OTOOL 6234 fi 6235else 6236 OTOOL="$ac_cv_prog_OTOOL" 6237fi 6238 6239 if test -n "$ac_tool_prefix"; then 6240 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6241set dummy ${ac_tool_prefix}otool64; ac_word=$2 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$OTOOL64"; then 6248 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6257 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267OTOOL64=$ac_cv_prog_OTOOL64 6268if test -n "$OTOOL64"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6270$as_echo "$OTOOL64" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 6277fi 6278if test -z "$ac_cv_prog_OTOOL64"; then 6279 ac_ct_OTOOL64=$OTOOL64 6280 # Extract the first word of "otool64", so it can be a program name with args. 6281set dummy otool64; ac_word=$2 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6283$as_echo_n "checking for $ac_word... " >&6; } 6284if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 if test -n "$ac_ct_OTOOL64"; then 6288 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6289else 6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6297 ac_cv_prog_ac_ct_OTOOL64="otool64" 6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302 done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6308if test -n "$ac_ct_OTOOL64"; then 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6310$as_echo "$ac_ct_OTOOL64" >&6; } 6311else 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6313$as_echo "no" >&6; } 6314fi 6315 6316 if test "x$ac_ct_OTOOL64" = x; then 6317 OTOOL64=":" 6318 else 6319 case $cross_compiling:$ac_tool_warned in 6320yes:) 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6323ac_tool_warned=yes ;; 6324esac 6325 OTOOL64=$ac_ct_OTOOL64 6326 fi 6327else 6328 OTOOL64="$ac_cv_prog_OTOOL64" 6329fi 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6358$as_echo_n "checking for -single_module linker flag... " >&6; } 6359if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 lt_cv_apple_cc_single_mod=no 6363 if test -z "${LT_MULTI_MODULE}"; then 6364 # By default we will add the -single_module flag. You can override 6365 # by either setting the environment variable LT_MULTI_MODULE 6366 # non-empty at configure time, or by adding -multi_module to the 6367 # link flags. 6368 rm -rf libconftest.dylib* 6369 echo "int foo(void){return 1;}" > conftest.c 6370 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6371-dynamiclib -Wl,-single_module conftest.c" >&5 6372 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6373 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6374 _lt_result=$? 6375 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6376 lt_cv_apple_cc_single_mod=yes 6377 else 6378 cat conftest.err >&5 6379 fi 6380 rm -rf libconftest.dylib* 6381 rm -f conftest.* 6382 fi 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6385$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6387$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6388if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 lt_cv_ld_exported_symbols_list=no 6392 save_LDFLAGS=$LDFLAGS 6393 echo "_main" > conftest.sym 6394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396/* end confdefs.h. */ 6397 6398int 6399main () 6400{ 6401 6402 ; 6403 return 0; 6404} 6405_ACEOF 6406if ac_fn_c_try_link "$LINENO"; then : 6407 lt_cv_ld_exported_symbols_list=yes 6408else 6409 lt_cv_ld_exported_symbols_list=no 6410fi 6411rm -f core conftest.err conftest.$ac_objext \ 6412 conftest$ac_exeext conftest.$ac_ext 6413 LDFLAGS="$save_LDFLAGS" 6414 6415fi 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6418 case $host_os in 6419 rhapsody* | darwin1.[012]) 6420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6421 darwin1.*) 6422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6423 darwin*) # darwin 5.x on 6424 # if running on 10.5 or later, the deployment target defaults 6425 # to the OS version, if on x86, and 10.4, the deployment 6426 # target defaults to 10.4. Don't you love it? 6427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6428 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6430 10.[012]*) 6431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6432 10.*) 6433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6434 esac 6435 ;; 6436 esac 6437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6438 _lt_dar_single_mod='$single_module' 6439 fi 6440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6442 else 6443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6444 fi 6445 if test "$DSYMUTIL" != ":"; then 6446 _lt_dsymutil='~$DSYMUTIL $lib || :' 6447 else 6448 _lt_dsymutil= 6449 fi 6450 ;; 6451 esac 6452 6453ac_ext=c 6454ac_cpp='$CPP $CPPFLAGS' 6455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6457ac_compiler_gnu=$ac_cv_c_compiler_gnu 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6459$as_echo_n "checking how to run the C preprocessor... " >&6; } 6460# On Suns, sometimes $CPP names a directory. 6461if test -n "$CPP" && test -d "$CPP"; then 6462 CPP= 6463fi 6464if test -z "$CPP"; then 6465 if test "${ac_cv_prog_CPP+set}" = set; then : 6466 $as_echo_n "(cached) " >&6 6467else 6468 # Double quotes because CPP needs to be expanded 6469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6470 do 6471 ac_preproc_ok=false 6472for ac_c_preproc_warn_flag in '' yes 6473do 6474 # Use a header file that comes with gcc, so configuring glibc 6475 # with a fresh cross-compiler works. 6476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6477 # <limits.h> exists even on freestanding compilers. 6478 # On the NeXT, cc -E runs the code through the compiler's parser, 6479 # not just through cpp. "Syntax error" is here to catch this case. 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482#ifdef __STDC__ 6483# include <limits.h> 6484#else 6485# include <assert.h> 6486#endif 6487 Syntax error 6488_ACEOF 6489if ac_fn_c_try_cpp "$LINENO"; then : 6490 6491else 6492 # Broken: fails on valid input. 6493continue 6494fi 6495rm -f conftest.err conftest.$ac_ext 6496 6497 # OK, works on sane cases. Now check whether nonexistent headers 6498 # can be detected and how. 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500/* end confdefs.h. */ 6501#include <ac_nonexistent.h> 6502_ACEOF 6503if ac_fn_c_try_cpp "$LINENO"; then : 6504 # Broken: success on invalid input. 6505continue 6506else 6507 # Passes both tests. 6508ac_preproc_ok=: 6509break 6510fi 6511rm -f conftest.err conftest.$ac_ext 6512 6513done 6514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6515rm -f conftest.err conftest.$ac_ext 6516if $ac_preproc_ok; then : 6517 break 6518fi 6519 6520 done 6521 ac_cv_prog_CPP=$CPP 6522 6523fi 6524 CPP=$ac_cv_prog_CPP 6525else 6526 ac_cv_prog_CPP=$CPP 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6529$as_echo "$CPP" >&6; } 6530ac_preproc_ok=false 6531for ac_c_preproc_warn_flag in '' yes 6532do 6533 # Use a header file that comes with gcc, so configuring glibc 6534 # with a fresh cross-compiler works. 6535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6536 # <limits.h> exists even on freestanding compilers. 6537 # On the NeXT, cc -E runs the code through the compiler's parser, 6538 # not just through cpp. "Syntax error" is here to catch this case. 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540/* end confdefs.h. */ 6541#ifdef __STDC__ 6542# include <limits.h> 6543#else 6544# include <assert.h> 6545#endif 6546 Syntax error 6547_ACEOF 6548if ac_fn_c_try_cpp "$LINENO"; then : 6549 6550else 6551 # Broken: fails on valid input. 6552continue 6553fi 6554rm -f conftest.err conftest.$ac_ext 6555 6556 # OK, works on sane cases. Now check whether nonexistent headers 6557 # can be detected and how. 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560#include <ac_nonexistent.h> 6561_ACEOF 6562if ac_fn_c_try_cpp "$LINENO"; then : 6563 # Broken: success on invalid input. 6564continue 6565else 6566 # Passes both tests. 6567ac_preproc_ok=: 6568break 6569fi 6570rm -f conftest.err conftest.$ac_ext 6571 6572done 6573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6574rm -f conftest.err conftest.$ac_ext 6575if $ac_preproc_ok; then : 6576 6577else 6578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6580as_fn_error "C preprocessor \"$CPP\" fails sanity check 6581See \`config.log' for more details." "$LINENO" 5; } 6582fi 6583 6584ac_ext=c 6585ac_cpp='$CPP $CPPFLAGS' 6586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6588ac_compiler_gnu=$ac_cv_c_compiler_gnu 6589 6590 6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6592$as_echo_n "checking for ANSI C header files... " >&6; } 6593if test "${ac_cv_header_stdc+set}" = set; then : 6594 $as_echo_n "(cached) " >&6 6595else 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598#include <stdlib.h> 6599#include <stdarg.h> 6600#include <string.h> 6601#include <float.h> 6602 6603int 6604main () 6605{ 6606 6607 ; 6608 return 0; 6609} 6610_ACEOF 6611if ac_fn_c_try_compile "$LINENO"; then : 6612 ac_cv_header_stdc=yes 6613else 6614 ac_cv_header_stdc=no 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617 6618if test $ac_cv_header_stdc = yes; then 6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621/* end confdefs.h. */ 6622#include <string.h> 6623 6624_ACEOF 6625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6626 $EGREP "memchr" >/dev/null 2>&1; then : 6627 6628else 6629 ac_cv_header_stdc=no 6630fi 6631rm -f conftest* 6632 6633fi 6634 6635if test $ac_cv_header_stdc = yes; then 6636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639#include <stdlib.h> 6640 6641_ACEOF 6642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6643 $EGREP "free" >/dev/null 2>&1; then : 6644 6645else 6646 ac_cv_header_stdc=no 6647fi 6648rm -f conftest* 6649 6650fi 6651 6652if test $ac_cv_header_stdc = yes; then 6653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6654 if test "$cross_compiling" = yes; then : 6655 : 6656else 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658/* end confdefs.h. */ 6659#include <ctype.h> 6660#include <stdlib.h> 6661#if ((' ' & 0x0FF) == 0x020) 6662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6664#else 6665# define ISLOWER(c) \ 6666 (('a' <= (c) && (c) <= 'i') \ 6667 || ('j' <= (c) && (c) <= 'r') \ 6668 || ('s' <= (c) && (c) <= 'z')) 6669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6670#endif 6671 6672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6673int 6674main () 6675{ 6676 int i; 6677 for (i = 0; i < 256; i++) 6678 if (XOR (islower (i), ISLOWER (i)) 6679 || toupper (i) != TOUPPER (i)) 6680 return 2; 6681 return 0; 6682} 6683_ACEOF 6684if ac_fn_c_try_run "$LINENO"; then : 6685 6686else 6687 ac_cv_header_stdc=no 6688fi 6689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6690 conftest.$ac_objext conftest.beam conftest.$ac_ext 6691fi 6692 6693fi 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6696$as_echo "$ac_cv_header_stdc" >&6; } 6697if test $ac_cv_header_stdc = yes; then 6698 6699$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6700 6701fi 6702 6703# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6705 inttypes.h stdint.h unistd.h 6706do : 6707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6708ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6709" 6710eval as_val=\$$as_ac_Header 6711 if test "x$as_val" = x""yes; then : 6712 cat >>confdefs.h <<_ACEOF 6713#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6714_ACEOF 6715 6716fi 6717 6718done 6719 6720 6721for ac_header in dlfcn.h 6722do : 6723 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6724" 6725if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6726 cat >>confdefs.h <<_ACEOF 6727#define HAVE_DLFCN_H 1 6728_ACEOF 6729 6730fi 6731 6732done 6733 6734 6735 6736# Set options 6737 6738 6739 6740 enable_dlopen=no 6741 6742 6743 enable_win32_dll=no 6744 6745 6746 # Check whether --enable-shared was given. 6747if test "${enable_shared+set}" = set; then : 6748 enableval=$enable_shared; p=${PACKAGE-default} 6749 case $enableval in 6750 yes) enable_shared=yes ;; 6751 no) enable_shared=no ;; 6752 *) 6753 enable_shared=no 6754 # Look at the argument we got. We use all the common list separators. 6755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6756 for pkg in $enableval; do 6757 IFS="$lt_save_ifs" 6758 if test "X$pkg" = "X$p"; then 6759 enable_shared=yes 6760 fi 6761 done 6762 IFS="$lt_save_ifs" 6763 ;; 6764 esac 6765else 6766 enable_shared=yes 6767fi 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 # Check whether --enable-static was given. 6778if test "${enable_static+set}" = set; then : 6779 enableval=$enable_static; p=${PACKAGE-default} 6780 case $enableval in 6781 yes) enable_static=yes ;; 6782 no) enable_static=no ;; 6783 *) 6784 enable_static=no 6785 # Look at the argument we got. We use all the common list separators. 6786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6787 for pkg in $enableval; do 6788 IFS="$lt_save_ifs" 6789 if test "X$pkg" = "X$p"; then 6790 enable_static=yes 6791 fi 6792 done 6793 IFS="$lt_save_ifs" 6794 ;; 6795 esac 6796else 6797 enable_static=yes 6798fi 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809# Check whether --with-pic was given. 6810if test "${with_pic+set}" = set; then : 6811 withval=$with_pic; pic_mode="$withval" 6812else 6813 pic_mode=default 6814fi 6815 6816 6817test -z "$pic_mode" && pic_mode=default 6818 6819 6820 6821 6822 6823 6824 6825 # Check whether --enable-fast-install was given. 6826if test "${enable_fast_install+set}" = set; then : 6827 enableval=$enable_fast_install; p=${PACKAGE-default} 6828 case $enableval in 6829 yes) enable_fast_install=yes ;; 6830 no) enable_fast_install=no ;; 6831 *) 6832 enable_fast_install=no 6833 # Look at the argument we got. We use all the common list separators. 6834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6835 for pkg in $enableval; do 6836 IFS="$lt_save_ifs" 6837 if test "X$pkg" = "X$p"; then 6838 enable_fast_install=yes 6839 fi 6840 done 6841 IFS="$lt_save_ifs" 6842 ;; 6843 esac 6844else 6845 enable_fast_install=yes 6846fi 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858# This can be used to rebuild libtool when needed 6859LIBTOOL_DEPS="$ltmain" 6860 6861# Always use our own libtool. 6862LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888test -z "$LN_S" && LN_S="ln -s" 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903if test -n "${ZSH_VERSION+set}" ; then 6904 setopt NO_GLOB_SUBST 6905fi 6906 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6908$as_echo_n "checking for objdir... " >&6; } 6909if test "${lt_cv_objdir+set}" = set; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 rm -f .libs 2>/dev/null 6913mkdir .libs 2>/dev/null 6914if test -d .libs; then 6915 lt_cv_objdir=.libs 6916else 6917 # MS-DOS does not allow filenames that begin with a dot. 6918 lt_cv_objdir=_libs 6919fi 6920rmdir .libs 2>/dev/null 6921fi 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6923$as_echo "$lt_cv_objdir" >&6; } 6924objdir=$lt_cv_objdir 6925 6926 6927 6928 6929 6930cat >>confdefs.h <<_ACEOF 6931#define LT_OBJDIR "$lt_cv_objdir/" 6932_ACEOF 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950case $host_os in 6951aix3*) 6952 # AIX sometimes has problems with the GCC collect2 program. For some 6953 # reason, if we set the COLLECT_NAMES environment variable, the problems 6954 # vanish in a puff of smoke. 6955 if test "X${COLLECT_NAMES+set}" != Xset; then 6956 COLLECT_NAMES= 6957 export COLLECT_NAMES 6958 fi 6959 ;; 6960esac 6961 6962# Sed substitution that helps us do robust quoting. It backslashifies 6963# metacharacters that are still active within double-quoted strings. 6964sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6965 6966# Same as above, but do not quote variable references. 6967double_quote_subst='s/\(["`\\]\)/\\\1/g' 6968 6969# Sed substitution to delay expansion of an escaped shell variable in a 6970# double_quote_subst'ed string. 6971delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6972 6973# Sed substitution to delay expansion of an escaped single quote. 6974delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6975 6976# Sed substitution to avoid accidental globbing in evaled expressions 6977no_glob_subst='s/\*/\\\*/g' 6978 6979# Global variables: 6980ofile=libtool 6981can_build_shared=yes 6982 6983# All known linkers require a `.a' archive for static linking (except MSVC, 6984# which needs '.lib'). 6985libext=a 6986 6987with_gnu_ld="$lt_cv_prog_gnu_ld" 6988 6989old_CC="$CC" 6990old_CFLAGS="$CFLAGS" 6991 6992# Set sane defaults for various variables 6993test -z "$CC" && CC=cc 6994test -z "$LTCC" && LTCC=$CC 6995test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6996test -z "$LD" && LD=ld 6997test -z "$ac_objext" && ac_objext=o 6998 6999for cc_temp in $compiler""; do 7000 case $cc_temp in 7001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7003 \-*) ;; 7004 *) break;; 7005 esac 7006done 7007cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7008 7009 7010# Only perform the check for file, if the check method requires it 7011test -z "$MAGIC_CMD" && MAGIC_CMD=file 7012case $deplibs_check_method in 7013file_magic*) 7014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7016$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7017if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 case $MAGIC_CMD in 7021[\\/*] | ?:[\\/]*) 7022 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7023 ;; 7024*) 7025 lt_save_MAGIC_CMD="$MAGIC_CMD" 7026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7028 for ac_dir in $ac_dummy; do 7029 IFS="$lt_save_ifs" 7030 test -z "$ac_dir" && ac_dir=. 7031 if test -f $ac_dir/${ac_tool_prefix}file; then 7032 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7033 if test -n "$file_magic_test_file"; then 7034 case $deplibs_check_method in 7035 "file_magic "*) 7036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7039 $EGREP "$file_magic_regex" > /dev/null; then 7040 : 7041 else 7042 cat <<_LT_EOF 1>&2 7043 7044*** Warning: the command libtool uses to detect shared libraries, 7045*** $file_magic_cmd, produces output that libtool cannot recognize. 7046*** The result is that libtool may fail to recognize shared libraries 7047*** as such. This will affect the creation of libtool libraries that 7048*** depend on shared libraries, but programs linked with such libtool 7049*** libraries will work regardless of this problem. Nevertheless, you 7050*** may want to report the problem to your system manager and/or to 7051*** bug-libtool@gnu.org 7052 7053_LT_EOF 7054 fi ;; 7055 esac 7056 fi 7057 break 7058 fi 7059 done 7060 IFS="$lt_save_ifs" 7061 MAGIC_CMD="$lt_save_MAGIC_CMD" 7062 ;; 7063esac 7064fi 7065 7066MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7067if test -n "$MAGIC_CMD"; then 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7069$as_echo "$MAGIC_CMD" >&6; } 7070else 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7072$as_echo "no" >&6; } 7073fi 7074 7075 7076 7077 7078 7079if test -z "$lt_cv_path_MAGIC_CMD"; then 7080 if test -n "$ac_tool_prefix"; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7082$as_echo_n "checking for file... " >&6; } 7083if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 case $MAGIC_CMD in 7087[\\/*] | ?:[\\/]*) 7088 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7089 ;; 7090*) 7091 lt_save_MAGIC_CMD="$MAGIC_CMD" 7092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7094 for ac_dir in $ac_dummy; do 7095 IFS="$lt_save_ifs" 7096 test -z "$ac_dir" && ac_dir=. 7097 if test -f $ac_dir/file; then 7098 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7099 if test -n "$file_magic_test_file"; then 7100 case $deplibs_check_method in 7101 "file_magic "*) 7102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7103 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7105 $EGREP "$file_magic_regex" > /dev/null; then 7106 : 7107 else 7108 cat <<_LT_EOF 1>&2 7109 7110*** Warning: the command libtool uses to detect shared libraries, 7111*** $file_magic_cmd, produces output that libtool cannot recognize. 7112*** The result is that libtool may fail to recognize shared libraries 7113*** as such. This will affect the creation of libtool libraries that 7114*** depend on shared libraries, but programs linked with such libtool 7115*** libraries will work regardless of this problem. Nevertheless, you 7116*** may want to report the problem to your system manager and/or to 7117*** bug-libtool@gnu.org 7118 7119_LT_EOF 7120 fi ;; 7121 esac 7122 fi 7123 break 7124 fi 7125 done 7126 IFS="$lt_save_ifs" 7127 MAGIC_CMD="$lt_save_MAGIC_CMD" 7128 ;; 7129esac 7130fi 7131 7132MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7133if test -n "$MAGIC_CMD"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7135$as_echo "$MAGIC_CMD" >&6; } 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139fi 7140 7141 7142 else 7143 MAGIC_CMD=: 7144 fi 7145fi 7146 7147 fi 7148 ;; 7149esac 7150 7151# Use C for the default configuration in the libtool script 7152 7153lt_save_CC="$CC" 7154ac_ext=c 7155ac_cpp='$CPP $CPPFLAGS' 7156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7158ac_compiler_gnu=$ac_cv_c_compiler_gnu 7159 7160 7161# Source file extension for C test sources. 7162ac_ext=c 7163 7164# Object file extension for compiled C test sources. 7165objext=o 7166objext=$objext 7167 7168# Code to be used in simple compile tests 7169lt_simple_compile_test_code="int some_variable = 0;" 7170 7171# Code to be used in simple link tests 7172lt_simple_link_test_code='int main(){return(0);}' 7173 7174 7175 7176 7177 7178 7179 7180# If no C compiler was specified, use CC. 7181LTCC=${LTCC-"$CC"} 7182 7183# If no C compiler flags were specified, use CFLAGS. 7184LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7185 7186# Allow CC to be a program name with arguments. 7187compiler=$CC 7188 7189# Save the default compiler, since it gets overwritten when the other 7190# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7191compiler_DEFAULT=$CC 7192 7193# save warnings/boilerplate of simple test code 7194ac_outfile=conftest.$ac_objext 7195echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7197_lt_compiler_boilerplate=`cat conftest.err` 7198$RM conftest* 7199 7200ac_outfile=conftest.$ac_objext 7201echo "$lt_simple_link_test_code" >conftest.$ac_ext 7202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7203_lt_linker_boilerplate=`cat conftest.err` 7204$RM -r conftest* 7205 7206 7207if test -n "$compiler"; then 7208 7209lt_prog_compiler_no_builtin_flag= 7210 7211if test "$GCC" = yes; then 7212 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7213 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7215$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7216if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 lt_cv_prog_compiler_rtti_exceptions=no 7220 ac_outfile=conftest.$ac_objext 7221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7222 lt_compiler_flag="-fno-rtti -fno-exceptions" 7223 # Insert the option either (1) after the last *FLAGS variable, or 7224 # (2) before a word containing "conftest.", or (3) at the end. 7225 # Note that $ac_compile itself does not contain backslashes and begins 7226 # with a dollar sign (not a hyphen), so the echo should work correctly. 7227 # The option is referenced via a variable to avoid confusing sed. 7228 lt_compile=`echo "$ac_compile" | $SED \ 7229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7231 -e 's:$: $lt_compiler_flag:'` 7232 (eval echo "\"\$as_me:7232: $lt_compile\"" >&5) 7233 (eval "$lt_compile" 2>conftest.err) 7234 ac_status=$? 7235 cat conftest.err >&5 7236 echo "$as_me:7236: \$? = $ac_status" >&5 7237 if (exit $ac_status) && test -s "$ac_outfile"; then 7238 # The compiler can only warn and ignore the option if not recognized 7239 # So say no if there are warnings other than the usual output. 7240 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7243 lt_cv_prog_compiler_rtti_exceptions=yes 7244 fi 7245 fi 7246 $RM conftest* 7247 7248fi 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7250$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7251 7252if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7253 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7254else 7255 : 7256fi 7257 7258fi 7259 7260 7261 7262 7263 7264 7265 lt_prog_compiler_wl= 7266lt_prog_compiler_pic= 7267lt_prog_compiler_static= 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7270$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7271 7272 if test "$GCC" = yes; then 7273 lt_prog_compiler_wl='-Wl,' 7274 lt_prog_compiler_static='-static' 7275 7276 case $host_os in 7277 aix*) 7278 # All AIX code is PIC. 7279 if test "$host_cpu" = ia64; then 7280 # AIX 5 now supports IA64 processor 7281 lt_prog_compiler_static='-Bstatic' 7282 fi 7283 ;; 7284 7285 amigaos*) 7286 case $host_cpu in 7287 powerpc) 7288 # see comment about AmigaOS4 .so support 7289 lt_prog_compiler_pic='-fPIC' 7290 ;; 7291 m68k) 7292 # FIXME: we need at least 68020 code to build shared libraries, but 7293 # adding the `-m68020' flag to GCC prevents building anything better, 7294 # like `-m68040'. 7295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7296 ;; 7297 esac 7298 ;; 7299 7300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7301 # PIC is the default for these OSes. 7302 ;; 7303 7304 mingw* | cygwin* | pw32* | os2* | cegcc*) 7305 # This hack is so that the source file can tell whether it is being 7306 # built for inclusion in a dll (and should export symbols for example). 7307 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7308 # (--disable-auto-import) libraries 7309 lt_prog_compiler_pic='-DDLL_EXPORT' 7310 ;; 7311 7312 darwin* | rhapsody*) 7313 # PIC is the default on this platform 7314 # Common symbols not allowed in MH_DYLIB files 7315 lt_prog_compiler_pic='-fno-common' 7316 ;; 7317 7318 hpux*) 7319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7321 # sets the default TLS model and affects inlining. 7322 case $host_cpu in 7323 hppa*64*) 7324 # +Z the default 7325 ;; 7326 *) 7327 lt_prog_compiler_pic='-fPIC' 7328 ;; 7329 esac 7330 ;; 7331 7332 interix[3-9]*) 7333 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7334 # Instead, we relocate shared libraries at runtime. 7335 ;; 7336 7337 msdosdjgpp*) 7338 # Just because we use GCC doesn't mean we suddenly get shared libraries 7339 # on systems that don't support them. 7340 lt_prog_compiler_can_build_shared=no 7341 enable_shared=no 7342 ;; 7343 7344 *nto* | *qnx*) 7345 # QNX uses GNU C++, but need to define -shared option too, otherwise 7346 # it will coredump. 7347 lt_prog_compiler_pic='-fPIC -shared' 7348 ;; 7349 7350 sysv4*MP*) 7351 if test -d /usr/nec; then 7352 lt_prog_compiler_pic=-Kconform_pic 7353 fi 7354 ;; 7355 7356 *) 7357 lt_prog_compiler_pic='-fPIC' 7358 ;; 7359 esac 7360 else 7361 # PORTME Check for flag to pass linker flags through the system compiler. 7362 case $host_os in 7363 aix*) 7364 lt_prog_compiler_wl='-Wl,' 7365 if test "$host_cpu" = ia64; then 7366 # AIX 5 now supports IA64 processor 7367 lt_prog_compiler_static='-Bstatic' 7368 else 7369 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7370 fi 7371 ;; 7372 7373 mingw* | cygwin* | pw32* | os2* | cegcc*) 7374 # This hack is so that the source file can tell whether it is being 7375 # built for inclusion in a dll (and should export symbols for example). 7376 lt_prog_compiler_pic='-DDLL_EXPORT' 7377 ;; 7378 7379 hpux9* | hpux10* | hpux11*) 7380 lt_prog_compiler_wl='-Wl,' 7381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7382 # not for PA HP-UX. 7383 case $host_cpu in 7384 hppa*64*|ia64*) 7385 # +Z the default 7386 ;; 7387 *) 7388 lt_prog_compiler_pic='+Z' 7389 ;; 7390 esac 7391 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7392 lt_prog_compiler_static='${wl}-a ${wl}archive' 7393 ;; 7394 7395 irix5* | irix6* | nonstopux*) 7396 lt_prog_compiler_wl='-Wl,' 7397 # PIC (with -KPIC) is the default. 7398 lt_prog_compiler_static='-non_shared' 7399 ;; 7400 7401 linux* | k*bsd*-gnu) 7402 case $cc_basename in 7403 # old Intel for x86_64 which still supported -KPIC. 7404 ecc*) 7405 lt_prog_compiler_wl='-Wl,' 7406 lt_prog_compiler_pic='-KPIC' 7407 lt_prog_compiler_static='-static' 7408 ;; 7409 # icc used to be incompatible with GCC. 7410 # ICC 10 doesn't accept -KPIC any more. 7411 icc* | ifort*) 7412 lt_prog_compiler_wl='-Wl,' 7413 lt_prog_compiler_pic='-fPIC' 7414 lt_prog_compiler_static='-static' 7415 ;; 7416 # Lahey Fortran 8.1. 7417 lf95*) 7418 lt_prog_compiler_wl='-Wl,' 7419 lt_prog_compiler_pic='--shared' 7420 lt_prog_compiler_static='--static' 7421 ;; 7422 pgcc* | pgf77* | pgf90* | pgf95*) 7423 # Portland Group compilers (*not* the Pentium gcc compiler, 7424 # which looks to be a dead project) 7425 lt_prog_compiler_wl='-Wl,' 7426 lt_prog_compiler_pic='-fpic' 7427 lt_prog_compiler_static='-Bstatic' 7428 ;; 7429 ccc*) 7430 lt_prog_compiler_wl='-Wl,' 7431 # All Alpha code is PIC. 7432 lt_prog_compiler_static='-non_shared' 7433 ;; 7434 xl*) 7435 # IBM XL C 8.0/Fortran 10.1 on PPC 7436 lt_prog_compiler_wl='-Wl,' 7437 lt_prog_compiler_pic='-qpic' 7438 lt_prog_compiler_static='-qstaticlink' 7439 ;; 7440 *) 7441 case `$CC -V 2>&1 | sed 5q` in 7442 *Sun\ C*) 7443 # Sun C 5.9 7444 lt_prog_compiler_pic='-KPIC' 7445 lt_prog_compiler_static='-Bstatic' 7446 lt_prog_compiler_wl='-Wl,' 7447 ;; 7448 *Sun\ F*) 7449 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7450 lt_prog_compiler_pic='-KPIC' 7451 lt_prog_compiler_static='-Bstatic' 7452 lt_prog_compiler_wl='' 7453 ;; 7454 esac 7455 ;; 7456 esac 7457 ;; 7458 7459 newsos6) 7460 lt_prog_compiler_pic='-KPIC' 7461 lt_prog_compiler_static='-Bstatic' 7462 ;; 7463 7464 *nto* | *qnx*) 7465 # QNX uses GNU C++, but need to define -shared option too, otherwise 7466 # it will coredump. 7467 lt_prog_compiler_pic='-fPIC -shared' 7468 ;; 7469 7470 osf3* | osf4* | osf5*) 7471 lt_prog_compiler_wl='-Wl,' 7472 # All OSF/1 code is PIC. 7473 lt_prog_compiler_static='-non_shared' 7474 ;; 7475 7476 rdos*) 7477 lt_prog_compiler_static='-non_shared' 7478 ;; 7479 7480 solaris*) 7481 lt_prog_compiler_pic='-KPIC' 7482 lt_prog_compiler_static='-Bstatic' 7483 case $cc_basename in 7484 f77* | f90* | f95*) 7485 lt_prog_compiler_wl='-Qoption ld ';; 7486 *) 7487 lt_prog_compiler_wl='-Wl,';; 7488 esac 7489 ;; 7490 7491 sunos4*) 7492 lt_prog_compiler_wl='-Qoption ld ' 7493 lt_prog_compiler_pic='-PIC' 7494 lt_prog_compiler_static='-Bstatic' 7495 ;; 7496 7497 sysv4 | sysv4.2uw2* | sysv4.3*) 7498 lt_prog_compiler_wl='-Wl,' 7499 lt_prog_compiler_pic='-KPIC' 7500 lt_prog_compiler_static='-Bstatic' 7501 ;; 7502 7503 sysv4*MP*) 7504 if test -d /usr/nec ;then 7505 lt_prog_compiler_pic='-Kconform_pic' 7506 lt_prog_compiler_static='-Bstatic' 7507 fi 7508 ;; 7509 7510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7511 lt_prog_compiler_wl='-Wl,' 7512 lt_prog_compiler_pic='-KPIC' 7513 lt_prog_compiler_static='-Bstatic' 7514 ;; 7515 7516 unicos*) 7517 lt_prog_compiler_wl='-Wl,' 7518 lt_prog_compiler_can_build_shared=no 7519 ;; 7520 7521 uts4*) 7522 lt_prog_compiler_pic='-pic' 7523 lt_prog_compiler_static='-Bstatic' 7524 ;; 7525 7526 *) 7527 lt_prog_compiler_can_build_shared=no 7528 ;; 7529 esac 7530 fi 7531 7532case $host_os in 7533 # For platforms which do not support PIC, -DPIC is meaningless: 7534 *djgpp*) 7535 lt_prog_compiler_pic= 7536 ;; 7537 *) 7538 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7539 ;; 7540esac 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7542$as_echo "$lt_prog_compiler_pic" >&6; } 7543 7544 7545 7546 7547 7548 7549# 7550# Check to make sure the PIC flag actually works. 7551# 7552if test -n "$lt_prog_compiler_pic"; then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7554$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7555if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 lt_cv_prog_compiler_pic_works=no 7559 ac_outfile=conftest.$ac_objext 7560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7561 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7562 # Insert the option either (1) after the last *FLAGS variable, or 7563 # (2) before a word containing "conftest.", or (3) at the end. 7564 # Note that $ac_compile itself does not contain backslashes and begins 7565 # with a dollar sign (not a hyphen), so the echo should work correctly. 7566 # The option is referenced via a variable to avoid confusing sed. 7567 lt_compile=`echo "$ac_compile" | $SED \ 7568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7570 -e 's:$: $lt_compiler_flag:'` 7571 (eval echo "\"\$as_me:7571: $lt_compile\"" >&5) 7572 (eval "$lt_compile" 2>conftest.err) 7573 ac_status=$? 7574 cat conftest.err >&5 7575 echo "$as_me:7575: \$? = $ac_status" >&5 7576 if (exit $ac_status) && test -s "$ac_outfile"; then 7577 # The compiler can only warn and ignore the option if not recognized 7578 # So say no if there are warnings other than the usual output. 7579 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7582 lt_cv_prog_compiler_pic_works=yes 7583 fi 7584 fi 7585 $RM conftest* 7586 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7589$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7590 7591if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7592 case $lt_prog_compiler_pic in 7593 "" | " "*) ;; 7594 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7595 esac 7596else 7597 lt_prog_compiler_pic= 7598 lt_prog_compiler_can_build_shared=no 7599fi 7600 7601fi 7602 7603 7604 7605 7606 7607 7608# 7609# Check to make sure the static flag actually works. 7610# 7611wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7613$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7614if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 lt_cv_prog_compiler_static_works=no 7618 save_LDFLAGS="$LDFLAGS" 7619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7620 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7622 # The linker can only warn and ignore the option if not recognized 7623 # So say no if there are warnings 7624 if test -s conftest.err; then 7625 # Append any errors to the config.log. 7626 cat conftest.err 1>&5 7627 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7629 if diff conftest.exp conftest.er2 >/dev/null; then 7630 lt_cv_prog_compiler_static_works=yes 7631 fi 7632 else 7633 lt_cv_prog_compiler_static_works=yes 7634 fi 7635 fi 7636 $RM -r conftest* 7637 LDFLAGS="$save_LDFLAGS" 7638 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7641$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7642 7643if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7644 : 7645else 7646 lt_prog_compiler_static= 7647fi 7648 7649 7650 7651 7652 7653 7654 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7657if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 lt_cv_prog_compiler_c_o=no 7661 $RM -r conftest 2>/dev/null 7662 mkdir conftest 7663 cd conftest 7664 mkdir out 7665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7666 7667 lt_compiler_flag="-o out/conftest2.$ac_objext" 7668 # Insert the option either (1) after the last *FLAGS variable, or 7669 # (2) before a word containing "conftest.", or (3) at the end. 7670 # Note that $ac_compile itself does not contain backslashes and begins 7671 # with a dollar sign (not a hyphen), so the echo should work correctly. 7672 lt_compile=`echo "$ac_compile" | $SED \ 7673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7675 -e 's:$: $lt_compiler_flag:'` 7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5) 7677 (eval "$lt_compile" 2>out/conftest.err) 7678 ac_status=$? 7679 cat out/conftest.err >&5 7680 echo "$as_me:7680: \$? = $ac_status" >&5 7681 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7682 then 7683 # The compiler can only warn and ignore the option if not recognized 7684 # So say no if there are warnings 7685 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7688 lt_cv_prog_compiler_c_o=yes 7689 fi 7690 fi 7691 chmod u+w . 2>&5 7692 $RM conftest* 7693 # SGI C++ compiler will create directory out/ii_files/ for 7694 # template instantiation 7695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7696 $RM out/* && rmdir out 7697 cd .. 7698 $RM -r conftest 7699 $RM conftest* 7700 7701fi 7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7703$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7704 7705 7706 7707 7708 7709 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7711$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7712if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 lt_cv_prog_compiler_c_o=no 7716 $RM -r conftest 2>/dev/null 7717 mkdir conftest 7718 cd conftest 7719 mkdir out 7720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7721 7722 lt_compiler_flag="-o out/conftest2.$ac_objext" 7723 # Insert the option either (1) after the last *FLAGS variable, or 7724 # (2) before a word containing "conftest.", or (3) at the end. 7725 # Note that $ac_compile itself does not contain backslashes and begins 7726 # with a dollar sign (not a hyphen), so the echo should work correctly. 7727 lt_compile=`echo "$ac_compile" | $SED \ 7728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7730 -e 's:$: $lt_compiler_flag:'` 7731 (eval echo "\"\$as_me:7731: $lt_compile\"" >&5) 7732 (eval "$lt_compile" 2>out/conftest.err) 7733 ac_status=$? 7734 cat out/conftest.err >&5 7735 echo "$as_me:7735: \$? = $ac_status" >&5 7736 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7737 then 7738 # The compiler can only warn and ignore the option if not recognized 7739 # So say no if there are warnings 7740 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7743 lt_cv_prog_compiler_c_o=yes 7744 fi 7745 fi 7746 chmod u+w . 2>&5 7747 $RM conftest* 7748 # SGI C++ compiler will create directory out/ii_files/ for 7749 # template instantiation 7750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7751 $RM out/* && rmdir out 7752 cd .. 7753 $RM -r conftest 7754 $RM conftest* 7755 7756fi 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7758$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7759 7760 7761 7762 7763hard_links="nottested" 7764if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7765 # do not overwrite the value of need_locks provided by the user 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7767$as_echo_n "checking if we can lock with hard links... " >&6; } 7768 hard_links=yes 7769 $RM conftest* 7770 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7771 touch conftest.a 7772 ln conftest.a conftest.b 2>&5 || hard_links=no 7773 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7775$as_echo "$hard_links" >&6; } 7776 if test "$hard_links" = no; then 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7778$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7779 need_locks=warn 7780 fi 7781else 7782 need_locks=no 7783fi 7784 7785 7786 7787 7788 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7791$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7792 7793 runpath_var= 7794 allow_undefined_flag= 7795 always_export_symbols=no 7796 archive_cmds= 7797 archive_expsym_cmds= 7798 compiler_needs_object=no 7799 enable_shared_with_static_runtimes=no 7800 export_dynamic_flag_spec= 7801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7802 hardcode_automatic=no 7803 hardcode_direct=no 7804 hardcode_direct_absolute=no 7805 hardcode_libdir_flag_spec= 7806 hardcode_libdir_flag_spec_ld= 7807 hardcode_libdir_separator= 7808 hardcode_minus_L=no 7809 hardcode_shlibpath_var=unsupported 7810 inherit_rpath=no 7811 link_all_deplibs=unknown 7812 module_cmds= 7813 module_expsym_cmds= 7814 old_archive_from_new_cmds= 7815 old_archive_from_expsyms_cmds= 7816 thread_safe_flag_spec= 7817 whole_archive_flag_spec= 7818 # include_expsyms should be a list of space-separated symbols to be *always* 7819 # included in the symbol list 7820 include_expsyms= 7821 # exclude_expsyms can be an extended regexp of symbols to exclude 7822 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7824 # as well as any symbol that contains `d'. 7825 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7827 # platforms (ab)use it in PIC code, but their linkers get confused if 7828 # the symbol is explicitly referenced. Since portable code cannot 7829 # rely on this symbol name, it's probably fine to never include it in 7830 # preloaded symbol tables. 7831 # Exclude shared library initialization/finalization symbols. 7832 extract_expsyms_cmds= 7833 7834 case $host_os in 7835 cygwin* | mingw* | pw32* | cegcc*) 7836 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7837 # When not using gcc, we currently assume that we are using 7838 # Microsoft Visual C++. 7839 if test "$GCC" != yes; then 7840 with_gnu_ld=no 7841 fi 7842 ;; 7843 interix*) 7844 # we just hope/assume this is gcc and not c89 (= MSVC++) 7845 with_gnu_ld=yes 7846 ;; 7847 openbsd*) 7848 with_gnu_ld=no 7849 ;; 7850 esac 7851 7852 ld_shlibs=yes 7853 if test "$with_gnu_ld" = yes; then 7854 # If archive_cmds runs LD, not CC, wlarc should be empty 7855 wlarc='${wl}' 7856 7857 # Set some defaults for GNU ld with shared library support. These 7858 # are reset later if shared libraries are not supported. Putting them 7859 # here allows them to be overridden if necessary. 7860 runpath_var=LD_RUN_PATH 7861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7862 export_dynamic_flag_spec='${wl}--export-dynamic' 7863 # ancient GNU ld didn't support --whole-archive et. al. 7864 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7865 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7866 else 7867 whole_archive_flag_spec= 7868 fi 7869 supports_anon_versioning=no 7870 case `$LD -v 2>&1` in 7871 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7872 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7873 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7874 *\ 2.11.*) ;; # other 2.11 versions 7875 *) supports_anon_versioning=yes ;; 7876 esac 7877 7878 # See if GNU ld supports shared libraries. 7879 case $host_os in 7880 aix[3-9]*) 7881 # On AIX/PPC, the GNU linker is very broken 7882 if test "$host_cpu" != ia64; then 7883 ld_shlibs=no 7884 cat <<_LT_EOF 1>&2 7885 7886*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7887*** to be unable to reliably create shared libraries on AIX. 7888*** Therefore, libtool is disabling shared libraries support. If you 7889*** really care for shared libraries, you may want to modify your PATH 7890*** so that a non-GNU linker is found, and then restart. 7891 7892_LT_EOF 7893 fi 7894 ;; 7895 7896 amigaos*) 7897 case $host_cpu in 7898 powerpc) 7899 # see comment about AmigaOS4 .so support 7900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7901 archive_expsym_cmds='' 7902 ;; 7903 m68k) 7904 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)' 7905 hardcode_libdir_flag_spec='-L$libdir' 7906 hardcode_minus_L=yes 7907 ;; 7908 esac 7909 ;; 7910 7911 beos*) 7912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7913 allow_undefined_flag=unsupported 7914 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7915 # support --undefined. This deserves some investigation. FIXME 7916 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7917 else 7918 ld_shlibs=no 7919 fi 7920 ;; 7921 7922 cygwin* | mingw* | pw32* | cegcc*) 7923 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7924 # as there is no search path for DLLs. 7925 hardcode_libdir_flag_spec='-L$libdir' 7926 allow_undefined_flag=unsupported 7927 always_export_symbols=no 7928 enable_shared_with_static_runtimes=yes 7929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7930 7931 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7933 # If the export-symbols file already is a .def file (1st line 7934 # is EXPORTS), use it as is; otherwise, prepend... 7935 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7936 cp $export_symbols $output_objdir/$soname.def; 7937 else 7938 echo EXPORTS > $output_objdir/$soname.def; 7939 cat $export_symbols >> $output_objdir/$soname.def; 7940 fi~ 7941 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7942 else 7943 ld_shlibs=no 7944 fi 7945 ;; 7946 7947 interix[3-9]*) 7948 hardcode_direct=no 7949 hardcode_shlibpath_var=no 7950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7951 export_dynamic_flag_spec='${wl}-E' 7952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7953 # Instead, shared libraries are loaded at an image base (0x10000000 by 7954 # default) and relocated if they conflict, which is a slow very memory 7955 # consuming and fragmenting process. To avoid this, we pick a random, 7956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7957 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7959 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' 7960 ;; 7961 7962 gnu* | linux* | tpf* | k*bsd*-gnu) 7963 tmp_diet=no 7964 if test "$host_os" = linux-dietlibc; then 7965 case $cc_basename in 7966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7967 esac 7968 fi 7969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7970 && test "$tmp_diet" = no 7971 then 7972 tmp_addflag= 7973 tmp_sharedflag='-shared' 7974 case $cc_basename,$host_cpu in 7975 pgcc*) # Portland Group C compiler 7976 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' 7977 tmp_addflag=' $pic_flag' 7978 ;; 7979 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7980 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' 7981 tmp_addflag=' $pic_flag -Mnomain' ;; 7982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7983 tmp_addflag=' -i_dynamic' ;; 7984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7985 tmp_addflag=' -i_dynamic -nofor_main' ;; 7986 ifc* | ifort*) # Intel Fortran compiler 7987 tmp_addflag=' -nofor_main' ;; 7988 lf95*) # Lahey Fortran 8.1 7989 whole_archive_flag_spec= 7990 tmp_sharedflag='--shared' ;; 7991 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7992 tmp_sharedflag='-qmkshrobj' 7993 tmp_addflag= ;; 7994 esac 7995 case `$CC -V 2>&1 | sed 5q` in 7996 *Sun\ C*) # Sun C 5.9 7997 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' 7998 compiler_needs_object=yes 7999 tmp_sharedflag='-G' ;; 8000 *Sun\ F*) # Sun Fortran 8.3 8001 tmp_sharedflag='-G' ;; 8002 esac 8003 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8004 8005 if test "x$supports_anon_versioning" = xyes; then 8006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8008 echo "local: *; };" >> $output_objdir/$libname.ver~ 8009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8010 fi 8011 8012 case $cc_basename in 8013 xlf*) 8014 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8015 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8016 hardcode_libdir_flag_spec= 8017 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8018 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8019 if test "x$supports_anon_versioning" = xyes; then 8020 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8022 echo "local: *; };" >> $output_objdir/$libname.ver~ 8023 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8024 fi 8025 ;; 8026 esac 8027 else 8028 ld_shlibs=no 8029 fi 8030 ;; 8031 8032 netbsd*) 8033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8035 wlarc= 8036 else 8037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8039 fi 8040 ;; 8041 8042 solaris*) 8043 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8044 ld_shlibs=no 8045 cat <<_LT_EOF 1>&2 8046 8047*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8048*** create shared libraries on Solaris systems. Therefore, libtool 8049*** is disabling shared libraries support. We urge you to upgrade GNU 8050*** binutils to release 2.9.1 or newer. Another option is to modify 8051*** your PATH or compiler configuration so that the native linker is 8052*** used, and then restart. 8053 8054_LT_EOF 8055 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8058 else 8059 ld_shlibs=no 8060 fi 8061 ;; 8062 8063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8064 case `$LD -v 2>&1` in 8065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8066 ld_shlibs=no 8067 cat <<_LT_EOF 1>&2 8068 8069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8070*** reliably create shared libraries on SCO systems. Therefore, libtool 8071*** is disabling shared libraries support. We urge you to upgrade GNU 8072*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8073*** your PATH or compiler configuration so that the native linker is 8074*** used, and then restart. 8075 8076_LT_EOF 8077 ;; 8078 *) 8079 # For security reasons, it is highly recommended that you always 8080 # use absolute paths for naming shared libraries, and exclude the 8081 # DT_RUNPATH tag from executables and libraries. But doing so 8082 # requires that you compile everything twice, which is a pain. 8083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8087 else 8088 ld_shlibs=no 8089 fi 8090 ;; 8091 esac 8092 ;; 8093 8094 sunos4*) 8095 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8096 wlarc= 8097 hardcode_direct=yes 8098 hardcode_shlibpath_var=no 8099 ;; 8100 8101 *) 8102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8105 else 8106 ld_shlibs=no 8107 fi 8108 ;; 8109 esac 8110 8111 if test "$ld_shlibs" = no; then 8112 runpath_var= 8113 hardcode_libdir_flag_spec= 8114 export_dynamic_flag_spec= 8115 whole_archive_flag_spec= 8116 fi 8117 else 8118 # PORTME fill in a description of your system's linker (not GNU ld) 8119 case $host_os in 8120 aix3*) 8121 allow_undefined_flag=unsupported 8122 always_export_symbols=yes 8123 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' 8124 # Note: this linker hardcodes the directories in LIBPATH if there 8125 # are no directories specified by -L. 8126 hardcode_minus_L=yes 8127 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8128 # Neither direct hardcoding nor static linking is supported with a 8129 # broken collect2. 8130 hardcode_direct=unsupported 8131 fi 8132 ;; 8133 8134 aix[4-9]*) 8135 if test "$host_cpu" = ia64; then 8136 # On IA64, the linker does run time linking by default, so we don't 8137 # have to do anything special. 8138 aix_use_runtimelinking=no 8139 exp_sym_flag='-Bexport' 8140 no_entry_flag="" 8141 else 8142 # If we're using GNU nm, then we don't want the "-C" option. 8143 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8144 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8145 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' 8146 else 8147 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' 8148 fi 8149 aix_use_runtimelinking=no 8150 8151 # Test if we are trying to use run time linking or normal 8152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8153 # need to do runtime linking. 8154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8155 for ld_flag in $LDFLAGS; do 8156 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8157 aix_use_runtimelinking=yes 8158 break 8159 fi 8160 done 8161 ;; 8162 esac 8163 8164 exp_sym_flag='-bexport' 8165 no_entry_flag='-bnoentry' 8166 fi 8167 8168 # When large executables or shared objects are built, AIX ld can 8169 # have problems creating the table of contents. If linking a library 8170 # or program results in "error TOC overflow" add -mminimal-toc to 8171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8173 8174 archive_cmds='' 8175 hardcode_direct=yes 8176 hardcode_direct_absolute=yes 8177 hardcode_libdir_separator=':' 8178 link_all_deplibs=yes 8179 file_list_spec='${wl}-f,' 8180 8181 if test "$GCC" = yes; then 8182 case $host_os in aix4.[012]|aix4.[012].*) 8183 # We only want to do this on AIX 4.2 and lower, the check 8184 # below for broken collect2 doesn't work under 4.3+ 8185 collect2name=`${CC} -print-prog-name=collect2` 8186 if test -f "$collect2name" && 8187 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8188 then 8189 # We have reworked collect2 8190 : 8191 else 8192 # We have old collect2 8193 hardcode_direct=unsupported 8194 # It fails to find uninstalled libraries when the uninstalled 8195 # path is not listed in the libpath. Setting hardcode_minus_L 8196 # to unsupported forces relinking 8197 hardcode_minus_L=yes 8198 hardcode_libdir_flag_spec='-L$libdir' 8199 hardcode_libdir_separator= 8200 fi 8201 ;; 8202 esac 8203 shared_flag='-shared' 8204 if test "$aix_use_runtimelinking" = yes; then 8205 shared_flag="$shared_flag "'${wl}-G' 8206 fi 8207 else 8208 # not using gcc 8209 if test "$host_cpu" = ia64; then 8210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8211 # chokes on -Wl,-G. The following line is correct: 8212 shared_flag='-G' 8213 else 8214 if test "$aix_use_runtimelinking" = yes; then 8215 shared_flag='${wl}-G' 8216 else 8217 shared_flag='${wl}-bM:SRE' 8218 fi 8219 fi 8220 fi 8221 8222 export_dynamic_flag_spec='${wl}-bexpall' 8223 # It seems that -bexpall does not export symbols beginning with 8224 # underscore (_), so it is better to generate a list of symbols to export. 8225 always_export_symbols=yes 8226 if test "$aix_use_runtimelinking" = yes; then 8227 # Warning - without using the other runtime loading flags (-brtl), 8228 # -berok will link without error, but may produce a broken library. 8229 allow_undefined_flag='-berok' 8230 # Determine the default libpath from the value encoded in an 8231 # empty executable. 8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233/* end confdefs.h. */ 8234 8235int 8236main () 8237{ 8238 8239 ; 8240 return 0; 8241} 8242_ACEOF 8243if ac_fn_c_try_link "$LINENO"; then : 8244 8245lt_aix_libpath_sed=' 8246 /Import File Strings/,/^$/ { 8247 /^0/ { 8248 s/^0 *\(.*\)$/\1/ 8249 p 8250 } 8251 }' 8252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8253# Check for a 64-bit object if we didn't find anything. 8254if test -z "$aix_libpath"; then 8255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8256fi 8257fi 8258rm -f core conftest.err conftest.$ac_objext \ 8259 conftest$ac_exeext conftest.$ac_ext 8260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8261 8262 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8263 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" 8264 else 8265 if test "$host_cpu" = ia64; then 8266 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8267 allow_undefined_flag="-z nodefs" 8268 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" 8269 else 8270 # Determine the default libpath from the value encoded in an 8271 # empty executable. 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274 8275int 8276main () 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO"; then : 8284 8285lt_aix_libpath_sed=' 8286 /Import File Strings/,/^$/ { 8287 /^0/ { 8288 s/^0 *\(.*\)$/\1/ 8289 p 8290 } 8291 }' 8292aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8293# Check for a 64-bit object if we didn't find anything. 8294if test -z "$aix_libpath"; then 8295 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8296fi 8297fi 8298rm -f core conftest.err conftest.$ac_objext \ 8299 conftest$ac_exeext conftest.$ac_ext 8300if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8301 8302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8303 # Warning - without using the other run time loading flags, 8304 # -berok will link without error, but may produce a broken library. 8305 no_undefined_flag=' ${wl}-bernotok' 8306 allow_undefined_flag=' ${wl}-berok' 8307 # Exported symbols can be pulled into shared objects from archives 8308 whole_archive_flag_spec='$convenience' 8309 archive_cmds_need_lc=yes 8310 # This is similar to how AIX traditionally builds its shared libraries. 8311 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' 8312 fi 8313 fi 8314 ;; 8315 8316 amigaos*) 8317 case $host_cpu in 8318 powerpc) 8319 # see comment about AmigaOS4 .so support 8320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8321 archive_expsym_cmds='' 8322 ;; 8323 m68k) 8324 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)' 8325 hardcode_libdir_flag_spec='-L$libdir' 8326 hardcode_minus_L=yes 8327 ;; 8328 esac 8329 ;; 8330 8331 bsdi[45]*) 8332 export_dynamic_flag_spec=-rdynamic 8333 ;; 8334 8335 cygwin* | mingw* | pw32* | cegcc*) 8336 # When not using gcc, we currently assume that we are using 8337 # Microsoft Visual C++. 8338 # hardcode_libdir_flag_spec is actually meaningless, as there is 8339 # no search path for DLLs. 8340 hardcode_libdir_flag_spec=' ' 8341 allow_undefined_flag=unsupported 8342 # Tell ltmain to make .lib files, not .a files. 8343 libext=lib 8344 # Tell ltmain to make .dll files, not .so files. 8345 shrext_cmds=".dll" 8346 # FIXME: Setting linknames here is a bad hack. 8347 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8348 # The linker will automatically build a .lib file if we build a DLL. 8349 old_archive_from_new_cmds='true' 8350 # FIXME: Should let the user specify the lib program. 8351 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8352 fix_srcfile_path='`cygpath -w "$srcfile"`' 8353 enable_shared_with_static_runtimes=yes 8354 ;; 8355 8356 darwin* | rhapsody*) 8357 8358 8359 archive_cmds_need_lc=no 8360 hardcode_direct=no 8361 hardcode_automatic=yes 8362 hardcode_shlibpath_var=unsupported 8363 whole_archive_flag_spec='' 8364 link_all_deplibs=yes 8365 allow_undefined_flag="$_lt_dar_allow_undefined" 8366 case $cc_basename in 8367 ifort*) _lt_dar_can_shared=yes ;; 8368 *) _lt_dar_can_shared=$GCC ;; 8369 esac 8370 if test "$_lt_dar_can_shared" = "yes"; then 8371 output_verbose_link_cmd=echo 8372 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8373 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8374 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}" 8375 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}" 8376 8377 else 8378 ld_shlibs=no 8379 fi 8380 8381 ;; 8382 8383 dgux*) 8384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8385 hardcode_libdir_flag_spec='-L$libdir' 8386 hardcode_shlibpath_var=no 8387 ;; 8388 8389 freebsd1*) 8390 ld_shlibs=no 8391 ;; 8392 8393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8394 # support. Future versions do this automatically, but an explicit c++rt0.o 8395 # does not break anything, and helps significantly (at the cost of a little 8396 # extra space). 8397 freebsd2.2*) 8398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8399 hardcode_libdir_flag_spec='-R$libdir' 8400 hardcode_direct=yes 8401 hardcode_shlibpath_var=no 8402 ;; 8403 8404 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8405 freebsd2*) 8406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8407 hardcode_direct=yes 8408 hardcode_minus_L=yes 8409 hardcode_shlibpath_var=no 8410 ;; 8411 8412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8413 freebsd* | dragonfly*) 8414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8415 hardcode_libdir_flag_spec='-R$libdir' 8416 hardcode_direct=yes 8417 hardcode_shlibpath_var=no 8418 ;; 8419 8420 hpux9*) 8421 if test "$GCC" = yes; then 8422 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' 8423 else 8424 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' 8425 fi 8426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8427 hardcode_libdir_separator=: 8428 hardcode_direct=yes 8429 8430 # hardcode_minus_L: Not really in the search PATH, 8431 # but as the default location of the library. 8432 hardcode_minus_L=yes 8433 export_dynamic_flag_spec='${wl}-E' 8434 ;; 8435 8436 hpux10*) 8437 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8439 else 8440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8441 fi 8442 if test "$with_gnu_ld" = no; then 8443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8444 hardcode_libdir_flag_spec_ld='+b $libdir' 8445 hardcode_libdir_separator=: 8446 hardcode_direct=yes 8447 hardcode_direct_absolute=yes 8448 export_dynamic_flag_spec='${wl}-E' 8449 # hardcode_minus_L: Not really in the search PATH, 8450 # but as the default location of the library. 8451 hardcode_minus_L=yes 8452 fi 8453 ;; 8454 8455 hpux11*) 8456 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8457 case $host_cpu in 8458 hppa*64*) 8459 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8460 ;; 8461 ia64*) 8462 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8463 ;; 8464 *) 8465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8466 ;; 8467 esac 8468 else 8469 case $host_cpu in 8470 hppa*64*) 8471 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8472 ;; 8473 ia64*) 8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8475 ;; 8476 *) 8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8478 ;; 8479 esac 8480 fi 8481 if test "$with_gnu_ld" = no; then 8482 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8483 hardcode_libdir_separator=: 8484 8485 case $host_cpu in 8486 hppa*64*|ia64*) 8487 hardcode_direct=no 8488 hardcode_shlibpath_var=no 8489 ;; 8490 *) 8491 hardcode_direct=yes 8492 hardcode_direct_absolute=yes 8493 export_dynamic_flag_spec='${wl}-E' 8494 8495 # hardcode_minus_L: Not really in the search PATH, 8496 # but as the default location of the library. 8497 hardcode_minus_L=yes 8498 ;; 8499 esac 8500 fi 8501 ;; 8502 8503 irix5* | irix6* | nonstopux*) 8504 if test "$GCC" = yes; then 8505 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' 8506 # Try to use the -exported_symbol ld option, if it does not 8507 # work, assume that -exports_file does not work either and 8508 # implicitly export all symbols. 8509 save_LDFLAGS="$LDFLAGS" 8510 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513int foo(void) {} 8514_ACEOF 8515if ac_fn_c_try_link "$LINENO"; then : 8516 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' 8517 8518fi 8519rm -f core conftest.err conftest.$ac_objext \ 8520 conftest$ac_exeext conftest.$ac_ext 8521 LDFLAGS="$save_LDFLAGS" 8522 else 8523 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' 8524 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' 8525 fi 8526 archive_cmds_need_lc='no' 8527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8528 hardcode_libdir_separator=: 8529 inherit_rpath=yes 8530 link_all_deplibs=yes 8531 ;; 8532 8533 netbsd*) 8534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8536 else 8537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8538 fi 8539 hardcode_libdir_flag_spec='-R$libdir' 8540 hardcode_direct=yes 8541 hardcode_shlibpath_var=no 8542 ;; 8543 8544 newsos6) 8545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8546 hardcode_direct=yes 8547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8548 hardcode_libdir_separator=: 8549 hardcode_shlibpath_var=no 8550 ;; 8551 8552 *nto* | *qnx*) 8553 ;; 8554 8555 openbsd*) 8556 if test -f /usr/libexec/ld.so; then 8557 hardcode_direct=yes 8558 hardcode_shlibpath_var=no 8559 hardcode_direct_absolute=yes 8560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8562 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8564 export_dynamic_flag_spec='${wl}-E' 8565 else 8566 case $host_os in 8567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8569 hardcode_libdir_flag_spec='-R$libdir' 8570 ;; 8571 *) 8572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8574 ;; 8575 esac 8576 fi 8577 else 8578 ld_shlibs=no 8579 fi 8580 ;; 8581 8582 os2*) 8583 hardcode_libdir_flag_spec='-L$libdir' 8584 hardcode_minus_L=yes 8585 allow_undefined_flag=unsupported 8586 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' 8587 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8588 ;; 8589 8590 osf3*) 8591 if test "$GCC" = yes; then 8592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8593 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' 8594 else 8595 allow_undefined_flag=' -expect_unresolved \*' 8596 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' 8597 fi 8598 archive_cmds_need_lc='no' 8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8600 hardcode_libdir_separator=: 8601 ;; 8602 8603 osf4* | osf5*) # as osf3* with the addition of -msym flag 8604 if test "$GCC" = yes; then 8605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8606 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' 8607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8608 else 8609 allow_undefined_flag=' -expect_unresolved \*' 8610 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' 8611 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~ 8612 $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' 8613 8614 # Both c and cxx compiler support -rpath directly 8615 hardcode_libdir_flag_spec='-rpath $libdir' 8616 fi 8617 archive_cmds_need_lc='no' 8618 hardcode_libdir_separator=: 8619 ;; 8620 8621 solaris*) 8622 no_undefined_flag=' -z defs' 8623 if test "$GCC" = yes; then 8624 wlarc='${wl}' 8625 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8627 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8628 else 8629 case `$CC -V 2>&1` in 8630 *"Compilers 5.0"*) 8631 wlarc='' 8632 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8635 ;; 8636 *) 8637 wlarc='${wl}' 8638 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8639 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8640 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8641 ;; 8642 esac 8643 fi 8644 hardcode_libdir_flag_spec='-R$libdir' 8645 hardcode_shlibpath_var=no 8646 case $host_os in 8647 solaris2.[0-5] | solaris2.[0-5].*) ;; 8648 *) 8649 # The compiler driver will combine and reorder linker options, 8650 # but understands `-z linker_flag'. GCC discards it without `$wl', 8651 # but is careful enough not to reorder. 8652 # Supported since Solaris 2.6 (maybe 2.5.1?) 8653 if test "$GCC" = yes; then 8654 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8655 else 8656 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8657 fi 8658 ;; 8659 esac 8660 link_all_deplibs=yes 8661 ;; 8662 8663 sunos4*) 8664 if test "x$host_vendor" = xsequent; then 8665 # Use $CC to link under sequent, because it throws in some extra .o 8666 # files that make .init and .fini sections work. 8667 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8668 else 8669 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8670 fi 8671 hardcode_libdir_flag_spec='-L$libdir' 8672 hardcode_direct=yes 8673 hardcode_minus_L=yes 8674 hardcode_shlibpath_var=no 8675 ;; 8676 8677 sysv4) 8678 case $host_vendor in 8679 sni) 8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8681 hardcode_direct=yes # is this really true??? 8682 ;; 8683 siemens) 8684 ## LD is ld it makes a PLAMLIB 8685 ## CC just makes a GrossModule. 8686 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8687 reload_cmds='$CC -r -o $output$reload_objs' 8688 hardcode_direct=no 8689 ;; 8690 motorola) 8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8692 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8693 ;; 8694 esac 8695 runpath_var='LD_RUN_PATH' 8696 hardcode_shlibpath_var=no 8697 ;; 8698 8699 sysv4.3*) 8700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8701 hardcode_shlibpath_var=no 8702 export_dynamic_flag_spec='-Bexport' 8703 ;; 8704 8705 sysv4*MP*) 8706 if test -d /usr/nec; then 8707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8708 hardcode_shlibpath_var=no 8709 runpath_var=LD_RUN_PATH 8710 hardcode_runpath_var=yes 8711 ld_shlibs=yes 8712 fi 8713 ;; 8714 8715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8716 no_undefined_flag='${wl}-z,text' 8717 archive_cmds_need_lc=no 8718 hardcode_shlibpath_var=no 8719 runpath_var='LD_RUN_PATH' 8720 8721 if test "$GCC" = yes; then 8722 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8723 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8724 else 8725 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8726 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8727 fi 8728 ;; 8729 8730 sysv5* | sco3.2v5* | sco5v6*) 8731 # Note: We can NOT use -z defs as we might desire, because we do not 8732 # link with -lc, and that would cause any symbols used from libc to 8733 # always be unresolved, which means just about no library would 8734 # ever link correctly. If we're not using GNU ld we use -z text 8735 # though, which does catch some bad symbols but isn't as heavy-handed 8736 # as -z defs. 8737 no_undefined_flag='${wl}-z,text' 8738 allow_undefined_flag='${wl}-z,nodefs' 8739 archive_cmds_need_lc=no 8740 hardcode_shlibpath_var=no 8741 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8742 hardcode_libdir_separator=':' 8743 link_all_deplibs=yes 8744 export_dynamic_flag_spec='${wl}-Bexport' 8745 runpath_var='LD_RUN_PATH' 8746 8747 if test "$GCC" = yes; then 8748 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8749 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8750 else 8751 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8752 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8753 fi 8754 ;; 8755 8756 uts4*) 8757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8758 hardcode_libdir_flag_spec='-L$libdir' 8759 hardcode_shlibpath_var=no 8760 ;; 8761 8762 *) 8763 ld_shlibs=no 8764 ;; 8765 esac 8766 8767 if test x$host_vendor = xsni; then 8768 case $host in 8769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8770 export_dynamic_flag_spec='${wl}-Blargedynsym' 8771 ;; 8772 esac 8773 fi 8774 fi 8775 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8777$as_echo "$ld_shlibs" >&6; } 8778test "$ld_shlibs" = no && can_build_shared=no 8779 8780with_gnu_ld=$with_gnu_ld 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796# 8797# Do we need to explicitly link libc? 8798# 8799case "x$archive_cmds_need_lc" in 8800x|xyes) 8801 # Assume -lc should be added 8802 archive_cmds_need_lc=yes 8803 8804 if test "$enable_shared" = yes && test "$GCC" = yes; then 8805 case $archive_cmds in 8806 *'~'*) 8807 # FIXME: we may have to deal with multi-command sequences. 8808 ;; 8809 '$CC '*) 8810 # Test whether the compiler implicitly links with -lc since on some 8811 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8812 # to ld, don't add -lc before -lgcc. 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8814$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8815 $RM conftest* 8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8817 8818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8819 (eval $ac_compile) 2>&5 8820 ac_status=$? 8821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8822 test $ac_status = 0; } 2>conftest.err; then 8823 soname=conftest 8824 lib=conftest 8825 libobjs=conftest.$ac_objext 8826 deplibs= 8827 wl=$lt_prog_compiler_wl 8828 pic_flag=$lt_prog_compiler_pic 8829 compiler_flags=-v 8830 linker_flags=-v 8831 verstring= 8832 output_objdir=. 8833 libname=conftest 8834 lt_save_allow_undefined_flag=$allow_undefined_flag 8835 allow_undefined_flag= 8836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8837 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8838 ac_status=$? 8839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8840 test $ac_status = 0; } 8841 then 8842 archive_cmds_need_lc=no 8843 else 8844 archive_cmds_need_lc=yes 8845 fi 8846 allow_undefined_flag=$lt_save_allow_undefined_flag 8847 else 8848 cat conftest.err 1>&5 8849 fi 8850 $RM conftest* 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8852$as_echo "$archive_cmds_need_lc" >&6; } 8853 ;; 8854 esac 8855 fi 8856 ;; 8857esac 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9016$as_echo_n "checking dynamic linker characteristics... " >&6; } 9017 9018if test "$GCC" = yes; then 9019 case $host_os in 9020 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9021 *) lt_awk_arg="/^libraries:/" ;; 9022 esac 9023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9024 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9025 # if the path contains ";" then we assume it to be the separator 9026 # otherwise default to the standard path separator (i.e. ":") - it is 9027 # assumed that no part of a normal pathname contains ";" but that should 9028 # okay in the real world where ";" in dirpaths is itself problematic. 9029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9030 else 9031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9032 fi 9033 # Ok, now we have the path, separated by spaces, we can step through it 9034 # and add multilib dir if necessary. 9035 lt_tmp_lt_search_path_spec= 9036 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9037 for lt_sys_path in $lt_search_path_spec; do 9038 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9040 else 9041 test -d "$lt_sys_path" && \ 9042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9043 fi 9044 done 9045 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9046BEGIN {RS=" "; FS="/|\n";} { 9047 lt_foo=""; 9048 lt_count=0; 9049 for (lt_i = NF; lt_i > 0; lt_i--) { 9050 if ($lt_i != "" && $lt_i != ".") { 9051 if ($lt_i == "..") { 9052 lt_count++; 9053 } else { 9054 if (lt_count == 0) { 9055 lt_foo="/" $lt_i lt_foo; 9056 } else { 9057 lt_count--; 9058 } 9059 } 9060 } 9061 } 9062 if (lt_foo != "") { lt_freq[lt_foo]++; } 9063 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9064}'` 9065 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9066else 9067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9068fi 9069library_names_spec= 9070libname_spec='lib$name' 9071soname_spec= 9072shrext_cmds=".so" 9073postinstall_cmds= 9074postuninstall_cmds= 9075finish_cmds= 9076finish_eval= 9077shlibpath_var= 9078shlibpath_overrides_runpath=unknown 9079version_type=none 9080dynamic_linker="$host_os ld.so" 9081sys_lib_dlsearch_path_spec="/lib /usr/lib" 9082need_lib_prefix=unknown 9083hardcode_into_libs=no 9084 9085# when you set need_version to no, make sure it does not cause -set_version 9086# flags to be left without arguments 9087need_version=unknown 9088 9089case $host_os in 9090aix3*) 9091 version_type=linux 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9093 shlibpath_var=LIBPATH 9094 9095 # AIX 3 has no versioning support, so we append a major version to the name. 9096 soname_spec='${libname}${release}${shared_ext}$major' 9097 ;; 9098 9099aix[4-9]*) 9100 version_type=linux 9101 need_lib_prefix=no 9102 need_version=no 9103 hardcode_into_libs=yes 9104 if test "$host_cpu" = ia64; then 9105 # AIX 5 supports IA64 9106 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9107 shlibpath_var=LD_LIBRARY_PATH 9108 else 9109 # With GCC up to 2.95.x, collect2 would create an import file 9110 # for dependence libraries. The import file would start with 9111 # the line `#! .'. This would cause the generated library to 9112 # depend on `.', always an invalid library. This was fixed in 9113 # development snapshots of GCC prior to 3.0. 9114 case $host_os in 9115 aix4 | aix4.[01] | aix4.[01].*) 9116 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9117 echo ' yes ' 9118 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9119 : 9120 else 9121 can_build_shared=no 9122 fi 9123 ;; 9124 esac 9125 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9126 # soname into executable. Probably we can add versioning support to 9127 # collect2, so additional links can be useful in future. 9128 if test "$aix_use_runtimelinking" = yes; then 9129 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9130 # instead of lib<name>.a to let people know that these are not 9131 # typical AIX shared libraries. 9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9133 else 9134 # We preserve .a as extension for shared libraries through AIX4.2 9135 # and later when we are not doing run time linking. 9136 library_names_spec='${libname}${release}.a $libname.a' 9137 soname_spec='${libname}${release}${shared_ext}$major' 9138 fi 9139 shlibpath_var=LIBPATH 9140 fi 9141 ;; 9142 9143amigaos*) 9144 case $host_cpu in 9145 powerpc) 9146 # Since July 2007 AmigaOS4 officially supports .so libraries. 9147 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9149 ;; 9150 m68k) 9151 library_names_spec='$libname.ixlibrary $libname.a' 9152 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9153 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' 9154 ;; 9155 esac 9156 ;; 9157 9158beos*) 9159 library_names_spec='${libname}${shared_ext}' 9160 dynamic_linker="$host_os ld.so" 9161 shlibpath_var=LIBRARY_PATH 9162 ;; 9163 9164bsdi[45]*) 9165 version_type=linux 9166 need_version=no 9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9168 soname_spec='${libname}${release}${shared_ext}$major' 9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9170 shlibpath_var=LD_LIBRARY_PATH 9171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9173 # the default ld.so.conf also contains /usr/contrib/lib and 9174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9175 # libtool to hard-code these into programs 9176 ;; 9177 9178cygwin* | mingw* | pw32* | cegcc*) 9179 version_type=windows 9180 shrext_cmds=".dll" 9181 need_version=no 9182 need_lib_prefix=no 9183 9184 case $GCC,$host_os in 9185 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9186 library_names_spec='$libname.dll.a' 9187 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9188 postinstall_cmds='base_file=`basename \${file}`~ 9189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9190 dldir=$destdir/`dirname \$dlpath`~ 9191 test -d \$dldir || mkdir -p \$dldir~ 9192 $install_prog $dir/$dlname \$dldir/$dlname~ 9193 chmod a+x \$dldir/$dlname~ 9194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9196 fi' 9197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9198 dlpath=$dir/\$dldll~ 9199 $RM \$dlpath' 9200 shlibpath_overrides_runpath=yes 9201 9202 case $host_os in 9203 cygwin*) 9204 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9207 ;; 9208 mingw* | cegcc*) 9209 # MinGW DLLs use traditional 'lib' prefix 9210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9211 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9212 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9213 # It is most probably a Windows format PATH printed by 9214 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9215 # path with ; separators, and with drive letters. We can handle the 9216 # drive letters (cygwin fileutils understands them), so leave them, 9217 # especially as we might pass files found there to a mingw objdump, 9218 # which wouldn't understand a cygwinified path. Ahh. 9219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9220 else 9221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9222 fi 9223 ;; 9224 pw32*) 9225 # pw32 DLLs use 'pw' prefix rather than 'lib' 9226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9227 ;; 9228 esac 9229 ;; 9230 9231 *) 9232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9233 ;; 9234 esac 9235 dynamic_linker='Win32 ld.exe' 9236 # FIXME: first we should search . and the directory the executable is in 9237 shlibpath_var=PATH 9238 ;; 9239 9240darwin* | rhapsody*) 9241 dynamic_linker="$host_os dyld" 9242 version_type=darwin 9243 need_lib_prefix=no 9244 need_version=no 9245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9246 soname_spec='${libname}${release}${major}$shared_ext' 9247 shlibpath_overrides_runpath=yes 9248 shlibpath_var=DYLD_LIBRARY_PATH 9249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9250 9251 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9253 ;; 9254 9255dgux*) 9256 version_type=linux 9257 need_lib_prefix=no 9258 need_version=no 9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9260 soname_spec='${libname}${release}${shared_ext}$major' 9261 shlibpath_var=LD_LIBRARY_PATH 9262 ;; 9263 9264freebsd1*) 9265 dynamic_linker=no 9266 ;; 9267 9268freebsd* | dragonfly*) 9269 # DragonFly does not have aout. When/if they implement a new 9270 # versioning mechanism, adjust this. 9271 if test -x /usr/bin/objformat; then 9272 objformat=`/usr/bin/objformat` 9273 else 9274 case $host_os in 9275 freebsd[123]*) objformat=aout ;; 9276 *) objformat=elf ;; 9277 esac 9278 fi 9279 version_type=freebsd-$objformat 9280 case $version_type in 9281 freebsd-elf*) 9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9283 need_version=no 9284 need_lib_prefix=no 9285 ;; 9286 freebsd-*) 9287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9288 need_version=yes 9289 ;; 9290 esac 9291 shlibpath_var=LD_LIBRARY_PATH 9292 case $host_os in 9293 freebsd2*) 9294 shlibpath_overrides_runpath=yes 9295 ;; 9296 freebsd3.[01]* | freebsdelf3.[01]*) 9297 shlibpath_overrides_runpath=yes 9298 hardcode_into_libs=yes 9299 ;; 9300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9302 shlibpath_overrides_runpath=no 9303 hardcode_into_libs=yes 9304 ;; 9305 *) # from 4.6 on, and DragonFly 9306 shlibpath_overrides_runpath=yes 9307 hardcode_into_libs=yes 9308 ;; 9309 esac 9310 ;; 9311 9312gnu*) 9313 version_type=linux 9314 need_lib_prefix=no 9315 need_version=no 9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9317 soname_spec='${libname}${release}${shared_ext}$major' 9318 shlibpath_var=LD_LIBRARY_PATH 9319 hardcode_into_libs=yes 9320 ;; 9321 9322hpux9* | hpux10* | hpux11*) 9323 # Give a soname corresponding to the major version so that dld.sl refuses to 9324 # link against other versions. 9325 version_type=sunos 9326 need_lib_prefix=no 9327 need_version=no 9328 case $host_cpu in 9329 ia64*) 9330 shrext_cmds='.so' 9331 hardcode_into_libs=yes 9332 dynamic_linker="$host_os dld.so" 9333 shlibpath_var=LD_LIBRARY_PATH 9334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9336 soname_spec='${libname}${release}${shared_ext}$major' 9337 if test "X$HPUX_IA64_MODE" = X32; then 9338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9339 else 9340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9341 fi 9342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9343 ;; 9344 hppa*64*) 9345 shrext_cmds='.sl' 9346 hardcode_into_libs=yes 9347 dynamic_linker="$host_os dld.sl" 9348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9351 soname_spec='${libname}${release}${shared_ext}$major' 9352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9354 ;; 9355 *) 9356 shrext_cmds='.sl' 9357 dynamic_linker="$host_os dld.sl" 9358 shlibpath_var=SHLIB_PATH 9359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9361 soname_spec='${libname}${release}${shared_ext}$major' 9362 ;; 9363 esac 9364 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9365 postinstall_cmds='chmod 555 $lib' 9366 ;; 9367 9368interix[3-9]*) 9369 version_type=linux 9370 need_lib_prefix=no 9371 need_version=no 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9373 soname_spec='${libname}${release}${shared_ext}$major' 9374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9375 shlibpath_var=LD_LIBRARY_PATH 9376 shlibpath_overrides_runpath=no 9377 hardcode_into_libs=yes 9378 ;; 9379 9380irix5* | irix6* | nonstopux*) 9381 case $host_os in 9382 nonstopux*) version_type=nonstopux ;; 9383 *) 9384 if test "$lt_cv_prog_gnu_ld" = yes; then 9385 version_type=linux 9386 else 9387 version_type=irix 9388 fi ;; 9389 esac 9390 need_lib_prefix=no 9391 need_version=no 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9394 case $host_os in 9395 irix5* | nonstopux*) 9396 libsuff= shlibsuff= 9397 ;; 9398 *) 9399 case $LD in # libtool.m4 will add one of these switches to LD 9400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9401 libsuff= shlibsuff= libmagic=32-bit;; 9402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9403 libsuff=32 shlibsuff=N32 libmagic=N32;; 9404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9405 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9406 *) libsuff= shlibsuff= libmagic=never-match;; 9407 esac 9408 ;; 9409 esac 9410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9411 shlibpath_overrides_runpath=no 9412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9414 hardcode_into_libs=yes 9415 ;; 9416 9417# No shared lib support for Linux oldld, aout, or coff. 9418linux*oldld* | linux*aout* | linux*coff*) 9419 dynamic_linker=no 9420 ;; 9421 9422# This must be Linux ELF. 9423linux* | k*bsd*-gnu) 9424 version_type=linux 9425 need_lib_prefix=no 9426 need_version=no 9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9428 soname_spec='${libname}${release}${shared_ext}$major' 9429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9430 shlibpath_var=LD_LIBRARY_PATH 9431 shlibpath_overrides_runpath=no 9432 # Some binutils ld are patched to set DT_RUNPATH 9433 save_LDFLAGS=$LDFLAGS 9434 save_libdir=$libdir 9435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439 9440int 9441main () 9442{ 9443 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448if ac_fn_c_try_link "$LINENO"; then : 9449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9450 shlibpath_overrides_runpath=yes 9451fi 9452fi 9453rm -f core conftest.err conftest.$ac_objext \ 9454 conftest$ac_exeext conftest.$ac_ext 9455 LDFLAGS=$save_LDFLAGS 9456 libdir=$save_libdir 9457 9458 # This implies no fast_install, which is unacceptable. 9459 # Some rework will be needed to allow for fast_install 9460 # before this can be enabled. 9461 hardcode_into_libs=yes 9462 9463 # Append ld.so.conf contents to the search path 9464 if test -f /etc/ld.so.conf; then 9465 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' ' '` 9466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9467 fi 9468 9469 # We used to test for /lib/ld.so.1 and disable shared libraries on 9470 # powerpc, because MkLinux only supported shared libraries with the 9471 # GNU dynamic linker. Since this was broken with cross compilers, 9472 # most powerpc-linux boxes support dynamic linking these days and 9473 # people can always --disable-shared, the test was removed, and we 9474 # assume the GNU/Linux dynamic linker is in use. 9475 dynamic_linker='GNU/Linux ld.so' 9476 ;; 9477 9478netbsd*) 9479 version_type=sunos 9480 need_lib_prefix=no 9481 need_version=no 9482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9485 dynamic_linker='NetBSD (a.out) ld.so' 9486 else 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9488 soname_spec='${libname}${release}${shared_ext}$major' 9489 dynamic_linker='NetBSD ld.elf_so' 9490 fi 9491 shlibpath_var=LD_LIBRARY_PATH 9492 shlibpath_overrides_runpath=yes 9493 hardcode_into_libs=yes 9494 ;; 9495 9496newsos6) 9497 version_type=linux 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9499 shlibpath_var=LD_LIBRARY_PATH 9500 shlibpath_overrides_runpath=yes 9501 ;; 9502 9503*nto* | *qnx*) 9504 version_type=qnx 9505 need_lib_prefix=no 9506 need_version=no 9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9508 soname_spec='${libname}${release}${shared_ext}$major' 9509 shlibpath_var=LD_LIBRARY_PATH 9510 shlibpath_overrides_runpath=no 9511 hardcode_into_libs=yes 9512 dynamic_linker='ldqnx.so' 9513 ;; 9514 9515openbsd*) 9516 version_type=sunos 9517 sys_lib_dlsearch_path_spec="/usr/lib" 9518 need_lib_prefix=no 9519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9520 case $host_os in 9521 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9522 *) need_version=no ;; 9523 esac 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9528 case $host_os in 9529 openbsd2.[89] | openbsd2.[89].*) 9530 shlibpath_overrides_runpath=no 9531 ;; 9532 *) 9533 shlibpath_overrides_runpath=yes 9534 ;; 9535 esac 9536 else 9537 shlibpath_overrides_runpath=yes 9538 fi 9539 ;; 9540 9541os2*) 9542 libname_spec='$name' 9543 shrext_cmds=".dll" 9544 need_lib_prefix=no 9545 library_names_spec='$libname${shared_ext} $libname.a' 9546 dynamic_linker='OS/2 ld.exe' 9547 shlibpath_var=LIBPATH 9548 ;; 9549 9550osf3* | osf4* | osf5*) 9551 version_type=osf 9552 need_lib_prefix=no 9553 need_version=no 9554 soname_spec='${libname}${release}${shared_ext}$major' 9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9556 shlibpath_var=LD_LIBRARY_PATH 9557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9559 ;; 9560 9561rdos*) 9562 dynamic_linker=no 9563 ;; 9564 9565solaris*) 9566 version_type=linux 9567 need_lib_prefix=no 9568 need_version=no 9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9570 soname_spec='${libname}${release}${shared_ext}$major' 9571 shlibpath_var=LD_LIBRARY_PATH 9572 shlibpath_overrides_runpath=yes 9573 hardcode_into_libs=yes 9574 # ldd complains unless libraries are executable 9575 postinstall_cmds='chmod +x $lib' 9576 ;; 9577 9578sunos4*) 9579 version_type=sunos 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9582 shlibpath_var=LD_LIBRARY_PATH 9583 shlibpath_overrides_runpath=yes 9584 if test "$with_gnu_ld" = yes; then 9585 need_lib_prefix=no 9586 fi 9587 need_version=yes 9588 ;; 9589 9590sysv4 | sysv4.3*) 9591 version_type=linux 9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9593 soname_spec='${libname}${release}${shared_ext}$major' 9594 shlibpath_var=LD_LIBRARY_PATH 9595 case $host_vendor in 9596 sni) 9597 shlibpath_overrides_runpath=no 9598 need_lib_prefix=no 9599 runpath_var=LD_RUN_PATH 9600 ;; 9601 siemens) 9602 need_lib_prefix=no 9603 ;; 9604 motorola) 9605 need_lib_prefix=no 9606 need_version=no 9607 shlibpath_overrides_runpath=no 9608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9609 ;; 9610 esac 9611 ;; 9612 9613sysv4*MP*) 9614 if test -d /usr/nec ;then 9615 version_type=linux 9616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9617 soname_spec='$libname${shared_ext}.$major' 9618 shlibpath_var=LD_LIBRARY_PATH 9619 fi 9620 ;; 9621 9622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9623 version_type=freebsd-elf 9624 need_lib_prefix=no 9625 need_version=no 9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9627 soname_spec='${libname}${release}${shared_ext}$major' 9628 shlibpath_var=LD_LIBRARY_PATH 9629 shlibpath_overrides_runpath=yes 9630 hardcode_into_libs=yes 9631 if test "$with_gnu_ld" = yes; then 9632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9633 else 9634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9635 case $host_os in 9636 sco3.2v5*) 9637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9638 ;; 9639 esac 9640 fi 9641 sys_lib_dlsearch_path_spec='/usr/lib' 9642 ;; 9643 9644tpf*) 9645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9646 version_type=linux 9647 need_lib_prefix=no 9648 need_version=no 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9650 shlibpath_var=LD_LIBRARY_PATH 9651 shlibpath_overrides_runpath=no 9652 hardcode_into_libs=yes 9653 ;; 9654 9655uts4*) 9656 version_type=linux 9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 shlibpath_var=LD_LIBRARY_PATH 9660 ;; 9661 9662*) 9663 dynamic_linker=no 9664 ;; 9665esac 9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9667$as_echo "$dynamic_linker" >&6; } 9668test "$dynamic_linker" = no && can_build_shared=no 9669 9670variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9671if test "$GCC" = yes; then 9672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9673fi 9674 9675if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9677fi 9678if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9680fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9769$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9770hardcode_action= 9771if test -n "$hardcode_libdir_flag_spec" || 9772 test -n "$runpath_var" || 9773 test "X$hardcode_automatic" = "Xyes" ; then 9774 9775 # We can hardcode non-existent directories. 9776 if test "$hardcode_direct" != no && 9777 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9778 # have to relink, otherwise we might link with an installed library 9779 # when we should be linking with a yet-to-be-installed one 9780 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9781 test "$hardcode_minus_L" != no; then 9782 # Linking always hardcodes the temporary library directory. 9783 hardcode_action=relink 9784 else 9785 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9786 hardcode_action=immediate 9787 fi 9788else 9789 # We cannot hardcode anything, or else we can only hardcode existing 9790 # directories. 9791 hardcode_action=unsupported 9792fi 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9794$as_echo "$hardcode_action" >&6; } 9795 9796if test "$hardcode_action" = relink || 9797 test "$inherit_rpath" = yes; then 9798 # Fast installation is not supported 9799 enable_fast_install=no 9800elif test "$shlibpath_overrides_runpath" = yes || 9801 test "$enable_shared" = no; then 9802 # Fast installation is not necessary 9803 enable_fast_install=needless 9804fi 9805 9806 9807 9808 9809 9810 9811 if test "x$enable_dlopen" != xyes; then 9812 enable_dlopen=unknown 9813 enable_dlopen_self=unknown 9814 enable_dlopen_self_static=unknown 9815else 9816 lt_cv_dlopen=no 9817 lt_cv_dlopen_libs= 9818 9819 case $host_os in 9820 beos*) 9821 lt_cv_dlopen="load_add_on" 9822 lt_cv_dlopen_libs= 9823 lt_cv_dlopen_self=yes 9824 ;; 9825 9826 mingw* | pw32* | cegcc*) 9827 lt_cv_dlopen="LoadLibrary" 9828 lt_cv_dlopen_libs= 9829 ;; 9830 9831 cygwin*) 9832 lt_cv_dlopen="dlopen" 9833 lt_cv_dlopen_libs= 9834 ;; 9835 9836 darwin*) 9837 # if libdl is installed we need to link against it 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9839$as_echo_n "checking for dlopen in -ldl... " >&6; } 9840if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9841 $as_echo_n "(cached) " >&6 9842else 9843 ac_check_lib_save_LIBS=$LIBS 9844LIBS="-ldl $LIBS" 9845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847 9848/* Override any GCC internal prototype to avoid an error. 9849 Use char because int might match the return type of a GCC 9850 builtin and then its argument prototype would still apply. */ 9851#ifdef __cplusplus 9852extern "C" 9853#endif 9854char dlopen (); 9855int 9856main () 9857{ 9858return dlopen (); 9859 ; 9860 return 0; 9861} 9862_ACEOF 9863if ac_fn_c_try_link "$LINENO"; then : 9864 ac_cv_lib_dl_dlopen=yes 9865else 9866 ac_cv_lib_dl_dlopen=no 9867fi 9868rm -f core conftest.err conftest.$ac_objext \ 9869 conftest$ac_exeext conftest.$ac_ext 9870LIBS=$ac_check_lib_save_LIBS 9871fi 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9873$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9874if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9876else 9877 9878 lt_cv_dlopen="dyld" 9879 lt_cv_dlopen_libs= 9880 lt_cv_dlopen_self=yes 9881 9882fi 9883 9884 ;; 9885 9886 *) 9887 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9888if test "x$ac_cv_func_shl_load" = x""yes; then : 9889 lt_cv_dlopen="shl_load" 9890else 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9892$as_echo_n "checking for shl_load in -ldld... " >&6; } 9893if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 9894 $as_echo_n "(cached) " >&6 9895else 9896 ac_check_lib_save_LIBS=$LIBS 9897LIBS="-ldld $LIBS" 9898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900 9901/* Override any GCC internal prototype to avoid an error. 9902 Use char because int might match the return type of a GCC 9903 builtin and then its argument prototype would still apply. */ 9904#ifdef __cplusplus 9905extern "C" 9906#endif 9907char shl_load (); 9908int 9909main () 9910{ 9911return shl_load (); 9912 ; 9913 return 0; 9914} 9915_ACEOF 9916if ac_fn_c_try_link "$LINENO"; then : 9917 ac_cv_lib_dld_shl_load=yes 9918else 9919 ac_cv_lib_dld_shl_load=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext \ 9922 conftest$ac_exeext conftest.$ac_ext 9923LIBS=$ac_check_lib_save_LIBS 9924fi 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9926$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9927if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 9928 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9929else 9930 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9931if test "x$ac_cv_func_dlopen" = x""yes; then : 9932 lt_cv_dlopen="dlopen" 9933else 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9935$as_echo_n "checking for dlopen in -ldl... " >&6; } 9936if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9937 $as_echo_n "(cached) " >&6 9938else 9939 ac_check_lib_save_LIBS=$LIBS 9940LIBS="-ldl $LIBS" 9941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942/* end confdefs.h. */ 9943 9944/* Override any GCC internal prototype to avoid an error. 9945 Use char because int might match the return type of a GCC 9946 builtin and then its argument prototype would still apply. */ 9947#ifdef __cplusplus 9948extern "C" 9949#endif 9950char dlopen (); 9951int 9952main () 9953{ 9954return dlopen (); 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO"; then : 9960 ac_cv_lib_dl_dlopen=yes 9961else 9962 ac_cv_lib_dl_dlopen=no 9963fi 9964rm -f core conftest.err conftest.$ac_objext \ 9965 conftest$ac_exeext conftest.$ac_ext 9966LIBS=$ac_check_lib_save_LIBS 9967fi 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9969$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9970if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9972else 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9974$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9975if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 9976 $as_echo_n "(cached) " >&6 9977else 9978 ac_check_lib_save_LIBS=$LIBS 9979LIBS="-lsvld $LIBS" 9980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981/* end confdefs.h. */ 9982 9983/* Override any GCC internal prototype to avoid an error. 9984 Use char because int might match the return type of a GCC 9985 builtin and then its argument prototype would still apply. */ 9986#ifdef __cplusplus 9987extern "C" 9988#endif 9989char dlopen (); 9990int 9991main () 9992{ 9993return dlopen (); 9994 ; 9995 return 0; 9996} 9997_ACEOF 9998if ac_fn_c_try_link "$LINENO"; then : 9999 ac_cv_lib_svld_dlopen=yes 10000else 10001 ac_cv_lib_svld_dlopen=no 10002fi 10003rm -f core conftest.err conftest.$ac_objext \ 10004 conftest$ac_exeext conftest.$ac_ext 10005LIBS=$ac_check_lib_save_LIBS 10006fi 10007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10008$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10009if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10011else 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10013$as_echo_n "checking for dld_link in -ldld... " >&6; } 10014if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 ac_check_lib_save_LIBS=$LIBS 10018LIBS="-ldld $LIBS" 10019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021 10022/* Override any GCC internal prototype to avoid an error. 10023 Use char because int might match the return type of a GCC 10024 builtin and then its argument prototype would still apply. */ 10025#ifdef __cplusplus 10026extern "C" 10027#endif 10028char dld_link (); 10029int 10030main () 10031{ 10032return dld_link (); 10033 ; 10034 return 0; 10035} 10036_ACEOF 10037if ac_fn_c_try_link "$LINENO"; then : 10038 ac_cv_lib_dld_dld_link=yes 10039else 10040 ac_cv_lib_dld_dld_link=no 10041fi 10042rm -f core conftest.err conftest.$ac_objext \ 10043 conftest$ac_exeext conftest.$ac_ext 10044LIBS=$ac_check_lib_save_LIBS 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10047$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10048if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10049 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10050fi 10051 10052 10053fi 10054 10055 10056fi 10057 10058 10059fi 10060 10061 10062fi 10063 10064 10065fi 10066 10067 ;; 10068 esac 10069 10070 if test "x$lt_cv_dlopen" != xno; then 10071 enable_dlopen=yes 10072 else 10073 enable_dlopen=no 10074 fi 10075 10076 case $lt_cv_dlopen in 10077 dlopen) 10078 save_CPPFLAGS="$CPPFLAGS" 10079 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10080 10081 save_LDFLAGS="$LDFLAGS" 10082 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10083 10084 save_LIBS="$LIBS" 10085 LIBS="$lt_cv_dlopen_libs $LIBS" 10086 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10088$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10089if test "${lt_cv_dlopen_self+set}" = set; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 if test "$cross_compiling" = yes; then : 10093 lt_cv_dlopen_self=cross 10094else 10095 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10096 lt_status=$lt_dlunknown 10097 cat > conftest.$ac_ext <<_LT_EOF 10098#line 10098 "configure" 10099#include "confdefs.h" 10100 10101#if HAVE_DLFCN_H 10102#include <dlfcn.h> 10103#endif 10104 10105#include <stdio.h> 10106 10107#ifdef RTLD_GLOBAL 10108# define LT_DLGLOBAL RTLD_GLOBAL 10109#else 10110# ifdef DL_GLOBAL 10111# define LT_DLGLOBAL DL_GLOBAL 10112# else 10113# define LT_DLGLOBAL 0 10114# endif 10115#endif 10116 10117/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10118 find out it does not work in some platform. */ 10119#ifndef LT_DLLAZY_OR_NOW 10120# ifdef RTLD_LAZY 10121# define LT_DLLAZY_OR_NOW RTLD_LAZY 10122# else 10123# ifdef DL_LAZY 10124# define LT_DLLAZY_OR_NOW DL_LAZY 10125# else 10126# ifdef RTLD_NOW 10127# define LT_DLLAZY_OR_NOW RTLD_NOW 10128# else 10129# ifdef DL_NOW 10130# define LT_DLLAZY_OR_NOW DL_NOW 10131# else 10132# define LT_DLLAZY_OR_NOW 0 10133# endif 10134# endif 10135# endif 10136# endif 10137#endif 10138 10139void fnord() { int i=42;} 10140int main () 10141{ 10142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10143 int status = $lt_dlunknown; 10144 10145 if (self) 10146 { 10147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10148 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10149 /* dlclose (self); */ 10150 } 10151 else 10152 puts (dlerror ()); 10153 10154 return status; 10155} 10156_LT_EOF 10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10158 (eval $ac_link) 2>&5 10159 ac_status=$? 10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10161 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10162 (./conftest; exit; ) >&5 2>/dev/null 10163 lt_status=$? 10164 case x$lt_status in 10165 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10166 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10167 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10168 esac 10169 else : 10170 # compilation failed 10171 lt_cv_dlopen_self=no 10172 fi 10173fi 10174rm -fr conftest* 10175 10176 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10179$as_echo "$lt_cv_dlopen_self" >&6; } 10180 10181 if test "x$lt_cv_dlopen_self" = xyes; then 10182 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10184$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10185if test "${lt_cv_dlopen_self_static+set}" = set; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 if test "$cross_compiling" = yes; then : 10189 lt_cv_dlopen_self_static=cross 10190else 10191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10192 lt_status=$lt_dlunknown 10193 cat > conftest.$ac_ext <<_LT_EOF 10194#line 10194 "configure" 10195#include "confdefs.h" 10196 10197#if HAVE_DLFCN_H 10198#include <dlfcn.h> 10199#endif 10200 10201#include <stdio.h> 10202 10203#ifdef RTLD_GLOBAL 10204# define LT_DLGLOBAL RTLD_GLOBAL 10205#else 10206# ifdef DL_GLOBAL 10207# define LT_DLGLOBAL DL_GLOBAL 10208# else 10209# define LT_DLGLOBAL 0 10210# endif 10211#endif 10212 10213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10214 find out it does not work in some platform. */ 10215#ifndef LT_DLLAZY_OR_NOW 10216# ifdef RTLD_LAZY 10217# define LT_DLLAZY_OR_NOW RTLD_LAZY 10218# else 10219# ifdef DL_LAZY 10220# define LT_DLLAZY_OR_NOW DL_LAZY 10221# else 10222# ifdef RTLD_NOW 10223# define LT_DLLAZY_OR_NOW RTLD_NOW 10224# else 10225# ifdef DL_NOW 10226# define LT_DLLAZY_OR_NOW DL_NOW 10227# else 10228# define LT_DLLAZY_OR_NOW 0 10229# endif 10230# endif 10231# endif 10232# endif 10233#endif 10234 10235void fnord() { int i=42;} 10236int main () 10237{ 10238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10239 int status = $lt_dlunknown; 10240 10241 if (self) 10242 { 10243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10245 /* dlclose (self); */ 10246 } 10247 else 10248 puts (dlerror ()); 10249 10250 return status; 10251} 10252_LT_EOF 10253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10254 (eval $ac_link) 2>&5 10255 ac_status=$? 10256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10257 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10258 (./conftest; exit; ) >&5 2>/dev/null 10259 lt_status=$? 10260 case x$lt_status in 10261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10263 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10264 esac 10265 else : 10266 # compilation failed 10267 lt_cv_dlopen_self_static=no 10268 fi 10269fi 10270rm -fr conftest* 10271 10272 10273fi 10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10275$as_echo "$lt_cv_dlopen_self_static" >&6; } 10276 fi 10277 10278 CPPFLAGS="$save_CPPFLAGS" 10279 LDFLAGS="$save_LDFLAGS" 10280 LIBS="$save_LIBS" 10281 ;; 10282 esac 10283 10284 case $lt_cv_dlopen_self in 10285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10286 *) enable_dlopen_self=unknown ;; 10287 esac 10288 10289 case $lt_cv_dlopen_self_static in 10290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10291 *) enable_dlopen_self_static=unknown ;; 10292 esac 10293fi 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311striplib= 10312old_striplib= 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10314$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10315if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10316 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10317 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10319$as_echo "yes" >&6; } 10320else 10321# FIXME - insert some real tests, host_os isn't really good enough 10322 case $host_os in 10323 darwin*) 10324 if test -n "$STRIP" ; then 10325 striplib="$STRIP -x" 10326 old_striplib="$STRIP -S" 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10328$as_echo "yes" >&6; } 10329 else 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10331$as_echo "no" >&6; } 10332 fi 10333 ;; 10334 *) 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10336$as_echo "no" >&6; } 10337 ;; 10338 esac 10339fi 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 # Report which library types will actually be built 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10354$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10356$as_echo "$can_build_shared" >&6; } 10357 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10359$as_echo_n "checking whether to build shared libraries... " >&6; } 10360 test "$can_build_shared" = "no" && enable_shared=no 10361 10362 # On AIX, shared libraries and static libraries use the same namespace, and 10363 # are all built from PIC. 10364 case $host_os in 10365 aix3*) 10366 test "$enable_shared" = yes && enable_static=no 10367 if test -n "$RANLIB"; then 10368 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10369 postinstall_cmds='$RANLIB $lib' 10370 fi 10371 ;; 10372 10373 aix[4-9]*) 10374 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10375 test "$enable_shared" = yes && enable_static=no 10376 fi 10377 ;; 10378 esac 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10380$as_echo "$enable_shared" >&6; } 10381 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10383$as_echo_n "checking whether to build static libraries... " >&6; } 10384 # Make sure either enable_shared or enable_static is yes. 10385 test "$enable_shared" = yes || enable_static=yes 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10387$as_echo "$enable_static" >&6; } 10388 10389 10390 10391 10392fi 10393ac_ext=c 10394ac_cpp='$CPP $CPPFLAGS' 10395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10397ac_compiler_gnu=$ac_cv_c_compiler_gnu 10398 10399CC="$lt_save_CC" 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 ac_config_commands="$ac_config_commands libtool" 10414 10415 10416 10417 10418# Only expand once: 10419 10420 10421 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 10423$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 10424if test "${ac_cv_prog_cc_c99+set}" = set; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 ac_cv_prog_cc_c99=no 10428ac_save_CC=$CC 10429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10430/* end confdefs.h. */ 10431#include <stdarg.h> 10432#include <stdbool.h> 10433#include <stdlib.h> 10434#include <wchar.h> 10435#include <stdio.h> 10436 10437// Check varargs macros. These examples are taken from C99 6.10.3.5. 10438#define debug(...) fprintf (stderr, __VA_ARGS__) 10439#define showlist(...) puts (#__VA_ARGS__) 10440#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 10441static void 10442test_varargs_macros (void) 10443{ 10444 int x = 1234; 10445 int y = 5678; 10446 debug ("Flag"); 10447 debug ("X = %d\n", x); 10448 showlist (The first, second, and third items.); 10449 report (x>y, "x is %d but y is %d", x, y); 10450} 10451 10452// Check long long types. 10453#define BIG64 18446744073709551615ull 10454#define BIG32 4294967295ul 10455#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 10456#if !BIG_OK 10457 your preprocessor is broken; 10458#endif 10459#if BIG_OK 10460#else 10461 your preprocessor is broken; 10462#endif 10463static long long int bignum = -9223372036854775807LL; 10464static unsigned long long int ubignum = BIG64; 10465 10466struct incomplete_array 10467{ 10468 int datasize; 10469 double data[]; 10470}; 10471 10472struct named_init { 10473 int number; 10474 const wchar_t *name; 10475 double average; 10476}; 10477 10478typedef const char *ccp; 10479 10480static inline int 10481test_restrict (ccp restrict text) 10482{ 10483 // See if C++-style comments work. 10484 // Iterate through items via the restricted pointer. 10485 // Also check for declarations in for loops. 10486 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 10487 continue; 10488 return 0; 10489} 10490 10491// Check varargs and va_copy. 10492static void 10493test_varargs (const char *format, ...) 10494{ 10495 va_list args; 10496 va_start (args, format); 10497 va_list args_copy; 10498 va_copy (args_copy, args); 10499 10500 const char *str; 10501 int number; 10502 float fnumber; 10503 10504 while (*format) 10505 { 10506 switch (*format++) 10507 { 10508 case 's': // string 10509 str = va_arg (args_copy, const char *); 10510 break; 10511 case 'd': // int 10512 number = va_arg (args_copy, int); 10513 break; 10514 case 'f': // float 10515 fnumber = va_arg (args_copy, double); 10516 break; 10517 default: 10518 break; 10519 } 10520 } 10521 va_end (args_copy); 10522 va_end (args); 10523} 10524 10525int 10526main () 10527{ 10528 10529 // Check bool. 10530 _Bool success = false; 10531 10532 // Check restrict. 10533 if (test_restrict ("String literal") == 0) 10534 success = true; 10535 char *restrict newvar = "Another string"; 10536 10537 // Check varargs. 10538 test_varargs ("s, d' f .", "string", 65, 34.234); 10539 test_varargs_macros (); 10540 10541 // Check flexible array members. 10542 struct incomplete_array *ia = 10543 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 10544 ia->datasize = 10; 10545 for (int i = 0; i < ia->datasize; ++i) 10546 ia->data[i] = i * 1.234; 10547 10548 // Check named initializers. 10549 struct named_init ni = { 10550 .number = 34, 10551 .name = L"Test wide string", 10552 .average = 543.34343, 10553 }; 10554 10555 ni.number = 58; 10556 10557 int dynamic_array[ni.number]; 10558 dynamic_array[ni.number - 1] = 543; 10559 10560 // work around unused variable warnings 10561 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 10562 || dynamic_array[ni.number - 1] != 543); 10563 10564 ; 10565 return 0; 10566} 10567_ACEOF 10568for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 10569do 10570 CC="$ac_save_CC $ac_arg" 10571 if ac_fn_c_try_compile "$LINENO"; then : 10572 ac_cv_prog_cc_c99=$ac_arg 10573fi 10574rm -f core conftest.err conftest.$ac_objext 10575 test "x$ac_cv_prog_cc_c99" != "xno" && break 10576done 10577rm -f conftest.$ac_ext 10578CC=$ac_save_CC 10579 10580fi 10581# AC_CACHE_VAL 10582case "x$ac_cv_prog_cc_c99" in 10583 x) 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 10585$as_echo "none needed" >&6; } ;; 10586 xno) 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 10588$as_echo "unsupported" >&6; } ;; 10589 *) 10590 CC="$CC $ac_cv_prog_cc_c99" 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 10592$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 10593esac 10594if test "x$ac_cv_prog_cc_c99" != xno; then : 10595 10596fi 10597 10598 10599 10600 10601if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10602 if test -n "$ac_tool_prefix"; then 10603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10604set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10606$as_echo_n "checking for $ac_word... " >&6; } 10607if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10608 $as_echo_n "(cached) " >&6 10609else 10610 case $PKG_CONFIG in 10611 [\\/]* | ?:[\\/]*) 10612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10613 ;; 10614 *) 10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10616for as_dir in $PATH 10617do 10618 IFS=$as_save_IFS 10619 test -z "$as_dir" && as_dir=. 10620 for ac_exec_ext in '' $ac_executable_extensions; do 10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10624 break 2 10625 fi 10626done 10627 done 10628IFS=$as_save_IFS 10629 10630 ;; 10631esac 10632fi 10633PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10634if test -n "$PKG_CONFIG"; then 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10636$as_echo "$PKG_CONFIG" >&6; } 10637else 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10639$as_echo "no" >&6; } 10640fi 10641 10642 10643fi 10644if test -z "$ac_cv_path_PKG_CONFIG"; then 10645 ac_pt_PKG_CONFIG=$PKG_CONFIG 10646 # Extract the first word of "pkg-config", so it can be a program name with args. 10647set dummy pkg-config; ac_word=$2 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10649$as_echo_n "checking for $ac_word... " >&6; } 10650if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 10651 $as_echo_n "(cached) " >&6 10652else 10653 case $ac_pt_PKG_CONFIG in 10654 [\\/]* | ?:[\\/]*) 10655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10656 ;; 10657 *) 10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10659for as_dir in $PATH 10660do 10661 IFS=$as_save_IFS 10662 test -z "$as_dir" && as_dir=. 10663 for ac_exec_ext in '' $ac_executable_extensions; do 10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10667 break 2 10668 fi 10669done 10670 done 10671IFS=$as_save_IFS 10672 10673 ;; 10674esac 10675fi 10676ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10677if test -n "$ac_pt_PKG_CONFIG"; then 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10679$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10680else 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10682$as_echo "no" >&6; } 10683fi 10684 10685 if test "x$ac_pt_PKG_CONFIG" = x; then 10686 PKG_CONFIG="" 10687 else 10688 case $cross_compiling:$ac_tool_warned in 10689yes:) 10690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10692ac_tool_warned=yes ;; 10693esac 10694 PKG_CONFIG=$ac_pt_PKG_CONFIG 10695 fi 10696else 10697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10698fi 10699 10700fi 10701if test -n "$PKG_CONFIG"; then 10702 _pkg_min_version=0.9.0 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10704$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10707$as_echo "yes" >&6; } 10708 else 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10710$as_echo "no" >&6; } 10711 PKG_CONFIG="" 10712 fi 10713 10714fi 10715 10716 10717 10718 10719if test "x$GCC" = xyes ; then 10720 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 10721-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 10722-Wbad-function-cast -Wformat=2" 10723 case `$CC -dumpversion` in 10724 3.4.* | 4.*) 10725 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 10726 ;; 10727 esac 10728else 10729 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 10730if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 10731 SUNCC="yes" 10732else 10733 SUNCC="no" 10734fi 10735 10736 if test "x$SUNCC" = "xyes"; then 10737 CWARNFLAGS="-v" 10738 fi 10739fi 10740 10741 10742 10743# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 10744 10745 10746 10747# Check whether --enable-strict-compilation was given. 10748if test "${enable_strict_compilation+set}" = set; then : 10749 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10750else 10751 STRICT_COMPILE=no 10752fi 10753 10754if test "x$STRICT_COMPILE" = "xyes"; then 10755 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 10756if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 10757 SUNCC="yes" 10758else 10759 SUNCC="no" 10760fi 10761 10762 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 10763if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 10764 INTELCC="yes" 10765else 10766 INTELCC="no" 10767fi 10768 10769 if test "x$GCC" = xyes ; then 10770 STRICT_CFLAGS="-pedantic -Werror" 10771 elif test "x$SUNCC" = "xyes"; then 10772 STRICT_CFLAGS="-errwarn" 10773 elif test "x$INTELCC" = "xyes"; then 10774 STRICT_CFLAGS="-Werror" 10775 fi 10776fi 10777CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10778 10779 10780 10781 10782cat >>confdefs.h <<_ACEOF 10783#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10784_ACEOF 10785 10786 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10787 if test "x$PVM" = "x"; then 10788 PVM="0" 10789 fi 10790 10791cat >>confdefs.h <<_ACEOF 10792#define PACKAGE_VERSION_MINOR $PVM 10793_ACEOF 10794 10795 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10796 if test "x$PVP" = "x"; then 10797 PVP="0" 10798 fi 10799 10800cat >>confdefs.h <<_ACEOF 10801#define PACKAGE_VERSION_PATCHLEVEL $PVP 10802_ACEOF 10803 10804 10805 10806CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10807mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10808|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10809echo 'git directory not found: installing possibly empty changelog.' >&2)" 10810 10811 10812 10813 10814macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10815INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10816mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10817|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10818echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10819 10820 10821 10822 10823 10824 10825if test x$APP_MAN_SUFFIX = x ; then 10826 APP_MAN_SUFFIX=1 10827fi 10828if test x$APP_MAN_DIR = x ; then 10829 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10830fi 10831 10832if test x$LIB_MAN_SUFFIX = x ; then 10833 LIB_MAN_SUFFIX=3 10834fi 10835if test x$LIB_MAN_DIR = x ; then 10836 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10837fi 10838 10839if test x$FILE_MAN_SUFFIX = x ; then 10840 case $host_os in 10841 solaris*) FILE_MAN_SUFFIX=4 ;; 10842 *) FILE_MAN_SUFFIX=5 ;; 10843 esac 10844fi 10845if test x$FILE_MAN_DIR = x ; then 10846 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10847fi 10848 10849if test x$MISC_MAN_SUFFIX = x ; then 10850 case $host_os in 10851 solaris*) MISC_MAN_SUFFIX=5 ;; 10852 *) MISC_MAN_SUFFIX=7 ;; 10853 esac 10854fi 10855if test x$MISC_MAN_DIR = x ; then 10856 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10857fi 10858 10859if test x$DRIVER_MAN_SUFFIX = x ; then 10860 case $host_os in 10861 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10862 *) DRIVER_MAN_SUFFIX=4 ;; 10863 esac 10864fi 10865if test x$DRIVER_MAN_DIR = x ; then 10866 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10867fi 10868 10869if test x$ADMIN_MAN_SUFFIX = x ; then 10870 case $host_os in 10871 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10872 *) ADMIN_MAN_SUFFIX=8 ;; 10873 esac 10874fi 10875if test x$ADMIN_MAN_DIR = x ; then 10876 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10877fi 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893XORG_MAN_PAGE="X Version 11" 10894 10895MAN_SUBSTS="\ 10896 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10897 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10898 -e 's|__xservername__|Xorg|g' \ 10899 -e 's|__xconfigfile__|xorg.conf|g' \ 10900 -e 's|__projectroot__|\$(prefix)|g' \ 10901 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10902 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10903 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10904 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10905 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10906 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10907 10908 10909 10910# Check whether --enable-silent-rules was given. 10911if test "${enable_silent_rules+set}" = set; then : 10912 enableval=$enable_silent_rules; 10913fi 10914 10915case $enable_silent_rules in 10916yes) AM_DEFAULT_VERBOSITY=0;; 10917no) AM_DEFAULT_VERBOSITY=1;; 10918*) AM_DEFAULT_VERBOSITY=0;; 10919esac 10920AM_BACKSLASH='\' 10921 10922 10923 10924# Check fixesext configuration, strip extra digits from package version to 10925# find the required protocol version 10926 10927FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 10928 10929 10930pkg_failed=no 10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5 10932$as_echo_n "checking for FIXESEXT... " >&6; } 10933 10934if test -n "$FIXESEXT_CFLAGS"; then 10935 pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS" 10936 elif test -n "$PKG_CONFIG"; then 10937 if test -n "$PKG_CONFIG" && \ 10938 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5 10939 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5 10940 ac_status=$? 10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10942 test $ac_status = 0; }; then 10943 pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null` 10944else 10945 pkg_failed=yes 10946fi 10947 else 10948 pkg_failed=untried 10949fi 10950if test -n "$FIXESEXT_LIBS"; then 10951 pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS" 10952 elif test -n "$PKG_CONFIG"; then 10953 if test -n "$PKG_CONFIG" && \ 10954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5 10955 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5 10956 ac_status=$? 10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10958 test $ac_status = 0; }; then 10959 pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null` 10960else 10961 pkg_failed=yes 10962fi 10963 else 10964 pkg_failed=untried 10965fi 10966 10967 10968 10969if test $pkg_failed = yes; then 10970 10971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10972 _pkg_short_errors_supported=yes 10973else 10974 _pkg_short_errors_supported=no 10975fi 10976 if test $_pkg_short_errors_supported = yes; then 10977 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1` 10978 else 10979 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1` 10980 fi 10981 # Put the nasty error message in config.log where it belongs 10982 echo "$FIXESEXT_PKG_ERRORS" >&5 10983 10984 as_fn_error "Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto x11) were not met: 10985 10986$FIXESEXT_PKG_ERRORS 10987 10988Consider adjusting the PKG_CONFIG_PATH environment variable if you 10989installed software in a non-standard prefix. 10990 10991Alternatively, you may set the environment variables FIXESEXT_CFLAGS 10992and FIXESEXT_LIBS to avoid the need to call pkg-config. 10993See the pkg-config man page for more details. 10994" "$LINENO" 5 10995elif test $pkg_failed = untried; then 10996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10998as_fn_error "The pkg-config script could not be found or is too old. Make sure it 10999is in your PATH or set the PKG_CONFIG environment variable to the full 11000path to pkg-config. 11001 11002Alternatively, you may set the environment variables FIXESEXT_CFLAGS 11003and FIXESEXT_LIBS to avoid the need to call pkg-config. 11004See the pkg-config man page for more details. 11005 11006To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11007See \`config.log' for more details." "$LINENO" 5; } 11008else 11009 FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS 11010 FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11012$as_echo "yes" >&6; } 11013 : 11014fi 11015 11016 11017 11018ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc" 11019 11020cat >confcache <<\_ACEOF 11021# This file is a shell script that caches the results of configure 11022# tests run on this system so they can be shared between configure 11023# scripts and configure runs, see configure's option --config-cache. 11024# It is not useful on other systems. If it contains results you don't 11025# want to keep, you may remove or edit it. 11026# 11027# config.status only pays attention to the cache file if you give it 11028# the --recheck option to rerun configure. 11029# 11030# `ac_cv_env_foo' variables (set or unset) will be overridden when 11031# loading this file, other *unset* `ac_cv_foo' will be assigned the 11032# following values. 11033 11034_ACEOF 11035 11036# The following way of writing the cache mishandles newlines in values, 11037# but we know of no workaround that is simple, portable, and efficient. 11038# So, we kill variables containing newlines. 11039# Ultrix sh set writes to stderr and can't be redirected directly, 11040# and sets the high bit in the cache file unless we assign to the vars. 11041( 11042 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11043 eval ac_val=\$$ac_var 11044 case $ac_val in #( 11045 *${as_nl}*) 11046 case $ac_var in #( 11047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11048$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11049 esac 11050 case $ac_var in #( 11051 _ | IFS | as_nl) ;; #( 11052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11053 *) { eval $ac_var=; unset $ac_var;} ;; 11054 esac ;; 11055 esac 11056 done 11057 11058 (set) 2>&1 | 11059 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11060 *${as_nl}ac_space=\ *) 11061 # `set' does not quote correctly, so add quotes: double-quote 11062 # substitution turns \\\\ into \\, and sed turns \\ into \. 11063 sed -n \ 11064 "s/'/'\\\\''/g; 11065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11066 ;; #( 11067 *) 11068 # `set' quotes correctly as required by POSIX, so do not add quotes. 11069 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11070 ;; 11071 esac | 11072 sort 11073) | 11074 sed ' 11075 /^ac_cv_env_/b end 11076 t clear 11077 :clear 11078 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11079 t end 11080 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11081 :end' >>confcache 11082if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11083 if test -w "$cache_file"; then 11084 test "x$cache_file" != "x/dev/null" && 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11086$as_echo "$as_me: updating cache $cache_file" >&6;} 11087 cat confcache >$cache_file 11088 else 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11090$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11091 fi 11092fi 11093rm -f confcache 11094 11095test "x$prefix" = xNONE && prefix=$ac_default_prefix 11096# Let make expand exec_prefix. 11097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11098 11099DEFS=-DHAVE_CONFIG_H 11100 11101ac_libobjs= 11102ac_ltlibobjs= 11103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11104 # 1. Remove the extension, and $U if already installed. 11105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11108 # will be set to the directory where LIBOBJS objects are built. 11109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11111done 11112LIBOBJS=$ac_libobjs 11113 11114LTLIBOBJS=$ac_ltlibobjs 11115 11116 11117 if test -n "$EXEEXT"; then 11118 am__EXEEXT_TRUE= 11119 am__EXEEXT_FALSE='#' 11120else 11121 am__EXEEXT_TRUE='#' 11122 am__EXEEXT_FALSE= 11123fi 11124 11125if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11126 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11127Usually this means the macro was only invoked conditionally." "$LINENO" 5 11128fi 11129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11130 as_fn_error "conditional \"AMDEP\" was never defined. 11131Usually this means the macro was only invoked conditionally." "$LINENO" 5 11132fi 11133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11134 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11135Usually this means the macro was only invoked conditionally." "$LINENO" 5 11136fi 11137 11138: ${CONFIG_STATUS=./config.status} 11139ac_write_fail=0 11140ac_clean_files_save=$ac_clean_files 11141ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11143$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11144as_write_fail=0 11145cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11146#! $SHELL 11147# Generated by $as_me. 11148# Run this file to recreate the current configuration. 11149# Compiler output produced by configure, useful for debugging 11150# configure, is in config.log if it exists. 11151 11152debug=false 11153ac_cs_recheck=false 11154ac_cs_silent=false 11155 11156SHELL=\${CONFIG_SHELL-$SHELL} 11157export SHELL 11158_ASEOF 11159cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11160## -------------------- ## 11161## M4sh Initialization. ## 11162## -------------------- ## 11163 11164# Be more Bourne compatible 11165DUALCASE=1; export DUALCASE # for MKS sh 11166if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11167 emulate sh 11168 NULLCMD=: 11169 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11170 # is contrary to our usage. Disable this feature. 11171 alias -g '${1+"$@"}'='"$@"' 11172 setopt NO_GLOB_SUBST 11173else 11174 case `(set -o) 2>/dev/null` in #( 11175 *posix*) : 11176 set -o posix ;; #( 11177 *) : 11178 ;; 11179esac 11180fi 11181 11182 11183as_nl=' 11184' 11185export as_nl 11186# Printing a long string crashes Solaris 7 /usr/bin/printf. 11187as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11188as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11189as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11190# Prefer a ksh shell builtin over an external printf program on Solaris, 11191# but without wasting forks for bash or zsh. 11192if test -z "$BASH_VERSION$ZSH_VERSION" \ 11193 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11194 as_echo='print -r --' 11195 as_echo_n='print -rn --' 11196elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11197 as_echo='printf %s\n' 11198 as_echo_n='printf %s' 11199else 11200 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11201 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11202 as_echo_n='/usr/ucb/echo -n' 11203 else 11204 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11205 as_echo_n_body='eval 11206 arg=$1; 11207 case $arg in #( 11208 *"$as_nl"*) 11209 expr "X$arg" : "X\\(.*\\)$as_nl"; 11210 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11211 esac; 11212 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11213 ' 11214 export as_echo_n_body 11215 as_echo_n='sh -c $as_echo_n_body as_echo' 11216 fi 11217 export as_echo_body 11218 as_echo='sh -c $as_echo_body as_echo' 11219fi 11220 11221# The user is always right. 11222if test "${PATH_SEPARATOR+set}" != set; then 11223 PATH_SEPARATOR=: 11224 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11225 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11226 PATH_SEPARATOR=';' 11227 } 11228fi 11229 11230 11231# IFS 11232# We need space, tab and new line, in precisely that order. Quoting is 11233# there to prevent editors from complaining about space-tab. 11234# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11235# splitting by setting IFS to empty value.) 11236IFS=" "" $as_nl" 11237 11238# Find who we are. Look in the path if we contain no directory separator. 11239case $0 in #(( 11240 *[\\/]* ) as_myself=$0 ;; 11241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11242for as_dir in $PATH 11243do 11244 IFS=$as_save_IFS 11245 test -z "$as_dir" && as_dir=. 11246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11247 done 11248IFS=$as_save_IFS 11249 11250 ;; 11251esac 11252# We did not find ourselves, most probably we were run as `sh COMMAND' 11253# in which case we are not to be found in the path. 11254if test "x$as_myself" = x; then 11255 as_myself=$0 11256fi 11257if test ! -f "$as_myself"; then 11258 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11259 exit 1 11260fi 11261 11262# Unset variables that we do not need and which cause bugs (e.g. in 11263# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11264# suppresses any "Segmentation fault" message there. '((' could 11265# trigger a bug in pdksh 5.2.14. 11266for as_var in BASH_ENV ENV MAIL MAILPATH 11267do eval test x\${$as_var+set} = xset \ 11268 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11269done 11270PS1='$ ' 11271PS2='> ' 11272PS4='+ ' 11273 11274# NLS nuisances. 11275LC_ALL=C 11276export LC_ALL 11277LANGUAGE=C 11278export LANGUAGE 11279 11280# CDPATH. 11281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11282 11283 11284# as_fn_error ERROR [LINENO LOG_FD] 11285# --------------------------------- 11286# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11287# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11288# script with status $?, using 1 if that was 0. 11289as_fn_error () 11290{ 11291 as_status=$?; test $as_status -eq 0 && as_status=1 11292 if test "$3"; then 11293 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11294 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11295 fi 11296 $as_echo "$as_me: error: $1" >&2 11297 as_fn_exit $as_status 11298} # as_fn_error 11299 11300 11301# as_fn_set_status STATUS 11302# ----------------------- 11303# Set $? to STATUS, without forking. 11304as_fn_set_status () 11305{ 11306 return $1 11307} # as_fn_set_status 11308 11309# as_fn_exit STATUS 11310# ----------------- 11311# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11312as_fn_exit () 11313{ 11314 set +e 11315 as_fn_set_status $1 11316 exit $1 11317} # as_fn_exit 11318 11319# as_fn_unset VAR 11320# --------------- 11321# Portably unset VAR. 11322as_fn_unset () 11323{ 11324 { eval $1=; unset $1;} 11325} 11326as_unset=as_fn_unset 11327# as_fn_append VAR VALUE 11328# ---------------------- 11329# Append the text in VALUE to the end of the definition contained in VAR. Take 11330# advantage of any shell optimizations that allow amortized linear growth over 11331# repeated appends, instead of the typical quadratic growth present in naive 11332# implementations. 11333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11334 eval 'as_fn_append () 11335 { 11336 eval $1+=\$2 11337 }' 11338else 11339 as_fn_append () 11340 { 11341 eval $1=\$$1\$2 11342 } 11343fi # as_fn_append 11344 11345# as_fn_arith ARG... 11346# ------------------ 11347# Perform arithmetic evaluation on the ARGs, and store the result in the 11348# global $as_val. Take advantage of shells that can avoid forks. The arguments 11349# must be portable across $(()) and expr. 11350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11351 eval 'as_fn_arith () 11352 { 11353 as_val=$(( $* )) 11354 }' 11355else 11356 as_fn_arith () 11357 { 11358 as_val=`expr "$@" || test $? -eq 1` 11359 } 11360fi # as_fn_arith 11361 11362 11363if expr a : '\(a\)' >/dev/null 2>&1 && 11364 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11365 as_expr=expr 11366else 11367 as_expr=false 11368fi 11369 11370if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11371 as_basename=basename 11372else 11373 as_basename=false 11374fi 11375 11376if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11377 as_dirname=dirname 11378else 11379 as_dirname=false 11380fi 11381 11382as_me=`$as_basename -- "$0" || 11383$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11384 X"$0" : 'X\(//\)$' \| \ 11385 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11386$as_echo X/"$0" | 11387 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11388 s//\1/ 11389 q 11390 } 11391 /^X\/\(\/\/\)$/{ 11392 s//\1/ 11393 q 11394 } 11395 /^X\/\(\/\).*/{ 11396 s//\1/ 11397 q 11398 } 11399 s/.*/./; q'` 11400 11401# Avoid depending upon Character Ranges. 11402as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11403as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11404as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11405as_cr_digits='0123456789' 11406as_cr_alnum=$as_cr_Letters$as_cr_digits 11407 11408ECHO_C= ECHO_N= ECHO_T= 11409case `echo -n x` in #((((( 11410-n*) 11411 case `echo 'xy\c'` in 11412 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11413 xy) ECHO_C='\c';; 11414 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11415 ECHO_T=' ';; 11416 esac;; 11417*) 11418 ECHO_N='-n';; 11419esac 11420 11421rm -f conf$$ conf$$.exe conf$$.file 11422if test -d conf$$.dir; then 11423 rm -f conf$$.dir/conf$$.file 11424else 11425 rm -f conf$$.dir 11426 mkdir conf$$.dir 2>/dev/null 11427fi 11428if (echo >conf$$.file) 2>/dev/null; then 11429 if ln -s conf$$.file conf$$ 2>/dev/null; then 11430 as_ln_s='ln -s' 11431 # ... but there are two gotchas: 11432 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11433 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11434 # In both cases, we have to default to `cp -p'. 11435 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11436 as_ln_s='cp -p' 11437 elif ln conf$$.file conf$$ 2>/dev/null; then 11438 as_ln_s=ln 11439 else 11440 as_ln_s='cp -p' 11441 fi 11442else 11443 as_ln_s='cp -p' 11444fi 11445rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11446rmdir conf$$.dir 2>/dev/null 11447 11448 11449# as_fn_mkdir_p 11450# ------------- 11451# Create "$as_dir" as a directory, including parents if necessary. 11452as_fn_mkdir_p () 11453{ 11454 11455 case $as_dir in #( 11456 -*) as_dir=./$as_dir;; 11457 esac 11458 test -d "$as_dir" || eval $as_mkdir_p || { 11459 as_dirs= 11460 while :; do 11461 case $as_dir in #( 11462 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11463 *) as_qdir=$as_dir;; 11464 esac 11465 as_dirs="'$as_qdir' $as_dirs" 11466 as_dir=`$as_dirname -- "$as_dir" || 11467$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11468 X"$as_dir" : 'X\(//\)[^/]' \| \ 11469 X"$as_dir" : 'X\(//\)$' \| \ 11470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11471$as_echo X"$as_dir" | 11472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11473 s//\1/ 11474 q 11475 } 11476 /^X\(\/\/\)[^/].*/{ 11477 s//\1/ 11478 q 11479 } 11480 /^X\(\/\/\)$/{ 11481 s//\1/ 11482 q 11483 } 11484 /^X\(\/\).*/{ 11485 s//\1/ 11486 q 11487 } 11488 s/.*/./; q'` 11489 test -d "$as_dir" && break 11490 done 11491 test -z "$as_dirs" || eval "mkdir $as_dirs" 11492 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11493 11494 11495} # as_fn_mkdir_p 11496if mkdir -p . 2>/dev/null; then 11497 as_mkdir_p='mkdir -p "$as_dir"' 11498else 11499 test -d ./-p && rmdir ./-p 11500 as_mkdir_p=false 11501fi 11502 11503if test -x / >/dev/null 2>&1; then 11504 as_test_x='test -x' 11505else 11506 if ls -dL / >/dev/null 2>&1; then 11507 as_ls_L_option=L 11508 else 11509 as_ls_L_option= 11510 fi 11511 as_test_x=' 11512 eval sh -c '\'' 11513 if test -d "$1"; then 11514 test -d "$1/."; 11515 else 11516 case $1 in #( 11517 -*)set "./$1";; 11518 esac; 11519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11520 ???[sx]*):;;*)false;;esac;fi 11521 '\'' sh 11522 ' 11523fi 11524as_executable_p=$as_test_x 11525 11526# Sed expression to map a string onto a valid CPP name. 11527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11528 11529# Sed expression to map a string onto a valid variable name. 11530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11531 11532 11533exec 6>&1 11534## ----------------------------------- ## 11535## Main body of $CONFIG_STATUS script. ## 11536## ----------------------------------- ## 11537_ASEOF 11538test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11539 11540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11541# Save the log message, to keep $0 and so on meaningful, and to 11542# report actual input values of CONFIG_FILES etc. instead of their 11543# values after options handling. 11544ac_log=" 11545This file was extended by libXfixes $as_me 4.0.5, which was 11546generated by GNU Autoconf 2.65. Invocation command line was 11547 11548 CONFIG_FILES = $CONFIG_FILES 11549 CONFIG_HEADERS = $CONFIG_HEADERS 11550 CONFIG_LINKS = $CONFIG_LINKS 11551 CONFIG_COMMANDS = $CONFIG_COMMANDS 11552 $ $0 $@ 11553 11554on `(hostname || uname -n) 2>/dev/null | sed 1q` 11555" 11556 11557_ACEOF 11558 11559case $ac_config_files in *" 11560"*) set x $ac_config_files; shift; ac_config_files=$*;; 11561esac 11562 11563case $ac_config_headers in *" 11564"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11565esac 11566 11567 11568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11569# Files that config.status was made for. 11570config_files="$ac_config_files" 11571config_headers="$ac_config_headers" 11572config_commands="$ac_config_commands" 11573 11574_ACEOF 11575 11576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11577ac_cs_usage="\ 11578\`$as_me' instantiates files and other configuration actions 11579from templates according to the current configuration. Unless the files 11580and actions are specified as TAGs, all are instantiated by default. 11581 11582Usage: $0 [OPTION]... [TAG]... 11583 11584 -h, --help print this help, then exit 11585 -V, --version print version number and configuration settings, then exit 11586 --config print configuration, then exit 11587 -q, --quiet, --silent 11588 do not print progress messages 11589 -d, --debug don't remove temporary files 11590 --recheck update $as_me by reconfiguring in the same conditions 11591 --file=FILE[:TEMPLATE] 11592 instantiate the configuration file FILE 11593 --header=FILE[:TEMPLATE] 11594 instantiate the configuration header FILE 11595 11596Configuration files: 11597$config_files 11598 11599Configuration headers: 11600$config_headers 11601 11602Configuration commands: 11603$config_commands 11604 11605Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11606 11607_ACEOF 11608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11609ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11610ac_cs_version="\\ 11611libXfixes config.status 4.0.5 11612configured by $0, generated by GNU Autoconf 2.65, 11613 with options \\"\$ac_cs_config\\" 11614 11615Copyright (C) 2009 Free Software Foundation, Inc. 11616This config.status script is free software; the Free Software Foundation 11617gives unlimited permission to copy, distribute and modify it." 11618 11619ac_pwd='$ac_pwd' 11620srcdir='$srcdir' 11621INSTALL='$INSTALL' 11622MKDIR_P='$MKDIR_P' 11623AWK='$AWK' 11624test -n "\$AWK" || AWK=awk 11625_ACEOF 11626 11627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11628# The default lists apply if the user does not specify any file. 11629ac_need_defaults=: 11630while test $# != 0 11631do 11632 case $1 in 11633 --*=*) 11634 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11636 ac_shift=: 11637 ;; 11638 *) 11639 ac_option=$1 11640 ac_optarg=$2 11641 ac_shift=shift 11642 ;; 11643 esac 11644 11645 case $ac_option in 11646 # Handling of the options. 11647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11648 ac_cs_recheck=: ;; 11649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11650 $as_echo "$ac_cs_version"; exit ;; 11651 --config | --confi | --conf | --con | --co | --c ) 11652 $as_echo "$ac_cs_config"; exit ;; 11653 --debug | --debu | --deb | --de | --d | -d ) 11654 debug=: ;; 11655 --file | --fil | --fi | --f ) 11656 $ac_shift 11657 case $ac_optarg in 11658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11659 esac 11660 as_fn_append CONFIG_FILES " '$ac_optarg'" 11661 ac_need_defaults=false;; 11662 --header | --heade | --head | --hea ) 11663 $ac_shift 11664 case $ac_optarg in 11665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11666 esac 11667 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11668 ac_need_defaults=false;; 11669 --he | --h) 11670 # Conflict between --help and --header 11671 as_fn_error "ambiguous option: \`$1' 11672Try \`$0 --help' for more information.";; 11673 --help | --hel | -h ) 11674 $as_echo "$ac_cs_usage"; exit ;; 11675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11676 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11677 ac_cs_silent=: ;; 11678 11679 # This is an error. 11680 -*) as_fn_error "unrecognized option: \`$1' 11681Try \`$0 --help' for more information." ;; 11682 11683 *) as_fn_append ac_config_targets " $1" 11684 ac_need_defaults=false ;; 11685 11686 esac 11687 shift 11688done 11689 11690ac_configure_extra_args= 11691 11692if $ac_cs_silent; then 11693 exec 6>/dev/null 11694 ac_configure_extra_args="$ac_configure_extra_args --silent" 11695fi 11696 11697_ACEOF 11698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11699if \$ac_cs_recheck; then 11700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11701 shift 11702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11703 CONFIG_SHELL='$SHELL' 11704 export CONFIG_SHELL 11705 exec "\$@" 11706fi 11707 11708_ACEOF 11709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11710exec 5>>config.log 11711{ 11712 echo 11713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11714## Running $as_me. ## 11715_ASBOX 11716 $as_echo "$ac_log" 11717} >&5 11718 11719_ACEOF 11720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11721# 11722# INIT-COMMANDS 11723# 11724AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11725 11726 11727# The HP-UX ksh and POSIX shell print the target directory to stdout 11728# if CDPATH is set. 11729(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11730 11731sed_quote_subst='$sed_quote_subst' 11732double_quote_subst='$double_quote_subst' 11733delay_variable_subst='$delay_variable_subst' 11734macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 11735macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 11736enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 11737enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 11738pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 11739enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 11740host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 11741host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 11742host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 11743build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 11744build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 11745build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 11746SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 11747Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 11748GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 11749EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 11750FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 11751LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 11752NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 11753LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 11754max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 11755ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 11756exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 11757lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 11758lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 11759lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 11760reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 11761reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11762OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 11763deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 11764file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 11765AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 11766AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11767STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 11768RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 11769old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11770old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11771old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11772CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 11773CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11774compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 11775GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 11776lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 11777lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 11778lt_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"`' 11779lt_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"`' 11780objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 11781SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 11782ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 11783MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 11784lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 11785lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 11786lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 11787lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 11788lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 11789need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 11790DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 11791NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 11792LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 11793OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 11794OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 11795libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 11796shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11797extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11798archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 11799enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 11800export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11801whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11802compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 11803old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11804old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11805archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11806archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11807module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11808module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11809with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 11810allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11811no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11812hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11813hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 11814hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 11815hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 11816hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 11817hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 11818hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11819hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 11820inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 11821link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 11822fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 11823always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 11824export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11825exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11826include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11827prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11828file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 11829variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 11830need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 11831need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 11832version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 11833runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11834shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11835shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 11836libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11837library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 11838soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11839postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11840postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11841finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11842finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 11843hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 11844sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11845sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11846hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 11847enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 11848enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 11849enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 11850old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 11851striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 11852 11853LTCC='$LTCC' 11854LTCFLAGS='$LTCFLAGS' 11855compiler='$compiler_DEFAULT' 11856 11857# Quote evaled strings. 11858for var in SED \ 11859GREP \ 11860EGREP \ 11861FGREP \ 11862LD \ 11863NM \ 11864LN_S \ 11865lt_SP2NL \ 11866lt_NL2SP \ 11867reload_flag \ 11868OBJDUMP \ 11869deplibs_check_method \ 11870file_magic_cmd \ 11871AR \ 11872AR_FLAGS \ 11873STRIP \ 11874RANLIB \ 11875CC \ 11876CFLAGS \ 11877compiler \ 11878lt_cv_sys_global_symbol_pipe \ 11879lt_cv_sys_global_symbol_to_cdecl \ 11880lt_cv_sys_global_symbol_to_c_name_address \ 11881lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 11882SHELL \ 11883ECHO \ 11884lt_prog_compiler_no_builtin_flag \ 11885lt_prog_compiler_wl \ 11886lt_prog_compiler_pic \ 11887lt_prog_compiler_static \ 11888lt_cv_prog_compiler_c_o \ 11889need_locks \ 11890DSYMUTIL \ 11891NMEDIT \ 11892LIPO \ 11893OTOOL \ 11894OTOOL64 \ 11895shrext_cmds \ 11896export_dynamic_flag_spec \ 11897whole_archive_flag_spec \ 11898compiler_needs_object \ 11899with_gnu_ld \ 11900allow_undefined_flag \ 11901no_undefined_flag \ 11902hardcode_libdir_flag_spec \ 11903hardcode_libdir_flag_spec_ld \ 11904hardcode_libdir_separator \ 11905fix_srcfile_path \ 11906exclude_expsyms \ 11907include_expsyms \ 11908file_list_spec \ 11909variables_saved_for_relink \ 11910libname_spec \ 11911library_names_spec \ 11912soname_spec \ 11913finish_eval \ 11914old_striplib \ 11915striplib; do 11916 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 11917 *[\\\\\\\`\\"\\\$]*) 11918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 11919 ;; 11920 *) 11921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 11922 ;; 11923 esac 11924done 11925 11926# Double-quote double-evaled strings. 11927for var in reload_cmds \ 11928old_postinstall_cmds \ 11929old_postuninstall_cmds \ 11930old_archive_cmds \ 11931extract_expsyms_cmds \ 11932old_archive_from_new_cmds \ 11933old_archive_from_expsyms_cmds \ 11934archive_cmds \ 11935archive_expsym_cmds \ 11936module_cmds \ 11937module_expsym_cmds \ 11938export_symbols_cmds \ 11939prelink_cmds \ 11940postinstall_cmds \ 11941postuninstall_cmds \ 11942finish_cmds \ 11943sys_lib_search_path_spec \ 11944sys_lib_dlsearch_path_spec; do 11945 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 11946 *[\\\\\\\`\\"\\\$]*) 11947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 11948 ;; 11949 *) 11950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 11951 ;; 11952 esac 11953done 11954 11955# Fix-up fallback echo if it was mangled by the above quoting rules. 11956case \$lt_ECHO in 11957*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 11958 ;; 11959esac 11960 11961ac_aux_dir='$ac_aux_dir' 11962xsi_shell='$xsi_shell' 11963lt_shell_append='$lt_shell_append' 11964 11965# See if we are running on zsh, and set the options which allow our 11966# commands through without removal of \ escapes INIT. 11967if test -n "\${ZSH_VERSION+set}" ; then 11968 setopt NO_GLOB_SUBST 11969fi 11970 11971 11972 PACKAGE='$PACKAGE' 11973 VERSION='$VERSION' 11974 TIMESTAMP='$TIMESTAMP' 11975 RM='$RM' 11976 ofile='$ofile' 11977 11978 11979 11980 11981_ACEOF 11982 11983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11984 11985# Handling of arguments. 11986for ac_config_target in $ac_config_targets 11987do 11988 case $ac_config_target in 11989 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11990 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11991 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 11992 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11993 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11994 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11995 "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;; 11996 11997 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11998 esac 11999done 12000 12001 12002# If the user did not use the arguments to specify the items to instantiate, 12003# then the envvar interface is used. Set only those that are not. 12004# We use the long form for the default assignment because of an extremely 12005# bizarre bug on SunOS 4.1.3. 12006if $ac_need_defaults; then 12007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12010fi 12011 12012# Have a temporary directory for convenience. Make it in the build tree 12013# simply because there is no reason against having it here, and in addition, 12014# creating and moving files from /tmp can sometimes cause problems. 12015# Hook for its removal unless debugging. 12016# Note that there is a small window in which the directory will not be cleaned: 12017# after its creation but before its name has been assigned to `$tmp'. 12018$debug || 12019{ 12020 tmp= 12021 trap 'exit_status=$? 12022 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12023' 0 12024 trap 'as_fn_exit 1' 1 2 13 15 12025} 12026# Create a (secure) tmp directory for tmp files. 12027 12028{ 12029 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12030 test -n "$tmp" && test -d "$tmp" 12031} || 12032{ 12033 tmp=./conf$$-$RANDOM 12034 (umask 077 && mkdir "$tmp") 12035} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12036 12037# Set up the scripts for CONFIG_FILES section. 12038# No need to generate them if there are no CONFIG_FILES. 12039# This happens for instance with `./config.status config.h'. 12040if test -n "$CONFIG_FILES"; then 12041 12042 12043ac_cr=`echo X | tr X '\015'` 12044# On cygwin, bash can eat \r inside `` if the user requested igncr. 12045# But we know of no other shell where ac_cr would be empty at this 12046# point, so we can use a bashism as a fallback. 12047if test "x$ac_cr" = x; then 12048 eval ac_cr=\$\'\\r\' 12049fi 12050ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12051if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12052 ac_cs_awk_cr='\r' 12053else 12054 ac_cs_awk_cr=$ac_cr 12055fi 12056 12057echo 'BEGIN {' >"$tmp/subs1.awk" && 12058_ACEOF 12059 12060 12061{ 12062 echo "cat >conf$$subs.awk <<_ACEOF" && 12063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12064 echo "_ACEOF" 12065} >conf$$subs.sh || 12066 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12067ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12068ac_delim='%!_!# ' 12069for ac_last_try in false false false false false :; do 12070 . ./conf$$subs.sh || 12071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12072 12073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12074 if test $ac_delim_n = $ac_delim_num; then 12075 break 12076 elif $ac_last_try; then 12077 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12078 else 12079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12080 fi 12081done 12082rm -f conf$$subs.sh 12083 12084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12085cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12086_ACEOF 12087sed -n ' 12088h 12089s/^/S["/; s/!.*/"]=/ 12090p 12091g 12092s/^[^!]*!// 12093:repl 12094t repl 12095s/'"$ac_delim"'$// 12096t delim 12097:nl 12098h 12099s/\(.\{148\}\)..*/\1/ 12100t more1 12101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12102p 12103n 12104b repl 12105:more1 12106s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12107p 12108g 12109s/.\{148\}// 12110t nl 12111:delim 12112h 12113s/\(.\{148\}\)..*/\1/ 12114t more2 12115s/["\\]/\\&/g; s/^/"/; s/$/"/ 12116p 12117b 12118:more2 12119s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12120p 12121g 12122s/.\{148\}// 12123t delim 12124' <conf$$subs.awk | sed ' 12125/^[^""]/{ 12126 N 12127 s/\n// 12128} 12129' >>$CONFIG_STATUS || ac_write_fail=1 12130rm -f conf$$subs.awk 12131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12132_ACAWK 12133cat >>"\$tmp/subs1.awk" <<_ACAWK && 12134 for (key in S) S_is_set[key] = 1 12135 FS = "" 12136 12137} 12138{ 12139 line = $ 0 12140 nfields = split(line, field, "@") 12141 substed = 0 12142 len = length(field[1]) 12143 for (i = 2; i < nfields; i++) { 12144 key = field[i] 12145 keylen = length(key) 12146 if (S_is_set[key]) { 12147 value = S[key] 12148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12149 len += length(value) + length(field[++i]) 12150 substed = 1 12151 } else 12152 len += 1 + keylen 12153 } 12154 12155 print line 12156} 12157 12158_ACAWK 12159_ACEOF 12160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12163else 12164 cat 12165fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12166 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12167_ACEOF 12168 12169# VPATH may cause trouble with some makes, so we remove $(srcdir), 12170# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12171# trailing colons and then remove the whole line if VPATH becomes empty 12172# (actually we leave an empty line to preserve line numbers). 12173if test "x$srcdir" = x.; then 12174 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12175s/:*\$(srcdir):*/:/ 12176s/:*\${srcdir}:*/:/ 12177s/:*@srcdir@:*/:/ 12178s/^\([^=]*=[ ]*\):*/\1/ 12179s/:*$// 12180s/^[^=]*=[ ]*$// 12181}' 12182fi 12183 12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12185fi # test -n "$CONFIG_FILES" 12186 12187# Set up the scripts for CONFIG_HEADERS section. 12188# No need to generate them if there are no CONFIG_HEADERS. 12189# This happens for instance with `./config.status Makefile'. 12190if test -n "$CONFIG_HEADERS"; then 12191cat >"$tmp/defines.awk" <<\_ACAWK || 12192BEGIN { 12193_ACEOF 12194 12195# Transform confdefs.h into an awk script `defines.awk', embedded as 12196# here-document in config.status, that substitutes the proper values into 12197# config.h.in to produce config.h. 12198 12199# Create a delimiter string that does not exist in confdefs.h, to ease 12200# handling of long lines. 12201ac_delim='%!_!# ' 12202for ac_last_try in false false :; do 12203 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12204 if test -z "$ac_t"; then 12205 break 12206 elif $ac_last_try; then 12207 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12208 else 12209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12210 fi 12211done 12212 12213# For the awk script, D is an array of macro values keyed by name, 12214# likewise P contains macro parameters if any. Preserve backslash 12215# newline sequences. 12216 12217ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12218sed -n ' 12219s/.\{148\}/&'"$ac_delim"'/g 12220t rset 12221:rset 12222s/^[ ]*#[ ]*define[ ][ ]*/ / 12223t def 12224d 12225:def 12226s/\\$// 12227t bsnl 12228s/["\\]/\\&/g 12229s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12230D["\1"]=" \3"/p 12231s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12232d 12233:bsnl 12234s/["\\]/\\&/g 12235s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12236D["\1"]=" \3\\\\\\n"\\/p 12237t cont 12238s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12239t cont 12240d 12241:cont 12242n 12243s/.\{148\}/&'"$ac_delim"'/g 12244t clear 12245:clear 12246s/\\$// 12247t bsnlc 12248s/["\\]/\\&/g; s/^/"/; s/$/"/p 12249d 12250:bsnlc 12251s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12252b cont 12253' <confdefs.h | sed ' 12254s/'"$ac_delim"'/"\\\ 12255"/g' >>$CONFIG_STATUS || ac_write_fail=1 12256 12257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12258 for (key in D) D_is_set[key] = 1 12259 FS = "" 12260} 12261/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12262 line = \$ 0 12263 split(line, arg, " ") 12264 if (arg[1] == "#") { 12265 defundef = arg[2] 12266 mac1 = arg[3] 12267 } else { 12268 defundef = substr(arg[1], 2) 12269 mac1 = arg[2] 12270 } 12271 split(mac1, mac2, "(") #) 12272 macro = mac2[1] 12273 prefix = substr(line, 1, index(line, defundef) - 1) 12274 if (D_is_set[macro]) { 12275 # Preserve the white space surrounding the "#". 12276 print prefix "define", macro P[macro] D[macro] 12277 next 12278 } else { 12279 # Replace #undef with comments. This is necessary, for example, 12280 # in the case of _POSIX_SOURCE, which is predefined and required 12281 # on some systems where configure will not decide to define it. 12282 if (defundef == "undef") { 12283 print "/*", prefix defundef, macro, "*/" 12284 next 12285 } 12286 } 12287} 12288{ print } 12289_ACAWK 12290_ACEOF 12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12292 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12293fi # test -n "$CONFIG_HEADERS" 12294 12295 12296eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12297shift 12298for ac_tag 12299do 12300 case $ac_tag in 12301 :[FHLC]) ac_mode=$ac_tag; continue;; 12302 esac 12303 case $ac_mode$ac_tag in 12304 :[FHL]*:*);; 12305 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12306 :[FH]-) ac_tag=-:-;; 12307 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12308 esac 12309 ac_save_IFS=$IFS 12310 IFS=: 12311 set x $ac_tag 12312 IFS=$ac_save_IFS 12313 shift 12314 ac_file=$1 12315 shift 12316 12317 case $ac_mode in 12318 :L) ac_source=$1;; 12319 :[FH]) 12320 ac_file_inputs= 12321 for ac_f 12322 do 12323 case $ac_f in 12324 -) ac_f="$tmp/stdin";; 12325 *) # Look for the file first in the build tree, then in the source tree 12326 # (if the path is not absolute). The absolute path cannot be DOS-style, 12327 # because $ac_f cannot contain `:'. 12328 test -f "$ac_f" || 12329 case $ac_f in 12330 [\\/$]*) false;; 12331 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12332 esac || 12333 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12334 esac 12335 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12336 as_fn_append ac_file_inputs " '$ac_f'" 12337 done 12338 12339 # Let's still pretend it is `configure' which instantiates (i.e., don't 12340 # use $as_me), people would be surprised to read: 12341 # /* config.h. Generated by config.status. */ 12342 configure_input='Generated from '` 12343 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12344 `' by configure.' 12345 if test x"$ac_file" != x-; then 12346 configure_input="$ac_file. $configure_input" 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12348$as_echo "$as_me: creating $ac_file" >&6;} 12349 fi 12350 # Neutralize special characters interpreted by sed in replacement strings. 12351 case $configure_input in #( 12352 *\&* | *\|* | *\\* ) 12353 ac_sed_conf_input=`$as_echo "$configure_input" | 12354 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12355 *) ac_sed_conf_input=$configure_input;; 12356 esac 12357 12358 case $ac_tag in 12359 *:-:* | *:-) cat >"$tmp/stdin" \ 12360 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12361 esac 12362 ;; 12363 esac 12364 12365 ac_dir=`$as_dirname -- "$ac_file" || 12366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12367 X"$ac_file" : 'X\(//\)[^/]' \| \ 12368 X"$ac_file" : 'X\(//\)$' \| \ 12369 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12370$as_echo X"$ac_file" | 12371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12372 s//\1/ 12373 q 12374 } 12375 /^X\(\/\/\)[^/].*/{ 12376 s//\1/ 12377 q 12378 } 12379 /^X\(\/\/\)$/{ 12380 s//\1/ 12381 q 12382 } 12383 /^X\(\/\).*/{ 12384 s//\1/ 12385 q 12386 } 12387 s/.*/./; q'` 12388 as_dir="$ac_dir"; as_fn_mkdir_p 12389 ac_builddir=. 12390 12391case "$ac_dir" in 12392.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12393*) 12394 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12395 # A ".." for each directory in $ac_dir_suffix. 12396 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12397 case $ac_top_builddir_sub in 12398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12400 esac ;; 12401esac 12402ac_abs_top_builddir=$ac_pwd 12403ac_abs_builddir=$ac_pwd$ac_dir_suffix 12404# for backward compatibility: 12405ac_top_builddir=$ac_top_build_prefix 12406 12407case $srcdir in 12408 .) # We are building in place. 12409 ac_srcdir=. 12410 ac_top_srcdir=$ac_top_builddir_sub 12411 ac_abs_top_srcdir=$ac_pwd ;; 12412 [\\/]* | ?:[\\/]* ) # Absolute name. 12413 ac_srcdir=$srcdir$ac_dir_suffix; 12414 ac_top_srcdir=$srcdir 12415 ac_abs_top_srcdir=$srcdir ;; 12416 *) # Relative name. 12417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12418 ac_top_srcdir=$ac_top_build_prefix$srcdir 12419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12420esac 12421ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12422 12423 12424 case $ac_mode in 12425 :F) 12426 # 12427 # CONFIG_FILE 12428 # 12429 12430 case $INSTALL in 12431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12432 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12433 esac 12434 ac_MKDIR_P=$MKDIR_P 12435 case $MKDIR_P in 12436 [\\/$]* | ?:[\\/]* ) ;; 12437 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12438 esac 12439_ACEOF 12440 12441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12442# If the template does not know about datarootdir, expand it. 12443# FIXME: This hack should be removed a few years after 2.60. 12444ac_datarootdir_hack=; ac_datarootdir_seen= 12445ac_sed_dataroot=' 12446/datarootdir/ { 12447 p 12448 q 12449} 12450/@datadir@/p 12451/@docdir@/p 12452/@infodir@/p 12453/@localedir@/p 12454/@mandir@/p' 12455case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12456*datarootdir*) ac_datarootdir_seen=yes;; 12457*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12459$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12460_ACEOF 12461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12462 ac_datarootdir_hack=' 12463 s&@datadir@&$datadir&g 12464 s&@docdir@&$docdir&g 12465 s&@infodir@&$infodir&g 12466 s&@localedir@&$localedir&g 12467 s&@mandir@&$mandir&g 12468 s&\\\${datarootdir}&$datarootdir&g' ;; 12469esac 12470_ACEOF 12471 12472# Neutralize VPATH when `$srcdir' = `.'. 12473# Shell code in configure.ac might set extrasub. 12474# FIXME: do we really want to maintain this feature? 12475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12476ac_sed_extra="$ac_vpsub 12477$extrasub 12478_ACEOF 12479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12480:t 12481/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12482s|@configure_input@|$ac_sed_conf_input|;t t 12483s&@top_builddir@&$ac_top_builddir_sub&;t t 12484s&@top_build_prefix@&$ac_top_build_prefix&;t t 12485s&@srcdir@&$ac_srcdir&;t t 12486s&@abs_srcdir@&$ac_abs_srcdir&;t t 12487s&@top_srcdir@&$ac_top_srcdir&;t t 12488s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12489s&@builddir@&$ac_builddir&;t t 12490s&@abs_builddir@&$ac_abs_builddir&;t t 12491s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12492s&@INSTALL@&$ac_INSTALL&;t t 12493s&@MKDIR_P@&$ac_MKDIR_P&;t t 12494$ac_datarootdir_hack 12495" 12496eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12497 || as_fn_error "could not create $ac_file" "$LINENO" 5 12498 12499test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12500 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12501 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12503which seems to be undefined. Please make sure it is defined." >&5 12504$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12505which seems to be undefined. Please make sure it is defined." >&2;} 12506 12507 rm -f "$tmp/stdin" 12508 case $ac_file in 12509 -) cat "$tmp/out" && rm -f "$tmp/out";; 12510 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12511 esac \ 12512 || as_fn_error "could not create $ac_file" "$LINENO" 5 12513 ;; 12514 :H) 12515 # 12516 # CONFIG_HEADER 12517 # 12518 if test x"$ac_file" != x-; then 12519 { 12520 $as_echo "/* $configure_input */" \ 12521 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12522 } >"$tmp/config.h" \ 12523 || as_fn_error "could not create $ac_file" "$LINENO" 5 12524 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12526$as_echo "$as_me: $ac_file is unchanged" >&6;} 12527 else 12528 rm -f "$ac_file" 12529 mv "$tmp/config.h" "$ac_file" \ 12530 || as_fn_error "could not create $ac_file" "$LINENO" 5 12531 fi 12532 else 12533 $as_echo "/* $configure_input */" \ 12534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12535 || as_fn_error "could not create -" "$LINENO" 5 12536 fi 12537# Compute "$ac_file"'s index in $config_headers. 12538_am_arg="$ac_file" 12539_am_stamp_count=1 12540for _am_header in $config_headers :; do 12541 case $_am_header in 12542 $_am_arg | $_am_arg:* ) 12543 break ;; 12544 * ) 12545 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12546 esac 12547done 12548echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12549$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12550 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12551 X"$_am_arg" : 'X\(//\)$' \| \ 12552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12553$as_echo X"$_am_arg" | 12554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12555 s//\1/ 12556 q 12557 } 12558 /^X\(\/\/\)[^/].*/{ 12559 s//\1/ 12560 q 12561 } 12562 /^X\(\/\/\)$/{ 12563 s//\1/ 12564 q 12565 } 12566 /^X\(\/\).*/{ 12567 s//\1/ 12568 q 12569 } 12570 s/.*/./; q'`/stamp-h$_am_stamp_count 12571 ;; 12572 12573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12574$as_echo "$as_me: executing $ac_file commands" >&6;} 12575 ;; 12576 esac 12577 12578 12579 case $ac_file$ac_mode in 12580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12581 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12582 # are listed without --file. Let's play safe and only enable the eval 12583 # if we detect the quoting. 12584 case $CONFIG_FILES in 12585 *\'*) eval set x "$CONFIG_FILES" ;; 12586 *) set x $CONFIG_FILES ;; 12587 esac 12588 shift 12589 for mf 12590 do 12591 # Strip MF so we end up with the name of the file. 12592 mf=`echo "$mf" | sed -e 's/:.*$//'` 12593 # Check whether this is an Automake generated Makefile or not. 12594 # We used to match only the files named `Makefile.in', but 12595 # some people rename them; so instead we look at the file content. 12596 # Grep'ing the first line is not enough: some people post-process 12597 # each Makefile.in and add a new line on top of each file to say so. 12598 # Grep'ing the whole file is not good either: AIX grep has a line 12599 # limit of 2048, but all sed's we know have understand at least 4000. 12600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12601 dirpart=`$as_dirname -- "$mf" || 12602$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12603 X"$mf" : 'X\(//\)[^/]' \| \ 12604 X"$mf" : 'X\(//\)$' \| \ 12605 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12606$as_echo X"$mf" | 12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12608 s//\1/ 12609 q 12610 } 12611 /^X\(\/\/\)[^/].*/{ 12612 s//\1/ 12613 q 12614 } 12615 /^X\(\/\/\)$/{ 12616 s//\1/ 12617 q 12618 } 12619 /^X\(\/\).*/{ 12620 s//\1/ 12621 q 12622 } 12623 s/.*/./; q'` 12624 else 12625 continue 12626 fi 12627 # Extract the definition of DEPDIR, am__include, and am__quote 12628 # from the Makefile without running `make'. 12629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12630 test -z "$DEPDIR" && continue 12631 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12632 test -z "am__include" && continue 12633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12634 # When using ansi2knr, U may be empty or an underscore; expand it 12635 U=`sed -n 's/^U = //p' < "$mf"` 12636 # Find all dependency output files, they are included files with 12637 # $(DEPDIR) in their names. We invoke sed twice because it is the 12638 # simplest approach to changing $(DEPDIR) to its actual value in the 12639 # expansion. 12640 for file in `sed -n " 12641 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12643 # Make sure the directory exists. 12644 test -f "$dirpart/$file" && continue 12645 fdir=`$as_dirname -- "$file" || 12646$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12647 X"$file" : 'X\(//\)[^/]' \| \ 12648 X"$file" : 'X\(//\)$' \| \ 12649 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12650$as_echo X"$file" | 12651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12652 s//\1/ 12653 q 12654 } 12655 /^X\(\/\/\)[^/].*/{ 12656 s//\1/ 12657 q 12658 } 12659 /^X\(\/\/\)$/{ 12660 s//\1/ 12661 q 12662 } 12663 /^X\(\/\).*/{ 12664 s//\1/ 12665 q 12666 } 12667 s/.*/./; q'` 12668 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12669 # echo "creating $dirpart/$file" 12670 echo '# dummy' > "$dirpart/$file" 12671 done 12672 done 12673} 12674 ;; 12675 "libtool":C) 12676 12677 # See if we are running on zsh, and set the options which allow our 12678 # commands through without removal of \ escapes. 12679 if test -n "${ZSH_VERSION+set}" ; then 12680 setopt NO_GLOB_SUBST 12681 fi 12682 12683 cfgfile="${ofile}T" 12684 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12685 $RM "$cfgfile" 12686 12687 cat <<_LT_EOF >> "$cfgfile" 12688#! $SHELL 12689 12690# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12691# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12692# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12693# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12694# 12695# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12696# 2006, 2007, 2008 Free Software Foundation, Inc. 12697# Written by Gordon Matzigkeit, 1996 12698# 12699# This file is part of GNU Libtool. 12700# 12701# GNU Libtool is free software; you can redistribute it and/or 12702# modify it under the terms of the GNU General Public License as 12703# published by the Free Software Foundation; either version 2 of 12704# the License, or (at your option) any later version. 12705# 12706# As a special exception to the GNU General Public License, 12707# if you distribute this file as part of a program or library that 12708# is built using GNU Libtool, you may include this file under the 12709# same distribution terms that you use for the rest of that program. 12710# 12711# GNU Libtool is distributed in the hope that it will be useful, 12712# but WITHOUT ANY WARRANTY; without even the implied warranty of 12713# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12714# GNU General Public License for more details. 12715# 12716# You should have received a copy of the GNU General Public License 12717# along with GNU Libtool; see the file COPYING. If not, a copy 12718# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12719# obtained by writing to the Free Software Foundation, Inc., 12720# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12721 12722 12723# The names of the tagged configurations supported by this script. 12724available_tags="" 12725 12726# ### BEGIN LIBTOOL CONFIG 12727 12728# Which release of libtool.m4 was used? 12729macro_version=$macro_version 12730macro_revision=$macro_revision 12731 12732# Whether or not to build shared libraries. 12733build_libtool_libs=$enable_shared 12734 12735# Whether or not to build static libraries. 12736build_old_libs=$enable_static 12737 12738# What type of objects to build. 12739pic_mode=$pic_mode 12740 12741# Whether or not to optimize for fast installation. 12742fast_install=$enable_fast_install 12743 12744# The host system. 12745host_alias=$host_alias 12746host=$host 12747host_os=$host_os 12748 12749# The build system. 12750build_alias=$build_alias 12751build=$build 12752build_os=$build_os 12753 12754# A sed program that does not truncate output. 12755SED=$lt_SED 12756 12757# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12758Xsed="\$SED -e 1s/^X//" 12759 12760# A grep program that handles long lines. 12761GREP=$lt_GREP 12762 12763# An ERE matcher. 12764EGREP=$lt_EGREP 12765 12766# A literal string matcher. 12767FGREP=$lt_FGREP 12768 12769# A BSD- or MS-compatible name lister. 12770NM=$lt_NM 12771 12772# Whether we need soft or hard links. 12773LN_S=$lt_LN_S 12774 12775# What is the maximum length of a command? 12776max_cmd_len=$max_cmd_len 12777 12778# Object file suffix (normally "o"). 12779objext=$ac_objext 12780 12781# Executable file suffix (normally ""). 12782exeext=$exeext 12783 12784# whether the shell understands "unset". 12785lt_unset=$lt_unset 12786 12787# turn spaces into newlines. 12788SP2NL=$lt_lt_SP2NL 12789 12790# turn newlines into spaces. 12791NL2SP=$lt_lt_NL2SP 12792 12793# How to create reloadable object files. 12794reload_flag=$lt_reload_flag 12795reload_cmds=$lt_reload_cmds 12796 12797# An object symbol dumper. 12798OBJDUMP=$lt_OBJDUMP 12799 12800# Method to check whether dependent libraries are shared objects. 12801deplibs_check_method=$lt_deplibs_check_method 12802 12803# Command to use when deplibs_check_method == "file_magic". 12804file_magic_cmd=$lt_file_magic_cmd 12805 12806# The archiver. 12807AR=$lt_AR 12808AR_FLAGS=$lt_AR_FLAGS 12809 12810# A symbol stripping program. 12811STRIP=$lt_STRIP 12812 12813# Commands used to install an old-style archive. 12814RANLIB=$lt_RANLIB 12815old_postinstall_cmds=$lt_old_postinstall_cmds 12816old_postuninstall_cmds=$lt_old_postuninstall_cmds 12817 12818# A C compiler. 12819LTCC=$lt_CC 12820 12821# LTCC compiler flags. 12822LTCFLAGS=$lt_CFLAGS 12823 12824# Take the output of nm and produce a listing of raw symbols and C names. 12825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12826 12827# Transform the output of nm in a proper C declaration. 12828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12829 12830# Transform the output of nm in a C name address pair. 12831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12832 12833# Transform the output of nm in a C name address pair when lib prefix is needed. 12834global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12835 12836# The name of the directory that contains temporary libtool files. 12837objdir=$objdir 12838 12839# Shell to use when invoking shell scripts. 12840SHELL=$lt_SHELL 12841 12842# An echo program that does not interpret backslashes. 12843ECHO=$lt_ECHO 12844 12845# Used to examine libraries when file_magic_cmd begins with "file". 12846MAGIC_CMD=$MAGIC_CMD 12847 12848# Must we lock files when doing compilation? 12849need_locks=$lt_need_locks 12850 12851# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12852DSYMUTIL=$lt_DSYMUTIL 12853 12854# Tool to change global to local symbols on Mac OS X. 12855NMEDIT=$lt_NMEDIT 12856 12857# Tool to manipulate fat objects and archives on Mac OS X. 12858LIPO=$lt_LIPO 12859 12860# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12861OTOOL=$lt_OTOOL 12862 12863# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12864OTOOL64=$lt_OTOOL64 12865 12866# Old archive suffix (normally "a"). 12867libext=$libext 12868 12869# Shared library suffix (normally ".so"). 12870shrext_cmds=$lt_shrext_cmds 12871 12872# The commands to extract the exported symbol list from a shared archive. 12873extract_expsyms_cmds=$lt_extract_expsyms_cmds 12874 12875# Variables whose values should be saved in libtool wrapper scripts and 12876# restored at link time. 12877variables_saved_for_relink=$lt_variables_saved_for_relink 12878 12879# Do we need the "lib" prefix for modules? 12880need_lib_prefix=$need_lib_prefix 12881 12882# Do we need a version for libraries? 12883need_version=$need_version 12884 12885# Library versioning type. 12886version_type=$version_type 12887 12888# Shared library runtime path variable. 12889runpath_var=$runpath_var 12890 12891# Shared library path variable. 12892shlibpath_var=$shlibpath_var 12893 12894# Is shlibpath searched before the hard-coded library search path? 12895shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12896 12897# Format of library name prefix. 12898libname_spec=$lt_libname_spec 12899 12900# List of archive names. First name is the real one, the rest are links. 12901# The last name is the one that the linker finds with -lNAME 12902library_names_spec=$lt_library_names_spec 12903 12904# The coded name of the library, if different from the real name. 12905soname_spec=$lt_soname_spec 12906 12907# Command to use after installation of a shared archive. 12908postinstall_cmds=$lt_postinstall_cmds 12909 12910# Command to use after uninstallation of a shared archive. 12911postuninstall_cmds=$lt_postuninstall_cmds 12912 12913# Commands used to finish a libtool library installation in a directory. 12914finish_cmds=$lt_finish_cmds 12915 12916# As "finish_cmds", except a single script fragment to be evaled but 12917# not shown. 12918finish_eval=$lt_finish_eval 12919 12920# Whether we should hardcode library paths into libraries. 12921hardcode_into_libs=$hardcode_into_libs 12922 12923# Compile-time system search path for libraries. 12924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12925 12926# Run-time system search path for libraries. 12927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12928 12929# Whether dlopen is supported. 12930dlopen_support=$enable_dlopen 12931 12932# Whether dlopen of programs is supported. 12933dlopen_self=$enable_dlopen_self 12934 12935# Whether dlopen of statically linked programs is supported. 12936dlopen_self_static=$enable_dlopen_self_static 12937 12938# Commands to strip libraries. 12939old_striplib=$lt_old_striplib 12940striplib=$lt_striplib 12941 12942 12943# The linker used to build libraries. 12944LD=$lt_LD 12945 12946# Commands used to build an old-style archive. 12947old_archive_cmds=$lt_old_archive_cmds 12948 12949# A language specific compiler. 12950CC=$lt_compiler 12951 12952# Is the compiler the GNU compiler? 12953with_gcc=$GCC 12954 12955# Compiler flag to turn off builtin functions. 12956no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12957 12958# How to pass a linker flag through the compiler. 12959wl=$lt_lt_prog_compiler_wl 12960 12961# Additional compiler flags for building library objects. 12962pic_flag=$lt_lt_prog_compiler_pic 12963 12964# Compiler flag to prevent dynamic linking. 12965link_static_flag=$lt_lt_prog_compiler_static 12966 12967# Does compiler simultaneously support -c and -o options? 12968compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12969 12970# Whether or not to add -lc for building shared libraries. 12971build_libtool_need_lc=$archive_cmds_need_lc 12972 12973# Whether or not to disallow shared libs when runtime libs are static. 12974allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12975 12976# Compiler flag to allow reflexive dlopens. 12977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12978 12979# Compiler flag to generate shared objects directly from archives. 12980whole_archive_flag_spec=$lt_whole_archive_flag_spec 12981 12982# Whether the compiler copes with passing no objects directly. 12983compiler_needs_object=$lt_compiler_needs_object 12984 12985# Create an old-style archive from a shared archive. 12986old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12987 12988# Create a temporary old-style archive to link instead of a shared archive. 12989old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12990 12991# Commands used to build a shared archive. 12992archive_cmds=$lt_archive_cmds 12993archive_expsym_cmds=$lt_archive_expsym_cmds 12994 12995# Commands used to build a loadable module if different from building 12996# a shared archive. 12997module_cmds=$lt_module_cmds 12998module_expsym_cmds=$lt_module_expsym_cmds 12999 13000# Whether we are building with GNU ld or not. 13001with_gnu_ld=$lt_with_gnu_ld 13002 13003# Flag that allows shared libraries with undefined symbols to be built. 13004allow_undefined_flag=$lt_allow_undefined_flag 13005 13006# Flag that enforces no undefined symbols. 13007no_undefined_flag=$lt_no_undefined_flag 13008 13009# Flag to hardcode \$libdir into a binary during linking. 13010# This must work even if \$libdir does not exist 13011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13012 13013# If ld is used when linking, flag to hardcode \$libdir into a binary 13014# during linking. This must work even if \$libdir does not exist. 13015hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13016 13017# Whether we need a single "-rpath" flag with a separated argument. 13018hardcode_libdir_separator=$lt_hardcode_libdir_separator 13019 13020# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13021# DIR into the resulting binary. 13022hardcode_direct=$hardcode_direct 13023 13024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13025# DIR into the resulting binary and the resulting library dependency is 13026# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13027# library is relocated. 13028hardcode_direct_absolute=$hardcode_direct_absolute 13029 13030# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13031# into the resulting binary. 13032hardcode_minus_L=$hardcode_minus_L 13033 13034# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13035# into the resulting binary. 13036hardcode_shlibpath_var=$hardcode_shlibpath_var 13037 13038# Set to "yes" if building a shared library automatically hardcodes DIR 13039# into the library and all subsequent libraries and executables linked 13040# against it. 13041hardcode_automatic=$hardcode_automatic 13042 13043# Set to yes if linker adds runtime paths of dependent libraries 13044# to runtime path list. 13045inherit_rpath=$inherit_rpath 13046 13047# Whether libtool must link a program against all its dependency libraries. 13048link_all_deplibs=$link_all_deplibs 13049 13050# Fix the shell variable \$srcfile for the compiler. 13051fix_srcfile_path=$lt_fix_srcfile_path 13052 13053# Set to "yes" if exported symbols are required. 13054always_export_symbols=$always_export_symbols 13055 13056# The commands to list exported symbols. 13057export_symbols_cmds=$lt_export_symbols_cmds 13058 13059# Symbols that should not be listed in the preloaded symbols. 13060exclude_expsyms=$lt_exclude_expsyms 13061 13062# Symbols that must always be exported. 13063include_expsyms=$lt_include_expsyms 13064 13065# Commands necessary for linking programs (against libraries) with templates. 13066prelink_cmds=$lt_prelink_cmds 13067 13068# Specify filename containing input files. 13069file_list_spec=$lt_file_list_spec 13070 13071# How to hardcode a shared library path into an executable. 13072hardcode_action=$hardcode_action 13073 13074# ### END LIBTOOL CONFIG 13075 13076_LT_EOF 13077 13078 case $host_os in 13079 aix3*) 13080 cat <<\_LT_EOF >> "$cfgfile" 13081# AIX sometimes has problems with the GCC collect2 program. For some 13082# reason, if we set the COLLECT_NAMES environment variable, the problems 13083# vanish in a puff of smoke. 13084if test "X${COLLECT_NAMES+set}" != Xset; then 13085 COLLECT_NAMES= 13086 export COLLECT_NAMES 13087fi 13088_LT_EOF 13089 ;; 13090 esac 13091 13092 13093ltmain="$ac_aux_dir/ltmain.sh" 13094 13095 13096 # We use sed instead of cat because bash on DJGPP gets confused if 13097 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13098 # text mode, it properly converts lines to CR/LF. This bash problem 13099 # is reportedly fixed, but why not run on old versions too? 13100 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13101 || (rm -f "$cfgfile"; exit 1) 13102 13103 case $xsi_shell in 13104 yes) 13105 cat << \_LT_EOF >> "$cfgfile" 13106 13107# func_dirname file append nondir_replacement 13108# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13109# otherwise set result to NONDIR_REPLACEMENT. 13110func_dirname () 13111{ 13112 case ${1} in 13113 */*) func_dirname_result="${1%/*}${2}" ;; 13114 * ) func_dirname_result="${3}" ;; 13115 esac 13116} 13117 13118# func_basename file 13119func_basename () 13120{ 13121 func_basename_result="${1##*/}" 13122} 13123 13124# func_dirname_and_basename file append nondir_replacement 13125# perform func_basename and func_dirname in a single function 13126# call: 13127# dirname: Compute the dirname of FILE. If nonempty, 13128# add APPEND to the result, otherwise set result 13129# to NONDIR_REPLACEMENT. 13130# value returned in "$func_dirname_result" 13131# basename: Compute filename of FILE. 13132# value retuned in "$func_basename_result" 13133# Implementation must be kept synchronized with func_dirname 13134# and func_basename. For efficiency, we do not delegate to 13135# those functions but instead duplicate the functionality here. 13136func_dirname_and_basename () 13137{ 13138 case ${1} in 13139 */*) func_dirname_result="${1%/*}${2}" ;; 13140 * ) func_dirname_result="${3}" ;; 13141 esac 13142 func_basename_result="${1##*/}" 13143} 13144 13145# func_stripname prefix suffix name 13146# strip PREFIX and SUFFIX off of NAME. 13147# PREFIX and SUFFIX must not contain globbing or regex special 13148# characters, hashes, percent signs, but SUFFIX may contain a leading 13149# dot (in which case that matches only a dot). 13150func_stripname () 13151{ 13152 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13153 # positional parameters, so assign one to ordinary parameter first. 13154 func_stripname_result=${3} 13155 func_stripname_result=${func_stripname_result#"${1}"} 13156 func_stripname_result=${func_stripname_result%"${2}"} 13157} 13158 13159# func_opt_split 13160func_opt_split () 13161{ 13162 func_opt_split_opt=${1%%=*} 13163 func_opt_split_arg=${1#*=} 13164} 13165 13166# func_lo2o object 13167func_lo2o () 13168{ 13169 case ${1} in 13170 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13171 *) func_lo2o_result=${1} ;; 13172 esac 13173} 13174 13175# func_xform libobj-or-source 13176func_xform () 13177{ 13178 func_xform_result=${1%.*}.lo 13179} 13180 13181# func_arith arithmetic-term... 13182func_arith () 13183{ 13184 func_arith_result=$(( $* )) 13185} 13186 13187# func_len string 13188# STRING may not start with a hyphen. 13189func_len () 13190{ 13191 func_len_result=${#1} 13192} 13193 13194_LT_EOF 13195 ;; 13196 *) # Bourne compatible functions. 13197 cat << \_LT_EOF >> "$cfgfile" 13198 13199# func_dirname file append nondir_replacement 13200# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13201# otherwise set result to NONDIR_REPLACEMENT. 13202func_dirname () 13203{ 13204 # Extract subdirectory from the argument. 13205 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13206 if test "X$func_dirname_result" = "X${1}"; then 13207 func_dirname_result="${3}" 13208 else 13209 func_dirname_result="$func_dirname_result${2}" 13210 fi 13211} 13212 13213# func_basename file 13214func_basename () 13215{ 13216 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13217} 13218 13219 13220# func_stripname prefix suffix name 13221# strip PREFIX and SUFFIX off of NAME. 13222# PREFIX and SUFFIX must not contain globbing or regex special 13223# characters, hashes, percent signs, but SUFFIX may contain a leading 13224# dot (in which case that matches only a dot). 13225# func_strip_suffix prefix name 13226func_stripname () 13227{ 13228 case ${2} in 13229 .*) func_stripname_result=`$ECHO "X${3}" \ 13230 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13231 *) func_stripname_result=`$ECHO "X${3}" \ 13232 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13233 esac 13234} 13235 13236# sed scripts: 13237my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13238my_sed_long_arg='1s/^-[^=]*=//' 13239 13240# func_opt_split 13241func_opt_split () 13242{ 13243 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13244 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13245} 13246 13247# func_lo2o object 13248func_lo2o () 13249{ 13250 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13251} 13252 13253# func_xform libobj-or-source 13254func_xform () 13255{ 13256 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13257} 13258 13259# func_arith arithmetic-term... 13260func_arith () 13261{ 13262 func_arith_result=`expr "$@"` 13263} 13264 13265# func_len string 13266# STRING may not start with a hyphen. 13267func_len () 13268{ 13269 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13270} 13271 13272_LT_EOF 13273esac 13274 13275case $lt_shell_append in 13276 yes) 13277 cat << \_LT_EOF >> "$cfgfile" 13278 13279# func_append var value 13280# Append VALUE to the end of shell variable VAR. 13281func_append () 13282{ 13283 eval "$1+=\$2" 13284} 13285_LT_EOF 13286 ;; 13287 *) 13288 cat << \_LT_EOF >> "$cfgfile" 13289 13290# func_append var value 13291# Append VALUE to the end of shell variable VAR. 13292func_append () 13293{ 13294 eval "$1=\$$1\$2" 13295} 13296 13297_LT_EOF 13298 ;; 13299 esac 13300 13301 13302 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13303 || (rm -f "$cfgfile"; exit 1) 13304 13305 mv -f "$cfgfile" "$ofile" || 13306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13307 chmod +x "$ofile" 13308 13309 ;; 13310 13311 esac 13312done # for ac_tag 13313 13314 13315as_fn_exit 0 13316_ACEOF 13317ac_clean_files=$ac_clean_files_save 13318 13319test $ac_write_fail = 0 || 13320 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13321 13322 13323# configure is writing to config.log, and then calls config.status. 13324# config.status does its own redirection, appending to config.log. 13325# Unfortunately, on DOS this fails, as config.log is still kept open 13326# by configure, so config.status won't be able to write to it; its 13327# output is simply discarded. So we exec the FD to /dev/null, 13328# effectively closing config.log, so it can be properly (re)opened and 13329# appended to by config.status. When coming back to configure, we 13330# need to make the FD available again. 13331if test "$no_create" != yes; then 13332 ac_cs_success=: 13333 ac_config_status_args= 13334 test "$silent" = yes && 13335 ac_config_status_args="$ac_config_status_args --quiet" 13336 exec 5>/dev/null 13337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13338 exec 5>>config.log 13339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13340 # would make configure fail if this is the last instruction. 13341 $ac_cs_success || as_fn_exit $? 13342fi 13343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13345$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13346fi 13347 13348 13349