configure revision 71ba42d0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for xf86-video-nv 2.1.17. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org and 232$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 233$0: about your system, including any error possibly output 234$0: before this message. Then install a modern shell, or 235$0: manually run the script under such a shell if you do 236$0: have one." 237 fi 238 exit 1 239fi 240fi 241fi 242SHELL=${CONFIG_SHELL-/bin/sh} 243export SHELL 244# Unset more variables known to interfere with behavior of common tools. 245CLICOLOR_FORCE= GREP_OPTIONS= 246unset CLICOLOR_FORCE GREP_OPTIONS 247 248## --------------------- ## 249## M4sh Shell Functions. ## 250## --------------------- ## 251# as_fn_unset VAR 252# --------------- 253# Portably unset VAR. 254as_fn_unset () 255{ 256 { eval $1=; unset $1;} 257} 258as_unset=as_fn_unset 259 260# as_fn_set_status STATUS 261# ----------------------- 262# Set $? to STATUS, without forking. 263as_fn_set_status () 264{ 265 return $1 266} # as_fn_set_status 267 268# as_fn_exit STATUS 269# ----------------- 270# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 271as_fn_exit () 272{ 273 set +e 274 as_fn_set_status $1 275 exit $1 276} # as_fn_exit 277 278# as_fn_mkdir_p 279# ------------- 280# Create "$as_dir" as a directory, including parents if necessary. 281as_fn_mkdir_p () 282{ 283 284 case $as_dir in #( 285 -*) as_dir=./$as_dir;; 286 esac 287 test -d "$as_dir" || eval $as_mkdir_p || { 288 as_dirs= 289 while :; do 290 case $as_dir in #( 291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 292 *) as_qdir=$as_dir;; 293 esac 294 as_dirs="'$as_qdir' $as_dirs" 295 as_dir=`$as_dirname -- "$as_dir" || 296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 297 X"$as_dir" : 'X\(//\)[^/]' \| \ 298 X"$as_dir" : 'X\(//\)$' \| \ 299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 300$as_echo X"$as_dir" | 301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 302 s//\1/ 303 q 304 } 305 /^X\(\/\/\)[^/].*/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)$/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\).*/{ 314 s//\1/ 315 q 316 } 317 s/.*/./; q'` 318 test -d "$as_dir" && break 319 done 320 test -z "$as_dirs" || eval "mkdir $as_dirs" 321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 322 323 324} # as_fn_mkdir_p 325# as_fn_append VAR VALUE 326# ---------------------- 327# Append the text in VALUE to the end of the definition contained in VAR. Take 328# advantage of any shell optimizations that allow amortized linear growth over 329# repeated appends, instead of the typical quadratic growth present in naive 330# implementations. 331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 332 eval 'as_fn_append () 333 { 334 eval $1+=\$2 335 }' 336else 337 as_fn_append () 338 { 339 eval $1=\$$1\$2 340 } 341fi # as_fn_append 342 343# as_fn_arith ARG... 344# ------------------ 345# Perform arithmetic evaluation on the ARGs, and store the result in the 346# global $as_val. Take advantage of shells that can avoid forks. The arguments 347# must be portable across $(()) and expr. 348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 349 eval 'as_fn_arith () 350 { 351 as_val=$(( $* )) 352 }' 353else 354 as_fn_arith () 355 { 356 as_val=`expr "$@" || test $? -eq 1` 357 } 358fi # as_fn_arith 359 360 361# as_fn_error ERROR [LINENO LOG_FD] 362# --------------------------------- 363# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 364# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 365# script with status $?, using 1 if that was 0. 366as_fn_error () 367{ 368 as_status=$?; test $as_status -eq 0 && as_status=1 369 if test "$3"; then 370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 372 fi 373 $as_echo "$as_me: error: $1" >&2 374 as_fn_exit $as_status 375} # as_fn_error 376 377if expr a : '\(a\)' >/dev/null 2>&1 && 378 test "X`expr 00001 : '.*\(...\)'`" = X001; then 379 as_expr=expr 380else 381 as_expr=false 382fi 383 384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 385 as_basename=basename 386else 387 as_basename=false 388fi 389 390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 391 as_dirname=dirname 392else 393 as_dirname=false 394fi 395 396as_me=`$as_basename -- "$0" || 397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 398 X"$0" : 'X\(//\)$' \| \ 399 X"$0" : 'X\(/\)' \| . 2>/dev/null || 400$as_echo X/"$0" | 401 sed '/^.*\/\([^/][^/]*\)\/*$/{ 402 s//\1/ 403 q 404 } 405 /^X\/\(\/\/\)$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\).*/{ 410 s//\1/ 411 q 412 } 413 s/.*/./; q'` 414 415# Avoid depending upon Character Ranges. 416as_cr_letters='abcdefghijklmnopqrstuvwxyz' 417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 418as_cr_Letters=$as_cr_letters$as_cr_LETTERS 419as_cr_digits='0123456789' 420as_cr_alnum=$as_cr_Letters$as_cr_digits 421 422 423 as_lineno_1=$LINENO as_lineno_1a=$LINENO 424 as_lineno_2=$LINENO as_lineno_2a=$LINENO 425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 428 sed -n ' 429 p 430 /[$]LINENO/= 431 ' <$as_myself | 432 sed ' 433 s/[$]LINENO.*/&-/ 434 t lineno 435 b 436 :lineno 437 N 438 :loop 439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 440 t loop 441 s/-\n.*// 442 ' >$as_me.lineno && 443 chmod +x "$as_me.lineno" || 444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 445 446 # Don't try to exec as it changes $[0], causing all sort of problems 447 # (the dirname of $[0] is not the place where we might find the 448 # original and so on. Autoconf is especially sensitive to this). 449 . "./$as_me.lineno" 450 # Exit status is that of the last command. 451 exit 452} 453 454ECHO_C= ECHO_N= ECHO_T= 455case `echo -n x` in #((((( 456-n*) 457 case `echo 'xy\c'` in 458 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 459 xy) ECHO_C='\c';; 460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 461 ECHO_T=' ';; 462 esac;; 463*) 464 ECHO_N='-n';; 465esac 466 467rm -f conf$$ conf$$.exe conf$$.file 468if test -d conf$$.dir; then 469 rm -f conf$$.dir/conf$$.file 470else 471 rm -f conf$$.dir 472 mkdir conf$$.dir 2>/dev/null 473fi 474if (echo >conf$$.file) 2>/dev/null; then 475 if ln -s conf$$.file conf$$ 2>/dev/null; then 476 as_ln_s='ln -s' 477 # ... but there are two gotchas: 478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 480 # In both cases, we have to default to `cp -p'. 481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 482 as_ln_s='cp -p' 483 elif ln conf$$.file conf$$ 2>/dev/null; then 484 as_ln_s=ln 485 else 486 as_ln_s='cp -p' 487 fi 488else 489 as_ln_s='cp -p' 490fi 491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 492rmdir conf$$.dir 2>/dev/null 493 494if mkdir -p . 2>/dev/null; then 495 as_mkdir_p='mkdir -p "$as_dir"' 496else 497 test -d ./-p && rmdir ./-p 498 as_mkdir_p=false 499fi 500 501if test -x / >/dev/null 2>&1; then 502 as_test_x='test -x' 503else 504 if ls -dL / >/dev/null 2>&1; then 505 as_ls_L_option=L 506 else 507 as_ls_L_option= 508 fi 509 as_test_x=' 510 eval sh -c '\'' 511 if test -d "$1"; then 512 test -d "$1/."; 513 else 514 case $1 in #( 515 -*)set "./$1";; 516 esac; 517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 518 ???[sx]*):;;*)false;;esac;fi 519 '\'' sh 520 ' 521fi 522as_executable_p=$as_test_x 523 524# Sed expression to map a string onto a valid CPP name. 525as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 526 527# Sed expression to map a string onto a valid variable name. 528as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 529 530 531 532# Check that we are running under the correct shell. 533SHELL=${CONFIG_SHELL-/bin/sh} 534 535case X$lt_ECHO in 536X*--fallback-echo) 537 # Remove one level of quotation (which was required for Make). 538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 539 ;; 540esac 541 542ECHO=${lt_ECHO-echo} 543if test "X$1" = X--no-reexec; then 544 # Discard the --no-reexec flag, and continue. 545 shift 546elif test "X$1" = X--fallback-echo; then 547 # Avoid inline document here, it may be left over 548 : 549elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 550 # Yippee, $ECHO works! 551 : 552else 553 # Restart under the correct shell. 554 exec $SHELL "$0" --no-reexec ${1+"$@"} 555fi 556 557if test "X$1" = X--fallback-echo; then 558 # used as fallback echo 559 shift 560 cat <<_LT_EOF 561$* 562_LT_EOF 563 exit 0 564fi 565 566# The HP-UX ksh and POSIX shell print the target directory to stdout 567# if CDPATH is set. 568(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 569 570if test -z "$lt_ECHO"; then 571 if test "X${echo_test_string+set}" != Xset; then 572 # find a string as large as possible, as long as the shell can cope with it 573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 575 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 577 then 578 break 579 fi 580 done 581 fi 582 583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 585 test "X$echo_testing_string" = "X$echo_test_string"; then 586 : 587 else 588 # The Solaris, AIX, and Digital Unix default echo programs unquote 589 # backslashes. This makes it impossible to quote backslashes using 590 # echo "$something" | sed 's/\\/\\\\/g' 591 # 592 # So, first we look for a working echo in the user's PATH. 593 594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 595 for dir in $PATH /usr/ucb; do 596 IFS="$lt_save_ifs" 597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 600 test "X$echo_testing_string" = "X$echo_test_string"; then 601 ECHO="$dir/echo" 602 break 603 fi 604 done 605 IFS="$lt_save_ifs" 606 607 if test "X$ECHO" = Xecho; then 608 # We didn't find a better echo, so look for alternatives. 609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 # This shell has a builtin print -r that does the trick. 613 ECHO='print -r' 614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 615 test "X$CONFIG_SHELL" != X/bin/ksh; then 616 # If we have ksh, try running configure again with it. 617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 618 export ORIGINAL_CONFIG_SHELL 619 CONFIG_SHELL=/bin/ksh 620 export CONFIG_SHELL 621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 622 else 623 # Try using printf. 624 ECHO='printf %s\n' 625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 627 test "X$echo_testing_string" = "X$echo_test_string"; then 628 # Cool, printf works 629 : 630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 631 test "X$echo_testing_string" = 'X\t' && 632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 635 export CONFIG_SHELL 636 SHELL="$CONFIG_SHELL" 637 export SHELL 638 ECHO="$CONFIG_SHELL $0 --fallback-echo" 639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 ECHO="$CONFIG_SHELL $0 --fallback-echo" 644 else 645 # maybe with a smaller string... 646 prev=: 647 648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 650 then 651 break 652 fi 653 prev="$cmd" 654 done 655 656 if test "$prev" != 'sed 50q "$0"'; then 657 echo_test_string=`eval $prev` 658 export echo_test_string 659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 660 else 661 # Oops. We lost completely, so just stick with echo. 662 ECHO=echo 663 fi 664 fi 665 fi 666 fi 667 fi 668fi 669 670# Copy echo and quote the copy suitably for passing to libtool from 671# the Makefile, instead of quoting the original, which is used later. 672lt_ECHO=$ECHO 673if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 675fi 676 677 678 679 680exec 7<&0 </dev/null 6>&1 681 682# Name of the host. 683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 684# so uname gets run too. 685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 686 687# 688# Initializations. 689# 690ac_default_prefix=/usr/local 691ac_clean_files= 692ac_config_libobj_dir=. 693LIBOBJS= 694cross_compiling=no 695subdirs= 696MFLAGS= 697MAKEFLAGS= 698 699# Identity of this package. 700PACKAGE_NAME='xf86-video-nv' 701PACKAGE_TARNAME='xf86-video-nv' 702PACKAGE_VERSION='2.1.17' 703PACKAGE_STRING='xf86-video-nv 2.1.17' 704PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 705PACKAGE_URL='' 706 707ac_unique_file="Makefile.am" 708# Factoring default headers for most tests. 709ac_includes_default="\ 710#include <stdio.h> 711#ifdef HAVE_SYS_TYPES_H 712# include <sys/types.h> 713#endif 714#ifdef HAVE_SYS_STAT_H 715# include <sys/stat.h> 716#endif 717#ifdef STDC_HEADERS 718# include <stdlib.h> 719# include <stddef.h> 720#else 721# ifdef HAVE_STDLIB_H 722# include <stdlib.h> 723# endif 724#endif 725#ifdef HAVE_STRING_H 726# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 727# include <memory.h> 728# endif 729# include <string.h> 730#endif 731#ifdef HAVE_STRINGS_H 732# include <strings.h> 733#endif 734#ifdef HAVE_INTTYPES_H 735# include <inttypes.h> 736#endif 737#ifdef HAVE_STDINT_H 738# include <stdint.h> 739#endif 740#ifdef HAVE_UNISTD_H 741# include <unistd.h> 742#endif" 743 744ac_subst_vars='am__EXEEXT_FALSE 745am__EXEEXT_TRUE 746LTLIBOBJS 747LIBOBJS 748DRIVER_NAME 749moduledir 750modes_dir 751parser_dir 752XMODES_CFLAGS 753BUILD_XMODES_FALSE 754BUILD_XMODES_TRUE 755PCIACCESS_LIBS 756PCIACCESS_CFLAGS 757HAVE_XEXTPROTO_71_FALSE 758HAVE_XEXTPROTO_71_TRUE 759XEXT_LIBS 760XEXT_CFLAGS 761XORG_LIBS 762XORG_CFLAGS 763OTOOL64 764OTOOL 765LIPO 766NMEDIT 767DSYMUTIL 768lt_ECHO 769RANLIB 770AR 771OBJDUMP 772LN_S 773NM 774ac_ct_DUMPBIN 775DUMPBIN 776LD 777FGREP 778SED 779LIBTOOL 780MAINT 781MAINTAINER_MODE_FALSE 782MAINTAINER_MODE_TRUE 783am__fastdepCC_FALSE 784am__fastdepCC_TRUE 785CCDEPMODE 786AMDEPBACKSLASH 787AMDEP_FALSE 788AMDEP_TRUE 789am__quote 790am__include 791DEPDIR 792am__untar 793am__tar 794AMTAR 795am__leading_dot 796SET_MAKE 797AWK 798mkdir_p 799MKDIR_P 800INSTALL_STRIP_PROGRAM 801STRIP 802install_sh 803MAKEINFO 804AUTOHEADER 805AUTOMAKE 806AUTOCONF 807ACLOCAL 808VERSION 809PACKAGE 810CYGPATH_W 811am__isrc 812INSTALL_DATA 813INSTALL_SCRIPT 814INSTALL_PROGRAM 815ADMIN_MAN_DIR 816DRIVER_MAN_DIR 817MISC_MAN_DIR 818FILE_MAN_DIR 819LIB_MAN_DIR 820APP_MAN_DIR 821ADMIN_MAN_SUFFIX 822DRIVER_MAN_SUFFIX 823MISC_MAN_SUFFIX 824FILE_MAN_SUFFIX 825LIB_MAN_SUFFIX 826APP_MAN_SUFFIX 827host_os 828host_vendor 829host_cpu 830host 831build_os 832build_vendor 833build_cpu 834build 835INSTALL_CMD 836PKG_CONFIG 837CHANGELOG_CMD 838AM_BACKSLASH 839AM_DEFAULT_VERBOSITY 840CWARNFLAGS 841EGREP 842GREP 843CPP 844OBJEXT 845EXEEXT 846ac_ct_CC 847CPPFLAGS 848LDFLAGS 849CFLAGS 850CC 851target_alias 852host_alias 853build_alias 854LIBS 855ECHO_T 856ECHO_N 857ECHO_C 858DEFS 859mandir 860localedir 861libdir 862psdir 863pdfdir 864dvidir 865htmldir 866infodir 867docdir 868oldincludedir 869includedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL' 889ac_subst_files='' 890ac_user_opts=' 891enable_option_checking 892enable_silent_rules 893enable_strict_compilation 894with_release_version 895enable_dependency_tracking 896enable_maintainer_mode 897enable_static 898enable_shared 899with_pic 900enable_fast_install 901with_gnu_ld 902enable_libtool_lock 903with_xorg_module_dir 904with_xserver_source 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CPP 915PKG_CONFIG 916XORG_CFLAGS 917XORG_LIBS 918XEXT_CFLAGS 919XEXT_LIBS 920PCIACCESS_CFLAGS 921PCIACCESS_LIBS' 922 923 924# Initialize some variables set by options. 925ac_init_help= 926ac_init_version=false 927ac_unrecognized_opts= 928ac_unrecognized_sep= 929# The variables have the same names as the options, with 930# dashes changed to underlines. 931cache_file=/dev/null 932exec_prefix=NONE 933no_create= 934no_recursion= 935prefix=NONE 936program_prefix=NONE 937program_suffix=NONE 938program_transform_name=s,x,x, 939silent= 940site= 941srcdir= 942verbose= 943x_includes=NONE 944x_libraries=NONE 945 946# Installation directory options. 947# These are left unexpanded so users can "make install exec_prefix=/foo" 948# and all the variables that are supposed to be based on exec_prefix 949# by default will actually change. 950# Use braces instead of parens because sh, perl, etc. also accept them. 951# (The list follows the same order as the GNU Coding Standards.) 952bindir='${exec_prefix}/bin' 953sbindir='${exec_prefix}/sbin' 954libexecdir='${exec_prefix}/libexec' 955datarootdir='${prefix}/share' 956datadir='${datarootdir}' 957sysconfdir='${prefix}/etc' 958sharedstatedir='${prefix}/com' 959localstatedir='${prefix}/var' 960includedir='${prefix}/include' 961oldincludedir='/usr/include' 962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 963infodir='${datarootdir}/info' 964htmldir='${docdir}' 965dvidir='${docdir}' 966pdfdir='${docdir}' 967psdir='${docdir}' 968libdir='${exec_prefix}/lib' 969localedir='${datarootdir}/locale' 970mandir='${datarootdir}/man' 971 972ac_prev= 973ac_dashdash= 974for ac_option 975do 976 # If the previous option needs an argument, assign it. 977 if test -n "$ac_prev"; then 978 eval $ac_prev=\$ac_option 979 ac_prev= 980 continue 981 fi 982 983 case $ac_option in 984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 985 *) ac_optarg=yes ;; 986 esac 987 988 # Accept the important Cygnus configure options, so we can diagnose typos. 989 990 case $ac_dashdash$ac_option in 991 --) 992 ac_dashdash=yes ;; 993 994 -bindir | --bindir | --bindi | --bind | --bin | --bi) 995 ac_prev=bindir ;; 996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 997 bindir=$ac_optarg ;; 998 999 -build | --build | --buil | --bui | --bu) 1000 ac_prev=build_alias ;; 1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1002 build_alias=$ac_optarg ;; 1003 1004 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1006 ac_prev=cache_file ;; 1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1009 cache_file=$ac_optarg ;; 1010 1011 --config-cache | -C) 1012 cache_file=config.cache ;; 1013 1014 -datadir | --datadir | --datadi | --datad) 1015 ac_prev=datadir ;; 1016 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1017 datadir=$ac_optarg ;; 1018 1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1020 | --dataroo | --dataro | --datar) 1021 ac_prev=datarootdir ;; 1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1024 datarootdir=$ac_optarg ;; 1025 1026 -disable-* | --disable-*) 1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1028 # Reject names that are not valid shell variable names. 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1030 as_fn_error "invalid feature name: $ac_useropt" 1031 ac_useropt_orig=$ac_useropt 1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1033 case $ac_user_opts in 1034 *" 1035"enable_$ac_useropt" 1036"*) ;; 1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1038 ac_unrecognized_sep=', ';; 1039 esac 1040 eval enable_$ac_useropt=no ;; 1041 1042 -docdir | --docdir | --docdi | --doc | --do) 1043 ac_prev=docdir ;; 1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1045 docdir=$ac_optarg ;; 1046 1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1048 ac_prev=dvidir ;; 1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1050 dvidir=$ac_optarg ;; 1051 1052 -enable-* | --enable-*) 1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1056 as_fn_error "invalid feature name: $ac_useropt" 1057 ac_useropt_orig=$ac_useropt 1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1059 case $ac_user_opts in 1060 *" 1061"enable_$ac_useropt" 1062"*) ;; 1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1064 ac_unrecognized_sep=', ';; 1065 esac 1066 eval enable_$ac_useropt=\$ac_optarg ;; 1067 1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1070 | --exec | --exe | --ex) 1071 ac_prev=exec_prefix ;; 1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1074 | --exec=* | --exe=* | --ex=*) 1075 exec_prefix=$ac_optarg ;; 1076 1077 -gas | --gas | --ga | --g) 1078 # Obsolete; use --with-gas. 1079 with_gas=yes ;; 1080 1081 -help | --help | --hel | --he | -h) 1082 ac_init_help=long ;; 1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1084 ac_init_help=recursive ;; 1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1086 ac_init_help=short ;; 1087 1088 -host | --host | --hos | --ho) 1089 ac_prev=host_alias ;; 1090 -host=* | --host=* | --hos=* | --ho=*) 1091 host_alias=$ac_optarg ;; 1092 1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1094 ac_prev=htmldir ;; 1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1096 | --ht=*) 1097 htmldir=$ac_optarg ;; 1098 1099 -includedir | --includedir | --includedi | --included | --include \ 1100 | --includ | --inclu | --incl | --inc) 1101 ac_prev=includedir ;; 1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1103 | --includ=* | --inclu=* | --incl=* | --inc=*) 1104 includedir=$ac_optarg ;; 1105 1106 -infodir | --infodir | --infodi | --infod | --info | --inf) 1107 ac_prev=infodir ;; 1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1109 infodir=$ac_optarg ;; 1110 1111 -libdir | --libdir | --libdi | --libd) 1112 ac_prev=libdir ;; 1113 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1114 libdir=$ac_optarg ;; 1115 1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1117 | --libexe | --libex | --libe) 1118 ac_prev=libexecdir ;; 1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1120 | --libexe=* | --libex=* | --libe=*) 1121 libexecdir=$ac_optarg ;; 1122 1123 -localedir | --localedir | --localedi | --localed | --locale) 1124 ac_prev=localedir ;; 1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1126 localedir=$ac_optarg ;; 1127 1128 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1129 | --localstate | --localstat | --localsta | --localst | --locals) 1130 ac_prev=localstatedir ;; 1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1133 localstatedir=$ac_optarg ;; 1134 1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1136 ac_prev=mandir ;; 1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1138 mandir=$ac_optarg ;; 1139 1140 -nfp | --nfp | --nf) 1141 # Obsolete; use --without-fp. 1142 with_fp=no ;; 1143 1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1145 | --no-cr | --no-c | -n) 1146 no_create=yes ;; 1147 1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1150 no_recursion=yes ;; 1151 1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1154 | --oldin | --oldi | --old | --ol | --o) 1155 ac_prev=oldincludedir ;; 1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1159 oldincludedir=$ac_optarg ;; 1160 1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1162 ac_prev=prefix ;; 1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1164 prefix=$ac_optarg ;; 1165 1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1167 | --program-pre | --program-pr | --program-p) 1168 ac_prev=program_prefix ;; 1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1171 program_prefix=$ac_optarg ;; 1172 1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1174 | --program-suf | --program-su | --program-s) 1175 ac_prev=program_suffix ;; 1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1178 program_suffix=$ac_optarg ;; 1179 1180 -program-transform-name | --program-transform-name \ 1181 | --program-transform-nam | --program-transform-na \ 1182 | --program-transform-n | --program-transform- \ 1183 | --program-transform | --program-transfor \ 1184 | --program-transfo | --program-transf \ 1185 | --program-trans | --program-tran \ 1186 | --progr-tra | --program-tr | --program-t) 1187 ac_prev=program_transform_name ;; 1188 -program-transform-name=* | --program-transform-name=* \ 1189 | --program-transform-nam=* | --program-transform-na=* \ 1190 | --program-transform-n=* | --program-transform-=* \ 1191 | --program-transform=* | --program-transfor=* \ 1192 | --program-transfo=* | --program-transf=* \ 1193 | --program-trans=* | --program-tran=* \ 1194 | --progr-tra=* | --program-tr=* | --program-t=*) 1195 program_transform_name=$ac_optarg ;; 1196 1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1198 ac_prev=pdfdir ;; 1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1200 pdfdir=$ac_optarg ;; 1201 1202 -psdir | --psdir | --psdi | --psd | --ps) 1203 ac_prev=psdir ;; 1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1205 psdir=$ac_optarg ;; 1206 1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1208 | -silent | --silent | --silen | --sile | --sil) 1209 silent=yes ;; 1210 1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1212 ac_prev=sbindir ;; 1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1214 | --sbi=* | --sb=*) 1215 sbindir=$ac_optarg ;; 1216 1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1219 | --sharedst | --shareds | --shared | --share | --shar \ 1220 | --sha | --sh) 1221 ac_prev=sharedstatedir ;; 1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1225 | --sha=* | --sh=*) 1226 sharedstatedir=$ac_optarg ;; 1227 1228 -site | --site | --sit) 1229 ac_prev=site ;; 1230 -site=* | --site=* | --sit=*) 1231 site=$ac_optarg ;; 1232 1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1234 ac_prev=srcdir ;; 1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1236 srcdir=$ac_optarg ;; 1237 1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1239 | --syscon | --sysco | --sysc | --sys | --sy) 1240 ac_prev=sysconfdir ;; 1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1243 sysconfdir=$ac_optarg ;; 1244 1245 -target | --target | --targe | --targ | --tar | --ta | --t) 1246 ac_prev=target_alias ;; 1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1248 target_alias=$ac_optarg ;; 1249 1250 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1251 verbose=yes ;; 1252 1253 -version | --version | --versio | --versi | --vers | -V) 1254 ac_init_version=: ;; 1255 1256 -with-* | --with-*) 1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1260 as_fn_error "invalid package name: $ac_useropt" 1261 ac_useropt_orig=$ac_useropt 1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1263 case $ac_user_opts in 1264 *" 1265"with_$ac_useropt" 1266"*) ;; 1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1268 ac_unrecognized_sep=', ';; 1269 esac 1270 eval with_$ac_useropt=\$ac_optarg ;; 1271 1272 -without-* | --without-*) 1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1274 # Reject names that are not valid shell variable names. 1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1276 as_fn_error "invalid package name: $ac_useropt" 1277 ac_useropt_orig=$ac_useropt 1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1279 case $ac_user_opts in 1280 *" 1281"with_$ac_useropt" 1282"*) ;; 1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1284 ac_unrecognized_sep=', ';; 1285 esac 1286 eval with_$ac_useropt=no ;; 1287 1288 --x) 1289 # Obsolete; use --with-x. 1290 with_x=yes ;; 1291 1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1293 | --x-incl | --x-inc | --x-in | --x-i) 1294 ac_prev=x_includes ;; 1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1297 x_includes=$ac_optarg ;; 1298 1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1301 ac_prev=x_libraries ;; 1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1304 x_libraries=$ac_optarg ;; 1305 1306 -*) as_fn_error "unrecognized option: \`$ac_option' 1307Try \`$0 --help' for more information." 1308 ;; 1309 1310 *=*) 1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1312 # Reject names that are not valid shell variable names. 1313 case $ac_envvar in #( 1314 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1315 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1316 esac 1317 eval $ac_envvar=\$ac_optarg 1318 export $ac_envvar ;; 1319 1320 *) 1321 # FIXME: should be removed in autoconf 3.0. 1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1325 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1326 ;; 1327 1328 esac 1329done 1330 1331if test -n "$ac_prev"; then 1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1333 as_fn_error "missing argument to $ac_option" 1334fi 1335 1336if test -n "$ac_unrecognized_opts"; then 1337 case $enable_option_checking in 1338 no) ;; 1339 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1341 esac 1342fi 1343 1344# Check all directory arguments for consistency. 1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1346 datadir sysconfdir sharedstatedir localstatedir includedir \ 1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1348 libdir localedir mandir 1349do 1350 eval ac_val=\$$ac_var 1351 # Remove trailing slashes. 1352 case $ac_val in 1353 */ ) 1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1355 eval $ac_var=\$ac_val;; 1356 esac 1357 # Be sure to have absolute directory names. 1358 case $ac_val in 1359 [\\/$]* | ?:[\\/]* ) continue;; 1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1361 esac 1362 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1363done 1364 1365# There might be people who depend on the old broken behavior: `$host' 1366# used to hold the argument of --host etc. 1367# FIXME: To remove some day. 1368build=$build_alias 1369host=$host_alias 1370target=$target_alias 1371 1372# FIXME: To remove some day. 1373if test "x$host_alias" != x; then 1374 if test "x$build_alias" = x; then 1375 cross_compiling=maybe 1376 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1377 If a cross compiler is detected then cross compile mode will be used." >&2 1378 elif test "x$build_alias" != "x$host_alias"; then 1379 cross_compiling=yes 1380 fi 1381fi 1382 1383ac_tool_prefix= 1384test -n "$host_alias" && ac_tool_prefix=$host_alias- 1385 1386test "$silent" = yes && exec 6>/dev/null 1387 1388 1389ac_pwd=`pwd` && test -n "$ac_pwd" && 1390ac_ls_di=`ls -di .` && 1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1392 as_fn_error "working directory cannot be determined" 1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1394 as_fn_error "pwd does not report name of working directory" 1395 1396 1397# Find the source files, if location was not specified. 1398if test -z "$srcdir"; then 1399 ac_srcdir_defaulted=yes 1400 # Try the directory containing this script, then the parent directory. 1401 ac_confdir=`$as_dirname -- "$as_myself" || 1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1403 X"$as_myself" : 'X\(//\)[^/]' \| \ 1404 X"$as_myself" : 'X\(//\)$' \| \ 1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1406$as_echo X"$as_myself" | 1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\/\)[^/].*/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\/\)$/{ 1416 s//\1/ 1417 q 1418 } 1419 /^X\(\/\).*/{ 1420 s//\1/ 1421 q 1422 } 1423 s/.*/./; q'` 1424 srcdir=$ac_confdir 1425 if test ! -r "$srcdir/$ac_unique_file"; then 1426 srcdir=.. 1427 fi 1428else 1429 ac_srcdir_defaulted=no 1430fi 1431if test ! -r "$srcdir/$ac_unique_file"; then 1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1433 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1434fi 1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1436ac_abs_confdir=`( 1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1438 pwd)` 1439# When building in place, set srcdir=. 1440if test "$ac_abs_confdir" = "$ac_pwd"; then 1441 srcdir=. 1442fi 1443# Remove unnecessary trailing slashes from srcdir. 1444# Double slashes in file names in object file debugging info 1445# mess up M-x gdb in Emacs. 1446case $srcdir in 1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1448esac 1449for ac_var in $ac_precious_vars; do 1450 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_env_${ac_var}_value=\$${ac_var} 1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1453 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1454done 1455 1456# 1457# Report the --help message. 1458# 1459if test "$ac_init_help" = "long"; then 1460 # Omit some internal or obsolete options to make the list less imposing. 1461 # This message is too long to be a string in the A/UX 3.1 sh. 1462 cat <<_ACEOF 1463\`configure' configures xf86-video-nv 2.1.17 to adapt to many kinds of systems. 1464 1465Usage: $0 [OPTION]... [VAR=VALUE]... 1466 1467To assign environment variables (e.g., CC, CFLAGS...), specify them as 1468VAR=VALUE. See below for descriptions of some of the useful variables. 1469 1470Defaults for the options are specified in brackets. 1471 1472Configuration: 1473 -h, --help display this help and exit 1474 --help=short display options specific to this package 1475 --help=recursive display the short help of all the included packages 1476 -V, --version display version information and exit 1477 -q, --quiet, --silent do not print \`checking...' messages 1478 --cache-file=FILE cache test results in FILE [disabled] 1479 -C, --config-cache alias for \`--cache-file=config.cache' 1480 -n, --no-create do not create output files 1481 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1482 1483Installation directories: 1484 --prefix=PREFIX install architecture-independent files in PREFIX 1485 [$ac_default_prefix] 1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1487 [PREFIX] 1488 1489By default, \`make install' will install all the files in 1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1491an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1492for instance \`--prefix=\$HOME'. 1493 1494For better control, use the options below. 1495 1496Fine tuning of the installation directories: 1497 --bindir=DIR user executables [EPREFIX/bin] 1498 --sbindir=DIR system admin executables [EPREFIX/sbin] 1499 --libexecdir=DIR program executables [EPREFIX/libexec] 1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1503 --libdir=DIR object code libraries [EPREFIX/lib] 1504 --includedir=DIR C header files [PREFIX/include] 1505 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1508 --infodir=DIR info documentation [DATAROOTDIR/info] 1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1510 --mandir=DIR man documentation [DATAROOTDIR/man] 1511 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv] 1512 --htmldir=DIR html documentation [DOCDIR] 1513 --dvidir=DIR dvi documentation [DOCDIR] 1514 --pdfdir=DIR pdf documentation [DOCDIR] 1515 --psdir=DIR ps documentation [DOCDIR] 1516_ACEOF 1517 1518 cat <<\_ACEOF 1519 1520Program names: 1521 --program-prefix=PREFIX prepend PREFIX to installed program names 1522 --program-suffix=SUFFIX append SUFFIX to installed program names 1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1524 1525System types: 1526 --build=BUILD configure for building on BUILD [guessed] 1527 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1528_ACEOF 1529fi 1530 1531if test -n "$ac_init_help"; then 1532 case $ac_init_help in 1533 short | recursive ) echo "Configuration of xf86-video-nv 2.1.17:";; 1534 esac 1535 cat <<\_ACEOF 1536 1537Optional Features: 1538 --disable-option-checking ignore unrecognized --enable/--with options 1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1541 --enable-silent-rules less verbose build output (undo: `make V=1') 1542 --disable-silent-rules verbose build output (undo: `make V=0') 1543 --enable-strict-compilation 1544 Enable all warnings from compiler and make them 1545 errors (default: disabled) 1546 --disable-dependency-tracking speeds up one-time build 1547 --enable-dependency-tracking do not reject slow dependency extractors 1548 --enable-maintainer-mode enable make rules and dependencies not useful 1549 (and sometimes confusing) to the casual installer 1550 --enable-static[=PKGS] build static libraries [default=no] 1551 --enable-shared[=PKGS] build shared libraries [default=yes] 1552 --enable-fast-install[=PKGS] 1553 optimize for fast installation [default=yes] 1554 --disable-libtool-lock avoid locking (might break parallel builds) 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-release-version=STRING 1560 Use release version string in package name 1561 --with-pic try to use only PIC/non-PIC objects [default=use 1562 both] 1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1564 --with-xorg-module-dir=DIR 1565 Default xorg module directory 1566 [default=$libdir/xorg/modules] 1567 --with-xserver-source=XSERVER_SOURCE 1568 Path to X server source tree 1569 1570Some influential environment variables: 1571 CC C compiler command 1572 CFLAGS C compiler flags 1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1574 nonstandard directory <lib dir> 1575 LIBS libraries to pass to the linker, e.g. -l<library> 1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1577 you have headers in a nonstandard directory <include dir> 1578 CPP C preprocessor 1579 PKG_CONFIG path to pkg-config utility 1580 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1581 XORG_LIBS linker flags for XORG, overriding pkg-config 1582 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1583 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1584 PCIACCESS_CFLAGS 1585 C compiler flags for PCIACCESS, overriding pkg-config 1586 PCIACCESS_LIBS 1587 linker flags for PCIACCESS, overriding pkg-config 1588 1589Use these variables to override the choices made by `configure' or to help 1590it to find libraries and programs with nonstandard names/locations. 1591 1592Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1593_ACEOF 1594ac_status=$? 1595fi 1596 1597if test "$ac_init_help" = "recursive"; then 1598 # If there are subdirs, report their specific --help. 1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1600 test -d "$ac_dir" || 1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1602 continue 1603 ac_builddir=. 1604 1605case "$ac_dir" in 1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1607*) 1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1609 # A ".." for each directory in $ac_dir_suffix. 1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1611 case $ac_top_builddir_sub in 1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1614 esac ;; 1615esac 1616ac_abs_top_builddir=$ac_pwd 1617ac_abs_builddir=$ac_pwd$ac_dir_suffix 1618# for backward compatibility: 1619ac_top_builddir=$ac_top_build_prefix 1620 1621case $srcdir in 1622 .) # We are building in place. 1623 ac_srcdir=. 1624 ac_top_srcdir=$ac_top_builddir_sub 1625 ac_abs_top_srcdir=$ac_pwd ;; 1626 [\\/]* | ?:[\\/]* ) # Absolute name. 1627 ac_srcdir=$srcdir$ac_dir_suffix; 1628 ac_top_srcdir=$srcdir 1629 ac_abs_top_srcdir=$srcdir ;; 1630 *) # Relative name. 1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1632 ac_top_srcdir=$ac_top_build_prefix$srcdir 1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1634esac 1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1636 1637 cd "$ac_dir" || { ac_status=$?; continue; } 1638 # Check for guested configure. 1639 if test -f "$ac_srcdir/configure.gnu"; then 1640 echo && 1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1642 elif test -f "$ac_srcdir/configure"; then 1643 echo && 1644 $SHELL "$ac_srcdir/configure" --help=recursive 1645 else 1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1647 fi || ac_status=$? 1648 cd "$ac_pwd" || { ac_status=$?; break; } 1649 done 1650fi 1651 1652test -n "$ac_init_help" && exit $ac_status 1653if $ac_init_version; then 1654 cat <<\_ACEOF 1655xf86-video-nv configure 2.1.17 1656generated by GNU Autoconf 2.64 1657 1658Copyright (C) 2009 Free Software Foundation, Inc. 1659This configure script is free software; the Free Software Foundation 1660gives unlimited permission to copy, distribute and modify it. 1661_ACEOF 1662 exit 1663fi 1664 1665## ------------------------ ## 1666## Autoconf initialization. ## 1667## ------------------------ ## 1668 1669# ac_fn_c_try_compile LINENO 1670# -------------------------- 1671# Try to compile conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_compile () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext 1676 if { { ac_try="$ac_compile" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_compile") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest.$ac_objext; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1703 return $ac_retval 1704 1705} # ac_fn_c_try_compile 1706 1707# ac_fn_c_check_decl LINENO SYMBOL VAR 1708# ------------------------------------ 1709# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1710ac_fn_c_check_decl () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1714$as_echo_n "checking whether $2 is declared... " >&6; } 1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720$4 1721int 1722main () 1723{ 1724#ifndef $2 1725 (void) $2; 1726#endif 1727 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 eval "$3=yes" 1734else 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738fi 1739eval ac_res=\$$3 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741$as_echo "$ac_res" >&6; } 1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1743 1744} # ac_fn_c_check_decl 1745 1746# ac_fn_c_try_cpp LINENO 1747# ---------------------- 1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_cpp () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_cpp conftest.$ac_ext" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } >/dev/null && { 1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1779 return $ac_retval 1780 1781} # ac_fn_c_try_cpp 1782 1783# ac_fn_c_try_run LINENO 1784# ---------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1786# that executables *can* be run. 1787ac_fn_c_try_run () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>&5 1798 ac_status=$? 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1801 { { case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_try") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; }; }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: program exited with status $ac_status" >&5 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=$ac_status 1818fi 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1821 return $ac_retval 1822 1823} # ac_fn_c_try_run 1824 1825# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists and can be compiled using the include files in 1828# INCLUDES, setting the cache variable VAR accordingly. 1829ac_fn_c_check_header_compile () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839$4 1840#include <$2> 1841_ACEOF 1842if ac_fn_c_try_compile "$LINENO"; then : 1843 eval "$3=yes" 1844else 1845 eval "$3=no" 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1853 1854} # ac_fn_c_check_header_compile 1855 1856# ac_fn_c_try_link LINENO 1857# ----------------------- 1858# Try to link conftest.$ac_ext, and return whether this succeeded. 1859ac_fn_c_try_link () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 rm -f conftest.$ac_objext conftest$ac_exeext 1863 if { { ac_try="$ac_link" 1864case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867esac 1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1869$as_echo "$ac_try_echo"; } >&5 1870 (eval "$ac_link") 2>conftest.err 1871 ac_status=$? 1872 if test -s conftest.err; then 1873 grep -v '^ *+' conftest.err >conftest.er1 1874 cat conftest.er1 >&5 1875 mv -f conftest.er1 conftest.err 1876 fi 1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { 1879 test -z "$ac_c_werror_flag" || 1880 test ! -s conftest.err 1881 } && test -s conftest$ac_exeext && { 1882 test "$cross_compiling" = yes || 1883 $as_test_x conftest$ac_exeext 1884 }; then : 1885 ac_retval=0 1886else 1887 $as_echo "$as_me: failed program was:" >&5 1888sed 's/^/| /' conftest.$ac_ext >&5 1889 1890 ac_retval=1 1891fi 1892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1894 # interfere with the next link command; also delete a directory that is 1895 # left behind by Apple's compiler. We do this before executing the actions. 1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1898 return $ac_retval 1899 1900} # ac_fn_c_try_link 1901 1902# ac_fn_c_check_func LINENO FUNC VAR 1903# ---------------------------------- 1904# Tests whether FUNC exists, setting the cache variable VAR accordingly 1905ac_fn_c_check_func () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1909$as_echo_n "checking for $2... " >&6; } 1910if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1911 $as_echo_n "(cached) " >&6 1912else 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1917#define $2 innocuous_$2 1918 1919/* System header to define __stub macros and hopefully few prototypes, 1920 which can conflict with char $2 (); below. 1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1922 <limits.h> exists even on freestanding compilers. */ 1923 1924#ifdef __STDC__ 1925# include <limits.h> 1926#else 1927# include <assert.h> 1928#endif 1929 1930#undef $2 1931 1932/* Override any GCC internal prototype to avoid an error. 1933 Use char because int might match the return type of a GCC 1934 builtin and then its argument prototype would still apply. */ 1935#ifdef __cplusplus 1936extern "C" 1937#endif 1938char $2 (); 1939/* The GNU C library defines this for functions which it implements 1940 to always fail with ENOSYS. Some functions are actually named 1941 something starting with __ and the normal name is an alias. */ 1942#if defined __stub_$2 || defined __stub___$2 1943choke me 1944#endif 1945 1946int 1947main () 1948{ 1949return $2 (); 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_link "$LINENO"; then : 1955 eval "$3=yes" 1956else 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext \ 1960 conftest$ac_exeext conftest.$ac_ext 1961fi 1962eval ac_res=\$$3 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964$as_echo "$ac_res" >&6; } 1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1966 1967} # ac_fn_c_check_func 1968cat >config.log <<_ACEOF 1969This file contains any messages produced by compilers while 1970running configure, to aid debugging if configure makes a mistake. 1971 1972It was created by xf86-video-nv $as_me 2.1.17, which was 1973generated by GNU Autoconf 2.64. Invocation command line was 1974 1975 $ $0 $@ 1976 1977_ACEOF 1978exec 5>>config.log 1979{ 1980cat <<_ASUNAME 1981## --------- ## 1982## Platform. ## 1983## --------- ## 1984 1985hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1986uname -m = `(uname -m) 2>/dev/null || echo unknown` 1987uname -r = `(uname -r) 2>/dev/null || echo unknown` 1988uname -s = `(uname -s) 2>/dev/null || echo unknown` 1989uname -v = `(uname -v) 2>/dev/null || echo unknown` 1990 1991/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1992/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1993 1994/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1995/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1996/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1997/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1998/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1999/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2000/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2001 2002_ASUNAME 2003 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 $as_echo "PATH: $as_dir" 2010 done 2011IFS=$as_save_IFS 2012 2013} >&5 2014 2015cat >&5 <<_ACEOF 2016 2017 2018## ----------- ## 2019## Core tests. ## 2020## ----------- ## 2021 2022_ACEOF 2023 2024 2025# Keep a trace of the command line. 2026# Strip out --no-create and --no-recursion so they do not pile up. 2027# Strip out --silent because we don't want to record it for future runs. 2028# Also quote any args containing shell meta-characters. 2029# Make two passes to allow for proper duplicate-argument suppression. 2030ac_configure_args= 2031ac_configure_args0= 2032ac_configure_args1= 2033ac_must_keep_next=false 2034for ac_pass in 1 2 2035do 2036 for ac_arg 2037 do 2038 case $ac_arg in 2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2041 | -silent | --silent | --silen | --sile | --sil) 2042 continue ;; 2043 *\'*) 2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2045 esac 2046 case $ac_pass in 2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2048 2) 2049 as_fn_append ac_configure_args1 " '$ac_arg'" 2050 if test $ac_must_keep_next = true; then 2051 ac_must_keep_next=false # Got value, back to normal. 2052 else 2053 case $ac_arg in 2054 *=* | --config-cache | -C | -disable-* | --disable-* \ 2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2057 | -with-* | --with-* | -without-* | --without-* | --x) 2058 case "$ac_configure_args0 " in 2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2060 esac 2061 ;; 2062 -* ) ac_must_keep_next=true ;; 2063 esac 2064 fi 2065 as_fn_append ac_configure_args " '$ac_arg'" 2066 ;; 2067 esac 2068 done 2069done 2070{ ac_configure_args0=; unset ac_configure_args0;} 2071{ ac_configure_args1=; unset ac_configure_args1;} 2072 2073# When interrupted or exit'd, cleanup temporary files, and complete 2074# config.log. We remove comments because anyway the quotes in there 2075# would cause problems or look ugly. 2076# WARNING: Use '\'' to represent an apostrophe within the trap. 2077# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2078trap 'exit_status=$? 2079 # Save into config.log some information that might help in debugging. 2080 { 2081 echo 2082 2083 cat <<\_ASBOX 2084## ---------------- ## 2085## Cache variables. ## 2086## ---------------- ## 2087_ASBOX 2088 echo 2089 # The following way of writing the cache mishandles newlines in values, 2090( 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in #( 2094 *${as_nl}*) 2095 case $ac_var in #( 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2098 esac 2099 case $ac_var in #( 2100 _ | IFS | as_nl) ;; #( 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2102 *) { eval $ac_var=; unset $ac_var;} ;; 2103 esac ;; 2104 esac 2105 done 2106 (set) 2>&1 | 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2108 *${as_nl}ac_space=\ *) 2109 sed -n \ 2110 "s/'\''/'\''\\\\'\'''\''/g; 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2112 ;; #( 2113 *) 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2115 ;; 2116 esac | 2117 sort 2118) 2119 echo 2120 2121 cat <<\_ASBOX 2122## ----------------- ## 2123## Output variables. ## 2124## ----------------- ## 2125_ASBOX 2126 echo 2127 for ac_var in $ac_subst_vars 2128 do 2129 eval ac_val=\$$ac_var 2130 case $ac_val in 2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2132 esac 2133 $as_echo "$ac_var='\''$ac_val'\''" 2134 done | sort 2135 echo 2136 2137 if test -n "$ac_subst_files"; then 2138 cat <<\_ASBOX 2139## ------------------- ## 2140## File substitutions. ## 2141## ------------------- ## 2142_ASBOX 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 cat <<\_ASBOX 2157## ----------- ## 2158## confdefs.h. ## 2159## ----------- ## 2160_ASBOX 2161 echo 2162 cat confdefs.h 2163 echo 2164 fi 2165 test "$ac_signal" != 0 && 2166 $as_echo "$as_me: caught signal $ac_signal" 2167 $as_echo "$as_me: exit $exit_status" 2168 } >&5 2169 rm -f core *.core core.conftest.* && 2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2171 exit $exit_status 2172' 0 2173for ac_signal in 1 2 13 15; do 2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2175done 2176ac_signal=0 2177 2178# confdefs.h avoids OS command line length limits that DEFS can exceed. 2179rm -f -r conftest* confdefs.h 2180 2181$as_echo "/* confdefs.h */" > confdefs.h 2182 2183# Predefined preprocessor variables. 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_NAME "$PACKAGE_NAME" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_VERSION "$PACKAGE_VERSION" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_STRING "$PACKAGE_STRING" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_URL "$PACKAGE_URL" 2207_ACEOF 2208 2209 2210# Let the site file select an alternate cache file if it wants to. 2211# Prefer an explicitly selected file to automatically selected ones. 2212ac_site_file1=NONE 2213ac_site_file2=NONE 2214if test -n "$CONFIG_SITE"; then 2215 ac_site_file1=$CONFIG_SITE 2216elif test "x$prefix" != xNONE; then 2217 ac_site_file1=$prefix/share/config.site 2218 ac_site_file2=$prefix/etc/config.site 2219else 2220 ac_site_file1=$ac_default_prefix/share/config.site 2221 ac_site_file2=$ac_default_prefix/etc/config.site 2222fi 2223for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2224do 2225 test "x$ac_site_file" = xNONE && continue 2226 if test -r "$ac_site_file"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2228$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2229 sed 's/^/| /' "$ac_site_file" >&5 2230 . "$ac_site_file" 2231 fi 2232done 2233 2234if test -r "$cache_file"; then 2235 # Some versions of bash will fail to source /dev/null (special 2236 # files actually), so we avoid doing that. 2237 if test -f "$cache_file"; then 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2239$as_echo "$as_me: loading cache $cache_file" >&6;} 2240 case $cache_file in 2241 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2242 *) . "./$cache_file";; 2243 esac 2244 fi 2245else 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2247$as_echo "$as_me: creating cache $cache_file" >&6;} 2248 >$cache_file 2249fi 2250 2251# Check that the precious variables saved in the cache have kept the same 2252# value. 2253ac_cache_corrupted=false 2254for ac_var in $ac_precious_vars; do 2255 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2256 eval ac_new_set=\$ac_env_${ac_var}_set 2257 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2258 eval ac_new_val=\$ac_env_${ac_var}_value 2259 case $ac_old_set,$ac_new_set in 2260 set,) 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2262$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2263 ac_cache_corrupted=: ;; 2264 ,set) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,);; 2269 *) 2270 if test "x$ac_old_val" != "x$ac_new_val"; then 2271 # differences in whitespace do not lead to failure. 2272 ac_old_val_w=`echo x $ac_old_val` 2273 ac_new_val_w=`echo x $ac_new_val` 2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2277 ac_cache_corrupted=: 2278 else 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2281 eval $ac_var=\$ac_old_val 2282 fi 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2284$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2286$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2287 fi;; 2288 esac 2289 # Pass precious variables to config.status. 2290 if test "$ac_new_set" = set; then 2291 case $ac_new_val in 2292 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2293 *) ac_arg=$ac_var=$ac_new_val ;; 2294 esac 2295 case " $ac_configure_args " in 2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2297 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2298 esac 2299 fi 2300done 2301if $ac_cache_corrupted; then 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2306 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2307fi 2308## -------------------- ## 2309## Main body of script. ## 2310## -------------------- ## 2311 2312ac_ext=c 2313ac_cpp='$CPP $CPPFLAGS' 2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2316ac_compiler_gnu=$ac_cv_c_compiler_gnu 2317 2318 2319 2320 2321ac_config_headers="$ac_config_headers config.h" 2322 2323 2324# Require xorg-macros: XORG_DEFAULT_OPTIONS 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336ac_ext=c 2337ac_cpp='$CPP $CPPFLAGS' 2338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2340ac_compiler_gnu=$ac_cv_c_compiler_gnu 2341if test -n "$ac_tool_prefix"; then 2342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2343set dummy ${ac_tool_prefix}gcc; ac_word=$2 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if test "${ac_cv_prog_CC+set}" = set; then : 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$CC"; then 2350 ac_cv_prog_CC="$CC" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364 done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369CC=$ac_cv_prog_CC 2370if test -n "$CC"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2372$as_echo "$CC" >&6; } 2373else 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2375$as_echo "no" >&6; } 2376fi 2377 2378 2379fi 2380if test -z "$ac_cv_prog_CC"; then 2381 ac_ct_CC=$CC 2382 # Extract the first word of "gcc", so it can be a program name with args. 2383set dummy gcc; ac_word=$2 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2385$as_echo_n "checking for $ac_word... " >&6; } 2386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2387 $as_echo_n "(cached) " >&6 2388else 2389 if test -n "$ac_ct_CC"; then 2390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_ac_ct_CC="gcc" 2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404 done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409ac_ct_CC=$ac_cv_prog_ac_ct_CC 2410if test -n "$ac_ct_CC"; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2412$as_echo "$ac_ct_CC" >&6; } 2413else 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2415$as_echo "no" >&6; } 2416fi 2417 2418 if test "x$ac_ct_CC" = x; then 2419 CC="" 2420 else 2421 case $cross_compiling:$ac_tool_warned in 2422yes:) 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2425ac_tool_warned=yes ;; 2426esac 2427 CC=$ac_ct_CC 2428 fi 2429else 2430 CC="$ac_cv_prog_CC" 2431fi 2432 2433if test -z "$CC"; then 2434 if test -n "$ac_tool_prefix"; then 2435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2436set dummy ${ac_tool_prefix}cc; ac_word=$2 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2438$as_echo_n "checking for $ac_word... " >&6; } 2439if test "${ac_cv_prog_CC+set}" = set; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 if test -n "$CC"; then 2443 ac_cv_prog_CC="$CC" # Let the user override the test. 2444else 2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2446for as_dir in $PATH 2447do 2448 IFS=$as_save_IFS 2449 test -z "$as_dir" && as_dir=. 2450 for ac_exec_ext in '' $ac_executable_extensions; do 2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2452 ac_cv_prog_CC="${ac_tool_prefix}cc" 2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2454 break 2 2455 fi 2456done 2457 done 2458IFS=$as_save_IFS 2459 2460fi 2461fi 2462CC=$ac_cv_prog_CC 2463if test -n "$CC"; then 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2465$as_echo "$CC" >&6; } 2466else 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2468$as_echo "no" >&6; } 2469fi 2470 2471 2472 fi 2473fi 2474if test -z "$CC"; then 2475 # Extract the first word of "cc", so it can be a program name with args. 2476set dummy cc; ac_word=$2 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2478$as_echo_n "checking for $ac_word... " >&6; } 2479if test "${ac_cv_prog_CC+set}" = set; then : 2480 $as_echo_n "(cached) " >&6 2481else 2482 if test -n "$CC"; then 2483 ac_cv_prog_CC="$CC" # Let the user override the test. 2484else 2485 ac_prog_rejected=no 2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2487for as_dir in $PATH 2488do 2489 IFS=$as_save_IFS 2490 test -z "$as_dir" && as_dir=. 2491 for ac_exec_ext in '' $ac_executable_extensions; do 2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2494 ac_prog_rejected=yes 2495 continue 2496 fi 2497 ac_cv_prog_CC="cc" 2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502 done 2503IFS=$as_save_IFS 2504 2505if test $ac_prog_rejected = yes; then 2506 # We found a bogon in the path, so make sure we never use it. 2507 set dummy $ac_cv_prog_CC 2508 shift 2509 if test $# != 0; then 2510 # We chose a different compiler from the bogus one. 2511 # However, it has the same basename, so the bogon will be chosen 2512 # first if we set CC to just the basename; use the full file name. 2513 shift 2514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2515 fi 2516fi 2517fi 2518fi 2519CC=$ac_cv_prog_CC 2520if test -n "$CC"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2522$as_echo "$CC" >&6; } 2523else 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2525$as_echo "no" >&6; } 2526fi 2527 2528 2529fi 2530if test -z "$CC"; then 2531 if test -n "$ac_tool_prefix"; then 2532 for ac_prog in cl.exe 2533 do 2534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2535set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2537$as_echo_n "checking for $ac_word... " >&6; } 2538if test "${ac_cv_prog_CC+set}" = set; then : 2539 $as_echo_n "(cached) " >&6 2540else 2541 if test -n "$CC"; then 2542 ac_cv_prog_CC="$CC" # Let the user override the test. 2543else 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 test -z "$as_dir" && as_dir=. 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2553 break 2 2554 fi 2555done 2556 done 2557IFS=$as_save_IFS 2558 2559fi 2560fi 2561CC=$ac_cv_prog_CC 2562if test -n "$CC"; then 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2564$as_echo "$CC" >&6; } 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2567$as_echo "no" >&6; } 2568fi 2569 2570 2571 test -n "$CC" && break 2572 done 2573fi 2574if test -z "$CC"; then 2575 ac_ct_CC=$CC 2576 for ac_prog in cl.exe 2577do 2578 # Extract the first word of "$ac_prog", so it can be a program name with args. 2579set dummy $ac_prog; ac_word=$2 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$ac_ct_CC"; then 2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_ac_ct_CC="$ac_prog" 2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600 done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605ac_ct_CC=$ac_cv_prog_ac_ct_CC 2606if test -n "$ac_ct_CC"; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2608$as_echo "$ac_ct_CC" >&6; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615 test -n "$ac_ct_CC" && break 2616done 2617 2618 if test "x$ac_ct_CC" = x; then 2619 CC="" 2620 else 2621 case $cross_compiling:$ac_tool_warned in 2622yes:) 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2625ac_tool_warned=yes ;; 2626esac 2627 CC=$ac_ct_CC 2628 fi 2629fi 2630 2631fi 2632 2633 2634test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636as_fn_error "no acceptable C compiler found in \$PATH 2637See \`config.log' for more details." "$LINENO" 5; } 2638 2639# Provide some information about the compiler. 2640$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2641set X $ac_compile 2642ac_compiler=$2 2643for ac_option in --version -v -V -qversion; do 2644 { { ac_try="$ac_compiler $ac_option >&5" 2645case "(($ac_try" in 2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2647 *) ac_try_echo=$ac_try;; 2648esac 2649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2650$as_echo "$ac_try_echo"; } >&5 2651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2652 ac_status=$? 2653 if test -s conftest.err; then 2654 sed '10a\ 2655... rest of stderr output deleted ... 2656 10q' conftest.err >conftest.er1 2657 cat conftest.er1 >&5 2658 rm -f conftest.er1 conftest.err 2659 fi 2660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2661 test $ac_status = 0; } 2662done 2663 2664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2665/* end confdefs.h. */ 2666#include <stdio.h> 2667int 2668main () 2669{ 2670FILE *f = fopen ("conftest.out", "w"); 2671 return ferror (f) || fclose (f) != 0; 2672 2673 ; 2674 return 0; 2675} 2676_ACEOF 2677ac_clean_files_save=$ac_clean_files 2678ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2679# Try to create an executable without -o first, disregard a.out. 2680# It will help us diagnose broken compilers, and finding out an intuition 2681# of exeext. 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2683$as_echo_n "checking for C compiler default output file name... " >&6; } 2684ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2685 2686# The possible output files: 2687ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2688 2689ac_rmfiles= 2690for ac_file in $ac_files 2691do 2692 case $ac_file in 2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2694 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2695 esac 2696done 2697rm -f $ac_rmfiles 2698 2699if { { ac_try="$ac_link_default" 2700case "(($ac_try" in 2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2702 *) ac_try_echo=$ac_try;; 2703esac 2704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2705$as_echo "$ac_try_echo"; } >&5 2706 (eval "$ac_link_default") 2>&5 2707 ac_status=$? 2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2709 test $ac_status = 0; }; then : 2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2712# in a Makefile. We should not override ac_cv_exeext if it was cached, 2713# so that the user can short-circuit this test for compilers unknown to 2714# Autoconf. 2715for ac_file in $ac_files '' 2716do 2717 test -f "$ac_file" || continue 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2720 ;; 2721 [ab].out ) 2722 # We found the default executable, but exeext='' is most 2723 # certainly right. 2724 break;; 2725 *.* ) 2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2727 then :; else 2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2729 fi 2730 # We set ac_cv_exeext here because the later test for it is not 2731 # safe: cross compilers may not add the suffix if given an `-o' 2732 # argument, so we may need to know it at that point already. 2733 # Even if this section looks crufty: it has the advantage of 2734 # actually working. 2735 break;; 2736 * ) 2737 break;; 2738 esac 2739done 2740test "$ac_cv_exeext" = no && ac_cv_exeext= 2741 2742else 2743 ac_file='' 2744fi 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2746$as_echo "$ac_file" >&6; } 2747if test -z "$ac_file"; then : 2748 $as_echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2753{ as_fn_set_status 77 2754as_fn_error "C compiler cannot create executables 2755See \`config.log' for more details." "$LINENO" 5; }; } 2756fi 2757ac_exeext=$ac_cv_exeext 2758 2759# Check that the compiler produces executables we can run. If not, either 2760# the compiler is broken, or we cross compile. 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2762$as_echo_n "checking whether the C compiler works... " >&6; } 2763# If not cross compiling, check that we can run a simple program. 2764if test "$cross_compiling" != yes; then 2765 if { ac_try='./$ac_file' 2766 { { case "(($ac_try" in 2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2768 *) ac_try_echo=$ac_try;; 2769esac 2770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2771$as_echo "$ac_try_echo"; } >&5 2772 (eval "$ac_try") 2>&5 2773 ac_status=$? 2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2775 test $ac_status = 0; }; }; then 2776 cross_compiling=no 2777 else 2778 if test "$cross_compiling" = maybe; then 2779 cross_compiling=yes 2780 else 2781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2783as_fn_error "cannot run C compiled programs. 2784If you meant to cross compile, use \`--host'. 2785See \`config.log' for more details." "$LINENO" 5; } 2786 fi 2787 fi 2788fi 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2790$as_echo "yes" >&6; } 2791 2792rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2793ac_clean_files=$ac_clean_files_save 2794# Check that the compiler produces executables we can run. If not, either 2795# the compiler is broken, or we cross compile. 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2797$as_echo_n "checking whether we are cross compiling... " >&6; } 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2799$as_echo "$cross_compiling" >&6; } 2800 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2802$as_echo_n "checking for suffix of executables... " >&6; } 2803if { { ac_try="$ac_link" 2804case "(($ac_try" in 2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2806 *) ac_try_echo=$ac_try;; 2807esac 2808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2809$as_echo "$ac_try_echo"; } >&5 2810 (eval "$ac_link") 2>&5 2811 ac_status=$? 2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2813 test $ac_status = 0; }; then : 2814 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2815# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2816# work properly (i.e., refer to `conftest.exe'), while it won't with 2817# `rm'. 2818for ac_file in conftest.exe conftest conftest.*; do 2819 test -f "$ac_file" || continue 2820 case $ac_file in 2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2822 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2823 break;; 2824 * ) break;; 2825 esac 2826done 2827else 2828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2830as_fn_error "cannot compute suffix of executables: cannot compile and link 2831See \`config.log' for more details." "$LINENO" 5; } 2832fi 2833rm -f conftest$ac_cv_exeext 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2835$as_echo "$ac_cv_exeext" >&6; } 2836 2837rm -f conftest.$ac_ext 2838EXEEXT=$ac_cv_exeext 2839ac_exeext=$EXEEXT 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2841$as_echo_n "checking for suffix of object files... " >&6; } 2842if test "${ac_cv_objext+set}" = set; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846/* end confdefs.h. */ 2847 2848int 2849main () 2850{ 2851 2852 ; 2853 return 0; 2854} 2855_ACEOF 2856rm -f conftest.o conftest.obj 2857if { { ac_try="$ac_compile" 2858case "(($ac_try" in 2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2860 *) ac_try_echo=$ac_try;; 2861esac 2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2863$as_echo "$ac_try_echo"; } >&5 2864 (eval "$ac_compile") 2>&5 2865 ac_status=$? 2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2867 test $ac_status = 0; }; then : 2868 for ac_file in conftest.o conftest.obj conftest.*; do 2869 test -f "$ac_file" || continue; 2870 case $ac_file in 2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2873 break;; 2874 esac 2875done 2876else 2877 $as_echo "$as_me: failed program was:" >&5 2878sed 's/^/| /' conftest.$ac_ext >&5 2879 2880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error "cannot compute suffix of object files: cannot compile 2883See \`config.log' for more details." "$LINENO" 5; } 2884fi 2885rm -f conftest.$ac_cv_objext conftest.$ac_ext 2886fi 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2888$as_echo "$ac_cv_objext" >&6; } 2889OBJEXT=$ac_cv_objext 2890ac_objext=$OBJEXT 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2892$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2893if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897/* end confdefs.h. */ 2898 2899int 2900main () 2901{ 2902#ifndef __GNUC__ 2903 choke me 2904#endif 2905 2906 ; 2907 return 0; 2908} 2909_ACEOF 2910if ac_fn_c_try_compile "$LINENO"; then : 2911 ac_compiler_gnu=yes 2912else 2913 ac_compiler_gnu=no 2914fi 2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2916ac_cv_c_compiler_gnu=$ac_compiler_gnu 2917 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2920$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2921if test $ac_compiler_gnu = yes; then 2922 GCC=yes 2923else 2924 GCC= 2925fi 2926ac_test_CFLAGS=${CFLAGS+set} 2927ac_save_CFLAGS=$CFLAGS 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2929$as_echo_n "checking whether $CC accepts -g... " >&6; } 2930if test "${ac_cv_prog_cc_g+set}" = set; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 ac_save_c_werror_flag=$ac_c_werror_flag 2934 ac_c_werror_flag=yes 2935 ac_cv_prog_cc_g=no 2936 CFLAGS="-g" 2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2938/* end confdefs.h. */ 2939 2940int 2941main () 2942{ 2943 2944 ; 2945 return 0; 2946} 2947_ACEOF 2948if ac_fn_c_try_compile "$LINENO"; then : 2949 ac_cv_prog_cc_g=yes 2950else 2951 CFLAGS="" 2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963if ac_fn_c_try_compile "$LINENO"; then : 2964 2965else 2966 ac_c_werror_flag=$ac_save_c_werror_flag 2967 CFLAGS="-g" 2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2969/* end confdefs.h. */ 2970 2971int 2972main () 2973{ 2974 2975 ; 2976 return 0; 2977} 2978_ACEOF 2979if ac_fn_c_try_compile "$LINENO"; then : 2980 ac_cv_prog_cc_g=yes 2981fi 2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2983fi 2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2985fi 2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2987 ac_c_werror_flag=$ac_save_c_werror_flag 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2990$as_echo "$ac_cv_prog_cc_g" >&6; } 2991if test "$ac_test_CFLAGS" = set; then 2992 CFLAGS=$ac_save_CFLAGS 2993elif test $ac_cv_prog_cc_g = yes; then 2994 if test "$GCC" = yes; then 2995 CFLAGS="-g -O2" 2996 else 2997 CFLAGS="-g" 2998 fi 2999else 3000 if test "$GCC" = yes; then 3001 CFLAGS="-O2" 3002 else 3003 CFLAGS= 3004 fi 3005fi 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3007$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3008if test "${ac_cv_prog_cc_c89+set}" = set; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 ac_cv_prog_cc_c89=no 3012ac_save_CC=$CC 3013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014/* end confdefs.h. */ 3015#include <stdarg.h> 3016#include <stdio.h> 3017#include <sys/types.h> 3018#include <sys/stat.h> 3019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3020struct buf { int x; }; 3021FILE * (*rcsopen) (struct buf *, struct stat *, int); 3022static char *e (p, i) 3023 char **p; 3024 int i; 3025{ 3026 return p[i]; 3027} 3028static char *f (char * (*g) (char **, int), char **p, ...) 3029{ 3030 char *s; 3031 va_list v; 3032 va_start (v,p); 3033 s = g (p, va_arg (v,int)); 3034 va_end (v); 3035 return s; 3036} 3037 3038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3039 function prototypes and stuff, but not '\xHH' hex character constants. 3040 These don't provoke an error unfortunately, instead are silently treated 3041 as 'x'. The following induces an error, until -std is added to get 3042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3043 array size at least. It's necessary to write '\x00'==0 to get something 3044 that's true only with -std. */ 3045int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3046 3047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3048 inside strings and character constants. */ 3049#define FOO(x) 'x' 3050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3051 3052int test (int i, double x); 3053struct s1 {int (*f) (int a);}; 3054struct s2 {int (*f) (double a);}; 3055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3056int argc; 3057char **argv; 3058int 3059main () 3060{ 3061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3062 ; 3063 return 0; 3064} 3065_ACEOF 3066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3068do 3069 CC="$ac_save_CC $ac_arg" 3070 if ac_fn_c_try_compile "$LINENO"; then : 3071 ac_cv_prog_cc_c89=$ac_arg 3072fi 3073rm -f core conftest.err conftest.$ac_objext 3074 test "x$ac_cv_prog_cc_c89" != "xno" && break 3075done 3076rm -f conftest.$ac_ext 3077CC=$ac_save_CC 3078 3079fi 3080# AC_CACHE_VAL 3081case "x$ac_cv_prog_cc_c89" in 3082 x) 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3084$as_echo "none needed" >&6; } ;; 3085 xno) 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3087$as_echo "unsupported" >&6; } ;; 3088 *) 3089 CC="$CC $ac_cv_prog_cc_c89" 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3091$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3092esac 3093if test "x$ac_cv_prog_cc_c89" != xno; then : 3094 3095fi 3096 3097ac_ext=c 3098ac_cpp='$CPP $CPPFLAGS' 3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3101ac_compiler_gnu=$ac_cv_c_compiler_gnu 3102 3103 3104ac_ext=c 3105ac_cpp='$CPP $CPPFLAGS' 3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3108ac_compiler_gnu=$ac_cv_c_compiler_gnu 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3110$as_echo_n "checking how to run the C preprocessor... " >&6; } 3111# On Suns, sometimes $CPP names a directory. 3112if test -n "$CPP" && test -d "$CPP"; then 3113 CPP= 3114fi 3115if test -z "$CPP"; then 3116 if test "${ac_cv_prog_CPP+set}" = set; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 # Double quotes because CPP needs to be expanded 3120 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3121 do 3122 ac_preproc_ok=false 3123for ac_c_preproc_warn_flag in '' yes 3124do 3125 # Use a header file that comes with gcc, so configuring glibc 3126 # with a fresh cross-compiler works. 3127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3128 # <limits.h> exists even on freestanding compilers. 3129 # On the NeXT, cc -E runs the code through the compiler's parser, 3130 # not just through cpp. "Syntax error" is here to catch this case. 3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3132/* end confdefs.h. */ 3133#ifdef __STDC__ 3134# include <limits.h> 3135#else 3136# include <assert.h> 3137#endif 3138 Syntax error 3139_ACEOF 3140if ac_fn_c_try_cpp "$LINENO"; then : 3141 3142else 3143 # Broken: fails on valid input. 3144continue 3145fi 3146rm -f conftest.err conftest.$ac_ext 3147 3148 # OK, works on sane cases. Now check whether nonexistent headers 3149 # can be detected and how. 3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3151/* end confdefs.h. */ 3152#include <ac_nonexistent.h> 3153_ACEOF 3154if ac_fn_c_try_cpp "$LINENO"; then : 3155 # Broken: success on invalid input. 3156continue 3157else 3158 # Passes both tests. 3159ac_preproc_ok=: 3160break 3161fi 3162rm -f conftest.err conftest.$ac_ext 3163 3164done 3165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3166rm -f conftest.err conftest.$ac_ext 3167if $ac_preproc_ok; then : 3168 break 3169fi 3170 3171 done 3172 ac_cv_prog_CPP=$CPP 3173 3174fi 3175 CPP=$ac_cv_prog_CPP 3176else 3177 ac_cv_prog_CPP=$CPP 3178fi 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3180$as_echo "$CPP" >&6; } 3181ac_preproc_ok=false 3182for ac_c_preproc_warn_flag in '' yes 3183do 3184 # Use a header file that comes with gcc, so configuring glibc 3185 # with a fresh cross-compiler works. 3186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3187 # <limits.h> exists even on freestanding compilers. 3188 # On the NeXT, cc -E runs the code through the compiler's parser, 3189 # not just through cpp. "Syntax error" is here to catch this case. 3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3191/* end confdefs.h. */ 3192#ifdef __STDC__ 3193# include <limits.h> 3194#else 3195# include <assert.h> 3196#endif 3197 Syntax error 3198_ACEOF 3199if ac_fn_c_try_cpp "$LINENO"; then : 3200 3201else 3202 # Broken: fails on valid input. 3203continue 3204fi 3205rm -f conftest.err conftest.$ac_ext 3206 3207 # OK, works on sane cases. Now check whether nonexistent headers 3208 # can be detected and how. 3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3210/* end confdefs.h. */ 3211#include <ac_nonexistent.h> 3212_ACEOF 3213if ac_fn_c_try_cpp "$LINENO"; then : 3214 # Broken: success on invalid input. 3215continue 3216else 3217 # Passes both tests. 3218ac_preproc_ok=: 3219break 3220fi 3221rm -f conftest.err conftest.$ac_ext 3222 3223done 3224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3225rm -f conftest.err conftest.$ac_ext 3226if $ac_preproc_ok; then : 3227 3228else 3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3231as_fn_error "C preprocessor \"$CPP\" fails sanity check 3232See \`config.log' for more details." "$LINENO" 5; } 3233fi 3234 3235ac_ext=c 3236ac_cpp='$CPP $CPPFLAGS' 3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3239ac_compiler_gnu=$ac_cv_c_compiler_gnu 3240 3241 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3243$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3244if test "${ac_cv_path_GREP+set}" = set; then : 3245 $as_echo_n "(cached) " >&6 3246else 3247 if test -z "$GREP"; then 3248 ac_path_GREP_found=false 3249 # Loop through the user's path and test for each of PROGNAME-LIST 3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_prog in grep ggrep; do 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3258 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3259# Check for GNU ac_path_GREP and select it if it is found. 3260 # Check for GNU $ac_path_GREP 3261case `"$ac_path_GREP" --version 2>&1` in 3262*GNU*) 3263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3264*) 3265 ac_count=0 3266 $as_echo_n 0123456789 >"conftest.in" 3267 while : 3268 do 3269 cat "conftest.in" "conftest.in" >"conftest.tmp" 3270 mv "conftest.tmp" "conftest.in" 3271 cp "conftest.in" "conftest.nl" 3272 $as_echo 'GREP' >> "conftest.nl" 3273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3275 as_fn_arith $ac_count + 1 && ac_count=$as_val 3276 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3277 # Best one so far, save it but keep looking for a better one 3278 ac_cv_path_GREP="$ac_path_GREP" 3279 ac_path_GREP_max=$ac_count 3280 fi 3281 # 10*(2^10) chars as input seems more than enough 3282 test $ac_count -gt 10 && break 3283 done 3284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3285esac 3286 3287 $ac_path_GREP_found && break 3 3288 done 3289 done 3290 done 3291IFS=$as_save_IFS 3292 if test -z "$ac_cv_path_GREP"; then 3293 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3294 fi 3295else 3296 ac_cv_path_GREP=$GREP 3297fi 3298 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3301$as_echo "$ac_cv_path_GREP" >&6; } 3302 GREP="$ac_cv_path_GREP" 3303 3304 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3306$as_echo_n "checking for egrep... " >&6; } 3307if test "${ac_cv_path_EGREP+set}" = set; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3311 then ac_cv_path_EGREP="$GREP -E" 3312 else 3313 if test -z "$EGREP"; then 3314 ac_path_EGREP_found=false 3315 # Loop through the user's path and test for each of PROGNAME-LIST 3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_prog in egrep; do 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3324 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3325# Check for GNU ac_path_EGREP and select it if it is found. 3326 # Check for GNU $ac_path_EGREP 3327case `"$ac_path_EGREP" --version 2>&1` in 3328*GNU*) 3329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3330*) 3331 ac_count=0 3332 $as_echo_n 0123456789 >"conftest.in" 3333 while : 3334 do 3335 cat "conftest.in" "conftest.in" >"conftest.tmp" 3336 mv "conftest.tmp" "conftest.in" 3337 cp "conftest.in" "conftest.nl" 3338 $as_echo 'EGREP' >> "conftest.nl" 3339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3341 as_fn_arith $ac_count + 1 && ac_count=$as_val 3342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3343 # Best one so far, save it but keep looking for a better one 3344 ac_cv_path_EGREP="$ac_path_EGREP" 3345 ac_path_EGREP_max=$ac_count 3346 fi 3347 # 10*(2^10) chars as input seems more than enough 3348 test $ac_count -gt 10 && break 3349 done 3350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3351esac 3352 3353 $ac_path_EGREP_found && break 3 3354 done 3355 done 3356 done 3357IFS=$as_save_IFS 3358 if test -z "$ac_cv_path_EGREP"; then 3359 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3360 fi 3361else 3362 ac_cv_path_EGREP=$EGREP 3363fi 3364 3365 fi 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3368$as_echo "$ac_cv_path_EGREP" >&6; } 3369 EGREP="$ac_cv_path_EGREP" 3370 3371 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3373$as_echo_n "checking for ANSI C header files... " >&6; } 3374if test "${ac_cv_header_stdc+set}" = set; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378/* end confdefs.h. */ 3379#include <stdlib.h> 3380#include <stdarg.h> 3381#include <string.h> 3382#include <float.h> 3383 3384int 3385main () 3386{ 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392if ac_fn_c_try_compile "$LINENO"; then : 3393 ac_cv_header_stdc=yes 3394else 3395 ac_cv_header_stdc=no 3396fi 3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3398 3399if test $ac_cv_header_stdc = yes; then 3400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403#include <string.h> 3404 3405_ACEOF 3406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3407 $EGREP "memchr" >/dev/null 2>&1; then : 3408 3409else 3410 ac_cv_header_stdc=no 3411fi 3412rm -f conftest* 3413 3414fi 3415 3416if test $ac_cv_header_stdc = yes; then 3417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420#include <stdlib.h> 3421 3422_ACEOF 3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3424 $EGREP "free" >/dev/null 2>&1; then : 3425 3426else 3427 ac_cv_header_stdc=no 3428fi 3429rm -f conftest* 3430 3431fi 3432 3433if test $ac_cv_header_stdc = yes; then 3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3435 if test "$cross_compiling" = yes; then : 3436 : 3437else 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440#include <ctype.h> 3441#include <stdlib.h> 3442#if ((' ' & 0x0FF) == 0x020) 3443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3445#else 3446# define ISLOWER(c) \ 3447 (('a' <= (c) && (c) <= 'i') \ 3448 || ('j' <= (c) && (c) <= 'r') \ 3449 || ('s' <= (c) && (c) <= 'z')) 3450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3451#endif 3452 3453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3454int 3455main () 3456{ 3457 int i; 3458 for (i = 0; i < 256; i++) 3459 if (XOR (islower (i), ISLOWER (i)) 3460 || toupper (i) != TOUPPER (i)) 3461 return 2; 3462 return 0; 3463} 3464_ACEOF 3465if ac_fn_c_try_run "$LINENO"; then : 3466 3467else 3468 ac_cv_header_stdc=no 3469fi 3470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3471 conftest.$ac_objext conftest.beam conftest.$ac_ext 3472fi 3473 3474fi 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3477$as_echo "$ac_cv_header_stdc" >&6; } 3478if test $ac_cv_header_stdc = yes; then 3479 3480$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3481 3482fi 3483 3484# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3485for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3486 inttypes.h stdint.h unistd.h 3487do : 3488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3489ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3490" 3491eval as_val=\$$as_ac_Header 3492 if test "x$as_val" = x""yes; then : 3493 cat >>confdefs.h <<_ACEOF 3494#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3495_ACEOF 3496 3497fi 3498 3499done 3500 3501 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3503$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3504if test "${ac_cv_prog_cc_c99+set}" = set; then : 3505 $as_echo_n "(cached) " >&6 3506else 3507 ac_cv_prog_cc_c99=no 3508ac_save_CC=$CC 3509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511#include <stdarg.h> 3512#include <stdbool.h> 3513#include <stdlib.h> 3514#include <wchar.h> 3515#include <stdio.h> 3516 3517// Check varargs macros. These examples are taken from C99 6.10.3.5. 3518#define debug(...) fprintf (stderr, __VA_ARGS__) 3519#define showlist(...) puts (#__VA_ARGS__) 3520#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3521static void 3522test_varargs_macros (void) 3523{ 3524 int x = 1234; 3525 int y = 5678; 3526 debug ("Flag"); 3527 debug ("X = %d\n", x); 3528 showlist (The first, second, and third items.); 3529 report (x>y, "x is %d but y is %d", x, y); 3530} 3531 3532// Check long long types. 3533#define BIG64 18446744073709551615ull 3534#define BIG32 4294967295ul 3535#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3536#if !BIG_OK 3537 your preprocessor is broken; 3538#endif 3539#if BIG_OK 3540#else 3541 your preprocessor is broken; 3542#endif 3543static long long int bignum = -9223372036854775807LL; 3544static unsigned long long int ubignum = BIG64; 3545 3546struct incomplete_array 3547{ 3548 int datasize; 3549 double data[]; 3550}; 3551 3552struct named_init { 3553 int number; 3554 const wchar_t *name; 3555 double average; 3556}; 3557 3558typedef const char *ccp; 3559 3560static inline int 3561test_restrict (ccp restrict text) 3562{ 3563 // See if C++-style comments work. 3564 // Iterate through items via the restricted pointer. 3565 // Also check for declarations in for loops. 3566 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3567 continue; 3568 return 0; 3569} 3570 3571// Check varargs and va_copy. 3572static void 3573test_varargs (const char *format, ...) 3574{ 3575 va_list args; 3576 va_start (args, format); 3577 va_list args_copy; 3578 va_copy (args_copy, args); 3579 3580 const char *str; 3581 int number; 3582 float fnumber; 3583 3584 while (*format) 3585 { 3586 switch (*format++) 3587 { 3588 case 's': // string 3589 str = va_arg (args_copy, const char *); 3590 break; 3591 case 'd': // int 3592 number = va_arg (args_copy, int); 3593 break; 3594 case 'f': // float 3595 fnumber = va_arg (args_copy, double); 3596 break; 3597 default: 3598 break; 3599 } 3600 } 3601 va_end (args_copy); 3602 va_end (args); 3603} 3604 3605int 3606main () 3607{ 3608 3609 // Check bool. 3610 _Bool success = false; 3611 3612 // Check restrict. 3613 if (test_restrict ("String literal") == 0) 3614 success = true; 3615 char *restrict newvar = "Another string"; 3616 3617 // Check varargs. 3618 test_varargs ("s, d' f .", "string", 65, 34.234); 3619 test_varargs_macros (); 3620 3621 // Check flexible array members. 3622 struct incomplete_array *ia = 3623 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3624 ia->datasize = 10; 3625 for (int i = 0; i < ia->datasize; ++i) 3626 ia->data[i] = i * 1.234; 3627 3628 // Check named initializers. 3629 struct named_init ni = { 3630 .number = 34, 3631 .name = L"Test wide string", 3632 .average = 543.34343, 3633 }; 3634 3635 ni.number = 58; 3636 3637 int dynamic_array[ni.number]; 3638 dynamic_array[ni.number - 1] = 543; 3639 3640 // work around unused variable warnings 3641 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3642 || dynamic_array[ni.number - 1] != 543); 3643 3644 ; 3645 return 0; 3646} 3647_ACEOF 3648for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3649do 3650 CC="$ac_save_CC $ac_arg" 3651 if ac_fn_c_try_compile "$LINENO"; then : 3652 ac_cv_prog_cc_c99=$ac_arg 3653fi 3654rm -f core conftest.err conftest.$ac_objext 3655 test "x$ac_cv_prog_cc_c99" != "xno" && break 3656done 3657rm -f conftest.$ac_ext 3658CC=$ac_save_CC 3659 3660fi 3661# AC_CACHE_VAL 3662case "x$ac_cv_prog_cc_c99" in 3663 x) 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3665$as_echo "none needed" >&6; } ;; 3666 xno) 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3668$as_echo "unsupported" >&6; } ;; 3669 *) 3670 CC="$CC $ac_cv_prog_cc_c99" 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3672$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3673esac 3674if test "x$ac_cv_prog_cc_c99" != xno; then : 3675 3676fi 3677 3678 3679 3680 3681if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3682 if test -n "$ac_tool_prefix"; then 3683 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3684set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3686$as_echo_n "checking for $ac_word... " >&6; } 3687if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 case $PKG_CONFIG in 3691 [\\/]* | ?:[\\/]*) 3692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3693 ;; 3694 *) 3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3696for as_dir in $PATH 3697do 3698 IFS=$as_save_IFS 3699 test -z "$as_dir" && as_dir=. 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3704 break 2 3705 fi 3706done 3707 done 3708IFS=$as_save_IFS 3709 3710 ;; 3711esac 3712fi 3713PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3714if test -n "$PKG_CONFIG"; then 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3716$as_echo "$PKG_CONFIG" >&6; } 3717else 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719$as_echo "no" >&6; } 3720fi 3721 3722 3723fi 3724if test -z "$ac_cv_path_PKG_CONFIG"; then 3725 ac_pt_PKG_CONFIG=$PKG_CONFIG 3726 # Extract the first word of "pkg-config", so it can be a program name with args. 3727set dummy pkg-config; ac_word=$2 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3729$as_echo_n "checking for $ac_word... " >&6; } 3730if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 3731 $as_echo_n "(cached) " >&6 3732else 3733 case $ac_pt_PKG_CONFIG in 3734 [\\/]* | ?:[\\/]*) 3735 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3736 ;; 3737 *) 3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3739for as_dir in $PATH 3740do 3741 IFS=$as_save_IFS 3742 test -z "$as_dir" && as_dir=. 3743 for ac_exec_ext in '' $ac_executable_extensions; do 3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3745 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3747 break 2 3748 fi 3749done 3750 done 3751IFS=$as_save_IFS 3752 3753 ;; 3754esac 3755fi 3756ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3757if test -n "$ac_pt_PKG_CONFIG"; then 3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3759$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3760else 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3762$as_echo "no" >&6; } 3763fi 3764 3765 if test "x$ac_pt_PKG_CONFIG" = x; then 3766 PKG_CONFIG="" 3767 else 3768 case $cross_compiling:$ac_tool_warned in 3769yes:) 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3772ac_tool_warned=yes ;; 3773esac 3774 PKG_CONFIG=$ac_pt_PKG_CONFIG 3775 fi 3776else 3777 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3778fi 3779 3780fi 3781if test -n "$PKG_CONFIG"; then 3782 _pkg_min_version=0.9.0 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3784$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3785 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3787$as_echo "yes" >&6; } 3788 else 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3790$as_echo "no" >&6; } 3791 PKG_CONFIG="" 3792 fi 3793 3794fi 3795ac_aux_dir= 3796for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3797 for ac_t in install-sh install.sh shtool; do 3798 if test -f "$ac_dir/$ac_t"; then 3799 ac_aux_dir=$ac_dir 3800 ac_install_sh="$ac_aux_dir/$ac_t -c" 3801 break 2 3802 fi 3803 done 3804done 3805if test -z "$ac_aux_dir"; then 3806 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3807fi 3808 3809# These three variables are undocumented and unsupported, 3810# and are intended to be withdrawn in a future Autoconf release. 3811# They can cause serious problems if a builder's source tree is in a directory 3812# whose full name contains unusual characters. 3813ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3814ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3815ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3816 3817 3818# Make sure we can run config.sub. 3819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3820 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3821 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3823$as_echo_n "checking build system type... " >&6; } 3824if test "${ac_cv_build+set}" = set; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 ac_build_alias=$build_alias 3828test "x$ac_build_alias" = x && 3829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3830test "x$ac_build_alias" = x && 3831 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3833 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3834 3835fi 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3837$as_echo "$ac_cv_build" >&6; } 3838case $ac_cv_build in 3839*-*-*) ;; 3840*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3841esac 3842build=$ac_cv_build 3843ac_save_IFS=$IFS; IFS='-' 3844set x $ac_cv_build 3845shift 3846build_cpu=$1 3847build_vendor=$2 3848shift; shift 3849# Remember, the first character of IFS is used to create $*, 3850# except with old shells: 3851build_os=$* 3852IFS=$ac_save_IFS 3853case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3854 3855 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3857$as_echo_n "checking host system type... " >&6; } 3858if test "${ac_cv_host+set}" = set; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 if test "x$host_alias" = x; then 3862 ac_cv_host=$ac_cv_build 3863else 3864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3865 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3866fi 3867 3868fi 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3870$as_echo "$ac_cv_host" >&6; } 3871case $ac_cv_host in 3872*-*-*) ;; 3873*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3874esac 3875host=$ac_cv_host 3876ac_save_IFS=$IFS; IFS='-' 3877set x $ac_cv_host 3878shift 3879host_cpu=$1 3880host_vendor=$2 3881shift; shift 3882# Remember, the first character of IFS is used to create $*, 3883# except with old shells: 3884host_os=$* 3885IFS=$ac_save_IFS 3886case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3887 3888 3889 3890 3891 3892if test "x$GCC" = xyes ; then 3893 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 3894-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 3895-Wbad-function-cast" 3896 case `$CC -dumpversion` in 3897 3.4.* | 4.*) 3898 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 3899 ;; 3900 esac 3901else 3902 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3903if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 3904 SUNCC="yes" 3905else 3906 SUNCC="no" 3907fi 3908 3909 if test "x$SUNCC" = "xyes"; then 3910 CWARNFLAGS="-v" 3911 fi 3912fi 3913 3914# Check whether --enable-silent-rules was given. 3915if test "${enable_silent_rules+set}" = set; then : 3916 enableval=$enable_silent_rules; 3917fi 3918 3919case $enable_silent_rules in 3920yes) AM_DEFAULT_VERBOSITY=0;; 3921no) AM_DEFAULT_VERBOSITY=1;; 3922*) AM_DEFAULT_VERBOSITY=0;; 3923esac 3924AM_BACKSLASH='\' 3925 3926 3927 3928 3929 3930 3931 3932# Check whether --enable-strict-compilation was given. 3933if test "${enable_strict_compilation+set}" = set; then : 3934 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 3935else 3936 STRICT_COMPILE=no 3937fi 3938 3939if test "x$STRICT_COMPILE" = "xyes"; then 3940 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3941if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 3942 SUNCC="yes" 3943else 3944 SUNCC="no" 3945fi 3946 3947 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3948if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 3949 INTELCC="yes" 3950else 3951 INTELCC="no" 3952fi 3953 3954 if test "x$GCC" = xyes ; then 3955 STRICT_CFLAGS="-pedantic -Werror" 3956 elif test "x$SUNCC" = "xyes"; then 3957 STRICT_CFLAGS="-errwarn" 3958 elif test "x$INTELCC" = "xyes"; then 3959 STRICT_CFLAGS="-Werror" 3960 fi 3961fi 3962CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 3963 3964 3965 3966 3967# Check whether --with-release-version was given. 3968if test "${with_release_version+set}" = set; then : 3969 withval=$with_release_version; RELEASE_VERSION="$withval" 3970else 3971 RELEASE_VERSION="" 3972fi 3973 3974 if test "x$RELEASE_VERSION" != "x"; then 3975 PACKAGE="$PACKAGE-$RELEASE_VERSION" 3976 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 3978$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 3979 fi 3980 3981cat >>confdefs.h <<_ACEOF 3982#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 3983_ACEOF 3984 3985 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 3986 if test "x$PVM" = "x"; then 3987 PVM="0" 3988 fi 3989 3990cat >>confdefs.h <<_ACEOF 3991#define PACKAGE_VERSION_MINOR $PVM 3992_ACEOF 3993 3994 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 3995 if test "x$PVP" = "x"; then 3996 PVP="0" 3997 fi 3998 3999cat >>confdefs.h <<_ACEOF 4000#define PACKAGE_VERSION_PATCHLEVEL $PVP 4001_ACEOF 4002 4003 4004 4005CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4006mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4007|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4008echo 'git directory not found: installing possibly empty changelog.' >&2)" 4009 4010 4011 4012 4013macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4014INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4015mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4016|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4017echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4018 4019 4020 4021 4022 4023if test x$APP_MAN_SUFFIX = x ; then 4024 APP_MAN_SUFFIX=1 4025fi 4026if test x$APP_MAN_DIR = x ; then 4027 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4028fi 4029 4030if test x$LIB_MAN_SUFFIX = x ; then 4031 LIB_MAN_SUFFIX=3 4032fi 4033if test x$LIB_MAN_DIR = x ; then 4034 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4035fi 4036 4037if test x$FILE_MAN_SUFFIX = x ; then 4038 case $host_os in 4039 solaris*) FILE_MAN_SUFFIX=4 ;; 4040 *) FILE_MAN_SUFFIX=5 ;; 4041 esac 4042fi 4043if test x$FILE_MAN_DIR = x ; then 4044 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4045fi 4046 4047if test x$MISC_MAN_SUFFIX = x ; then 4048 case $host_os in 4049 solaris*) MISC_MAN_SUFFIX=5 ;; 4050 *) MISC_MAN_SUFFIX=7 ;; 4051 esac 4052fi 4053if test x$MISC_MAN_DIR = x ; then 4054 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4055fi 4056 4057if test x$DRIVER_MAN_SUFFIX = x ; then 4058 case $host_os in 4059 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4060 *) DRIVER_MAN_SUFFIX=4 ;; 4061 esac 4062fi 4063if test x$DRIVER_MAN_DIR = x ; then 4064 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4065fi 4066 4067if test x$ADMIN_MAN_SUFFIX = x ; then 4068 case $host_os in 4069 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4070 *) ADMIN_MAN_SUFFIX=8 ;; 4071 esac 4072fi 4073if test x$ADMIN_MAN_DIR = x ; then 4074 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4075fi 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093ac_aux_dir= 4094for ac_dir in . "$srcdir"/.; do 4095 for ac_t in install-sh install.sh shtool; do 4096 if test -f "$ac_dir/$ac_t"; then 4097 ac_aux_dir=$ac_dir 4098 ac_install_sh="$ac_aux_dir/$ac_t -c" 4099 break 2 4100 fi 4101 done 4102done 4103if test -z "$ac_aux_dir"; then 4104 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 4105fi 4106 4107# These three variables are undocumented and unsupported, 4108# and are intended to be withdrawn in a future Autoconf release. 4109# They can cause serious problems if a builder's source tree is in a directory 4110# whose full name contains unusual characters. 4111ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4112ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4113ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4114 4115 4116 4117am__api_version='1.11' 4118 4119# Find a good install program. We prefer a C program (faster), 4120# so one script is as good as another. But avoid the broken or 4121# incompatible versions: 4122# SysV /etc/install, /usr/sbin/install 4123# SunOS /usr/etc/install 4124# IRIX /sbin/install 4125# AIX /bin/install 4126# AmigaOS /C/install, which installs bootblocks on floppy discs 4127# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4128# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4129# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4130# OS/2's system install, which has a completely different semantic 4131# ./install, which can be erroneously created by make from ./install.sh. 4132# Reject install programs that cannot install multiple files. 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4134$as_echo_n "checking for a BSD-compatible install... " >&6; } 4135if test -z "$INSTALL"; then 4136if test "${ac_cv_path_install+set}" = set; then : 4137 $as_echo_n "(cached) " >&6 4138else 4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4140for as_dir in $PATH 4141do 4142 IFS=$as_save_IFS 4143 test -z "$as_dir" && as_dir=. 4144 # Account for people who put trailing slashes in PATH elements. 4145case $as_dir/ in #(( 4146 ./ | .// | /[cC]/* | \ 4147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4149 /usr/ucb/* ) ;; 4150 *) 4151 # OSF1 and SCO ODT 3.0 have their own names for install. 4152 # Don't use installbsd from OSF since it installs stuff as root 4153 # by default. 4154 for ac_prog in ginstall scoinst install; do 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4157 if test $ac_prog = install && 4158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4159 # AIX install. It has an incompatible calling convention. 4160 : 4161 elif test $ac_prog = install && 4162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4163 # program-specific install script used by HP pwplus--don't use. 4164 : 4165 else 4166 rm -rf conftest.one conftest.two conftest.dir 4167 echo one > conftest.one 4168 echo two > conftest.two 4169 mkdir conftest.dir 4170 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4171 test -s conftest.one && test -s conftest.two && 4172 test -s conftest.dir/conftest.one && 4173 test -s conftest.dir/conftest.two 4174 then 4175 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4176 break 3 4177 fi 4178 fi 4179 fi 4180 done 4181 done 4182 ;; 4183esac 4184 4185 done 4186IFS=$as_save_IFS 4187 4188rm -rf conftest.one conftest.two conftest.dir 4189 4190fi 4191 if test "${ac_cv_path_install+set}" = set; then 4192 INSTALL=$ac_cv_path_install 4193 else 4194 # As a last resort, use the slow shell script. Don't cache a 4195 # value for INSTALL within a source directory, because that will 4196 # break other packages using the cache if that directory is 4197 # removed, or if the value is a relative name. 4198 INSTALL=$ac_install_sh 4199 fi 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4202$as_echo "$INSTALL" >&6; } 4203 4204# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4205# It thinks the first close brace ends the variable substitution. 4206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4207 4208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4209 4210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4213$as_echo_n "checking whether build environment is sane... " >&6; } 4214# Just in case 4215sleep 1 4216echo timestamp > conftest.file 4217# Reject unsafe characters in $srcdir or the absolute working directory 4218# name. Accept space and tab only in the latter. 4219am_lf=' 4220' 4221case `pwd` in 4222 *[\\\"\#\$\&\'\`$am_lf]*) 4223 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 4224esac 4225case $srcdir in 4226 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4227 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 4228esac 4229 4230# Do `set' in a subshell so we don't clobber the current shell's 4231# arguments. Must try -L first in case configure is actually a 4232# symlink; some systems play weird games with the mod time of symlinks 4233# (eg FreeBSD returns the mod time of the symlink's containing 4234# directory). 4235if ( 4236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4237 if test "$*" = "X"; then 4238 # -L didn't work. 4239 set X `ls -t "$srcdir/configure" conftest.file` 4240 fi 4241 rm -f conftest.file 4242 if test "$*" != "X $srcdir/configure conftest.file" \ 4243 && test "$*" != "X conftest.file $srcdir/configure"; then 4244 4245 # If neither matched, then we have a broken ls. This can happen 4246 # if, for instance, CONFIG_SHELL is bash and it inherits a 4247 # broken ls alias from the environment. This has actually 4248 # happened. Such a system could not be considered "sane". 4249 as_fn_error "ls -t appears to fail. Make sure there is not a broken 4250alias in your environment" "$LINENO" 5 4251 fi 4252 4253 test "$2" = conftest.file 4254 ) 4255then 4256 # Ok. 4257 : 4258else 4259 as_fn_error "newly created file is older than distributed files! 4260Check your system clock" "$LINENO" 5 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4263$as_echo "yes" >&6; } 4264test "$program_prefix" != NONE && 4265 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4266# Use a double $ so make ignores it. 4267test "$program_suffix" != NONE && 4268 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4269# Double any \ or $. 4270# By default was `s,x,x', remove it if useless. 4271ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4272program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4273 4274# expand $ac_aux_dir to an absolute path 4275am_aux_dir=`cd $ac_aux_dir && pwd` 4276 4277if test x"${MISSING+set}" != xset; then 4278 case $am_aux_dir in 4279 *\ * | *\ *) 4280 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4281 *) 4282 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4283 esac 4284fi 4285# Use eval to expand $SHELL 4286if eval "$MISSING --run true"; then 4287 am_missing_run="$MISSING --run " 4288else 4289 am_missing_run= 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4291$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4292fi 4293 4294if test x"${install_sh}" != xset; then 4295 case $am_aux_dir in 4296 *\ * | *\ *) 4297 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4298 *) 4299 install_sh="\${SHELL} $am_aux_dir/install-sh" 4300 esac 4301fi 4302 4303# Installed binaries are usually stripped using `strip' when the user 4304# run `make install-strip'. However `strip' might not be the right 4305# tool to use in cross-compilation environments, therefore Automake 4306# will honor the `STRIP' environment variable to overrule this program. 4307if test "$cross_compiling" != no; then 4308 if test -n "$ac_tool_prefix"; then 4309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4310set dummy ${ac_tool_prefix}strip; ac_word=$2 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4312$as_echo_n "checking for $ac_word... " >&6; } 4313if test "${ac_cv_prog_STRIP+set}" = set; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 if test -n "$STRIP"; then 4317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4318else 4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4320for as_dir in $PATH 4321do 4322 IFS=$as_save_IFS 4323 test -z "$as_dir" && as_dir=. 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4326 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4328 break 2 4329 fi 4330done 4331 done 4332IFS=$as_save_IFS 4333 4334fi 4335fi 4336STRIP=$ac_cv_prog_STRIP 4337if test -n "$STRIP"; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4339$as_echo "$STRIP" >&6; } 4340else 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4342$as_echo "no" >&6; } 4343fi 4344 4345 4346fi 4347if test -z "$ac_cv_prog_STRIP"; then 4348 ac_ct_STRIP=$STRIP 4349 # Extract the first word of "strip", so it can be a program name with args. 4350set dummy strip; ac_word=$2 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4352$as_echo_n "checking for $ac_word... " >&6; } 4353if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -n "$ac_ct_STRIP"; then 4357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4358else 4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4366 ac_cv_prog_ac_ct_STRIP="strip" 4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4368 break 2 4369 fi 4370done 4371 done 4372IFS=$as_save_IFS 4373 4374fi 4375fi 4376ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4377if test -n "$ac_ct_STRIP"; then 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4379$as_echo "$ac_ct_STRIP" >&6; } 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384 4385 if test "x$ac_ct_STRIP" = x; then 4386 STRIP=":" 4387 else 4388 case $cross_compiling:$ac_tool_warned in 4389yes:) 4390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4392ac_tool_warned=yes ;; 4393esac 4394 STRIP=$ac_ct_STRIP 4395 fi 4396else 4397 STRIP="$ac_cv_prog_STRIP" 4398fi 4399 4400fi 4401INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4402 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4404$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4405if test -z "$MKDIR_P"; then 4406 if test "${ac_cv_path_mkdir+set}" = set; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4411do 4412 IFS=$as_save_IFS 4413 test -z "$as_dir" && as_dir=. 4414 for ac_prog in mkdir gmkdir; do 4415 for ac_exec_ext in '' $ac_executable_extensions; do 4416 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4417 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4418 'mkdir (GNU coreutils) '* | \ 4419 'mkdir (coreutils) '* | \ 4420 'mkdir (fileutils) '4.1*) 4421 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4422 break 3;; 4423 esac 4424 done 4425 done 4426 done 4427IFS=$as_save_IFS 4428 4429fi 4430 4431 if test "${ac_cv_path_mkdir+set}" = set; then 4432 MKDIR_P="$ac_cv_path_mkdir -p" 4433 else 4434 # As a last resort, use the slow shell script. Don't cache a 4435 # value for MKDIR_P within a source directory, because that will 4436 # break other packages using the cache if that directory is 4437 # removed, or if the value is a relative name. 4438 test -d ./--version && rmdir ./--version 4439 MKDIR_P="$ac_install_sh -d" 4440 fi 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4443$as_echo "$MKDIR_P" >&6; } 4444 4445mkdir_p="$MKDIR_P" 4446case $mkdir_p in 4447 [\\/$]* | ?:[\\/]*) ;; 4448 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4449esac 4450 4451for ac_prog in gawk mawk nawk awk 4452do 4453 # Extract the first word of "$ac_prog", so it can be a program name with args. 4454set dummy $ac_prog; ac_word=$2 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4456$as_echo_n "checking for $ac_word... " >&6; } 4457if test "${ac_cv_prog_AWK+set}" = set; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if test -n "$AWK"; then 4461 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4462else 4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464for as_dir in $PATH 4465do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4470 ac_cv_prog_AWK="$ac_prog" 4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474done 4475 done 4476IFS=$as_save_IFS 4477 4478fi 4479fi 4480AWK=$ac_cv_prog_AWK 4481if test -n "$AWK"; then 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4483$as_echo "$AWK" >&6; } 4484else 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486$as_echo "no" >&6; } 4487fi 4488 4489 4490 test -n "$AWK" && break 4491done 4492 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4494$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4495set x ${MAKE-make} 4496ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4497if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4498 $as_echo_n "(cached) " >&6 4499else 4500 cat >conftest.make <<\_ACEOF 4501SHELL = /bin/sh 4502all: 4503 @echo '@@@%%%=$(MAKE)=@@@%%%' 4504_ACEOF 4505# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4506case `${MAKE-make} -f conftest.make 2>/dev/null` in 4507 *@@@%%%=?*=@@@%%%*) 4508 eval ac_cv_prog_make_${ac_make}_set=yes;; 4509 *) 4510 eval ac_cv_prog_make_${ac_make}_set=no;; 4511esac 4512rm -f conftest.make 4513fi 4514if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4516$as_echo "yes" >&6; } 4517 SET_MAKE= 4518else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520$as_echo "no" >&6; } 4521 SET_MAKE="MAKE=${MAKE-make}" 4522fi 4523 4524rm -rf .tst 2>/dev/null 4525mkdir .tst 2>/dev/null 4526if test -d .tst; then 4527 am__leading_dot=. 4528else 4529 am__leading_dot=_ 4530fi 4531rmdir .tst 2>/dev/null 4532 4533DEPDIR="${am__leading_dot}deps" 4534 4535ac_config_commands="$ac_config_commands depfiles" 4536 4537 4538am_make=${MAKE-make} 4539cat > confinc << 'END' 4540am__doit: 4541 @echo this is the am__doit target 4542.PHONY: am__doit 4543END 4544# If we don't find an include directive, just comment out the code. 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4546$as_echo_n "checking for style of include used by $am_make... " >&6; } 4547am__include="#" 4548am__quote= 4549_am_result=none 4550# First try GNU make style include. 4551echo "include confinc" > confmf 4552# Ignore all kinds of additional output from `make'. 4553case `$am_make -s -f confmf 2> /dev/null` in #( 4554*the\ am__doit\ target*) 4555 am__include=include 4556 am__quote= 4557 _am_result=GNU 4558 ;; 4559esac 4560# Now try BSD make style include. 4561if test "$am__include" = "#"; then 4562 echo '.include "confinc"' > confmf 4563 case `$am_make -s -f confmf 2> /dev/null` in #( 4564 *the\ am__doit\ target*) 4565 am__include=.include 4566 am__quote="\"" 4567 _am_result=BSD 4568 ;; 4569 esac 4570fi 4571 4572 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4574$as_echo "$_am_result" >&6; } 4575rm -f confinc confmf 4576 4577# Check whether --enable-dependency-tracking was given. 4578if test "${enable_dependency_tracking+set}" = set; then : 4579 enableval=$enable_dependency_tracking; 4580fi 4581 4582if test "x$enable_dependency_tracking" != xno; then 4583 am_depcomp="$ac_aux_dir/depcomp" 4584 AMDEPBACKSLASH='\' 4585fi 4586 if test "x$enable_dependency_tracking" != xno; then 4587 AMDEP_TRUE= 4588 AMDEP_FALSE='#' 4589else 4590 AMDEP_TRUE='#' 4591 AMDEP_FALSE= 4592fi 4593 4594 4595if test "`cd $srcdir && pwd`" != "`pwd`"; then 4596 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4597 # is not polluted with repeated "-I." 4598 am__isrc=' -I$(srcdir)' 4599 # test to see if srcdir already configured 4600 if test -f $srcdir/config.status; then 4601 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4602 fi 4603fi 4604 4605# test whether we have cygpath 4606if test -z "$CYGPATH_W"; then 4607 if (cygpath --version) >/dev/null 2>/dev/null; then 4608 CYGPATH_W='cygpath -w' 4609 else 4610 CYGPATH_W=echo 4611 fi 4612fi 4613 4614 4615# Define the identity of the package. 4616 PACKAGE='xf86-video-nv' 4617 VERSION='2.1.17' 4618 4619 4620cat >>confdefs.h <<_ACEOF 4621#define PACKAGE "$PACKAGE" 4622_ACEOF 4623 4624 4625cat >>confdefs.h <<_ACEOF 4626#define VERSION "$VERSION" 4627_ACEOF 4628 4629# Some tools Automake needs. 4630 4631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4632 4633 4634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4635 4636 4637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4638 4639 4640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4641 4642 4643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4644 4645# We need awk for the "check" target. The system "awk" is bad on 4646# some platforms. 4647# Always define AMTAR for backward compatibility. 4648 4649AMTAR=${AMTAR-"${am_missing_run}tar"} 4650 4651am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4652 4653 4654 4655 4656depcc="$CC" am_compiler_list= 4657 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4659$as_echo_n "checking dependency style of $depcc... " >&6; } 4660if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4664 # We make a subdir and do the tests there. Otherwise we can end up 4665 # making bogus files that we don't know about and never remove. For 4666 # instance it was reported that on HP-UX the gcc test will end up 4667 # making a dummy file named `D' -- because `-MD' means `put the output 4668 # in D'. 4669 mkdir conftest.dir 4670 # Copy depcomp to subdir because otherwise we won't find it if we're 4671 # using a relative directory. 4672 cp "$am_depcomp" conftest.dir 4673 cd conftest.dir 4674 # We will build objects and dependencies in a subdirectory because 4675 # it helps to detect inapplicable dependency modes. For instance 4676 # both Tru64's cc and ICC support -MD to output dependencies as a 4677 # side effect of compilation, but ICC will put the dependencies in 4678 # the current directory while Tru64 will put them in the object 4679 # directory. 4680 mkdir sub 4681 4682 am_cv_CC_dependencies_compiler_type=none 4683 if test "$am_compiler_list" = ""; then 4684 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4685 fi 4686 am__universal=false 4687 case " $depcc " in #( 4688 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4689 esac 4690 4691 for depmode in $am_compiler_list; do 4692 # Setup a source with many dependencies, because some compilers 4693 # like to wrap large dependency lists on column 80 (with \), and 4694 # we should not choose a depcomp mode which is confused by this. 4695 # 4696 # We need to recreate these files for each test, as the compiler may 4697 # overwrite some of them when testing with obscure command lines. 4698 # This happens at least with the AIX C compiler. 4699 : > sub/conftest.c 4700 for i in 1 2 3 4 5 6; do 4701 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4702 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4703 # Solaris 8's {/usr,}/bin/sh. 4704 touch sub/conftst$i.h 4705 done 4706 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4707 4708 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4709 # mode. It turns out that the SunPro C++ compiler does not properly 4710 # handle `-M -o', and we need to detect this. Also, some Intel 4711 # versions had trouble with output in subdirs 4712 am__obj=sub/conftest.${OBJEXT-o} 4713 am__minus_obj="-o $am__obj" 4714 case $depmode in 4715 gcc) 4716 # This depmode causes a compiler race in universal mode. 4717 test "$am__universal" = false || continue 4718 ;; 4719 nosideeffect) 4720 # after this tag, mechanisms are not by side-effect, so they'll 4721 # only be used when explicitly requested 4722 if test "x$enable_dependency_tracking" = xyes; then 4723 continue 4724 else 4725 break 4726 fi 4727 ;; 4728 msvisualcpp | msvcmsys) 4729 # This compiler won't grok `-c -o', but also, the minuso test has 4730 # not run yet. These depmodes are late enough in the game, and 4731 # so weak that their functioning should not be impacted. 4732 am__obj=conftest.${OBJEXT-o} 4733 am__minus_obj= 4734 ;; 4735 none) break ;; 4736 esac 4737 if depmode=$depmode \ 4738 source=sub/conftest.c object=$am__obj \ 4739 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4740 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4741 >/dev/null 2>conftest.err && 4742 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4744 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4745 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4746 # icc doesn't choke on unknown options, it will just issue warnings 4747 # or remarks (even with -Werror). So we grep stderr for any message 4748 # that says an option was ignored or not supported. 4749 # When given -MP, icc 7.0 and 7.1 complain thusly: 4750 # icc: Command line warning: ignoring option '-M'; no argument required 4751 # The diagnosis changed in icc 8.0: 4752 # icc: Command line remark: option '-MP' not supported 4753 if (grep 'ignoring option' conftest.err || 4754 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4755 am_cv_CC_dependencies_compiler_type=$depmode 4756 break 4757 fi 4758 fi 4759 done 4760 4761 cd .. 4762 rm -rf conftest.dir 4763else 4764 am_cv_CC_dependencies_compiler_type=none 4765fi 4766 4767fi 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4769$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4770CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4771 4772 if 4773 test "x$enable_dependency_tracking" != xno \ 4774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4775 am__fastdepCC_TRUE= 4776 am__fastdepCC_FALSE='#' 4777else 4778 am__fastdepCC_TRUE='#' 4779 am__fastdepCC_FALSE= 4780fi 4781 4782 4783 4784 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4787$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4788 # Check whether --enable-maintainer-mode was given. 4789if test "${enable_maintainer_mode+set}" = set; then : 4790 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4791else 4792 USE_MAINTAINER_MODE=no 4793fi 4794 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4796$as_echo "$USE_MAINTAINER_MODE" >&6; } 4797 if test $USE_MAINTAINER_MODE = yes; then 4798 MAINTAINER_MODE_TRUE= 4799 MAINTAINER_MODE_FALSE='#' 4800else 4801 MAINTAINER_MODE_TRUE='#' 4802 MAINTAINER_MODE_FALSE= 4803fi 4804 4805 MAINT=$MAINTAINER_MODE_TRUE 4806 4807 4808 4809# Checks for programs. 4810# Check whether --enable-static was given. 4811if test "${enable_static+set}" = set; then : 4812 enableval=$enable_static; p=${PACKAGE-default} 4813 case $enableval in 4814 yes) enable_static=yes ;; 4815 no) enable_static=no ;; 4816 *) 4817 enable_static=no 4818 # Look at the argument we got. We use all the common list separators. 4819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4820 for pkg in $enableval; do 4821 IFS="$lt_save_ifs" 4822 if test "X$pkg" = "X$p"; then 4823 enable_static=yes 4824 fi 4825 done 4826 IFS="$lt_save_ifs" 4827 ;; 4828 esac 4829else 4830 enable_static=no 4831fi 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841case `pwd` in 4842 *\ * | *\ *) 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4844$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4845esac 4846 4847 4848 4849macro_version='2.2.6' 4850macro_revision='1.3012' 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864ltmain="$ac_aux_dir/ltmain.sh" 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4867$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4868if test "${ac_cv_path_SED+set}" = set; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4872 for ac_i in 1 2 3 4 5 6 7; do 4873 ac_script="$ac_script$as_nl$ac_script" 4874 done 4875 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4876 { ac_script=; unset ac_script;} 4877 if test -z "$SED"; then 4878 ac_path_SED_found=false 4879 # Loop through the user's path and test for each of PROGNAME-LIST 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in $PATH 4882do 4883 IFS=$as_save_IFS 4884 test -z "$as_dir" && as_dir=. 4885 for ac_prog in sed gsed; do 4886 for ac_exec_ext in '' $ac_executable_extensions; do 4887 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4888 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4889# Check for GNU ac_path_SED and select it if it is found. 4890 # Check for GNU $ac_path_SED 4891case `"$ac_path_SED" --version 2>&1` in 4892*GNU*) 4893 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4894*) 4895 ac_count=0 4896 $as_echo_n 0123456789 >"conftest.in" 4897 while : 4898 do 4899 cat "conftest.in" "conftest.in" >"conftest.tmp" 4900 mv "conftest.tmp" "conftest.in" 4901 cp "conftest.in" "conftest.nl" 4902 $as_echo '' >> "conftest.nl" 4903 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4905 as_fn_arith $ac_count + 1 && ac_count=$as_val 4906 if test $ac_count -gt ${ac_path_SED_max-0}; then 4907 # Best one so far, save it but keep looking for a better one 4908 ac_cv_path_SED="$ac_path_SED" 4909 ac_path_SED_max=$ac_count 4910 fi 4911 # 10*(2^10) chars as input seems more than enough 4912 test $ac_count -gt 10 && break 4913 done 4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4915esac 4916 4917 $ac_path_SED_found && break 3 4918 done 4919 done 4920 done 4921IFS=$as_save_IFS 4922 if test -z "$ac_cv_path_SED"; then 4923 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4924 fi 4925else 4926 ac_cv_path_SED=$SED 4927fi 4928 4929fi 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4931$as_echo "$ac_cv_path_SED" >&6; } 4932 SED="$ac_cv_path_SED" 4933 rm -f conftest.sed 4934 4935test -z "$SED" && SED=sed 4936Xsed="$SED -e 1s/^X//" 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4949$as_echo_n "checking for fgrep... " >&6; } 4950if test "${ac_cv_path_FGREP+set}" = set; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4954 then ac_cv_path_FGREP="$GREP -F" 4955 else 4956 if test -z "$FGREP"; then 4957 ac_path_FGREP_found=false 4958 # Loop through the user's path and test for each of PROGNAME-LIST 4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4961do 4962 IFS=$as_save_IFS 4963 test -z "$as_dir" && as_dir=. 4964 for ac_prog in fgrep; do 4965 for ac_exec_ext in '' $ac_executable_extensions; do 4966 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4967 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4968# Check for GNU ac_path_FGREP and select it if it is found. 4969 # Check for GNU $ac_path_FGREP 4970case `"$ac_path_FGREP" --version 2>&1` in 4971*GNU*) 4972 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4973*) 4974 ac_count=0 4975 $as_echo_n 0123456789 >"conftest.in" 4976 while : 4977 do 4978 cat "conftest.in" "conftest.in" >"conftest.tmp" 4979 mv "conftest.tmp" "conftest.in" 4980 cp "conftest.in" "conftest.nl" 4981 $as_echo 'FGREP' >> "conftest.nl" 4982 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4984 as_fn_arith $ac_count + 1 && ac_count=$as_val 4985 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4986 # Best one so far, save it but keep looking for a better one 4987 ac_cv_path_FGREP="$ac_path_FGREP" 4988 ac_path_FGREP_max=$ac_count 4989 fi 4990 # 10*(2^10) chars as input seems more than enough 4991 test $ac_count -gt 10 && break 4992 done 4993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4994esac 4995 4996 $ac_path_FGREP_found && break 3 4997 done 4998 done 4999 done 5000IFS=$as_save_IFS 5001 if test -z "$ac_cv_path_FGREP"; then 5002 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5003 fi 5004else 5005 ac_cv_path_FGREP=$FGREP 5006fi 5007 5008 fi 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5011$as_echo "$ac_cv_path_FGREP" >&6; } 5012 FGREP="$ac_cv_path_FGREP" 5013 5014 5015test -z "$GREP" && GREP=grep 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035# Check whether --with-gnu-ld was given. 5036if test "${with_gnu_ld+set}" = set; then : 5037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5038else 5039 with_gnu_ld=no 5040fi 5041 5042ac_prog=ld 5043if test "$GCC" = yes; then 5044 # Check if gcc -print-prog-name=ld gives a path. 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5046$as_echo_n "checking for ld used by $CC... " >&6; } 5047 case $host in 5048 *-*-mingw*) 5049 # gcc leaves a trailing carriage return which upsets mingw 5050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5051 *) 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5053 esac 5054 case $ac_prog in 5055 # Accept absolute paths. 5056 [\\/]* | ?:[\\/]*) 5057 re_direlt='/[^/][^/]*/\.\./' 5058 # Canonicalize the pathname of ld 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5062 done 5063 test -z "$LD" && LD="$ac_prog" 5064 ;; 5065 "") 5066 # If it fails, then pretend we aren't using GCC. 5067 ac_prog=ld 5068 ;; 5069 *) 5070 # If it is relative, then search for the first ld in PATH. 5071 with_gnu_ld=unknown 5072 ;; 5073 esac 5074elif test "$with_gnu_ld" = yes; then 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5076$as_echo_n "checking for GNU ld... " >&6; } 5077else 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5079$as_echo_n "checking for non-GNU ld... " >&6; } 5080fi 5081if test "${lt_cv_path_LD+set}" = set; then : 5082 $as_echo_n "(cached) " >&6 5083else 5084 if test -z "$LD"; then 5085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5086 for ac_dir in $PATH; do 5087 IFS="$lt_save_ifs" 5088 test -z "$ac_dir" && ac_dir=. 5089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5090 lt_cv_path_LD="$ac_dir/$ac_prog" 5091 # Check to see if the program is GNU ld. I'd rather use --version, 5092 # but apparently some variants of GNU ld only accept -v. 5093 # Break only if it was the GNU/non-GNU ld that we prefer. 5094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5095 *GNU* | *'with BFD'*) 5096 test "$with_gnu_ld" != no && break 5097 ;; 5098 *) 5099 test "$with_gnu_ld" != yes && break 5100 ;; 5101 esac 5102 fi 5103 done 5104 IFS="$lt_save_ifs" 5105else 5106 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5107fi 5108fi 5109 5110LD="$lt_cv_path_LD" 5111if test -n "$LD"; then 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5113$as_echo "$LD" >&6; } 5114else 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5116$as_echo "no" >&6; } 5117fi 5118test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5120$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5121if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5125case `$LD -v 2>&1 </dev/null` in 5126*GNU* | *'with BFD'*) 5127 lt_cv_prog_gnu_ld=yes 5128 ;; 5129*) 5130 lt_cv_prog_gnu_ld=no 5131 ;; 5132esac 5133fi 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5135$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5136with_gnu_ld=$lt_cv_prog_gnu_ld 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5147$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5148if test "${lt_cv_path_NM+set}" = set; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 if test -n "$NM"; then 5152 # Let the user override the test. 5153 lt_cv_path_NM="$NM" 5154else 5155 lt_nm_to_check="${ac_tool_prefix}nm" 5156 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5157 lt_nm_to_check="$lt_nm_to_check nm" 5158 fi 5159 for lt_tmp_nm in $lt_nm_to_check; do 5160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5161 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5162 IFS="$lt_save_ifs" 5163 test -z "$ac_dir" && ac_dir=. 5164 tmp_nm="$ac_dir/$lt_tmp_nm" 5165 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5166 # Check to see if the nm accepts a BSD-compat flag. 5167 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5168 # nm: unknown option "B" ignored 5169 # Tru64's nm complains that /dev/null is an invalid object file 5170 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5171 */dev/null* | *'Invalid file or object type'*) 5172 lt_cv_path_NM="$tmp_nm -B" 5173 break 5174 ;; 5175 *) 5176 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5177 */dev/null*) 5178 lt_cv_path_NM="$tmp_nm -p" 5179 break 5180 ;; 5181 *) 5182 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5183 continue # so that we can try to find one that supports BSD flags 5184 ;; 5185 esac 5186 ;; 5187 esac 5188 fi 5189 done 5190 IFS="$lt_save_ifs" 5191 done 5192 : ${lt_cv_path_NM=no} 5193fi 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5196$as_echo "$lt_cv_path_NM" >&6; } 5197if test "$lt_cv_path_NM" != "no"; then 5198 NM="$lt_cv_path_NM" 5199else 5200 # Didn't find any BSD compatible name lister, look for dumpbin. 5201 if test -n "$ac_tool_prefix"; then 5202 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5203 do 5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5205set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5207$as_echo_n "checking for $ac_word... " >&6; } 5208if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 if test -n "$DUMPBIN"; then 5212 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5221 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225done 5226 done 5227IFS=$as_save_IFS 5228 5229fi 5230fi 5231DUMPBIN=$ac_cv_prog_DUMPBIN 5232if test -n "$DUMPBIN"; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5234$as_echo "$DUMPBIN" >&6; } 5235else 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5237$as_echo "no" >&6; } 5238fi 5239 5240 5241 test -n "$DUMPBIN" && break 5242 done 5243fi 5244if test -z "$DUMPBIN"; then 5245 ac_ct_DUMPBIN=$DUMPBIN 5246 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5247do 5248 # Extract the first word of "$ac_prog", so it can be a program name with args. 5249set dummy $ac_prog; ac_word=$2 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251$as_echo_n "checking for $ac_word... " >&6; } 5252if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -n "$ac_ct_DUMPBIN"; then 5256 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5265 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269done 5270 done 5271IFS=$as_save_IFS 5272 5273fi 5274fi 5275ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5276if test -n "$ac_ct_DUMPBIN"; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5278$as_echo "$ac_ct_DUMPBIN" >&6; } 5279else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5281$as_echo "no" >&6; } 5282fi 5283 5284 5285 test -n "$ac_ct_DUMPBIN" && break 5286done 5287 5288 if test "x$ac_ct_DUMPBIN" = x; then 5289 DUMPBIN=":" 5290 else 5291 case $cross_compiling:$ac_tool_warned in 5292yes:) 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5295ac_tool_warned=yes ;; 5296esac 5297 DUMPBIN=$ac_ct_DUMPBIN 5298 fi 5299fi 5300 5301 5302 if test "$DUMPBIN" != ":"; then 5303 NM="$DUMPBIN" 5304 fi 5305fi 5306test -z "$NM" && NM=nm 5307 5308 5309 5310 5311 5312 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5314$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5315if test "${lt_cv_nm_interface+set}" = set; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 lt_cv_nm_interface="BSD nm" 5319 echo "int some_variable = 0;" > conftest.$ac_ext 5320 (eval echo "\"\$as_me:5320: $ac_compile\"" >&5) 5321 (eval "$ac_compile" 2>conftest.err) 5322 cat conftest.err >&5 5323 (eval echo "\"\$as_me:5323: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5325 cat conftest.err >&5 5326 (eval echo "\"\$as_me:5326: output\"" >&5) 5327 cat conftest.out >&5 5328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5329 lt_cv_nm_interface="MS dumpbin" 5330 fi 5331 rm -f conftest* 5332fi 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5334$as_echo "$lt_cv_nm_interface" >&6; } 5335 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5337$as_echo_n "checking whether ln -s works... " >&6; } 5338LN_S=$as_ln_s 5339if test "$LN_S" = "ln -s"; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5341$as_echo "yes" >&6; } 5342else 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5344$as_echo "no, using $LN_S" >&6; } 5345fi 5346 5347# find the maximum length of command line arguments 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5349$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5350if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 i=0 5354 teststring="ABCD" 5355 5356 case $build_os in 5357 msdosdjgpp*) 5358 # On DJGPP, this test can blow up pretty badly due to problems in libc 5359 # (any single argument exceeding 2000 bytes causes a buffer overrun 5360 # during glob expansion). Even if it were fixed, the result of this 5361 # check would be larger than it should be. 5362 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5363 ;; 5364 5365 gnu*) 5366 # Under GNU Hurd, this test is not required because there is 5367 # no limit to the length of command line arguments. 5368 # Libtool will interpret -1 as no limit whatsoever 5369 lt_cv_sys_max_cmd_len=-1; 5370 ;; 5371 5372 cygwin* | mingw* | cegcc*) 5373 # On Win9x/ME, this test blows up -- it succeeds, but takes 5374 # about 5 minutes as the teststring grows exponentially. 5375 # Worse, since 9x/ME are not pre-emptively multitasking, 5376 # you end up with a "frozen" computer, even though with patience 5377 # the test eventually succeeds (with a max line length of 256k). 5378 # Instead, let's just punt: use the minimum linelength reported by 5379 # all of the supported platforms: 8192 (on NT/2K/XP). 5380 lt_cv_sys_max_cmd_len=8192; 5381 ;; 5382 5383 amigaos*) 5384 # On AmigaOS with pdksh, this test takes hours, literally. 5385 # So we just punt and use a minimum line length of 8192. 5386 lt_cv_sys_max_cmd_len=8192; 5387 ;; 5388 5389 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5390 # This has been around since 386BSD, at least. Likely further. 5391 if test -x /sbin/sysctl; then 5392 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5393 elif test -x /usr/sbin/sysctl; then 5394 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5395 else 5396 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5397 fi 5398 # And add a safety zone 5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5401 ;; 5402 5403 interix*) 5404 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5405 lt_cv_sys_max_cmd_len=196608 5406 ;; 5407 5408 osf*) 5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5411 # nice to cause kernel panics so lets avoid the loop below. 5412 # First set a reasonable default. 5413 lt_cv_sys_max_cmd_len=16384 5414 # 5415 if test -x /sbin/sysconfig; then 5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5417 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5418 esac 5419 fi 5420 ;; 5421 sco3.2v5*) 5422 lt_cv_sys_max_cmd_len=102400 5423 ;; 5424 sysv5* | sco5v6* | sysv4.2uw2*) 5425 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5426 if test -n "$kargmax"; then 5427 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5428 else 5429 lt_cv_sys_max_cmd_len=32768 5430 fi 5431 ;; 5432 *) 5433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5434 if test -n "$lt_cv_sys_max_cmd_len"; then 5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5437 else 5438 # Make teststring a little bigger before we do anything with it. 5439 # a 1K string should be a reasonable start. 5440 for i in 1 2 3 4 5 6 7 8 ; do 5441 teststring=$teststring$teststring 5442 done 5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5444 # If test is not a shell built-in, we'll probably end up computing a 5445 # maximum length that is only half of the actual maximum length, but 5446 # we can't tell. 5447 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5448 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5449 test $i != 17 # 1/2 MB should be enough 5450 do 5451 i=`expr $i + 1` 5452 teststring=$teststring$teststring 5453 done 5454 # Only check the string length outside the loop. 5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5456 teststring= 5457 # Add a significant safety factor because C++ compilers can tack on 5458 # massive amounts of additional arguments before passing them to the 5459 # linker. It appears as though 1/2 is a usable value. 5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5461 fi 5462 ;; 5463 esac 5464 5465fi 5466 5467if test -n $lt_cv_sys_max_cmd_len ; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5469$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5472$as_echo "none" >&6; } 5473fi 5474max_cmd_len=$lt_cv_sys_max_cmd_len 5475 5476 5477 5478 5479 5480 5481: ${CP="cp -f"} 5482: ${MV="mv -f"} 5483: ${RM="rm -f"} 5484 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5486$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5487# Try some XSI features 5488xsi_shell=no 5489( _lt_dummy="a/b/c" 5490 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5491 = c,a/b,, \ 5492 && eval 'test $(( 1 + 1 )) -eq 2 \ 5493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5494 && xsi_shell=yes 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5496$as_echo "$xsi_shell" >&6; } 5497 5498 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5500$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5501lt_shell_append=no 5502( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5503 >/dev/null 2>&1 \ 5504 && lt_shell_append=yes 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5506$as_echo "$lt_shell_append" >&6; } 5507 5508 5509if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5510 lt_unset=unset 5511else 5512 lt_unset=false 5513fi 5514 5515 5516 5517 5518 5519# test EBCDIC or ASCII 5520case `echo X|tr X '\101'` in 5521 A) # ASCII based system 5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5523 lt_SP2NL='tr \040 \012' 5524 lt_NL2SP='tr \015\012 \040\040' 5525 ;; 5526 *) # EBCDIC based system 5527 lt_SP2NL='tr \100 \n' 5528 lt_NL2SP='tr \r\n \100\100' 5529 ;; 5530esac 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5541$as_echo_n "checking for $LD option to reload object files... " >&6; } 5542if test "${lt_cv_ld_reload_flag+set}" = set; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 lt_cv_ld_reload_flag='-r' 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5548$as_echo "$lt_cv_ld_reload_flag" >&6; } 5549reload_flag=$lt_cv_ld_reload_flag 5550case $reload_flag in 5551"" | " "*) ;; 5552*) reload_flag=" $reload_flag" ;; 5553esac 5554reload_cmds='$LD$reload_flag -o $output$reload_objs' 5555case $host_os in 5556 darwin*) 5557 if test "$GCC" = yes; then 5558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5559 else 5560 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5561 fi 5562 ;; 5563esac 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573if test -n "$ac_tool_prefix"; then 5574 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5575set dummy ${ac_tool_prefix}objdump; ac_word=$2 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5577$as_echo_n "checking for $ac_word... " >&6; } 5578if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test -n "$OBJDUMP"; then 5582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5583else 5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585for as_dir in $PATH 5586do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595done 5596 done 5597IFS=$as_save_IFS 5598 5599fi 5600fi 5601OBJDUMP=$ac_cv_prog_OBJDUMP 5602if test -n "$OBJDUMP"; then 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5604$as_echo "$OBJDUMP" >&6; } 5605else 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607$as_echo "no" >&6; } 5608fi 5609 5610 5611fi 5612if test -z "$ac_cv_prog_OBJDUMP"; then 5613 ac_ct_OBJDUMP=$OBJDUMP 5614 # Extract the first word of "objdump", so it can be a program name with args. 5615set dummy objdump; ac_word=$2 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5617$as_echo_n "checking for $ac_word... " >&6; } 5618if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 if test -n "$ac_ct_OBJDUMP"; then 5622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5623else 5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625for as_dir in $PATH 5626do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_exec_ext in '' $ac_executable_extensions; do 5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5631 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5633 break 2 5634 fi 5635done 5636 done 5637IFS=$as_save_IFS 5638 5639fi 5640fi 5641ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5642if test -n "$ac_ct_OBJDUMP"; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5644$as_echo "$ac_ct_OBJDUMP" >&6; } 5645else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5647$as_echo "no" >&6; } 5648fi 5649 5650 if test "x$ac_ct_OBJDUMP" = x; then 5651 OBJDUMP="false" 5652 else 5653 case $cross_compiling:$ac_tool_warned in 5654yes:) 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5657ac_tool_warned=yes ;; 5658esac 5659 OBJDUMP=$ac_ct_OBJDUMP 5660 fi 5661else 5662 OBJDUMP="$ac_cv_prog_OBJDUMP" 5663fi 5664 5665test -z "$OBJDUMP" && OBJDUMP=objdump 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5676$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5677if test "${lt_cv_deplibs_check_method+set}" = set; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 lt_cv_file_magic_cmd='$MAGIC_CMD' 5681lt_cv_file_magic_test_file= 5682lt_cv_deplibs_check_method='unknown' 5683# Need to set the preceding variable on all platforms that support 5684# interlibrary dependencies. 5685# 'none' -- dependencies not supported. 5686# `unknown' -- same as none, but documents that we really don't know. 5687# 'pass_all' -- all dependencies passed with no checks. 5688# 'test_compile' -- check by making test program. 5689# 'file_magic [[regex]]' -- check by looking for files in library path 5690# which responds to the $file_magic_cmd with a given extended regex. 5691# If you have `file' or equivalent on your system and you're not sure 5692# whether `pass_all' will *always* work, you probably want this one. 5693 5694case $host_os in 5695aix[4-9]*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698 5699beos*) 5700 lt_cv_deplibs_check_method=pass_all 5701 ;; 5702 5703bsdi[45]*) 5704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5705 lt_cv_file_magic_cmd='/usr/bin/file -L' 5706 lt_cv_file_magic_test_file=/shlib/libc.so 5707 ;; 5708 5709cygwin*) 5710 # func_win32_libid is a shell function defined in ltmain.sh 5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5712 lt_cv_file_magic_cmd='func_win32_libid' 5713 ;; 5714 5715mingw* | pw32*) 5716 # Base MSYS/MinGW do not provide the 'file' command needed by 5717 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5718 # unless we find 'file', for example because we are cross-compiling. 5719 if ( file / ) >/dev/null 2>&1; then 5720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5721 lt_cv_file_magic_cmd='func_win32_libid' 5722 else 5723 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5724 lt_cv_file_magic_cmd='$OBJDUMP -f' 5725 fi 5726 ;; 5727 5728cegcc) 5729 # use the weaker test based on 'objdump'. See mingw*. 5730 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5731 lt_cv_file_magic_cmd='$OBJDUMP -f' 5732 ;; 5733 5734darwin* | rhapsody*) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 5738freebsd* | dragonfly*) 5739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5740 case $host_cpu in 5741 i*86 ) 5742 # Not sure whether the presence of OpenBSD here was a mistake. 5743 # Let's accept both of them until this is cleared up. 5744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5745 lt_cv_file_magic_cmd=/usr/bin/file 5746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5747 ;; 5748 esac 5749 else 5750 lt_cv_deplibs_check_method=pass_all 5751 fi 5752 ;; 5753 5754gnu*) 5755 lt_cv_deplibs_check_method=pass_all 5756 ;; 5757 5758hpux10.20* | hpux11*) 5759 lt_cv_file_magic_cmd=/usr/bin/file 5760 case $host_cpu in 5761 ia64*) 5762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5763 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5764 ;; 5765 hppa*64*) 5766 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]' 5767 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5768 ;; 5769 *) 5770 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5771 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5772 ;; 5773 esac 5774 ;; 5775 5776interix[3-9]*) 5777 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5779 ;; 5780 5781irix5* | irix6* | nonstopux*) 5782 case $LD in 5783 *-32|*"-32 ") libmagic=32-bit;; 5784 *-n32|*"-n32 ") libmagic=N32;; 5785 *-64|*"-64 ") libmagic=64-bit;; 5786 *) libmagic=never-match;; 5787 esac 5788 lt_cv_deplibs_check_method=pass_all 5789 ;; 5790 5791# This must be Linux ELF. 5792linux* | k*bsd*-gnu) 5793 lt_cv_deplibs_check_method=pass_all 5794 ;; 5795 5796netbsd* | netbsdelf*-gnu) 5797 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5799 else 5800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5801 fi 5802 ;; 5803 5804newos6*) 5805 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5806 lt_cv_file_magic_cmd=/usr/bin/file 5807 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5808 ;; 5809 5810*nto* | *qnx*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814openbsd*) 5815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5817 else 5818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5819 fi 5820 ;; 5821 5822osf3* | osf4* | osf5*) 5823 lt_cv_deplibs_check_method=pass_all 5824 ;; 5825 5826rdos*) 5827 lt_cv_deplibs_check_method=pass_all 5828 ;; 5829 5830solaris*) 5831 lt_cv_deplibs_check_method=pass_all 5832 ;; 5833 5834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5835 lt_cv_deplibs_check_method=pass_all 5836 ;; 5837 5838sysv4 | sysv4.3*) 5839 case $host_vendor in 5840 motorola) 5841 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]' 5842 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5843 ;; 5844 ncr) 5845 lt_cv_deplibs_check_method=pass_all 5846 ;; 5847 sequent) 5848 lt_cv_file_magic_cmd='/bin/file' 5849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5850 ;; 5851 sni) 5852 lt_cv_file_magic_cmd='/bin/file' 5853 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5854 lt_cv_file_magic_test_file=/lib/libc.so 5855 ;; 5856 siemens) 5857 lt_cv_deplibs_check_method=pass_all 5858 ;; 5859 pc) 5860 lt_cv_deplibs_check_method=pass_all 5861 ;; 5862 esac 5863 ;; 5864 5865tpf*) 5866 lt_cv_deplibs_check_method=pass_all 5867 ;; 5868esac 5869 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5872$as_echo "$lt_cv_deplibs_check_method" >&6; } 5873file_magic_cmd=$lt_cv_file_magic_cmd 5874deplibs_check_method=$lt_cv_deplibs_check_method 5875test -z "$deplibs_check_method" && deplibs_check_method=unknown 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}ar; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if test "${ac_cv_prog_AR+set}" = set; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$AR"; then 5897 ac_cv_prog_AR="$AR" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5906 ac_cv_prog_AR="${ac_tool_prefix}ar" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916AR=$ac_cv_prog_AR 5917if test -n "$AR"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5919$as_echo "$AR" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926fi 5927if test -z "$ac_cv_prog_AR"; then 5928 ac_ct_AR=$AR 5929 # Extract the first word of "ar", so it can be a program name with args. 5930set dummy ar; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$ac_ct_AR"; then 5937 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5946 ac_cv_prog_ac_ct_AR="ar" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956ac_ct_AR=$ac_cv_prog_ac_ct_AR 5957if test -n "$ac_ct_AR"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5959$as_echo "$ac_ct_AR" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 if test "x$ac_ct_AR" = x; then 5966 AR="false" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 AR=$ac_ct_AR 5975 fi 5976else 5977 AR="$ac_cv_prog_AR" 5978fi 5979 5980test -z "$AR" && AR=ar 5981test -z "$AR_FLAGS" && AR_FLAGS=cru 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993if test -n "$ac_tool_prefix"; then 5994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5995set dummy ${ac_tool_prefix}strip; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if test "${ac_cv_prog_STRIP+set}" = set; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$STRIP"; then 6002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021STRIP=$ac_cv_prog_STRIP 6022if test -n "$STRIP"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6024$as_echo "$STRIP" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 6031fi 6032if test -z "$ac_cv_prog_STRIP"; then 6033 ac_ct_STRIP=$STRIP 6034 # Extract the first word of "strip", so it can be a program name with args. 6035set dummy strip; ac_word=$2 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6037$as_echo_n "checking for $ac_word... " >&6; } 6038if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 if test -n "$ac_ct_STRIP"; then 6042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6043else 6044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045for as_dir in $PATH 6046do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6051 ac_cv_prog_ac_ct_STRIP="strip" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055done 6056 done 6057IFS=$as_save_IFS 6058 6059fi 6060fi 6061ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6062if test -n "$ac_ct_STRIP"; then 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6064$as_echo "$ac_ct_STRIP" >&6; } 6065else 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6067$as_echo "no" >&6; } 6068fi 6069 6070 if test "x$ac_ct_STRIP" = x; then 6071 STRIP=":" 6072 else 6073 case $cross_compiling:$ac_tool_warned in 6074yes:) 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6077ac_tool_warned=yes ;; 6078esac 6079 STRIP=$ac_ct_STRIP 6080 fi 6081else 6082 STRIP="$ac_cv_prog_STRIP" 6083fi 6084 6085test -z "$STRIP" && STRIP=: 6086 6087 6088 6089 6090 6091 6092if test -n "$ac_tool_prefix"; then 6093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6094set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096$as_echo_n "checking for $ac_word... " >&6; } 6097if test "${ac_cv_prog_RANLIB+set}" = set; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -n "$RANLIB"; then 6101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6102else 6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115 done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120RANLIB=$ac_cv_prog_RANLIB 6121if test -n "$RANLIB"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6123$as_echo "$RANLIB" >&6; } 6124else 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127fi 6128 6129 6130fi 6131if test -z "$ac_cv_prog_RANLIB"; then 6132 ac_ct_RANLIB=$RANLIB 6133 # Extract the first word of "ranlib", so it can be a program name with args. 6134set dummy ranlib; ac_word=$2 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136$as_echo_n "checking for $ac_word... " >&6; } 6137if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 if test -n "$ac_ct_RANLIB"; then 6141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6142else 6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144for as_dir in $PATH 6145do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_ac_ct_RANLIB="ranlib" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155 done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6161if test -n "$ac_ct_RANLIB"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6163$as_echo "$ac_ct_RANLIB" >&6; } 6164else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166$as_echo "no" >&6; } 6167fi 6168 6169 if test "x$ac_ct_RANLIB" = x; then 6170 RANLIB=":" 6171 else 6172 case $cross_compiling:$ac_tool_warned in 6173yes:) 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6176ac_tool_warned=yes ;; 6177esac 6178 RANLIB=$ac_ct_RANLIB 6179 fi 6180else 6181 RANLIB="$ac_cv_prog_RANLIB" 6182fi 6183 6184test -z "$RANLIB" && RANLIB=: 6185 6186 6187 6188 6189 6190 6191# Determine commands to create old-style static archives. 6192old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6193old_postinstall_cmds='chmod 644 $oldlib' 6194old_postuninstall_cmds= 6195 6196if test -n "$RANLIB"; then 6197 case $host_os in 6198 openbsd*) 6199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6200 ;; 6201 *) 6202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6203 ;; 6204 esac 6205 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6206fi 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241# If no C compiler was specified, use CC. 6242LTCC=${LTCC-"$CC"} 6243 6244# If no C compiler flags were specified, use CFLAGS. 6245LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6246 6247# Allow CC to be a program name with arguments. 6248compiler=$CC 6249 6250 6251# Check for command to grab the raw symbol name followed by C symbol from nm. 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6253$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6254if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 6258# These are sane defaults that work on at least a few old systems. 6259# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6260 6261# Character class describing NM global symbol codes. 6262symcode='[BCDEGRST]' 6263 6264# Regexp to match symbols that can be accessed directly from C. 6265sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6266 6267# Define system-specific variables. 6268case $host_os in 6269aix*) 6270 symcode='[BCDT]' 6271 ;; 6272cygwin* | mingw* | pw32* | cegcc*) 6273 symcode='[ABCDGISTW]' 6274 ;; 6275hpux*) 6276 if test "$host_cpu" = ia64; then 6277 symcode='[ABCDEGRST]' 6278 fi 6279 ;; 6280irix* | nonstopux*) 6281 symcode='[BCDEGRST]' 6282 ;; 6283osf*) 6284 symcode='[BCDEGQRST]' 6285 ;; 6286solaris*) 6287 symcode='[BDRT]' 6288 ;; 6289sco3.2v5*) 6290 symcode='[DT]' 6291 ;; 6292sysv4.2uw2*) 6293 symcode='[DT]' 6294 ;; 6295sysv5* | sco5v6* | unixware* | OpenUNIX*) 6296 symcode='[ABDT]' 6297 ;; 6298sysv4) 6299 symcode='[DFNSTU]' 6300 ;; 6301esac 6302 6303# If we're using GNU nm, then use its standard symbol codes. 6304case `$NM -V 2>&1` in 6305*GNU* | *'with BFD'*) 6306 symcode='[ABCDGIRSTW]' ;; 6307esac 6308 6309# Transform an extracted symbol line into a proper C declaration. 6310# Some systems (esp. on ia64) link data and code symbols differently, 6311# so use this general approach. 6312lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6313 6314# Transform an extracted symbol line into symbol name and symbol address 6315lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6316lt_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'" 6317 6318# Handle CRLF in mingw tool chain 6319opt_cr= 6320case $build_os in 6321mingw*) 6322 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6323 ;; 6324esac 6325 6326# Try without a prefix underscore, then with it. 6327for ac_symprfx in "" "_"; do 6328 6329 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6330 symxfrm="\\1 $ac_symprfx\\2 \\2" 6331 6332 # Write the raw and C identifiers. 6333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6334 # Fake it for dumpbin and say T for any non-static function 6335 # and D for any global variable. 6336 # Also find C++ and __fastcall symbols from MSVC++, 6337 # which start with @ or ?. 6338 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6339" {last_section=section; section=\$ 3};"\ 6340" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6341" \$ 0!~/External *\|/{next};"\ 6342" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6343" {if(hide[section]) next};"\ 6344" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6345" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6346" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6347" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6348" ' prfx=^$ac_symprfx" 6349 else 6350 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6351 fi 6352 6353 # Check to see that the pipe works correctly. 6354 pipe_works=no 6355 6356 rm -f conftest* 6357 cat > conftest.$ac_ext <<_LT_EOF 6358#ifdef __cplusplus 6359extern "C" { 6360#endif 6361char nm_test_var; 6362void nm_test_func(void); 6363void nm_test_func(void){} 6364#ifdef __cplusplus 6365} 6366#endif 6367int main(){nm_test_var='a';nm_test_func();return(0);} 6368_LT_EOF 6369 6370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6371 (eval $ac_compile) 2>&5 6372 ac_status=$? 6373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6374 test $ac_status = 0; }; then 6375 # Now try to grab the symbols. 6376 nlist=conftest.nm 6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6379 ac_status=$? 6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6381 test $ac_status = 0; } && test -s "$nlist"; then 6382 # Try sorting and uniquifying the output. 6383 if sort "$nlist" | uniq > "$nlist"T; then 6384 mv -f "$nlist"T "$nlist" 6385 else 6386 rm -f "$nlist"T 6387 fi 6388 6389 # Make sure that we snagged all the symbols we need. 6390 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6391 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6392 cat <<_LT_EOF > conftest.$ac_ext 6393#ifdef __cplusplus 6394extern "C" { 6395#endif 6396 6397_LT_EOF 6398 # Now generate the symbol file. 6399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6400 6401 cat <<_LT_EOF >> conftest.$ac_ext 6402 6403/* The mapping between symbol names and symbols. */ 6404const struct { 6405 const char *name; 6406 void *address; 6407} 6408lt__PROGRAM__LTX_preloaded_symbols[] = 6409{ 6410 { "@PROGRAM@", (void *) 0 }, 6411_LT_EOF 6412 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6413 cat <<\_LT_EOF >> conftest.$ac_ext 6414 {0, (void *) 0} 6415}; 6416 6417/* This works around a problem in FreeBSD linker */ 6418#ifdef FREEBSD_WORKAROUND 6419static const void *lt_preloaded_setup() { 6420 return lt__PROGRAM__LTX_preloaded_symbols; 6421} 6422#endif 6423 6424#ifdef __cplusplus 6425} 6426#endif 6427_LT_EOF 6428 # Now try linking the two files. 6429 mv conftest.$ac_objext conftstm.$ac_objext 6430 lt_save_LIBS="$LIBS" 6431 lt_save_CFLAGS="$CFLAGS" 6432 LIBS="conftstm.$ac_objext" 6433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6435 (eval $ac_link) 2>&5 6436 ac_status=$? 6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6438 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6439 pipe_works=yes 6440 fi 6441 LIBS="$lt_save_LIBS" 6442 CFLAGS="$lt_save_CFLAGS" 6443 else 6444 echo "cannot find nm_test_func in $nlist" >&5 6445 fi 6446 else 6447 echo "cannot find nm_test_var in $nlist" >&5 6448 fi 6449 else 6450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6451 fi 6452 else 6453 echo "$progname: failed program was:" >&5 6454 cat conftest.$ac_ext >&5 6455 fi 6456 rm -rf conftest* conftst* 6457 6458 # Do not use the global_symbol_pipe unless it works. 6459 if test "$pipe_works" = yes; then 6460 break 6461 else 6462 lt_cv_sys_global_symbol_pipe= 6463 fi 6464done 6465 6466fi 6467 6468if test -z "$lt_cv_sys_global_symbol_pipe"; then 6469 lt_cv_sys_global_symbol_to_cdecl= 6470fi 6471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6473$as_echo "failed" >&6; } 6474else 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6476$as_echo "ok" >&6; } 6477fi 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500# Check whether --enable-libtool-lock was given. 6501if test "${enable_libtool_lock+set}" = set; then : 6502 enableval=$enable_libtool_lock; 6503fi 6504 6505test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6506 6507# Some flags need to be propagated to the compiler or linker for good 6508# libtool support. 6509case $host in 6510ia64-*-hpux*) 6511 # Find out which ABI we are using. 6512 echo 'int i;' > conftest.$ac_ext 6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6514 (eval $ac_compile) 2>&5 6515 ac_status=$? 6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6517 test $ac_status = 0; }; then 6518 case `/usr/bin/file conftest.$ac_objext` in 6519 *ELF-32*) 6520 HPUX_IA64_MODE="32" 6521 ;; 6522 *ELF-64*) 6523 HPUX_IA64_MODE="64" 6524 ;; 6525 esac 6526 fi 6527 rm -rf conftest* 6528 ;; 6529*-*-irix6*) 6530 # Find out which ABI we are using. 6531 echo '#line 6531 "configure"' > conftest.$ac_ext 6532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6533 (eval $ac_compile) 2>&5 6534 ac_status=$? 6535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6536 test $ac_status = 0; }; then 6537 if test "$lt_cv_prog_gnu_ld" = yes; then 6538 case `/usr/bin/file conftest.$ac_objext` in 6539 *32-bit*) 6540 LD="${LD-ld} -melf32bsmip" 6541 ;; 6542 *N32*) 6543 LD="${LD-ld} -melf32bmipn32" 6544 ;; 6545 *64-bit*) 6546 LD="${LD-ld} -melf64bmip" 6547 ;; 6548 esac 6549 else 6550 case `/usr/bin/file conftest.$ac_objext` in 6551 *32-bit*) 6552 LD="${LD-ld} -32" 6553 ;; 6554 *N32*) 6555 LD="${LD-ld} -n32" 6556 ;; 6557 *64-bit*) 6558 LD="${LD-ld} -64" 6559 ;; 6560 esac 6561 fi 6562 fi 6563 rm -rf conftest* 6564 ;; 6565 6566x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6567s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6568 # Find out which ABI we are using. 6569 echo 'int i;' > conftest.$ac_ext 6570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6571 (eval $ac_compile) 2>&5 6572 ac_status=$? 6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6574 test $ac_status = 0; }; then 6575 case `/usr/bin/file conftest.o` in 6576 *32-bit*) 6577 case $host in 6578 x86_64-*kfreebsd*-gnu) 6579 LD="${LD-ld} -m elf_i386_fbsd" 6580 ;; 6581 x86_64-*linux*) 6582 LD="${LD-ld} -m elf_i386" 6583 ;; 6584 ppc64-*linux*|powerpc64-*linux*) 6585 LD="${LD-ld} -m elf32ppclinux" 6586 ;; 6587 s390x-*linux*) 6588 LD="${LD-ld} -m elf_s390" 6589 ;; 6590 sparc64-*linux*) 6591 LD="${LD-ld} -m elf32_sparc" 6592 ;; 6593 esac 6594 ;; 6595 *64-bit*) 6596 case $host in 6597 x86_64-*kfreebsd*-gnu) 6598 LD="${LD-ld} -m elf_x86_64_fbsd" 6599 ;; 6600 x86_64-*linux*) 6601 LD="${LD-ld} -m elf_x86_64" 6602 ;; 6603 ppc*-*linux*|powerpc*-*linux*) 6604 LD="${LD-ld} -m elf64ppc" 6605 ;; 6606 s390*-*linux*|s390*-*tpf*) 6607 LD="${LD-ld} -m elf64_s390" 6608 ;; 6609 sparc*-*linux*) 6610 LD="${LD-ld} -m elf64_sparc" 6611 ;; 6612 esac 6613 ;; 6614 esac 6615 fi 6616 rm -rf conftest* 6617 ;; 6618 6619*-*-sco3.2v5*) 6620 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6621 SAVE_CFLAGS="$CFLAGS" 6622 CFLAGS="$CFLAGS -belf" 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6624$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6625if test "${lt_cv_cc_needs_belf+set}" = set; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 ac_ext=c 6629ac_cpp='$CPP $CPPFLAGS' 6630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6632ac_compiler_gnu=$ac_cv_c_compiler_gnu 6633 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636 6637int 6638main () 6639{ 6640 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645if ac_fn_c_try_link "$LINENO"; then : 6646 lt_cv_cc_needs_belf=yes 6647else 6648 lt_cv_cc_needs_belf=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext \ 6651 conftest$ac_exeext conftest.$ac_ext 6652 ac_ext=c 6653ac_cpp='$CPP $CPPFLAGS' 6654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6656ac_compiler_gnu=$ac_cv_c_compiler_gnu 6657 6658fi 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6660$as_echo "$lt_cv_cc_needs_belf" >&6; } 6661 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6662 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6663 CFLAGS="$SAVE_CFLAGS" 6664 fi 6665 ;; 6666sparc*-*solaris*) 6667 # Find out which ABI we are using. 6668 echo 'int i;' > conftest.$ac_ext 6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6670 (eval $ac_compile) 2>&5 6671 ac_status=$? 6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6673 test $ac_status = 0; }; then 6674 case `/usr/bin/file conftest.o` in 6675 *64-bit*) 6676 case $lt_cv_prog_gnu_ld in 6677 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6678 *) 6679 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6680 LD="${LD-ld} -64" 6681 fi 6682 ;; 6683 esac 6684 ;; 6685 esac 6686 fi 6687 rm -rf conftest* 6688 ;; 6689esac 6690 6691need_locks="$enable_libtool_lock" 6692 6693 6694 case $host_os in 6695 rhapsody* | darwin*) 6696 if test -n "$ac_tool_prefix"; then 6697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6698set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6700$as_echo_n "checking for $ac_word... " >&6; } 6701if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 if test -n "$DSYMUTIL"; then 6705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719 done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724DSYMUTIL=$ac_cv_prog_DSYMUTIL 6725if test -n "$DSYMUTIL"; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6727$as_echo "$DSYMUTIL" >&6; } 6728else 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730$as_echo "no" >&6; } 6731fi 6732 6733 6734fi 6735if test -z "$ac_cv_prog_DSYMUTIL"; then 6736 ac_ct_DSYMUTIL=$DSYMUTIL 6737 # Extract the first word of "dsymutil", so it can be a program name with args. 6738set dummy dsymutil; ac_word=$2 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740$as_echo_n "checking for $ac_word... " >&6; } 6741if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 if test -n "$ac_ct_DSYMUTIL"; then 6745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6765if test -n "$ac_ct_DSYMUTIL"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6767$as_echo "$ac_ct_DSYMUTIL" >&6; } 6768else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770$as_echo "no" >&6; } 6771fi 6772 6773 if test "x$ac_ct_DSYMUTIL" = x; then 6774 DSYMUTIL=":" 6775 else 6776 case $cross_compiling:$ac_tool_warned in 6777yes:) 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6780ac_tool_warned=yes ;; 6781esac 6782 DSYMUTIL=$ac_ct_DSYMUTIL 6783 fi 6784else 6785 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6786fi 6787 6788 if test -n "$ac_tool_prefix"; then 6789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6790set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6792$as_echo_n "checking for $ac_word... " >&6; } 6793if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 if test -n "$NMEDIT"; then 6797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6798else 6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6800for as_dir in $PATH 6801do 6802 IFS=$as_save_IFS 6803 test -z "$as_dir" && as_dir=. 6804 for ac_exec_ext in '' $ac_executable_extensions; do 6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6808 break 2 6809 fi 6810done 6811 done 6812IFS=$as_save_IFS 6813 6814fi 6815fi 6816NMEDIT=$ac_cv_prog_NMEDIT 6817if test -n "$NMEDIT"; then 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6819$as_echo "$NMEDIT" >&6; } 6820else 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6822$as_echo "no" >&6; } 6823fi 6824 6825 6826fi 6827if test -z "$ac_cv_prog_NMEDIT"; then 6828 ac_ct_NMEDIT=$NMEDIT 6829 # Extract the first word of "nmedit", so it can be a program name with args. 6830set dummy nmedit; ac_word=$2 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6832$as_echo_n "checking for $ac_word... " >&6; } 6833if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 if test -n "$ac_ct_NMEDIT"; then 6837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6838else 6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6840for as_dir in $PATH 6841do 6842 IFS=$as_save_IFS 6843 test -z "$as_dir" && as_dir=. 6844 for ac_exec_ext in '' $ac_executable_extensions; do 6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6846 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6848 break 2 6849 fi 6850done 6851 done 6852IFS=$as_save_IFS 6853 6854fi 6855fi 6856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6857if test -n "$ac_ct_NMEDIT"; then 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6859$as_echo "$ac_ct_NMEDIT" >&6; } 6860else 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6862$as_echo "no" >&6; } 6863fi 6864 6865 if test "x$ac_ct_NMEDIT" = x; then 6866 NMEDIT=":" 6867 else 6868 case $cross_compiling:$ac_tool_warned in 6869yes:) 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6872ac_tool_warned=yes ;; 6873esac 6874 NMEDIT=$ac_ct_NMEDIT 6875 fi 6876else 6877 NMEDIT="$ac_cv_prog_NMEDIT" 6878fi 6879 6880 if test -n "$ac_tool_prefix"; then 6881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6882set dummy ${ac_tool_prefix}lipo; ac_word=$2 6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6884$as_echo_n "checking for $ac_word... " >&6; } 6885if test "${ac_cv_prog_LIPO+set}" = set; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 if test -n "$LIPO"; then 6889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6890else 6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6892for as_dir in $PATH 6893do 6894 IFS=$as_save_IFS 6895 test -z "$as_dir" && as_dir=. 6896 for ac_exec_ext in '' $ac_executable_extensions; do 6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6900 break 2 6901 fi 6902done 6903 done 6904IFS=$as_save_IFS 6905 6906fi 6907fi 6908LIPO=$ac_cv_prog_LIPO 6909if test -n "$LIPO"; then 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6911$as_echo "$LIPO" >&6; } 6912else 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6914$as_echo "no" >&6; } 6915fi 6916 6917 6918fi 6919if test -z "$ac_cv_prog_LIPO"; then 6920 ac_ct_LIPO=$LIPO 6921 # Extract the first word of "lipo", so it can be a program name with args. 6922set dummy lipo; ac_word=$2 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6924$as_echo_n "checking for $ac_word... " >&6; } 6925if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 if test -n "$ac_ct_LIPO"; then 6929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6930else 6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6932for as_dir in $PATH 6933do 6934 IFS=$as_save_IFS 6935 test -z "$as_dir" && as_dir=. 6936 for ac_exec_ext in '' $ac_executable_extensions; do 6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6938 ac_cv_prog_ac_ct_LIPO="lipo" 6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6940 break 2 6941 fi 6942done 6943 done 6944IFS=$as_save_IFS 6945 6946fi 6947fi 6948ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6949if test -n "$ac_ct_LIPO"; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6951$as_echo "$ac_ct_LIPO" >&6; } 6952else 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6954$as_echo "no" >&6; } 6955fi 6956 6957 if test "x$ac_ct_LIPO" = x; then 6958 LIPO=":" 6959 else 6960 case $cross_compiling:$ac_tool_warned in 6961yes:) 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6964ac_tool_warned=yes ;; 6965esac 6966 LIPO=$ac_ct_LIPO 6967 fi 6968else 6969 LIPO="$ac_cv_prog_LIPO" 6970fi 6971 6972 if test -n "$ac_tool_prefix"; then 6973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6974set dummy ${ac_tool_prefix}otool; ac_word=$2 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6976$as_echo_n "checking for $ac_word... " >&6; } 6977if test "${ac_cv_prog_OTOOL+set}" = set; then : 6978 $as_echo_n "(cached) " >&6 6979else 6980 if test -n "$OTOOL"; then 6981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6982else 6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6984for as_dir in $PATH 6985do 6986 IFS=$as_save_IFS 6987 test -z "$as_dir" && as_dir=. 6988 for ac_exec_ext in '' $ac_executable_extensions; do 6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6992 break 2 6993 fi 6994done 6995 done 6996IFS=$as_save_IFS 6997 6998fi 6999fi 7000OTOOL=$ac_cv_prog_OTOOL 7001if test -n "$OTOOL"; then 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7003$as_echo "$OTOOL" >&6; } 7004else 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7006$as_echo "no" >&6; } 7007fi 7008 7009 7010fi 7011if test -z "$ac_cv_prog_OTOOL"; then 7012 ac_ct_OTOOL=$OTOOL 7013 # Extract the first word of "otool", so it can be a program name with args. 7014set dummy otool; ac_word=$2 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7016$as_echo_n "checking for $ac_word... " >&6; } 7017if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 if test -n "$ac_ct_OTOOL"; then 7021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7022else 7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7024for as_dir in $PATH 7025do 7026 IFS=$as_save_IFS 7027 test -z "$as_dir" && as_dir=. 7028 for ac_exec_ext in '' $ac_executable_extensions; do 7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7030 ac_cv_prog_ac_ct_OTOOL="otool" 7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7032 break 2 7033 fi 7034done 7035 done 7036IFS=$as_save_IFS 7037 7038fi 7039fi 7040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7041if test -n "$ac_ct_OTOOL"; then 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7043$as_echo "$ac_ct_OTOOL" >&6; } 7044else 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7046$as_echo "no" >&6; } 7047fi 7048 7049 if test "x$ac_ct_OTOOL" = x; then 7050 OTOOL=":" 7051 else 7052 case $cross_compiling:$ac_tool_warned in 7053yes:) 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7056ac_tool_warned=yes ;; 7057esac 7058 OTOOL=$ac_ct_OTOOL 7059 fi 7060else 7061 OTOOL="$ac_cv_prog_OTOOL" 7062fi 7063 7064 if test -n "$ac_tool_prefix"; then 7065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7066set dummy ${ac_tool_prefix}otool64; ac_word=$2 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7068$as_echo_n "checking for $ac_word... " >&6; } 7069if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 if test -n "$OTOOL64"; then 7073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7074else 7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7076for as_dir in $PATH 7077do 7078 IFS=$as_save_IFS 7079 test -z "$as_dir" && as_dir=. 7080 for ac_exec_ext in '' $ac_executable_extensions; do 7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7084 break 2 7085 fi 7086done 7087 done 7088IFS=$as_save_IFS 7089 7090fi 7091fi 7092OTOOL64=$ac_cv_prog_OTOOL64 7093if test -n "$OTOOL64"; then 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7095$as_echo "$OTOOL64" >&6; } 7096else 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7098$as_echo "no" >&6; } 7099fi 7100 7101 7102fi 7103if test -z "$ac_cv_prog_OTOOL64"; then 7104 ac_ct_OTOOL64=$OTOOL64 7105 # Extract the first word of "otool64", so it can be a program name with args. 7106set dummy otool64; ac_word=$2 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7108$as_echo_n "checking for $ac_word... " >&6; } 7109if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 if test -n "$ac_ct_OTOOL64"; then 7113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7114else 7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116for as_dir in $PATH 7117do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7122 ac_cv_prog_ac_ct_OTOOL64="otool64" 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126done 7127 done 7128IFS=$as_save_IFS 7129 7130fi 7131fi 7132ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7133if test -n "$ac_ct_OTOOL64"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7135$as_echo "$ac_ct_OTOOL64" >&6; } 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139fi 7140 7141 if test "x$ac_ct_OTOOL64" = x; then 7142 OTOOL64=":" 7143 else 7144 case $cross_compiling:$ac_tool_warned in 7145yes:) 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7148ac_tool_warned=yes ;; 7149esac 7150 OTOOL64=$ac_ct_OTOOL64 7151 fi 7152else 7153 OTOOL64="$ac_cv_prog_OTOOL64" 7154fi 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7183$as_echo_n "checking for -single_module linker flag... " >&6; } 7184if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 lt_cv_apple_cc_single_mod=no 7188 if test -z "${LT_MULTI_MODULE}"; then 7189 # By default we will add the -single_module flag. You can override 7190 # by either setting the environment variable LT_MULTI_MODULE 7191 # non-empty at configure time, or by adding -multi_module to the 7192 # link flags. 7193 rm -rf libconftest.dylib* 7194 echo "int foo(void){return 1;}" > conftest.c 7195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7196-dynamiclib -Wl,-single_module conftest.c" >&5 7197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7199 _lt_result=$? 7200 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7201 lt_cv_apple_cc_single_mod=yes 7202 else 7203 cat conftest.err >&5 7204 fi 7205 rm -rf libconftest.dylib* 7206 rm -f conftest.* 7207 fi 7208fi 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7210$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7212$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7213if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 lt_cv_ld_exported_symbols_list=no 7217 save_LDFLAGS=$LDFLAGS 7218 echo "_main" > conftest.sym 7219 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7221/* end confdefs.h. */ 7222 7223int 7224main () 7225{ 7226 7227 ; 7228 return 0; 7229} 7230_ACEOF 7231if ac_fn_c_try_link "$LINENO"; then : 7232 lt_cv_ld_exported_symbols_list=yes 7233else 7234 lt_cv_ld_exported_symbols_list=no 7235fi 7236rm -f core conftest.err conftest.$ac_objext \ 7237 conftest$ac_exeext conftest.$ac_ext 7238 LDFLAGS="$save_LDFLAGS" 7239 7240fi 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7242$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7243 case $host_os in 7244 rhapsody* | darwin1.[012]) 7245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7246 darwin1.*) 7247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7248 darwin*) # darwin 5.x on 7249 # if running on 10.5 or later, the deployment target defaults 7250 # to the OS version, if on x86, and 10.4, the deployment 7251 # target defaults to 10.4. Don't you love it? 7252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7253 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7255 10.[012]*) 7256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7257 10.*) 7258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7259 esac 7260 ;; 7261 esac 7262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7263 _lt_dar_single_mod='$single_module' 7264 fi 7265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7267 else 7268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7269 fi 7270 if test "$DSYMUTIL" != ":"; then 7271 _lt_dsymutil='~$DSYMUTIL $lib || :' 7272 else 7273 _lt_dsymutil= 7274 fi 7275 ;; 7276 esac 7277 7278for ac_header in dlfcn.h 7279do : 7280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7281" 7282if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7283 cat >>confdefs.h <<_ACEOF 7284#define HAVE_DLFCN_H 1 7285_ACEOF 7286 7287fi 7288 7289done 7290 7291 7292 7293# Set options 7294 7295 7296 7297 enable_dlopen=no 7298 7299 7300 enable_win32_dll=no 7301 7302 7303 # Check whether --enable-shared was given. 7304if test "${enable_shared+set}" = set; then : 7305 enableval=$enable_shared; p=${PACKAGE-default} 7306 case $enableval in 7307 yes) enable_shared=yes ;; 7308 no) enable_shared=no ;; 7309 *) 7310 enable_shared=no 7311 # Look at the argument we got. We use all the common list separators. 7312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7313 for pkg in $enableval; do 7314 IFS="$lt_save_ifs" 7315 if test "X$pkg" = "X$p"; then 7316 enable_shared=yes 7317 fi 7318 done 7319 IFS="$lt_save_ifs" 7320 ;; 7321 esac 7322else 7323 enable_shared=yes 7324fi 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336# Check whether --with-pic was given. 7337if test "${with_pic+set}" = set; then : 7338 withval=$with_pic; pic_mode="$withval" 7339else 7340 pic_mode=default 7341fi 7342 7343 7344test -z "$pic_mode" && pic_mode=default 7345 7346 7347 7348 7349 7350 7351 7352 # Check whether --enable-fast-install was given. 7353if test "${enable_fast_install+set}" = set; then : 7354 enableval=$enable_fast_install; p=${PACKAGE-default} 7355 case $enableval in 7356 yes) enable_fast_install=yes ;; 7357 no) enable_fast_install=no ;; 7358 *) 7359 enable_fast_install=no 7360 # Look at the argument we got. We use all the common list separators. 7361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7362 for pkg in $enableval; do 7363 IFS="$lt_save_ifs" 7364 if test "X$pkg" = "X$p"; then 7365 enable_fast_install=yes 7366 fi 7367 done 7368 IFS="$lt_save_ifs" 7369 ;; 7370 esac 7371else 7372 enable_fast_install=yes 7373fi 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385# This can be used to rebuild libtool when needed 7386LIBTOOL_DEPS="$ltmain" 7387 7388# Always use our own libtool. 7389LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415test -z "$LN_S" && LN_S="ln -s" 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430if test -n "${ZSH_VERSION+set}" ; then 7431 setopt NO_GLOB_SUBST 7432fi 7433 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7435$as_echo_n "checking for objdir... " >&6; } 7436if test "${lt_cv_objdir+set}" = set; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 rm -f .libs 2>/dev/null 7440mkdir .libs 2>/dev/null 7441if test -d .libs; then 7442 lt_cv_objdir=.libs 7443else 7444 # MS-DOS does not allow filenames that begin with a dot. 7445 lt_cv_objdir=_libs 7446fi 7447rmdir .libs 2>/dev/null 7448fi 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7450$as_echo "$lt_cv_objdir" >&6; } 7451objdir=$lt_cv_objdir 7452 7453 7454 7455 7456 7457cat >>confdefs.h <<_ACEOF 7458#define LT_OBJDIR "$lt_cv_objdir/" 7459_ACEOF 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477case $host_os in 7478aix3*) 7479 # AIX sometimes has problems with the GCC collect2 program. For some 7480 # reason, if we set the COLLECT_NAMES environment variable, the problems 7481 # vanish in a puff of smoke. 7482 if test "X${COLLECT_NAMES+set}" != Xset; then 7483 COLLECT_NAMES= 7484 export COLLECT_NAMES 7485 fi 7486 ;; 7487esac 7488 7489# Sed substitution that helps us do robust quoting. It backslashifies 7490# metacharacters that are still active within double-quoted strings. 7491sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7492 7493# Same as above, but do not quote variable references. 7494double_quote_subst='s/\(["`\\]\)/\\\1/g' 7495 7496# Sed substitution to delay expansion of an escaped shell variable in a 7497# double_quote_subst'ed string. 7498delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7499 7500# Sed substitution to delay expansion of an escaped single quote. 7501delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7502 7503# Sed substitution to avoid accidental globbing in evaled expressions 7504no_glob_subst='s/\*/\\\*/g' 7505 7506# Global variables: 7507ofile=libtool 7508can_build_shared=yes 7509 7510# All known linkers require a `.a' archive for static linking (except MSVC, 7511# which needs '.lib'). 7512libext=a 7513 7514with_gnu_ld="$lt_cv_prog_gnu_ld" 7515 7516old_CC="$CC" 7517old_CFLAGS="$CFLAGS" 7518 7519# Set sane defaults for various variables 7520test -z "$CC" && CC=cc 7521test -z "$LTCC" && LTCC=$CC 7522test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7523test -z "$LD" && LD=ld 7524test -z "$ac_objext" && ac_objext=o 7525 7526for cc_temp in $compiler""; do 7527 case $cc_temp in 7528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7530 \-*) ;; 7531 *) break;; 7532 esac 7533done 7534cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7535 7536 7537# Only perform the check for file, if the check method requires it 7538test -z "$MAGIC_CMD" && MAGIC_CMD=file 7539case $deplibs_check_method in 7540file_magic*) 7541 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7543$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7544if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7545 $as_echo_n "(cached) " >&6 7546else 7547 case $MAGIC_CMD in 7548[\\/*] | ?:[\\/]*) 7549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7550 ;; 7551*) 7552 lt_save_MAGIC_CMD="$MAGIC_CMD" 7553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7555 for ac_dir in $ac_dummy; do 7556 IFS="$lt_save_ifs" 7557 test -z "$ac_dir" && ac_dir=. 7558 if test -f $ac_dir/${ac_tool_prefix}file; then 7559 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7560 if test -n "$file_magic_test_file"; then 7561 case $deplibs_check_method in 7562 "file_magic "*) 7563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7566 $EGREP "$file_magic_regex" > /dev/null; then 7567 : 7568 else 7569 cat <<_LT_EOF 1>&2 7570 7571*** Warning: the command libtool uses to detect shared libraries, 7572*** $file_magic_cmd, produces output that libtool cannot recognize. 7573*** The result is that libtool may fail to recognize shared libraries 7574*** as such. This will affect the creation of libtool libraries that 7575*** depend on shared libraries, but programs linked with such libtool 7576*** libraries will work regardless of this problem. Nevertheless, you 7577*** may want to report the problem to your system manager and/or to 7578*** bug-libtool@gnu.org 7579 7580_LT_EOF 7581 fi ;; 7582 esac 7583 fi 7584 break 7585 fi 7586 done 7587 IFS="$lt_save_ifs" 7588 MAGIC_CMD="$lt_save_MAGIC_CMD" 7589 ;; 7590esac 7591fi 7592 7593MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7594if test -n "$MAGIC_CMD"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7596$as_echo "$MAGIC_CMD" >&6; } 7597else 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7599$as_echo "no" >&6; } 7600fi 7601 7602 7603 7604 7605 7606if test -z "$lt_cv_path_MAGIC_CMD"; then 7607 if test -n "$ac_tool_prefix"; then 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7609$as_echo_n "checking for file... " >&6; } 7610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 case $MAGIC_CMD in 7614[\\/*] | ?:[\\/]*) 7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7616 ;; 7617*) 7618 lt_save_MAGIC_CMD="$MAGIC_CMD" 7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7621 for ac_dir in $ac_dummy; do 7622 IFS="$lt_save_ifs" 7623 test -z "$ac_dir" && ac_dir=. 7624 if test -f $ac_dir/file; then 7625 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7626 if test -n "$file_magic_test_file"; then 7627 case $deplibs_check_method in 7628 "file_magic "*) 7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7632 $EGREP "$file_magic_regex" > /dev/null; then 7633 : 7634 else 7635 cat <<_LT_EOF 1>&2 7636 7637*** Warning: the command libtool uses to detect shared libraries, 7638*** $file_magic_cmd, produces output that libtool cannot recognize. 7639*** The result is that libtool may fail to recognize shared libraries 7640*** as such. This will affect the creation of libtool libraries that 7641*** depend on shared libraries, but programs linked with such libtool 7642*** libraries will work regardless of this problem. Nevertheless, you 7643*** may want to report the problem to your system manager and/or to 7644*** bug-libtool@gnu.org 7645 7646_LT_EOF 7647 fi ;; 7648 esac 7649 fi 7650 break 7651 fi 7652 done 7653 IFS="$lt_save_ifs" 7654 MAGIC_CMD="$lt_save_MAGIC_CMD" 7655 ;; 7656esac 7657fi 7658 7659MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7660if test -n "$MAGIC_CMD"; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7662$as_echo "$MAGIC_CMD" >&6; } 7663else 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7665$as_echo "no" >&6; } 7666fi 7667 7668 7669 else 7670 MAGIC_CMD=: 7671 fi 7672fi 7673 7674 fi 7675 ;; 7676esac 7677 7678# Use C for the default configuration in the libtool script 7679 7680lt_save_CC="$CC" 7681ac_ext=c 7682ac_cpp='$CPP $CPPFLAGS' 7683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7685ac_compiler_gnu=$ac_cv_c_compiler_gnu 7686 7687 7688# Source file extension for C test sources. 7689ac_ext=c 7690 7691# Object file extension for compiled C test sources. 7692objext=o 7693objext=$objext 7694 7695# Code to be used in simple compile tests 7696lt_simple_compile_test_code="int some_variable = 0;" 7697 7698# Code to be used in simple link tests 7699lt_simple_link_test_code='int main(){return(0);}' 7700 7701 7702 7703 7704 7705 7706 7707# If no C compiler was specified, use CC. 7708LTCC=${LTCC-"$CC"} 7709 7710# If no C compiler flags were specified, use CFLAGS. 7711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7712 7713# Allow CC to be a program name with arguments. 7714compiler=$CC 7715 7716# Save the default compiler, since it gets overwritten when the other 7717# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7718compiler_DEFAULT=$CC 7719 7720# save warnings/boilerplate of simple test code 7721ac_outfile=conftest.$ac_objext 7722echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7723eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7724_lt_compiler_boilerplate=`cat conftest.err` 7725$RM conftest* 7726 7727ac_outfile=conftest.$ac_objext 7728echo "$lt_simple_link_test_code" >conftest.$ac_ext 7729eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7730_lt_linker_boilerplate=`cat conftest.err` 7731$RM -r conftest* 7732 7733 7734if test -n "$compiler"; then 7735 7736lt_prog_compiler_no_builtin_flag= 7737 7738if test "$GCC" = yes; then 7739 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7740 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7742$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7743if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7744 $as_echo_n "(cached) " >&6 7745else 7746 lt_cv_prog_compiler_rtti_exceptions=no 7747 ac_outfile=conftest.$ac_objext 7748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7749 lt_compiler_flag="-fno-rtti -fno-exceptions" 7750 # Insert the option either (1) after the last *FLAGS variable, or 7751 # (2) before a word containing "conftest.", or (3) at the end. 7752 # Note that $ac_compile itself does not contain backslashes and begins 7753 # with a dollar sign (not a hyphen), so the echo should work correctly. 7754 # The option is referenced via a variable to avoid confusing sed. 7755 lt_compile=`echo "$ac_compile" | $SED \ 7756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7758 -e 's:$: $lt_compiler_flag:'` 7759 (eval echo "\"\$as_me:7759: $lt_compile\"" >&5) 7760 (eval "$lt_compile" 2>conftest.err) 7761 ac_status=$? 7762 cat conftest.err >&5 7763 echo "$as_me:7763: \$? = $ac_status" >&5 7764 if (exit $ac_status) && test -s "$ac_outfile"; then 7765 # The compiler can only warn and ignore the option if not recognized 7766 # So say no if there are warnings other than the usual output. 7767 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7769 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7770 lt_cv_prog_compiler_rtti_exceptions=yes 7771 fi 7772 fi 7773 $RM conftest* 7774 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7777$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7778 7779if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7780 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7781else 7782 : 7783fi 7784 7785fi 7786 7787 7788 7789 7790 7791 7792 lt_prog_compiler_wl= 7793lt_prog_compiler_pic= 7794lt_prog_compiler_static= 7795 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7797$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7798 7799 if test "$GCC" = yes; then 7800 lt_prog_compiler_wl='-Wl,' 7801 lt_prog_compiler_static='-static' 7802 7803 case $host_os in 7804 aix*) 7805 # All AIX code is PIC. 7806 if test "$host_cpu" = ia64; then 7807 # AIX 5 now supports IA64 processor 7808 lt_prog_compiler_static='-Bstatic' 7809 fi 7810 ;; 7811 7812 amigaos*) 7813 case $host_cpu in 7814 powerpc) 7815 # see comment about AmigaOS4 .so support 7816 lt_prog_compiler_pic='-fPIC' 7817 ;; 7818 m68k) 7819 # FIXME: we need at least 68020 code to build shared libraries, but 7820 # adding the `-m68020' flag to GCC prevents building anything better, 7821 # like `-m68040'. 7822 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7823 ;; 7824 esac 7825 ;; 7826 7827 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7828 # PIC is the default for these OSes. 7829 ;; 7830 7831 mingw* | cygwin* | pw32* | os2* | cegcc*) 7832 # This hack is so that the source file can tell whether it is being 7833 # built for inclusion in a dll (and should export symbols for example). 7834 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7835 # (--disable-auto-import) libraries 7836 lt_prog_compiler_pic='-DDLL_EXPORT' 7837 ;; 7838 7839 darwin* | rhapsody*) 7840 # PIC is the default on this platform 7841 # Common symbols not allowed in MH_DYLIB files 7842 lt_prog_compiler_pic='-fno-common' 7843 ;; 7844 7845 hpux*) 7846 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7847 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7848 # sets the default TLS model and affects inlining. 7849 case $host_cpu in 7850 hppa*64*) 7851 # +Z the default 7852 ;; 7853 *) 7854 lt_prog_compiler_pic='-fPIC' 7855 ;; 7856 esac 7857 ;; 7858 7859 interix[3-9]*) 7860 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7861 # Instead, we relocate shared libraries at runtime. 7862 ;; 7863 7864 msdosdjgpp*) 7865 # Just because we use GCC doesn't mean we suddenly get shared libraries 7866 # on systems that don't support them. 7867 lt_prog_compiler_can_build_shared=no 7868 enable_shared=no 7869 ;; 7870 7871 *nto* | *qnx*) 7872 # QNX uses GNU C++, but need to define -shared option too, otherwise 7873 # it will coredump. 7874 lt_prog_compiler_pic='-fPIC -shared' 7875 ;; 7876 7877 sysv4*MP*) 7878 if test -d /usr/nec; then 7879 lt_prog_compiler_pic=-Kconform_pic 7880 fi 7881 ;; 7882 7883 *) 7884 lt_prog_compiler_pic='-fPIC' 7885 ;; 7886 esac 7887 else 7888 # PORTME Check for flag to pass linker flags through the system compiler. 7889 case $host_os in 7890 aix*) 7891 lt_prog_compiler_wl='-Wl,' 7892 if test "$host_cpu" = ia64; then 7893 # AIX 5 now supports IA64 processor 7894 lt_prog_compiler_static='-Bstatic' 7895 else 7896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7897 fi 7898 ;; 7899 7900 mingw* | cygwin* | pw32* | os2* | cegcc*) 7901 # This hack is so that the source file can tell whether it is being 7902 # built for inclusion in a dll (and should export symbols for example). 7903 lt_prog_compiler_pic='-DDLL_EXPORT' 7904 ;; 7905 7906 hpux9* | hpux10* | hpux11*) 7907 lt_prog_compiler_wl='-Wl,' 7908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7909 # not for PA HP-UX. 7910 case $host_cpu in 7911 hppa*64*|ia64*) 7912 # +Z the default 7913 ;; 7914 *) 7915 lt_prog_compiler_pic='+Z' 7916 ;; 7917 esac 7918 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7919 lt_prog_compiler_static='${wl}-a ${wl}archive' 7920 ;; 7921 7922 irix5* | irix6* | nonstopux*) 7923 lt_prog_compiler_wl='-Wl,' 7924 # PIC (with -KPIC) is the default. 7925 lt_prog_compiler_static='-non_shared' 7926 ;; 7927 7928 linux* | k*bsd*-gnu) 7929 case $cc_basename in 7930 # old Intel for x86_64 which still supported -KPIC. 7931 ecc*) 7932 lt_prog_compiler_wl='-Wl,' 7933 lt_prog_compiler_pic='-KPIC' 7934 lt_prog_compiler_static='-static' 7935 ;; 7936 # icc used to be incompatible with GCC. 7937 # ICC 10 doesn't accept -KPIC any more. 7938 icc* | ifort*) 7939 lt_prog_compiler_wl='-Wl,' 7940 lt_prog_compiler_pic='-fPIC' 7941 lt_prog_compiler_static='-static' 7942 ;; 7943 # Lahey Fortran 8.1. 7944 lf95*) 7945 lt_prog_compiler_wl='-Wl,' 7946 lt_prog_compiler_pic='--shared' 7947 lt_prog_compiler_static='--static' 7948 ;; 7949 pgcc* | pgf77* | pgf90* | pgf95*) 7950 # Portland Group compilers (*not* the Pentium gcc compiler, 7951 # which looks to be a dead project) 7952 lt_prog_compiler_wl='-Wl,' 7953 lt_prog_compiler_pic='-fpic' 7954 lt_prog_compiler_static='-Bstatic' 7955 ;; 7956 ccc*) 7957 lt_prog_compiler_wl='-Wl,' 7958 # All Alpha code is PIC. 7959 lt_prog_compiler_static='-non_shared' 7960 ;; 7961 xl*) 7962 # IBM XL C 8.0/Fortran 10.1 on PPC 7963 lt_prog_compiler_wl='-Wl,' 7964 lt_prog_compiler_pic='-qpic' 7965 lt_prog_compiler_static='-qstaticlink' 7966 ;; 7967 *) 7968 case `$CC -V 2>&1 | sed 5q` in 7969 *Sun\ C*) 7970 # Sun C 5.9 7971 lt_prog_compiler_pic='-KPIC' 7972 lt_prog_compiler_static='-Bstatic' 7973 lt_prog_compiler_wl='-Wl,' 7974 ;; 7975 *Sun\ F*) 7976 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7977 lt_prog_compiler_pic='-KPIC' 7978 lt_prog_compiler_static='-Bstatic' 7979 lt_prog_compiler_wl='' 7980 ;; 7981 esac 7982 ;; 7983 esac 7984 ;; 7985 7986 newsos6) 7987 lt_prog_compiler_pic='-KPIC' 7988 lt_prog_compiler_static='-Bstatic' 7989 ;; 7990 7991 *nto* | *qnx*) 7992 # QNX uses GNU C++, but need to define -shared option too, otherwise 7993 # it will coredump. 7994 lt_prog_compiler_pic='-fPIC -shared' 7995 ;; 7996 7997 osf3* | osf4* | osf5*) 7998 lt_prog_compiler_wl='-Wl,' 7999 # All OSF/1 code is PIC. 8000 lt_prog_compiler_static='-non_shared' 8001 ;; 8002 8003 rdos*) 8004 lt_prog_compiler_static='-non_shared' 8005 ;; 8006 8007 solaris*) 8008 lt_prog_compiler_pic='-KPIC' 8009 lt_prog_compiler_static='-Bstatic' 8010 case $cc_basename in 8011 f77* | f90* | f95*) 8012 lt_prog_compiler_wl='-Qoption ld ';; 8013 *) 8014 lt_prog_compiler_wl='-Wl,';; 8015 esac 8016 ;; 8017 8018 sunos4*) 8019 lt_prog_compiler_wl='-Qoption ld ' 8020 lt_prog_compiler_pic='-PIC' 8021 lt_prog_compiler_static='-Bstatic' 8022 ;; 8023 8024 sysv4 | sysv4.2uw2* | sysv4.3*) 8025 lt_prog_compiler_wl='-Wl,' 8026 lt_prog_compiler_pic='-KPIC' 8027 lt_prog_compiler_static='-Bstatic' 8028 ;; 8029 8030 sysv4*MP*) 8031 if test -d /usr/nec ;then 8032 lt_prog_compiler_pic='-Kconform_pic' 8033 lt_prog_compiler_static='-Bstatic' 8034 fi 8035 ;; 8036 8037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8038 lt_prog_compiler_wl='-Wl,' 8039 lt_prog_compiler_pic='-KPIC' 8040 lt_prog_compiler_static='-Bstatic' 8041 ;; 8042 8043 unicos*) 8044 lt_prog_compiler_wl='-Wl,' 8045 lt_prog_compiler_can_build_shared=no 8046 ;; 8047 8048 uts4*) 8049 lt_prog_compiler_pic='-pic' 8050 lt_prog_compiler_static='-Bstatic' 8051 ;; 8052 8053 *) 8054 lt_prog_compiler_can_build_shared=no 8055 ;; 8056 esac 8057 fi 8058 8059case $host_os in 8060 # For platforms which do not support PIC, -DPIC is meaningless: 8061 *djgpp*) 8062 lt_prog_compiler_pic= 8063 ;; 8064 *) 8065 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8066 ;; 8067esac 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8069$as_echo "$lt_prog_compiler_pic" >&6; } 8070 8071 8072 8073 8074 8075 8076# 8077# Check to make sure the PIC flag actually works. 8078# 8079if test -n "$lt_prog_compiler_pic"; then 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8081$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8082if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 lt_cv_prog_compiler_pic_works=no 8086 ac_outfile=conftest.$ac_objext 8087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8088 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8089 # Insert the option either (1) after the last *FLAGS variable, or 8090 # (2) before a word containing "conftest.", or (3) at the end. 8091 # Note that $ac_compile itself does not contain backslashes and begins 8092 # with a dollar sign (not a hyphen), so the echo should work correctly. 8093 # The option is referenced via a variable to avoid confusing sed. 8094 lt_compile=`echo "$ac_compile" | $SED \ 8095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8097 -e 's:$: $lt_compiler_flag:'` 8098 (eval echo "\"\$as_me:8098: $lt_compile\"" >&5) 8099 (eval "$lt_compile" 2>conftest.err) 8100 ac_status=$? 8101 cat conftest.err >&5 8102 echo "$as_me:8102: \$? = $ac_status" >&5 8103 if (exit $ac_status) && test -s "$ac_outfile"; then 8104 # The compiler can only warn and ignore the option if not recognized 8105 # So say no if there are warnings other than the usual output. 8106 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8109 lt_cv_prog_compiler_pic_works=yes 8110 fi 8111 fi 8112 $RM conftest* 8113 8114fi 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8116$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8117 8118if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8119 case $lt_prog_compiler_pic in 8120 "" | " "*) ;; 8121 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8122 esac 8123else 8124 lt_prog_compiler_pic= 8125 lt_prog_compiler_can_build_shared=no 8126fi 8127 8128fi 8129 8130 8131 8132 8133 8134 8135# 8136# Check to make sure the static flag actually works. 8137# 8138wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8140$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8141if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 lt_cv_prog_compiler_static_works=no 8145 save_LDFLAGS="$LDFLAGS" 8146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8147 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8149 # The linker can only warn and ignore the option if not recognized 8150 # So say no if there are warnings 8151 if test -s conftest.err; then 8152 # Append any errors to the config.log. 8153 cat conftest.err 1>&5 8154 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8156 if diff conftest.exp conftest.er2 >/dev/null; then 8157 lt_cv_prog_compiler_static_works=yes 8158 fi 8159 else 8160 lt_cv_prog_compiler_static_works=yes 8161 fi 8162 fi 8163 $RM -r conftest* 8164 LDFLAGS="$save_LDFLAGS" 8165 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8168$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8169 8170if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8171 : 8172else 8173 lt_prog_compiler_static= 8174fi 8175 8176 8177 8178 8179 8180 8181 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8184if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 lt_cv_prog_compiler_c_o=no 8188 $RM -r conftest 2>/dev/null 8189 mkdir conftest 8190 cd conftest 8191 mkdir out 8192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8193 8194 lt_compiler_flag="-o out/conftest2.$ac_objext" 8195 # Insert the option either (1) after the last *FLAGS variable, or 8196 # (2) before a word containing "conftest.", or (3) at the end. 8197 # Note that $ac_compile itself does not contain backslashes and begins 8198 # with a dollar sign (not a hyphen), so the echo should work correctly. 8199 lt_compile=`echo "$ac_compile" | $SED \ 8200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8202 -e 's:$: $lt_compiler_flag:'` 8203 (eval echo "\"\$as_me:8203: $lt_compile\"" >&5) 8204 (eval "$lt_compile" 2>out/conftest.err) 8205 ac_status=$? 8206 cat out/conftest.err >&5 8207 echo "$as_me:8207: \$? = $ac_status" >&5 8208 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8209 then 8210 # The compiler can only warn and ignore the option if not recognized 8211 # So say no if there are warnings 8212 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8215 lt_cv_prog_compiler_c_o=yes 8216 fi 8217 fi 8218 chmod u+w . 2>&5 8219 $RM conftest* 8220 # SGI C++ compiler will create directory out/ii_files/ for 8221 # template instantiation 8222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8223 $RM out/* && rmdir out 8224 cd .. 8225 $RM -r conftest 8226 $RM conftest* 8227 8228fi 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8230$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8231 8232 8233 8234 8235 8236 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8238$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8239if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 lt_cv_prog_compiler_c_o=no 8243 $RM -r conftest 2>/dev/null 8244 mkdir conftest 8245 cd conftest 8246 mkdir out 8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8248 8249 lt_compiler_flag="-o out/conftest2.$ac_objext" 8250 # Insert the option either (1) after the last *FLAGS variable, or 8251 # (2) before a word containing "conftest.", or (3) at the end. 8252 # Note that $ac_compile itself does not contain backslashes and begins 8253 # with a dollar sign (not a hyphen), so the echo should work correctly. 8254 lt_compile=`echo "$ac_compile" | $SED \ 8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8257 -e 's:$: $lt_compiler_flag:'` 8258 (eval echo "\"\$as_me:8258: $lt_compile\"" >&5) 8259 (eval "$lt_compile" 2>out/conftest.err) 8260 ac_status=$? 8261 cat out/conftest.err >&5 8262 echo "$as_me:8262: \$? = $ac_status" >&5 8263 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8264 then 8265 # The compiler can only warn and ignore the option if not recognized 8266 # So say no if there are warnings 8267 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8270 lt_cv_prog_compiler_c_o=yes 8271 fi 8272 fi 8273 chmod u+w . 2>&5 8274 $RM conftest* 8275 # SGI C++ compiler will create directory out/ii_files/ for 8276 # template instantiation 8277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8278 $RM out/* && rmdir out 8279 cd .. 8280 $RM -r conftest 8281 $RM conftest* 8282 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8285$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8286 8287 8288 8289 8290hard_links="nottested" 8291if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8292 # do not overwrite the value of need_locks provided by the user 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8294$as_echo_n "checking if we can lock with hard links... " >&6; } 8295 hard_links=yes 8296 $RM conftest* 8297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8298 touch conftest.a 8299 ln conftest.a conftest.b 2>&5 || hard_links=no 8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8302$as_echo "$hard_links" >&6; } 8303 if test "$hard_links" = no; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8305$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8306 need_locks=warn 8307 fi 8308else 8309 need_locks=no 8310fi 8311 8312 8313 8314 8315 8316 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8318$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8319 8320 runpath_var= 8321 allow_undefined_flag= 8322 always_export_symbols=no 8323 archive_cmds= 8324 archive_expsym_cmds= 8325 compiler_needs_object=no 8326 enable_shared_with_static_runtimes=no 8327 export_dynamic_flag_spec= 8328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8329 hardcode_automatic=no 8330 hardcode_direct=no 8331 hardcode_direct_absolute=no 8332 hardcode_libdir_flag_spec= 8333 hardcode_libdir_flag_spec_ld= 8334 hardcode_libdir_separator= 8335 hardcode_minus_L=no 8336 hardcode_shlibpath_var=unsupported 8337 inherit_rpath=no 8338 link_all_deplibs=unknown 8339 module_cmds= 8340 module_expsym_cmds= 8341 old_archive_from_new_cmds= 8342 old_archive_from_expsyms_cmds= 8343 thread_safe_flag_spec= 8344 whole_archive_flag_spec= 8345 # include_expsyms should be a list of space-separated symbols to be *always* 8346 # included in the symbol list 8347 include_expsyms= 8348 # exclude_expsyms can be an extended regexp of symbols to exclude 8349 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8350 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8351 # as well as any symbol that contains `d'. 8352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8354 # platforms (ab)use it in PIC code, but their linkers get confused if 8355 # the symbol is explicitly referenced. Since portable code cannot 8356 # rely on this symbol name, it's probably fine to never include it in 8357 # preloaded symbol tables. 8358 # Exclude shared library initialization/finalization symbols. 8359 extract_expsyms_cmds= 8360 8361 case $host_os in 8362 cygwin* | mingw* | pw32* | cegcc*) 8363 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8364 # When not using gcc, we currently assume that we are using 8365 # Microsoft Visual C++. 8366 if test "$GCC" != yes; then 8367 with_gnu_ld=no 8368 fi 8369 ;; 8370 interix*) 8371 # we just hope/assume this is gcc and not c89 (= MSVC++) 8372 with_gnu_ld=yes 8373 ;; 8374 openbsd*) 8375 with_gnu_ld=no 8376 ;; 8377 linux* | k*bsd*-gnu) 8378 link_all_deplibs=no 8379 ;; 8380 esac 8381 8382 ld_shlibs=yes 8383 if test "$with_gnu_ld" = yes; then 8384 # If archive_cmds runs LD, not CC, wlarc should be empty 8385 wlarc='${wl}' 8386 8387 # Set some defaults for GNU ld with shared library support. These 8388 # are reset later if shared libraries are not supported. Putting them 8389 # here allows them to be overridden if necessary. 8390 runpath_var=LD_RUN_PATH 8391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8392 export_dynamic_flag_spec='${wl}--export-dynamic' 8393 # ancient GNU ld didn't support --whole-archive et. al. 8394 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8395 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8396 else 8397 whole_archive_flag_spec= 8398 fi 8399 supports_anon_versioning=no 8400 case `$LD -v 2>&1` in 8401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8404 *\ 2.11.*) ;; # other 2.11 versions 8405 *) supports_anon_versioning=yes ;; 8406 esac 8407 8408 # See if GNU ld supports shared libraries. 8409 case $host_os in 8410 aix[3-9]*) 8411 # On AIX/PPC, the GNU linker is very broken 8412 if test "$host_cpu" != ia64; then 8413 ld_shlibs=no 8414 cat <<_LT_EOF 1>&2 8415 8416*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8417*** to be unable to reliably create shared libraries on AIX. 8418*** Therefore, libtool is disabling shared libraries support. If you 8419*** really care for shared libraries, you may want to modify your PATH 8420*** so that a non-GNU linker is found, and then restart. 8421 8422_LT_EOF 8423 fi 8424 ;; 8425 8426 amigaos*) 8427 case $host_cpu in 8428 powerpc) 8429 # see comment about AmigaOS4 .so support 8430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8431 archive_expsym_cmds='' 8432 ;; 8433 m68k) 8434 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)' 8435 hardcode_libdir_flag_spec='-L$libdir' 8436 hardcode_minus_L=yes 8437 ;; 8438 esac 8439 ;; 8440 8441 beos*) 8442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8443 allow_undefined_flag=unsupported 8444 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8445 # support --undefined. This deserves some investigation. FIXME 8446 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8447 else 8448 ld_shlibs=no 8449 fi 8450 ;; 8451 8452 cygwin* | mingw* | pw32* | cegcc*) 8453 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8454 # as there is no search path for DLLs. 8455 hardcode_libdir_flag_spec='-L$libdir' 8456 allow_undefined_flag=unsupported 8457 always_export_symbols=no 8458 enable_shared_with_static_runtimes=yes 8459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8460 8461 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8463 # If the export-symbols file already is a .def file (1st line 8464 # is EXPORTS), use it as is; otherwise, prepend... 8465 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8466 cp $export_symbols $output_objdir/$soname.def; 8467 else 8468 echo EXPORTS > $output_objdir/$soname.def; 8469 cat $export_symbols >> $output_objdir/$soname.def; 8470 fi~ 8471 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8472 else 8473 ld_shlibs=no 8474 fi 8475 ;; 8476 8477 interix[3-9]*) 8478 hardcode_direct=no 8479 hardcode_shlibpath_var=no 8480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8481 export_dynamic_flag_spec='${wl}-E' 8482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8483 # Instead, shared libraries are loaded at an image base (0x10000000 by 8484 # default) and relocated if they conflict, which is a slow very memory 8485 # consuming and fragmenting process. To avoid this, we pick a random, 8486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8487 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8489 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' 8490 ;; 8491 8492 gnu* | linux* | tpf* | k*bsd*-gnu) 8493 tmp_diet=no 8494 if test "$host_os" = linux-dietlibc; then 8495 case $cc_basename in 8496 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8497 esac 8498 fi 8499 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8500 && test "$tmp_diet" = no 8501 then 8502 tmp_addflag= 8503 tmp_sharedflag='-shared' 8504 case $cc_basename,$host_cpu in 8505 pgcc*) # Portland Group C compiler 8506 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' 8507 tmp_addflag=' $pic_flag' 8508 ;; 8509 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8510 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' 8511 tmp_addflag=' $pic_flag -Mnomain' ;; 8512 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8513 tmp_addflag=' -i_dynamic' ;; 8514 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8515 tmp_addflag=' -i_dynamic -nofor_main' ;; 8516 ifc* | ifort*) # Intel Fortran compiler 8517 tmp_addflag=' -nofor_main' ;; 8518 lf95*) # Lahey Fortran 8.1 8519 whole_archive_flag_spec= 8520 tmp_sharedflag='--shared' ;; 8521 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8522 tmp_sharedflag='-qmkshrobj' 8523 tmp_addflag= ;; 8524 esac 8525 case `$CC -V 2>&1 | sed 5q` in 8526 *Sun\ C*) # Sun C 5.9 8527 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' 8528 compiler_needs_object=yes 8529 tmp_sharedflag='-G' ;; 8530 *Sun\ F*) # Sun Fortran 8.3 8531 tmp_sharedflag='-G' ;; 8532 esac 8533 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8534 8535 if test "x$supports_anon_versioning" = xyes; then 8536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8538 echo "local: *; };" >> $output_objdir/$libname.ver~ 8539 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8540 fi 8541 8542 case $cc_basename in 8543 xlf*) 8544 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8545 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8546 hardcode_libdir_flag_spec= 8547 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8548 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8549 if test "x$supports_anon_versioning" = xyes; then 8550 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8551 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8552 echo "local: *; };" >> $output_objdir/$libname.ver~ 8553 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8554 fi 8555 ;; 8556 esac 8557 else 8558 ld_shlibs=no 8559 fi 8560 ;; 8561 8562 netbsd* | netbsdelf*-gnu) 8563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8564 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8565 wlarc= 8566 else 8567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8569 fi 8570 ;; 8571 8572 solaris*) 8573 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8574 ld_shlibs=no 8575 cat <<_LT_EOF 1>&2 8576 8577*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8578*** create shared libraries on Solaris systems. Therefore, libtool 8579*** is disabling shared libraries support. We urge you to upgrade GNU 8580*** binutils to release 2.9.1 or newer. Another option is to modify 8581*** your PATH or compiler configuration so that the native linker is 8582*** used, and then restart. 8583 8584_LT_EOF 8585 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8588 else 8589 ld_shlibs=no 8590 fi 8591 ;; 8592 8593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8594 case `$LD -v 2>&1` in 8595 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8596 ld_shlibs=no 8597 cat <<_LT_EOF 1>&2 8598 8599*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8600*** reliably create shared libraries on SCO systems. Therefore, libtool 8601*** is disabling shared libraries support. We urge you to upgrade GNU 8602*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8603*** your PATH or compiler configuration so that the native linker is 8604*** used, and then restart. 8605 8606_LT_EOF 8607 ;; 8608 *) 8609 # For security reasons, it is highly recommended that you always 8610 # use absolute paths for naming shared libraries, and exclude the 8611 # DT_RUNPATH tag from executables and libraries. But doing so 8612 # requires that you compile everything twice, which is a pain. 8613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8617 else 8618 ld_shlibs=no 8619 fi 8620 ;; 8621 esac 8622 ;; 8623 8624 sunos4*) 8625 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8626 wlarc= 8627 hardcode_direct=yes 8628 hardcode_shlibpath_var=no 8629 ;; 8630 8631 *) 8632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8635 else 8636 ld_shlibs=no 8637 fi 8638 ;; 8639 esac 8640 8641 if test "$ld_shlibs" = no; then 8642 runpath_var= 8643 hardcode_libdir_flag_spec= 8644 export_dynamic_flag_spec= 8645 whole_archive_flag_spec= 8646 fi 8647 else 8648 # PORTME fill in a description of your system's linker (not GNU ld) 8649 case $host_os in 8650 aix3*) 8651 allow_undefined_flag=unsupported 8652 always_export_symbols=yes 8653 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' 8654 # Note: this linker hardcodes the directories in LIBPATH if there 8655 # are no directories specified by -L. 8656 hardcode_minus_L=yes 8657 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8658 # Neither direct hardcoding nor static linking is supported with a 8659 # broken collect2. 8660 hardcode_direct=unsupported 8661 fi 8662 ;; 8663 8664 aix[4-9]*) 8665 if test "$host_cpu" = ia64; then 8666 # On IA64, the linker does run time linking by default, so we don't 8667 # have to do anything special. 8668 aix_use_runtimelinking=no 8669 exp_sym_flag='-Bexport' 8670 no_entry_flag="" 8671 else 8672 # If we're using GNU nm, then we don't want the "-C" option. 8673 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8674 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8675 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' 8676 else 8677 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' 8678 fi 8679 aix_use_runtimelinking=no 8680 8681 # Test if we are trying to use run time linking or normal 8682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8683 # need to do runtime linking. 8684 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8685 for ld_flag in $LDFLAGS; do 8686 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8687 aix_use_runtimelinking=yes 8688 break 8689 fi 8690 done 8691 ;; 8692 esac 8693 8694 exp_sym_flag='-bexport' 8695 no_entry_flag='-bnoentry' 8696 fi 8697 8698 # When large executables or shared objects are built, AIX ld can 8699 # have problems creating the table of contents. If linking a library 8700 # or program results in "error TOC overflow" add -mminimal-toc to 8701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8703 8704 archive_cmds='' 8705 hardcode_direct=yes 8706 hardcode_direct_absolute=yes 8707 hardcode_libdir_separator=':' 8708 link_all_deplibs=yes 8709 file_list_spec='${wl}-f,' 8710 8711 if test "$GCC" = yes; then 8712 case $host_os in aix4.[012]|aix4.[012].*) 8713 # We only want to do this on AIX 4.2 and lower, the check 8714 # below for broken collect2 doesn't work under 4.3+ 8715 collect2name=`${CC} -print-prog-name=collect2` 8716 if test -f "$collect2name" && 8717 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8718 then 8719 # We have reworked collect2 8720 : 8721 else 8722 # We have old collect2 8723 hardcode_direct=unsupported 8724 # It fails to find uninstalled libraries when the uninstalled 8725 # path is not listed in the libpath. Setting hardcode_minus_L 8726 # to unsupported forces relinking 8727 hardcode_minus_L=yes 8728 hardcode_libdir_flag_spec='-L$libdir' 8729 hardcode_libdir_separator= 8730 fi 8731 ;; 8732 esac 8733 shared_flag='-shared' 8734 if test "$aix_use_runtimelinking" = yes; then 8735 shared_flag="$shared_flag "'${wl}-G' 8736 fi 8737 link_all_deplibs=no 8738 else 8739 # not using gcc 8740 if test "$host_cpu" = ia64; then 8741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8742 # chokes on -Wl,-G. The following line is correct: 8743 shared_flag='-G' 8744 else 8745 if test "$aix_use_runtimelinking" = yes; then 8746 shared_flag='${wl}-G' 8747 else 8748 shared_flag='${wl}-bM:SRE' 8749 fi 8750 fi 8751 fi 8752 8753 export_dynamic_flag_spec='${wl}-bexpall' 8754 # It seems that -bexpall does not export symbols beginning with 8755 # underscore (_), so it is better to generate a list of symbols to export. 8756 always_export_symbols=yes 8757 if test "$aix_use_runtimelinking" = yes; then 8758 # Warning - without using the other runtime loading flags (-brtl), 8759 # -berok will link without error, but may produce a broken library. 8760 allow_undefined_flag='-berok' 8761 # Determine the default libpath from the value encoded in an 8762 # empty executable. 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765 8766int 8767main () 8768{ 8769 8770 ; 8771 return 0; 8772} 8773_ACEOF 8774if ac_fn_c_try_link "$LINENO"; then : 8775 8776lt_aix_libpath_sed=' 8777 /Import File Strings/,/^$/ { 8778 /^0/ { 8779 s/^0 *\(.*\)$/\1/ 8780 p 8781 } 8782 }' 8783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8784# Check for a 64-bit object if we didn't find anything. 8785if test -z "$aix_libpath"; then 8786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8787fi 8788fi 8789rm -f core conftest.err conftest.$ac_objext \ 8790 conftest$ac_exeext conftest.$ac_ext 8791if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8792 8793 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8794 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" 8795 else 8796 if test "$host_cpu" = ia64; then 8797 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8798 allow_undefined_flag="-z nodefs" 8799 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" 8800 else 8801 # Determine the default libpath from the value encoded in an 8802 # empty executable. 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805 8806int 8807main () 8808{ 8809 8810 ; 8811 return 0; 8812} 8813_ACEOF 8814if ac_fn_c_try_link "$LINENO"; then : 8815 8816lt_aix_libpath_sed=' 8817 /Import File Strings/,/^$/ { 8818 /^0/ { 8819 s/^0 *\(.*\)$/\1/ 8820 p 8821 } 8822 }' 8823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8824# Check for a 64-bit object if we didn't find anything. 8825if test -z "$aix_libpath"; then 8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8827fi 8828fi 8829rm -f core conftest.err conftest.$ac_objext \ 8830 conftest$ac_exeext conftest.$ac_ext 8831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8832 8833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8834 # Warning - without using the other run time loading flags, 8835 # -berok will link without error, but may produce a broken library. 8836 no_undefined_flag=' ${wl}-bernotok' 8837 allow_undefined_flag=' ${wl}-berok' 8838 # Exported symbols can be pulled into shared objects from archives 8839 whole_archive_flag_spec='$convenience' 8840 archive_cmds_need_lc=yes 8841 # This is similar to how AIX traditionally builds its shared libraries. 8842 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' 8843 fi 8844 fi 8845 ;; 8846 8847 amigaos*) 8848 case $host_cpu in 8849 powerpc) 8850 # see comment about AmigaOS4 .so support 8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8852 archive_expsym_cmds='' 8853 ;; 8854 m68k) 8855 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)' 8856 hardcode_libdir_flag_spec='-L$libdir' 8857 hardcode_minus_L=yes 8858 ;; 8859 esac 8860 ;; 8861 8862 bsdi[45]*) 8863 export_dynamic_flag_spec=-rdynamic 8864 ;; 8865 8866 cygwin* | mingw* | pw32* | cegcc*) 8867 # When not using gcc, we currently assume that we are using 8868 # Microsoft Visual C++. 8869 # hardcode_libdir_flag_spec is actually meaningless, as there is 8870 # no search path for DLLs. 8871 hardcode_libdir_flag_spec=' ' 8872 allow_undefined_flag=unsupported 8873 # Tell ltmain to make .lib files, not .a files. 8874 libext=lib 8875 # Tell ltmain to make .dll files, not .so files. 8876 shrext_cmds=".dll" 8877 # FIXME: Setting linknames here is a bad hack. 8878 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8879 # The linker will automatically build a .lib file if we build a DLL. 8880 old_archive_from_new_cmds='true' 8881 # FIXME: Should let the user specify the lib program. 8882 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8883 fix_srcfile_path='`cygpath -w "$srcfile"`' 8884 enable_shared_with_static_runtimes=yes 8885 ;; 8886 8887 darwin* | rhapsody*) 8888 8889 8890 archive_cmds_need_lc=no 8891 hardcode_direct=no 8892 hardcode_automatic=yes 8893 hardcode_shlibpath_var=unsupported 8894 whole_archive_flag_spec='' 8895 link_all_deplibs=yes 8896 allow_undefined_flag="$_lt_dar_allow_undefined" 8897 case $cc_basename in 8898 ifort*) _lt_dar_can_shared=yes ;; 8899 *) _lt_dar_can_shared=$GCC ;; 8900 esac 8901 if test "$_lt_dar_can_shared" = "yes"; then 8902 output_verbose_link_cmd=echo 8903 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8904 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8905 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}" 8906 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}" 8907 8908 else 8909 ld_shlibs=no 8910 fi 8911 8912 ;; 8913 8914 dgux*) 8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8916 hardcode_libdir_flag_spec='-L$libdir' 8917 hardcode_shlibpath_var=no 8918 ;; 8919 8920 freebsd1*) 8921 ld_shlibs=no 8922 ;; 8923 8924 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8925 # support. Future versions do this automatically, but an explicit c++rt0.o 8926 # does not break anything, and helps significantly (at the cost of a little 8927 # extra space). 8928 freebsd2.2*) 8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8930 hardcode_libdir_flag_spec='-R$libdir' 8931 hardcode_direct=yes 8932 hardcode_shlibpath_var=no 8933 ;; 8934 8935 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8936 freebsd2*) 8937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8938 hardcode_direct=yes 8939 hardcode_minus_L=yes 8940 hardcode_shlibpath_var=no 8941 ;; 8942 8943 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8944 freebsd* | dragonfly*) 8945 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8946 hardcode_libdir_flag_spec='-R$libdir' 8947 hardcode_direct=yes 8948 hardcode_shlibpath_var=no 8949 ;; 8950 8951 hpux9*) 8952 if test "$GCC" = yes; then 8953 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' 8954 else 8955 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' 8956 fi 8957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8958 hardcode_libdir_separator=: 8959 hardcode_direct=yes 8960 8961 # hardcode_minus_L: Not really in the search PATH, 8962 # but as the default location of the library. 8963 hardcode_minus_L=yes 8964 export_dynamic_flag_spec='${wl}-E' 8965 ;; 8966 8967 hpux10*) 8968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8970 else 8971 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8972 fi 8973 if test "$with_gnu_ld" = no; then 8974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8975 hardcode_libdir_flag_spec_ld='+b $libdir' 8976 hardcode_libdir_separator=: 8977 hardcode_direct=yes 8978 hardcode_direct_absolute=yes 8979 export_dynamic_flag_spec='${wl}-E' 8980 # hardcode_minus_L: Not really in the search PATH, 8981 # but as the default location of the library. 8982 hardcode_minus_L=yes 8983 fi 8984 ;; 8985 8986 hpux11*) 8987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8988 case $host_cpu in 8989 hppa*64*) 8990 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8991 ;; 8992 ia64*) 8993 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8994 ;; 8995 *) 8996 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8997 ;; 8998 esac 8999 else 9000 case $host_cpu in 9001 hppa*64*) 9002 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9003 ;; 9004 ia64*) 9005 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9006 ;; 9007 *) 9008 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9009 ;; 9010 esac 9011 fi 9012 if test "$with_gnu_ld" = no; then 9013 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9014 hardcode_libdir_separator=: 9015 9016 case $host_cpu in 9017 hppa*64*|ia64*) 9018 hardcode_direct=no 9019 hardcode_shlibpath_var=no 9020 ;; 9021 *) 9022 hardcode_direct=yes 9023 hardcode_direct_absolute=yes 9024 export_dynamic_flag_spec='${wl}-E' 9025 9026 # hardcode_minus_L: Not really in the search PATH, 9027 # but as the default location of the library. 9028 hardcode_minus_L=yes 9029 ;; 9030 esac 9031 fi 9032 ;; 9033 9034 irix5* | irix6* | nonstopux*) 9035 if test "$GCC" = yes; then 9036 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' 9037 # Try to use the -exported_symbol ld option, if it does not 9038 # work, assume that -exports_file does not work either and 9039 # implicitly export all symbols. 9040 save_LDFLAGS="$LDFLAGS" 9041 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044int foo(void) {} 9045_ACEOF 9046if ac_fn_c_try_link "$LINENO"; then : 9047 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' 9048 9049fi 9050rm -f core conftest.err conftest.$ac_objext \ 9051 conftest$ac_exeext conftest.$ac_ext 9052 LDFLAGS="$save_LDFLAGS" 9053 else 9054 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' 9055 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' 9056 fi 9057 archive_cmds_need_lc='no' 9058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9059 hardcode_libdir_separator=: 9060 inherit_rpath=yes 9061 link_all_deplibs=yes 9062 ;; 9063 9064 netbsd* | netbsdelf*-gnu) 9065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9067 else 9068 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9069 fi 9070 hardcode_libdir_flag_spec='-R$libdir' 9071 hardcode_direct=yes 9072 hardcode_shlibpath_var=no 9073 ;; 9074 9075 newsos6) 9076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9077 hardcode_direct=yes 9078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9079 hardcode_libdir_separator=: 9080 hardcode_shlibpath_var=no 9081 ;; 9082 9083 *nto* | *qnx*) 9084 ;; 9085 9086 openbsd*) 9087 if test -f /usr/libexec/ld.so; then 9088 hardcode_direct=yes 9089 hardcode_shlibpath_var=no 9090 hardcode_direct_absolute=yes 9091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9093 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9095 export_dynamic_flag_spec='${wl}-E' 9096 else 9097 case $host_os in 9098 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9100 hardcode_libdir_flag_spec='-R$libdir' 9101 ;; 9102 *) 9103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9104 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9105 ;; 9106 esac 9107 fi 9108 else 9109 ld_shlibs=no 9110 fi 9111 ;; 9112 9113 os2*) 9114 hardcode_libdir_flag_spec='-L$libdir' 9115 hardcode_minus_L=yes 9116 allow_undefined_flag=unsupported 9117 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' 9118 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9119 ;; 9120 9121 osf3*) 9122 if test "$GCC" = yes; then 9123 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9124 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' 9125 else 9126 allow_undefined_flag=' -expect_unresolved \*' 9127 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' 9128 fi 9129 archive_cmds_need_lc='no' 9130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9131 hardcode_libdir_separator=: 9132 ;; 9133 9134 osf4* | osf5*) # as osf3* with the addition of -msym flag 9135 if test "$GCC" = yes; then 9136 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9137 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' 9138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9139 else 9140 allow_undefined_flag=' -expect_unresolved \*' 9141 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' 9142 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~ 9143 $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' 9144 9145 # Both c and cxx compiler support -rpath directly 9146 hardcode_libdir_flag_spec='-rpath $libdir' 9147 fi 9148 archive_cmds_need_lc='no' 9149 hardcode_libdir_separator=: 9150 ;; 9151 9152 solaris*) 9153 no_undefined_flag=' -z defs' 9154 if test "$GCC" = yes; then 9155 wlarc='${wl}' 9156 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9158 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9159 else 9160 case `$CC -V 2>&1` in 9161 *"Compilers 5.0"*) 9162 wlarc='' 9163 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9165 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9166 ;; 9167 *) 9168 wlarc='${wl}' 9169 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9171 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9172 ;; 9173 esac 9174 fi 9175 hardcode_libdir_flag_spec='-R$libdir' 9176 hardcode_shlibpath_var=no 9177 case $host_os in 9178 solaris2.[0-5] | solaris2.[0-5].*) ;; 9179 *) 9180 # The compiler driver will combine and reorder linker options, 9181 # but understands `-z linker_flag'. GCC discards it without `$wl', 9182 # but is careful enough not to reorder. 9183 # Supported since Solaris 2.6 (maybe 2.5.1?) 9184 if test "$GCC" = yes; then 9185 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9186 else 9187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9188 fi 9189 ;; 9190 esac 9191 link_all_deplibs=yes 9192 ;; 9193 9194 sunos4*) 9195 if test "x$host_vendor" = xsequent; then 9196 # Use $CC to link under sequent, because it throws in some extra .o 9197 # files that make .init and .fini sections work. 9198 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9199 else 9200 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9201 fi 9202 hardcode_libdir_flag_spec='-L$libdir' 9203 hardcode_direct=yes 9204 hardcode_minus_L=yes 9205 hardcode_shlibpath_var=no 9206 ;; 9207 9208 sysv4) 9209 case $host_vendor in 9210 sni) 9211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9212 hardcode_direct=yes # is this really true??? 9213 ;; 9214 siemens) 9215 ## LD is ld it makes a PLAMLIB 9216 ## CC just makes a GrossModule. 9217 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9218 reload_cmds='$CC -r -o $output$reload_objs' 9219 hardcode_direct=no 9220 ;; 9221 motorola) 9222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9223 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9224 ;; 9225 esac 9226 runpath_var='LD_RUN_PATH' 9227 hardcode_shlibpath_var=no 9228 ;; 9229 9230 sysv4.3*) 9231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9232 hardcode_shlibpath_var=no 9233 export_dynamic_flag_spec='-Bexport' 9234 ;; 9235 9236 sysv4*MP*) 9237 if test -d /usr/nec; then 9238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9239 hardcode_shlibpath_var=no 9240 runpath_var=LD_RUN_PATH 9241 hardcode_runpath_var=yes 9242 ld_shlibs=yes 9243 fi 9244 ;; 9245 9246 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9247 no_undefined_flag='${wl}-z,text' 9248 archive_cmds_need_lc=no 9249 hardcode_shlibpath_var=no 9250 runpath_var='LD_RUN_PATH' 9251 9252 if test "$GCC" = yes; then 9253 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9254 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9255 else 9256 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9257 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9258 fi 9259 ;; 9260 9261 sysv5* | sco3.2v5* | sco5v6*) 9262 # Note: We can NOT use -z defs as we might desire, because we do not 9263 # link with -lc, and that would cause any symbols used from libc to 9264 # always be unresolved, which means just about no library would 9265 # ever link correctly. If we're not using GNU ld we use -z text 9266 # though, which does catch some bad symbols but isn't as heavy-handed 9267 # as -z defs. 9268 no_undefined_flag='${wl}-z,text' 9269 allow_undefined_flag='${wl}-z,nodefs' 9270 archive_cmds_need_lc=no 9271 hardcode_shlibpath_var=no 9272 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9273 hardcode_libdir_separator=':' 9274 link_all_deplibs=yes 9275 export_dynamic_flag_spec='${wl}-Bexport' 9276 runpath_var='LD_RUN_PATH' 9277 9278 if test "$GCC" = yes; then 9279 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9280 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9281 else 9282 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9283 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9284 fi 9285 ;; 9286 9287 uts4*) 9288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9289 hardcode_libdir_flag_spec='-L$libdir' 9290 hardcode_shlibpath_var=no 9291 ;; 9292 9293 *) 9294 ld_shlibs=no 9295 ;; 9296 esac 9297 9298 if test x$host_vendor = xsni; then 9299 case $host in 9300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9301 export_dynamic_flag_spec='${wl}-Blargedynsym' 9302 ;; 9303 esac 9304 fi 9305 fi 9306 9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9308$as_echo "$ld_shlibs" >&6; } 9309test "$ld_shlibs" = no && can_build_shared=no 9310 9311with_gnu_ld=$with_gnu_ld 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327# 9328# Do we need to explicitly link libc? 9329# 9330case "x$archive_cmds_need_lc" in 9331x|xyes) 9332 # Assume -lc should be added 9333 archive_cmds_need_lc=yes 9334 9335 if test "$enable_shared" = yes && test "$GCC" = yes; then 9336 case $archive_cmds in 9337 *'~'*) 9338 # FIXME: we may have to deal with multi-command sequences. 9339 ;; 9340 '$CC '*) 9341 # Test whether the compiler implicitly links with -lc since on some 9342 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9343 # to ld, don't add -lc before -lgcc. 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9345$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9346 $RM conftest* 9347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9348 9349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9350 (eval $ac_compile) 2>&5 9351 ac_status=$? 9352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9353 test $ac_status = 0; } 2>conftest.err; then 9354 soname=conftest 9355 lib=conftest 9356 libobjs=conftest.$ac_objext 9357 deplibs= 9358 wl=$lt_prog_compiler_wl 9359 pic_flag=$lt_prog_compiler_pic 9360 compiler_flags=-v 9361 linker_flags=-v 9362 verstring= 9363 output_objdir=. 9364 libname=conftest 9365 lt_save_allow_undefined_flag=$allow_undefined_flag 9366 allow_undefined_flag= 9367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9368 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9369 ac_status=$? 9370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9371 test $ac_status = 0; } 9372 then 9373 archive_cmds_need_lc=no 9374 else 9375 archive_cmds_need_lc=yes 9376 fi 9377 allow_undefined_flag=$lt_save_allow_undefined_flag 9378 else 9379 cat conftest.err 1>&5 9380 fi 9381 $RM conftest* 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9383$as_echo "$archive_cmds_need_lc" >&6; } 9384 ;; 9385 esac 9386 fi 9387 ;; 9388esac 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9547$as_echo_n "checking dynamic linker characteristics... " >&6; } 9548 9549if test "$GCC" = yes; then 9550 case $host_os in 9551 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9552 *) lt_awk_arg="/^libraries:/" ;; 9553 esac 9554 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9555 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9556 # if the path contains ";" then we assume it to be the separator 9557 # otherwise default to the standard path separator (i.e. ":") - it is 9558 # assumed that no part of a normal pathname contains ";" but that should 9559 # okay in the real world where ";" in dirpaths is itself problematic. 9560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9561 else 9562 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9563 fi 9564 # Ok, now we have the path, separated by spaces, we can step through it 9565 # and add multilib dir if necessary. 9566 lt_tmp_lt_search_path_spec= 9567 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9568 for lt_sys_path in $lt_search_path_spec; do 9569 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9570 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9571 else 9572 test -d "$lt_sys_path" && \ 9573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9574 fi 9575 done 9576 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9577BEGIN {RS=" "; FS="/|\n";} { 9578 lt_foo=""; 9579 lt_count=0; 9580 for (lt_i = NF; lt_i > 0; lt_i--) { 9581 if ($lt_i != "" && $lt_i != ".") { 9582 if ($lt_i == "..") { 9583 lt_count++; 9584 } else { 9585 if (lt_count == 0) { 9586 lt_foo="/" $lt_i lt_foo; 9587 } else { 9588 lt_count--; 9589 } 9590 } 9591 } 9592 } 9593 if (lt_foo != "") { lt_freq[lt_foo]++; } 9594 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9595}'` 9596 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9597else 9598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9599fi 9600library_names_spec= 9601libname_spec='lib$name' 9602soname_spec= 9603shrext_cmds=".so" 9604postinstall_cmds= 9605postuninstall_cmds= 9606finish_cmds= 9607finish_eval= 9608shlibpath_var= 9609shlibpath_overrides_runpath=unknown 9610version_type=none 9611dynamic_linker="$host_os ld.so" 9612sys_lib_dlsearch_path_spec="/lib /usr/lib" 9613need_lib_prefix=unknown 9614hardcode_into_libs=no 9615 9616# when you set need_version to no, make sure it does not cause -set_version 9617# flags to be left without arguments 9618need_version=unknown 9619 9620case $host_os in 9621aix3*) 9622 version_type=linux 9623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9624 shlibpath_var=LIBPATH 9625 9626 # AIX 3 has no versioning support, so we append a major version to the name. 9627 soname_spec='${libname}${release}${shared_ext}$major' 9628 ;; 9629 9630aix[4-9]*) 9631 version_type=linux 9632 need_lib_prefix=no 9633 need_version=no 9634 hardcode_into_libs=yes 9635 if test "$host_cpu" = ia64; then 9636 # AIX 5 supports IA64 9637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9638 shlibpath_var=LD_LIBRARY_PATH 9639 else 9640 # With GCC up to 2.95.x, collect2 would create an import file 9641 # for dependence libraries. The import file would start with 9642 # the line `#! .'. This would cause the generated library to 9643 # depend on `.', always an invalid library. This was fixed in 9644 # development snapshots of GCC prior to 3.0. 9645 case $host_os in 9646 aix4 | aix4.[01] | aix4.[01].*) 9647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9648 echo ' yes ' 9649 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9650 : 9651 else 9652 can_build_shared=no 9653 fi 9654 ;; 9655 esac 9656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9657 # soname into executable. Probably we can add versioning support to 9658 # collect2, so additional links can be useful in future. 9659 if test "$aix_use_runtimelinking" = yes; then 9660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9661 # instead of lib<name>.a to let people know that these are not 9662 # typical AIX shared libraries. 9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9664 else 9665 # We preserve .a as extension for shared libraries through AIX4.2 9666 # and later when we are not doing run time linking. 9667 library_names_spec='${libname}${release}.a $libname.a' 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 fi 9670 shlibpath_var=LIBPATH 9671 fi 9672 ;; 9673 9674amigaos*) 9675 case $host_cpu in 9676 powerpc) 9677 # Since July 2007 AmigaOS4 officially supports .so libraries. 9678 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9680 ;; 9681 m68k) 9682 library_names_spec='$libname.ixlibrary $libname.a' 9683 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9684 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' 9685 ;; 9686 esac 9687 ;; 9688 9689beos*) 9690 library_names_spec='${libname}${shared_ext}' 9691 dynamic_linker="$host_os ld.so" 9692 shlibpath_var=LIBRARY_PATH 9693 ;; 9694 9695bsdi[45]*) 9696 version_type=linux 9697 need_version=no 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9699 soname_spec='${libname}${release}${shared_ext}$major' 9700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9701 shlibpath_var=LD_LIBRARY_PATH 9702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9704 # the default ld.so.conf also contains /usr/contrib/lib and 9705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9706 # libtool to hard-code these into programs 9707 ;; 9708 9709cygwin* | mingw* | pw32* | cegcc*) 9710 version_type=windows 9711 shrext_cmds=".dll" 9712 need_version=no 9713 need_lib_prefix=no 9714 9715 case $GCC,$host_os in 9716 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9717 library_names_spec='$libname.dll.a' 9718 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9719 postinstall_cmds='base_file=`basename \${file}`~ 9720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9721 dldir=$destdir/`dirname \$dlpath`~ 9722 test -d \$dldir || mkdir -p \$dldir~ 9723 $install_prog $dir/$dlname \$dldir/$dlname~ 9724 chmod a+x \$dldir/$dlname~ 9725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9727 fi' 9728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9729 dlpath=$dir/\$dldll~ 9730 $RM \$dlpath' 9731 shlibpath_overrides_runpath=yes 9732 9733 case $host_os in 9734 cygwin*) 9735 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9738 ;; 9739 mingw* | cegcc*) 9740 # MinGW DLLs use traditional 'lib' prefix 9741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9742 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9743 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9744 # It is most probably a Windows format PATH printed by 9745 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9746 # path with ; separators, and with drive letters. We can handle the 9747 # drive letters (cygwin fileutils understands them), so leave them, 9748 # especially as we might pass files found there to a mingw objdump, 9749 # which wouldn't understand a cygwinified path. Ahh. 9750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9751 else 9752 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9753 fi 9754 ;; 9755 pw32*) 9756 # pw32 DLLs use 'pw' prefix rather than 'lib' 9757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9758 ;; 9759 esac 9760 ;; 9761 9762 *) 9763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9764 ;; 9765 esac 9766 dynamic_linker='Win32 ld.exe' 9767 # FIXME: first we should search . and the directory the executable is in 9768 shlibpath_var=PATH 9769 ;; 9770 9771darwin* | rhapsody*) 9772 dynamic_linker="$host_os dyld" 9773 version_type=darwin 9774 need_lib_prefix=no 9775 need_version=no 9776 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9777 soname_spec='${libname}${release}${major}$shared_ext' 9778 shlibpath_overrides_runpath=yes 9779 shlibpath_var=DYLD_LIBRARY_PATH 9780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9781 9782 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9784 ;; 9785 9786dgux*) 9787 version_type=linux 9788 need_lib_prefix=no 9789 need_version=no 9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9791 soname_spec='${libname}${release}${shared_ext}$major' 9792 shlibpath_var=LD_LIBRARY_PATH 9793 ;; 9794 9795freebsd1*) 9796 dynamic_linker=no 9797 ;; 9798 9799freebsd* | dragonfly*) 9800 # DragonFly does not have aout. When/if they implement a new 9801 # versioning mechanism, adjust this. 9802 if test -x /usr/bin/objformat; then 9803 objformat=`/usr/bin/objformat` 9804 else 9805 case $host_os in 9806 freebsd[123]*) objformat=aout ;; 9807 *) objformat=elf ;; 9808 esac 9809 fi 9810 version_type=freebsd-$objformat 9811 case $version_type in 9812 freebsd-elf*) 9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9814 need_version=no 9815 need_lib_prefix=no 9816 ;; 9817 freebsd-*) 9818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9819 need_version=yes 9820 ;; 9821 esac 9822 shlibpath_var=LD_LIBRARY_PATH 9823 case $host_os in 9824 freebsd2*) 9825 shlibpath_overrides_runpath=yes 9826 ;; 9827 freebsd3.[01]* | freebsdelf3.[01]*) 9828 shlibpath_overrides_runpath=yes 9829 hardcode_into_libs=yes 9830 ;; 9831 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9832 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9833 shlibpath_overrides_runpath=no 9834 hardcode_into_libs=yes 9835 ;; 9836 *) # from 4.6 on, and DragonFly 9837 shlibpath_overrides_runpath=yes 9838 hardcode_into_libs=yes 9839 ;; 9840 esac 9841 ;; 9842 9843gnu*) 9844 version_type=linux 9845 need_lib_prefix=no 9846 need_version=no 9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9848 soname_spec='${libname}${release}${shared_ext}$major' 9849 shlibpath_var=LD_LIBRARY_PATH 9850 hardcode_into_libs=yes 9851 ;; 9852 9853hpux9* | hpux10* | hpux11*) 9854 # Give a soname corresponding to the major version so that dld.sl refuses to 9855 # link against other versions. 9856 version_type=sunos 9857 need_lib_prefix=no 9858 need_version=no 9859 case $host_cpu in 9860 ia64*) 9861 shrext_cmds='.so' 9862 hardcode_into_libs=yes 9863 dynamic_linker="$host_os dld.so" 9864 shlibpath_var=LD_LIBRARY_PATH 9865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9867 soname_spec='${libname}${release}${shared_ext}$major' 9868 if test "X$HPUX_IA64_MODE" = X32; then 9869 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9870 else 9871 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9872 fi 9873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9874 ;; 9875 hppa*64*) 9876 shrext_cmds='.sl' 9877 hardcode_into_libs=yes 9878 dynamic_linker="$host_os dld.sl" 9879 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9882 soname_spec='${libname}${release}${shared_ext}$major' 9883 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9885 ;; 9886 *) 9887 shrext_cmds='.sl' 9888 dynamic_linker="$host_os dld.sl" 9889 shlibpath_var=SHLIB_PATH 9890 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9892 soname_spec='${libname}${release}${shared_ext}$major' 9893 ;; 9894 esac 9895 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9896 postinstall_cmds='chmod 555 $lib' 9897 ;; 9898 9899interix[3-9]*) 9900 version_type=linux 9901 need_lib_prefix=no 9902 need_version=no 9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9904 soname_spec='${libname}${release}${shared_ext}$major' 9905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9906 shlibpath_var=LD_LIBRARY_PATH 9907 shlibpath_overrides_runpath=no 9908 hardcode_into_libs=yes 9909 ;; 9910 9911irix5* | irix6* | nonstopux*) 9912 case $host_os in 9913 nonstopux*) version_type=nonstopux ;; 9914 *) 9915 if test "$lt_cv_prog_gnu_ld" = yes; then 9916 version_type=linux 9917 else 9918 version_type=irix 9919 fi ;; 9920 esac 9921 need_lib_prefix=no 9922 need_version=no 9923 soname_spec='${libname}${release}${shared_ext}$major' 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9925 case $host_os in 9926 irix5* | nonstopux*) 9927 libsuff= shlibsuff= 9928 ;; 9929 *) 9930 case $LD in # libtool.m4 will add one of these switches to LD 9931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9932 libsuff= shlibsuff= libmagic=32-bit;; 9933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9934 libsuff=32 shlibsuff=N32 libmagic=N32;; 9935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9936 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9937 *) libsuff= shlibsuff= libmagic=never-match;; 9938 esac 9939 ;; 9940 esac 9941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9942 shlibpath_overrides_runpath=no 9943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9945 hardcode_into_libs=yes 9946 ;; 9947 9948# No shared lib support for Linux oldld, aout, or coff. 9949linux*oldld* | linux*aout* | linux*coff*) 9950 dynamic_linker=no 9951 ;; 9952 9953# This must be Linux ELF. 9954linux* | k*bsd*-gnu) 9955 version_type=linux 9956 need_lib_prefix=no 9957 need_version=no 9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9959 soname_spec='${libname}${release}${shared_ext}$major' 9960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9961 shlibpath_var=LD_LIBRARY_PATH 9962 shlibpath_overrides_runpath=no 9963 # Some binutils ld are patched to set DT_RUNPATH 9964 save_LDFLAGS=$LDFLAGS 9965 save_libdir=$libdir 9966 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9967 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9969/* end confdefs.h. */ 9970 9971int 9972main () 9973{ 9974 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979if ac_fn_c_try_link "$LINENO"; then : 9980 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9981 shlibpath_overrides_runpath=yes 9982fi 9983fi 9984rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986 LDFLAGS=$save_LDFLAGS 9987 libdir=$save_libdir 9988 9989 # This implies no fast_install, which is unacceptable. 9990 # Some rework will be needed to allow for fast_install 9991 # before this can be enabled. 9992 hardcode_into_libs=yes 9993 9994 # Append ld.so.conf contents to the search path 9995 if test -f /etc/ld.so.conf; then 9996 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' ' '` 9997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9998 fi 9999 10000 # We used to test for /lib/ld.so.1 and disable shared libraries on 10001 # powerpc, because MkLinux only supported shared libraries with the 10002 # GNU dynamic linker. Since this was broken with cross compilers, 10003 # most powerpc-linux boxes support dynamic linking these days and 10004 # people can always --disable-shared, the test was removed, and we 10005 # assume the GNU/Linux dynamic linker is in use. 10006 dynamic_linker='GNU/Linux ld.so' 10007 ;; 10008 10009netbsdelf*-gnu) 10010 version_type=linux 10011 need_lib_prefix=no 10012 need_version=no 10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10014 soname_spec='${libname}${release}${shared_ext}$major' 10015 shlibpath_var=LD_LIBRARY_PATH 10016 shlibpath_overrides_runpath=no 10017 hardcode_into_libs=yes 10018 dynamic_linker='NetBSD ld.elf_so' 10019 ;; 10020 10021netbsd*) 10022 version_type=sunos 10023 need_lib_prefix=no 10024 need_version=no 10025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10028 dynamic_linker='NetBSD (a.out) ld.so' 10029 else 10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10031 soname_spec='${libname}${release}${shared_ext}$major' 10032 dynamic_linker='NetBSD ld.elf_so' 10033 fi 10034 shlibpath_var=LD_LIBRARY_PATH 10035 shlibpath_overrides_runpath=yes 10036 hardcode_into_libs=yes 10037 ;; 10038 10039newsos6) 10040 version_type=linux 10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 shlibpath_overrides_runpath=yes 10044 ;; 10045 10046*nto* | *qnx*) 10047 version_type=qnx 10048 need_lib_prefix=no 10049 need_version=no 10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10051 soname_spec='${libname}${release}${shared_ext}$major' 10052 shlibpath_var=LD_LIBRARY_PATH 10053 shlibpath_overrides_runpath=no 10054 hardcode_into_libs=yes 10055 dynamic_linker='ldqnx.so' 10056 ;; 10057 10058openbsd*) 10059 version_type=sunos 10060 sys_lib_dlsearch_path_spec="/usr/lib" 10061 need_lib_prefix=no 10062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10063 case $host_os in 10064 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10065 *) need_version=no ;; 10066 esac 10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10069 shlibpath_var=LD_LIBRARY_PATH 10070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10071 case $host_os in 10072 openbsd2.[89] | openbsd2.[89].*) 10073 shlibpath_overrides_runpath=no 10074 ;; 10075 *) 10076 shlibpath_overrides_runpath=yes 10077 ;; 10078 esac 10079 else 10080 shlibpath_overrides_runpath=yes 10081 fi 10082 ;; 10083 10084os2*) 10085 libname_spec='$name' 10086 shrext_cmds=".dll" 10087 need_lib_prefix=no 10088 library_names_spec='$libname${shared_ext} $libname.a' 10089 dynamic_linker='OS/2 ld.exe' 10090 shlibpath_var=LIBPATH 10091 ;; 10092 10093osf3* | osf4* | osf5*) 10094 version_type=osf 10095 need_lib_prefix=no 10096 need_version=no 10097 soname_spec='${libname}${release}${shared_ext}$major' 10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10099 shlibpath_var=LD_LIBRARY_PATH 10100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10102 ;; 10103 10104rdos*) 10105 dynamic_linker=no 10106 ;; 10107 10108solaris*) 10109 version_type=linux 10110 need_lib_prefix=no 10111 need_version=no 10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10113 soname_spec='${libname}${release}${shared_ext}$major' 10114 shlibpath_var=LD_LIBRARY_PATH 10115 shlibpath_overrides_runpath=yes 10116 hardcode_into_libs=yes 10117 # ldd complains unless libraries are executable 10118 postinstall_cmds='chmod +x $lib' 10119 ;; 10120 10121sunos4*) 10122 version_type=sunos 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10125 shlibpath_var=LD_LIBRARY_PATH 10126 shlibpath_overrides_runpath=yes 10127 if test "$with_gnu_ld" = yes; then 10128 need_lib_prefix=no 10129 fi 10130 need_version=yes 10131 ;; 10132 10133sysv4 | sysv4.3*) 10134 version_type=linux 10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10136 soname_spec='${libname}${release}${shared_ext}$major' 10137 shlibpath_var=LD_LIBRARY_PATH 10138 case $host_vendor in 10139 sni) 10140 shlibpath_overrides_runpath=no 10141 need_lib_prefix=no 10142 runpath_var=LD_RUN_PATH 10143 ;; 10144 siemens) 10145 need_lib_prefix=no 10146 ;; 10147 motorola) 10148 need_lib_prefix=no 10149 need_version=no 10150 shlibpath_overrides_runpath=no 10151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10152 ;; 10153 esac 10154 ;; 10155 10156sysv4*MP*) 10157 if test -d /usr/nec ;then 10158 version_type=linux 10159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10160 soname_spec='$libname${shared_ext}.$major' 10161 shlibpath_var=LD_LIBRARY_PATH 10162 fi 10163 ;; 10164 10165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10166 version_type=freebsd-elf 10167 need_lib_prefix=no 10168 need_version=no 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 shlibpath_var=LD_LIBRARY_PATH 10172 shlibpath_overrides_runpath=yes 10173 hardcode_into_libs=yes 10174 if test "$with_gnu_ld" = yes; then 10175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10176 else 10177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10178 case $host_os in 10179 sco3.2v5*) 10180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10181 ;; 10182 esac 10183 fi 10184 sys_lib_dlsearch_path_spec='/usr/lib' 10185 ;; 10186 10187tpf*) 10188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10189 version_type=linux 10190 need_lib_prefix=no 10191 need_version=no 10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10193 shlibpath_var=LD_LIBRARY_PATH 10194 shlibpath_overrides_runpath=no 10195 hardcode_into_libs=yes 10196 ;; 10197 10198uts4*) 10199 version_type=linux 10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10201 soname_spec='${libname}${release}${shared_ext}$major' 10202 shlibpath_var=LD_LIBRARY_PATH 10203 ;; 10204 10205*) 10206 dynamic_linker=no 10207 ;; 10208esac 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10210$as_echo "$dynamic_linker" >&6; } 10211test "$dynamic_linker" = no && can_build_shared=no 10212 10213variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10214if test "$GCC" = yes; then 10215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10216fi 10217 10218if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10219 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10220fi 10221if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10222 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10223fi 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10312$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10313hardcode_action= 10314if test -n "$hardcode_libdir_flag_spec" || 10315 test -n "$runpath_var" || 10316 test "X$hardcode_automatic" = "Xyes" ; then 10317 10318 # We can hardcode non-existent directories. 10319 if test "$hardcode_direct" != no && 10320 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10321 # have to relink, otherwise we might link with an installed library 10322 # when we should be linking with a yet-to-be-installed one 10323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10324 test "$hardcode_minus_L" != no; then 10325 # Linking always hardcodes the temporary library directory. 10326 hardcode_action=relink 10327 else 10328 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10329 hardcode_action=immediate 10330 fi 10331else 10332 # We cannot hardcode anything, or else we can only hardcode existing 10333 # directories. 10334 hardcode_action=unsupported 10335fi 10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10337$as_echo "$hardcode_action" >&6; } 10338 10339if test "$hardcode_action" = relink || 10340 test "$inherit_rpath" = yes; then 10341 # Fast installation is not supported 10342 enable_fast_install=no 10343elif test "$shlibpath_overrides_runpath" = yes || 10344 test "$enable_shared" = no; then 10345 # Fast installation is not necessary 10346 enable_fast_install=needless 10347fi 10348 10349 10350 10351 10352 10353 10354 if test "x$enable_dlopen" != xyes; then 10355 enable_dlopen=unknown 10356 enable_dlopen_self=unknown 10357 enable_dlopen_self_static=unknown 10358else 10359 lt_cv_dlopen=no 10360 lt_cv_dlopen_libs= 10361 10362 case $host_os in 10363 beos*) 10364 lt_cv_dlopen="load_add_on" 10365 lt_cv_dlopen_libs= 10366 lt_cv_dlopen_self=yes 10367 ;; 10368 10369 mingw* | pw32* | cegcc*) 10370 lt_cv_dlopen="LoadLibrary" 10371 lt_cv_dlopen_libs= 10372 ;; 10373 10374 cygwin*) 10375 lt_cv_dlopen="dlopen" 10376 lt_cv_dlopen_libs= 10377 ;; 10378 10379 darwin*) 10380 # if libdl is installed we need to link against it 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10382$as_echo_n "checking for dlopen in -ldl... " >&6; } 10383if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 ac_check_lib_save_LIBS=$LIBS 10387LIBS="-ldl $LIBS" 10388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390 10391/* Override any GCC internal prototype to avoid an error. 10392 Use char because int might match the return type of a GCC 10393 builtin and then its argument prototype would still apply. */ 10394#ifdef __cplusplus 10395extern "C" 10396#endif 10397char dlopen (); 10398int 10399main () 10400{ 10401return dlopen (); 10402 ; 10403 return 0; 10404} 10405_ACEOF 10406if ac_fn_c_try_link "$LINENO"; then : 10407 ac_cv_lib_dl_dlopen=yes 10408else 10409 ac_cv_lib_dl_dlopen=no 10410fi 10411rm -f core conftest.err conftest.$ac_objext \ 10412 conftest$ac_exeext conftest.$ac_ext 10413LIBS=$ac_check_lib_save_LIBS 10414fi 10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10416$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10417if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10419else 10420 10421 lt_cv_dlopen="dyld" 10422 lt_cv_dlopen_libs= 10423 lt_cv_dlopen_self=yes 10424 10425fi 10426 10427 ;; 10428 10429 *) 10430 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10431if test "x$ac_cv_func_shl_load" = x""yes; then : 10432 lt_cv_dlopen="shl_load" 10433else 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10435$as_echo_n "checking for shl_load in -ldld... " >&6; } 10436if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 ac_check_lib_save_LIBS=$LIBS 10440LIBS="-ldld $LIBS" 10441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10442/* end confdefs.h. */ 10443 10444/* Override any GCC internal prototype to avoid an error. 10445 Use char because int might match the return type of a GCC 10446 builtin and then its argument prototype would still apply. */ 10447#ifdef __cplusplus 10448extern "C" 10449#endif 10450char shl_load (); 10451int 10452main () 10453{ 10454return shl_load (); 10455 ; 10456 return 0; 10457} 10458_ACEOF 10459if ac_fn_c_try_link "$LINENO"; then : 10460 ac_cv_lib_dld_shl_load=yes 10461else 10462 ac_cv_lib_dld_shl_load=no 10463fi 10464rm -f core conftest.err conftest.$ac_objext \ 10465 conftest$ac_exeext conftest.$ac_ext 10466LIBS=$ac_check_lib_save_LIBS 10467fi 10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10469$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10470if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10471 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10472else 10473 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10474if test "x$ac_cv_func_dlopen" = x""yes; then : 10475 lt_cv_dlopen="dlopen" 10476else 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10478$as_echo_n "checking for dlopen in -ldl... " >&6; } 10479if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10480 $as_echo_n "(cached) " >&6 10481else 10482 ac_check_lib_save_LIBS=$LIBS 10483LIBS="-ldl $LIBS" 10484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485/* end confdefs.h. */ 10486 10487/* Override any GCC internal prototype to avoid an error. 10488 Use char because int might match the return type of a GCC 10489 builtin and then its argument prototype would still apply. */ 10490#ifdef __cplusplus 10491extern "C" 10492#endif 10493char dlopen (); 10494int 10495main () 10496{ 10497return dlopen (); 10498 ; 10499 return 0; 10500} 10501_ACEOF 10502if ac_fn_c_try_link "$LINENO"; then : 10503 ac_cv_lib_dl_dlopen=yes 10504else 10505 ac_cv_lib_dl_dlopen=no 10506fi 10507rm -f core conftest.err conftest.$ac_objext \ 10508 conftest$ac_exeext conftest.$ac_ext 10509LIBS=$ac_check_lib_save_LIBS 10510fi 10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10512$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10513if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10515else 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10517$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10518if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10519 $as_echo_n "(cached) " >&6 10520else 10521 ac_check_lib_save_LIBS=$LIBS 10522LIBS="-lsvld $LIBS" 10523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525 10526/* Override any GCC internal prototype to avoid an error. 10527 Use char because int might match the return type of a GCC 10528 builtin and then its argument prototype would still apply. */ 10529#ifdef __cplusplus 10530extern "C" 10531#endif 10532char dlopen (); 10533int 10534main () 10535{ 10536return dlopen (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541if ac_fn_c_try_link "$LINENO"; then : 10542 ac_cv_lib_svld_dlopen=yes 10543else 10544 ac_cv_lib_svld_dlopen=no 10545fi 10546rm -f core conftest.err conftest.$ac_objext \ 10547 conftest$ac_exeext conftest.$ac_ext 10548LIBS=$ac_check_lib_save_LIBS 10549fi 10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10551$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10552if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10554else 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10556$as_echo_n "checking for dld_link in -ldld... " >&6; } 10557if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10558 $as_echo_n "(cached) " >&6 10559else 10560 ac_check_lib_save_LIBS=$LIBS 10561LIBS="-ldld $LIBS" 10562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10563/* end confdefs.h. */ 10564 10565/* Override any GCC internal prototype to avoid an error. 10566 Use char because int might match the return type of a GCC 10567 builtin and then its argument prototype would still apply. */ 10568#ifdef __cplusplus 10569extern "C" 10570#endif 10571char dld_link (); 10572int 10573main () 10574{ 10575return dld_link (); 10576 ; 10577 return 0; 10578} 10579_ACEOF 10580if ac_fn_c_try_link "$LINENO"; then : 10581 ac_cv_lib_dld_dld_link=yes 10582else 10583 ac_cv_lib_dld_dld_link=no 10584fi 10585rm -f core conftest.err conftest.$ac_objext \ 10586 conftest$ac_exeext conftest.$ac_ext 10587LIBS=$ac_check_lib_save_LIBS 10588fi 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10590$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10591if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10592 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10593fi 10594 10595 10596fi 10597 10598 10599fi 10600 10601 10602fi 10603 10604 10605fi 10606 10607 10608fi 10609 10610 ;; 10611 esac 10612 10613 if test "x$lt_cv_dlopen" != xno; then 10614 enable_dlopen=yes 10615 else 10616 enable_dlopen=no 10617 fi 10618 10619 case $lt_cv_dlopen in 10620 dlopen) 10621 save_CPPFLAGS="$CPPFLAGS" 10622 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10623 10624 save_LDFLAGS="$LDFLAGS" 10625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10626 10627 save_LIBS="$LIBS" 10628 LIBS="$lt_cv_dlopen_libs $LIBS" 10629 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10631$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10632if test "${lt_cv_dlopen_self+set}" = set; then : 10633 $as_echo_n "(cached) " >&6 10634else 10635 if test "$cross_compiling" = yes; then : 10636 lt_cv_dlopen_self=cross 10637else 10638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10639 lt_status=$lt_dlunknown 10640 cat > conftest.$ac_ext <<_LT_EOF 10641#line 10641 "configure" 10642#include "confdefs.h" 10643 10644#if HAVE_DLFCN_H 10645#include <dlfcn.h> 10646#endif 10647 10648#include <stdio.h> 10649 10650#ifdef RTLD_GLOBAL 10651# define LT_DLGLOBAL RTLD_GLOBAL 10652#else 10653# ifdef DL_GLOBAL 10654# define LT_DLGLOBAL DL_GLOBAL 10655# else 10656# define LT_DLGLOBAL 0 10657# endif 10658#endif 10659 10660/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10661 find out it does not work in some platform. */ 10662#ifndef LT_DLLAZY_OR_NOW 10663# ifdef RTLD_LAZY 10664# define LT_DLLAZY_OR_NOW RTLD_LAZY 10665# else 10666# ifdef DL_LAZY 10667# define LT_DLLAZY_OR_NOW DL_LAZY 10668# else 10669# ifdef RTLD_NOW 10670# define LT_DLLAZY_OR_NOW RTLD_NOW 10671# else 10672# ifdef DL_NOW 10673# define LT_DLLAZY_OR_NOW DL_NOW 10674# else 10675# define LT_DLLAZY_OR_NOW 0 10676# endif 10677# endif 10678# endif 10679# endif 10680#endif 10681 10682void fnord() { int i=42;} 10683int main () 10684{ 10685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10686 int status = $lt_dlunknown; 10687 10688 if (self) 10689 { 10690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10691 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10692 /* dlclose (self); */ 10693 } 10694 else 10695 puts (dlerror ()); 10696 10697 return status; 10698} 10699_LT_EOF 10700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10701 (eval $ac_link) 2>&5 10702 ac_status=$? 10703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10704 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10705 (./conftest; exit; ) >&5 2>/dev/null 10706 lt_status=$? 10707 case x$lt_status in 10708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10711 esac 10712 else : 10713 # compilation failed 10714 lt_cv_dlopen_self=no 10715 fi 10716fi 10717rm -fr conftest* 10718 10719 10720fi 10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10722$as_echo "$lt_cv_dlopen_self" >&6; } 10723 10724 if test "x$lt_cv_dlopen_self" = xyes; then 10725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10727$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10728if test "${lt_cv_dlopen_self_static+set}" = set; then : 10729 $as_echo_n "(cached) " >&6 10730else 10731 if test "$cross_compiling" = yes; then : 10732 lt_cv_dlopen_self_static=cross 10733else 10734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10735 lt_status=$lt_dlunknown 10736 cat > conftest.$ac_ext <<_LT_EOF 10737#line 10737 "configure" 10738#include "confdefs.h" 10739 10740#if HAVE_DLFCN_H 10741#include <dlfcn.h> 10742#endif 10743 10744#include <stdio.h> 10745 10746#ifdef RTLD_GLOBAL 10747# define LT_DLGLOBAL RTLD_GLOBAL 10748#else 10749# ifdef DL_GLOBAL 10750# define LT_DLGLOBAL DL_GLOBAL 10751# else 10752# define LT_DLGLOBAL 0 10753# endif 10754#endif 10755 10756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10757 find out it does not work in some platform. */ 10758#ifndef LT_DLLAZY_OR_NOW 10759# ifdef RTLD_LAZY 10760# define LT_DLLAZY_OR_NOW RTLD_LAZY 10761# else 10762# ifdef DL_LAZY 10763# define LT_DLLAZY_OR_NOW DL_LAZY 10764# else 10765# ifdef RTLD_NOW 10766# define LT_DLLAZY_OR_NOW RTLD_NOW 10767# else 10768# ifdef DL_NOW 10769# define LT_DLLAZY_OR_NOW DL_NOW 10770# else 10771# define LT_DLLAZY_OR_NOW 0 10772# endif 10773# endif 10774# endif 10775# endif 10776#endif 10777 10778void fnord() { int i=42;} 10779int main () 10780{ 10781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10782 int status = $lt_dlunknown; 10783 10784 if (self) 10785 { 10786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10788 /* dlclose (self); */ 10789 } 10790 else 10791 puts (dlerror ()); 10792 10793 return status; 10794} 10795_LT_EOF 10796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10797 (eval $ac_link) 2>&5 10798 ac_status=$? 10799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10801 (./conftest; exit; ) >&5 2>/dev/null 10802 lt_status=$? 10803 case x$lt_status in 10804 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10805 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10806 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10807 esac 10808 else : 10809 # compilation failed 10810 lt_cv_dlopen_self_static=no 10811 fi 10812fi 10813rm -fr conftest* 10814 10815 10816fi 10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10818$as_echo "$lt_cv_dlopen_self_static" >&6; } 10819 fi 10820 10821 CPPFLAGS="$save_CPPFLAGS" 10822 LDFLAGS="$save_LDFLAGS" 10823 LIBS="$save_LIBS" 10824 ;; 10825 esac 10826 10827 case $lt_cv_dlopen_self in 10828 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10829 *) enable_dlopen_self=unknown ;; 10830 esac 10831 10832 case $lt_cv_dlopen_self_static in 10833 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10834 *) enable_dlopen_self_static=unknown ;; 10835 esac 10836fi 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854striplib= 10855old_striplib= 10856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10857$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10858if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10860 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10862$as_echo "yes" >&6; } 10863else 10864# FIXME - insert some real tests, host_os isn't really good enough 10865 case $host_os in 10866 darwin*) 10867 if test -n "$STRIP" ; then 10868 striplib="$STRIP -x" 10869 old_striplib="$STRIP -S" 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10871$as_echo "yes" >&6; } 10872 else 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10874$as_echo "no" >&6; } 10875 fi 10876 ;; 10877 *) 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10879$as_echo "no" >&6; } 10880 ;; 10881 esac 10882fi 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 # Report which library types will actually be built 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10897$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10899$as_echo "$can_build_shared" >&6; } 10900 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10902$as_echo_n "checking whether to build shared libraries... " >&6; } 10903 test "$can_build_shared" = "no" && enable_shared=no 10904 10905 # On AIX, shared libraries and static libraries use the same namespace, and 10906 # are all built from PIC. 10907 case $host_os in 10908 aix3*) 10909 test "$enable_shared" = yes && enable_static=no 10910 if test -n "$RANLIB"; then 10911 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10912 postinstall_cmds='$RANLIB $lib' 10913 fi 10914 ;; 10915 10916 aix[4-9]*) 10917 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10918 test "$enable_shared" = yes && enable_static=no 10919 fi 10920 ;; 10921 esac 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10923$as_echo "$enable_shared" >&6; } 10924 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10926$as_echo_n "checking whether to build static libraries... " >&6; } 10927 # Make sure either enable_shared or enable_static is yes. 10928 test "$enable_shared" = yes || enable_static=yes 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10930$as_echo "$enable_static" >&6; } 10931 10932 10933 10934 10935fi 10936ac_ext=c 10937ac_cpp='$CPP $CPPFLAGS' 10938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10940ac_compiler_gnu=$ac_cv_c_compiler_gnu 10941 10942CC="$lt_save_CC" 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 ac_config_commands="$ac_config_commands libtool" 10957 10958 10959 10960 10961# Only expand once: 10962 10963 10964ac_ext=c 10965ac_cpp='$CPP $CPPFLAGS' 10966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10968ac_compiler_gnu=$ac_cv_c_compiler_gnu 10969if test -n "$ac_tool_prefix"; then 10970 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10971set dummy ${ac_tool_prefix}gcc; ac_word=$2 10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10973$as_echo_n "checking for $ac_word... " >&6; } 10974if test "${ac_cv_prog_CC+set}" = set; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 if test -n "$CC"; then 10978 ac_cv_prog_CC="$CC" # Let the user override the test. 10979else 10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10981for as_dir in $PATH 10982do 10983 IFS=$as_save_IFS 10984 test -z "$as_dir" && as_dir=. 10985 for ac_exec_ext in '' $ac_executable_extensions; do 10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10987 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10989 break 2 10990 fi 10991done 10992 done 10993IFS=$as_save_IFS 10994 10995fi 10996fi 10997CC=$ac_cv_prog_CC 10998if test -n "$CC"; then 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11000$as_echo "$CC" >&6; } 11001else 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11003$as_echo "no" >&6; } 11004fi 11005 11006 11007fi 11008if test -z "$ac_cv_prog_CC"; then 11009 ac_ct_CC=$CC 11010 # Extract the first word of "gcc", so it can be a program name with args. 11011set dummy gcc; ac_word=$2 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11013$as_echo_n "checking for $ac_word... " >&6; } 11014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 if test -n "$ac_ct_CC"; then 11018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11019else 11020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11021for as_dir in $PATH 11022do 11023 IFS=$as_save_IFS 11024 test -z "$as_dir" && as_dir=. 11025 for ac_exec_ext in '' $ac_executable_extensions; do 11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11027 ac_cv_prog_ac_ct_CC="gcc" 11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11029 break 2 11030 fi 11031done 11032 done 11033IFS=$as_save_IFS 11034 11035fi 11036fi 11037ac_ct_CC=$ac_cv_prog_ac_ct_CC 11038if test -n "$ac_ct_CC"; then 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11040$as_echo "$ac_ct_CC" >&6; } 11041else 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11043$as_echo "no" >&6; } 11044fi 11045 11046 if test "x$ac_ct_CC" = x; then 11047 CC="" 11048 else 11049 case $cross_compiling:$ac_tool_warned in 11050yes:) 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11053ac_tool_warned=yes ;; 11054esac 11055 CC=$ac_ct_CC 11056 fi 11057else 11058 CC="$ac_cv_prog_CC" 11059fi 11060 11061if test -z "$CC"; then 11062 if test -n "$ac_tool_prefix"; then 11063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11064set dummy ${ac_tool_prefix}cc; ac_word=$2 11065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11066$as_echo_n "checking for $ac_word... " >&6; } 11067if test "${ac_cv_prog_CC+set}" = set; then : 11068 $as_echo_n "(cached) " >&6 11069else 11070 if test -n "$CC"; then 11071 ac_cv_prog_CC="$CC" # Let the user override the test. 11072else 11073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11074for as_dir in $PATH 11075do 11076 IFS=$as_save_IFS 11077 test -z "$as_dir" && as_dir=. 11078 for ac_exec_ext in '' $ac_executable_extensions; do 11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11080 ac_cv_prog_CC="${ac_tool_prefix}cc" 11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11082 break 2 11083 fi 11084done 11085 done 11086IFS=$as_save_IFS 11087 11088fi 11089fi 11090CC=$ac_cv_prog_CC 11091if test -n "$CC"; then 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11093$as_echo "$CC" >&6; } 11094else 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11096$as_echo "no" >&6; } 11097fi 11098 11099 11100 fi 11101fi 11102if test -z "$CC"; then 11103 # Extract the first word of "cc", so it can be a program name with args. 11104set dummy cc; ac_word=$2 11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11106$as_echo_n "checking for $ac_word... " >&6; } 11107if test "${ac_cv_prog_CC+set}" = set; then : 11108 $as_echo_n "(cached) " >&6 11109else 11110 if test -n "$CC"; then 11111 ac_cv_prog_CC="$CC" # Let the user override the test. 11112else 11113 ac_prog_rejected=no 11114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11115for as_dir in $PATH 11116do 11117 IFS=$as_save_IFS 11118 test -z "$as_dir" && as_dir=. 11119 for ac_exec_ext in '' $ac_executable_extensions; do 11120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11122 ac_prog_rejected=yes 11123 continue 11124 fi 11125 ac_cv_prog_CC="cc" 11126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11127 break 2 11128 fi 11129done 11130 done 11131IFS=$as_save_IFS 11132 11133if test $ac_prog_rejected = yes; then 11134 # We found a bogon in the path, so make sure we never use it. 11135 set dummy $ac_cv_prog_CC 11136 shift 11137 if test $# != 0; then 11138 # We chose a different compiler from the bogus one. 11139 # However, it has the same basename, so the bogon will be chosen 11140 # first if we set CC to just the basename; use the full file name. 11141 shift 11142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11143 fi 11144fi 11145fi 11146fi 11147CC=$ac_cv_prog_CC 11148if test -n "$CC"; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11150$as_echo "$CC" >&6; } 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154fi 11155 11156 11157fi 11158if test -z "$CC"; then 11159 if test -n "$ac_tool_prefix"; then 11160 for ac_prog in cl.exe 11161 do 11162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11163set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11165$as_echo_n "checking for $ac_word... " >&6; } 11166if test "${ac_cv_prog_CC+set}" = set; then : 11167 $as_echo_n "(cached) " >&6 11168else 11169 if test -n "$CC"; then 11170 ac_cv_prog_CC="$CC" # Let the user override the test. 11171else 11172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11173for as_dir in $PATH 11174do 11175 IFS=$as_save_IFS 11176 test -z "$as_dir" && as_dir=. 11177 for ac_exec_ext in '' $ac_executable_extensions; do 11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11181 break 2 11182 fi 11183done 11184 done 11185IFS=$as_save_IFS 11186 11187fi 11188fi 11189CC=$ac_cv_prog_CC 11190if test -n "$CC"; then 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11192$as_echo "$CC" >&6; } 11193else 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11195$as_echo "no" >&6; } 11196fi 11197 11198 11199 test -n "$CC" && break 11200 done 11201fi 11202if test -z "$CC"; then 11203 ac_ct_CC=$CC 11204 for ac_prog in cl.exe 11205do 11206 # Extract the first word of "$ac_prog", so it can be a program name with args. 11207set dummy $ac_prog; ac_word=$2 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11209$as_echo_n "checking for $ac_word... " >&6; } 11210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11211 $as_echo_n "(cached) " >&6 11212else 11213 if test -n "$ac_ct_CC"; then 11214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11215else 11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11217for as_dir in $PATH 11218do 11219 IFS=$as_save_IFS 11220 test -z "$as_dir" && as_dir=. 11221 for ac_exec_ext in '' $ac_executable_extensions; do 11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11223 ac_cv_prog_ac_ct_CC="$ac_prog" 11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11225 break 2 11226 fi 11227done 11228 done 11229IFS=$as_save_IFS 11230 11231fi 11232fi 11233ac_ct_CC=$ac_cv_prog_ac_ct_CC 11234if test -n "$ac_ct_CC"; then 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11236$as_echo "$ac_ct_CC" >&6; } 11237else 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11239$as_echo "no" >&6; } 11240fi 11241 11242 11243 test -n "$ac_ct_CC" && break 11244done 11245 11246 if test "x$ac_ct_CC" = x; then 11247 CC="" 11248 else 11249 case $cross_compiling:$ac_tool_warned in 11250yes:) 11251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11253ac_tool_warned=yes ;; 11254esac 11255 CC=$ac_ct_CC 11256 fi 11257fi 11258 11259fi 11260 11261 11262test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11264as_fn_error "no acceptable C compiler found in \$PATH 11265See \`config.log' for more details." "$LINENO" 5; } 11266 11267# Provide some information about the compiler. 11268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11269set X $ac_compile 11270ac_compiler=$2 11271for ac_option in --version -v -V -qversion; do 11272 { { ac_try="$ac_compiler $ac_option >&5" 11273case "(($ac_try" in 11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11275 *) ac_try_echo=$ac_try;; 11276esac 11277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11278$as_echo "$ac_try_echo"; } >&5 11279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11280 ac_status=$? 11281 if test -s conftest.err; then 11282 sed '10a\ 11283... rest of stderr output deleted ... 11284 10q' conftest.err >conftest.er1 11285 cat conftest.er1 >&5 11286 rm -f conftest.er1 conftest.err 11287 fi 11288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11289 test $ac_status = 0; } 11290done 11291 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11293$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11294if test "${ac_cv_c_compiler_gnu+set}" = set; then : 11295 $as_echo_n "(cached) " >&6 11296else 11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11298/* end confdefs.h. */ 11299 11300int 11301main () 11302{ 11303#ifndef __GNUC__ 11304 choke me 11305#endif 11306 11307 ; 11308 return 0; 11309} 11310_ACEOF 11311if ac_fn_c_try_compile "$LINENO"; then : 11312 ac_compiler_gnu=yes 11313else 11314 ac_compiler_gnu=no 11315fi 11316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11317ac_cv_c_compiler_gnu=$ac_compiler_gnu 11318 11319fi 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11321$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11322if test $ac_compiler_gnu = yes; then 11323 GCC=yes 11324else 11325 GCC= 11326fi 11327ac_test_CFLAGS=${CFLAGS+set} 11328ac_save_CFLAGS=$CFLAGS 11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11330$as_echo_n "checking whether $CC accepts -g... " >&6; } 11331if test "${ac_cv_prog_cc_g+set}" = set; then : 11332 $as_echo_n "(cached) " >&6 11333else 11334 ac_save_c_werror_flag=$ac_c_werror_flag 11335 ac_c_werror_flag=yes 11336 ac_cv_prog_cc_g=no 11337 CFLAGS="-g" 11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11339/* end confdefs.h. */ 11340 11341int 11342main () 11343{ 11344 11345 ; 11346 return 0; 11347} 11348_ACEOF 11349if ac_fn_c_try_compile "$LINENO"; then : 11350 ac_cv_prog_cc_g=yes 11351else 11352 CFLAGS="" 11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355 11356int 11357main () 11358{ 11359 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364if ac_fn_c_try_compile "$LINENO"; then : 11365 11366else 11367 ac_c_werror_flag=$ac_save_c_werror_flag 11368 CFLAGS="-g" 11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11370/* end confdefs.h. */ 11371 11372int 11373main () 11374{ 11375 11376 ; 11377 return 0; 11378} 11379_ACEOF 11380if ac_fn_c_try_compile "$LINENO"; then : 11381 ac_cv_prog_cc_g=yes 11382fi 11383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11384fi 11385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11386fi 11387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11388 ac_c_werror_flag=$ac_save_c_werror_flag 11389fi 11390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11391$as_echo "$ac_cv_prog_cc_g" >&6; } 11392if test "$ac_test_CFLAGS" = set; then 11393 CFLAGS=$ac_save_CFLAGS 11394elif test $ac_cv_prog_cc_g = yes; then 11395 if test "$GCC" = yes; then 11396 CFLAGS="-g -O2" 11397 else 11398 CFLAGS="-g" 11399 fi 11400else 11401 if test "$GCC" = yes; then 11402 CFLAGS="-O2" 11403 else 11404 CFLAGS= 11405 fi 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11408$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11409if test "${ac_cv_prog_cc_c89+set}" = set; then : 11410 $as_echo_n "(cached) " >&6 11411else 11412 ac_cv_prog_cc_c89=no 11413ac_save_CC=$CC 11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415/* end confdefs.h. */ 11416#include <stdarg.h> 11417#include <stdio.h> 11418#include <sys/types.h> 11419#include <sys/stat.h> 11420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11421struct buf { int x; }; 11422FILE * (*rcsopen) (struct buf *, struct stat *, int); 11423static char *e (p, i) 11424 char **p; 11425 int i; 11426{ 11427 return p[i]; 11428} 11429static char *f (char * (*g) (char **, int), char **p, ...) 11430{ 11431 char *s; 11432 va_list v; 11433 va_start (v,p); 11434 s = g (p, va_arg (v,int)); 11435 va_end (v); 11436 return s; 11437} 11438 11439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11440 function prototypes and stuff, but not '\xHH' hex character constants. 11441 These don't provoke an error unfortunately, instead are silently treated 11442 as 'x'. The following induces an error, until -std is added to get 11443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11444 array size at least. It's necessary to write '\x00'==0 to get something 11445 that's true only with -std. */ 11446int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11447 11448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11449 inside strings and character constants. */ 11450#define FOO(x) 'x' 11451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11452 11453int test (int i, double x); 11454struct s1 {int (*f) (int a);}; 11455struct s2 {int (*f) (double a);}; 11456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11457int argc; 11458char **argv; 11459int 11460main () 11461{ 11462return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11463 ; 11464 return 0; 11465} 11466_ACEOF 11467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11469do 11470 CC="$ac_save_CC $ac_arg" 11471 if ac_fn_c_try_compile "$LINENO"; then : 11472 ac_cv_prog_cc_c89=$ac_arg 11473fi 11474rm -f core conftest.err conftest.$ac_objext 11475 test "x$ac_cv_prog_cc_c89" != "xno" && break 11476done 11477rm -f conftest.$ac_ext 11478CC=$ac_save_CC 11479 11480fi 11481# AC_CACHE_VAL 11482case "x$ac_cv_prog_cc_c89" in 11483 x) 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11485$as_echo "none needed" >&6; } ;; 11486 xno) 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11488$as_echo "unsupported" >&6; } ;; 11489 *) 11490 CC="$CC $ac_cv_prog_cc_c89" 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11492$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11493esac 11494if test "x$ac_cv_prog_cc_c89" != xno; then : 11495 11496fi 11497 11498ac_ext=c 11499ac_cpp='$CPP $CPPFLAGS' 11500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11502ac_compiler_gnu=$ac_cv_c_compiler_gnu 11503 11504 11505 11506 11507# Options 11508 11509# Check whether --with-xorg-module-dir was given. 11510if test "${with_xorg_module_dir+set}" = set; then : 11511 withval=$with_xorg_module_dir; moduledir="$withval" 11512else 11513 moduledir="$libdir/xorg/modules" 11514fi 11515 11516 11517 11518# Check whether --with-xserver-source was given. 11519if test "${with_xserver_source+set}" = set; then : 11520 withval=$with_xserver_source; XSERVER_SOURCE="$withval" 11521else 11522 XSERVER_SOURCE="" 11523fi 11524 11525 11526# Checks for extensions 11527 11528 SAVE_CFLAGS="$CFLAGS" 11529 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532 11533#include "xorg-server.h" 11534#if !defined RANDR 11535#error RANDR not defined 11536#endif 11537 11538int 11539main () 11540{ 11541 11542 ; 11543 return 0; 11544} 11545_ACEOF 11546if ac_fn_c_try_compile "$LINENO"; then : 11547 _EXT_CHECK=yes 11548else 11549 _EXT_CHECK=no 11550fi 11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11552 CFLAGS="$SAVE_CFLAGS" 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 11554$as_echo_n "checking if RANDR is defined... " >&6; } 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11556$as_echo "$_EXT_CHECK" >&6; } 11557 if test "$_EXT_CHECK" != no; then 11558 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11559 fi 11560 11561 11562 SAVE_CFLAGS="$CFLAGS" 11563 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11565/* end confdefs.h. */ 11566 11567#include "xorg-server.h" 11568#if !defined RENDER 11569#error RENDER not defined 11570#endif 11571 11572int 11573main () 11574{ 11575 11576 ; 11577 return 0; 11578} 11579_ACEOF 11580if ac_fn_c_try_compile "$LINENO"; then : 11581 _EXT_CHECK=yes 11582else 11583 _EXT_CHECK=no 11584fi 11585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11586 CFLAGS="$SAVE_CFLAGS" 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 11588$as_echo_n "checking if RENDER is defined... " >&6; } 11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11590$as_echo "$_EXT_CHECK" >&6; } 11591 if test "$_EXT_CHECK" != no; then 11592 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 11593 fi 11594 11595 11596 SAVE_CFLAGS="$CFLAGS" 11597 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11599/* end confdefs.h. */ 11600 11601#include "xorg-server.h" 11602#if !defined XV 11603#error XV not defined 11604#endif 11605 11606int 11607main () 11608{ 11609 11610 ; 11611 return 0; 11612} 11613_ACEOF 11614if ac_fn_c_try_compile "$LINENO"; then : 11615 _EXT_CHECK=yes 11616else 11617 _EXT_CHECK=no 11618fi 11619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11620 CFLAGS="$SAVE_CFLAGS" 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 11622$as_echo_n "checking if XV is defined... " >&6; } 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11624$as_echo "$_EXT_CHECK" >&6; } 11625 if test "$_EXT_CHECK" != no; then 11626 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 11627 fi 11628 11629 11630 SAVE_CFLAGS="$CFLAGS" 11631 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11633/* end confdefs.h. */ 11634 11635#include "xorg-server.h" 11636#if !defined DPMSExtension 11637#error DPMSExtension not defined 11638#endif 11639 11640int 11641main () 11642{ 11643 11644 ; 11645 return 0; 11646} 11647_ACEOF 11648if ac_fn_c_try_compile "$LINENO"; then : 11649 _EXT_CHECK=yes 11650else 11651 _EXT_CHECK=no 11652fi 11653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11654 CFLAGS="$SAVE_CFLAGS" 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 11656$as_echo_n "checking if DPMSExtension is defined... " >&6; } 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11658$as_echo "$_EXT_CHECK" >&6; } 11659 if test "$_EXT_CHECK" != no; then 11660 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 11661 fi 11662 11663 11664# Checks for pkg-config packages 11665 11666pkg_failed=no 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11668$as_echo_n "checking for XORG... " >&6; } 11669 11670if test -n "$PKG_CONFIG"; then 11671 if test -n "$XORG_CFLAGS"; then 11672 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11673 else 11674 if test -n "$PKG_CONFIG" && \ 11675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11676 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 11677 ac_status=$? 11678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11679 test $ac_status = 0; }; then 11680 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11681else 11682 pkg_failed=yes 11683fi 11684 fi 11685else 11686 pkg_failed=untried 11687fi 11688if test -n "$PKG_CONFIG"; then 11689 if test -n "$XORG_LIBS"; then 11690 pkg_cv_XORG_LIBS="$XORG_LIBS" 11691 else 11692 if test -n "$PKG_CONFIG" && \ 11693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11694 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5 11695 ac_status=$? 11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11697 test $ac_status = 0; }; then 11698 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11699else 11700 pkg_failed=yes 11701fi 11702 fi 11703else 11704 pkg_failed=untried 11705fi 11706 11707 11708 11709if test $pkg_failed = yes; then 11710 11711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11712 _pkg_short_errors_supported=yes 11713else 11714 _pkg_short_errors_supported=no 11715fi 11716 if test $_pkg_short_errors_supported = yes; then 11717 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 11718 else 11719 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES"` 11720 fi 11721 # Put the nasty error message in config.log where it belongs 11722 echo "$XORG_PKG_ERRORS" >&5 11723 11724 as_fn_error "Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met: 11725 11726$XORG_PKG_ERRORS 11727 11728Consider adjusting the PKG_CONFIG_PATH environment variable if you 11729installed software in a non-standard prefix. 11730 11731Alternatively, you may set the environment variables XORG_CFLAGS 11732and XORG_LIBS to avoid the need to call pkg-config. 11733See the pkg-config man page for more details. 11734" "$LINENO" 5 11735elif test $pkg_failed = untried; then 11736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11738as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11739is in your PATH or set the PKG_CONFIG environment variable to the full 11740path to pkg-config. 11741 11742Alternatively, you may set the environment variables XORG_CFLAGS 11743and XORG_LIBS to avoid the need to call pkg-config. 11744See the pkg-config man page for more details. 11745 11746To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11747See \`config.log' for more details." "$LINENO" 5; } 11748else 11749 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11750 XORG_LIBS=$pkg_cv_XORG_LIBS 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11752$as_echo "yes" >&6; } 11753 : 11754fi 11755 11756pkg_failed=no 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 11758$as_echo_n "checking for XEXT... " >&6; } 11759 11760if test -n "$PKG_CONFIG"; then 11761 if test -n "$XEXT_CFLAGS"; then 11762 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 11763 else 11764 if test -n "$PKG_CONFIG" && \ 11765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11766 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11767 ac_status=$? 11768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11769 test $ac_status = 0; }; then 11770 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 11771else 11772 pkg_failed=yes 11773fi 11774 fi 11775else 11776 pkg_failed=untried 11777fi 11778if test -n "$PKG_CONFIG"; then 11779 if test -n "$XEXT_LIBS"; then 11780 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 11781 else 11782 if test -n "$PKG_CONFIG" && \ 11783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11784 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11785 ac_status=$? 11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11787 test $ac_status = 0; }; then 11788 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 11789else 11790 pkg_failed=yes 11791fi 11792 fi 11793else 11794 pkg_failed=untried 11795fi 11796 11797 11798 11799if test $pkg_failed = yes; then 11800 11801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11802 _pkg_short_errors_supported=yes 11803else 11804 _pkg_short_errors_supported=no 11805fi 11806 if test $_pkg_short_errors_supported = yes; then 11807 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"` 11808 else 11809 XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xextproto >= 7.0.99.1"` 11810 fi 11811 # Put the nasty error message in config.log where it belongs 11812 echo "$XEXT_PKG_ERRORS" >&5 11813 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11815$as_echo "no" >&6; } 11816 HAVE_XEXTPROTO_71="no" 11817elif test $pkg_failed = untried; then 11818 HAVE_XEXTPROTO_71="no" 11819else 11820 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 11821 XEXT_LIBS=$pkg_cv_XEXT_LIBS 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11823$as_echo "yes" >&6; } 11824 HAVE_XEXTPROTO_71="yes"; 11825$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 11826 11827fi 11828 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 11829 HAVE_XEXTPROTO_71_TRUE= 11830 HAVE_XEXTPROTO_71_FALSE='#' 11831else 11832 HAVE_XEXTPROTO_71_TRUE='#' 11833 HAVE_XEXTPROTO_71_FALSE= 11834fi 11835 11836 11837# Checks for libraries. 11838 11839# Checks for header files. 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11841$as_echo_n "checking for ANSI C header files... " >&6; } 11842if test "${ac_cv_header_stdc+set}" = set; then : 11843 $as_echo_n "(cached) " >&6 11844else 11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11846/* end confdefs.h. */ 11847#include <stdlib.h> 11848#include <stdarg.h> 11849#include <string.h> 11850#include <float.h> 11851 11852int 11853main () 11854{ 11855 11856 ; 11857 return 0; 11858} 11859_ACEOF 11860if ac_fn_c_try_compile "$LINENO"; then : 11861 ac_cv_header_stdc=yes 11862else 11863 ac_cv_header_stdc=no 11864fi 11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11866 11867if test $ac_cv_header_stdc = yes; then 11868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11870/* end confdefs.h. */ 11871#include <string.h> 11872 11873_ACEOF 11874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11875 $EGREP "memchr" >/dev/null 2>&1; then : 11876 11877else 11878 ac_cv_header_stdc=no 11879fi 11880rm -f conftest* 11881 11882fi 11883 11884if test $ac_cv_header_stdc = yes; then 11885 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11887/* end confdefs.h. */ 11888#include <stdlib.h> 11889 11890_ACEOF 11891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11892 $EGREP "free" >/dev/null 2>&1; then : 11893 11894else 11895 ac_cv_header_stdc=no 11896fi 11897rm -f conftest* 11898 11899fi 11900 11901if test $ac_cv_header_stdc = yes; then 11902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11903 if test "$cross_compiling" = yes; then : 11904 : 11905else 11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11907/* end confdefs.h. */ 11908#include <ctype.h> 11909#include <stdlib.h> 11910#if ((' ' & 0x0FF) == 0x020) 11911# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11912# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11913#else 11914# define ISLOWER(c) \ 11915 (('a' <= (c) && (c) <= 'i') \ 11916 || ('j' <= (c) && (c) <= 'r') \ 11917 || ('s' <= (c) && (c) <= 'z')) 11918# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11919#endif 11920 11921#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11922int 11923main () 11924{ 11925 int i; 11926 for (i = 0; i < 256; i++) 11927 if (XOR (islower (i), ISLOWER (i)) 11928 || toupper (i) != TOUPPER (i)) 11929 return 2; 11930 return 0; 11931} 11932_ACEOF 11933if ac_fn_c_try_run "$LINENO"; then : 11934 11935else 11936 ac_cv_header_stdc=no 11937fi 11938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11939 conftest.$ac_objext conftest.beam conftest.$ac_ext 11940fi 11941 11942fi 11943fi 11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11945$as_echo "$ac_cv_header_stdc" >&6; } 11946if test $ac_cv_header_stdc = yes; then 11947 11948$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11949 11950fi 11951 11952 11953save_CFLAGS="$CFLAGS" 11954CFLAGS="$XORG_CFLAGS" 11955 11956# RandR 1.2 11957ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 11958" 11959if test "x$ac_cv_header_xf86Modes_h" = x""yes; then : 11960 BUILD_XMODES=no 11961else 11962 BUILD_XMODES=yes 11963fi 11964 11965 11966 11967# PCI rework 11968ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 11969" 11970if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then : 11971 XSERVER_LIBPCIACCESS=yes 11972else 11973 XSERVER_LIBPCIACCESS=no 11974fi 11975 11976if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 11977 11978pkg_failed=no 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 11980$as_echo_n "checking for PCIACCESS... " >&6; } 11981 11982if test -n "$PKG_CONFIG"; then 11983 if test -n "$PCIACCESS_CFLAGS"; then 11984 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 11985 else 11986 if test -n "$PKG_CONFIG" && \ 11987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11988 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11989 ac_status=$? 11990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11991 test $ac_status = 0; }; then 11992 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 11993else 11994 pkg_failed=yes 11995fi 11996 fi 11997else 11998 pkg_failed=untried 11999fi 12000if test -n "$PKG_CONFIG"; then 12001 if test -n "$PCIACCESS_LIBS"; then 12002 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 12003 else 12004 if test -n "$PKG_CONFIG" && \ 12005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 12006 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 12007 ac_status=$? 12008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12009 test $ac_status = 0; }; then 12010 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 12011else 12012 pkg_failed=yes 12013fi 12014 fi 12015else 12016 pkg_failed=untried 12017fi 12018 12019 12020 12021if test $pkg_failed = yes; then 12022 12023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12024 _pkg_short_errors_supported=yes 12025else 12026 _pkg_short_errors_supported=no 12027fi 12028 if test $_pkg_short_errors_supported = yes; then 12029 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 12030 else 12031 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 12032 fi 12033 # Put the nasty error message in config.log where it belongs 12034 echo "$PCIACCESS_PKG_ERRORS" >&5 12035 12036 as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met: 12037 12038$PCIACCESS_PKG_ERRORS 12039 12040Consider adjusting the PKG_CONFIG_PATH environment variable if you 12041installed software in a non-standard prefix. 12042 12043Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12044and PCIACCESS_LIBS to avoid the need to call pkg-config. 12045See the pkg-config man page for more details. 12046" "$LINENO" 5 12047elif test $pkg_failed = untried; then 12048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12050as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12051is in your PATH or set the PKG_CONFIG environment variable to the full 12052path to pkg-config. 12053 12054Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12055and PCIACCESS_LIBS to avoid the need to call pkg-config. 12056See the pkg-config man page for more details. 12057 12058To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12059See \`config.log' for more details." "$LINENO" 5; } 12060else 12061 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12062 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12064$as_echo "yes" >&6; } 12065 : 12066fi 12067fi 12068 12069CFLAGS="$save_CFLAGS" 12070 12071 if test "x$BUILD_XMODES" = xyes; then 12072 BUILD_XMODES_TRUE= 12073 BUILD_XMODES_FALSE='#' 12074else 12075 BUILD_XMODES_TRUE='#' 12076 BUILD_XMODES_FALSE= 12077fi 12078 12079if test "x$XSERVER_SOURCE" != x; then 12080 if test -d "$XSERVER_SOURCE"; then 12081 XSERVER_SOURCE=`cd "$XSERVER_SOURCE" && pwd` 12082 if test -f "$XSERVER_SOURCE/hw/xfree86/modes/xf86Modes.h" -a -f "$XSERVER_SOURCE/hw/xfree86/parser/xf86Parser.h"; then 12083 : 12084 else 12085 as_fn_error "Server source at $XSERVER_SOURCE doesn't have the new mode code" "$LINENO" 5 12086 fi 12087 else 12088 as_fn_error "Can't find xserver-source path $XSERVER_SOURCE" "$LINENO" 5 12089 fi 12090fi 12091if test "x$BUILD_XMODES" = xno; then 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: X server has new mode code" >&5 12093$as_echo "$as_me: X server has new mode code" >&6;} 12094 XMODES_CFLAGS= 12095 parser_dir= 12096 modes_dir= 12097else 12098 if test "x$XSERVER_SOURCE" = x; then 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&5 12100$as_echo "$as_me: X server is missing new mode code and --with-xserver-source not specified, using local copy" >&6;} 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: If you're building from git, please read compat/README" >&5 12102$as_echo "$as_me: If you're building from git, please read compat/README" >&6;} 12103 parser_dir='$(top_srcdir)/compat/parser' 12104 modes_dir='$(top_srcdir)/compat/modes' 12105 else 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: Using mode code from $XSERVER_SOURCE" >&5 12107$as_echo "$as_me: Using mode code from $XSERVER_SOURCE" >&6;} 12108 parser_dir="$XSERVER_SOURCE/hw/xfree86/parser" 12109 modes_dir="$XSERVER_SOURCE/hw/xfree86/modes" 12110 fi 12111 XMODES_CFLAGS="-DXF86_MODES_RENAME -I\"$modes_dir\" -I\"$parser_dir\"" 12112 12113$as_echo "#define BUILD_XMODES 1" >>confdefs.h 12114 12115fi 12116 12117 12118 12119 12120# Substitutions 12121 12122 12123 12124DRIVER_NAME=nv 12125 12126 12127ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile compat/Makefile" 12128 12129cat >confcache <<\_ACEOF 12130# This file is a shell script that caches the results of configure 12131# tests run on this system so they can be shared between configure 12132# scripts and configure runs, see configure's option --config-cache. 12133# It is not useful on other systems. If it contains results you don't 12134# want to keep, you may remove or edit it. 12135# 12136# config.status only pays attention to the cache file if you give it 12137# the --recheck option to rerun configure. 12138# 12139# `ac_cv_env_foo' variables (set or unset) will be overridden when 12140# loading this file, other *unset* `ac_cv_foo' will be assigned the 12141# following values. 12142 12143_ACEOF 12144 12145# The following way of writing the cache mishandles newlines in values, 12146# but we know of no workaround that is simple, portable, and efficient. 12147# So, we kill variables containing newlines. 12148# Ultrix sh set writes to stderr and can't be redirected directly, 12149# and sets the high bit in the cache file unless we assign to the vars. 12150( 12151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12152 eval ac_val=\$$ac_var 12153 case $ac_val in #( 12154 *${as_nl}*) 12155 case $ac_var in #( 12156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12158 esac 12159 case $ac_var in #( 12160 _ | IFS | as_nl) ;; #( 12161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12162 *) { eval $ac_var=; unset $ac_var;} ;; 12163 esac ;; 12164 esac 12165 done 12166 12167 (set) 2>&1 | 12168 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12169 *${as_nl}ac_space=\ *) 12170 # `set' does not quote correctly, so add quotes: double-quote 12171 # substitution turns \\\\ into \\, and sed turns \\ into \. 12172 sed -n \ 12173 "s/'/'\\\\''/g; 12174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12175 ;; #( 12176 *) 12177 # `set' quotes correctly as required by POSIX, so do not add quotes. 12178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12179 ;; 12180 esac | 12181 sort 12182) | 12183 sed ' 12184 /^ac_cv_env_/b end 12185 t clear 12186 :clear 12187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12188 t end 12189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12190 :end' >>confcache 12191if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12192 if test -w "$cache_file"; then 12193 test "x$cache_file" != "x/dev/null" && 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12195$as_echo "$as_me: updating cache $cache_file" >&6;} 12196 cat confcache >$cache_file 12197 else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12199$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12200 fi 12201fi 12202rm -f confcache 12203 12204test "x$prefix" = xNONE && prefix=$ac_default_prefix 12205# Let make expand exec_prefix. 12206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12207 12208DEFS=-DHAVE_CONFIG_H 12209 12210ac_libobjs= 12211ac_ltlibobjs= 12212for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12213 # 1. Remove the extension, and $U if already installed. 12214 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12215 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12216 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12217 # will be set to the directory where LIBOBJS objects are built. 12218 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12219 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12220done 12221LIBOBJS=$ac_libobjs 12222 12223LTLIBOBJS=$ac_ltlibobjs 12224 12225 12226if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12227 as_fn_error "conditional \"AMDEP\" was never defined. 12228Usually this means the macro was only invoked conditionally." "$LINENO" 5 12229fi 12230if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12231 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12232Usually this means the macro was only invoked conditionally." "$LINENO" 5 12233fi 12234 if test -n "$EXEEXT"; then 12235 am__EXEEXT_TRUE= 12236 am__EXEEXT_FALSE='#' 12237else 12238 am__EXEEXT_TRUE='#' 12239 am__EXEEXT_FALSE= 12240fi 12241 12242if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12243 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 12244Usually this means the macro was only invoked conditionally." "$LINENO" 5 12245fi 12246if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 12247 as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined. 12248Usually this means the macro was only invoked conditionally." "$LINENO" 5 12249fi 12250if test -z "${BUILD_XMODES_TRUE}" && test -z "${BUILD_XMODES_FALSE}"; then 12251 as_fn_error "conditional \"BUILD_XMODES\" was never defined. 12252Usually this means the macro was only invoked conditionally." "$LINENO" 5 12253fi 12254 12255: ${CONFIG_STATUS=./config.status} 12256ac_write_fail=0 12257ac_clean_files_save=$ac_clean_files 12258ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12259{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12260$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12261as_write_fail=0 12262cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12263#! $SHELL 12264# Generated by $as_me. 12265# Run this file to recreate the current configuration. 12266# Compiler output produced by configure, useful for debugging 12267# configure, is in config.log if it exists. 12268 12269debug=false 12270ac_cs_recheck=false 12271ac_cs_silent=false 12272 12273SHELL=\${CONFIG_SHELL-$SHELL} 12274export SHELL 12275_ASEOF 12276cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12277## -------------------- ## 12278## M4sh Initialization. ## 12279## -------------------- ## 12280 12281# Be more Bourne compatible 12282DUALCASE=1; export DUALCASE # for MKS sh 12283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12284 emulate sh 12285 NULLCMD=: 12286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12287 # is contrary to our usage. Disable this feature. 12288 alias -g '${1+"$@"}'='"$@"' 12289 setopt NO_GLOB_SUBST 12290else 12291 case `(set -o) 2>/dev/null` in #( 12292 *posix*) : 12293 set -o posix ;; #( 12294 *) : 12295 ;; 12296esac 12297fi 12298 12299 12300as_nl=' 12301' 12302export as_nl 12303# Printing a long string crashes Solaris 7 /usr/bin/printf. 12304as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12305as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12306as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12307# Prefer a ksh shell builtin over an external printf program on Solaris, 12308# but without wasting forks for bash or zsh. 12309if test -z "$BASH_VERSION$ZSH_VERSION" \ 12310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12311 as_echo='print -r --' 12312 as_echo_n='print -rn --' 12313elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12314 as_echo='printf %s\n' 12315 as_echo_n='printf %s' 12316else 12317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12319 as_echo_n='/usr/ucb/echo -n' 12320 else 12321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12322 as_echo_n_body='eval 12323 arg=$1; 12324 case $arg in #( 12325 *"$as_nl"*) 12326 expr "X$arg" : "X\\(.*\\)$as_nl"; 12327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12328 esac; 12329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12330 ' 12331 export as_echo_n_body 12332 as_echo_n='sh -c $as_echo_n_body as_echo' 12333 fi 12334 export as_echo_body 12335 as_echo='sh -c $as_echo_body as_echo' 12336fi 12337 12338# The user is always right. 12339if test "${PATH_SEPARATOR+set}" != set; then 12340 PATH_SEPARATOR=: 12341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12343 PATH_SEPARATOR=';' 12344 } 12345fi 12346 12347 12348# IFS 12349# We need space, tab and new line, in precisely that order. Quoting is 12350# there to prevent editors from complaining about space-tab. 12351# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12352# splitting by setting IFS to empty value.) 12353IFS=" "" $as_nl" 12354 12355# Find who we are. Look in the path if we contain no directory separator. 12356case $0 in #(( 12357 *[\\/]* ) as_myself=$0 ;; 12358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12359for as_dir in $PATH 12360do 12361 IFS=$as_save_IFS 12362 test -z "$as_dir" && as_dir=. 12363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12364 done 12365IFS=$as_save_IFS 12366 12367 ;; 12368esac 12369# We did not find ourselves, most probably we were run as `sh COMMAND' 12370# in which case we are not to be found in the path. 12371if test "x$as_myself" = x; then 12372 as_myself=$0 12373fi 12374if test ! -f "$as_myself"; then 12375 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12376 exit 1 12377fi 12378 12379# Unset variables that we do not need and which cause bugs (e.g. in 12380# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12381# suppresses any "Segmentation fault" message there. '((' could 12382# trigger a bug in pdksh 5.2.14. 12383for as_var in BASH_ENV ENV MAIL MAILPATH 12384do eval test x\${$as_var+set} = xset \ 12385 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12386done 12387PS1='$ ' 12388PS2='> ' 12389PS4='+ ' 12390 12391# NLS nuisances. 12392LC_ALL=C 12393export LC_ALL 12394LANGUAGE=C 12395export LANGUAGE 12396 12397# CDPATH. 12398(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12399 12400 12401# as_fn_error ERROR [LINENO LOG_FD] 12402# --------------------------------- 12403# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12404# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12405# script with status $?, using 1 if that was 0. 12406as_fn_error () 12407{ 12408 as_status=$?; test $as_status -eq 0 && as_status=1 12409 if test "$3"; then 12410 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12411 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12412 fi 12413 $as_echo "$as_me: error: $1" >&2 12414 as_fn_exit $as_status 12415} # as_fn_error 12416 12417 12418# as_fn_set_status STATUS 12419# ----------------------- 12420# Set $? to STATUS, without forking. 12421as_fn_set_status () 12422{ 12423 return $1 12424} # as_fn_set_status 12425 12426# as_fn_exit STATUS 12427# ----------------- 12428# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12429as_fn_exit () 12430{ 12431 set +e 12432 as_fn_set_status $1 12433 exit $1 12434} # as_fn_exit 12435 12436# as_fn_unset VAR 12437# --------------- 12438# Portably unset VAR. 12439as_fn_unset () 12440{ 12441 { eval $1=; unset $1;} 12442} 12443as_unset=as_fn_unset 12444# as_fn_append VAR VALUE 12445# ---------------------- 12446# Append the text in VALUE to the end of the definition contained in VAR. Take 12447# advantage of any shell optimizations that allow amortized linear growth over 12448# repeated appends, instead of the typical quadratic growth present in naive 12449# implementations. 12450if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12451 eval 'as_fn_append () 12452 { 12453 eval $1+=\$2 12454 }' 12455else 12456 as_fn_append () 12457 { 12458 eval $1=\$$1\$2 12459 } 12460fi # as_fn_append 12461 12462# as_fn_arith ARG... 12463# ------------------ 12464# Perform arithmetic evaluation on the ARGs, and store the result in the 12465# global $as_val. Take advantage of shells that can avoid forks. The arguments 12466# must be portable across $(()) and expr. 12467if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12468 eval 'as_fn_arith () 12469 { 12470 as_val=$(( $* )) 12471 }' 12472else 12473 as_fn_arith () 12474 { 12475 as_val=`expr "$@" || test $? -eq 1` 12476 } 12477fi # as_fn_arith 12478 12479 12480if expr a : '\(a\)' >/dev/null 2>&1 && 12481 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12482 as_expr=expr 12483else 12484 as_expr=false 12485fi 12486 12487if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12488 as_basename=basename 12489else 12490 as_basename=false 12491fi 12492 12493if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12494 as_dirname=dirname 12495else 12496 as_dirname=false 12497fi 12498 12499as_me=`$as_basename -- "$0" || 12500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12501 X"$0" : 'X\(//\)$' \| \ 12502 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12503$as_echo X/"$0" | 12504 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12505 s//\1/ 12506 q 12507 } 12508 /^X\/\(\/\/\)$/{ 12509 s//\1/ 12510 q 12511 } 12512 /^X\/\(\/\).*/{ 12513 s//\1/ 12514 q 12515 } 12516 s/.*/./; q'` 12517 12518# Avoid depending upon Character Ranges. 12519as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12521as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12522as_cr_digits='0123456789' 12523as_cr_alnum=$as_cr_Letters$as_cr_digits 12524 12525ECHO_C= ECHO_N= ECHO_T= 12526case `echo -n x` in #((((( 12527-n*) 12528 case `echo 'xy\c'` in 12529 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12530 xy) ECHO_C='\c';; 12531 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12532 ECHO_T=' ';; 12533 esac;; 12534*) 12535 ECHO_N='-n';; 12536esac 12537 12538rm -f conf$$ conf$$.exe conf$$.file 12539if test -d conf$$.dir; then 12540 rm -f conf$$.dir/conf$$.file 12541else 12542 rm -f conf$$.dir 12543 mkdir conf$$.dir 2>/dev/null 12544fi 12545if (echo >conf$$.file) 2>/dev/null; then 12546 if ln -s conf$$.file conf$$ 2>/dev/null; then 12547 as_ln_s='ln -s' 12548 # ... but there are two gotchas: 12549 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12550 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12551 # In both cases, we have to default to `cp -p'. 12552 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12553 as_ln_s='cp -p' 12554 elif ln conf$$.file conf$$ 2>/dev/null; then 12555 as_ln_s=ln 12556 else 12557 as_ln_s='cp -p' 12558 fi 12559else 12560 as_ln_s='cp -p' 12561fi 12562rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12563rmdir conf$$.dir 2>/dev/null 12564 12565 12566# as_fn_mkdir_p 12567# ------------- 12568# Create "$as_dir" as a directory, including parents if necessary. 12569as_fn_mkdir_p () 12570{ 12571 12572 case $as_dir in #( 12573 -*) as_dir=./$as_dir;; 12574 esac 12575 test -d "$as_dir" || eval $as_mkdir_p || { 12576 as_dirs= 12577 while :; do 12578 case $as_dir in #( 12579 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12580 *) as_qdir=$as_dir;; 12581 esac 12582 as_dirs="'$as_qdir' $as_dirs" 12583 as_dir=`$as_dirname -- "$as_dir" || 12584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12585 X"$as_dir" : 'X\(//\)[^/]' \| \ 12586 X"$as_dir" : 'X\(//\)$' \| \ 12587 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12588$as_echo X"$as_dir" | 12589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12590 s//\1/ 12591 q 12592 } 12593 /^X\(\/\/\)[^/].*/{ 12594 s//\1/ 12595 q 12596 } 12597 /^X\(\/\/\)$/{ 12598 s//\1/ 12599 q 12600 } 12601 /^X\(\/\).*/{ 12602 s//\1/ 12603 q 12604 } 12605 s/.*/./; q'` 12606 test -d "$as_dir" && break 12607 done 12608 test -z "$as_dirs" || eval "mkdir $as_dirs" 12609 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12610 12611 12612} # as_fn_mkdir_p 12613if mkdir -p . 2>/dev/null; then 12614 as_mkdir_p='mkdir -p "$as_dir"' 12615else 12616 test -d ./-p && rmdir ./-p 12617 as_mkdir_p=false 12618fi 12619 12620if test -x / >/dev/null 2>&1; then 12621 as_test_x='test -x' 12622else 12623 if ls -dL / >/dev/null 2>&1; then 12624 as_ls_L_option=L 12625 else 12626 as_ls_L_option= 12627 fi 12628 as_test_x=' 12629 eval sh -c '\'' 12630 if test -d "$1"; then 12631 test -d "$1/."; 12632 else 12633 case $1 in #( 12634 -*)set "./$1";; 12635 esac; 12636 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12637 ???[sx]*):;;*)false;;esac;fi 12638 '\'' sh 12639 ' 12640fi 12641as_executable_p=$as_test_x 12642 12643# Sed expression to map a string onto a valid CPP name. 12644as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12645 12646# Sed expression to map a string onto a valid variable name. 12647as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12648 12649 12650exec 6>&1 12651## ----------------------------------- ## 12652## Main body of $CONFIG_STATUS script. ## 12653## ----------------------------------- ## 12654_ASEOF 12655test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12656 12657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12658# Save the log message, to keep $0 and so on meaningful, and to 12659# report actual input values of CONFIG_FILES etc. instead of their 12660# values after options handling. 12661ac_log=" 12662This file was extended by xf86-video-nv $as_me 2.1.17, which was 12663generated by GNU Autoconf 2.64. Invocation command line was 12664 12665 CONFIG_FILES = $CONFIG_FILES 12666 CONFIG_HEADERS = $CONFIG_HEADERS 12667 CONFIG_LINKS = $CONFIG_LINKS 12668 CONFIG_COMMANDS = $CONFIG_COMMANDS 12669 $ $0 $@ 12670 12671on `(hostname || uname -n) 2>/dev/null | sed 1q` 12672" 12673 12674_ACEOF 12675 12676case $ac_config_files in *" 12677"*) set x $ac_config_files; shift; ac_config_files=$*;; 12678esac 12679 12680case $ac_config_headers in *" 12681"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12682esac 12683 12684 12685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12686# Files that config.status was made for. 12687config_files="$ac_config_files" 12688config_headers="$ac_config_headers" 12689config_commands="$ac_config_commands" 12690 12691_ACEOF 12692 12693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12694ac_cs_usage="\ 12695\`$as_me' instantiates files and other configuration actions 12696from templates according to the current configuration. Unless the files 12697and actions are specified as TAGs, all are instantiated by default. 12698 12699Usage: $0 [OPTION]... [TAG]... 12700 12701 -h, --help print this help, then exit 12702 -V, --version print version number and configuration settings, then exit 12703 -q, --quiet, --silent 12704 do not print progress messages 12705 -d, --debug don't remove temporary files 12706 --recheck update $as_me by reconfiguring in the same conditions 12707 --file=FILE[:TEMPLATE] 12708 instantiate the configuration file FILE 12709 --header=FILE[:TEMPLATE] 12710 instantiate the configuration header FILE 12711 12712Configuration files: 12713$config_files 12714 12715Configuration headers: 12716$config_headers 12717 12718Configuration commands: 12719$config_commands 12720 12721Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12722 12723_ACEOF 12724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12725ac_cs_version="\\ 12726xf86-video-nv config.status 2.1.17 12727configured by $0, generated by GNU Autoconf 2.64, 12728 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12729 12730Copyright (C) 2009 Free Software Foundation, Inc. 12731This config.status script is free software; the Free Software Foundation 12732gives unlimited permission to copy, distribute and modify it." 12733 12734ac_pwd='$ac_pwd' 12735srcdir='$srcdir' 12736INSTALL='$INSTALL' 12737MKDIR_P='$MKDIR_P' 12738AWK='$AWK' 12739test -n "\$AWK" || AWK=awk 12740_ACEOF 12741 12742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12743# The default lists apply if the user does not specify any file. 12744ac_need_defaults=: 12745while test $# != 0 12746do 12747 case $1 in 12748 --*=*) 12749 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12750 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12751 ac_shift=: 12752 ;; 12753 *) 12754 ac_option=$1 12755 ac_optarg=$2 12756 ac_shift=shift 12757 ;; 12758 esac 12759 12760 case $ac_option in 12761 # Handling of the options. 12762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12763 ac_cs_recheck=: ;; 12764 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12765 $as_echo "$ac_cs_version"; exit ;; 12766 --debug | --debu | --deb | --de | --d | -d ) 12767 debug=: ;; 12768 --file | --fil | --fi | --f ) 12769 $ac_shift 12770 case $ac_optarg in 12771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12772 esac 12773 as_fn_append CONFIG_FILES " '$ac_optarg'" 12774 ac_need_defaults=false;; 12775 --header | --heade | --head | --hea ) 12776 $ac_shift 12777 case $ac_optarg in 12778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12779 esac 12780 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12781 ac_need_defaults=false;; 12782 --he | --h) 12783 # Conflict between --help and --header 12784 as_fn_error "ambiguous option: \`$1' 12785Try \`$0 --help' for more information.";; 12786 --help | --hel | -h ) 12787 $as_echo "$ac_cs_usage"; exit ;; 12788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12789 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12790 ac_cs_silent=: ;; 12791 12792 # This is an error. 12793 -*) as_fn_error "unrecognized option: \`$1' 12794Try \`$0 --help' for more information." ;; 12795 12796 *) as_fn_append ac_config_targets " $1" 12797 ac_need_defaults=false ;; 12798 12799 esac 12800 shift 12801done 12802 12803ac_configure_extra_args= 12804 12805if $ac_cs_silent; then 12806 exec 6>/dev/null 12807 ac_configure_extra_args="$ac_configure_extra_args --silent" 12808fi 12809 12810_ACEOF 12811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12812if \$ac_cs_recheck; then 12813 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12814 shift 12815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12816 CONFIG_SHELL='$SHELL' 12817 export CONFIG_SHELL 12818 exec "\$@" 12819fi 12820 12821_ACEOF 12822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12823exec 5>>config.log 12824{ 12825 echo 12826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12827## Running $as_me. ## 12828_ASBOX 12829 $as_echo "$ac_log" 12830} >&5 12831 12832_ACEOF 12833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12834# 12835# INIT-COMMANDS 12836# 12837AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12838 12839 12840# The HP-UX ksh and POSIX shell print the target directory to stdout 12841# if CDPATH is set. 12842(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12843 12844sed_quote_subst='$sed_quote_subst' 12845double_quote_subst='$double_quote_subst' 12846delay_variable_subst='$delay_variable_subst' 12847enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12848macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12849macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12850enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12851pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12852enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12853host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12854host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12855host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12856build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12857build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12858build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12859SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12860Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12861GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12862EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12863FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12864LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12865NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12866LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12867max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12868ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12869exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12870lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12871lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12872lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12873reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12874reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12875OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12876deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12877file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12878AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12879AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12880STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12881RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12882old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12883old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12884old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12885CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12886CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12887compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12888GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12889lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12890lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12891lt_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"`' 12892lt_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"`' 12893objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12894SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12895ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12896MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12897lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12898lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12899lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12900lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12901lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12902need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12903DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12904NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12905LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12906OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12907OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12908libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12909shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12910extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12911archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12912enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12913export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12914whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12915compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12916old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12917old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12918archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12919archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12920module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12921module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12922with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12923allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12924no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12925hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12926hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12927hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12928hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12929hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12930hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12931hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12932hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12933inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12934link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12935fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12936always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12937export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12938exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12939include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12940prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12941file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12942variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12943need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12944need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12945version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12946runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12947shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12948shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12949libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12950library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12951soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12952postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12953postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12954finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12955finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12956hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12957sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12958sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12959hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12960enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12961enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12962enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12963old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12964striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12965 12966LTCC='$LTCC' 12967LTCFLAGS='$LTCFLAGS' 12968compiler='$compiler_DEFAULT' 12969 12970# Quote evaled strings. 12971for var in SED \ 12972GREP \ 12973EGREP \ 12974FGREP \ 12975LD \ 12976NM \ 12977LN_S \ 12978lt_SP2NL \ 12979lt_NL2SP \ 12980reload_flag \ 12981OBJDUMP \ 12982deplibs_check_method \ 12983file_magic_cmd \ 12984AR \ 12985AR_FLAGS \ 12986STRIP \ 12987RANLIB \ 12988CC \ 12989CFLAGS \ 12990compiler \ 12991lt_cv_sys_global_symbol_pipe \ 12992lt_cv_sys_global_symbol_to_cdecl \ 12993lt_cv_sys_global_symbol_to_c_name_address \ 12994lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12995SHELL \ 12996ECHO \ 12997lt_prog_compiler_no_builtin_flag \ 12998lt_prog_compiler_wl \ 12999lt_prog_compiler_pic \ 13000lt_prog_compiler_static \ 13001lt_cv_prog_compiler_c_o \ 13002need_locks \ 13003DSYMUTIL \ 13004NMEDIT \ 13005LIPO \ 13006OTOOL \ 13007OTOOL64 \ 13008shrext_cmds \ 13009export_dynamic_flag_spec \ 13010whole_archive_flag_spec \ 13011compiler_needs_object \ 13012with_gnu_ld \ 13013allow_undefined_flag \ 13014no_undefined_flag \ 13015hardcode_libdir_flag_spec \ 13016hardcode_libdir_flag_spec_ld \ 13017hardcode_libdir_separator \ 13018fix_srcfile_path \ 13019exclude_expsyms \ 13020include_expsyms \ 13021file_list_spec \ 13022variables_saved_for_relink \ 13023libname_spec \ 13024library_names_spec \ 13025soname_spec \ 13026finish_eval \ 13027old_striplib \ 13028striplib; do 13029 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13030 *[\\\\\\\`\\"\\\$]*) 13031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13032 ;; 13033 *) 13034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13035 ;; 13036 esac 13037done 13038 13039# Double-quote double-evaled strings. 13040for var in reload_cmds \ 13041old_postinstall_cmds \ 13042old_postuninstall_cmds \ 13043old_archive_cmds \ 13044extract_expsyms_cmds \ 13045old_archive_from_new_cmds \ 13046old_archive_from_expsyms_cmds \ 13047archive_cmds \ 13048archive_expsym_cmds \ 13049module_cmds \ 13050module_expsym_cmds \ 13051export_symbols_cmds \ 13052prelink_cmds \ 13053postinstall_cmds \ 13054postuninstall_cmds \ 13055finish_cmds \ 13056sys_lib_search_path_spec \ 13057sys_lib_dlsearch_path_spec; do 13058 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13059 *[\\\\\\\`\\"\\\$]*) 13060 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13061 ;; 13062 *) 13063 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13064 ;; 13065 esac 13066done 13067 13068# Fix-up fallback echo if it was mangled by the above quoting rules. 13069case \$lt_ECHO in 13070*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13071 ;; 13072esac 13073 13074ac_aux_dir='$ac_aux_dir' 13075xsi_shell='$xsi_shell' 13076lt_shell_append='$lt_shell_append' 13077 13078# See if we are running on zsh, and set the options which allow our 13079# commands through without removal of \ escapes INIT. 13080if test -n "\${ZSH_VERSION+set}" ; then 13081 setopt NO_GLOB_SUBST 13082fi 13083 13084 13085 PACKAGE='$PACKAGE' 13086 VERSION='$VERSION' 13087 TIMESTAMP='$TIMESTAMP' 13088 RM='$RM' 13089 ofile='$ofile' 13090 13091 13092 13093 13094_ACEOF 13095 13096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13097 13098# Handling of arguments. 13099for ac_config_target in $ac_config_targets 13100do 13101 case $ac_config_target in 13102 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13103 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13104 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13106 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13107 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13108 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;; 13109 13110 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13111 esac 13112done 13113 13114 13115# If the user did not use the arguments to specify the items to instantiate, 13116# then the envvar interface is used. Set only those that are not. 13117# We use the long form for the default assignment because of an extremely 13118# bizarre bug on SunOS 4.1.3. 13119if $ac_need_defaults; then 13120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13123fi 13124 13125# Have a temporary directory for convenience. Make it in the build tree 13126# simply because there is no reason against having it here, and in addition, 13127# creating and moving files from /tmp can sometimes cause problems. 13128# Hook for its removal unless debugging. 13129# Note that there is a small window in which the directory will not be cleaned: 13130# after its creation but before its name has been assigned to `$tmp'. 13131$debug || 13132{ 13133 tmp= 13134 trap 'exit_status=$? 13135 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13136' 0 13137 trap 'as_fn_exit 1' 1 2 13 15 13138} 13139# Create a (secure) tmp directory for tmp files. 13140 13141{ 13142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13143 test -n "$tmp" && test -d "$tmp" 13144} || 13145{ 13146 tmp=./conf$$-$RANDOM 13147 (umask 077 && mkdir "$tmp") 13148} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13149 13150# Set up the scripts for CONFIG_FILES section. 13151# No need to generate them if there are no CONFIG_FILES. 13152# This happens for instance with `./config.status config.h'. 13153if test -n "$CONFIG_FILES"; then 13154 13155 13156ac_cr=`echo X | tr X '\015'` 13157# On cygwin, bash can eat \r inside `` if the user requested igncr. 13158# But we know of no other shell where ac_cr would be empty at this 13159# point, so we can use a bashism as a fallback. 13160if test "x$ac_cr" = x; then 13161 eval ac_cr=\$\'\\r\' 13162fi 13163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13165 ac_cs_awk_cr='\r' 13166else 13167 ac_cs_awk_cr=$ac_cr 13168fi 13169 13170echo 'BEGIN {' >"$tmp/subs1.awk" && 13171_ACEOF 13172 13173 13174{ 13175 echo "cat >conf$$subs.awk <<_ACEOF" && 13176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13177 echo "_ACEOF" 13178} >conf$$subs.sh || 13179 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13180ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13181ac_delim='%!_!# ' 13182for ac_last_try in false false false false false :; do 13183 . ./conf$$subs.sh || 13184 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13185 13186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13187 if test $ac_delim_n = $ac_delim_num; then 13188 break 13189 elif $ac_last_try; then 13190 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13191 else 13192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13193 fi 13194done 13195rm -f conf$$subs.sh 13196 13197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13198cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13199_ACEOF 13200sed -n ' 13201h 13202s/^/S["/; s/!.*/"]=/ 13203p 13204g 13205s/^[^!]*!// 13206:repl 13207t repl 13208s/'"$ac_delim"'$// 13209t delim 13210:nl 13211h 13212s/\(.\{148\}\).*/\1/ 13213t more1 13214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13215p 13216n 13217b repl 13218:more1 13219s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13220p 13221g 13222s/.\{148\}// 13223t nl 13224:delim 13225h 13226s/\(.\{148\}\).*/\1/ 13227t more2 13228s/["\\]/\\&/g; s/^/"/; s/$/"/ 13229p 13230b 13231:more2 13232s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13233p 13234g 13235s/.\{148\}// 13236t delim 13237' <conf$$subs.awk | sed ' 13238/^[^""]/{ 13239 N 13240 s/\n// 13241} 13242' >>$CONFIG_STATUS || ac_write_fail=1 13243rm -f conf$$subs.awk 13244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13245_ACAWK 13246cat >>"\$tmp/subs1.awk" <<_ACAWK && 13247 for (key in S) S_is_set[key] = 1 13248 FS = "" 13249 13250} 13251{ 13252 line = $ 0 13253 nfields = split(line, field, "@") 13254 substed = 0 13255 len = length(field[1]) 13256 for (i = 2; i < nfields; i++) { 13257 key = field[i] 13258 keylen = length(key) 13259 if (S_is_set[key]) { 13260 value = S[key] 13261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13262 len += length(value) + length(field[++i]) 13263 substed = 1 13264 } else 13265 len += 1 + keylen 13266 } 13267 13268 print line 13269} 13270 13271_ACAWK 13272_ACEOF 13273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13276else 13277 cat 13278fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13279 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13280_ACEOF 13281 13282# VPATH may cause trouble with some makes, so we remove $(srcdir), 13283# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13284# trailing colons and then remove the whole line if VPATH becomes empty 13285# (actually we leave an empty line to preserve line numbers). 13286if test "x$srcdir" = x.; then 13287 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13288s/:*\$(srcdir):*/:/ 13289s/:*\${srcdir}:*/:/ 13290s/:*@srcdir@:*/:/ 13291s/^\([^=]*=[ ]*\):*/\1/ 13292s/:*$// 13293s/^[^=]*=[ ]*$// 13294}' 13295fi 13296 13297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13298fi # test -n "$CONFIG_FILES" 13299 13300# Set up the scripts for CONFIG_HEADERS section. 13301# No need to generate them if there are no CONFIG_HEADERS. 13302# This happens for instance with `./config.status Makefile'. 13303if test -n "$CONFIG_HEADERS"; then 13304cat >"$tmp/defines.awk" <<\_ACAWK || 13305BEGIN { 13306_ACEOF 13307 13308# Transform confdefs.h into an awk script `defines.awk', embedded as 13309# here-document in config.status, that substitutes the proper values into 13310# config.h.in to produce config.h. 13311 13312# Create a delimiter string that does not exist in confdefs.h, to ease 13313# handling of long lines. 13314ac_delim='%!_!# ' 13315for ac_last_try in false false :; do 13316 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13317 if test -z "$ac_t"; then 13318 break 13319 elif $ac_last_try; then 13320 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13321 else 13322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13323 fi 13324done 13325 13326# For the awk script, D is an array of macro values keyed by name, 13327# likewise P contains macro parameters if any. Preserve backslash 13328# newline sequences. 13329 13330ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13331sed -n ' 13332s/.\{148\}/&'"$ac_delim"'/g 13333t rset 13334:rset 13335s/^[ ]*#[ ]*define[ ][ ]*/ / 13336t def 13337d 13338:def 13339s/\\$// 13340t bsnl 13341s/["\\]/\\&/g 13342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13343D["\1"]=" \3"/p 13344s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13345d 13346:bsnl 13347s/["\\]/\\&/g 13348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13349D["\1"]=" \3\\\\\\n"\\/p 13350t cont 13351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13352t cont 13353d 13354:cont 13355n 13356s/.\{148\}/&'"$ac_delim"'/g 13357t clear 13358:clear 13359s/\\$// 13360t bsnlc 13361s/["\\]/\\&/g; s/^/"/; s/$/"/p 13362d 13363:bsnlc 13364s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13365b cont 13366' <confdefs.h | sed ' 13367s/'"$ac_delim"'/"\\\ 13368"/g' >>$CONFIG_STATUS || ac_write_fail=1 13369 13370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13371 for (key in D) D_is_set[key] = 1 13372 FS = "" 13373} 13374/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13375 line = \$ 0 13376 split(line, arg, " ") 13377 if (arg[1] == "#") { 13378 defundef = arg[2] 13379 mac1 = arg[3] 13380 } else { 13381 defundef = substr(arg[1], 2) 13382 mac1 = arg[2] 13383 } 13384 split(mac1, mac2, "(") #) 13385 macro = mac2[1] 13386 prefix = substr(line, 1, index(line, defundef) - 1) 13387 if (D_is_set[macro]) { 13388 # Preserve the white space surrounding the "#". 13389 print prefix "define", macro P[macro] D[macro] 13390 next 13391 } else { 13392 # Replace #undef with comments. This is necessary, for example, 13393 # in the case of _POSIX_SOURCE, which is predefined and required 13394 # on some systems where configure will not decide to define it. 13395 if (defundef == "undef") { 13396 print "/*", prefix defundef, macro, "*/" 13397 next 13398 } 13399 } 13400} 13401{ print } 13402_ACAWK 13403_ACEOF 13404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13405 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13406fi # test -n "$CONFIG_HEADERS" 13407 13408 13409eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13410shift 13411for ac_tag 13412do 13413 case $ac_tag in 13414 :[FHLC]) ac_mode=$ac_tag; continue;; 13415 esac 13416 case $ac_mode$ac_tag in 13417 :[FHL]*:*);; 13418 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13419 :[FH]-) ac_tag=-:-;; 13420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13421 esac 13422 ac_save_IFS=$IFS 13423 IFS=: 13424 set x $ac_tag 13425 IFS=$ac_save_IFS 13426 shift 13427 ac_file=$1 13428 shift 13429 13430 case $ac_mode in 13431 :L) ac_source=$1;; 13432 :[FH]) 13433 ac_file_inputs= 13434 for ac_f 13435 do 13436 case $ac_f in 13437 -) ac_f="$tmp/stdin";; 13438 *) # Look for the file first in the build tree, then in the source tree 13439 # (if the path is not absolute). The absolute path cannot be DOS-style, 13440 # because $ac_f cannot contain `:'. 13441 test -f "$ac_f" || 13442 case $ac_f in 13443 [\\/$]*) false;; 13444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13445 esac || 13446 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13447 esac 13448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13449 as_fn_append ac_file_inputs " '$ac_f'" 13450 done 13451 13452 # Let's still pretend it is `configure' which instantiates (i.e., don't 13453 # use $as_me), people would be surprised to read: 13454 # /* config.h. Generated by config.status. */ 13455 configure_input='Generated from '` 13456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13457 `' by configure.' 13458 if test x"$ac_file" != x-; then 13459 configure_input="$ac_file. $configure_input" 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13461$as_echo "$as_me: creating $ac_file" >&6;} 13462 fi 13463 # Neutralize special characters interpreted by sed in replacement strings. 13464 case $configure_input in #( 13465 *\&* | *\|* | *\\* ) 13466 ac_sed_conf_input=`$as_echo "$configure_input" | 13467 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13468 *) ac_sed_conf_input=$configure_input;; 13469 esac 13470 13471 case $ac_tag in 13472 *:-:* | *:-) cat >"$tmp/stdin" \ 13473 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13474 esac 13475 ;; 13476 esac 13477 13478 ac_dir=`$as_dirname -- "$ac_file" || 13479$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13480 X"$ac_file" : 'X\(//\)[^/]' \| \ 13481 X"$ac_file" : 'X\(//\)$' \| \ 13482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13483$as_echo X"$ac_file" | 13484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13485 s//\1/ 13486 q 13487 } 13488 /^X\(\/\/\)[^/].*/{ 13489 s//\1/ 13490 q 13491 } 13492 /^X\(\/\/\)$/{ 13493 s//\1/ 13494 q 13495 } 13496 /^X\(\/\).*/{ 13497 s//\1/ 13498 q 13499 } 13500 s/.*/./; q'` 13501 as_dir="$ac_dir"; as_fn_mkdir_p 13502 ac_builddir=. 13503 13504case "$ac_dir" in 13505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13506*) 13507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13508 # A ".." for each directory in $ac_dir_suffix. 13509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13510 case $ac_top_builddir_sub in 13511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13513 esac ;; 13514esac 13515ac_abs_top_builddir=$ac_pwd 13516ac_abs_builddir=$ac_pwd$ac_dir_suffix 13517# for backward compatibility: 13518ac_top_builddir=$ac_top_build_prefix 13519 13520case $srcdir in 13521 .) # We are building in place. 13522 ac_srcdir=. 13523 ac_top_srcdir=$ac_top_builddir_sub 13524 ac_abs_top_srcdir=$ac_pwd ;; 13525 [\\/]* | ?:[\\/]* ) # Absolute name. 13526 ac_srcdir=$srcdir$ac_dir_suffix; 13527 ac_top_srcdir=$srcdir 13528 ac_abs_top_srcdir=$srcdir ;; 13529 *) # Relative name. 13530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13531 ac_top_srcdir=$ac_top_build_prefix$srcdir 13532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13533esac 13534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13535 13536 13537 case $ac_mode in 13538 :F) 13539 # 13540 # CONFIG_FILE 13541 # 13542 13543 case $INSTALL in 13544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13546 esac 13547 ac_MKDIR_P=$MKDIR_P 13548 case $MKDIR_P in 13549 [\\/$]* | ?:[\\/]* ) ;; 13550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13551 esac 13552_ACEOF 13553 13554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13555# If the template does not know about datarootdir, expand it. 13556# FIXME: This hack should be removed a few years after 2.60. 13557ac_datarootdir_hack=; ac_datarootdir_seen= 13558ac_sed_dataroot=' 13559/datarootdir/ { 13560 p 13561 q 13562} 13563/@datadir@/p 13564/@docdir@/p 13565/@infodir@/p 13566/@localedir@/p 13567/@mandir@/p' 13568case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13569*datarootdir*) ac_datarootdir_seen=yes;; 13570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13572$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13573_ACEOF 13574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13575 ac_datarootdir_hack=' 13576 s&@datadir@&$datadir&g 13577 s&@docdir@&$docdir&g 13578 s&@infodir@&$infodir&g 13579 s&@localedir@&$localedir&g 13580 s&@mandir@&$mandir&g 13581 s&\\\${datarootdir}&$datarootdir&g' ;; 13582esac 13583_ACEOF 13584 13585# Neutralize VPATH when `$srcdir' = `.'. 13586# Shell code in configure.ac might set extrasub. 13587# FIXME: do we really want to maintain this feature? 13588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13589ac_sed_extra="$ac_vpsub 13590$extrasub 13591_ACEOF 13592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13593:t 13594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13595s|@configure_input@|$ac_sed_conf_input|;t t 13596s&@top_builddir@&$ac_top_builddir_sub&;t t 13597s&@top_build_prefix@&$ac_top_build_prefix&;t t 13598s&@srcdir@&$ac_srcdir&;t t 13599s&@abs_srcdir@&$ac_abs_srcdir&;t t 13600s&@top_srcdir@&$ac_top_srcdir&;t t 13601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13602s&@builddir@&$ac_builddir&;t t 13603s&@abs_builddir@&$ac_abs_builddir&;t t 13604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13605s&@INSTALL@&$ac_INSTALL&;t t 13606s&@MKDIR_P@&$ac_MKDIR_P&;t t 13607$ac_datarootdir_hack 13608" 13609eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13610 || as_fn_error "could not create $ac_file" "$LINENO" 5 13611 13612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13616which seems to be undefined. Please make sure it is defined." >&5 13617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13618which seems to be undefined. Please make sure it is defined." >&2;} 13619 13620 rm -f "$tmp/stdin" 13621 case $ac_file in 13622 -) cat "$tmp/out" && rm -f "$tmp/out";; 13623 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13624 esac \ 13625 || as_fn_error "could not create $ac_file" "$LINENO" 5 13626 ;; 13627 :H) 13628 # 13629 # CONFIG_HEADER 13630 # 13631 if test x"$ac_file" != x-; then 13632 { 13633 $as_echo "/* $configure_input */" \ 13634 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13635 } >"$tmp/config.h" \ 13636 || as_fn_error "could not create $ac_file" "$LINENO" 5 13637 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13639$as_echo "$as_me: $ac_file is unchanged" >&6;} 13640 else 13641 rm -f "$ac_file" 13642 mv "$tmp/config.h" "$ac_file" \ 13643 || as_fn_error "could not create $ac_file" "$LINENO" 5 13644 fi 13645 else 13646 $as_echo "/* $configure_input */" \ 13647 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13648 || as_fn_error "could not create -" "$LINENO" 5 13649 fi 13650# Compute "$ac_file"'s index in $config_headers. 13651_am_arg="$ac_file" 13652_am_stamp_count=1 13653for _am_header in $config_headers :; do 13654 case $_am_header in 13655 $_am_arg | $_am_arg:* ) 13656 break ;; 13657 * ) 13658 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13659 esac 13660done 13661echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13662$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13663 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13664 X"$_am_arg" : 'X\(//\)$' \| \ 13665 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13666$as_echo X"$_am_arg" | 13667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13668 s//\1/ 13669 q 13670 } 13671 /^X\(\/\/\)[^/].*/{ 13672 s//\1/ 13673 q 13674 } 13675 /^X\(\/\/\)$/{ 13676 s//\1/ 13677 q 13678 } 13679 /^X\(\/\).*/{ 13680 s//\1/ 13681 q 13682 } 13683 s/.*/./; q'`/stamp-h$_am_stamp_count 13684 ;; 13685 13686 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13687$as_echo "$as_me: executing $ac_file commands" >&6;} 13688 ;; 13689 esac 13690 13691 13692 case $ac_file$ac_mode in 13693 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13694 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13695 # are listed without --file. Let's play safe and only enable the eval 13696 # if we detect the quoting. 13697 case $CONFIG_FILES in 13698 *\'*) eval set x "$CONFIG_FILES" ;; 13699 *) set x $CONFIG_FILES ;; 13700 esac 13701 shift 13702 for mf 13703 do 13704 # Strip MF so we end up with the name of the file. 13705 mf=`echo "$mf" | sed -e 's/:.*$//'` 13706 # Check whether this is an Automake generated Makefile or not. 13707 # We used to match only the files named `Makefile.in', but 13708 # some people rename them; so instead we look at the file content. 13709 # Grep'ing the first line is not enough: some people post-process 13710 # each Makefile.in and add a new line on top of each file to say so. 13711 # Grep'ing the whole file is not good either: AIX grep has a line 13712 # limit of 2048, but all sed's we know have understand at least 4000. 13713 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13714 dirpart=`$as_dirname -- "$mf" || 13715$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13716 X"$mf" : 'X\(//\)[^/]' \| \ 13717 X"$mf" : 'X\(//\)$' \| \ 13718 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13719$as_echo X"$mf" | 13720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13721 s//\1/ 13722 q 13723 } 13724 /^X\(\/\/\)[^/].*/{ 13725 s//\1/ 13726 q 13727 } 13728 /^X\(\/\/\)$/{ 13729 s//\1/ 13730 q 13731 } 13732 /^X\(\/\).*/{ 13733 s//\1/ 13734 q 13735 } 13736 s/.*/./; q'` 13737 else 13738 continue 13739 fi 13740 # Extract the definition of DEPDIR, am__include, and am__quote 13741 # from the Makefile without running `make'. 13742 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13743 test -z "$DEPDIR" && continue 13744 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13745 test -z "am__include" && continue 13746 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13747 # When using ansi2knr, U may be empty or an underscore; expand it 13748 U=`sed -n 's/^U = //p' < "$mf"` 13749 # Find all dependency output files, they are included files with 13750 # $(DEPDIR) in their names. We invoke sed twice because it is the 13751 # simplest approach to changing $(DEPDIR) to its actual value in the 13752 # expansion. 13753 for file in `sed -n " 13754 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13755 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13756 # Make sure the directory exists. 13757 test -f "$dirpart/$file" && continue 13758 fdir=`$as_dirname -- "$file" || 13759$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13760 X"$file" : 'X\(//\)[^/]' \| \ 13761 X"$file" : 'X\(//\)$' \| \ 13762 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13763$as_echo X"$file" | 13764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13765 s//\1/ 13766 q 13767 } 13768 /^X\(\/\/\)[^/].*/{ 13769 s//\1/ 13770 q 13771 } 13772 /^X\(\/\/\)$/{ 13773 s//\1/ 13774 q 13775 } 13776 /^X\(\/\).*/{ 13777 s//\1/ 13778 q 13779 } 13780 s/.*/./; q'` 13781 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13782 # echo "creating $dirpart/$file" 13783 echo '# dummy' > "$dirpart/$file" 13784 done 13785 done 13786} 13787 ;; 13788 "libtool":C) 13789 13790 # See if we are running on zsh, and set the options which allow our 13791 # commands through without removal of \ escapes. 13792 if test -n "${ZSH_VERSION+set}" ; then 13793 setopt NO_GLOB_SUBST 13794 fi 13795 13796 cfgfile="${ofile}T" 13797 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13798 $RM "$cfgfile" 13799 13800 cat <<_LT_EOF >> "$cfgfile" 13801#! $SHELL 13802 13803# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13804# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13805# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13806# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13807# 13808# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13809# 2006, 2007, 2008 Free Software Foundation, Inc. 13810# Written by Gordon Matzigkeit, 1996 13811# 13812# This file is part of GNU Libtool. 13813# 13814# GNU Libtool is free software; you can redistribute it and/or 13815# modify it under the terms of the GNU General Public License as 13816# published by the Free Software Foundation; either version 2 of 13817# the License, or (at your option) any later version. 13818# 13819# As a special exception to the GNU General Public License, 13820# if you distribute this file as part of a program or library that 13821# is built using GNU Libtool, you may include this file under the 13822# same distribution terms that you use for the rest of that program. 13823# 13824# GNU Libtool is distributed in the hope that it will be useful, 13825# but WITHOUT ANY WARRANTY; without even the implied warranty of 13826# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13827# GNU General Public License for more details. 13828# 13829# You should have received a copy of the GNU General Public License 13830# along with GNU Libtool; see the file COPYING. If not, a copy 13831# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13832# obtained by writing to the Free Software Foundation, Inc., 13833# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13834 13835 13836# The names of the tagged configurations supported by this script. 13837available_tags="" 13838 13839# ### BEGIN LIBTOOL CONFIG 13840 13841# Whether or not to build static libraries. 13842build_old_libs=$enable_static 13843 13844# Which release of libtool.m4 was used? 13845macro_version=$macro_version 13846macro_revision=$macro_revision 13847 13848# Whether or not to build shared libraries. 13849build_libtool_libs=$enable_shared 13850 13851# What type of objects to build. 13852pic_mode=$pic_mode 13853 13854# Whether or not to optimize for fast installation. 13855fast_install=$enable_fast_install 13856 13857# The host system. 13858host_alias=$host_alias 13859host=$host 13860host_os=$host_os 13861 13862# The build system. 13863build_alias=$build_alias 13864build=$build 13865build_os=$build_os 13866 13867# A sed program that does not truncate output. 13868SED=$lt_SED 13869 13870# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13871Xsed="\$SED -e 1s/^X//" 13872 13873# A grep program that handles long lines. 13874GREP=$lt_GREP 13875 13876# An ERE matcher. 13877EGREP=$lt_EGREP 13878 13879# A literal string matcher. 13880FGREP=$lt_FGREP 13881 13882# A BSD- or MS-compatible name lister. 13883NM=$lt_NM 13884 13885# Whether we need soft or hard links. 13886LN_S=$lt_LN_S 13887 13888# What is the maximum length of a command? 13889max_cmd_len=$max_cmd_len 13890 13891# Object file suffix (normally "o"). 13892objext=$ac_objext 13893 13894# Executable file suffix (normally ""). 13895exeext=$exeext 13896 13897# whether the shell understands "unset". 13898lt_unset=$lt_unset 13899 13900# turn spaces into newlines. 13901SP2NL=$lt_lt_SP2NL 13902 13903# turn newlines into spaces. 13904NL2SP=$lt_lt_NL2SP 13905 13906# How to create reloadable object files. 13907reload_flag=$lt_reload_flag 13908reload_cmds=$lt_reload_cmds 13909 13910# An object symbol dumper. 13911OBJDUMP=$lt_OBJDUMP 13912 13913# Method to check whether dependent libraries are shared objects. 13914deplibs_check_method=$lt_deplibs_check_method 13915 13916# Command to use when deplibs_check_method == "file_magic". 13917file_magic_cmd=$lt_file_magic_cmd 13918 13919# The archiver. 13920AR=$lt_AR 13921AR_FLAGS=$lt_AR_FLAGS 13922 13923# A symbol stripping program. 13924STRIP=$lt_STRIP 13925 13926# Commands used to install an old-style archive. 13927RANLIB=$lt_RANLIB 13928old_postinstall_cmds=$lt_old_postinstall_cmds 13929old_postuninstall_cmds=$lt_old_postuninstall_cmds 13930 13931# A C compiler. 13932LTCC=$lt_CC 13933 13934# LTCC compiler flags. 13935LTCFLAGS=$lt_CFLAGS 13936 13937# Take the output of nm and produce a listing of raw symbols and C names. 13938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13939 13940# Transform the output of nm in a proper C declaration. 13941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13942 13943# Transform the output of nm in a C name address pair. 13944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13945 13946# Transform the output of nm in a C name address pair when lib prefix is needed. 13947global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13948 13949# The name of the directory that contains temporary libtool files. 13950objdir=$objdir 13951 13952# Shell to use when invoking shell scripts. 13953SHELL=$lt_SHELL 13954 13955# An echo program that does not interpret backslashes. 13956ECHO=$lt_ECHO 13957 13958# Used to examine libraries when file_magic_cmd begins with "file". 13959MAGIC_CMD=$MAGIC_CMD 13960 13961# Must we lock files when doing compilation? 13962need_locks=$lt_need_locks 13963 13964# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13965DSYMUTIL=$lt_DSYMUTIL 13966 13967# Tool to change global to local symbols on Mac OS X. 13968NMEDIT=$lt_NMEDIT 13969 13970# Tool to manipulate fat objects and archives on Mac OS X. 13971LIPO=$lt_LIPO 13972 13973# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13974OTOOL=$lt_OTOOL 13975 13976# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13977OTOOL64=$lt_OTOOL64 13978 13979# Old archive suffix (normally "a"). 13980libext=$libext 13981 13982# Shared library suffix (normally ".so"). 13983shrext_cmds=$lt_shrext_cmds 13984 13985# The commands to extract the exported symbol list from a shared archive. 13986extract_expsyms_cmds=$lt_extract_expsyms_cmds 13987 13988# Variables whose values should be saved in libtool wrapper scripts and 13989# restored at link time. 13990variables_saved_for_relink=$lt_variables_saved_for_relink 13991 13992# Do we need the "lib" prefix for modules? 13993need_lib_prefix=$need_lib_prefix 13994 13995# Do we need a version for libraries? 13996need_version=$need_version 13997 13998# Library versioning type. 13999version_type=$version_type 14000 14001# Shared library runtime path variable. 14002runpath_var=$runpath_var 14003 14004# Shared library path variable. 14005shlibpath_var=$shlibpath_var 14006 14007# Is shlibpath searched before the hard-coded library search path? 14008shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14009 14010# Format of library name prefix. 14011libname_spec=$lt_libname_spec 14012 14013# List of archive names. First name is the real one, the rest are links. 14014# The last name is the one that the linker finds with -lNAME 14015library_names_spec=$lt_library_names_spec 14016 14017# The coded name of the library, if different from the real name. 14018soname_spec=$lt_soname_spec 14019 14020# Command to use after installation of a shared archive. 14021postinstall_cmds=$lt_postinstall_cmds 14022 14023# Command to use after uninstallation of a shared archive. 14024postuninstall_cmds=$lt_postuninstall_cmds 14025 14026# Commands used to finish a libtool library installation in a directory. 14027finish_cmds=$lt_finish_cmds 14028 14029# As "finish_cmds", except a single script fragment to be evaled but 14030# not shown. 14031finish_eval=$lt_finish_eval 14032 14033# Whether we should hardcode library paths into libraries. 14034hardcode_into_libs=$hardcode_into_libs 14035 14036# Compile-time system search path for libraries. 14037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14038 14039# Run-time system search path for libraries. 14040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14041 14042# Whether dlopen is supported. 14043dlopen_support=$enable_dlopen 14044 14045# Whether dlopen of programs is supported. 14046dlopen_self=$enable_dlopen_self 14047 14048# Whether dlopen of statically linked programs is supported. 14049dlopen_self_static=$enable_dlopen_self_static 14050 14051# Commands to strip libraries. 14052old_striplib=$lt_old_striplib 14053striplib=$lt_striplib 14054 14055 14056# The linker used to build libraries. 14057LD=$lt_LD 14058 14059# Commands used to build an old-style archive. 14060old_archive_cmds=$lt_old_archive_cmds 14061 14062# A language specific compiler. 14063CC=$lt_compiler 14064 14065# Is the compiler the GNU compiler? 14066with_gcc=$GCC 14067 14068# Compiler flag to turn off builtin functions. 14069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14070 14071# How to pass a linker flag through the compiler. 14072wl=$lt_lt_prog_compiler_wl 14073 14074# Additional compiler flags for building library objects. 14075pic_flag=$lt_lt_prog_compiler_pic 14076 14077# Compiler flag to prevent dynamic linking. 14078link_static_flag=$lt_lt_prog_compiler_static 14079 14080# Does compiler simultaneously support -c and -o options? 14081compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14082 14083# Whether or not to add -lc for building shared libraries. 14084build_libtool_need_lc=$archive_cmds_need_lc 14085 14086# Whether or not to disallow shared libs when runtime libs are static. 14087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14088 14089# Compiler flag to allow reflexive dlopens. 14090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14091 14092# Compiler flag to generate shared objects directly from archives. 14093whole_archive_flag_spec=$lt_whole_archive_flag_spec 14094 14095# Whether the compiler copes with passing no objects directly. 14096compiler_needs_object=$lt_compiler_needs_object 14097 14098# Create an old-style archive from a shared archive. 14099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14100 14101# Create a temporary old-style archive to link instead of a shared archive. 14102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14103 14104# Commands used to build a shared archive. 14105archive_cmds=$lt_archive_cmds 14106archive_expsym_cmds=$lt_archive_expsym_cmds 14107 14108# Commands used to build a loadable module if different from building 14109# a shared archive. 14110module_cmds=$lt_module_cmds 14111module_expsym_cmds=$lt_module_expsym_cmds 14112 14113# Whether we are building with GNU ld or not. 14114with_gnu_ld=$lt_with_gnu_ld 14115 14116# Flag that allows shared libraries with undefined symbols to be built. 14117allow_undefined_flag=$lt_allow_undefined_flag 14118 14119# Flag that enforces no undefined symbols. 14120no_undefined_flag=$lt_no_undefined_flag 14121 14122# Flag to hardcode \$libdir into a binary during linking. 14123# This must work even if \$libdir does not exist 14124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14125 14126# If ld is used when linking, flag to hardcode \$libdir into a binary 14127# during linking. This must work even if \$libdir does not exist. 14128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14129 14130# Whether we need a single "-rpath" flag with a separated argument. 14131hardcode_libdir_separator=$lt_hardcode_libdir_separator 14132 14133# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14134# DIR into the resulting binary. 14135hardcode_direct=$hardcode_direct 14136 14137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14138# DIR into the resulting binary and the resulting library dependency is 14139# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14140# library is relocated. 14141hardcode_direct_absolute=$hardcode_direct_absolute 14142 14143# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14144# into the resulting binary. 14145hardcode_minus_L=$hardcode_minus_L 14146 14147# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14148# into the resulting binary. 14149hardcode_shlibpath_var=$hardcode_shlibpath_var 14150 14151# Set to "yes" if building a shared library automatically hardcodes DIR 14152# into the library and all subsequent libraries and executables linked 14153# against it. 14154hardcode_automatic=$hardcode_automatic 14155 14156# Set to yes if linker adds runtime paths of dependent libraries 14157# to runtime path list. 14158inherit_rpath=$inherit_rpath 14159 14160# Whether libtool must link a program against all its dependency libraries. 14161link_all_deplibs=$link_all_deplibs 14162 14163# Fix the shell variable \$srcfile for the compiler. 14164fix_srcfile_path=$lt_fix_srcfile_path 14165 14166# Set to "yes" if exported symbols are required. 14167always_export_symbols=$always_export_symbols 14168 14169# The commands to list exported symbols. 14170export_symbols_cmds=$lt_export_symbols_cmds 14171 14172# Symbols that should not be listed in the preloaded symbols. 14173exclude_expsyms=$lt_exclude_expsyms 14174 14175# Symbols that must always be exported. 14176include_expsyms=$lt_include_expsyms 14177 14178# Commands necessary for linking programs (against libraries) with templates. 14179prelink_cmds=$lt_prelink_cmds 14180 14181# Specify filename containing input files. 14182file_list_spec=$lt_file_list_spec 14183 14184# How to hardcode a shared library path into an executable. 14185hardcode_action=$hardcode_action 14186 14187# ### END LIBTOOL CONFIG 14188 14189_LT_EOF 14190 14191 case $host_os in 14192 aix3*) 14193 cat <<\_LT_EOF >> "$cfgfile" 14194# AIX sometimes has problems with the GCC collect2 program. For some 14195# reason, if we set the COLLECT_NAMES environment variable, the problems 14196# vanish in a puff of smoke. 14197if test "X${COLLECT_NAMES+set}" != Xset; then 14198 COLLECT_NAMES= 14199 export COLLECT_NAMES 14200fi 14201_LT_EOF 14202 ;; 14203 esac 14204 14205 14206ltmain="$ac_aux_dir/ltmain.sh" 14207 14208 14209 # We use sed instead of cat because bash on DJGPP gets confused if 14210 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14211 # text mode, it properly converts lines to CR/LF. This bash problem 14212 # is reportedly fixed, but why not run on old versions too? 14213 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14214 || (rm -f "$cfgfile"; exit 1) 14215 14216 case $xsi_shell in 14217 yes) 14218 cat << \_LT_EOF >> "$cfgfile" 14219 14220# func_dirname file append nondir_replacement 14221# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14222# otherwise set result to NONDIR_REPLACEMENT. 14223func_dirname () 14224{ 14225 case ${1} in 14226 */*) func_dirname_result="${1%/*}${2}" ;; 14227 * ) func_dirname_result="${3}" ;; 14228 esac 14229} 14230 14231# func_basename file 14232func_basename () 14233{ 14234 func_basename_result="${1##*/}" 14235} 14236 14237# func_dirname_and_basename file append nondir_replacement 14238# perform func_basename and func_dirname in a single function 14239# call: 14240# dirname: Compute the dirname of FILE. If nonempty, 14241# add APPEND to the result, otherwise set result 14242# to NONDIR_REPLACEMENT. 14243# value returned in "$func_dirname_result" 14244# basename: Compute filename of FILE. 14245# value retuned in "$func_basename_result" 14246# Implementation must be kept synchronized with func_dirname 14247# and func_basename. For efficiency, we do not delegate to 14248# those functions but instead duplicate the functionality here. 14249func_dirname_and_basename () 14250{ 14251 case ${1} in 14252 */*) func_dirname_result="${1%/*}${2}" ;; 14253 * ) func_dirname_result="${3}" ;; 14254 esac 14255 func_basename_result="${1##*/}" 14256} 14257 14258# func_stripname prefix suffix name 14259# strip PREFIX and SUFFIX off of NAME. 14260# PREFIX and SUFFIX must not contain globbing or regex special 14261# characters, hashes, percent signs, but SUFFIX may contain a leading 14262# dot (in which case that matches only a dot). 14263func_stripname () 14264{ 14265 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14266 # positional parameters, so assign one to ordinary parameter first. 14267 func_stripname_result=${3} 14268 func_stripname_result=${func_stripname_result#"${1}"} 14269 func_stripname_result=${func_stripname_result%"${2}"} 14270} 14271 14272# func_opt_split 14273func_opt_split () 14274{ 14275 func_opt_split_opt=${1%%=*} 14276 func_opt_split_arg=${1#*=} 14277} 14278 14279# func_lo2o object 14280func_lo2o () 14281{ 14282 case ${1} in 14283 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14284 *) func_lo2o_result=${1} ;; 14285 esac 14286} 14287 14288# func_xform libobj-or-source 14289func_xform () 14290{ 14291 func_xform_result=${1%.*}.lo 14292} 14293 14294# func_arith arithmetic-term... 14295func_arith () 14296{ 14297 func_arith_result=$(( $* )) 14298} 14299 14300# func_len string 14301# STRING may not start with a hyphen. 14302func_len () 14303{ 14304 func_len_result=${#1} 14305} 14306 14307_LT_EOF 14308 ;; 14309 *) # Bourne compatible functions. 14310 cat << \_LT_EOF >> "$cfgfile" 14311 14312# func_dirname file append nondir_replacement 14313# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14314# otherwise set result to NONDIR_REPLACEMENT. 14315func_dirname () 14316{ 14317 # Extract subdirectory from the argument. 14318 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14319 if test "X$func_dirname_result" = "X${1}"; then 14320 func_dirname_result="${3}" 14321 else 14322 func_dirname_result="$func_dirname_result${2}" 14323 fi 14324} 14325 14326# func_basename file 14327func_basename () 14328{ 14329 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14330} 14331 14332 14333# func_stripname prefix suffix name 14334# strip PREFIX and SUFFIX off of NAME. 14335# PREFIX and SUFFIX must not contain globbing or regex special 14336# characters, hashes, percent signs, but SUFFIX may contain a leading 14337# dot (in which case that matches only a dot). 14338# func_strip_suffix prefix name 14339func_stripname () 14340{ 14341 case ${2} in 14342 .*) func_stripname_result=`$ECHO "X${3}" \ 14343 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14344 *) func_stripname_result=`$ECHO "X${3}" \ 14345 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14346 esac 14347} 14348 14349# sed scripts: 14350my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14351my_sed_long_arg='1s/^-[^=]*=//' 14352 14353# func_opt_split 14354func_opt_split () 14355{ 14356 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14357 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14358} 14359 14360# func_lo2o object 14361func_lo2o () 14362{ 14363 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14364} 14365 14366# func_xform libobj-or-source 14367func_xform () 14368{ 14369 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14370} 14371 14372# func_arith arithmetic-term... 14373func_arith () 14374{ 14375 func_arith_result=`expr "$@"` 14376} 14377 14378# func_len string 14379# STRING may not start with a hyphen. 14380func_len () 14381{ 14382 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14383} 14384 14385_LT_EOF 14386esac 14387 14388case $lt_shell_append in 14389 yes) 14390 cat << \_LT_EOF >> "$cfgfile" 14391 14392# func_append var value 14393# Append VALUE to the end of shell variable VAR. 14394func_append () 14395{ 14396 eval "$1+=\$2" 14397} 14398_LT_EOF 14399 ;; 14400 *) 14401 cat << \_LT_EOF >> "$cfgfile" 14402 14403# func_append var value 14404# Append VALUE to the end of shell variable VAR. 14405func_append () 14406{ 14407 eval "$1=\$$1\$2" 14408} 14409 14410_LT_EOF 14411 ;; 14412 esac 14413 14414 14415 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14416 || (rm -f "$cfgfile"; exit 1) 14417 14418 mv -f "$cfgfile" "$ofile" || 14419 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14420 chmod +x "$ofile" 14421 14422 ;; 14423 14424 esac 14425done # for ac_tag 14426 14427 14428as_fn_exit 0 14429_ACEOF 14430ac_clean_files=$ac_clean_files_save 14431 14432test $ac_write_fail = 0 || 14433 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14434 14435 14436# configure is writing to config.log, and then calls config.status. 14437# config.status does its own redirection, appending to config.log. 14438# Unfortunately, on DOS this fails, as config.log is still kept open 14439# by configure, so config.status won't be able to write to it; its 14440# output is simply discarded. So we exec the FD to /dev/null, 14441# effectively closing config.log, so it can be properly (re)opened and 14442# appended to by config.status. When coming back to configure, we 14443# need to make the FD available again. 14444if test "$no_create" != yes; then 14445 ac_cs_success=: 14446 ac_config_status_args= 14447 test "$silent" = yes && 14448 ac_config_status_args="$ac_config_status_args --quiet" 14449 exec 5>/dev/null 14450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14451 exec 5>>config.log 14452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14453 # would make configure fail if this is the last instruction. 14454 $ac_cs_success || as_fn_exit $? 14455fi 14456if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14458$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14459fi 14460 14461