configure revision 7d17d341
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for xf86-video-chips 1.2.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='xf86-video-chips' 704PACKAGE_TARNAME='xf86-video-chips' 705PACKAGE_VERSION='1.2.3' 706PACKAGE_STRING='xf86-video-chips 1.2.3' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710ac_unique_file="Makefile.am" 711# Factoring default headers for most tests. 712ac_includes_default="\ 713#include <stdio.h> 714#ifdef HAVE_SYS_TYPES_H 715# include <sys/types.h> 716#endif 717#ifdef HAVE_SYS_STAT_H 718# include <sys/stat.h> 719#endif 720#ifdef STDC_HEADERS 721# include <stdlib.h> 722# include <stddef.h> 723#else 724# ifdef HAVE_STDLIB_H 725# include <stdlib.h> 726# endif 727#endif 728#ifdef HAVE_STRING_H 729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 730# include <memory.h> 731# endif 732# include <string.h> 733#endif 734#ifdef HAVE_STRINGS_H 735# include <strings.h> 736#endif 737#ifdef HAVE_INTTYPES_H 738# include <inttypes.h> 739#endif 740#ifdef HAVE_STDINT_H 741# include <stdint.h> 742#endif 743#ifdef HAVE_UNISTD_H 744# include <unistd.h> 745#endif" 746 747ac_subst_vars='am__EXEEXT_FALSE 748am__EXEEXT_TRUE 749LTLIBOBJS 750LIBOBJS 751DRIVER_NAME 752moduledir 753BUILD_UTILS_FALSE 754BUILD_UTILS_TRUE 755XSERVER_LIBPCIACCESS_FALSE 756XSERVER_LIBPCIACCESS_TRUE 757PCIACCESS_LIBS 758PCIACCESS_CFLAGS 759XORG_LIBS 760XORG_CFLAGS 761OTOOL64 762OTOOL 763LIPO 764NMEDIT 765DSYMUTIL 766lt_ECHO 767RANLIB 768AR 769OBJDUMP 770LN_S 771NM 772ac_ct_DUMPBIN 773DUMPBIN 774LD 775FGREP 776LIBTOOL 777AM_BACKSLASH 778AM_DEFAULT_VERBOSITY 779MAN_SUBSTS 780XORG_MAN_PAGE 781ADMIN_MAN_DIR 782DRIVER_MAN_DIR 783MISC_MAN_DIR 784FILE_MAN_DIR 785LIB_MAN_DIR 786APP_MAN_DIR 787ADMIN_MAN_SUFFIX 788DRIVER_MAN_SUFFIX 789MISC_MAN_SUFFIX 790FILE_MAN_SUFFIX 791LIB_MAN_SUFFIX 792APP_MAN_SUFFIX 793SED 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802INSTALL_CMD 803PKG_CONFIG 804CHANGELOG_CMD 805CWARNFLAGS 806EGREP 807GREP 808CPP 809am__fastdepCC_FALSE 810am__fastdepCC_TRUE 811CCDEPMODE 812AMDEPBACKSLASH 813AMDEP_FALSE 814AMDEP_TRUE 815am__quote 816am__include 817DEPDIR 818OBJEXT 819EXEEXT 820ac_ct_CC 821CPPFLAGS 822LDFLAGS 823CFLAGS 824CC 825MAINT 826MAINTAINER_MODE_FALSE 827MAINTAINER_MODE_TRUE 828am__untar 829am__tar 830AMTAR 831am__leading_dot 832SET_MAKE 833AWK 834mkdir_p 835MKDIR_P 836INSTALL_STRIP_PROGRAM 837STRIP 838install_sh 839MAKEINFO 840AUTOHEADER 841AUTOMAKE 842AUTOCONF 843ACLOCAL 844VERSION 845PACKAGE 846CYGPATH_W 847am__isrc 848INSTALL_DATA 849INSTALL_SCRIPT 850INSTALL_PROGRAM 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_maintainer_mode 893enable_dependency_tracking 894enable_strict_compilation 895enable_silent_rules 896enable_static 897enable_shared 898with_pic 899enable_fast_install 900with_gnu_ld 901enable_libtool_lock 902with_xorg_module_dir 903' 904 ac_precious_vars='build_alias 905host_alias 906target_alias 907CC 908CFLAGS 909LDFLAGS 910LIBS 911CPPFLAGS 912CPP 913PKG_CONFIG 914XORG_CFLAGS 915XORG_LIBS 916PCIACCESS_CFLAGS 917PCIACCESS_LIBS' 918 919 920# Initialize some variables set by options. 921ac_init_help= 922ac_init_version=false 923ac_unrecognized_opts= 924ac_unrecognized_sep= 925# The variables have the same names as the options, with 926# dashes changed to underlines. 927cache_file=/dev/null 928exec_prefix=NONE 929no_create= 930no_recursion= 931prefix=NONE 932program_prefix=NONE 933program_suffix=NONE 934program_transform_name=s,x,x, 935silent= 936site= 937srcdir= 938verbose= 939x_includes=NONE 940x_libraries=NONE 941 942# Installation directory options. 943# These are left unexpanded so users can "make install exec_prefix=/foo" 944# and all the variables that are supposed to be based on exec_prefix 945# by default will actually change. 946# Use braces instead of parens because sh, perl, etc. also accept them. 947# (The list follows the same order as the GNU Coding Standards.) 948bindir='${exec_prefix}/bin' 949sbindir='${exec_prefix}/sbin' 950libexecdir='${exec_prefix}/libexec' 951datarootdir='${prefix}/share' 952datadir='${datarootdir}' 953sysconfdir='${prefix}/etc' 954sharedstatedir='${prefix}/com' 955localstatedir='${prefix}/var' 956includedir='${prefix}/include' 957oldincludedir='/usr/include' 958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 959infodir='${datarootdir}/info' 960htmldir='${docdir}' 961dvidir='${docdir}' 962pdfdir='${docdir}' 963psdir='${docdir}' 964libdir='${exec_prefix}/lib' 965localedir='${datarootdir}/locale' 966mandir='${datarootdir}/man' 967 968ac_prev= 969ac_dashdash= 970for ac_option 971do 972 # If the previous option needs an argument, assign it. 973 if test -n "$ac_prev"; then 974 eval $ac_prev=\$ac_option 975 ac_prev= 976 continue 977 fi 978 979 case $ac_option in 980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 981 *) ac_optarg=yes ;; 982 esac 983 984 # Accept the important Cygnus configure options, so we can diagnose typos. 985 986 case $ac_dashdash$ac_option in 987 --) 988 ac_dashdash=yes ;; 989 990 -bindir | --bindir | --bindi | --bind | --bin | --bi) 991 ac_prev=bindir ;; 992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 993 bindir=$ac_optarg ;; 994 995 -build | --build | --buil | --bui | --bu) 996 ac_prev=build_alias ;; 997 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 998 build_alias=$ac_optarg ;; 999 1000 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1002 ac_prev=cache_file ;; 1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1005 cache_file=$ac_optarg ;; 1006 1007 --config-cache | -C) 1008 cache_file=config.cache ;; 1009 1010 -datadir | --datadir | --datadi | --datad) 1011 ac_prev=datadir ;; 1012 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1013 datadir=$ac_optarg ;; 1014 1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1016 | --dataroo | --dataro | --datar) 1017 ac_prev=datarootdir ;; 1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1020 datarootdir=$ac_optarg ;; 1021 1022 -disable-* | --disable-*) 1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1024 # Reject names that are not valid shell variable names. 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1026 as_fn_error "invalid feature name: $ac_useropt" 1027 ac_useropt_orig=$ac_useropt 1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1029 case $ac_user_opts in 1030 *" 1031"enable_$ac_useropt" 1032"*) ;; 1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1034 ac_unrecognized_sep=', ';; 1035 esac 1036 eval enable_$ac_useropt=no ;; 1037 1038 -docdir | --docdir | --docdi | --doc | --do) 1039 ac_prev=docdir ;; 1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1041 docdir=$ac_optarg ;; 1042 1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1044 ac_prev=dvidir ;; 1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1046 dvidir=$ac_optarg ;; 1047 1048 -enable-* | --enable-*) 1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1050 # Reject names that are not valid shell variable names. 1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1052 as_fn_error "invalid feature name: $ac_useropt" 1053 ac_useropt_orig=$ac_useropt 1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1055 case $ac_user_opts in 1056 *" 1057"enable_$ac_useropt" 1058"*) ;; 1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1060 ac_unrecognized_sep=', ';; 1061 esac 1062 eval enable_$ac_useropt=\$ac_optarg ;; 1063 1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1066 | --exec | --exe | --ex) 1067 ac_prev=exec_prefix ;; 1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1070 | --exec=* | --exe=* | --ex=*) 1071 exec_prefix=$ac_optarg ;; 1072 1073 -gas | --gas | --ga | --g) 1074 # Obsolete; use --with-gas. 1075 with_gas=yes ;; 1076 1077 -help | --help | --hel | --he | -h) 1078 ac_init_help=long ;; 1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1080 ac_init_help=recursive ;; 1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1082 ac_init_help=short ;; 1083 1084 -host | --host | --hos | --ho) 1085 ac_prev=host_alias ;; 1086 -host=* | --host=* | --hos=* | --ho=*) 1087 host_alias=$ac_optarg ;; 1088 1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1090 ac_prev=htmldir ;; 1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1092 | --ht=*) 1093 htmldir=$ac_optarg ;; 1094 1095 -includedir | --includedir | --includedi | --included | --include \ 1096 | --includ | --inclu | --incl | --inc) 1097 ac_prev=includedir ;; 1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1099 | --includ=* | --inclu=* | --incl=* | --inc=*) 1100 includedir=$ac_optarg ;; 1101 1102 -infodir | --infodir | --infodi | --infod | --info | --inf) 1103 ac_prev=infodir ;; 1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1105 infodir=$ac_optarg ;; 1106 1107 -libdir | --libdir | --libdi | --libd) 1108 ac_prev=libdir ;; 1109 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1110 libdir=$ac_optarg ;; 1111 1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1113 | --libexe | --libex | --libe) 1114 ac_prev=libexecdir ;; 1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1116 | --libexe=* | --libex=* | --libe=*) 1117 libexecdir=$ac_optarg ;; 1118 1119 -localedir | --localedir | --localedi | --localed | --locale) 1120 ac_prev=localedir ;; 1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1122 localedir=$ac_optarg ;; 1123 1124 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1125 | --localstate | --localstat | --localsta | --localst | --locals) 1126 ac_prev=localstatedir ;; 1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1129 localstatedir=$ac_optarg ;; 1130 1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1132 ac_prev=mandir ;; 1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1134 mandir=$ac_optarg ;; 1135 1136 -nfp | --nfp | --nf) 1137 # Obsolete; use --without-fp. 1138 with_fp=no ;; 1139 1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1141 | --no-cr | --no-c | -n) 1142 no_create=yes ;; 1143 1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1146 no_recursion=yes ;; 1147 1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1150 | --oldin | --oldi | --old | --ol | --o) 1151 ac_prev=oldincludedir ;; 1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1155 oldincludedir=$ac_optarg ;; 1156 1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1158 ac_prev=prefix ;; 1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1160 prefix=$ac_optarg ;; 1161 1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1163 | --program-pre | --program-pr | --program-p) 1164 ac_prev=program_prefix ;; 1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1167 program_prefix=$ac_optarg ;; 1168 1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1170 | --program-suf | --program-su | --program-s) 1171 ac_prev=program_suffix ;; 1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1174 program_suffix=$ac_optarg ;; 1175 1176 -program-transform-name | --program-transform-name \ 1177 | --program-transform-nam | --program-transform-na \ 1178 | --program-transform-n | --program-transform- \ 1179 | --program-transform | --program-transfor \ 1180 | --program-transfo | --program-transf \ 1181 | --program-trans | --program-tran \ 1182 | --progr-tra | --program-tr | --program-t) 1183 ac_prev=program_transform_name ;; 1184 -program-transform-name=* | --program-transform-name=* \ 1185 | --program-transform-nam=* | --program-transform-na=* \ 1186 | --program-transform-n=* | --program-transform-=* \ 1187 | --program-transform=* | --program-transfor=* \ 1188 | --program-transfo=* | --program-transf=* \ 1189 | --program-trans=* | --program-tran=* \ 1190 | --progr-tra=* | --program-tr=* | --program-t=*) 1191 program_transform_name=$ac_optarg ;; 1192 1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1194 ac_prev=pdfdir ;; 1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1196 pdfdir=$ac_optarg ;; 1197 1198 -psdir | --psdir | --psdi | --psd | --ps) 1199 ac_prev=psdir ;; 1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1201 psdir=$ac_optarg ;; 1202 1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1204 | -silent | --silent | --silen | --sile | --sil) 1205 silent=yes ;; 1206 1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1208 ac_prev=sbindir ;; 1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1210 | --sbi=* | --sb=*) 1211 sbindir=$ac_optarg ;; 1212 1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1215 | --sharedst | --shareds | --shared | --share | --shar \ 1216 | --sha | --sh) 1217 ac_prev=sharedstatedir ;; 1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1221 | --sha=* | --sh=*) 1222 sharedstatedir=$ac_optarg ;; 1223 1224 -site | --site | --sit) 1225 ac_prev=site ;; 1226 -site=* | --site=* | --sit=*) 1227 site=$ac_optarg ;; 1228 1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1230 ac_prev=srcdir ;; 1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1232 srcdir=$ac_optarg ;; 1233 1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1235 | --syscon | --sysco | --sysc | --sys | --sy) 1236 ac_prev=sysconfdir ;; 1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1239 sysconfdir=$ac_optarg ;; 1240 1241 -target | --target | --targe | --targ | --tar | --ta | --t) 1242 ac_prev=target_alias ;; 1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1244 target_alias=$ac_optarg ;; 1245 1246 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1247 verbose=yes ;; 1248 1249 -version | --version | --versio | --versi | --vers | -V) 1250 ac_init_version=: ;; 1251 1252 -with-* | --with-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 as_fn_error "invalid package name: $ac_useropt" 1257 ac_useropt_orig=$ac_useropt 1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1259 case $ac_user_opts in 1260 *" 1261"with_$ac_useropt" 1262"*) ;; 1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1264 ac_unrecognized_sep=', ';; 1265 esac 1266 eval with_$ac_useropt=\$ac_optarg ;; 1267 1268 -without-* | --without-*) 1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1272 as_fn_error "invalid package name: $ac_useropt" 1273 ac_useropt_orig=$ac_useropt 1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1275 case $ac_user_opts in 1276 *" 1277"with_$ac_useropt" 1278"*) ;; 1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1280 ac_unrecognized_sep=', ';; 1281 esac 1282 eval with_$ac_useropt=no ;; 1283 1284 --x) 1285 # Obsolete; use --with-x. 1286 with_x=yes ;; 1287 1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1289 | --x-incl | --x-inc | --x-in | --x-i) 1290 ac_prev=x_includes ;; 1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1293 x_includes=$ac_optarg ;; 1294 1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1297 ac_prev=x_libraries ;; 1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1300 x_libraries=$ac_optarg ;; 1301 1302 -*) as_fn_error "unrecognized option: \`$ac_option' 1303Try \`$0 --help' for more information." 1304 ;; 1305 1306 *=*) 1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1308 # Reject names that are not valid shell variable names. 1309 case $ac_envvar in #( 1310 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1311 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1312 esac 1313 eval $ac_envvar=\$ac_optarg 1314 export $ac_envvar ;; 1315 1316 *) 1317 # FIXME: should be removed in autoconf 3.0. 1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1322 ;; 1323 1324 esac 1325done 1326 1327if test -n "$ac_prev"; then 1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1329 as_fn_error "missing argument to $ac_option" 1330fi 1331 1332if test -n "$ac_unrecognized_opts"; then 1333 case $enable_option_checking in 1334 no) ;; 1335 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1337 esac 1338fi 1339 1340# Check all directory arguments for consistency. 1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1342 datadir sysconfdir sharedstatedir localstatedir includedir \ 1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1344 libdir localedir mandir 1345do 1346 eval ac_val=\$$ac_var 1347 # Remove trailing slashes. 1348 case $ac_val in 1349 */ ) 1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1351 eval $ac_var=\$ac_val;; 1352 esac 1353 # Be sure to have absolute directory names. 1354 case $ac_val in 1355 [\\/$]* | ?:[\\/]* ) continue;; 1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1357 esac 1358 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1359done 1360 1361# There might be people who depend on the old broken behavior: `$host' 1362# used to hold the argument of --host etc. 1363# FIXME: To remove some day. 1364build=$build_alias 1365host=$host_alias 1366target=$target_alias 1367 1368# FIXME: To remove some day. 1369if test "x$host_alias" != x; then 1370 if test "x$build_alias" = x; then 1371 cross_compiling=maybe 1372 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1373 If a cross compiler is detected then cross compile mode will be used." >&2 1374 elif test "x$build_alias" != "x$host_alias"; then 1375 cross_compiling=yes 1376 fi 1377fi 1378 1379ac_tool_prefix= 1380test -n "$host_alias" && ac_tool_prefix=$host_alias- 1381 1382test "$silent" = yes && exec 6>/dev/null 1383 1384 1385ac_pwd=`pwd` && test -n "$ac_pwd" && 1386ac_ls_di=`ls -di .` && 1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1388 as_fn_error "working directory cannot be determined" 1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1390 as_fn_error "pwd does not report name of working directory" 1391 1392 1393# Find the source files, if location was not specified. 1394if test -z "$srcdir"; then 1395 ac_srcdir_defaulted=yes 1396 # Try the directory containing this script, then the parent directory. 1397 ac_confdir=`$as_dirname -- "$as_myself" || 1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1399 X"$as_myself" : 'X\(//\)[^/]' \| \ 1400 X"$as_myself" : 'X\(//\)$' \| \ 1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1402$as_echo X"$as_myself" | 1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1404 s//\1/ 1405 q 1406 } 1407 /^X\(\/\/\)[^/].*/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\/\)$/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\).*/{ 1416 s//\1/ 1417 q 1418 } 1419 s/.*/./; q'` 1420 srcdir=$ac_confdir 1421 if test ! -r "$srcdir/$ac_unique_file"; then 1422 srcdir=.. 1423 fi 1424else 1425 ac_srcdir_defaulted=no 1426fi 1427if test ! -r "$srcdir/$ac_unique_file"; then 1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1429 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1430fi 1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1432ac_abs_confdir=`( 1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1434 pwd)` 1435# When building in place, set srcdir=. 1436if test "$ac_abs_confdir" = "$ac_pwd"; then 1437 srcdir=. 1438fi 1439# Remove unnecessary trailing slashes from srcdir. 1440# Double slashes in file names in object file debugging info 1441# mess up M-x gdb in Emacs. 1442case $srcdir in 1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1444esac 1445for ac_var in $ac_precious_vars; do 1446 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1447 eval ac_env_${ac_var}_value=\$${ac_var} 1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1449 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1450done 1451 1452# 1453# Report the --help message. 1454# 1455if test "$ac_init_help" = "long"; then 1456 # Omit some internal or obsolete options to make the list less imposing. 1457 # This message is too long to be a string in the A/UX 3.1 sh. 1458 cat <<_ACEOF 1459\`configure' configures xf86-video-chips 1.2.3 to adapt to many kinds of systems. 1460 1461Usage: $0 [OPTION]... [VAR=VALUE]... 1462 1463To assign environment variables (e.g., CC, CFLAGS...), specify them as 1464VAR=VALUE. See below for descriptions of some of the useful variables. 1465 1466Defaults for the options are specified in brackets. 1467 1468Configuration: 1469 -h, --help display this help and exit 1470 --help=short display options specific to this package 1471 --help=recursive display the short help of all the included packages 1472 -V, --version display version information and exit 1473 -q, --quiet, --silent do not print \`checking...' messages 1474 --cache-file=FILE cache test results in FILE [disabled] 1475 -C, --config-cache alias for \`--cache-file=config.cache' 1476 -n, --no-create do not create output files 1477 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1478 1479Installation directories: 1480 --prefix=PREFIX install architecture-independent files in PREFIX 1481 [$ac_default_prefix] 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1483 [PREFIX] 1484 1485By default, \`make install' will install all the files in 1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1487an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1488for instance \`--prefix=\$HOME'. 1489 1490For better control, use the options below. 1491 1492Fine tuning of the installation directories: 1493 --bindir=DIR user executables [EPREFIX/bin] 1494 --sbindir=DIR system admin executables [EPREFIX/sbin] 1495 --libexecdir=DIR program executables [EPREFIX/libexec] 1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1499 --libdir=DIR object code libraries [EPREFIX/lib] 1500 --includedir=DIR C header files [PREFIX/include] 1501 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1504 --infodir=DIR info documentation [DATAROOTDIR/info] 1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1506 --mandir=DIR man documentation [DATAROOTDIR/man] 1507 --docdir=DIR documentation root 1508 [DATAROOTDIR/doc/xf86-video-chips] 1509 --htmldir=DIR html documentation [DOCDIR] 1510 --dvidir=DIR dvi documentation [DOCDIR] 1511 --pdfdir=DIR pdf documentation [DOCDIR] 1512 --psdir=DIR ps documentation [DOCDIR] 1513_ACEOF 1514 1515 cat <<\_ACEOF 1516 1517Program names: 1518 --program-prefix=PREFIX prepend PREFIX to installed program names 1519 --program-suffix=SUFFIX append SUFFIX to installed program names 1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1521 1522System types: 1523 --build=BUILD configure for building on BUILD [guessed] 1524 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1525_ACEOF 1526fi 1527 1528if test -n "$ac_init_help"; then 1529 case $ac_init_help in 1530 short | recursive ) echo "Configuration of xf86-video-chips 1.2.3:";; 1531 esac 1532 cat <<\_ACEOF 1533 1534Optional Features: 1535 --disable-option-checking ignore unrecognized --enable/--with options 1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1538 --enable-maintainer-mode enable make rules and dependencies not useful 1539 (and sometimes confusing) to the casual installer 1540 --disable-dependency-tracking speeds up one-time build 1541 --enable-dependency-tracking do not reject slow dependency extractors 1542 --enable-strict-compilation 1543 Enable all warnings from compiler and make them 1544 errors (default: disabled) 1545 --enable-silent-rules less verbose build output (undo: `make V=1') 1546 --disable-silent-rules verbose build output (undo: `make V=0') 1547 --enable-static[=PKGS] build static libraries [default=no] 1548 --enable-shared[=PKGS] build shared libraries [default=yes] 1549 --enable-fast-install[=PKGS] 1550 optimize for fast installation [default=yes] 1551 --disable-libtool-lock avoid locking (might break parallel builds) 1552 1553Optional Packages: 1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1556 --with-pic try to use only PIC/non-PIC objects [default=use 1557 both] 1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1559 --with-xorg-module-dir=DIR 1560 Default xorg module directory 1561 [[default=$libdir/xorg/modules]] 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 CPP C preprocessor 1572 PKG_CONFIG path to pkg-config utility 1573 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1574 XORG_LIBS linker flags for XORG, overriding pkg-config 1575 PCIACCESS_CFLAGS 1576 C compiler flags for PCIACCESS, overriding pkg-config 1577 PCIACCESS_LIBS 1578 linker flags for PCIACCESS, overriding pkg-config 1579 1580Use these variables to override the choices made by `configure' or to help 1581it to find libraries and programs with nonstandard names/locations. 1582 1583Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1584_ACEOF 1585ac_status=$? 1586fi 1587 1588if test "$ac_init_help" = "recursive"; then 1589 # If there are subdirs, report their specific --help. 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1591 test -d "$ac_dir" || 1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1593 continue 1594 ac_builddir=. 1595 1596case "$ac_dir" in 1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1598*) 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1600 # A ".." for each directory in $ac_dir_suffix. 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1602 case $ac_top_builddir_sub in 1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1605 esac ;; 1606esac 1607ac_abs_top_builddir=$ac_pwd 1608ac_abs_builddir=$ac_pwd$ac_dir_suffix 1609# for backward compatibility: 1610ac_top_builddir=$ac_top_build_prefix 1611 1612case $srcdir in 1613 .) # We are building in place. 1614 ac_srcdir=. 1615 ac_top_srcdir=$ac_top_builddir_sub 1616 ac_abs_top_srcdir=$ac_pwd ;; 1617 [\\/]* | ?:[\\/]* ) # Absolute name. 1618 ac_srcdir=$srcdir$ac_dir_suffix; 1619 ac_top_srcdir=$srcdir 1620 ac_abs_top_srcdir=$srcdir ;; 1621 *) # Relative name. 1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1623 ac_top_srcdir=$ac_top_build_prefix$srcdir 1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1625esac 1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1627 1628 cd "$ac_dir" || { ac_status=$?; continue; } 1629 # Check for guested configure. 1630 if test -f "$ac_srcdir/configure.gnu"; then 1631 echo && 1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1633 elif test -f "$ac_srcdir/configure"; then 1634 echo && 1635 $SHELL "$ac_srcdir/configure" --help=recursive 1636 else 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1638 fi || ac_status=$? 1639 cd "$ac_pwd" || { ac_status=$?; break; } 1640 done 1641fi 1642 1643test -n "$ac_init_help" && exit $ac_status 1644if $ac_init_version; then 1645 cat <<\_ACEOF 1646xf86-video-chips configure 1.2.3 1647generated by GNU Autoconf 2.65 1648 1649Copyright (C) 2009 Free Software Foundation, Inc. 1650This configure script is free software; the Free Software Foundation 1651gives unlimited permission to copy, distribute and modify it. 1652_ACEOF 1653 exit 1654fi 1655 1656## ------------------------ ## 1657## Autoconf initialization. ## 1658## ------------------------ ## 1659 1660# ac_fn_c_try_compile LINENO 1661# -------------------------- 1662# Try to compile conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext 1667 if { { ac_try="$ac_compile" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_compile") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest.$ac_objext; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_compile 1697 1698# ac_fn_c_check_decl LINENO SYMBOL VAR 1699# ------------------------------------ 1700# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1701ac_fn_c_check_decl () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1705$as_echo_n "checking whether $2 is declared... " >&6; } 1706if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1707 $as_echo_n "(cached) " >&6 1708else 1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1710/* end confdefs.h. */ 1711$4 1712int 1713main () 1714{ 1715#ifndef $2 1716 (void) $2; 1717#endif 1718 1719 ; 1720 return 0; 1721} 1722_ACEOF 1723if ac_fn_c_try_compile "$LINENO"; then : 1724 eval "$3=yes" 1725else 1726 eval "$3=no" 1727fi 1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1729fi 1730eval ac_res=\$$3 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732$as_echo "$ac_res" >&6; } 1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1734 1735} # ac_fn_c_check_decl 1736 1737# ac_fn_c_try_cpp LINENO 1738# ---------------------- 1739# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1740ac_fn_c_try_cpp () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { { ac_try="$ac_cpp conftest.$ac_ext" 1744case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747esac 1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749$as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1751 ac_status=$? 1752 if test -s conftest.err; then 1753 grep -v '^ *+' conftest.err >conftest.er1 1754 cat conftest.er1 >&5 1755 mv -f conftest.er1 conftest.err 1756 fi 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; } >/dev/null && { 1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1760 test ! -s conftest.err 1761 }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: failed program was:" >&5 1765sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=1 1768fi 1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_cpp 1773 1774# ac_fn_c_try_run LINENO 1775# ---------------------- 1776# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1777# that executables *can* be run. 1778ac_fn_c_try_run () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 if { { ac_try="$ac_link" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_link") 2>&5 1789 ac_status=$? 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1792 { { case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_try") 2>&5 1799 ac_status=$? 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; }; }; then : 1802 ac_retval=0 1803else 1804 $as_echo "$as_me: program exited with status $ac_status" >&5 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=$ac_status 1809fi 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1812 as_fn_set_status $ac_retval 1813 1814} # ac_fn_c_try_run 1815 1816# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1817# ------------------------------------------------------- 1818# Tests whether HEADER exists and can be compiled using the include files in 1819# INCLUDES, setting the cache variable VAR accordingly. 1820ac_fn_c_check_header_compile () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824$as_echo_n "checking for $2... " >&6; } 1825if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1826 $as_echo_n "(cached) " >&6 1827else 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829/* end confdefs.h. */ 1830$4 1831#include <$2> 1832_ACEOF 1833if ac_fn_c_try_compile "$LINENO"; then : 1834 eval "$3=yes" 1835else 1836 eval "$3=no" 1837fi 1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1839fi 1840eval ac_res=\$$3 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1842$as_echo "$ac_res" >&6; } 1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1844 1845} # ac_fn_c_check_header_compile 1846 1847# ac_fn_c_try_link LINENO 1848# ----------------------- 1849# Try to link conftest.$ac_ext, and return whether this succeeded. 1850ac_fn_c_try_link () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 rm -f conftest.$ac_objext conftest$ac_exeext 1854 if { { ac_try="$ac_link" 1855case "(($ac_try" in 1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1857 *) ac_try_echo=$ac_try;; 1858esac 1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1860$as_echo "$ac_try_echo"; } >&5 1861 (eval "$ac_link") 2>conftest.err 1862 ac_status=$? 1863 if test -s conftest.err; then 1864 grep -v '^ *+' conftest.err >conftest.er1 1865 cat conftest.er1 >&5 1866 mv -f conftest.er1 conftest.err 1867 fi 1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1869 test $ac_status = 0; } && { 1870 test -z "$ac_c_werror_flag" || 1871 test ! -s conftest.err 1872 } && test -s conftest$ac_exeext && { 1873 test "$cross_compiling" = yes || 1874 $as_test_x conftest$ac_exeext 1875 }; then : 1876 ac_retval=0 1877else 1878 $as_echo "$as_me: failed program was:" >&5 1879sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 ac_retval=1 1882fi 1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1885 # interfere with the next link command; also delete a directory that is 1886 # left behind by Apple's compiler. We do this before executing the actions. 1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1889 as_fn_set_status $ac_retval 1890 1891} # ac_fn_c_try_link 1892 1893# ac_fn_c_check_func LINENO FUNC VAR 1894# ---------------------------------- 1895# Tests whether FUNC exists, setting the cache variable VAR accordingly 1896ac_fn_c_check_func () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1900$as_echo_n "checking for $2... " >&6; } 1901if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1902 $as_echo_n "(cached) " >&6 1903else 1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1908#define $2 innocuous_$2 1909 1910/* System header to define __stub macros and hopefully few prototypes, 1911 which can conflict with char $2 (); below. 1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1913 <limits.h> exists even on freestanding compilers. */ 1914 1915#ifdef __STDC__ 1916# include <limits.h> 1917#else 1918# include <assert.h> 1919#endif 1920 1921#undef $2 1922 1923/* Override any GCC internal prototype to avoid an error. 1924 Use char because int might match the return type of a GCC 1925 builtin and then its argument prototype would still apply. */ 1926#ifdef __cplusplus 1927extern "C" 1928#endif 1929char $2 (); 1930/* The GNU C library defines this for functions which it implements 1931 to always fail with ENOSYS. Some functions are actually named 1932 something starting with __ and the normal name is an alias. */ 1933#if defined __stub_$2 || defined __stub___$2 1934choke me 1935#endif 1936 1937int 1938main () 1939{ 1940return $2 (); 1941 ; 1942 return 0; 1943} 1944_ACEOF 1945if ac_fn_c_try_link "$LINENO"; then : 1946 eval "$3=yes" 1947else 1948 eval "$3=no" 1949fi 1950rm -f core conftest.err conftest.$ac_objext \ 1951 conftest$ac_exeext conftest.$ac_ext 1952fi 1953eval ac_res=\$$3 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1955$as_echo "$ac_res" >&6; } 1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1957 1958} # ac_fn_c_check_func 1959 1960# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1961# ------------------------------------------------------- 1962# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1963# the include files in INCLUDES and setting the cache variable VAR 1964# accordingly. 1965ac_fn_c_check_header_mongrel () 1966{ 1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1970$as_echo_n "checking for $2... " >&6; } 1971if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1972 $as_echo_n "(cached) " >&6 1973fi 1974eval ac_res=\$$3 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1976$as_echo "$ac_res" >&6; } 1977else 1978 # Is the header compilable? 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1980$as_echo_n "checking $2 usability... " >&6; } 1981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1982/* end confdefs.h. */ 1983$4 1984#include <$2> 1985_ACEOF 1986if ac_fn_c_try_compile "$LINENO"; then : 1987 ac_header_compiler=yes 1988else 1989 ac_header_compiler=no 1990fi 1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1993$as_echo "$ac_header_compiler" >&6; } 1994 1995# Is the header present? 1996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1997$as_echo_n "checking $2 presence... " >&6; } 1998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000#include <$2> 2001_ACEOF 2002if ac_fn_c_try_cpp "$LINENO"; then : 2003 ac_header_preproc=yes 2004else 2005 ac_header_preproc=no 2006fi 2007rm -f conftest.err conftest.$ac_ext 2008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2009$as_echo "$ac_header_preproc" >&6; } 2010 2011# So? What about this header? 2012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2013 yes:no: ) 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2015$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2017$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2018 ;; 2019 no:yes:* ) 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2021$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2023$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2025$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2027$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2029$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2030( cat <<\_ASBOX 2031## ---------------------------------------------------------------------- ## 2032## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2033## ---------------------------------------------------------------------- ## 2034_ASBOX 2035 ) | sed "s/^/$as_me: WARNING: /" >&2 2036 ;; 2037esac 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2039$as_echo_n "checking for $2... " >&6; } 2040if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2041 $as_echo_n "(cached) " >&6 2042else 2043 eval "$3=\$ac_header_compiler" 2044fi 2045eval ac_res=\$$3 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047$as_echo "$ac_res" >&6; } 2048fi 2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2050 2051} # ac_fn_c_check_header_mongrel 2052cat >config.log <<_ACEOF 2053This file contains any messages produced by compilers while 2054running configure, to aid debugging if configure makes a mistake. 2055 2056It was created by xf86-video-chips $as_me 1.2.3, which was 2057generated by GNU Autoconf 2.65. Invocation command line was 2058 2059 $ $0 $@ 2060 2061_ACEOF 2062exec 5>>config.log 2063{ 2064cat <<_ASUNAME 2065## --------- ## 2066## Platform. ## 2067## --------- ## 2068 2069hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2070uname -m = `(uname -m) 2>/dev/null || echo unknown` 2071uname -r = `(uname -r) 2>/dev/null || echo unknown` 2072uname -s = `(uname -s) 2>/dev/null || echo unknown` 2073uname -v = `(uname -v) 2>/dev/null || echo unknown` 2074 2075/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2076/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2077 2078/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2079/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2080/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2081/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2082/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2083/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2084/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2085 2086_ASUNAME 2087 2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2089for as_dir in $PATH 2090do 2091 IFS=$as_save_IFS 2092 test -z "$as_dir" && as_dir=. 2093 $as_echo "PATH: $as_dir" 2094 done 2095IFS=$as_save_IFS 2096 2097} >&5 2098 2099cat >&5 <<_ACEOF 2100 2101 2102## ----------- ## 2103## Core tests. ## 2104## ----------- ## 2105 2106_ACEOF 2107 2108 2109# Keep a trace of the command line. 2110# Strip out --no-create and --no-recursion so they do not pile up. 2111# Strip out --silent because we don't want to record it for future runs. 2112# Also quote any args containing shell meta-characters. 2113# Make two passes to allow for proper duplicate-argument suppression. 2114ac_configure_args= 2115ac_configure_args0= 2116ac_configure_args1= 2117ac_must_keep_next=false 2118for ac_pass in 1 2 2119do 2120 for ac_arg 2121 do 2122 case $ac_arg in 2123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2125 | -silent | --silent | --silen | --sile | --sil) 2126 continue ;; 2127 *\'*) 2128 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2129 esac 2130 case $ac_pass in 2131 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2132 2) 2133 as_fn_append ac_configure_args1 " '$ac_arg'" 2134 if test $ac_must_keep_next = true; then 2135 ac_must_keep_next=false # Got value, back to normal. 2136 else 2137 case $ac_arg in 2138 *=* | --config-cache | -C | -disable-* | --disable-* \ 2139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2141 | -with-* | --with-* | -without-* | --without-* | --x) 2142 case "$ac_configure_args0 " in 2143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2144 esac 2145 ;; 2146 -* ) ac_must_keep_next=true ;; 2147 esac 2148 fi 2149 as_fn_append ac_configure_args " '$ac_arg'" 2150 ;; 2151 esac 2152 done 2153done 2154{ ac_configure_args0=; unset ac_configure_args0;} 2155{ ac_configure_args1=; unset ac_configure_args1;} 2156 2157# When interrupted or exit'd, cleanup temporary files, and complete 2158# config.log. We remove comments because anyway the quotes in there 2159# would cause problems or look ugly. 2160# WARNING: Use '\'' to represent an apostrophe within the trap. 2161# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2162trap 'exit_status=$? 2163 # Save into config.log some information that might help in debugging. 2164 { 2165 echo 2166 2167 cat <<\_ASBOX 2168## ---------------- ## 2169## Cache variables. ## 2170## ---------------- ## 2171_ASBOX 2172 echo 2173 # The following way of writing the cache mishandles newlines in values, 2174( 2175 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2176 eval ac_val=\$$ac_var 2177 case $ac_val in #( 2178 *${as_nl}*) 2179 case $ac_var in #( 2180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2181$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2182 esac 2183 case $ac_var in #( 2184 _ | IFS | as_nl) ;; #( 2185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2186 *) { eval $ac_var=; unset $ac_var;} ;; 2187 esac ;; 2188 esac 2189 done 2190 (set) 2>&1 | 2191 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2192 *${as_nl}ac_space=\ *) 2193 sed -n \ 2194 "s/'\''/'\''\\\\'\'''\''/g; 2195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2196 ;; #( 2197 *) 2198 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2199 ;; 2200 esac | 2201 sort 2202) 2203 echo 2204 2205 cat <<\_ASBOX 2206## ----------------- ## 2207## Output variables. ## 2208## ----------------- ## 2209_ASBOX 2210 echo 2211 for ac_var in $ac_subst_vars 2212 do 2213 eval ac_val=\$$ac_var 2214 case $ac_val in 2215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2216 esac 2217 $as_echo "$ac_var='\''$ac_val'\''" 2218 done | sort 2219 echo 2220 2221 if test -n "$ac_subst_files"; then 2222 cat <<\_ASBOX 2223## ------------------- ## 2224## File substitutions. ## 2225## ------------------- ## 2226_ASBOX 2227 echo 2228 for ac_var in $ac_subst_files 2229 do 2230 eval ac_val=\$$ac_var 2231 case $ac_val in 2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2233 esac 2234 $as_echo "$ac_var='\''$ac_val'\''" 2235 done | sort 2236 echo 2237 fi 2238 2239 if test -s confdefs.h; then 2240 cat <<\_ASBOX 2241## ----------- ## 2242## confdefs.h. ## 2243## ----------- ## 2244_ASBOX 2245 echo 2246 cat confdefs.h 2247 echo 2248 fi 2249 test "$ac_signal" != 0 && 2250 $as_echo "$as_me: caught signal $ac_signal" 2251 $as_echo "$as_me: exit $exit_status" 2252 } >&5 2253 rm -f core *.core core.conftest.* && 2254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2255 exit $exit_status 2256' 0 2257for ac_signal in 1 2 13 15; do 2258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2259done 2260ac_signal=0 2261 2262# confdefs.h avoids OS command line length limits that DEFS can exceed. 2263rm -f -r conftest* confdefs.h 2264 2265$as_echo "/* confdefs.h */" > confdefs.h 2266 2267# Predefined preprocessor variables. 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_NAME "$PACKAGE_NAME" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_VERSION "$PACKAGE_VERSION" 2279_ACEOF 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE_STRING "$PACKAGE_STRING" 2283_ACEOF 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_URL "$PACKAGE_URL" 2291_ACEOF 2292 2293 2294# Let the site file select an alternate cache file if it wants to. 2295# Prefer an explicitly selected file to automatically selected ones. 2296ac_site_file1=NONE 2297ac_site_file2=NONE 2298if test -n "$CONFIG_SITE"; then 2299 ac_site_file1=$CONFIG_SITE 2300elif test "x$prefix" != xNONE; then 2301 ac_site_file1=$prefix/share/config.site 2302 ac_site_file2=$prefix/etc/config.site 2303else 2304 ac_site_file1=$ac_default_prefix/share/config.site 2305 ac_site_file2=$ac_default_prefix/etc/config.site 2306fi 2307for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2308do 2309 test "x$ac_site_file" = xNONE && continue 2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2312$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2313 sed 's/^/| /' "$ac_site_file" >&5 2314 . "$ac_site_file" 2315 fi 2316done 2317 2318if test -r "$cache_file"; then 2319 # Some versions of bash will fail to source /dev/null (special files 2320 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2321 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2323$as_echo "$as_me: loading cache $cache_file" >&6;} 2324 case $cache_file in 2325 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2326 *) . "./$cache_file";; 2327 esac 2328 fi 2329else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2331$as_echo "$as_me: creating cache $cache_file" >&6;} 2332 >$cache_file 2333fi 2334 2335# Check that the precious variables saved in the cache have kept the same 2336# value. 2337ac_cache_corrupted=false 2338for ac_var in $ac_precious_vars; do 2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2340 eval ac_new_set=\$ac_env_${ac_var}_set 2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2342 eval ac_new_val=\$ac_env_${ac_var}_value 2343 case $ac_old_set,$ac_new_set in 2344 set,) 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2346$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2347 ac_cache_corrupted=: ;; 2348 ,set) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2350$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,);; 2353 *) 2354 if test "x$ac_old_val" != "x$ac_new_val"; then 2355 # differences in whitespace do not lead to failure. 2356 ac_old_val_w=`echo x $ac_old_val` 2357 ac_new_val_w=`echo x $ac_new_val` 2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2360$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2361 ac_cache_corrupted=: 2362 else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2364$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2365 eval $ac_var=\$ac_old_val 2366 fi 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2368$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2370$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2371 fi;; 2372 esac 2373 # Pass precious variables to config.status. 2374 if test "$ac_new_set" = set; then 2375 case $ac_new_val in 2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2377 *) ac_arg=$ac_var=$ac_new_val ;; 2378 esac 2379 case " $ac_configure_args " in 2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2382 esac 2383 fi 2384done 2385if $ac_cache_corrupted; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2389$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2390 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2391fi 2392## -------------------- ## 2393## Main body of script. ## 2394## -------------------- ## 2395 2396ac_ext=c 2397ac_cpp='$CPP $CPPFLAGS' 2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2400ac_compiler_gnu=$ac_cv_c_compiler_gnu 2401 2402 2403 2404ac_config_headers="$ac_config_headers config.h" 2405 2406ac_aux_dir= 2407for ac_dir in . "$srcdir"/.; do 2408 for ac_t in install-sh install.sh shtool; do 2409 if test -f "$ac_dir/$ac_t"; then 2410 ac_aux_dir=$ac_dir 2411 ac_install_sh="$ac_aux_dir/$ac_t -c" 2412 break 2 2413 fi 2414 done 2415done 2416if test -z "$ac_aux_dir"; then 2417 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2418fi 2419 2420# These three variables are undocumented and unsupported, 2421# and are intended to be withdrawn in a future Autoconf release. 2422# They can cause serious problems if a builder's source tree is in a directory 2423# whose full name contains unusual characters. 2424ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2425ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2426ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2427 2428 2429 2430# Initialize Automake 2431am__api_version='1.11' 2432 2433# Find a good install program. We prefer a C program (faster), 2434# so one script is as good as another. But avoid the broken or 2435# incompatible versions: 2436# SysV /etc/install, /usr/sbin/install 2437# SunOS /usr/etc/install 2438# IRIX /sbin/install 2439# AIX /bin/install 2440# AmigaOS /C/install, which installs bootblocks on floppy discs 2441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2442# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2444# OS/2's system install, which has a completely different semantic 2445# ./install, which can be erroneously created by make from ./install.sh. 2446# Reject install programs that cannot install multiple files. 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2448$as_echo_n "checking for a BSD-compatible install... " >&6; } 2449if test -z "$INSTALL"; then 2450if test "${ac_cv_path_install+set}" = set; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454for as_dir in $PATH 2455do 2456 IFS=$as_save_IFS 2457 test -z "$as_dir" && as_dir=. 2458 # Account for people who put trailing slashes in PATH elements. 2459case $as_dir/ in #(( 2460 ./ | .// | /[cC]/* | \ 2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2463 /usr/ucb/* ) ;; 2464 *) 2465 # OSF1 and SCO ODT 3.0 have their own names for install. 2466 # Don't use installbsd from OSF since it installs stuff as root 2467 # by default. 2468 for ac_prog in ginstall scoinst install; do 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2471 if test $ac_prog = install && 2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2473 # AIX install. It has an incompatible calling convention. 2474 : 2475 elif test $ac_prog = install && 2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2477 # program-specific install script used by HP pwplus--don't use. 2478 : 2479 else 2480 rm -rf conftest.one conftest.two conftest.dir 2481 echo one > conftest.one 2482 echo two > conftest.two 2483 mkdir conftest.dir 2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2485 test -s conftest.one && test -s conftest.two && 2486 test -s conftest.dir/conftest.one && 2487 test -s conftest.dir/conftest.two 2488 then 2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2490 break 3 2491 fi 2492 fi 2493 fi 2494 done 2495 done 2496 ;; 2497esac 2498 2499 done 2500IFS=$as_save_IFS 2501 2502rm -rf conftest.one conftest.two conftest.dir 2503 2504fi 2505 if test "${ac_cv_path_install+set}" = set; then 2506 INSTALL=$ac_cv_path_install 2507 else 2508 # As a last resort, use the slow shell script. Don't cache a 2509 # value for INSTALL within a source directory, because that will 2510 # break other packages using the cache if that directory is 2511 # removed, or if the value is a relative name. 2512 INSTALL=$ac_install_sh 2513 fi 2514fi 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2516$as_echo "$INSTALL" >&6; } 2517 2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2519# It thinks the first close brace ends the variable substitution. 2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2521 2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2523 2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2525 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2527$as_echo_n "checking whether build environment is sane... " >&6; } 2528# Just in case 2529sleep 1 2530echo timestamp > conftest.file 2531# Reject unsafe characters in $srcdir or the absolute working directory 2532# name. Accept space and tab only in the latter. 2533am_lf=' 2534' 2535case `pwd` in 2536 *[\\\"\#\$\&\'\`$am_lf]*) 2537 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2538esac 2539case $srcdir in 2540 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2541 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2542esac 2543 2544# Do `set' in a subshell so we don't clobber the current shell's 2545# arguments. Must try -L first in case configure is actually a 2546# symlink; some systems play weird games with the mod time of symlinks 2547# (eg FreeBSD returns the mod time of the symlink's containing 2548# directory). 2549if ( 2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2551 if test "$*" = "X"; then 2552 # -L didn't work. 2553 set X `ls -t "$srcdir/configure" conftest.file` 2554 fi 2555 rm -f conftest.file 2556 if test "$*" != "X $srcdir/configure conftest.file" \ 2557 && test "$*" != "X conftest.file $srcdir/configure"; then 2558 2559 # If neither matched, then we have a broken ls. This can happen 2560 # if, for instance, CONFIG_SHELL is bash and it inherits a 2561 # broken ls alias from the environment. This has actually 2562 # happened. Such a system could not be considered "sane". 2563 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2564alias in your environment" "$LINENO" 5 2565 fi 2566 2567 test "$2" = conftest.file 2568 ) 2569then 2570 # Ok. 2571 : 2572else 2573 as_fn_error "newly created file is older than distributed files! 2574Check your system clock" "$LINENO" 5 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2577$as_echo "yes" >&6; } 2578test "$program_prefix" != NONE && 2579 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2580# Use a double $ so make ignores it. 2581test "$program_suffix" != NONE && 2582 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2583# Double any \ or $. 2584# By default was `s,x,x', remove it if useless. 2585ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2586program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2587 2588# expand $ac_aux_dir to an absolute path 2589am_aux_dir=`cd $ac_aux_dir && pwd` 2590 2591if test x"${MISSING+set}" != xset; then 2592 case $am_aux_dir in 2593 *\ * | *\ *) 2594 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2595 *) 2596 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2597 esac 2598fi 2599# Use eval to expand $SHELL 2600if eval "$MISSING --run true"; then 2601 am_missing_run="$MISSING --run " 2602else 2603 am_missing_run= 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2605$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2606fi 2607 2608if test x"${install_sh}" != xset; then 2609 case $am_aux_dir in 2610 *\ * | *\ *) 2611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2612 *) 2613 install_sh="\${SHELL} $am_aux_dir/install-sh" 2614 esac 2615fi 2616 2617# Installed binaries are usually stripped using `strip' when the user 2618# run `make install-strip'. However `strip' might not be the right 2619# tool to use in cross-compilation environments, therefore Automake 2620# will honor the `STRIP' environment variable to overrule this program. 2621if test "$cross_compiling" != no; then 2622 if test -n "$ac_tool_prefix"; then 2623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2624set dummy ${ac_tool_prefix}strip; ac_word=$2 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2626$as_echo_n "checking for $ac_word... " >&6; } 2627if test "${ac_cv_prog_STRIP+set}" = set; then : 2628 $as_echo_n "(cached) " >&6 2629else 2630 if test -n "$STRIP"; then 2631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2632else 2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2634for as_dir in $PATH 2635do 2636 IFS=$as_save_IFS 2637 test -z "$as_dir" && as_dir=. 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2640 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649fi 2650STRIP=$ac_cv_prog_STRIP 2651if test -n "$STRIP"; then 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2653$as_echo "$STRIP" >&6; } 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656$as_echo "no" >&6; } 2657fi 2658 2659 2660fi 2661if test -z "$ac_cv_prog_STRIP"; then 2662 ac_ct_STRIP=$STRIP 2663 # Extract the first word of "strip", so it can be a program name with args. 2664set dummy strip; ac_word=$2 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2666$as_echo_n "checking for $ac_word... " >&6; } 2667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2668 $as_echo_n "(cached) " >&6 2669else 2670 if test -n "$ac_ct_STRIP"; then 2671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2672else 2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH 2675do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2680 ac_cv_prog_ac_ct_STRIP="strip" 2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685 done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2691if test -n "$ac_ct_STRIP"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2693$as_echo "$ac_ct_STRIP" >&6; } 2694else 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2696$as_echo "no" >&6; } 2697fi 2698 2699 if test "x$ac_ct_STRIP" = x; then 2700 STRIP=":" 2701 else 2702 case $cross_compiling:$ac_tool_warned in 2703yes:) 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2706ac_tool_warned=yes ;; 2707esac 2708 STRIP=$ac_ct_STRIP 2709 fi 2710else 2711 STRIP="$ac_cv_prog_STRIP" 2712fi 2713 2714fi 2715INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2716 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2718$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2719if test -z "$MKDIR_P"; then 2720 if test "${ac_cv_path_mkdir+set}" = set; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_prog in mkdir gmkdir; do 2729 for ac_exec_ext in '' $ac_executable_extensions; do 2730 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2731 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2732 'mkdir (GNU coreutils) '* | \ 2733 'mkdir (coreutils) '* | \ 2734 'mkdir (fileutils) '4.1*) 2735 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2736 break 3;; 2737 esac 2738 done 2739 done 2740 done 2741IFS=$as_save_IFS 2742 2743fi 2744 2745 test -d ./--version && rmdir ./--version 2746 if test "${ac_cv_path_mkdir+set}" = set; then 2747 MKDIR_P="$ac_cv_path_mkdir -p" 2748 else 2749 # As a last resort, use the slow shell script. Don't cache a 2750 # value for MKDIR_P within a source directory, because that will 2751 # break other packages using the cache if that directory is 2752 # removed, or if the value is a relative name. 2753 MKDIR_P="$ac_install_sh -d" 2754 fi 2755fi 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2757$as_echo "$MKDIR_P" >&6; } 2758 2759mkdir_p="$MKDIR_P" 2760case $mkdir_p in 2761 [\\/$]* | ?:[\\/]*) ;; 2762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2763esac 2764 2765for ac_prog in gawk mawk nawk awk 2766do 2767 # Extract the first word of "$ac_prog", so it can be a program name with args. 2768set dummy $ac_prog; ac_word=$2 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if test "${ac_cv_prog_AWK+set}" = set; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$AWK"; then 2775 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2784 ac_cv_prog_AWK="$ac_prog" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794AWK=$ac_cv_prog_AWK 2795if test -n "$AWK"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2797$as_echo "$AWK" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804 test -n "$AWK" && break 2805done 2806 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2808$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2809set x ${MAKE-make} 2810ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2811if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2812 $as_echo_n "(cached) " >&6 2813else 2814 cat >conftest.make <<\_ACEOF 2815SHELL = /bin/sh 2816all: 2817 @echo '@@@%%%=$(MAKE)=@@@%%%' 2818_ACEOF 2819# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2820case `${MAKE-make} -f conftest.make 2>/dev/null` in 2821 *@@@%%%=?*=@@@%%%*) 2822 eval ac_cv_prog_make_${ac_make}_set=yes;; 2823 *) 2824 eval ac_cv_prog_make_${ac_make}_set=no;; 2825esac 2826rm -f conftest.make 2827fi 2828if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2830$as_echo "yes" >&6; } 2831 SET_MAKE= 2832else 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2834$as_echo "no" >&6; } 2835 SET_MAKE="MAKE=${MAKE-make}" 2836fi 2837 2838rm -rf .tst 2>/dev/null 2839mkdir .tst 2>/dev/null 2840if test -d .tst; then 2841 am__leading_dot=. 2842else 2843 am__leading_dot=_ 2844fi 2845rmdir .tst 2>/dev/null 2846 2847if test "`cd $srcdir && pwd`" != "`pwd`"; then 2848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2849 # is not polluted with repeated "-I." 2850 am__isrc=' -I$(srcdir)' 2851 # test to see if srcdir already configured 2852 if test -f $srcdir/config.status; then 2853 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2854 fi 2855fi 2856 2857# test whether we have cygpath 2858if test -z "$CYGPATH_W"; then 2859 if (cygpath --version) >/dev/null 2>/dev/null; then 2860 CYGPATH_W='cygpath -w' 2861 else 2862 CYGPATH_W=echo 2863 fi 2864fi 2865 2866 2867# Define the identity of the package. 2868 PACKAGE='xf86-video-chips' 2869 VERSION='1.2.3' 2870 2871 2872cat >>confdefs.h <<_ACEOF 2873#define PACKAGE "$PACKAGE" 2874_ACEOF 2875 2876 2877cat >>confdefs.h <<_ACEOF 2878#define VERSION "$VERSION" 2879_ACEOF 2880 2881# Some tools Automake needs. 2882 2883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2884 2885 2886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2887 2888 2889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2890 2891 2892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2893 2894 2895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2896 2897# We need awk for the "check" target. The system "awk" is bad on 2898# some platforms. 2899# Always define AMTAR for backward compatibility. 2900 2901AMTAR=${AMTAR-"${am_missing_run}tar"} 2902 2903am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2904 2905 2906 2907 2908 2909 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2911$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2912 # Check whether --enable-maintainer-mode was given. 2913if test "${enable_maintainer_mode+set}" = set; then : 2914 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2915else 2916 USE_MAINTAINER_MODE=no 2917fi 2918 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2920$as_echo "$USE_MAINTAINER_MODE" >&6; } 2921 if test $USE_MAINTAINER_MODE = yes; then 2922 MAINTAINER_MODE_TRUE= 2923 MAINTAINER_MODE_FALSE='#' 2924else 2925 MAINTAINER_MODE_TRUE='#' 2926 MAINTAINER_MODE_FALSE= 2927fi 2928 2929 MAINT=$MAINTAINER_MODE_TRUE 2930 2931 2932 2933# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945DEPDIR="${am__leading_dot}deps" 2946 2947ac_config_commands="$ac_config_commands depfiles" 2948 2949 2950am_make=${MAKE-make} 2951cat > confinc << 'END' 2952am__doit: 2953 @echo this is the am__doit target 2954.PHONY: am__doit 2955END 2956# If we don't find an include directive, just comment out the code. 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2958$as_echo_n "checking for style of include used by $am_make... " >&6; } 2959am__include="#" 2960am__quote= 2961_am_result=none 2962# First try GNU make style include. 2963echo "include confinc" > confmf 2964# Ignore all kinds of additional output from `make'. 2965case `$am_make -s -f confmf 2> /dev/null` in #( 2966*the\ am__doit\ target*) 2967 am__include=include 2968 am__quote= 2969 _am_result=GNU 2970 ;; 2971esac 2972# Now try BSD make style include. 2973if test "$am__include" = "#"; then 2974 echo '.include "confinc"' > confmf 2975 case `$am_make -s -f confmf 2> /dev/null` in #( 2976 *the\ am__doit\ target*) 2977 am__include=.include 2978 am__quote="\"" 2979 _am_result=BSD 2980 ;; 2981 esac 2982fi 2983 2984 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2986$as_echo "$_am_result" >&6; } 2987rm -f confinc confmf 2988 2989# Check whether --enable-dependency-tracking was given. 2990if test "${enable_dependency_tracking+set}" = set; then : 2991 enableval=$enable_dependency_tracking; 2992fi 2993 2994if test "x$enable_dependency_tracking" != xno; then 2995 am_depcomp="$ac_aux_dir/depcomp" 2996 AMDEPBACKSLASH='\' 2997fi 2998 if test "x$enable_dependency_tracking" != xno; then 2999 AMDEP_TRUE= 3000 AMDEP_FALSE='#' 3001else 3002 AMDEP_TRUE='#' 3003 AMDEP_FALSE= 3004fi 3005 3006 3007ac_ext=c 3008ac_cpp='$CPP $CPPFLAGS' 3009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3011ac_compiler_gnu=$ac_cv_c_compiler_gnu 3012if test -n "$ac_tool_prefix"; then 3013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3014set dummy ${ac_tool_prefix}gcc; ac_word=$2 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016$as_echo_n "checking for $ac_word... " >&6; } 3017if test "${ac_cv_prog_CC+set}" = set; then : 3018 $as_echo_n "(cached) " >&6 3019else 3020 if test -n "$CC"; then 3021 ac_cv_prog_CC="$CC" # Let the user override the test. 3022else 3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3030 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034done 3035 done 3036IFS=$as_save_IFS 3037 3038fi 3039fi 3040CC=$ac_cv_prog_CC 3041if test -n "$CC"; then 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3043$as_echo "$CC" >&6; } 3044else 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3046$as_echo "no" >&6; } 3047fi 3048 3049 3050fi 3051if test -z "$ac_cv_prog_CC"; then 3052 ac_ct_CC=$CC 3053 # Extract the first word of "gcc", so it can be a program name with args. 3054set dummy gcc; ac_word=$2 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056$as_echo_n "checking for $ac_word... " >&6; } 3057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 if test -n "$ac_ct_CC"; then 3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3062else 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3070 ac_cv_prog_ac_ct_CC="gcc" 3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3072 break 2 3073 fi 3074done 3075 done 3076IFS=$as_save_IFS 3077 3078fi 3079fi 3080ac_ct_CC=$ac_cv_prog_ac_ct_CC 3081if test -n "$ac_ct_CC"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3083$as_echo "$ac_ct_CC" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 if test "x$ac_ct_CC" = x; then 3090 CC="" 3091 else 3092 case $cross_compiling:$ac_tool_warned in 3093yes:) 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3096ac_tool_warned=yes ;; 3097esac 3098 CC=$ac_ct_CC 3099 fi 3100else 3101 CC="$ac_cv_prog_CC" 3102fi 3103 3104if test -z "$CC"; then 3105 if test -n "$ac_tool_prefix"; then 3106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3107set dummy ${ac_tool_prefix}cc; ac_word=$2 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3109$as_echo_n "checking for $ac_word... " >&6; } 3110if test "${ac_cv_prog_CC+set}" = set; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if test -n "$CC"; then 3114 ac_cv_prog_CC="$CC" # Let the user override the test. 3115else 3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3123 ac_cv_prog_CC="${ac_tool_prefix}cc" 3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3125 break 2 3126 fi 3127done 3128 done 3129IFS=$as_save_IFS 3130 3131fi 3132fi 3133CC=$ac_cv_prog_CC 3134if test -n "$CC"; then 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3136$as_echo "$CC" >&6; } 3137else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139$as_echo "no" >&6; } 3140fi 3141 3142 3143 fi 3144fi 3145if test -z "$CC"; then 3146 # Extract the first word of "cc", so it can be a program name with args. 3147set dummy cc; ac_word=$2 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3149$as_echo_n "checking for $ac_word... " >&6; } 3150if test "${ac_cv_prog_CC+set}" = set; then : 3151 $as_echo_n "(cached) " >&6 3152else 3153 if test -n "$CC"; then 3154 ac_cv_prog_CC="$CC" # Let the user override the test. 3155else 3156 ac_prog_rejected=no 3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3158for as_dir in $PATH 3159do 3160 IFS=$as_save_IFS 3161 test -z "$as_dir" && as_dir=. 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3165 ac_prog_rejected=yes 3166 continue 3167 fi 3168 ac_cv_prog_CC="cc" 3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3170 break 2 3171 fi 3172done 3173 done 3174IFS=$as_save_IFS 3175 3176if test $ac_prog_rejected = yes; then 3177 # We found a bogon in the path, so make sure we never use it. 3178 set dummy $ac_cv_prog_CC 3179 shift 3180 if test $# != 0; then 3181 # We chose a different compiler from the bogus one. 3182 # However, it has the same basename, so the bogon will be chosen 3183 # first if we set CC to just the basename; use the full file name. 3184 shift 3185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3186 fi 3187fi 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193$as_echo "$CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200fi 3201if test -z "$CC"; then 3202 if test -n "$ac_tool_prefix"; then 3203 for ac_prog in cl.exe 3204 do 3205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3206set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3208$as_echo_n "checking for $ac_word... " >&6; } 3209if test "${ac_cv_prog_CC+set}" = set; then : 3210 $as_echo_n "(cached) " >&6 3211else 3212 if test -n "$CC"; then 3213 ac_cv_prog_CC="$CC" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 test -z "$as_dir" && as_dir=. 3220 for ac_exec_ext in '' $ac_executable_extensions; do 3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3224 break 2 3225 fi 3226done 3227 done 3228IFS=$as_save_IFS 3229 3230fi 3231fi 3232CC=$ac_cv_prog_CC 3233if test -n "$CC"; then 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3235$as_echo "$CC" >&6; } 3236else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238$as_echo "no" >&6; } 3239fi 3240 3241 3242 test -n "$CC" && break 3243 done 3244fi 3245if test -z "$CC"; then 3246 ac_ct_CC=$CC 3247 for ac_prog in cl.exe 3248do 3249 # Extract the first word of "$ac_prog", so it can be a program name with args. 3250set dummy $ac_prog; ac_word=$2 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252$as_echo_n "checking for $ac_word... " >&6; } 3253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if test -n "$ac_ct_CC"; then 3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3258else 3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260for as_dir in $PATH 3261do 3262 IFS=$as_save_IFS 3263 test -z "$as_dir" && as_dir=. 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3266 ac_cv_prog_ac_ct_CC="$ac_prog" 3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270done 3271 done 3272IFS=$as_save_IFS 3273 3274fi 3275fi 3276ac_ct_CC=$ac_cv_prog_ac_ct_CC 3277if test -n "$ac_ct_CC"; then 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3279$as_echo "$ac_ct_CC" >&6; } 3280else 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282$as_echo "no" >&6; } 3283fi 3284 3285 3286 test -n "$ac_ct_CC" && break 3287done 3288 3289 if test "x$ac_ct_CC" = x; then 3290 CC="" 3291 else 3292 case $cross_compiling:$ac_tool_warned in 3293yes:) 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3296ac_tool_warned=yes ;; 3297esac 3298 CC=$ac_ct_CC 3299 fi 3300fi 3301 3302fi 3303 3304 3305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3307as_fn_error "no acceptable C compiler found in \$PATH 3308See \`config.log' for more details." "$LINENO" 5; } 3309 3310# Provide some information about the compiler. 3311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3312set X $ac_compile 3313ac_compiler=$2 3314for ac_option in --version -v -V -qversion; do 3315 { { ac_try="$ac_compiler $ac_option >&5" 3316case "(($ac_try" in 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3318 *) ac_try_echo=$ac_try;; 3319esac 3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3321$as_echo "$ac_try_echo"; } >&5 3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3323 ac_status=$? 3324 if test -s conftest.err; then 3325 sed '10a\ 3326... rest of stderr output deleted ... 3327 10q' conftest.err >conftest.er1 3328 cat conftest.er1 >&5 3329 fi 3330 rm -f conftest.er1 conftest.err 3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3332 test $ac_status = 0; } 3333done 3334 3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341 3342 ; 3343 return 0; 3344} 3345_ACEOF 3346ac_clean_files_save=$ac_clean_files 3347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3348# Try to create an executable without -o first, disregard a.out. 3349# It will help us diagnose broken compilers, and finding out an intuition 3350# of exeext. 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3352$as_echo_n "checking whether the C compiler works... " >&6; } 3353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3354 3355# The possible output files: 3356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3357 3358ac_rmfiles= 3359for ac_file in $ac_files 3360do 3361 case $ac_file in 3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3363 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3364 esac 3365done 3366rm -f $ac_rmfiles 3367 3368if { { ac_try="$ac_link_default" 3369case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372esac 3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374$as_echo "$ac_try_echo"; } >&5 3375 (eval "$ac_link_default") 2>&5 3376 ac_status=$? 3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; }; then : 3379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3381# in a Makefile. We should not override ac_cv_exeext if it was cached, 3382# so that the user can short-circuit this test for compilers unknown to 3383# Autoconf. 3384for ac_file in $ac_files '' 3385do 3386 test -f "$ac_file" || continue 3387 case $ac_file in 3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3389 ;; 3390 [ab].out ) 3391 # We found the default executable, but exeext='' is most 3392 # certainly right. 3393 break;; 3394 *.* ) 3395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3396 then :; else 3397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3398 fi 3399 # We set ac_cv_exeext here because the later test for it is not 3400 # safe: cross compilers may not add the suffix if given an `-o' 3401 # argument, so we may need to know it at that point already. 3402 # Even if this section looks crufty: it has the advantage of 3403 # actually working. 3404 break;; 3405 * ) 3406 break;; 3407 esac 3408done 3409test "$ac_cv_exeext" = no && ac_cv_exeext= 3410 3411else 3412 ac_file='' 3413fi 3414if test -z "$ac_file"; then : 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416$as_echo "no" >&6; } 3417$as_echo "$as_me: failed program was:" >&5 3418sed 's/^/| /' conftest.$ac_ext >&5 3419 3420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3422{ as_fn_set_status 77 3423as_fn_error "C compiler cannot create executables 3424See \`config.log' for more details." "$LINENO" 5; }; } 3425else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3427$as_echo "yes" >&6; } 3428fi 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3430$as_echo_n "checking for C compiler default output file name... " >&6; } 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3432$as_echo "$ac_file" >&6; } 3433ac_exeext=$ac_cv_exeext 3434 3435rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3436ac_clean_files=$ac_clean_files_save 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3438$as_echo_n "checking for suffix of executables... " >&6; } 3439if { { ac_try="$ac_link" 3440case "(($ac_try" in 3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3442 *) ac_try_echo=$ac_try;; 3443esac 3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3445$as_echo "$ac_try_echo"; } >&5 3446 (eval "$ac_link") 2>&5 3447 ac_status=$? 3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3449 test $ac_status = 0; }; then : 3450 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3451# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3452# work properly (i.e., refer to `conftest.exe'), while it won't with 3453# `rm'. 3454for ac_file in conftest.exe conftest conftest.*; do 3455 test -f "$ac_file" || continue 3456 case $ac_file in 3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3459 break;; 3460 * ) break;; 3461 esac 3462done 3463else 3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3466as_fn_error "cannot compute suffix of executables: cannot compile and link 3467See \`config.log' for more details." "$LINENO" 5; } 3468fi 3469rm -f conftest conftest$ac_cv_exeext 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3471$as_echo "$ac_cv_exeext" >&6; } 3472 3473rm -f conftest.$ac_ext 3474EXEEXT=$ac_cv_exeext 3475ac_exeext=$EXEEXT 3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#include <stdio.h> 3479int 3480main () 3481{ 3482FILE *f = fopen ("conftest.out", "w"); 3483 return ferror (f) || fclose (f) != 0; 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489ac_clean_files="$ac_clean_files conftest.out" 3490# Check that the compiler produces executables we can run. If not, either 3491# the compiler is broken, or we cross compile. 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3493$as_echo_n "checking whether we are cross compiling... " >&6; } 3494if test "$cross_compiling" != yes; then 3495 { { ac_try="$ac_link" 3496case "(($ac_try" in 3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3498 *) ac_try_echo=$ac_try;; 3499esac 3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3501$as_echo "$ac_try_echo"; } >&5 3502 (eval "$ac_link") 2>&5 3503 ac_status=$? 3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3505 test $ac_status = 0; } 3506 if { ac_try='./conftest$ac_cv_exeext' 3507 { { case "(($ac_try" in 3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3509 *) ac_try_echo=$ac_try;; 3510esac 3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3512$as_echo "$ac_try_echo"; } >&5 3513 (eval "$ac_try") 2>&5 3514 ac_status=$? 3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3516 test $ac_status = 0; }; }; then 3517 cross_compiling=no 3518 else 3519 if test "$cross_compiling" = maybe; then 3520 cross_compiling=yes 3521 else 3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3524as_fn_error "cannot run C compiled programs. 3525If you meant to cross compile, use \`--host'. 3526See \`config.log' for more details." "$LINENO" 5; } 3527 fi 3528 fi 3529fi 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3531$as_echo "$cross_compiling" >&6; } 3532 3533rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3534ac_clean_files=$ac_clean_files_save 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3536$as_echo_n "checking for suffix of object files... " >&6; } 3537if test "${ac_cv_objext+set}" = set; then : 3538 $as_echo_n "(cached) " >&6 3539else 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551rm -f conftest.o conftest.obj 3552if { { ac_try="$ac_compile" 3553case "(($ac_try" in 3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *) ac_try_echo=$ac_try;; 3556esac 3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3558$as_echo "$ac_try_echo"; } >&5 3559 (eval "$ac_compile") 2>&5 3560 ac_status=$? 3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3562 test $ac_status = 0; }; then : 3563 for ac_file in conftest.o conftest.obj conftest.*; do 3564 test -f "$ac_file" || continue; 3565 case $ac_file in 3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3568 break;; 3569 esac 3570done 3571else 3572 $as_echo "$as_me: failed program was:" >&5 3573sed 's/^/| /' conftest.$ac_ext >&5 3574 3575{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3577as_fn_error "cannot compute suffix of object files: cannot compile 3578See \`config.log' for more details." "$LINENO" 5; } 3579fi 3580rm -f conftest.$ac_cv_objext conftest.$ac_ext 3581fi 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3583$as_echo "$ac_cv_objext" >&6; } 3584OBJEXT=$ac_cv_objext 3585ac_objext=$OBJEXT 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3587$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3588if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593 3594int 3595main () 3596{ 3597#ifndef __GNUC__ 3598 choke me 3599#endif 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 ac_compiler_gnu=yes 3607else 3608 ac_compiler_gnu=no 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611ac_cv_c_compiler_gnu=$ac_compiler_gnu 3612 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3615$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3616if test $ac_compiler_gnu = yes; then 3617 GCC=yes 3618else 3619 GCC= 3620fi 3621ac_test_CFLAGS=${CFLAGS+set} 3622ac_save_CFLAGS=$CFLAGS 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3624$as_echo_n "checking whether $CC accepts -g... " >&6; } 3625if test "${ac_cv_prog_cc_g+set}" = set; then : 3626 $as_echo_n "(cached) " >&6 3627else 3628 ac_save_c_werror_flag=$ac_c_werror_flag 3629 ac_c_werror_flag=yes 3630 ac_cv_prog_cc_g=no 3631 CFLAGS="-g" 3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3633/* end confdefs.h. */ 3634 3635int 3636main () 3637{ 3638 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643if ac_fn_c_try_compile "$LINENO"; then : 3644 ac_cv_prog_cc_g=yes 3645else 3646 CFLAGS="" 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main () 3652{ 3653 3654 ; 3655 return 0; 3656} 3657_ACEOF 3658if ac_fn_c_try_compile "$LINENO"; then : 3659 3660else 3661 ac_c_werror_flag=$ac_save_c_werror_flag 3662 CFLAGS="-g" 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666int 3667main () 3668{ 3669 3670 ; 3671 return 0; 3672} 3673_ACEOF 3674if ac_fn_c_try_compile "$LINENO"; then : 3675 ac_cv_prog_cc_g=yes 3676fi 3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3678fi 3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3680fi 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682 ac_c_werror_flag=$ac_save_c_werror_flag 3683fi 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3685$as_echo "$ac_cv_prog_cc_g" >&6; } 3686if test "$ac_test_CFLAGS" = set; then 3687 CFLAGS=$ac_save_CFLAGS 3688elif test $ac_cv_prog_cc_g = yes; then 3689 if test "$GCC" = yes; then 3690 CFLAGS="-g -O2" 3691 else 3692 CFLAGS="-g" 3693 fi 3694else 3695 if test "$GCC" = yes; then 3696 CFLAGS="-O2" 3697 else 3698 CFLAGS= 3699 fi 3700fi 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3702$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3703if test "${ac_cv_prog_cc_c89+set}" = set; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 ac_cv_prog_cc_c89=no 3707ac_save_CC=$CC 3708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3709/* end confdefs.h. */ 3710#include <stdarg.h> 3711#include <stdio.h> 3712#include <sys/types.h> 3713#include <sys/stat.h> 3714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3715struct buf { int x; }; 3716FILE * (*rcsopen) (struct buf *, struct stat *, int); 3717static char *e (p, i) 3718 char **p; 3719 int i; 3720{ 3721 return p[i]; 3722} 3723static char *f (char * (*g) (char **, int), char **p, ...) 3724{ 3725 char *s; 3726 va_list v; 3727 va_start (v,p); 3728 s = g (p, va_arg (v,int)); 3729 va_end (v); 3730 return s; 3731} 3732 3733/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3734 function prototypes and stuff, but not '\xHH' hex character constants. 3735 These don't provoke an error unfortunately, instead are silently treated 3736 as 'x'. The following induces an error, until -std is added to get 3737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3738 array size at least. It's necessary to write '\x00'==0 to get something 3739 that's true only with -std. */ 3740int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3741 3742/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3743 inside strings and character constants. */ 3744#define FOO(x) 'x' 3745int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3746 3747int test (int i, double x); 3748struct s1 {int (*f) (int a);}; 3749struct s2 {int (*f) (double a);}; 3750int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3751int argc; 3752char **argv; 3753int 3754main () 3755{ 3756return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3763do 3764 CC="$ac_save_CC $ac_arg" 3765 if ac_fn_c_try_compile "$LINENO"; then : 3766 ac_cv_prog_cc_c89=$ac_arg 3767fi 3768rm -f core conftest.err conftest.$ac_objext 3769 test "x$ac_cv_prog_cc_c89" != "xno" && break 3770done 3771rm -f conftest.$ac_ext 3772CC=$ac_save_CC 3773 3774fi 3775# AC_CACHE_VAL 3776case "x$ac_cv_prog_cc_c89" in 3777 x) 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3779$as_echo "none needed" >&6; } ;; 3780 xno) 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3782$as_echo "unsupported" >&6; } ;; 3783 *) 3784 CC="$CC $ac_cv_prog_cc_c89" 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3786$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3787esac 3788if test "x$ac_cv_prog_cc_c89" != xno; then : 3789 3790fi 3791 3792ac_ext=c 3793ac_cpp='$CPP $CPPFLAGS' 3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797 3798depcc="$CC" am_compiler_list= 3799 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3801$as_echo_n "checking dependency style of $depcc... " >&6; } 3802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3803 $as_echo_n "(cached) " >&6 3804else 3805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3806 # We make a subdir and do the tests there. Otherwise we can end up 3807 # making bogus files that we don't know about and never remove. For 3808 # instance it was reported that on HP-UX the gcc test will end up 3809 # making a dummy file named `D' -- because `-MD' means `put the output 3810 # in D'. 3811 mkdir conftest.dir 3812 # Copy depcomp to subdir because otherwise we won't find it if we're 3813 # using a relative directory. 3814 cp "$am_depcomp" conftest.dir 3815 cd conftest.dir 3816 # We will build objects and dependencies in a subdirectory because 3817 # it helps to detect inapplicable dependency modes. For instance 3818 # both Tru64's cc and ICC support -MD to output dependencies as a 3819 # side effect of compilation, but ICC will put the dependencies in 3820 # the current directory while Tru64 will put them in the object 3821 # directory. 3822 mkdir sub 3823 3824 am_cv_CC_dependencies_compiler_type=none 3825 if test "$am_compiler_list" = ""; then 3826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3827 fi 3828 am__universal=false 3829 case " $depcc " in #( 3830 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3831 esac 3832 3833 for depmode in $am_compiler_list; do 3834 # Setup a source with many dependencies, because some compilers 3835 # like to wrap large dependency lists on column 80 (with \), and 3836 # we should not choose a depcomp mode which is confused by this. 3837 # 3838 # We need to recreate these files for each test, as the compiler may 3839 # overwrite some of them when testing with obscure command lines. 3840 # This happens at least with the AIX C compiler. 3841 : > sub/conftest.c 3842 for i in 1 2 3 4 5 6; do 3843 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3844 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3845 # Solaris 8's {/usr,}/bin/sh. 3846 touch sub/conftst$i.h 3847 done 3848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3849 3850 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3851 # mode. It turns out that the SunPro C++ compiler does not properly 3852 # handle `-M -o', and we need to detect this. Also, some Intel 3853 # versions had trouble with output in subdirs 3854 am__obj=sub/conftest.${OBJEXT-o} 3855 am__minus_obj="-o $am__obj" 3856 case $depmode in 3857 gcc) 3858 # This depmode causes a compiler race in universal mode. 3859 test "$am__universal" = false || continue 3860 ;; 3861 nosideeffect) 3862 # after this tag, mechanisms are not by side-effect, so they'll 3863 # only be used when explicitly requested 3864 if test "x$enable_dependency_tracking" = xyes; then 3865 continue 3866 else 3867 break 3868 fi 3869 ;; 3870 msvisualcpp | msvcmsys) 3871 # This compiler won't grok `-c -o', but also, the minuso test has 3872 # not run yet. These depmodes are late enough in the game, and 3873 # so weak that their functioning should not be impacted. 3874 am__obj=conftest.${OBJEXT-o} 3875 am__minus_obj= 3876 ;; 3877 none) break ;; 3878 esac 3879 if depmode=$depmode \ 3880 source=sub/conftest.c object=$am__obj \ 3881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3883 >/dev/null 2>conftest.err && 3884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3888 # icc doesn't choke on unknown options, it will just issue warnings 3889 # or remarks (even with -Werror). So we grep stderr for any message 3890 # that says an option was ignored or not supported. 3891 # When given -MP, icc 7.0 and 7.1 complain thusly: 3892 # icc: Command line warning: ignoring option '-M'; no argument required 3893 # The diagnosis changed in icc 8.0: 3894 # icc: Command line remark: option '-MP' not supported 3895 if (grep 'ignoring option' conftest.err || 3896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3897 am_cv_CC_dependencies_compiler_type=$depmode 3898 break 3899 fi 3900 fi 3901 done 3902 3903 cd .. 3904 rm -rf conftest.dir 3905else 3906 am_cv_CC_dependencies_compiler_type=none 3907fi 3908 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3911$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3913 3914 if 3915 test "x$enable_dependency_tracking" != xno \ 3916 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3917 am__fastdepCC_TRUE= 3918 am__fastdepCC_FALSE='#' 3919else 3920 am__fastdepCC_TRUE='#' 3921 am__fastdepCC_FALSE= 3922fi 3923 3924 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3926$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3927if test "${ac_cv_prog_cc_c99+set}" = set; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 ac_cv_prog_cc_c99=no 3931ac_save_CC=$CC 3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934#include <stdarg.h> 3935#include <stdbool.h> 3936#include <stdlib.h> 3937#include <wchar.h> 3938#include <stdio.h> 3939 3940// Check varargs macros. These examples are taken from C99 6.10.3.5. 3941#define debug(...) fprintf (stderr, __VA_ARGS__) 3942#define showlist(...) puts (#__VA_ARGS__) 3943#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3944static void 3945test_varargs_macros (void) 3946{ 3947 int x = 1234; 3948 int y = 5678; 3949 debug ("Flag"); 3950 debug ("X = %d\n", x); 3951 showlist (The first, second, and third items.); 3952 report (x>y, "x is %d but y is %d", x, y); 3953} 3954 3955// Check long long types. 3956#define BIG64 18446744073709551615ull 3957#define BIG32 4294967295ul 3958#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3959#if !BIG_OK 3960 your preprocessor is broken; 3961#endif 3962#if BIG_OK 3963#else 3964 your preprocessor is broken; 3965#endif 3966static long long int bignum = -9223372036854775807LL; 3967static unsigned long long int ubignum = BIG64; 3968 3969struct incomplete_array 3970{ 3971 int datasize; 3972 double data[]; 3973}; 3974 3975struct named_init { 3976 int number; 3977 const wchar_t *name; 3978 double average; 3979}; 3980 3981typedef const char *ccp; 3982 3983static inline int 3984test_restrict (ccp restrict text) 3985{ 3986 // See if C++-style comments work. 3987 // Iterate through items via the restricted pointer. 3988 // Also check for declarations in for loops. 3989 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3990 continue; 3991 return 0; 3992} 3993 3994// Check varargs and va_copy. 3995static void 3996test_varargs (const char *format, ...) 3997{ 3998 va_list args; 3999 va_start (args, format); 4000 va_list args_copy; 4001 va_copy (args_copy, args); 4002 4003 const char *str; 4004 int number; 4005 float fnumber; 4006 4007 while (*format) 4008 { 4009 switch (*format++) 4010 { 4011 case 's': // string 4012 str = va_arg (args_copy, const char *); 4013 break; 4014 case 'd': // int 4015 number = va_arg (args_copy, int); 4016 break; 4017 case 'f': // float 4018 fnumber = va_arg (args_copy, double); 4019 break; 4020 default: 4021 break; 4022 } 4023 } 4024 va_end (args_copy); 4025 va_end (args); 4026} 4027 4028int 4029main () 4030{ 4031 4032 // Check bool. 4033 _Bool success = false; 4034 4035 // Check restrict. 4036 if (test_restrict ("String literal") == 0) 4037 success = true; 4038 char *restrict newvar = "Another string"; 4039 4040 // Check varargs. 4041 test_varargs ("s, d' f .", "string", 65, 34.234); 4042 test_varargs_macros (); 4043 4044 // Check flexible array members. 4045 struct incomplete_array *ia = 4046 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4047 ia->datasize = 10; 4048 for (int i = 0; i < ia->datasize; ++i) 4049 ia->data[i] = i * 1.234; 4050 4051 // Check named initializers. 4052 struct named_init ni = { 4053 .number = 34, 4054 .name = L"Test wide string", 4055 .average = 543.34343, 4056 }; 4057 4058 ni.number = 58; 4059 4060 int dynamic_array[ni.number]; 4061 dynamic_array[ni.number - 1] = 543; 4062 4063 // work around unused variable warnings 4064 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4065 || dynamic_array[ni.number - 1] != 543); 4066 4067 ; 4068 return 0; 4069} 4070_ACEOF 4071for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4072do 4073 CC="$ac_save_CC $ac_arg" 4074 if ac_fn_c_try_compile "$LINENO"; then : 4075 ac_cv_prog_cc_c99=$ac_arg 4076fi 4077rm -f core conftest.err conftest.$ac_objext 4078 test "x$ac_cv_prog_cc_c99" != "xno" && break 4079done 4080rm -f conftest.$ac_ext 4081CC=$ac_save_CC 4082 4083fi 4084# AC_CACHE_VAL 4085case "x$ac_cv_prog_cc_c99" in 4086 x) 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4088$as_echo "none needed" >&6; } ;; 4089 xno) 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4091$as_echo "unsupported" >&6; } ;; 4092 *) 4093 CC="$CC $ac_cv_prog_cc_c99" 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4095$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4096esac 4097if test "x$ac_cv_prog_cc_c99" != xno; then : 4098 4099fi 4100 4101 4102 4103ac_ext=c 4104ac_cpp='$CPP $CPPFLAGS' 4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4107ac_compiler_gnu=$ac_cv_c_compiler_gnu 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4109$as_echo_n "checking how to run the C preprocessor... " >&6; } 4110# On Suns, sometimes $CPP names a directory. 4111if test -n "$CPP" && test -d "$CPP"; then 4112 CPP= 4113fi 4114if test -z "$CPP"; then 4115 if test "${ac_cv_prog_CPP+set}" = set; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 # Double quotes because CPP needs to be expanded 4119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4120 do 4121 ac_preproc_ok=false 4122for ac_c_preproc_warn_flag in '' yes 4123do 4124 # Use a header file that comes with gcc, so configuring glibc 4125 # with a fresh cross-compiler works. 4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4127 # <limits.h> exists even on freestanding compilers. 4128 # On the NeXT, cc -E runs the code through the compiler's parser, 4129 # not just through cpp. "Syntax error" is here to catch this case. 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132#ifdef __STDC__ 4133# include <limits.h> 4134#else 4135# include <assert.h> 4136#endif 4137 Syntax error 4138_ACEOF 4139if ac_fn_c_try_cpp "$LINENO"; then : 4140 4141else 4142 # Broken: fails on valid input. 4143continue 4144fi 4145rm -f conftest.err conftest.$ac_ext 4146 4147 # OK, works on sane cases. Now check whether nonexistent headers 4148 # can be detected and how. 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151#include <ac_nonexistent.h> 4152_ACEOF 4153if ac_fn_c_try_cpp "$LINENO"; then : 4154 # Broken: success on invalid input. 4155continue 4156else 4157 # Passes both tests. 4158ac_preproc_ok=: 4159break 4160fi 4161rm -f conftest.err conftest.$ac_ext 4162 4163done 4164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4165rm -f conftest.err conftest.$ac_ext 4166if $ac_preproc_ok; then : 4167 break 4168fi 4169 4170 done 4171 ac_cv_prog_CPP=$CPP 4172 4173fi 4174 CPP=$ac_cv_prog_CPP 4175else 4176 ac_cv_prog_CPP=$CPP 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4179$as_echo "$CPP" >&6; } 4180ac_preproc_ok=false 4181for ac_c_preproc_warn_flag in '' yes 4182do 4183 # Use a header file that comes with gcc, so configuring glibc 4184 # with a fresh cross-compiler works. 4185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4186 # <limits.h> exists even on freestanding compilers. 4187 # On the NeXT, cc -E runs the code through the compiler's parser, 4188 # not just through cpp. "Syntax error" is here to catch this case. 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#ifdef __STDC__ 4192# include <limits.h> 4193#else 4194# include <assert.h> 4195#endif 4196 Syntax error 4197_ACEOF 4198if ac_fn_c_try_cpp "$LINENO"; then : 4199 4200else 4201 # Broken: fails on valid input. 4202continue 4203fi 4204rm -f conftest.err conftest.$ac_ext 4205 4206 # OK, works on sane cases. Now check whether nonexistent headers 4207 # can be detected and how. 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210#include <ac_nonexistent.h> 4211_ACEOF 4212if ac_fn_c_try_cpp "$LINENO"; then : 4213 # Broken: success on invalid input. 4214continue 4215else 4216 # Passes both tests. 4217ac_preproc_ok=: 4218break 4219fi 4220rm -f conftest.err conftest.$ac_ext 4221 4222done 4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4224rm -f conftest.err conftest.$ac_ext 4225if $ac_preproc_ok; then : 4226 4227else 4228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4230as_fn_error "C preprocessor \"$CPP\" fails sanity check 4231See \`config.log' for more details." "$LINENO" 5; } 4232fi 4233 4234ac_ext=c 4235ac_cpp='$CPP $CPPFLAGS' 4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4238ac_compiler_gnu=$ac_cv_c_compiler_gnu 4239 4240 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4242$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4243if test "${ac_cv_path_GREP+set}" = set; then : 4244 $as_echo_n "(cached) " >&6 4245else 4246 if test -z "$GREP"; then 4247 ac_path_GREP_found=false 4248 # Loop through the user's path and test for each of PROGNAME-LIST 4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4250for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4251do 4252 IFS=$as_save_IFS 4253 test -z "$as_dir" && as_dir=. 4254 for ac_prog in grep ggrep; do 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4257 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4258# Check for GNU ac_path_GREP and select it if it is found. 4259 # Check for GNU $ac_path_GREP 4260case `"$ac_path_GREP" --version 2>&1` in 4261*GNU*) 4262 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4263*) 4264 ac_count=0 4265 $as_echo_n 0123456789 >"conftest.in" 4266 while : 4267 do 4268 cat "conftest.in" "conftest.in" >"conftest.tmp" 4269 mv "conftest.tmp" "conftest.in" 4270 cp "conftest.in" "conftest.nl" 4271 $as_echo 'GREP' >> "conftest.nl" 4272 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4274 as_fn_arith $ac_count + 1 && ac_count=$as_val 4275 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4276 # Best one so far, save it but keep looking for a better one 4277 ac_cv_path_GREP="$ac_path_GREP" 4278 ac_path_GREP_max=$ac_count 4279 fi 4280 # 10*(2^10) chars as input seems more than enough 4281 test $ac_count -gt 10 && break 4282 done 4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4284esac 4285 4286 $ac_path_GREP_found && break 3 4287 done 4288 done 4289 done 4290IFS=$as_save_IFS 4291 if test -z "$ac_cv_path_GREP"; then 4292 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4293 fi 4294else 4295 ac_cv_path_GREP=$GREP 4296fi 4297 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4300$as_echo "$ac_cv_path_GREP" >&6; } 4301 GREP="$ac_cv_path_GREP" 4302 4303 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4305$as_echo_n "checking for egrep... " >&6; } 4306if test "${ac_cv_path_EGREP+set}" = set; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4310 then ac_cv_path_EGREP="$GREP -E" 4311 else 4312 if test -z "$EGREP"; then 4313 ac_path_EGREP_found=false 4314 # Loop through the user's path and test for each of PROGNAME-LIST 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4317do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_prog in egrep; do 4321 for ac_exec_ext in '' $ac_executable_extensions; do 4322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4323 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4324# Check for GNU ac_path_EGREP and select it if it is found. 4325 # Check for GNU $ac_path_EGREP 4326case `"$ac_path_EGREP" --version 2>&1` in 4327*GNU*) 4328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4329*) 4330 ac_count=0 4331 $as_echo_n 0123456789 >"conftest.in" 4332 while : 4333 do 4334 cat "conftest.in" "conftest.in" >"conftest.tmp" 4335 mv "conftest.tmp" "conftest.in" 4336 cp "conftest.in" "conftest.nl" 4337 $as_echo 'EGREP' >> "conftest.nl" 4338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4340 as_fn_arith $ac_count + 1 && ac_count=$as_val 4341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4342 # Best one so far, save it but keep looking for a better one 4343 ac_cv_path_EGREP="$ac_path_EGREP" 4344 ac_path_EGREP_max=$ac_count 4345 fi 4346 # 10*(2^10) chars as input seems more than enough 4347 test $ac_count -gt 10 && break 4348 done 4349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4350esac 4351 4352 $ac_path_EGREP_found && break 3 4353 done 4354 done 4355 done 4356IFS=$as_save_IFS 4357 if test -z "$ac_cv_path_EGREP"; then 4358 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4359 fi 4360else 4361 ac_cv_path_EGREP=$EGREP 4362fi 4363 4364 fi 4365fi 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4367$as_echo "$ac_cv_path_EGREP" >&6; } 4368 EGREP="$ac_cv_path_EGREP" 4369 4370 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4372$as_echo_n "checking for ANSI C header files... " >&6; } 4373if test "${ac_cv_header_stdc+set}" = set; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378#include <stdlib.h> 4379#include <stdarg.h> 4380#include <string.h> 4381#include <float.h> 4382 4383int 4384main () 4385{ 4386 4387 ; 4388 return 0; 4389} 4390_ACEOF 4391if ac_fn_c_try_compile "$LINENO"; then : 4392 ac_cv_header_stdc=yes 4393else 4394 ac_cv_header_stdc=no 4395fi 4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4397 4398if test $ac_cv_header_stdc = yes; then 4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402#include <string.h> 4403 4404_ACEOF 4405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4406 $EGREP "memchr" >/dev/null 2>&1; then : 4407 4408else 4409 ac_cv_header_stdc=no 4410fi 4411rm -f conftest* 4412 4413fi 4414 4415if test $ac_cv_header_stdc = yes; then 4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419#include <stdlib.h> 4420 4421_ACEOF 4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4423 $EGREP "free" >/dev/null 2>&1; then : 4424 4425else 4426 ac_cv_header_stdc=no 4427fi 4428rm -f conftest* 4429 4430fi 4431 4432if test $ac_cv_header_stdc = yes; then 4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4434 if test "$cross_compiling" = yes; then : 4435 : 4436else 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4438/* end confdefs.h. */ 4439#include <ctype.h> 4440#include <stdlib.h> 4441#if ((' ' & 0x0FF) == 0x020) 4442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4444#else 4445# define ISLOWER(c) \ 4446 (('a' <= (c) && (c) <= 'i') \ 4447 || ('j' <= (c) && (c) <= 'r') \ 4448 || ('s' <= (c) && (c) <= 'z')) 4449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4450#endif 4451 4452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4453int 4454main () 4455{ 4456 int i; 4457 for (i = 0; i < 256; i++) 4458 if (XOR (islower (i), ISLOWER (i)) 4459 || toupper (i) != TOUPPER (i)) 4460 return 2; 4461 return 0; 4462} 4463_ACEOF 4464if ac_fn_c_try_run "$LINENO"; then : 4465 4466else 4467 ac_cv_header_stdc=no 4468fi 4469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4470 conftest.$ac_objext conftest.beam conftest.$ac_ext 4471fi 4472 4473fi 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4476$as_echo "$ac_cv_header_stdc" >&6; } 4477if test $ac_cv_header_stdc = yes; then 4478 4479$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4480 4481fi 4482 4483# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4484for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4485 inttypes.h stdint.h unistd.h 4486do : 4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4488ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4489" 4490eval as_val=\$$as_ac_Header 4491 if test "x$as_val" = x""yes; then : 4492 cat >>confdefs.h <<_ACEOF 4493#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4494_ACEOF 4495 4496fi 4497 4498done 4499 4500 4501 4502 4503if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4504 if test -n "$ac_tool_prefix"; then 4505 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4506set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4508$as_echo_n "checking for $ac_word... " >&6; } 4509if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 case $PKG_CONFIG in 4513 [\\/]* | ?:[\\/]*) 4514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4515 ;; 4516 *) 4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518for as_dir in $PATH 4519do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_exec_ext in '' $ac_executable_extensions; do 4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4526 break 2 4527 fi 4528done 4529 done 4530IFS=$as_save_IFS 4531 4532 ;; 4533esac 4534fi 4535PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4536if test -n "$PKG_CONFIG"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4538$as_echo "$PKG_CONFIG" >&6; } 4539else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541$as_echo "no" >&6; } 4542fi 4543 4544 4545fi 4546if test -z "$ac_cv_path_PKG_CONFIG"; then 4547 ac_pt_PKG_CONFIG=$PKG_CONFIG 4548 # Extract the first word of "pkg-config", so it can be a program name with args. 4549set dummy pkg-config; ac_word=$2 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4551$as_echo_n "checking for $ac_word... " >&6; } 4552if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4553 $as_echo_n "(cached) " >&6 4554else 4555 case $ac_pt_PKG_CONFIG in 4556 [\\/]* | ?:[\\/]*) 4557 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4558 ;; 4559 *) 4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4567 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4569 break 2 4570 fi 4571done 4572 done 4573IFS=$as_save_IFS 4574 4575 ;; 4576esac 4577fi 4578ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4579if test -n "$ac_pt_PKG_CONFIG"; then 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4581$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4582else 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4584$as_echo "no" >&6; } 4585fi 4586 4587 if test "x$ac_pt_PKG_CONFIG" = x; then 4588 PKG_CONFIG="" 4589 else 4590 case $cross_compiling:$ac_tool_warned in 4591yes:) 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4594ac_tool_warned=yes ;; 4595esac 4596 PKG_CONFIG=$ac_pt_PKG_CONFIG 4597 fi 4598else 4599 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4600fi 4601 4602fi 4603if test -n "$PKG_CONFIG"; then 4604 _pkg_min_version=0.9.0 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4606$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4607 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4609$as_echo "yes" >&6; } 4610 else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4612$as_echo "no" >&6; } 4613 PKG_CONFIG="" 4614 fi 4615 4616fi 4617# Make sure we can run config.sub. 4618$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4619 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4620 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4622$as_echo_n "checking build system type... " >&6; } 4623if test "${ac_cv_build+set}" = set; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 ac_build_alias=$build_alias 4627test "x$ac_build_alias" = x && 4628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4629test "x$ac_build_alias" = x && 4630 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4631ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4632 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4633 4634fi 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4636$as_echo "$ac_cv_build" >&6; } 4637case $ac_cv_build in 4638*-*-*) ;; 4639*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4640esac 4641build=$ac_cv_build 4642ac_save_IFS=$IFS; IFS='-' 4643set x $ac_cv_build 4644shift 4645build_cpu=$1 4646build_vendor=$2 4647shift; shift 4648# Remember, the first character of IFS is used to create $*, 4649# except with old shells: 4650build_os=$* 4651IFS=$ac_save_IFS 4652case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4656$as_echo_n "checking host system type... " >&6; } 4657if test "${ac_cv_host+set}" = set; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 if test "x$host_alias" = x; then 4661 ac_cv_host=$ac_cv_build 4662else 4663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4664 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4665fi 4666 4667fi 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4669$as_echo "$ac_cv_host" >&6; } 4670case $ac_cv_host in 4671*-*-*) ;; 4672*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4673esac 4674host=$ac_cv_host 4675ac_save_IFS=$IFS; IFS='-' 4676set x $ac_cv_host 4677shift 4678host_cpu=$1 4679host_vendor=$2 4680shift; shift 4681# Remember, the first character of IFS is used to create $*, 4682# except with old shells: 4683host_os=$* 4684IFS=$ac_save_IFS 4685case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4686 4687 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4689$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4690if test "${ac_cv_path_SED+set}" = set; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4694 for ac_i in 1 2 3 4 5 6 7; do 4695 ac_script="$ac_script$as_nl$ac_script" 4696 done 4697 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4698 { ac_script=; unset ac_script;} 4699 if test -z "$SED"; then 4700 ac_path_SED_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in sed gsed; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4710 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4711# Check for GNU ac_path_SED and select it if it is found. 4712 # Check for GNU $ac_path_SED 4713case `"$ac_path_SED" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo '' >> "conftest.nl" 4725 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_SED_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_SED="$ac_path_SED" 4731 ac_path_SED_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_SED_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_SED"; then 4745 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_SED=$SED 4749fi 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4753$as_echo "$ac_cv_path_SED" >&6; } 4754 SED="$ac_cv_path_SED" 4755 rm -f conftest.sed 4756 4757 4758 4759 4760 4761if test "x$GCC" = xyes ; then 4762 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4763-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4764-Wbad-function-cast -Wformat=2" 4765 case `$CC -dumpversion` in 4766 3.4.* | 4.*) 4767 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4768 ;; 4769 esac 4770else 4771 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4772if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4773 SUNCC="yes" 4774else 4775 SUNCC="no" 4776fi 4777 4778 if test "x$SUNCC" = "xyes"; then 4779 CWARNFLAGS="-v" 4780 fi 4781fi 4782 4783 4784 4785# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4786 4787 4788 4789# Check whether --enable-strict-compilation was given. 4790if test "${enable_strict_compilation+set}" = set; then : 4791 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4792else 4793 STRICT_COMPILE=no 4794fi 4795 4796if test "x$STRICT_COMPILE" = "xyes"; then 4797 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4798if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4799 SUNCC="yes" 4800else 4801 SUNCC="no" 4802fi 4803 4804 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4805if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4806 INTELCC="yes" 4807else 4808 INTELCC="no" 4809fi 4810 4811 if test "x$GCC" = xyes ; then 4812 STRICT_CFLAGS="-pedantic -Werror" 4813 elif test "x$SUNCC" = "xyes"; then 4814 STRICT_CFLAGS="-errwarn" 4815 elif test "x$INTELCC" = "xyes"; then 4816 STRICT_CFLAGS="-Werror" 4817 fi 4818fi 4819CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4820 4821 4822 4823 4824cat >>confdefs.h <<_ACEOF 4825#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4826_ACEOF 4827 4828 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4829 if test "x$PVM" = "x"; then 4830 PVM="0" 4831 fi 4832 4833cat >>confdefs.h <<_ACEOF 4834#define PACKAGE_VERSION_MINOR $PVM 4835_ACEOF 4836 4837 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4838 if test "x$PVP" = "x"; then 4839 PVP="0" 4840 fi 4841 4842cat >>confdefs.h <<_ACEOF 4843#define PACKAGE_VERSION_PATCHLEVEL $PVP 4844_ACEOF 4845 4846 4847 4848CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4849mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4850|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4851echo 'git directory not found: installing possibly empty changelog.' >&2)" 4852 4853 4854 4855 4856macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4857INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4858mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4859|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4860echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4861 4862 4863 4864 4865 4866 4867if test x$APP_MAN_SUFFIX = x ; then 4868 APP_MAN_SUFFIX=1 4869fi 4870if test x$APP_MAN_DIR = x ; then 4871 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4872fi 4873 4874if test x$LIB_MAN_SUFFIX = x ; then 4875 LIB_MAN_SUFFIX=3 4876fi 4877if test x$LIB_MAN_DIR = x ; then 4878 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4879fi 4880 4881if test x$FILE_MAN_SUFFIX = x ; then 4882 case $host_os in 4883 solaris*) FILE_MAN_SUFFIX=4 ;; 4884 *) FILE_MAN_SUFFIX=5 ;; 4885 esac 4886fi 4887if test x$FILE_MAN_DIR = x ; then 4888 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4889fi 4890 4891if test x$MISC_MAN_SUFFIX = x ; then 4892 case $host_os in 4893 solaris*) MISC_MAN_SUFFIX=5 ;; 4894 *) MISC_MAN_SUFFIX=7 ;; 4895 esac 4896fi 4897if test x$MISC_MAN_DIR = x ; then 4898 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4899fi 4900 4901if test x$DRIVER_MAN_SUFFIX = x ; then 4902 case $host_os in 4903 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4904 *) DRIVER_MAN_SUFFIX=4 ;; 4905 esac 4906fi 4907if test x$DRIVER_MAN_DIR = x ; then 4908 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4909fi 4910 4911if test x$ADMIN_MAN_SUFFIX = x ; then 4912 case $host_os in 4913 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4914 *) ADMIN_MAN_SUFFIX=8 ;; 4915 esac 4916fi 4917if test x$ADMIN_MAN_DIR = x ; then 4918 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4919fi 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935XORG_MAN_PAGE="X Version 11" 4936 4937MAN_SUBSTS="\ 4938 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4939 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4940 -e 's|__xservername__|Xorg|g' \ 4941 -e 's|__xconfigfile__|xorg.conf|g' \ 4942 -e 's|__projectroot__|\$(prefix)|g' \ 4943 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4944 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4945 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4946 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4947 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4948 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4949 4950 4951 4952# Check whether --enable-silent-rules was given. 4953if test "${enable_silent_rules+set}" = set; then : 4954 enableval=$enable_silent_rules; 4955fi 4956 4957case $enable_silent_rules in 4958yes) AM_DEFAULT_VERBOSITY=0;; 4959no) AM_DEFAULT_VERBOSITY=1;; 4960*) AM_DEFAULT_VERBOSITY=0;; 4961esac 4962AM_BACKSLASH='\' 4963 4964 4965 4966# Initialize libtool 4967# Check whether --enable-static was given. 4968if test "${enable_static+set}" = set; then : 4969 enableval=$enable_static; p=${PACKAGE-default} 4970 case $enableval in 4971 yes) enable_static=yes ;; 4972 no) enable_static=no ;; 4973 *) 4974 enable_static=no 4975 # Look at the argument we got. We use all the common list separators. 4976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4977 for pkg in $enableval; do 4978 IFS="$lt_save_ifs" 4979 if test "X$pkg" = "X$p"; then 4980 enable_static=yes 4981 fi 4982 done 4983 IFS="$lt_save_ifs" 4984 ;; 4985 esac 4986else 4987 enable_static=no 4988fi 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998case `pwd` in 4999 *\ * | *\ *) 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5001$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5002esac 5003 5004 5005 5006macro_version='2.2.6b' 5007macro_revision='1.3017' 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021ltmain="$ac_aux_dir/ltmain.sh" 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5024$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5025if test "${ac_cv_path_SED+set}" = set; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5029 for ac_i in 1 2 3 4 5 6 7; do 5030 ac_script="$ac_script$as_nl$ac_script" 5031 done 5032 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5033 { ac_script=; unset ac_script;} 5034 if test -z "$SED"; then 5035 ac_path_SED_found=false 5036 # Loop through the user's path and test for each of PROGNAME-LIST 5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5038for as_dir in $PATH 5039do 5040 IFS=$as_save_IFS 5041 test -z "$as_dir" && as_dir=. 5042 for ac_prog in sed gsed; do 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5045 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5046# Check for GNU ac_path_SED and select it if it is found. 5047 # Check for GNU $ac_path_SED 5048case `"$ac_path_SED" --version 2>&1` in 5049*GNU*) 5050 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5051*) 5052 ac_count=0 5053 $as_echo_n 0123456789 >"conftest.in" 5054 while : 5055 do 5056 cat "conftest.in" "conftest.in" >"conftest.tmp" 5057 mv "conftest.tmp" "conftest.in" 5058 cp "conftest.in" "conftest.nl" 5059 $as_echo '' >> "conftest.nl" 5060 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5062 as_fn_arith $ac_count + 1 && ac_count=$as_val 5063 if test $ac_count -gt ${ac_path_SED_max-0}; then 5064 # Best one so far, save it but keep looking for a better one 5065 ac_cv_path_SED="$ac_path_SED" 5066 ac_path_SED_max=$ac_count 5067 fi 5068 # 10*(2^10) chars as input seems more than enough 5069 test $ac_count -gt 10 && break 5070 done 5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5072esac 5073 5074 $ac_path_SED_found && break 3 5075 done 5076 done 5077 done 5078IFS=$as_save_IFS 5079 if test -z "$ac_cv_path_SED"; then 5080 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5081 fi 5082else 5083 ac_cv_path_SED=$SED 5084fi 5085 5086fi 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5088$as_echo "$ac_cv_path_SED" >&6; } 5089 SED="$ac_cv_path_SED" 5090 rm -f conftest.sed 5091 5092test -z "$SED" && SED=sed 5093Xsed="$SED -e 1s/^X//" 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5106$as_echo_n "checking for fgrep... " >&6; } 5107if test "${ac_cv_path_FGREP+set}" = set; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5111 then ac_cv_path_FGREP="$GREP -F" 5112 else 5113 if test -z "$FGREP"; then 5114 ac_path_FGREP_found=false 5115 # Loop through the user's path and test for each of PROGNAME-LIST 5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5117for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5118do 5119 IFS=$as_save_IFS 5120 test -z "$as_dir" && as_dir=. 5121 for ac_prog in fgrep; do 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5124 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5125# Check for GNU ac_path_FGREP and select it if it is found. 5126 # Check for GNU $ac_path_FGREP 5127case `"$ac_path_FGREP" --version 2>&1` in 5128*GNU*) 5129 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5130*) 5131 ac_count=0 5132 $as_echo_n 0123456789 >"conftest.in" 5133 while : 5134 do 5135 cat "conftest.in" "conftest.in" >"conftest.tmp" 5136 mv "conftest.tmp" "conftest.in" 5137 cp "conftest.in" "conftest.nl" 5138 $as_echo 'FGREP' >> "conftest.nl" 5139 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5141 as_fn_arith $ac_count + 1 && ac_count=$as_val 5142 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5143 # Best one so far, save it but keep looking for a better one 5144 ac_cv_path_FGREP="$ac_path_FGREP" 5145 ac_path_FGREP_max=$ac_count 5146 fi 5147 # 10*(2^10) chars as input seems more than enough 5148 test $ac_count -gt 10 && break 5149 done 5150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5151esac 5152 5153 $ac_path_FGREP_found && break 3 5154 done 5155 done 5156 done 5157IFS=$as_save_IFS 5158 if test -z "$ac_cv_path_FGREP"; then 5159 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5160 fi 5161else 5162 ac_cv_path_FGREP=$FGREP 5163fi 5164 5165 fi 5166fi 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5168$as_echo "$ac_cv_path_FGREP" >&6; } 5169 FGREP="$ac_cv_path_FGREP" 5170 5171 5172test -z "$GREP" && GREP=grep 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192# Check whether --with-gnu-ld was given. 5193if test "${with_gnu_ld+set}" = set; then : 5194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5195else 5196 with_gnu_ld=no 5197fi 5198 5199ac_prog=ld 5200if test "$GCC" = yes; then 5201 # Check if gcc -print-prog-name=ld gives a path. 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5203$as_echo_n "checking for ld used by $CC... " >&6; } 5204 case $host in 5205 *-*-mingw*) 5206 # gcc leaves a trailing carriage return which upsets mingw 5207 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5208 *) 5209 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5210 esac 5211 case $ac_prog in 5212 # Accept absolute paths. 5213 [\\/]* | ?:[\\/]*) 5214 re_direlt='/[^/][^/]*/\.\./' 5215 # Canonicalize the pathname of ld 5216 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5217 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5218 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5219 done 5220 test -z "$LD" && LD="$ac_prog" 5221 ;; 5222 "") 5223 # If it fails, then pretend we aren't using GCC. 5224 ac_prog=ld 5225 ;; 5226 *) 5227 # If it is relative, then search for the first ld in PATH. 5228 with_gnu_ld=unknown 5229 ;; 5230 esac 5231elif test "$with_gnu_ld" = yes; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5233$as_echo_n "checking for GNU ld... " >&6; } 5234else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5236$as_echo_n "checking for non-GNU ld... " >&6; } 5237fi 5238if test "${lt_cv_path_LD+set}" = set; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 if test -z "$LD"; then 5242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5243 for ac_dir in $PATH; do 5244 IFS="$lt_save_ifs" 5245 test -z "$ac_dir" && ac_dir=. 5246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5247 lt_cv_path_LD="$ac_dir/$ac_prog" 5248 # Check to see if the program is GNU ld. I'd rather use --version, 5249 # but apparently some variants of GNU ld only accept -v. 5250 # Break only if it was the GNU/non-GNU ld that we prefer. 5251 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5252 *GNU* | *'with BFD'*) 5253 test "$with_gnu_ld" != no && break 5254 ;; 5255 *) 5256 test "$with_gnu_ld" != yes && break 5257 ;; 5258 esac 5259 fi 5260 done 5261 IFS="$lt_save_ifs" 5262else 5263 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5264fi 5265fi 5266 5267LD="$lt_cv_path_LD" 5268if test -n "$LD"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5270$as_echo "$LD" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5273$as_echo "no" >&6; } 5274fi 5275test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5277$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5278if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5282case `$LD -v 2>&1 </dev/null` in 5283*GNU* | *'with BFD'*) 5284 lt_cv_prog_gnu_ld=yes 5285 ;; 5286*) 5287 lt_cv_prog_gnu_ld=no 5288 ;; 5289esac 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5292$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5293with_gnu_ld=$lt_cv_prog_gnu_ld 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5304$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5305if test "${lt_cv_path_NM+set}" = set; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 if test -n "$NM"; then 5309 # Let the user override the test. 5310 lt_cv_path_NM="$NM" 5311else 5312 lt_nm_to_check="${ac_tool_prefix}nm" 5313 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5314 lt_nm_to_check="$lt_nm_to_check nm" 5315 fi 5316 for lt_tmp_nm in $lt_nm_to_check; do 5317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5318 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5319 IFS="$lt_save_ifs" 5320 test -z "$ac_dir" && ac_dir=. 5321 tmp_nm="$ac_dir/$lt_tmp_nm" 5322 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5323 # Check to see if the nm accepts a BSD-compat flag. 5324 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5325 # nm: unknown option "B" ignored 5326 # Tru64's nm complains that /dev/null is an invalid object file 5327 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5328 */dev/null* | *'Invalid file or object type'*) 5329 lt_cv_path_NM="$tmp_nm -B" 5330 break 5331 ;; 5332 *) 5333 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5334 */dev/null*) 5335 lt_cv_path_NM="$tmp_nm -p" 5336 break 5337 ;; 5338 *) 5339 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5340 continue # so that we can try to find one that supports BSD flags 5341 ;; 5342 esac 5343 ;; 5344 esac 5345 fi 5346 done 5347 IFS="$lt_save_ifs" 5348 done 5349 : ${lt_cv_path_NM=no} 5350fi 5351fi 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5353$as_echo "$lt_cv_path_NM" >&6; } 5354if test "$lt_cv_path_NM" != "no"; then 5355 NM="$lt_cv_path_NM" 5356else 5357 # Didn't find any BSD compatible name lister, look for dumpbin. 5358 if test -n "$ac_tool_prefix"; then 5359 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5360 do 5361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5362set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 if test -n "$DUMPBIN"; then 5369 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5370else 5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372for as_dir in $PATH 5373do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5378 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382done 5383 done 5384IFS=$as_save_IFS 5385 5386fi 5387fi 5388DUMPBIN=$ac_cv_prog_DUMPBIN 5389if test -n "$DUMPBIN"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5391$as_echo "$DUMPBIN" >&6; } 5392else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394$as_echo "no" >&6; } 5395fi 5396 5397 5398 test -n "$DUMPBIN" && break 5399 done 5400fi 5401if test -z "$DUMPBIN"; then 5402 ac_ct_DUMPBIN=$DUMPBIN 5403 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5404do 5405 # Extract the first word of "$ac_prog", so it can be a program name with args. 5406set dummy $ac_prog; ac_word=$2 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5408$as_echo_n "checking for $ac_word... " >&6; } 5409if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -n "$ac_ct_DUMPBIN"; then 5413 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5414else 5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5422 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430fi 5431fi 5432ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5433if test -n "$ac_ct_DUMPBIN"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5435$as_echo "$ac_ct_DUMPBIN" >&6; } 5436else 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5438$as_echo "no" >&6; } 5439fi 5440 5441 5442 test -n "$ac_ct_DUMPBIN" && break 5443done 5444 5445 if test "x$ac_ct_DUMPBIN" = x; then 5446 DUMPBIN=":" 5447 else 5448 case $cross_compiling:$ac_tool_warned in 5449yes:) 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5452ac_tool_warned=yes ;; 5453esac 5454 DUMPBIN=$ac_ct_DUMPBIN 5455 fi 5456fi 5457 5458 5459 if test "$DUMPBIN" != ":"; then 5460 NM="$DUMPBIN" 5461 fi 5462fi 5463test -z "$NM" && NM=nm 5464 5465 5466 5467 5468 5469 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5471$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5472if test "${lt_cv_nm_interface+set}" = set; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 lt_cv_nm_interface="BSD nm" 5476 echo "int some_variable = 0;" > conftest.$ac_ext 5477 (eval echo "\"\$as_me:5477: $ac_compile\"" >&5) 5478 (eval "$ac_compile" 2>conftest.err) 5479 cat conftest.err >&5 5480 (eval echo "\"\$as_me:5480: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5481 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5482 cat conftest.err >&5 5483 (eval echo "\"\$as_me:5483: output\"" >&5) 5484 cat conftest.out >&5 5485 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5486 lt_cv_nm_interface="MS dumpbin" 5487 fi 5488 rm -f conftest* 5489fi 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5491$as_echo "$lt_cv_nm_interface" >&6; } 5492 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5494$as_echo_n "checking whether ln -s works... " >&6; } 5495LN_S=$as_ln_s 5496if test "$LN_S" = "ln -s"; then 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5498$as_echo "yes" >&6; } 5499else 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5501$as_echo "no, using $LN_S" >&6; } 5502fi 5503 5504# find the maximum length of command line arguments 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5506$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5507if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 i=0 5511 teststring="ABCD" 5512 5513 case $build_os in 5514 msdosdjgpp*) 5515 # On DJGPP, this test can blow up pretty badly due to problems in libc 5516 # (any single argument exceeding 2000 bytes causes a buffer overrun 5517 # during glob expansion). Even if it were fixed, the result of this 5518 # check would be larger than it should be. 5519 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5520 ;; 5521 5522 gnu*) 5523 # Under GNU Hurd, this test is not required because there is 5524 # no limit to the length of command line arguments. 5525 # Libtool will interpret -1 as no limit whatsoever 5526 lt_cv_sys_max_cmd_len=-1; 5527 ;; 5528 5529 cygwin* | mingw* | cegcc*) 5530 # On Win9x/ME, this test blows up -- it succeeds, but takes 5531 # about 5 minutes as the teststring grows exponentially. 5532 # Worse, since 9x/ME are not pre-emptively multitasking, 5533 # you end up with a "frozen" computer, even though with patience 5534 # the test eventually succeeds (with a max line length of 256k). 5535 # Instead, let's just punt: use the minimum linelength reported by 5536 # all of the supported platforms: 8192 (on NT/2K/XP). 5537 lt_cv_sys_max_cmd_len=8192; 5538 ;; 5539 5540 amigaos*) 5541 # On AmigaOS with pdksh, this test takes hours, literally. 5542 # So we just punt and use a minimum line length of 8192. 5543 lt_cv_sys_max_cmd_len=8192; 5544 ;; 5545 5546 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5547 # This has been around since 386BSD, at least. Likely further. 5548 if test -x /sbin/sysctl; then 5549 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5550 elif test -x /usr/sbin/sysctl; then 5551 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5552 else 5553 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5554 fi 5555 # And add a safety zone 5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5558 ;; 5559 5560 interix*) 5561 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5562 lt_cv_sys_max_cmd_len=196608 5563 ;; 5564 5565 osf*) 5566 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5567 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5568 # nice to cause kernel panics so lets avoid the loop below. 5569 # First set a reasonable default. 5570 lt_cv_sys_max_cmd_len=16384 5571 # 5572 if test -x /sbin/sysconfig; then 5573 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5574 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5575 esac 5576 fi 5577 ;; 5578 sco3.2v5*) 5579 lt_cv_sys_max_cmd_len=102400 5580 ;; 5581 sysv5* | sco5v6* | sysv4.2uw2*) 5582 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5583 if test -n "$kargmax"; then 5584 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5585 else 5586 lt_cv_sys_max_cmd_len=32768 5587 fi 5588 ;; 5589 *) 5590 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5591 if test -n "$lt_cv_sys_max_cmd_len"; then 5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5594 else 5595 # Make teststring a little bigger before we do anything with it. 5596 # a 1K string should be a reasonable start. 5597 for i in 1 2 3 4 5 6 7 8 ; do 5598 teststring=$teststring$teststring 5599 done 5600 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5601 # If test is not a shell built-in, we'll probably end up computing a 5602 # maximum length that is only half of the actual maximum length, but 5603 # we can't tell. 5604 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5605 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5606 test $i != 17 # 1/2 MB should be enough 5607 do 5608 i=`expr $i + 1` 5609 teststring=$teststring$teststring 5610 done 5611 # Only check the string length outside the loop. 5612 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5613 teststring= 5614 # Add a significant safety factor because C++ compilers can tack on 5615 # massive amounts of additional arguments before passing them to the 5616 # linker. It appears as though 1/2 is a usable value. 5617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5618 fi 5619 ;; 5620 esac 5621 5622fi 5623 5624if test -n $lt_cv_sys_max_cmd_len ; then 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5626$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5627else 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5629$as_echo "none" >&6; } 5630fi 5631max_cmd_len=$lt_cv_sys_max_cmd_len 5632 5633 5634 5635 5636 5637 5638: ${CP="cp -f"} 5639: ${MV="mv -f"} 5640: ${RM="rm -f"} 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5643$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5644# Try some XSI features 5645xsi_shell=no 5646( _lt_dummy="a/b/c" 5647 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5648 = c,a/b,, \ 5649 && eval 'test $(( 1 + 1 )) -eq 2 \ 5650 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5651 && xsi_shell=yes 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5653$as_echo "$xsi_shell" >&6; } 5654 5655 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5657$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5658lt_shell_append=no 5659( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5660 >/dev/null 2>&1 \ 5661 && lt_shell_append=yes 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5663$as_echo "$lt_shell_append" >&6; } 5664 5665 5666if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5667 lt_unset=unset 5668else 5669 lt_unset=false 5670fi 5671 5672 5673 5674 5675 5676# test EBCDIC or ASCII 5677case `echo X|tr X '\101'` in 5678 A) # ASCII based system 5679 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5680 lt_SP2NL='tr \040 \012' 5681 lt_NL2SP='tr \015\012 \040\040' 5682 ;; 5683 *) # EBCDIC based system 5684 lt_SP2NL='tr \100 \n' 5685 lt_NL2SP='tr \r\n \100\100' 5686 ;; 5687esac 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5698$as_echo_n "checking for $LD option to reload object files... " >&6; } 5699if test "${lt_cv_ld_reload_flag+set}" = set; then : 5700 $as_echo_n "(cached) " >&6 5701else 5702 lt_cv_ld_reload_flag='-r' 5703fi 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5705$as_echo "$lt_cv_ld_reload_flag" >&6; } 5706reload_flag=$lt_cv_ld_reload_flag 5707case $reload_flag in 5708"" | " "*) ;; 5709*) reload_flag=" $reload_flag" ;; 5710esac 5711reload_cmds='$LD$reload_flag -o $output$reload_objs' 5712case $host_os in 5713 darwin*) 5714 if test "$GCC" = yes; then 5715 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5716 else 5717 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5718 fi 5719 ;; 5720esac 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730if test -n "$ac_tool_prefix"; then 5731 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5732set dummy ${ac_tool_prefix}objdump; ac_word=$2 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5734$as_echo_n "checking for $ac_word... " >&6; } 5735if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 if test -n "$OBJDUMP"; then 5739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5740else 5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742for as_dir in $PATH 5743do 5744 IFS=$as_save_IFS 5745 test -z "$as_dir" && as_dir=. 5746 for ac_exec_ext in '' $ac_executable_extensions; do 5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5748 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5750 break 2 5751 fi 5752done 5753 done 5754IFS=$as_save_IFS 5755 5756fi 5757fi 5758OBJDUMP=$ac_cv_prog_OBJDUMP 5759if test -n "$OBJDUMP"; then 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5761$as_echo "$OBJDUMP" >&6; } 5762else 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764$as_echo "no" >&6; } 5765fi 5766 5767 5768fi 5769if test -z "$ac_cv_prog_OBJDUMP"; then 5770 ac_ct_OBJDUMP=$OBJDUMP 5771 # Extract the first word of "objdump", so it can be a program name with args. 5772set dummy objdump; ac_word=$2 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5774$as_echo_n "checking for $ac_word... " >&6; } 5775if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 if test -n "$ac_ct_OBJDUMP"; then 5779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5780else 5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5782for as_dir in $PATH 5783do 5784 IFS=$as_save_IFS 5785 test -z "$as_dir" && as_dir=. 5786 for ac_exec_ext in '' $ac_executable_extensions; do 5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5788 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5790 break 2 5791 fi 5792done 5793 done 5794IFS=$as_save_IFS 5795 5796fi 5797fi 5798ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5799if test -n "$ac_ct_OBJDUMP"; then 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5801$as_echo "$ac_ct_OBJDUMP" >&6; } 5802else 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5804$as_echo "no" >&6; } 5805fi 5806 5807 if test "x$ac_ct_OBJDUMP" = x; then 5808 OBJDUMP="false" 5809 else 5810 case $cross_compiling:$ac_tool_warned in 5811yes:) 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5814ac_tool_warned=yes ;; 5815esac 5816 OBJDUMP=$ac_ct_OBJDUMP 5817 fi 5818else 5819 OBJDUMP="$ac_cv_prog_OBJDUMP" 5820fi 5821 5822test -z "$OBJDUMP" && OBJDUMP=objdump 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5833$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5834if test "${lt_cv_deplibs_check_method+set}" = set; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 lt_cv_file_magic_cmd='$MAGIC_CMD' 5838lt_cv_file_magic_test_file= 5839lt_cv_deplibs_check_method='unknown' 5840# Need to set the preceding variable on all platforms that support 5841# interlibrary dependencies. 5842# 'none' -- dependencies not supported. 5843# `unknown' -- same as none, but documents that we really don't know. 5844# 'pass_all' -- all dependencies passed with no checks. 5845# 'test_compile' -- check by making test program. 5846# 'file_magic [[regex]]' -- check by looking for files in library path 5847# which responds to the $file_magic_cmd with a given extended regex. 5848# If you have `file' or equivalent on your system and you're not sure 5849# whether `pass_all' will *always* work, you probably want this one. 5850 5851case $host_os in 5852aix[4-9]*) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856beos*) 5857 lt_cv_deplibs_check_method=pass_all 5858 ;; 5859 5860bsdi[45]*) 5861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5862 lt_cv_file_magic_cmd='/usr/bin/file -L' 5863 lt_cv_file_magic_test_file=/shlib/libc.so 5864 ;; 5865 5866cygwin*) 5867 # func_win32_libid is a shell function defined in ltmain.sh 5868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5869 lt_cv_file_magic_cmd='func_win32_libid' 5870 ;; 5871 5872mingw* | pw32*) 5873 # Base MSYS/MinGW do not provide the 'file' command needed by 5874 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5875 # unless we find 'file', for example because we are cross-compiling. 5876 if ( file / ) >/dev/null 2>&1; then 5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5878 lt_cv_file_magic_cmd='func_win32_libid' 5879 else 5880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5881 lt_cv_file_magic_cmd='$OBJDUMP -f' 5882 fi 5883 ;; 5884 5885cegcc) 5886 # use the weaker test based on 'objdump'. See mingw*. 5887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5888 lt_cv_file_magic_cmd='$OBJDUMP -f' 5889 ;; 5890 5891darwin* | rhapsody*) 5892 lt_cv_deplibs_check_method=pass_all 5893 ;; 5894 5895freebsd* | dragonfly*) 5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5897 case $host_cpu in 5898 i*86 ) 5899 # Not sure whether the presence of OpenBSD here was a mistake. 5900 # Let's accept both of them until this is cleared up. 5901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5902 lt_cv_file_magic_cmd=/usr/bin/file 5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5904 ;; 5905 esac 5906 else 5907 lt_cv_deplibs_check_method=pass_all 5908 fi 5909 ;; 5910 5911gnu*) 5912 lt_cv_deplibs_check_method=pass_all 5913 ;; 5914 5915hpux10.20* | hpux11*) 5916 lt_cv_file_magic_cmd=/usr/bin/file 5917 case $host_cpu in 5918 ia64*) 5919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5921 ;; 5922 hppa*64*) 5923 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]' 5924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5925 ;; 5926 *) 5927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5928 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5929 ;; 5930 esac 5931 ;; 5932 5933interix[3-9]*) 5934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5936 ;; 5937 5938irix5* | irix6* | nonstopux*) 5939 case $LD in 5940 *-32|*"-32 ") libmagic=32-bit;; 5941 *-n32|*"-n32 ") libmagic=N32;; 5942 *-64|*"-64 ") libmagic=64-bit;; 5943 *) libmagic=never-match;; 5944 esac 5945 lt_cv_deplibs_check_method=pass_all 5946 ;; 5947 5948# This must be Linux ELF. 5949linux* | k*bsd*-gnu) 5950 lt_cv_deplibs_check_method=pass_all 5951 ;; 5952 5953netbsd*) 5954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5956 else 5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5958 fi 5959 ;; 5960 5961newos6*) 5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5963 lt_cv_file_magic_cmd=/usr/bin/file 5964 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5965 ;; 5966 5967*nto* | *qnx*) 5968 lt_cv_deplibs_check_method=pass_all 5969 ;; 5970 5971openbsd*) 5972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5974 else 5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5976 fi 5977 ;; 5978 5979osf3* | osf4* | osf5*) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983rdos*) 5984 lt_cv_deplibs_check_method=pass_all 5985 ;; 5986 5987solaris*) 5988 lt_cv_deplibs_check_method=pass_all 5989 ;; 5990 5991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5992 lt_cv_deplibs_check_method=pass_all 5993 ;; 5994 5995sysv4 | sysv4.3*) 5996 case $host_vendor in 5997 motorola) 5998 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]' 5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6000 ;; 6001 ncr) 6002 lt_cv_deplibs_check_method=pass_all 6003 ;; 6004 sequent) 6005 lt_cv_file_magic_cmd='/bin/file' 6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6007 ;; 6008 sni) 6009 lt_cv_file_magic_cmd='/bin/file' 6010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6011 lt_cv_file_magic_test_file=/lib/libc.so 6012 ;; 6013 siemens) 6014 lt_cv_deplibs_check_method=pass_all 6015 ;; 6016 pc) 6017 lt_cv_deplibs_check_method=pass_all 6018 ;; 6019 esac 6020 ;; 6021 6022tpf*) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025esac 6026 6027fi 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6029$as_echo "$lt_cv_deplibs_check_method" >&6; } 6030file_magic_cmd=$lt_cv_file_magic_cmd 6031deplibs_check_method=$lt_cv_deplibs_check_method 6032test -z "$deplibs_check_method" && deplibs_check_method=unknown 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045if test -n "$ac_tool_prefix"; then 6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6047set dummy ${ac_tool_prefix}ar; ac_word=$2 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6049$as_echo_n "checking for $ac_word... " >&6; } 6050if test "${ac_cv_prog_AR+set}" = set; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 if test -n "$AR"; then 6054 ac_cv_prog_AR="$AR" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6063 ac_cv_prog_AR="${ac_tool_prefix}ar" 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068 done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073AR=$ac_cv_prog_AR 6074if test -n "$AR"; then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6076$as_echo "$AR" >&6; } 6077else 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6079$as_echo "no" >&6; } 6080fi 6081 6082 6083fi 6084if test -z "$ac_cv_prog_AR"; then 6085 ac_ct_AR=$AR 6086 # Extract the first word of "ar", so it can be a program name with args. 6087set dummy ar; ac_word=$2 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6089$as_echo_n "checking for $ac_word... " >&6; } 6090if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 if test -n "$ac_ct_AR"; then 6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6095else 6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6097for as_dir in $PATH 6098do 6099 IFS=$as_save_IFS 6100 test -z "$as_dir" && as_dir=. 6101 for ac_exec_ext in '' $ac_executable_extensions; do 6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6103 ac_cv_prog_ac_ct_AR="ar" 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6105 break 2 6106 fi 6107done 6108 done 6109IFS=$as_save_IFS 6110 6111fi 6112fi 6113ac_ct_AR=$ac_cv_prog_ac_ct_AR 6114if test -n "$ac_ct_AR"; then 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6116$as_echo "$ac_ct_AR" >&6; } 6117else 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6119$as_echo "no" >&6; } 6120fi 6121 6122 if test "x$ac_ct_AR" = x; then 6123 AR="false" 6124 else 6125 case $cross_compiling:$ac_tool_warned in 6126yes:) 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6129ac_tool_warned=yes ;; 6130esac 6131 AR=$ac_ct_AR 6132 fi 6133else 6134 AR="$ac_cv_prog_AR" 6135fi 6136 6137test -z "$AR" && AR=ar 6138test -z "$AR_FLAGS" && AR_FLAGS=cru 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150if test -n "$ac_tool_prefix"; then 6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6152set dummy ${ac_tool_prefix}strip; ac_word=$2 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154$as_echo_n "checking for $ac_word... " >&6; } 6155if test "${ac_cv_prog_STRIP+set}" = set; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 if test -n "$STRIP"; then 6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6160else 6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172done 6173 done 6174IFS=$as_save_IFS 6175 6176fi 6177fi 6178STRIP=$ac_cv_prog_STRIP 6179if test -n "$STRIP"; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6181$as_echo "$STRIP" >&6; } 6182else 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184$as_echo "no" >&6; } 6185fi 6186 6187 6188fi 6189if test -z "$ac_cv_prog_STRIP"; then 6190 ac_ct_STRIP=$STRIP 6191 # Extract the first word of "strip", so it can be a program name with args. 6192set dummy strip; ac_word=$2 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6194$as_echo_n "checking for $ac_word... " >&6; } 6195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 if test -n "$ac_ct_STRIP"; then 6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6200else 6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6202for as_dir in $PATH 6203do 6204 IFS=$as_save_IFS 6205 test -z "$as_dir" && as_dir=. 6206 for ac_exec_ext in '' $ac_executable_extensions; do 6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6208 ac_cv_prog_ac_ct_STRIP="strip" 6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6210 break 2 6211 fi 6212done 6213 done 6214IFS=$as_save_IFS 6215 6216fi 6217fi 6218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6219if test -n "$ac_ct_STRIP"; then 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6221$as_echo "$ac_ct_STRIP" >&6; } 6222else 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6224$as_echo "no" >&6; } 6225fi 6226 6227 if test "x$ac_ct_STRIP" = x; then 6228 STRIP=":" 6229 else 6230 case $cross_compiling:$ac_tool_warned in 6231yes:) 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6234ac_tool_warned=yes ;; 6235esac 6236 STRIP=$ac_ct_STRIP 6237 fi 6238else 6239 STRIP="$ac_cv_prog_STRIP" 6240fi 6241 6242test -z "$STRIP" && STRIP=: 6243 6244 6245 6246 6247 6248 6249if test -n "$ac_tool_prefix"; then 6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6251set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253$as_echo_n "checking for $ac_word... " >&6; } 6254if test "${ac_cv_prog_RANLIB+set}" = set; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 if test -n "$RANLIB"; then 6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6259else 6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271done 6272 done 6273IFS=$as_save_IFS 6274 6275fi 6276fi 6277RANLIB=$ac_cv_prog_RANLIB 6278if test -n "$RANLIB"; then 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6280$as_echo "$RANLIB" >&6; } 6281else 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283$as_echo "no" >&6; } 6284fi 6285 6286 6287fi 6288if test -z "$ac_cv_prog_RANLIB"; then 6289 ac_ct_RANLIB=$RANLIB 6290 # Extract the first word of "ranlib", so it can be a program name with args. 6291set dummy ranlib; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$ac_ct_RANLIB"; then 6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6307 ac_cv_prog_ac_ct_RANLIB="ranlib" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6318if test -n "$ac_ct_RANLIB"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6320$as_echo "$ac_ct_RANLIB" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 if test "x$ac_ct_RANLIB" = x; then 6327 RANLIB=":" 6328 else 6329 case $cross_compiling:$ac_tool_warned in 6330yes:) 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6333ac_tool_warned=yes ;; 6334esac 6335 RANLIB=$ac_ct_RANLIB 6336 fi 6337else 6338 RANLIB="$ac_cv_prog_RANLIB" 6339fi 6340 6341test -z "$RANLIB" && RANLIB=: 6342 6343 6344 6345 6346 6347 6348# Determine commands to create old-style static archives. 6349old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6350old_postinstall_cmds='chmod 644 $oldlib' 6351old_postuninstall_cmds= 6352 6353if test -n "$RANLIB"; then 6354 case $host_os in 6355 openbsd*) 6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6357 ;; 6358 *) 6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6360 ;; 6361 esac 6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6363fi 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398# If no C compiler was specified, use CC. 6399LTCC=${LTCC-"$CC"} 6400 6401# If no C compiler flags were specified, use CFLAGS. 6402LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6403 6404# Allow CC to be a program name with arguments. 6405compiler=$CC 6406 6407 6408# Check for command to grab the raw symbol name followed by C symbol from nm. 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6410$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6411if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 6415# These are sane defaults that work on at least a few old systems. 6416# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6417 6418# Character class describing NM global symbol codes. 6419symcode='[BCDEGRST]' 6420 6421# Regexp to match symbols that can be accessed directly from C. 6422sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6423 6424# Define system-specific variables. 6425case $host_os in 6426aix*) 6427 symcode='[BCDT]' 6428 ;; 6429cygwin* | mingw* | pw32* | cegcc*) 6430 symcode='[ABCDGISTW]' 6431 ;; 6432hpux*) 6433 if test "$host_cpu" = ia64; then 6434 symcode='[ABCDEGRST]' 6435 fi 6436 ;; 6437irix* | nonstopux*) 6438 symcode='[BCDEGRST]' 6439 ;; 6440osf*) 6441 symcode='[BCDEGQRST]' 6442 ;; 6443solaris*) 6444 symcode='[BDRT]' 6445 ;; 6446sco3.2v5*) 6447 symcode='[DT]' 6448 ;; 6449sysv4.2uw2*) 6450 symcode='[DT]' 6451 ;; 6452sysv5* | sco5v6* | unixware* | OpenUNIX*) 6453 symcode='[ABDT]' 6454 ;; 6455sysv4) 6456 symcode='[DFNSTU]' 6457 ;; 6458esac 6459 6460# If we're using GNU nm, then use its standard symbol codes. 6461case `$NM -V 2>&1` in 6462*GNU* | *'with BFD'*) 6463 symcode='[ABCDGIRSTW]' ;; 6464esac 6465 6466# Transform an extracted symbol line into a proper C declaration. 6467# Some systems (esp. on ia64) link data and code symbols differently, 6468# so use this general approach. 6469lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6470 6471# Transform an extracted symbol line into symbol name and symbol address 6472lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6473lt_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'" 6474 6475# Handle CRLF in mingw tool chain 6476opt_cr= 6477case $build_os in 6478mingw*) 6479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6480 ;; 6481esac 6482 6483# Try without a prefix underscore, then with it. 6484for ac_symprfx in "" "_"; do 6485 6486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6487 symxfrm="\\1 $ac_symprfx\\2 \\2" 6488 6489 # Write the raw and C identifiers. 6490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6491 # Fake it for dumpbin and say T for any non-static function 6492 # and D for any global variable. 6493 # Also find C++ and __fastcall symbols from MSVC++, 6494 # which start with @ or ?. 6495 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6496" {last_section=section; section=\$ 3};"\ 6497" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6498" \$ 0!~/External *\|/{next};"\ 6499" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6500" {if(hide[section]) next};"\ 6501" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6502" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6503" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6504" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6505" ' prfx=^$ac_symprfx" 6506 else 6507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6508 fi 6509 6510 # Check to see that the pipe works correctly. 6511 pipe_works=no 6512 6513 rm -f conftest* 6514 cat > conftest.$ac_ext <<_LT_EOF 6515#ifdef __cplusplus 6516extern "C" { 6517#endif 6518char nm_test_var; 6519void nm_test_func(void); 6520void nm_test_func(void){} 6521#ifdef __cplusplus 6522} 6523#endif 6524int main(){nm_test_var='a';nm_test_func();return(0);} 6525_LT_EOF 6526 6527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6528 (eval $ac_compile) 2>&5 6529 ac_status=$? 6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6531 test $ac_status = 0; }; then 6532 # Now try to grab the symbols. 6533 nlist=conftest.nm 6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6536 ac_status=$? 6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 test $ac_status = 0; } && test -s "$nlist"; then 6539 # Try sorting and uniquifying the output. 6540 if sort "$nlist" | uniq > "$nlist"T; then 6541 mv -f "$nlist"T "$nlist" 6542 else 6543 rm -f "$nlist"T 6544 fi 6545 6546 # Make sure that we snagged all the symbols we need. 6547 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6548 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6549 cat <<_LT_EOF > conftest.$ac_ext 6550#ifdef __cplusplus 6551extern "C" { 6552#endif 6553 6554_LT_EOF 6555 # Now generate the symbol file. 6556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6557 6558 cat <<_LT_EOF >> conftest.$ac_ext 6559 6560/* The mapping between symbol names and symbols. */ 6561const struct { 6562 const char *name; 6563 void *address; 6564} 6565lt__PROGRAM__LTX_preloaded_symbols[] = 6566{ 6567 { "@PROGRAM@", (void *) 0 }, 6568_LT_EOF 6569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6570 cat <<\_LT_EOF >> conftest.$ac_ext 6571 {0, (void *) 0} 6572}; 6573 6574/* This works around a problem in FreeBSD linker */ 6575#ifdef FREEBSD_WORKAROUND 6576static const void *lt_preloaded_setup() { 6577 return lt__PROGRAM__LTX_preloaded_symbols; 6578} 6579#endif 6580 6581#ifdef __cplusplus 6582} 6583#endif 6584_LT_EOF 6585 # Now try linking the two files. 6586 mv conftest.$ac_objext conftstm.$ac_objext 6587 lt_save_LIBS="$LIBS" 6588 lt_save_CFLAGS="$CFLAGS" 6589 LIBS="conftstm.$ac_objext" 6590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6592 (eval $ac_link) 2>&5 6593 ac_status=$? 6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6595 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6596 pipe_works=yes 6597 fi 6598 LIBS="$lt_save_LIBS" 6599 CFLAGS="$lt_save_CFLAGS" 6600 else 6601 echo "cannot find nm_test_func in $nlist" >&5 6602 fi 6603 else 6604 echo "cannot find nm_test_var in $nlist" >&5 6605 fi 6606 else 6607 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6608 fi 6609 else 6610 echo "$progname: failed program was:" >&5 6611 cat conftest.$ac_ext >&5 6612 fi 6613 rm -rf conftest* conftst* 6614 6615 # Do not use the global_symbol_pipe unless it works. 6616 if test "$pipe_works" = yes; then 6617 break 6618 else 6619 lt_cv_sys_global_symbol_pipe= 6620 fi 6621done 6622 6623fi 6624 6625if test -z "$lt_cv_sys_global_symbol_pipe"; then 6626 lt_cv_sys_global_symbol_to_cdecl= 6627fi 6628if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6630$as_echo "failed" >&6; } 6631else 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6633$as_echo "ok" >&6; } 6634fi 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657# Check whether --enable-libtool-lock was given. 6658if test "${enable_libtool_lock+set}" = set; then : 6659 enableval=$enable_libtool_lock; 6660fi 6661 6662test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6663 6664# Some flags need to be propagated to the compiler or linker for good 6665# libtool support. 6666case $host in 6667ia64-*-hpux*) 6668 # Find out which ABI we are using. 6669 echo 'int i;' > conftest.$ac_ext 6670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6671 (eval $ac_compile) 2>&5 6672 ac_status=$? 6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6674 test $ac_status = 0; }; then 6675 case `/usr/bin/file conftest.$ac_objext` in 6676 *ELF-32*) 6677 HPUX_IA64_MODE="32" 6678 ;; 6679 *ELF-64*) 6680 HPUX_IA64_MODE="64" 6681 ;; 6682 esac 6683 fi 6684 rm -rf conftest* 6685 ;; 6686*-*-irix6*) 6687 # Find out which ABI we are using. 6688 echo '#line 6688 "configure"' > conftest.$ac_ext 6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6690 (eval $ac_compile) 2>&5 6691 ac_status=$? 6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6693 test $ac_status = 0; }; then 6694 if test "$lt_cv_prog_gnu_ld" = yes; then 6695 case `/usr/bin/file conftest.$ac_objext` in 6696 *32-bit*) 6697 LD="${LD-ld} -melf32bsmip" 6698 ;; 6699 *N32*) 6700 LD="${LD-ld} -melf32bmipn32" 6701 ;; 6702 *64-bit*) 6703 LD="${LD-ld} -melf64bmip" 6704 ;; 6705 esac 6706 else 6707 case `/usr/bin/file conftest.$ac_objext` in 6708 *32-bit*) 6709 LD="${LD-ld} -32" 6710 ;; 6711 *N32*) 6712 LD="${LD-ld} -n32" 6713 ;; 6714 *64-bit*) 6715 LD="${LD-ld} -64" 6716 ;; 6717 esac 6718 fi 6719 fi 6720 rm -rf conftest* 6721 ;; 6722 6723x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6724s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6725 # Find out which ABI we are using. 6726 echo 'int i;' > conftest.$ac_ext 6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6728 (eval $ac_compile) 2>&5 6729 ac_status=$? 6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6731 test $ac_status = 0; }; then 6732 case `/usr/bin/file conftest.o` in 6733 *32-bit*) 6734 case $host in 6735 x86_64-*kfreebsd*-gnu) 6736 LD="${LD-ld} -m elf_i386_fbsd" 6737 ;; 6738 x86_64-*linux*) 6739 LD="${LD-ld} -m elf_i386" 6740 ;; 6741 ppc64-*linux*|powerpc64-*linux*) 6742 LD="${LD-ld} -m elf32ppclinux" 6743 ;; 6744 s390x-*linux*) 6745 LD="${LD-ld} -m elf_s390" 6746 ;; 6747 sparc64-*linux*) 6748 LD="${LD-ld} -m elf32_sparc" 6749 ;; 6750 esac 6751 ;; 6752 *64-bit*) 6753 case $host in 6754 x86_64-*kfreebsd*-gnu) 6755 LD="${LD-ld} -m elf_x86_64_fbsd" 6756 ;; 6757 x86_64-*linux*) 6758 LD="${LD-ld} -m elf_x86_64" 6759 ;; 6760 ppc*-*linux*|powerpc*-*linux*) 6761 LD="${LD-ld} -m elf64ppc" 6762 ;; 6763 s390*-*linux*|s390*-*tpf*) 6764 LD="${LD-ld} -m elf64_s390" 6765 ;; 6766 sparc*-*linux*) 6767 LD="${LD-ld} -m elf64_sparc" 6768 ;; 6769 esac 6770 ;; 6771 esac 6772 fi 6773 rm -rf conftest* 6774 ;; 6775 6776*-*-sco3.2v5*) 6777 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6778 SAVE_CFLAGS="$CFLAGS" 6779 CFLAGS="$CFLAGS -belf" 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6781$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6782if test "${lt_cv_cc_needs_belf+set}" = set; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 ac_ext=c 6786ac_cpp='$CPP $CPPFLAGS' 6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6789ac_compiler_gnu=$ac_cv_c_compiler_gnu 6790 6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6792/* end confdefs.h. */ 6793 6794int 6795main () 6796{ 6797 6798 ; 6799 return 0; 6800} 6801_ACEOF 6802if ac_fn_c_try_link "$LINENO"; then : 6803 lt_cv_cc_needs_belf=yes 6804else 6805 lt_cv_cc_needs_belf=no 6806fi 6807rm -f core conftest.err conftest.$ac_objext \ 6808 conftest$ac_exeext conftest.$ac_ext 6809 ac_ext=c 6810ac_cpp='$CPP $CPPFLAGS' 6811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6813ac_compiler_gnu=$ac_cv_c_compiler_gnu 6814 6815fi 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6817$as_echo "$lt_cv_cc_needs_belf" >&6; } 6818 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6819 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6820 CFLAGS="$SAVE_CFLAGS" 6821 fi 6822 ;; 6823sparc*-*solaris*) 6824 # Find out which ABI we are using. 6825 echo 'int i;' > conftest.$ac_ext 6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6827 (eval $ac_compile) 2>&5 6828 ac_status=$? 6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6830 test $ac_status = 0; }; then 6831 case `/usr/bin/file conftest.o` in 6832 *64-bit*) 6833 case $lt_cv_prog_gnu_ld in 6834 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6835 *) 6836 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6837 LD="${LD-ld} -64" 6838 fi 6839 ;; 6840 esac 6841 ;; 6842 esac 6843 fi 6844 rm -rf conftest* 6845 ;; 6846esac 6847 6848need_locks="$enable_libtool_lock" 6849 6850 6851 case $host_os in 6852 rhapsody* | darwin*) 6853 if test -n "$ac_tool_prefix"; then 6854 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6855set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$DSYMUTIL"; then 6862 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6871 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881DSYMUTIL=$ac_cv_prog_DSYMUTIL 6882if test -n "$DSYMUTIL"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6884$as_echo "$DSYMUTIL" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 6891fi 6892if test -z "$ac_cv_prog_DSYMUTIL"; then 6893 ac_ct_DSYMUTIL=$DSYMUTIL 6894 # Extract the first word of "dsymutil", so it can be a program name with args. 6895set dummy dsymutil; ac_word=$2 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$ac_ct_DSYMUTIL"; then 6902 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916 done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6922if test -n "$ac_ct_DSYMUTIL"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6924$as_echo "$ac_ct_DSYMUTIL" >&6; } 6925else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 if test "x$ac_ct_DSYMUTIL" = x; then 6931 DSYMUTIL=":" 6932 else 6933 case $cross_compiling:$ac_tool_warned in 6934yes:) 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6937ac_tool_warned=yes ;; 6938esac 6939 DSYMUTIL=$ac_ct_DSYMUTIL 6940 fi 6941else 6942 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6943fi 6944 6945 if test -n "$ac_tool_prefix"; then 6946 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6947set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949$as_echo_n "checking for $ac_word... " >&6; } 6950if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$NMEDIT"; then 6954 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6963 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973NMEDIT=$ac_cv_prog_NMEDIT 6974if test -n "$NMEDIT"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6976$as_echo "$NMEDIT" >&6; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 6983fi 6984if test -z "$ac_cv_prog_NMEDIT"; then 6985 ac_ct_NMEDIT=$NMEDIT 6986 # Extract the first word of "nmedit", so it can be a program name with args. 6987set dummy nmedit; ac_word=$2 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$ac_ct_NMEDIT"; then 6994 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008 done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7014if test -n "$ac_ct_NMEDIT"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7016$as_echo "$ac_ct_NMEDIT" >&6; } 7017else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 if test "x$ac_ct_NMEDIT" = x; then 7023 NMEDIT=":" 7024 else 7025 case $cross_compiling:$ac_tool_warned in 7026yes:) 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7029ac_tool_warned=yes ;; 7030esac 7031 NMEDIT=$ac_ct_NMEDIT 7032 fi 7033else 7034 NMEDIT="$ac_cv_prog_NMEDIT" 7035fi 7036 7037 if test -n "$ac_tool_prefix"; then 7038 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7039set dummy ${ac_tool_prefix}lipo; ac_word=$2 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7041$as_echo_n "checking for $ac_word... " >&6; } 7042if test "${ac_cv_prog_LIPO+set}" = set; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 if test -n "$LIPO"; then 7046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7047else 7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049for as_dir in $PATH 7050do 7051 IFS=$as_save_IFS 7052 test -z "$as_dir" && as_dir=. 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7055 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7057 break 2 7058 fi 7059done 7060 done 7061IFS=$as_save_IFS 7062 7063fi 7064fi 7065LIPO=$ac_cv_prog_LIPO 7066if test -n "$LIPO"; then 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7068$as_echo "$LIPO" >&6; } 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; } 7072fi 7073 7074 7075fi 7076if test -z "$ac_cv_prog_LIPO"; then 7077 ac_ct_LIPO=$LIPO 7078 # Extract the first word of "lipo", so it can be a program name with args. 7079set dummy lipo; ac_word=$2 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7081$as_echo_n "checking for $ac_word... " >&6; } 7082if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 if test -n "$ac_ct_LIPO"; then 7086 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7087else 7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7089for as_dir in $PATH 7090do 7091 IFS=$as_save_IFS 7092 test -z "$as_dir" && as_dir=. 7093 for ac_exec_ext in '' $ac_executable_extensions; do 7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7095 ac_cv_prog_ac_ct_LIPO="lipo" 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7097 break 2 7098 fi 7099done 7100 done 7101IFS=$as_save_IFS 7102 7103fi 7104fi 7105ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7106if test -n "$ac_ct_LIPO"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7108$as_echo "$ac_ct_LIPO" >&6; } 7109else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111$as_echo "no" >&6; } 7112fi 7113 7114 if test "x$ac_ct_LIPO" = x; then 7115 LIPO=":" 7116 else 7117 case $cross_compiling:$ac_tool_warned in 7118yes:) 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7121ac_tool_warned=yes ;; 7122esac 7123 LIPO=$ac_ct_LIPO 7124 fi 7125else 7126 LIPO="$ac_cv_prog_LIPO" 7127fi 7128 7129 if test -n "$ac_tool_prefix"; then 7130 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7131set dummy ${ac_tool_prefix}otool; ac_word=$2 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133$as_echo_n "checking for $ac_word... " >&6; } 7134if test "${ac_cv_prog_OTOOL+set}" = set; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 if test -n "$OTOOL"; then 7138 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7139else 7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 7143 IFS=$as_save_IFS 7144 test -z "$as_dir" && as_dir=. 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7147 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151done 7152 done 7153IFS=$as_save_IFS 7154 7155fi 7156fi 7157OTOOL=$ac_cv_prog_OTOOL 7158if test -n "$OTOOL"; then 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7160$as_echo "$OTOOL" >&6; } 7161else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163$as_echo "no" >&6; } 7164fi 7165 7166 7167fi 7168if test -z "$ac_cv_prog_OTOOL"; then 7169 ac_ct_OTOOL=$OTOOL 7170 # Extract the first word of "otool", so it can be a program name with args. 7171set dummy otool; ac_word=$2 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173$as_echo_n "checking for $ac_word... " >&6; } 7174if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 if test -n "$ac_ct_OTOOL"; then 7178 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7179else 7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7181for as_dir in $PATH 7182do 7183 IFS=$as_save_IFS 7184 test -z "$as_dir" && as_dir=. 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7187 ac_cv_prog_ac_ct_OTOOL="otool" 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191done 7192 done 7193IFS=$as_save_IFS 7194 7195fi 7196fi 7197ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7198if test -n "$ac_ct_OTOOL"; then 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7200$as_echo "$ac_ct_OTOOL" >&6; } 7201else 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7203$as_echo "no" >&6; } 7204fi 7205 7206 if test "x$ac_ct_OTOOL" = x; then 7207 OTOOL=":" 7208 else 7209 case $cross_compiling:$ac_tool_warned in 7210yes:) 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7213ac_tool_warned=yes ;; 7214esac 7215 OTOOL=$ac_ct_OTOOL 7216 fi 7217else 7218 OTOOL="$ac_cv_prog_OTOOL" 7219fi 7220 7221 if test -n "$ac_tool_prefix"; then 7222 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7223set dummy ${ac_tool_prefix}otool64; ac_word=$2 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7225$as_echo_n "checking for $ac_word... " >&6; } 7226if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 if test -n "$OTOOL64"; then 7230 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7231else 7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233for as_dir in $PATH 7234do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7239 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243done 7244 done 7245IFS=$as_save_IFS 7246 7247fi 7248fi 7249OTOOL64=$ac_cv_prog_OTOOL64 7250if test -n "$OTOOL64"; then 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7252$as_echo "$OTOOL64" >&6; } 7253else 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7255$as_echo "no" >&6; } 7256fi 7257 7258 7259fi 7260if test -z "$ac_cv_prog_OTOOL64"; then 7261 ac_ct_OTOOL64=$OTOOL64 7262 # Extract the first word of "otool64", so it can be a program name with args. 7263set dummy otool64; ac_word=$2 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265$as_echo_n "checking for $ac_word... " >&6; } 7266if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 if test -n "$ac_ct_OTOOL64"; then 7270 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7271else 7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7273for as_dir in $PATH 7274do 7275 IFS=$as_save_IFS 7276 test -z "$as_dir" && as_dir=. 7277 for ac_exec_ext in '' $ac_executable_extensions; do 7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7279 ac_cv_prog_ac_ct_OTOOL64="otool64" 7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7281 break 2 7282 fi 7283done 7284 done 7285IFS=$as_save_IFS 7286 7287fi 7288fi 7289ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7290if test -n "$ac_ct_OTOOL64"; then 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7292$as_echo "$ac_ct_OTOOL64" >&6; } 7293else 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7295$as_echo "no" >&6; } 7296fi 7297 7298 if test "x$ac_ct_OTOOL64" = x; then 7299 OTOOL64=":" 7300 else 7301 case $cross_compiling:$ac_tool_warned in 7302yes:) 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7305ac_tool_warned=yes ;; 7306esac 7307 OTOOL64=$ac_ct_OTOOL64 7308 fi 7309else 7310 OTOOL64="$ac_cv_prog_OTOOL64" 7311fi 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7340$as_echo_n "checking for -single_module linker flag... " >&6; } 7341if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 lt_cv_apple_cc_single_mod=no 7345 if test -z "${LT_MULTI_MODULE}"; then 7346 # By default we will add the -single_module flag. You can override 7347 # by either setting the environment variable LT_MULTI_MODULE 7348 # non-empty at configure time, or by adding -multi_module to the 7349 # link flags. 7350 rm -rf libconftest.dylib* 7351 echo "int foo(void){return 1;}" > conftest.c 7352 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7353-dynamiclib -Wl,-single_module conftest.c" >&5 7354 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7355 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7356 _lt_result=$? 7357 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7358 lt_cv_apple_cc_single_mod=yes 7359 else 7360 cat conftest.err >&5 7361 fi 7362 rm -rf libconftest.dylib* 7363 rm -f conftest.* 7364 fi 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7367$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7369$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7370if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 lt_cv_ld_exported_symbols_list=no 7374 save_LDFLAGS=$LDFLAGS 7375 echo "_main" > conftest.sym 7376 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO"; then : 7389 lt_cv_ld_exported_symbols_list=yes 7390else 7391 lt_cv_ld_exported_symbols_list=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext \ 7394 conftest$ac_exeext conftest.$ac_ext 7395 LDFLAGS="$save_LDFLAGS" 7396 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7399$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7400 case $host_os in 7401 rhapsody* | darwin1.[012]) 7402 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7403 darwin1.*) 7404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7405 darwin*) # darwin 5.x on 7406 # if running on 10.5 or later, the deployment target defaults 7407 # to the OS version, if on x86, and 10.4, the deployment 7408 # target defaults to 10.4. Don't you love it? 7409 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7410 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7412 10.[012]*) 7413 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7414 10.*) 7415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7416 esac 7417 ;; 7418 esac 7419 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7420 _lt_dar_single_mod='$single_module' 7421 fi 7422 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7423 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7424 else 7425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7426 fi 7427 if test "$DSYMUTIL" != ":"; then 7428 _lt_dsymutil='~$DSYMUTIL $lib || :' 7429 else 7430 _lt_dsymutil= 7431 fi 7432 ;; 7433 esac 7434 7435for ac_header in dlfcn.h 7436do : 7437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7438" 7439if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7440 cat >>confdefs.h <<_ACEOF 7441#define HAVE_DLFCN_H 1 7442_ACEOF 7443 7444fi 7445 7446done 7447 7448 7449 7450# Set options 7451 7452 7453 7454 enable_dlopen=no 7455 7456 7457 enable_win32_dll=no 7458 7459 7460 # Check whether --enable-shared was given. 7461if test "${enable_shared+set}" = set; then : 7462 enableval=$enable_shared; p=${PACKAGE-default} 7463 case $enableval in 7464 yes) enable_shared=yes ;; 7465 no) enable_shared=no ;; 7466 *) 7467 enable_shared=no 7468 # Look at the argument we got. We use all the common list separators. 7469 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7470 for pkg in $enableval; do 7471 IFS="$lt_save_ifs" 7472 if test "X$pkg" = "X$p"; then 7473 enable_shared=yes 7474 fi 7475 done 7476 IFS="$lt_save_ifs" 7477 ;; 7478 esac 7479else 7480 enable_shared=yes 7481fi 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493# Check whether --with-pic was given. 7494if test "${with_pic+set}" = set; then : 7495 withval=$with_pic; pic_mode="$withval" 7496else 7497 pic_mode=default 7498fi 7499 7500 7501test -z "$pic_mode" && pic_mode=default 7502 7503 7504 7505 7506 7507 7508 7509 # Check whether --enable-fast-install was given. 7510if test "${enable_fast_install+set}" = set; then : 7511 enableval=$enable_fast_install; p=${PACKAGE-default} 7512 case $enableval in 7513 yes) enable_fast_install=yes ;; 7514 no) enable_fast_install=no ;; 7515 *) 7516 enable_fast_install=no 7517 # Look at the argument we got. We use all the common list separators. 7518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7519 for pkg in $enableval; do 7520 IFS="$lt_save_ifs" 7521 if test "X$pkg" = "X$p"; then 7522 enable_fast_install=yes 7523 fi 7524 done 7525 IFS="$lt_save_ifs" 7526 ;; 7527 esac 7528else 7529 enable_fast_install=yes 7530fi 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542# This can be used to rebuild libtool when needed 7543LIBTOOL_DEPS="$ltmain" 7544 7545# Always use our own libtool. 7546LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572test -z "$LN_S" && LN_S="ln -s" 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587if test -n "${ZSH_VERSION+set}" ; then 7588 setopt NO_GLOB_SUBST 7589fi 7590 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7592$as_echo_n "checking for objdir... " >&6; } 7593if test "${lt_cv_objdir+set}" = set; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 rm -f .libs 2>/dev/null 7597mkdir .libs 2>/dev/null 7598if test -d .libs; then 7599 lt_cv_objdir=.libs 7600else 7601 # MS-DOS does not allow filenames that begin with a dot. 7602 lt_cv_objdir=_libs 7603fi 7604rmdir .libs 2>/dev/null 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7607$as_echo "$lt_cv_objdir" >&6; } 7608objdir=$lt_cv_objdir 7609 7610 7611 7612 7613 7614cat >>confdefs.h <<_ACEOF 7615#define LT_OBJDIR "$lt_cv_objdir/" 7616_ACEOF 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634case $host_os in 7635aix3*) 7636 # AIX sometimes has problems with the GCC collect2 program. For some 7637 # reason, if we set the COLLECT_NAMES environment variable, the problems 7638 # vanish in a puff of smoke. 7639 if test "X${COLLECT_NAMES+set}" != Xset; then 7640 COLLECT_NAMES= 7641 export COLLECT_NAMES 7642 fi 7643 ;; 7644esac 7645 7646# Sed substitution that helps us do robust quoting. It backslashifies 7647# metacharacters that are still active within double-quoted strings. 7648sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7649 7650# Same as above, but do not quote variable references. 7651double_quote_subst='s/\(["`\\]\)/\\\1/g' 7652 7653# Sed substitution to delay expansion of an escaped shell variable in a 7654# double_quote_subst'ed string. 7655delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7656 7657# Sed substitution to delay expansion of an escaped single quote. 7658delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7659 7660# Sed substitution to avoid accidental globbing in evaled expressions 7661no_glob_subst='s/\*/\\\*/g' 7662 7663# Global variables: 7664ofile=libtool 7665can_build_shared=yes 7666 7667# All known linkers require a `.a' archive for static linking (except MSVC, 7668# which needs '.lib'). 7669libext=a 7670 7671with_gnu_ld="$lt_cv_prog_gnu_ld" 7672 7673old_CC="$CC" 7674old_CFLAGS="$CFLAGS" 7675 7676# Set sane defaults for various variables 7677test -z "$CC" && CC=cc 7678test -z "$LTCC" && LTCC=$CC 7679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7680test -z "$LD" && LD=ld 7681test -z "$ac_objext" && ac_objext=o 7682 7683for cc_temp in $compiler""; do 7684 case $cc_temp in 7685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7687 \-*) ;; 7688 *) break;; 7689 esac 7690done 7691cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7692 7693 7694# Only perform the check for file, if the check method requires it 7695test -z "$MAGIC_CMD" && MAGIC_CMD=file 7696case $deplibs_check_method in 7697file_magic*) 7698 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7700$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 case $MAGIC_CMD in 7705[\\/*] | ?:[\\/]*) 7706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7707 ;; 7708*) 7709 lt_save_MAGIC_CMD="$MAGIC_CMD" 7710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7712 for ac_dir in $ac_dummy; do 7713 IFS="$lt_save_ifs" 7714 test -z "$ac_dir" && ac_dir=. 7715 if test -f $ac_dir/${ac_tool_prefix}file; then 7716 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7717 if test -n "$file_magic_test_file"; then 7718 case $deplibs_check_method in 7719 "file_magic "*) 7720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7723 $EGREP "$file_magic_regex" > /dev/null; then 7724 : 7725 else 7726 cat <<_LT_EOF 1>&2 7727 7728*** Warning: the command libtool uses to detect shared libraries, 7729*** $file_magic_cmd, produces output that libtool cannot recognize. 7730*** The result is that libtool may fail to recognize shared libraries 7731*** as such. This will affect the creation of libtool libraries that 7732*** depend on shared libraries, but programs linked with such libtool 7733*** libraries will work regardless of this problem. Nevertheless, you 7734*** may want to report the problem to your system manager and/or to 7735*** bug-libtool@gnu.org 7736 7737_LT_EOF 7738 fi ;; 7739 esac 7740 fi 7741 break 7742 fi 7743 done 7744 IFS="$lt_save_ifs" 7745 MAGIC_CMD="$lt_save_MAGIC_CMD" 7746 ;; 7747esac 7748fi 7749 7750MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7751if test -n "$MAGIC_CMD"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7753$as_echo "$MAGIC_CMD" >&6; } 7754else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756$as_echo "no" >&6; } 7757fi 7758 7759 7760 7761 7762 7763if test -z "$lt_cv_path_MAGIC_CMD"; then 7764 if test -n "$ac_tool_prefix"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7766$as_echo_n "checking for file... " >&6; } 7767if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 case $MAGIC_CMD in 7771[\\/*] | ?:[\\/]*) 7772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7773 ;; 7774*) 7775 lt_save_MAGIC_CMD="$MAGIC_CMD" 7776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7778 for ac_dir in $ac_dummy; do 7779 IFS="$lt_save_ifs" 7780 test -z "$ac_dir" && ac_dir=. 7781 if test -f $ac_dir/file; then 7782 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7783 if test -n "$file_magic_test_file"; then 7784 case $deplibs_check_method in 7785 "file_magic "*) 7786 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7789 $EGREP "$file_magic_regex" > /dev/null; then 7790 : 7791 else 7792 cat <<_LT_EOF 1>&2 7793 7794*** Warning: the command libtool uses to detect shared libraries, 7795*** $file_magic_cmd, produces output that libtool cannot recognize. 7796*** The result is that libtool may fail to recognize shared libraries 7797*** as such. This will affect the creation of libtool libraries that 7798*** depend on shared libraries, but programs linked with such libtool 7799*** libraries will work regardless of this problem. Nevertheless, you 7800*** may want to report the problem to your system manager and/or to 7801*** bug-libtool@gnu.org 7802 7803_LT_EOF 7804 fi ;; 7805 esac 7806 fi 7807 break 7808 fi 7809 done 7810 IFS="$lt_save_ifs" 7811 MAGIC_CMD="$lt_save_MAGIC_CMD" 7812 ;; 7813esac 7814fi 7815 7816MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7817if test -n "$MAGIC_CMD"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7819$as_echo "$MAGIC_CMD" >&6; } 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824 7825 7826 else 7827 MAGIC_CMD=: 7828 fi 7829fi 7830 7831 fi 7832 ;; 7833esac 7834 7835# Use C for the default configuration in the libtool script 7836 7837lt_save_CC="$CC" 7838ac_ext=c 7839ac_cpp='$CPP $CPPFLAGS' 7840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7842ac_compiler_gnu=$ac_cv_c_compiler_gnu 7843 7844 7845# Source file extension for C test sources. 7846ac_ext=c 7847 7848# Object file extension for compiled C test sources. 7849objext=o 7850objext=$objext 7851 7852# Code to be used in simple compile tests 7853lt_simple_compile_test_code="int some_variable = 0;" 7854 7855# Code to be used in simple link tests 7856lt_simple_link_test_code='int main(){return(0);}' 7857 7858 7859 7860 7861 7862 7863 7864# If no C compiler was specified, use CC. 7865LTCC=${LTCC-"$CC"} 7866 7867# If no C compiler flags were specified, use CFLAGS. 7868LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7869 7870# Allow CC to be a program name with arguments. 7871compiler=$CC 7872 7873# Save the default compiler, since it gets overwritten when the other 7874# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7875compiler_DEFAULT=$CC 7876 7877# save warnings/boilerplate of simple test code 7878ac_outfile=conftest.$ac_objext 7879echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7880eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7881_lt_compiler_boilerplate=`cat conftest.err` 7882$RM conftest* 7883 7884ac_outfile=conftest.$ac_objext 7885echo "$lt_simple_link_test_code" >conftest.$ac_ext 7886eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7887_lt_linker_boilerplate=`cat conftest.err` 7888$RM -r conftest* 7889 7890 7891if test -n "$compiler"; then 7892 7893lt_prog_compiler_no_builtin_flag= 7894 7895if test "$GCC" = yes; then 7896 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7897 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7899$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7900if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 lt_cv_prog_compiler_rtti_exceptions=no 7904 ac_outfile=conftest.$ac_objext 7905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7906 lt_compiler_flag="-fno-rtti -fno-exceptions" 7907 # Insert the option either (1) after the last *FLAGS variable, or 7908 # (2) before a word containing "conftest.", or (3) at the end. 7909 # Note that $ac_compile itself does not contain backslashes and begins 7910 # with a dollar sign (not a hyphen), so the echo should work correctly. 7911 # The option is referenced via a variable to avoid confusing sed. 7912 lt_compile=`echo "$ac_compile" | $SED \ 7913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7915 -e 's:$: $lt_compiler_flag:'` 7916 (eval echo "\"\$as_me:7916: $lt_compile\"" >&5) 7917 (eval "$lt_compile" 2>conftest.err) 7918 ac_status=$? 7919 cat conftest.err >&5 7920 echo "$as_me:7920: \$? = $ac_status" >&5 7921 if (exit $ac_status) && test -s "$ac_outfile"; then 7922 # The compiler can only warn and ignore the option if not recognized 7923 # So say no if there are warnings other than the usual output. 7924 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7927 lt_cv_prog_compiler_rtti_exceptions=yes 7928 fi 7929 fi 7930 $RM conftest* 7931 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7934$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7935 7936if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7937 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7938else 7939 : 7940fi 7941 7942fi 7943 7944 7945 7946 7947 7948 7949 lt_prog_compiler_wl= 7950lt_prog_compiler_pic= 7951lt_prog_compiler_static= 7952 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7954$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7955 7956 if test "$GCC" = yes; then 7957 lt_prog_compiler_wl='-Wl,' 7958 lt_prog_compiler_static='-static' 7959 7960 case $host_os in 7961 aix*) 7962 # All AIX code is PIC. 7963 if test "$host_cpu" = ia64; then 7964 # AIX 5 now supports IA64 processor 7965 lt_prog_compiler_static='-Bstatic' 7966 fi 7967 ;; 7968 7969 amigaos*) 7970 case $host_cpu in 7971 powerpc) 7972 # see comment about AmigaOS4 .so support 7973 lt_prog_compiler_pic='-fPIC' 7974 ;; 7975 m68k) 7976 # FIXME: we need at least 68020 code to build shared libraries, but 7977 # adding the `-m68020' flag to GCC prevents building anything better, 7978 # like `-m68040'. 7979 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7980 ;; 7981 esac 7982 ;; 7983 7984 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7985 # PIC is the default for these OSes. 7986 ;; 7987 7988 mingw* | cygwin* | pw32* | os2* | cegcc*) 7989 # This hack is so that the source file can tell whether it is being 7990 # built for inclusion in a dll (and should export symbols for example). 7991 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7992 # (--disable-auto-import) libraries 7993 lt_prog_compiler_pic='-DDLL_EXPORT' 7994 ;; 7995 7996 darwin* | rhapsody*) 7997 # PIC is the default on this platform 7998 # Common symbols not allowed in MH_DYLIB files 7999 lt_prog_compiler_pic='-fno-common' 8000 ;; 8001 8002 hpux*) 8003 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8004 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8005 # sets the default TLS model and affects inlining. 8006 case $host_cpu in 8007 hppa*64*) 8008 # +Z the default 8009 ;; 8010 *) 8011 lt_prog_compiler_pic='-fPIC' 8012 ;; 8013 esac 8014 ;; 8015 8016 interix[3-9]*) 8017 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8018 # Instead, we relocate shared libraries at runtime. 8019 ;; 8020 8021 msdosdjgpp*) 8022 # Just because we use GCC doesn't mean we suddenly get shared libraries 8023 # on systems that don't support them. 8024 lt_prog_compiler_can_build_shared=no 8025 enable_shared=no 8026 ;; 8027 8028 *nto* | *qnx*) 8029 # QNX uses GNU C++, but need to define -shared option too, otherwise 8030 # it will coredump. 8031 lt_prog_compiler_pic='-fPIC -shared' 8032 ;; 8033 8034 sysv4*MP*) 8035 if test -d /usr/nec; then 8036 lt_prog_compiler_pic=-Kconform_pic 8037 fi 8038 ;; 8039 8040 *) 8041 lt_prog_compiler_pic='-fPIC' 8042 ;; 8043 esac 8044 else 8045 # PORTME Check for flag to pass linker flags through the system compiler. 8046 case $host_os in 8047 aix*) 8048 lt_prog_compiler_wl='-Wl,' 8049 if test "$host_cpu" = ia64; then 8050 # AIX 5 now supports IA64 processor 8051 lt_prog_compiler_static='-Bstatic' 8052 else 8053 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8054 fi 8055 ;; 8056 8057 mingw* | cygwin* | pw32* | os2* | cegcc*) 8058 # This hack is so that the source file can tell whether it is being 8059 # built for inclusion in a dll (and should export symbols for example). 8060 lt_prog_compiler_pic='-DDLL_EXPORT' 8061 ;; 8062 8063 hpux9* | hpux10* | hpux11*) 8064 lt_prog_compiler_wl='-Wl,' 8065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8066 # not for PA HP-UX. 8067 case $host_cpu in 8068 hppa*64*|ia64*) 8069 # +Z the default 8070 ;; 8071 *) 8072 lt_prog_compiler_pic='+Z' 8073 ;; 8074 esac 8075 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8076 lt_prog_compiler_static='${wl}-a ${wl}archive' 8077 ;; 8078 8079 irix5* | irix6* | nonstopux*) 8080 lt_prog_compiler_wl='-Wl,' 8081 # PIC (with -KPIC) is the default. 8082 lt_prog_compiler_static='-non_shared' 8083 ;; 8084 8085 linux* | k*bsd*-gnu) 8086 case $cc_basename in 8087 # old Intel for x86_64 which still supported -KPIC. 8088 ecc*) 8089 lt_prog_compiler_wl='-Wl,' 8090 lt_prog_compiler_pic='-KPIC' 8091 lt_prog_compiler_static='-static' 8092 ;; 8093 # icc used to be incompatible with GCC. 8094 # ICC 10 doesn't accept -KPIC any more. 8095 icc* | ifort*) 8096 lt_prog_compiler_wl='-Wl,' 8097 lt_prog_compiler_pic='-fPIC' 8098 lt_prog_compiler_static='-static' 8099 ;; 8100 # Lahey Fortran 8.1. 8101 lf95*) 8102 lt_prog_compiler_wl='-Wl,' 8103 lt_prog_compiler_pic='--shared' 8104 lt_prog_compiler_static='--static' 8105 ;; 8106 pgcc* | pgf77* | pgf90* | pgf95*) 8107 # Portland Group compilers (*not* the Pentium gcc compiler, 8108 # which looks to be a dead project) 8109 lt_prog_compiler_wl='-Wl,' 8110 lt_prog_compiler_pic='-fpic' 8111 lt_prog_compiler_static='-Bstatic' 8112 ;; 8113 ccc*) 8114 lt_prog_compiler_wl='-Wl,' 8115 # All Alpha code is PIC. 8116 lt_prog_compiler_static='-non_shared' 8117 ;; 8118 xl*) 8119 # IBM XL C 8.0/Fortran 10.1 on PPC 8120 lt_prog_compiler_wl='-Wl,' 8121 lt_prog_compiler_pic='-qpic' 8122 lt_prog_compiler_static='-qstaticlink' 8123 ;; 8124 *) 8125 case `$CC -V 2>&1 | sed 5q` in 8126 *Sun\ C*) 8127 # Sun C 5.9 8128 lt_prog_compiler_pic='-KPIC' 8129 lt_prog_compiler_static='-Bstatic' 8130 lt_prog_compiler_wl='-Wl,' 8131 ;; 8132 *Sun\ F*) 8133 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8134 lt_prog_compiler_pic='-KPIC' 8135 lt_prog_compiler_static='-Bstatic' 8136 lt_prog_compiler_wl='' 8137 ;; 8138 esac 8139 ;; 8140 esac 8141 ;; 8142 8143 newsos6) 8144 lt_prog_compiler_pic='-KPIC' 8145 lt_prog_compiler_static='-Bstatic' 8146 ;; 8147 8148 *nto* | *qnx*) 8149 # QNX uses GNU C++, but need to define -shared option too, otherwise 8150 # it will coredump. 8151 lt_prog_compiler_pic='-fPIC -shared' 8152 ;; 8153 8154 osf3* | osf4* | osf5*) 8155 lt_prog_compiler_wl='-Wl,' 8156 # All OSF/1 code is PIC. 8157 lt_prog_compiler_static='-non_shared' 8158 ;; 8159 8160 rdos*) 8161 lt_prog_compiler_static='-non_shared' 8162 ;; 8163 8164 solaris*) 8165 lt_prog_compiler_pic='-KPIC' 8166 lt_prog_compiler_static='-Bstatic' 8167 case $cc_basename in 8168 f77* | f90* | f95*) 8169 lt_prog_compiler_wl='-Qoption ld ';; 8170 *) 8171 lt_prog_compiler_wl='-Wl,';; 8172 esac 8173 ;; 8174 8175 sunos4*) 8176 lt_prog_compiler_wl='-Qoption ld ' 8177 lt_prog_compiler_pic='-PIC' 8178 lt_prog_compiler_static='-Bstatic' 8179 ;; 8180 8181 sysv4 | sysv4.2uw2* | sysv4.3*) 8182 lt_prog_compiler_wl='-Wl,' 8183 lt_prog_compiler_pic='-KPIC' 8184 lt_prog_compiler_static='-Bstatic' 8185 ;; 8186 8187 sysv4*MP*) 8188 if test -d /usr/nec ;then 8189 lt_prog_compiler_pic='-Kconform_pic' 8190 lt_prog_compiler_static='-Bstatic' 8191 fi 8192 ;; 8193 8194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8195 lt_prog_compiler_wl='-Wl,' 8196 lt_prog_compiler_pic='-KPIC' 8197 lt_prog_compiler_static='-Bstatic' 8198 ;; 8199 8200 unicos*) 8201 lt_prog_compiler_wl='-Wl,' 8202 lt_prog_compiler_can_build_shared=no 8203 ;; 8204 8205 uts4*) 8206 lt_prog_compiler_pic='-pic' 8207 lt_prog_compiler_static='-Bstatic' 8208 ;; 8209 8210 *) 8211 lt_prog_compiler_can_build_shared=no 8212 ;; 8213 esac 8214 fi 8215 8216case $host_os in 8217 # For platforms which do not support PIC, -DPIC is meaningless: 8218 *djgpp*) 8219 lt_prog_compiler_pic= 8220 ;; 8221 *) 8222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8223 ;; 8224esac 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8226$as_echo "$lt_prog_compiler_pic" >&6; } 8227 8228 8229 8230 8231 8232 8233# 8234# Check to make sure the PIC flag actually works. 8235# 8236if test -n "$lt_prog_compiler_pic"; then 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8238$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8239if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 lt_cv_prog_compiler_pic_works=no 8243 ac_outfile=conftest.$ac_objext 8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8246 # Insert the option either (1) after the last *FLAGS variable, or 8247 # (2) before a word containing "conftest.", or (3) at the end. 8248 # Note that $ac_compile itself does not contain backslashes and begins 8249 # with a dollar sign (not a hyphen), so the echo should work correctly. 8250 # The option is referenced via a variable to avoid confusing sed. 8251 lt_compile=`echo "$ac_compile" | $SED \ 8252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8254 -e 's:$: $lt_compiler_flag:'` 8255 (eval echo "\"\$as_me:8255: $lt_compile\"" >&5) 8256 (eval "$lt_compile" 2>conftest.err) 8257 ac_status=$? 8258 cat conftest.err >&5 8259 echo "$as_me:8259: \$? = $ac_status" >&5 8260 if (exit $ac_status) && test -s "$ac_outfile"; then 8261 # The compiler can only warn and ignore the option if not recognized 8262 # So say no if there are warnings other than the usual output. 8263 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8266 lt_cv_prog_compiler_pic_works=yes 8267 fi 8268 fi 8269 $RM conftest* 8270 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8273$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8274 8275if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8276 case $lt_prog_compiler_pic in 8277 "" | " "*) ;; 8278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8279 esac 8280else 8281 lt_prog_compiler_pic= 8282 lt_prog_compiler_can_build_shared=no 8283fi 8284 8285fi 8286 8287 8288 8289 8290 8291 8292# 8293# Check to make sure the static flag actually works. 8294# 8295wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8297$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8298if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8299 $as_echo_n "(cached) " >&6 8300else 8301 lt_cv_prog_compiler_static_works=no 8302 save_LDFLAGS="$LDFLAGS" 8303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8304 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8306 # The linker can only warn and ignore the option if not recognized 8307 # So say no if there are warnings 8308 if test -s conftest.err; then 8309 # Append any errors to the config.log. 8310 cat conftest.err 1>&5 8311 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8313 if diff conftest.exp conftest.er2 >/dev/null; then 8314 lt_cv_prog_compiler_static_works=yes 8315 fi 8316 else 8317 lt_cv_prog_compiler_static_works=yes 8318 fi 8319 fi 8320 $RM -r conftest* 8321 LDFLAGS="$save_LDFLAGS" 8322 8323fi 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8325$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8326 8327if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8328 : 8329else 8330 lt_prog_compiler_static= 8331fi 8332 8333 8334 8335 8336 8337 8338 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8341if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 lt_cv_prog_compiler_c_o=no 8345 $RM -r conftest 2>/dev/null 8346 mkdir conftest 8347 cd conftest 8348 mkdir out 8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8350 8351 lt_compiler_flag="-o out/conftest2.$ac_objext" 8352 # Insert the option either (1) after the last *FLAGS variable, or 8353 # (2) before a word containing "conftest.", or (3) at the end. 8354 # Note that $ac_compile itself does not contain backslashes and begins 8355 # with a dollar sign (not a hyphen), so the echo should work correctly. 8356 lt_compile=`echo "$ac_compile" | $SED \ 8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8359 -e 's:$: $lt_compiler_flag:'` 8360 (eval echo "\"\$as_me:8360: $lt_compile\"" >&5) 8361 (eval "$lt_compile" 2>out/conftest.err) 8362 ac_status=$? 8363 cat out/conftest.err >&5 8364 echo "$as_me:8364: \$? = $ac_status" >&5 8365 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8366 then 8367 # The compiler can only warn and ignore the option if not recognized 8368 # So say no if there are warnings 8369 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8372 lt_cv_prog_compiler_c_o=yes 8373 fi 8374 fi 8375 chmod u+w . 2>&5 8376 $RM conftest* 8377 # SGI C++ compiler will create directory out/ii_files/ for 8378 # template instantiation 8379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8380 $RM out/* && rmdir out 8381 cd .. 8382 $RM -r conftest 8383 $RM conftest* 8384 8385fi 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8387$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8388 8389 8390 8391 8392 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8396if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 lt_cv_prog_compiler_c_o=no 8400 $RM -r conftest 2>/dev/null 8401 mkdir conftest 8402 cd conftest 8403 mkdir out 8404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8405 8406 lt_compiler_flag="-o out/conftest2.$ac_objext" 8407 # Insert the option either (1) after the last *FLAGS variable, or 8408 # (2) before a word containing "conftest.", or (3) at the end. 8409 # Note that $ac_compile itself does not contain backslashes and begins 8410 # with a dollar sign (not a hyphen), so the echo should work correctly. 8411 lt_compile=`echo "$ac_compile" | $SED \ 8412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8414 -e 's:$: $lt_compiler_flag:'` 8415 (eval echo "\"\$as_me:8415: $lt_compile\"" >&5) 8416 (eval "$lt_compile" 2>out/conftest.err) 8417 ac_status=$? 8418 cat out/conftest.err >&5 8419 echo "$as_me:8419: \$? = $ac_status" >&5 8420 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8421 then 8422 # The compiler can only warn and ignore the option if not recognized 8423 # So say no if there are warnings 8424 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8427 lt_cv_prog_compiler_c_o=yes 8428 fi 8429 fi 8430 chmod u+w . 2>&5 8431 $RM conftest* 8432 # SGI C++ compiler will create directory out/ii_files/ for 8433 # template instantiation 8434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8435 $RM out/* && rmdir out 8436 cd .. 8437 $RM -r conftest 8438 $RM conftest* 8439 8440fi 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8442$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8443 8444 8445 8446 8447hard_links="nottested" 8448if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8449 # do not overwrite the value of need_locks provided by the user 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8451$as_echo_n "checking if we can lock with hard links... " >&6; } 8452 hard_links=yes 8453 $RM conftest* 8454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8455 touch conftest.a 8456 ln conftest.a conftest.b 2>&5 || hard_links=no 8457 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8459$as_echo "$hard_links" >&6; } 8460 if test "$hard_links" = no; then 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8462$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8463 need_locks=warn 8464 fi 8465else 8466 need_locks=no 8467fi 8468 8469 8470 8471 8472 8473 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8475$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8476 8477 runpath_var= 8478 allow_undefined_flag= 8479 always_export_symbols=no 8480 archive_cmds= 8481 archive_expsym_cmds= 8482 compiler_needs_object=no 8483 enable_shared_with_static_runtimes=no 8484 export_dynamic_flag_spec= 8485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8486 hardcode_automatic=no 8487 hardcode_direct=no 8488 hardcode_direct_absolute=no 8489 hardcode_libdir_flag_spec= 8490 hardcode_libdir_flag_spec_ld= 8491 hardcode_libdir_separator= 8492 hardcode_minus_L=no 8493 hardcode_shlibpath_var=unsupported 8494 inherit_rpath=no 8495 link_all_deplibs=unknown 8496 module_cmds= 8497 module_expsym_cmds= 8498 old_archive_from_new_cmds= 8499 old_archive_from_expsyms_cmds= 8500 thread_safe_flag_spec= 8501 whole_archive_flag_spec= 8502 # include_expsyms should be a list of space-separated symbols to be *always* 8503 # included in the symbol list 8504 include_expsyms= 8505 # exclude_expsyms can be an extended regexp of symbols to exclude 8506 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8508 # as well as any symbol that contains `d'. 8509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8511 # platforms (ab)use it in PIC code, but their linkers get confused if 8512 # the symbol is explicitly referenced. Since portable code cannot 8513 # rely on this symbol name, it's probably fine to never include it in 8514 # preloaded symbol tables. 8515 # Exclude shared library initialization/finalization symbols. 8516 extract_expsyms_cmds= 8517 8518 case $host_os in 8519 cygwin* | mingw* | pw32* | cegcc*) 8520 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8521 # When not using gcc, we currently assume that we are using 8522 # Microsoft Visual C++. 8523 if test "$GCC" != yes; then 8524 with_gnu_ld=no 8525 fi 8526 ;; 8527 interix*) 8528 # we just hope/assume this is gcc and not c89 (= MSVC++) 8529 with_gnu_ld=yes 8530 ;; 8531 openbsd*) 8532 with_gnu_ld=no 8533 ;; 8534 esac 8535 8536 ld_shlibs=yes 8537 if test "$with_gnu_ld" = yes; then 8538 # If archive_cmds runs LD, not CC, wlarc should be empty 8539 wlarc='${wl}' 8540 8541 # Set some defaults for GNU ld with shared library support. These 8542 # are reset later if shared libraries are not supported. Putting them 8543 # here allows them to be overridden if necessary. 8544 runpath_var=LD_RUN_PATH 8545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8546 export_dynamic_flag_spec='${wl}--export-dynamic' 8547 # ancient GNU ld didn't support --whole-archive et. al. 8548 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8549 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8550 else 8551 whole_archive_flag_spec= 8552 fi 8553 supports_anon_versioning=no 8554 case `$LD -v 2>&1` in 8555 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8556 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8557 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8558 *\ 2.11.*) ;; # other 2.11 versions 8559 *) supports_anon_versioning=yes ;; 8560 esac 8561 8562 # See if GNU ld supports shared libraries. 8563 case $host_os in 8564 aix[3-9]*) 8565 # On AIX/PPC, the GNU linker is very broken 8566 if test "$host_cpu" != ia64; then 8567 ld_shlibs=no 8568 cat <<_LT_EOF 1>&2 8569 8570*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8571*** to be unable to reliably create shared libraries on AIX. 8572*** Therefore, libtool is disabling shared libraries support. If you 8573*** really care for shared libraries, you may want to modify your PATH 8574*** so that a non-GNU linker is found, and then restart. 8575 8576_LT_EOF 8577 fi 8578 ;; 8579 8580 amigaos*) 8581 case $host_cpu in 8582 powerpc) 8583 # see comment about AmigaOS4 .so support 8584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8585 archive_expsym_cmds='' 8586 ;; 8587 m68k) 8588 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)' 8589 hardcode_libdir_flag_spec='-L$libdir' 8590 hardcode_minus_L=yes 8591 ;; 8592 esac 8593 ;; 8594 8595 beos*) 8596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8597 allow_undefined_flag=unsupported 8598 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8599 # support --undefined. This deserves some investigation. FIXME 8600 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8601 else 8602 ld_shlibs=no 8603 fi 8604 ;; 8605 8606 cygwin* | mingw* | pw32* | cegcc*) 8607 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8608 # as there is no search path for DLLs. 8609 hardcode_libdir_flag_spec='-L$libdir' 8610 allow_undefined_flag=unsupported 8611 always_export_symbols=no 8612 enable_shared_with_static_runtimes=yes 8613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8614 8615 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8617 # If the export-symbols file already is a .def file (1st line 8618 # is EXPORTS), use it as is; otherwise, prepend... 8619 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8620 cp $export_symbols $output_objdir/$soname.def; 8621 else 8622 echo EXPORTS > $output_objdir/$soname.def; 8623 cat $export_symbols >> $output_objdir/$soname.def; 8624 fi~ 8625 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8626 else 8627 ld_shlibs=no 8628 fi 8629 ;; 8630 8631 interix[3-9]*) 8632 hardcode_direct=no 8633 hardcode_shlibpath_var=no 8634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8635 export_dynamic_flag_spec='${wl}-E' 8636 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8637 # Instead, shared libraries are loaded at an image base (0x10000000 by 8638 # default) and relocated if they conflict, which is a slow very memory 8639 # consuming and fragmenting process. To avoid this, we pick a random, 8640 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8641 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8643 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' 8644 ;; 8645 8646 gnu* | linux* | tpf* | k*bsd*-gnu) 8647 tmp_diet=no 8648 if test "$host_os" = linux-dietlibc; then 8649 case $cc_basename in 8650 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8651 esac 8652 fi 8653 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8654 && test "$tmp_diet" = no 8655 then 8656 tmp_addflag= 8657 tmp_sharedflag='-shared' 8658 case $cc_basename,$host_cpu in 8659 pgcc*) # Portland Group C compiler 8660 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' 8661 tmp_addflag=' $pic_flag' 8662 ;; 8663 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8664 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' 8665 tmp_addflag=' $pic_flag -Mnomain' ;; 8666 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8667 tmp_addflag=' -i_dynamic' ;; 8668 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8669 tmp_addflag=' -i_dynamic -nofor_main' ;; 8670 ifc* | ifort*) # Intel Fortran compiler 8671 tmp_addflag=' -nofor_main' ;; 8672 lf95*) # Lahey Fortran 8.1 8673 whole_archive_flag_spec= 8674 tmp_sharedflag='--shared' ;; 8675 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8676 tmp_sharedflag='-qmkshrobj' 8677 tmp_addflag= ;; 8678 esac 8679 case `$CC -V 2>&1 | sed 5q` in 8680 *Sun\ C*) # Sun C 5.9 8681 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' 8682 compiler_needs_object=yes 8683 tmp_sharedflag='-G' ;; 8684 *Sun\ F*) # Sun Fortran 8.3 8685 tmp_sharedflag='-G' ;; 8686 esac 8687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8688 8689 if test "x$supports_anon_versioning" = xyes; then 8690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8692 echo "local: *; };" >> $output_objdir/$libname.ver~ 8693 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8694 fi 8695 8696 case $cc_basename in 8697 xlf*) 8698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8700 hardcode_libdir_flag_spec= 8701 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8702 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8703 if test "x$supports_anon_versioning" = xyes; then 8704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8706 echo "local: *; };" >> $output_objdir/$libname.ver~ 8707 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8708 fi 8709 ;; 8710 esac 8711 else 8712 ld_shlibs=no 8713 fi 8714 ;; 8715 8716 netbsd*) 8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8719 wlarc= 8720 else 8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8723 fi 8724 ;; 8725 8726 solaris*) 8727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8728 ld_shlibs=no 8729 cat <<_LT_EOF 1>&2 8730 8731*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8732*** create shared libraries on Solaris systems. Therefore, libtool 8733*** is disabling shared libraries support. We urge you to upgrade GNU 8734*** binutils to release 2.9.1 or newer. Another option is to modify 8735*** your PATH or compiler configuration so that the native linker is 8736*** used, and then restart. 8737 8738_LT_EOF 8739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8742 else 8743 ld_shlibs=no 8744 fi 8745 ;; 8746 8747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8748 case `$LD -v 2>&1` in 8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8750 ld_shlibs=no 8751 cat <<_LT_EOF 1>&2 8752 8753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8754*** reliably create shared libraries on SCO systems. Therefore, libtool 8755*** is disabling shared libraries support. We urge you to upgrade GNU 8756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8757*** your PATH or compiler configuration so that the native linker is 8758*** used, and then restart. 8759 8760_LT_EOF 8761 ;; 8762 *) 8763 # For security reasons, it is highly recommended that you always 8764 # use absolute paths for naming shared libraries, and exclude the 8765 # DT_RUNPATH tag from executables and libraries. But doing so 8766 # requires that you compile everything twice, which is a pain. 8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8771 else 8772 ld_shlibs=no 8773 fi 8774 ;; 8775 esac 8776 ;; 8777 8778 sunos4*) 8779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8780 wlarc= 8781 hardcode_direct=yes 8782 hardcode_shlibpath_var=no 8783 ;; 8784 8785 *) 8786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8789 else 8790 ld_shlibs=no 8791 fi 8792 ;; 8793 esac 8794 8795 if test "$ld_shlibs" = no; then 8796 runpath_var= 8797 hardcode_libdir_flag_spec= 8798 export_dynamic_flag_spec= 8799 whole_archive_flag_spec= 8800 fi 8801 else 8802 # PORTME fill in a description of your system's linker (not GNU ld) 8803 case $host_os in 8804 aix3*) 8805 allow_undefined_flag=unsupported 8806 always_export_symbols=yes 8807 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' 8808 # Note: this linker hardcodes the directories in LIBPATH if there 8809 # are no directories specified by -L. 8810 hardcode_minus_L=yes 8811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8812 # Neither direct hardcoding nor static linking is supported with a 8813 # broken collect2. 8814 hardcode_direct=unsupported 8815 fi 8816 ;; 8817 8818 aix[4-9]*) 8819 if test "$host_cpu" = ia64; then 8820 # On IA64, the linker does run time linking by default, so we don't 8821 # have to do anything special. 8822 aix_use_runtimelinking=no 8823 exp_sym_flag='-Bexport' 8824 no_entry_flag="" 8825 else 8826 # If we're using GNU nm, then we don't want the "-C" option. 8827 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8829 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' 8830 else 8831 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' 8832 fi 8833 aix_use_runtimelinking=no 8834 8835 # Test if we are trying to use run time linking or normal 8836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8837 # need to do runtime linking. 8838 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8839 for ld_flag in $LDFLAGS; do 8840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8841 aix_use_runtimelinking=yes 8842 break 8843 fi 8844 done 8845 ;; 8846 esac 8847 8848 exp_sym_flag='-bexport' 8849 no_entry_flag='-bnoentry' 8850 fi 8851 8852 # When large executables or shared objects are built, AIX ld can 8853 # have problems creating the table of contents. If linking a library 8854 # or program results in "error TOC overflow" add -mminimal-toc to 8855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8857 8858 archive_cmds='' 8859 hardcode_direct=yes 8860 hardcode_direct_absolute=yes 8861 hardcode_libdir_separator=':' 8862 link_all_deplibs=yes 8863 file_list_spec='${wl}-f,' 8864 8865 if test "$GCC" = yes; then 8866 case $host_os in aix4.[012]|aix4.[012].*) 8867 # We only want to do this on AIX 4.2 and lower, the check 8868 # below for broken collect2 doesn't work under 4.3+ 8869 collect2name=`${CC} -print-prog-name=collect2` 8870 if test -f "$collect2name" && 8871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8872 then 8873 # We have reworked collect2 8874 : 8875 else 8876 # We have old collect2 8877 hardcode_direct=unsupported 8878 # It fails to find uninstalled libraries when the uninstalled 8879 # path is not listed in the libpath. Setting hardcode_minus_L 8880 # to unsupported forces relinking 8881 hardcode_minus_L=yes 8882 hardcode_libdir_flag_spec='-L$libdir' 8883 hardcode_libdir_separator= 8884 fi 8885 ;; 8886 esac 8887 shared_flag='-shared' 8888 if test "$aix_use_runtimelinking" = yes; then 8889 shared_flag="$shared_flag "'${wl}-G' 8890 fi 8891 else 8892 # not using gcc 8893 if test "$host_cpu" = ia64; then 8894 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8895 # chokes on -Wl,-G. The following line is correct: 8896 shared_flag='-G' 8897 else 8898 if test "$aix_use_runtimelinking" = yes; then 8899 shared_flag='${wl}-G' 8900 else 8901 shared_flag='${wl}-bM:SRE' 8902 fi 8903 fi 8904 fi 8905 8906 export_dynamic_flag_spec='${wl}-bexpall' 8907 # It seems that -bexpall does not export symbols beginning with 8908 # underscore (_), so it is better to generate a list of symbols to export. 8909 always_export_symbols=yes 8910 if test "$aix_use_runtimelinking" = yes; then 8911 # Warning - without using the other runtime loading flags (-brtl), 8912 # -berok will link without error, but may produce a broken library. 8913 allow_undefined_flag='-berok' 8914 # Determine the default libpath from the value encoded in an 8915 # empty executable. 8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8917/* end confdefs.h. */ 8918 8919int 8920main () 8921{ 8922 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927if ac_fn_c_try_link "$LINENO"; then : 8928 8929lt_aix_libpath_sed=' 8930 /Import File Strings/,/^$/ { 8931 /^0/ { 8932 s/^0 *\(.*\)$/\1/ 8933 p 8934 } 8935 }' 8936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8937# Check for a 64-bit object if we didn't find anything. 8938if test -z "$aix_libpath"; then 8939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8940fi 8941fi 8942rm -f core conftest.err conftest.$ac_objext \ 8943 conftest$ac_exeext conftest.$ac_ext 8944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8945 8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8947 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" 8948 else 8949 if test "$host_cpu" = ia64; then 8950 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8951 allow_undefined_flag="-z nodefs" 8952 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" 8953 else 8954 # Determine the default libpath from the value encoded in an 8955 # empty executable. 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958 8959int 8960main () 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_link "$LINENO"; then : 8968 8969lt_aix_libpath_sed=' 8970 /Import File Strings/,/^$/ { 8971 /^0/ { 8972 s/^0 *\(.*\)$/\1/ 8973 p 8974 } 8975 }' 8976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8977# Check for a 64-bit object if we didn't find anything. 8978if test -z "$aix_libpath"; then 8979 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8980fi 8981fi 8982rm -f core conftest.err conftest.$ac_objext \ 8983 conftest$ac_exeext conftest.$ac_ext 8984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8985 8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8987 # Warning - without using the other run time loading flags, 8988 # -berok will link without error, but may produce a broken library. 8989 no_undefined_flag=' ${wl}-bernotok' 8990 allow_undefined_flag=' ${wl}-berok' 8991 # Exported symbols can be pulled into shared objects from archives 8992 whole_archive_flag_spec='$convenience' 8993 archive_cmds_need_lc=yes 8994 # This is similar to how AIX traditionally builds its shared libraries. 8995 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' 8996 fi 8997 fi 8998 ;; 8999 9000 amigaos*) 9001 case $host_cpu in 9002 powerpc) 9003 # see comment about AmigaOS4 .so support 9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9005 archive_expsym_cmds='' 9006 ;; 9007 m68k) 9008 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)' 9009 hardcode_libdir_flag_spec='-L$libdir' 9010 hardcode_minus_L=yes 9011 ;; 9012 esac 9013 ;; 9014 9015 bsdi[45]*) 9016 export_dynamic_flag_spec=-rdynamic 9017 ;; 9018 9019 cygwin* | mingw* | pw32* | cegcc*) 9020 # When not using gcc, we currently assume that we are using 9021 # Microsoft Visual C++. 9022 # hardcode_libdir_flag_spec is actually meaningless, as there is 9023 # no search path for DLLs. 9024 hardcode_libdir_flag_spec=' ' 9025 allow_undefined_flag=unsupported 9026 # Tell ltmain to make .lib files, not .a files. 9027 libext=lib 9028 # Tell ltmain to make .dll files, not .so files. 9029 shrext_cmds=".dll" 9030 # FIXME: Setting linknames here is a bad hack. 9031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9032 # The linker will automatically build a .lib file if we build a DLL. 9033 old_archive_from_new_cmds='true' 9034 # FIXME: Should let the user specify the lib program. 9035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9036 fix_srcfile_path='`cygpath -w "$srcfile"`' 9037 enable_shared_with_static_runtimes=yes 9038 ;; 9039 9040 darwin* | rhapsody*) 9041 9042 9043 archive_cmds_need_lc=no 9044 hardcode_direct=no 9045 hardcode_automatic=yes 9046 hardcode_shlibpath_var=unsupported 9047 whole_archive_flag_spec='' 9048 link_all_deplibs=yes 9049 allow_undefined_flag="$_lt_dar_allow_undefined" 9050 case $cc_basename in 9051 ifort*) _lt_dar_can_shared=yes ;; 9052 *) _lt_dar_can_shared=$GCC ;; 9053 esac 9054 if test "$_lt_dar_can_shared" = "yes"; then 9055 output_verbose_link_cmd=echo 9056 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9057 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9058 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}" 9059 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}" 9060 9061 else 9062 ld_shlibs=no 9063 fi 9064 9065 ;; 9066 9067 dgux*) 9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9069 hardcode_libdir_flag_spec='-L$libdir' 9070 hardcode_shlibpath_var=no 9071 ;; 9072 9073 freebsd1*) 9074 ld_shlibs=no 9075 ;; 9076 9077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9078 # support. Future versions do this automatically, but an explicit c++rt0.o 9079 # does not break anything, and helps significantly (at the cost of a little 9080 # extra space). 9081 freebsd2.2*) 9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9083 hardcode_libdir_flag_spec='-R$libdir' 9084 hardcode_direct=yes 9085 hardcode_shlibpath_var=no 9086 ;; 9087 9088 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9089 freebsd2*) 9090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9091 hardcode_direct=yes 9092 hardcode_minus_L=yes 9093 hardcode_shlibpath_var=no 9094 ;; 9095 9096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9097 freebsd* | dragonfly*) 9098 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9099 hardcode_libdir_flag_spec='-R$libdir' 9100 hardcode_direct=yes 9101 hardcode_shlibpath_var=no 9102 ;; 9103 9104 hpux9*) 9105 if test "$GCC" = yes; then 9106 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' 9107 else 9108 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' 9109 fi 9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9111 hardcode_libdir_separator=: 9112 hardcode_direct=yes 9113 9114 # hardcode_minus_L: Not really in the search PATH, 9115 # but as the default location of the library. 9116 hardcode_minus_L=yes 9117 export_dynamic_flag_spec='${wl}-E' 9118 ;; 9119 9120 hpux10*) 9121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9123 else 9124 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9125 fi 9126 if test "$with_gnu_ld" = no; then 9127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9128 hardcode_libdir_flag_spec_ld='+b $libdir' 9129 hardcode_libdir_separator=: 9130 hardcode_direct=yes 9131 hardcode_direct_absolute=yes 9132 export_dynamic_flag_spec='${wl}-E' 9133 # hardcode_minus_L: Not really in the search PATH, 9134 # but as the default location of the library. 9135 hardcode_minus_L=yes 9136 fi 9137 ;; 9138 9139 hpux11*) 9140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9141 case $host_cpu in 9142 hppa*64*) 9143 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9144 ;; 9145 ia64*) 9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9147 ;; 9148 *) 9149 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9150 ;; 9151 esac 9152 else 9153 case $host_cpu in 9154 hppa*64*) 9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9156 ;; 9157 ia64*) 9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9159 ;; 9160 *) 9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9162 ;; 9163 esac 9164 fi 9165 if test "$with_gnu_ld" = no; then 9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9167 hardcode_libdir_separator=: 9168 9169 case $host_cpu in 9170 hppa*64*|ia64*) 9171 hardcode_direct=no 9172 hardcode_shlibpath_var=no 9173 ;; 9174 *) 9175 hardcode_direct=yes 9176 hardcode_direct_absolute=yes 9177 export_dynamic_flag_spec='${wl}-E' 9178 9179 # hardcode_minus_L: Not really in the search PATH, 9180 # but as the default location of the library. 9181 hardcode_minus_L=yes 9182 ;; 9183 esac 9184 fi 9185 ;; 9186 9187 irix5* | irix6* | nonstopux*) 9188 if test "$GCC" = yes; then 9189 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' 9190 # Try to use the -exported_symbol ld option, if it does not 9191 # work, assume that -exports_file does not work either and 9192 # implicitly export all symbols. 9193 save_LDFLAGS="$LDFLAGS" 9194 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196/* end confdefs.h. */ 9197int foo(void) {} 9198_ACEOF 9199if ac_fn_c_try_link "$LINENO"; then : 9200 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' 9201 9202fi 9203rm -f core conftest.err conftest.$ac_objext \ 9204 conftest$ac_exeext conftest.$ac_ext 9205 LDFLAGS="$save_LDFLAGS" 9206 else 9207 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' 9208 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' 9209 fi 9210 archive_cmds_need_lc='no' 9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9212 hardcode_libdir_separator=: 9213 inherit_rpath=yes 9214 link_all_deplibs=yes 9215 ;; 9216 9217 netbsd*) 9218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9220 else 9221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9222 fi 9223 hardcode_libdir_flag_spec='-R$libdir' 9224 hardcode_direct=yes 9225 hardcode_shlibpath_var=no 9226 ;; 9227 9228 newsos6) 9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9230 hardcode_direct=yes 9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9232 hardcode_libdir_separator=: 9233 hardcode_shlibpath_var=no 9234 ;; 9235 9236 *nto* | *qnx*) 9237 ;; 9238 9239 openbsd*) 9240 if test -f /usr/libexec/ld.so; then 9241 hardcode_direct=yes 9242 hardcode_shlibpath_var=no 9243 hardcode_direct_absolute=yes 9244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9248 export_dynamic_flag_spec='${wl}-E' 9249 else 9250 case $host_os in 9251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9253 hardcode_libdir_flag_spec='-R$libdir' 9254 ;; 9255 *) 9256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9258 ;; 9259 esac 9260 fi 9261 else 9262 ld_shlibs=no 9263 fi 9264 ;; 9265 9266 os2*) 9267 hardcode_libdir_flag_spec='-L$libdir' 9268 hardcode_minus_L=yes 9269 allow_undefined_flag=unsupported 9270 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' 9271 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9272 ;; 9273 9274 osf3*) 9275 if test "$GCC" = yes; then 9276 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9277 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' 9278 else 9279 allow_undefined_flag=' -expect_unresolved \*' 9280 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' 9281 fi 9282 archive_cmds_need_lc='no' 9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9284 hardcode_libdir_separator=: 9285 ;; 9286 9287 osf4* | osf5*) # as osf3* with the addition of -msym flag 9288 if test "$GCC" = yes; then 9289 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9290 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' 9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9292 else 9293 allow_undefined_flag=' -expect_unresolved \*' 9294 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' 9295 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~ 9296 $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' 9297 9298 # Both c and cxx compiler support -rpath directly 9299 hardcode_libdir_flag_spec='-rpath $libdir' 9300 fi 9301 archive_cmds_need_lc='no' 9302 hardcode_libdir_separator=: 9303 ;; 9304 9305 solaris*) 9306 no_undefined_flag=' -z defs' 9307 if test "$GCC" = yes; then 9308 wlarc='${wl}' 9309 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9311 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9312 else 9313 case `$CC -V 2>&1` in 9314 *"Compilers 5.0"*) 9315 wlarc='' 9316 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9319 ;; 9320 *) 9321 wlarc='${wl}' 9322 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9324 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9325 ;; 9326 esac 9327 fi 9328 hardcode_libdir_flag_spec='-R$libdir' 9329 hardcode_shlibpath_var=no 9330 case $host_os in 9331 solaris2.[0-5] | solaris2.[0-5].*) ;; 9332 *) 9333 # The compiler driver will combine and reorder linker options, 9334 # but understands `-z linker_flag'. GCC discards it without `$wl', 9335 # but is careful enough not to reorder. 9336 # Supported since Solaris 2.6 (maybe 2.5.1?) 9337 if test "$GCC" = yes; then 9338 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9339 else 9340 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9341 fi 9342 ;; 9343 esac 9344 link_all_deplibs=yes 9345 ;; 9346 9347 sunos4*) 9348 if test "x$host_vendor" = xsequent; then 9349 # Use $CC to link under sequent, because it throws in some extra .o 9350 # files that make .init and .fini sections work. 9351 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9352 else 9353 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9354 fi 9355 hardcode_libdir_flag_spec='-L$libdir' 9356 hardcode_direct=yes 9357 hardcode_minus_L=yes 9358 hardcode_shlibpath_var=no 9359 ;; 9360 9361 sysv4) 9362 case $host_vendor in 9363 sni) 9364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9365 hardcode_direct=yes # is this really true??? 9366 ;; 9367 siemens) 9368 ## LD is ld it makes a PLAMLIB 9369 ## CC just makes a GrossModule. 9370 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9371 reload_cmds='$CC -r -o $output$reload_objs' 9372 hardcode_direct=no 9373 ;; 9374 motorola) 9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9376 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9377 ;; 9378 esac 9379 runpath_var='LD_RUN_PATH' 9380 hardcode_shlibpath_var=no 9381 ;; 9382 9383 sysv4.3*) 9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9385 hardcode_shlibpath_var=no 9386 export_dynamic_flag_spec='-Bexport' 9387 ;; 9388 9389 sysv4*MP*) 9390 if test -d /usr/nec; then 9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9392 hardcode_shlibpath_var=no 9393 runpath_var=LD_RUN_PATH 9394 hardcode_runpath_var=yes 9395 ld_shlibs=yes 9396 fi 9397 ;; 9398 9399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9400 no_undefined_flag='${wl}-z,text' 9401 archive_cmds_need_lc=no 9402 hardcode_shlibpath_var=no 9403 runpath_var='LD_RUN_PATH' 9404 9405 if test "$GCC" = yes; then 9406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9408 else 9409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9411 fi 9412 ;; 9413 9414 sysv5* | sco3.2v5* | sco5v6*) 9415 # Note: We can NOT use -z defs as we might desire, because we do not 9416 # link with -lc, and that would cause any symbols used from libc to 9417 # always be unresolved, which means just about no library would 9418 # ever link correctly. If we're not using GNU ld we use -z text 9419 # though, which does catch some bad symbols but isn't as heavy-handed 9420 # as -z defs. 9421 no_undefined_flag='${wl}-z,text' 9422 allow_undefined_flag='${wl}-z,nodefs' 9423 archive_cmds_need_lc=no 9424 hardcode_shlibpath_var=no 9425 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9426 hardcode_libdir_separator=':' 9427 link_all_deplibs=yes 9428 export_dynamic_flag_spec='${wl}-Bexport' 9429 runpath_var='LD_RUN_PATH' 9430 9431 if test "$GCC" = yes; then 9432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9434 else 9435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9437 fi 9438 ;; 9439 9440 uts4*) 9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9442 hardcode_libdir_flag_spec='-L$libdir' 9443 hardcode_shlibpath_var=no 9444 ;; 9445 9446 *) 9447 ld_shlibs=no 9448 ;; 9449 esac 9450 9451 if test x$host_vendor = xsni; then 9452 case $host in 9453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9454 export_dynamic_flag_spec='${wl}-Blargedynsym' 9455 ;; 9456 esac 9457 fi 9458 fi 9459 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9461$as_echo "$ld_shlibs" >&6; } 9462test "$ld_shlibs" = no && can_build_shared=no 9463 9464with_gnu_ld=$with_gnu_ld 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480# 9481# Do we need to explicitly link libc? 9482# 9483case "x$archive_cmds_need_lc" in 9484x|xyes) 9485 # Assume -lc should be added 9486 archive_cmds_need_lc=yes 9487 9488 if test "$enable_shared" = yes && test "$GCC" = yes; then 9489 case $archive_cmds in 9490 *'~'*) 9491 # FIXME: we may have to deal with multi-command sequences. 9492 ;; 9493 '$CC '*) 9494 # Test whether the compiler implicitly links with -lc since on some 9495 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9496 # to ld, don't add -lc before -lgcc. 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9498$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9499 $RM conftest* 9500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9501 9502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9503 (eval $ac_compile) 2>&5 9504 ac_status=$? 9505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9506 test $ac_status = 0; } 2>conftest.err; then 9507 soname=conftest 9508 lib=conftest 9509 libobjs=conftest.$ac_objext 9510 deplibs= 9511 wl=$lt_prog_compiler_wl 9512 pic_flag=$lt_prog_compiler_pic 9513 compiler_flags=-v 9514 linker_flags=-v 9515 verstring= 9516 output_objdir=. 9517 libname=conftest 9518 lt_save_allow_undefined_flag=$allow_undefined_flag 9519 allow_undefined_flag= 9520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9522 ac_status=$? 9523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9524 test $ac_status = 0; } 9525 then 9526 archive_cmds_need_lc=no 9527 else 9528 archive_cmds_need_lc=yes 9529 fi 9530 allow_undefined_flag=$lt_save_allow_undefined_flag 9531 else 9532 cat conftest.err 1>&5 9533 fi 9534 $RM conftest* 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9536$as_echo "$archive_cmds_need_lc" >&6; } 9537 ;; 9538 esac 9539 fi 9540 ;; 9541esac 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9700$as_echo_n "checking dynamic linker characteristics... " >&6; } 9701 9702if test "$GCC" = yes; then 9703 case $host_os in 9704 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9705 *) lt_awk_arg="/^libraries:/" ;; 9706 esac 9707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9708 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9709 # if the path contains ";" then we assume it to be the separator 9710 # otherwise default to the standard path separator (i.e. ":") - it is 9711 # assumed that no part of a normal pathname contains ";" but that should 9712 # okay in the real world where ";" in dirpaths is itself problematic. 9713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9714 else 9715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9716 fi 9717 # Ok, now we have the path, separated by spaces, we can step through it 9718 # and add multilib dir if necessary. 9719 lt_tmp_lt_search_path_spec= 9720 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9721 for lt_sys_path in $lt_search_path_spec; do 9722 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9724 else 9725 test -d "$lt_sys_path" && \ 9726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9727 fi 9728 done 9729 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9730BEGIN {RS=" "; FS="/|\n";} { 9731 lt_foo=""; 9732 lt_count=0; 9733 for (lt_i = NF; lt_i > 0; lt_i--) { 9734 if ($lt_i != "" && $lt_i != ".") { 9735 if ($lt_i == "..") { 9736 lt_count++; 9737 } else { 9738 if (lt_count == 0) { 9739 lt_foo="/" $lt_i lt_foo; 9740 } else { 9741 lt_count--; 9742 } 9743 } 9744 } 9745 } 9746 if (lt_foo != "") { lt_freq[lt_foo]++; } 9747 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9748}'` 9749 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9750else 9751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9752fi 9753library_names_spec= 9754libname_spec='lib$name' 9755soname_spec= 9756shrext_cmds=".so" 9757postinstall_cmds= 9758postuninstall_cmds= 9759finish_cmds= 9760finish_eval= 9761shlibpath_var= 9762shlibpath_overrides_runpath=unknown 9763version_type=none 9764dynamic_linker="$host_os ld.so" 9765sys_lib_dlsearch_path_spec="/lib /usr/lib" 9766need_lib_prefix=unknown 9767hardcode_into_libs=no 9768 9769# when you set need_version to no, make sure it does not cause -set_version 9770# flags to be left without arguments 9771need_version=unknown 9772 9773case $host_os in 9774aix3*) 9775 version_type=linux 9776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9777 shlibpath_var=LIBPATH 9778 9779 # AIX 3 has no versioning support, so we append a major version to the name. 9780 soname_spec='${libname}${release}${shared_ext}$major' 9781 ;; 9782 9783aix[4-9]*) 9784 version_type=linux 9785 need_lib_prefix=no 9786 need_version=no 9787 hardcode_into_libs=yes 9788 if test "$host_cpu" = ia64; then 9789 # AIX 5 supports IA64 9790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9791 shlibpath_var=LD_LIBRARY_PATH 9792 else 9793 # With GCC up to 2.95.x, collect2 would create an import file 9794 # for dependence libraries. The import file would start with 9795 # the line `#! .'. This would cause the generated library to 9796 # depend on `.', always an invalid library. This was fixed in 9797 # development snapshots of GCC prior to 3.0. 9798 case $host_os in 9799 aix4 | aix4.[01] | aix4.[01].*) 9800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9801 echo ' yes ' 9802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9803 : 9804 else 9805 can_build_shared=no 9806 fi 9807 ;; 9808 esac 9809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9810 # soname into executable. Probably we can add versioning support to 9811 # collect2, so additional links can be useful in future. 9812 if test "$aix_use_runtimelinking" = yes; then 9813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9814 # instead of lib<name>.a to let people know that these are not 9815 # typical AIX shared libraries. 9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9817 else 9818 # We preserve .a as extension for shared libraries through AIX4.2 9819 # and later when we are not doing run time linking. 9820 library_names_spec='${libname}${release}.a $libname.a' 9821 soname_spec='${libname}${release}${shared_ext}$major' 9822 fi 9823 shlibpath_var=LIBPATH 9824 fi 9825 ;; 9826 9827amigaos*) 9828 case $host_cpu in 9829 powerpc) 9830 # Since July 2007 AmigaOS4 officially supports .so libraries. 9831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9833 ;; 9834 m68k) 9835 library_names_spec='$libname.ixlibrary $libname.a' 9836 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9837 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' 9838 ;; 9839 esac 9840 ;; 9841 9842beos*) 9843 library_names_spec='${libname}${shared_ext}' 9844 dynamic_linker="$host_os ld.so" 9845 shlibpath_var=LIBRARY_PATH 9846 ;; 9847 9848bsdi[45]*) 9849 version_type=linux 9850 need_version=no 9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9852 soname_spec='${libname}${release}${shared_ext}$major' 9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9854 shlibpath_var=LD_LIBRARY_PATH 9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9857 # the default ld.so.conf also contains /usr/contrib/lib and 9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9859 # libtool to hard-code these into programs 9860 ;; 9861 9862cygwin* | mingw* | pw32* | cegcc*) 9863 version_type=windows 9864 shrext_cmds=".dll" 9865 need_version=no 9866 need_lib_prefix=no 9867 9868 case $GCC,$host_os in 9869 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9870 library_names_spec='$libname.dll.a' 9871 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9872 postinstall_cmds='base_file=`basename \${file}`~ 9873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9874 dldir=$destdir/`dirname \$dlpath`~ 9875 test -d \$dldir || mkdir -p \$dldir~ 9876 $install_prog $dir/$dlname \$dldir/$dlname~ 9877 chmod a+x \$dldir/$dlname~ 9878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9880 fi' 9881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9882 dlpath=$dir/\$dldll~ 9883 $RM \$dlpath' 9884 shlibpath_overrides_runpath=yes 9885 9886 case $host_os in 9887 cygwin*) 9888 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9891 ;; 9892 mingw* | cegcc*) 9893 # MinGW DLLs use traditional 'lib' prefix 9894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9895 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9896 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9897 # It is most probably a Windows format PATH printed by 9898 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9899 # path with ; separators, and with drive letters. We can handle the 9900 # drive letters (cygwin fileutils understands them), so leave them, 9901 # especially as we might pass files found there to a mingw objdump, 9902 # which wouldn't understand a cygwinified path. Ahh. 9903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9904 else 9905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9906 fi 9907 ;; 9908 pw32*) 9909 # pw32 DLLs use 'pw' prefix rather than 'lib' 9910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9911 ;; 9912 esac 9913 ;; 9914 9915 *) 9916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9917 ;; 9918 esac 9919 dynamic_linker='Win32 ld.exe' 9920 # FIXME: first we should search . and the directory the executable is in 9921 shlibpath_var=PATH 9922 ;; 9923 9924darwin* | rhapsody*) 9925 dynamic_linker="$host_os dyld" 9926 version_type=darwin 9927 need_lib_prefix=no 9928 need_version=no 9929 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9930 soname_spec='${libname}${release}${major}$shared_ext' 9931 shlibpath_overrides_runpath=yes 9932 shlibpath_var=DYLD_LIBRARY_PATH 9933 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9934 9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9937 ;; 9938 9939dgux*) 9940 version_type=linux 9941 need_lib_prefix=no 9942 need_version=no 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9944 soname_spec='${libname}${release}${shared_ext}$major' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 ;; 9947 9948freebsd1*) 9949 dynamic_linker=no 9950 ;; 9951 9952freebsd* | dragonfly*) 9953 # DragonFly does not have aout. When/if they implement a new 9954 # versioning mechanism, adjust this. 9955 if test -x /usr/bin/objformat; then 9956 objformat=`/usr/bin/objformat` 9957 else 9958 case $host_os in 9959 freebsd[123]*) objformat=aout ;; 9960 *) objformat=elf ;; 9961 esac 9962 fi 9963 version_type=freebsd-$objformat 9964 case $version_type in 9965 freebsd-elf*) 9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9967 need_version=no 9968 need_lib_prefix=no 9969 ;; 9970 freebsd-*) 9971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9972 need_version=yes 9973 ;; 9974 esac 9975 shlibpath_var=LD_LIBRARY_PATH 9976 case $host_os in 9977 freebsd2*) 9978 shlibpath_overrides_runpath=yes 9979 ;; 9980 freebsd3.[01]* | freebsdelf3.[01]*) 9981 shlibpath_overrides_runpath=yes 9982 hardcode_into_libs=yes 9983 ;; 9984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9986 shlibpath_overrides_runpath=no 9987 hardcode_into_libs=yes 9988 ;; 9989 *) # from 4.6 on, and DragonFly 9990 shlibpath_overrides_runpath=yes 9991 hardcode_into_libs=yes 9992 ;; 9993 esac 9994 ;; 9995 9996gnu*) 9997 version_type=linux 9998 need_lib_prefix=no 9999 need_version=no 10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10001 soname_spec='${libname}${release}${shared_ext}$major' 10002 shlibpath_var=LD_LIBRARY_PATH 10003 hardcode_into_libs=yes 10004 ;; 10005 10006hpux9* | hpux10* | hpux11*) 10007 # Give a soname corresponding to the major version so that dld.sl refuses to 10008 # link against other versions. 10009 version_type=sunos 10010 need_lib_prefix=no 10011 need_version=no 10012 case $host_cpu in 10013 ia64*) 10014 shrext_cmds='.so' 10015 hardcode_into_libs=yes 10016 dynamic_linker="$host_os dld.so" 10017 shlibpath_var=LD_LIBRARY_PATH 10018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10020 soname_spec='${libname}${release}${shared_ext}$major' 10021 if test "X$HPUX_IA64_MODE" = X32; then 10022 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10023 else 10024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10025 fi 10026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10027 ;; 10028 hppa*64*) 10029 shrext_cmds='.sl' 10030 hardcode_into_libs=yes 10031 dynamic_linker="$host_os dld.sl" 10032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10035 soname_spec='${libname}${release}${shared_ext}$major' 10036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10038 ;; 10039 *) 10040 shrext_cmds='.sl' 10041 dynamic_linker="$host_os dld.sl" 10042 shlibpath_var=SHLIB_PATH 10043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10045 soname_spec='${libname}${release}${shared_ext}$major' 10046 ;; 10047 esac 10048 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10049 postinstall_cmds='chmod 555 $lib' 10050 ;; 10051 10052interix[3-9]*) 10053 version_type=linux 10054 need_lib_prefix=no 10055 need_version=no 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10057 soname_spec='${libname}${release}${shared_ext}$major' 10058 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10059 shlibpath_var=LD_LIBRARY_PATH 10060 shlibpath_overrides_runpath=no 10061 hardcode_into_libs=yes 10062 ;; 10063 10064irix5* | irix6* | nonstopux*) 10065 case $host_os in 10066 nonstopux*) version_type=nonstopux ;; 10067 *) 10068 if test "$lt_cv_prog_gnu_ld" = yes; then 10069 version_type=linux 10070 else 10071 version_type=irix 10072 fi ;; 10073 esac 10074 need_lib_prefix=no 10075 need_version=no 10076 soname_spec='${libname}${release}${shared_ext}$major' 10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10078 case $host_os in 10079 irix5* | nonstopux*) 10080 libsuff= shlibsuff= 10081 ;; 10082 *) 10083 case $LD in # libtool.m4 will add one of these switches to LD 10084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10085 libsuff= shlibsuff= libmagic=32-bit;; 10086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10087 libsuff=32 shlibsuff=N32 libmagic=N32;; 10088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10089 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10090 *) libsuff= shlibsuff= libmagic=never-match;; 10091 esac 10092 ;; 10093 esac 10094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10095 shlibpath_overrides_runpath=no 10096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10098 hardcode_into_libs=yes 10099 ;; 10100 10101# No shared lib support for Linux oldld, aout, or coff. 10102linux*oldld* | linux*aout* | linux*coff*) 10103 dynamic_linker=no 10104 ;; 10105 10106# This must be Linux ELF. 10107linux* | k*bsd*-gnu) 10108 version_type=linux 10109 need_lib_prefix=no 10110 need_version=no 10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10112 soname_spec='${libname}${release}${shared_ext}$major' 10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10114 shlibpath_var=LD_LIBRARY_PATH 10115 shlibpath_overrides_runpath=no 10116 # Some binutils ld are patched to set DT_RUNPATH 10117 save_LDFLAGS=$LDFLAGS 10118 save_libdir=$libdir 10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123 10124int 10125main () 10126{ 10127 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132if ac_fn_c_try_link "$LINENO"; then : 10133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10134 shlibpath_overrides_runpath=yes 10135fi 10136fi 10137rm -f core conftest.err conftest.$ac_objext \ 10138 conftest$ac_exeext conftest.$ac_ext 10139 LDFLAGS=$save_LDFLAGS 10140 libdir=$save_libdir 10141 10142 # This implies no fast_install, which is unacceptable. 10143 # Some rework will be needed to allow for fast_install 10144 # before this can be enabled. 10145 hardcode_into_libs=yes 10146 10147 # Append ld.so.conf contents to the search path 10148 if test -f /etc/ld.so.conf; then 10149 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' ' '` 10150 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10151 fi 10152 10153 # We used to test for /lib/ld.so.1 and disable shared libraries on 10154 # powerpc, because MkLinux only supported shared libraries with the 10155 # GNU dynamic linker. Since this was broken with cross compilers, 10156 # most powerpc-linux boxes support dynamic linking these days and 10157 # people can always --disable-shared, the test was removed, and we 10158 # assume the GNU/Linux dynamic linker is in use. 10159 dynamic_linker='GNU/Linux ld.so' 10160 ;; 10161 10162netbsd*) 10163 version_type=sunos 10164 need_lib_prefix=no 10165 need_version=no 10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10169 dynamic_linker='NetBSD (a.out) ld.so' 10170 else 10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10172 soname_spec='${libname}${release}${shared_ext}$major' 10173 dynamic_linker='NetBSD ld.elf_so' 10174 fi 10175 shlibpath_var=LD_LIBRARY_PATH 10176 shlibpath_overrides_runpath=yes 10177 hardcode_into_libs=yes 10178 ;; 10179 10180newsos6) 10181 version_type=linux 10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10183 shlibpath_var=LD_LIBRARY_PATH 10184 shlibpath_overrides_runpath=yes 10185 ;; 10186 10187*nto* | *qnx*) 10188 version_type=qnx 10189 need_lib_prefix=no 10190 need_version=no 10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10192 soname_spec='${libname}${release}${shared_ext}$major' 10193 shlibpath_var=LD_LIBRARY_PATH 10194 shlibpath_overrides_runpath=no 10195 hardcode_into_libs=yes 10196 dynamic_linker='ldqnx.so' 10197 ;; 10198 10199openbsd*) 10200 version_type=sunos 10201 sys_lib_dlsearch_path_spec="/usr/lib" 10202 need_lib_prefix=no 10203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10204 case $host_os in 10205 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10206 *) need_version=no ;; 10207 esac 10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10210 shlibpath_var=LD_LIBRARY_PATH 10211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10212 case $host_os in 10213 openbsd2.[89] | openbsd2.[89].*) 10214 shlibpath_overrides_runpath=no 10215 ;; 10216 *) 10217 shlibpath_overrides_runpath=yes 10218 ;; 10219 esac 10220 else 10221 shlibpath_overrides_runpath=yes 10222 fi 10223 ;; 10224 10225os2*) 10226 libname_spec='$name' 10227 shrext_cmds=".dll" 10228 need_lib_prefix=no 10229 library_names_spec='$libname${shared_ext} $libname.a' 10230 dynamic_linker='OS/2 ld.exe' 10231 shlibpath_var=LIBPATH 10232 ;; 10233 10234osf3* | osf4* | osf5*) 10235 version_type=osf 10236 need_lib_prefix=no 10237 need_version=no 10238 soname_spec='${libname}${release}${shared_ext}$major' 10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10240 shlibpath_var=LD_LIBRARY_PATH 10241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10243 ;; 10244 10245rdos*) 10246 dynamic_linker=no 10247 ;; 10248 10249solaris*) 10250 version_type=linux 10251 need_lib_prefix=no 10252 need_version=no 10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10254 soname_spec='${libname}${release}${shared_ext}$major' 10255 shlibpath_var=LD_LIBRARY_PATH 10256 shlibpath_overrides_runpath=yes 10257 hardcode_into_libs=yes 10258 # ldd complains unless libraries are executable 10259 postinstall_cmds='chmod +x $lib' 10260 ;; 10261 10262sunos4*) 10263 version_type=sunos 10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10266 shlibpath_var=LD_LIBRARY_PATH 10267 shlibpath_overrides_runpath=yes 10268 if test "$with_gnu_ld" = yes; then 10269 need_lib_prefix=no 10270 fi 10271 need_version=yes 10272 ;; 10273 10274sysv4 | sysv4.3*) 10275 version_type=linux 10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10277 soname_spec='${libname}${release}${shared_ext}$major' 10278 shlibpath_var=LD_LIBRARY_PATH 10279 case $host_vendor in 10280 sni) 10281 shlibpath_overrides_runpath=no 10282 need_lib_prefix=no 10283 runpath_var=LD_RUN_PATH 10284 ;; 10285 siemens) 10286 need_lib_prefix=no 10287 ;; 10288 motorola) 10289 need_lib_prefix=no 10290 need_version=no 10291 shlibpath_overrides_runpath=no 10292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10293 ;; 10294 esac 10295 ;; 10296 10297sysv4*MP*) 10298 if test -d /usr/nec ;then 10299 version_type=linux 10300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10301 soname_spec='$libname${shared_ext}.$major' 10302 shlibpath_var=LD_LIBRARY_PATH 10303 fi 10304 ;; 10305 10306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10307 version_type=freebsd-elf 10308 need_lib_prefix=no 10309 need_version=no 10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10311 soname_spec='${libname}${release}${shared_ext}$major' 10312 shlibpath_var=LD_LIBRARY_PATH 10313 shlibpath_overrides_runpath=yes 10314 hardcode_into_libs=yes 10315 if test "$with_gnu_ld" = yes; then 10316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10317 else 10318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10319 case $host_os in 10320 sco3.2v5*) 10321 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10322 ;; 10323 esac 10324 fi 10325 sys_lib_dlsearch_path_spec='/usr/lib' 10326 ;; 10327 10328tpf*) 10329 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10330 version_type=linux 10331 need_lib_prefix=no 10332 need_version=no 10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10334 shlibpath_var=LD_LIBRARY_PATH 10335 shlibpath_overrides_runpath=no 10336 hardcode_into_libs=yes 10337 ;; 10338 10339uts4*) 10340 version_type=linux 10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10342 soname_spec='${libname}${release}${shared_ext}$major' 10343 shlibpath_var=LD_LIBRARY_PATH 10344 ;; 10345 10346*) 10347 dynamic_linker=no 10348 ;; 10349esac 10350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10351$as_echo "$dynamic_linker" >&6; } 10352test "$dynamic_linker" = no && can_build_shared=no 10353 10354variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10355if test "$GCC" = yes; then 10356 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10357fi 10358 10359if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10360 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10361fi 10362if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10363 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10364fi 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10453$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10454hardcode_action= 10455if test -n "$hardcode_libdir_flag_spec" || 10456 test -n "$runpath_var" || 10457 test "X$hardcode_automatic" = "Xyes" ; then 10458 10459 # We can hardcode non-existent directories. 10460 if test "$hardcode_direct" != no && 10461 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10462 # have to relink, otherwise we might link with an installed library 10463 # when we should be linking with a yet-to-be-installed one 10464 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10465 test "$hardcode_minus_L" != no; then 10466 # Linking always hardcodes the temporary library directory. 10467 hardcode_action=relink 10468 else 10469 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10470 hardcode_action=immediate 10471 fi 10472else 10473 # We cannot hardcode anything, or else we can only hardcode existing 10474 # directories. 10475 hardcode_action=unsupported 10476fi 10477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10478$as_echo "$hardcode_action" >&6; } 10479 10480if test "$hardcode_action" = relink || 10481 test "$inherit_rpath" = yes; then 10482 # Fast installation is not supported 10483 enable_fast_install=no 10484elif test "$shlibpath_overrides_runpath" = yes || 10485 test "$enable_shared" = no; then 10486 # Fast installation is not necessary 10487 enable_fast_install=needless 10488fi 10489 10490 10491 10492 10493 10494 10495 if test "x$enable_dlopen" != xyes; then 10496 enable_dlopen=unknown 10497 enable_dlopen_self=unknown 10498 enable_dlopen_self_static=unknown 10499else 10500 lt_cv_dlopen=no 10501 lt_cv_dlopen_libs= 10502 10503 case $host_os in 10504 beos*) 10505 lt_cv_dlopen="load_add_on" 10506 lt_cv_dlopen_libs= 10507 lt_cv_dlopen_self=yes 10508 ;; 10509 10510 mingw* | pw32* | cegcc*) 10511 lt_cv_dlopen="LoadLibrary" 10512 lt_cv_dlopen_libs= 10513 ;; 10514 10515 cygwin*) 10516 lt_cv_dlopen="dlopen" 10517 lt_cv_dlopen_libs= 10518 ;; 10519 10520 darwin*) 10521 # if libdl is installed we need to link against it 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10523$as_echo_n "checking for dlopen in -ldl... " >&6; } 10524if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 ac_check_lib_save_LIBS=$LIBS 10528LIBS="-ldl $LIBS" 10529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531 10532/* Override any GCC internal prototype to avoid an error. 10533 Use char because int might match the return type of a GCC 10534 builtin and then its argument prototype would still apply. */ 10535#ifdef __cplusplus 10536extern "C" 10537#endif 10538char dlopen (); 10539int 10540main () 10541{ 10542return dlopen (); 10543 ; 10544 return 0; 10545} 10546_ACEOF 10547if ac_fn_c_try_link "$LINENO"; then : 10548 ac_cv_lib_dl_dlopen=yes 10549else 10550 ac_cv_lib_dl_dlopen=no 10551fi 10552rm -f core conftest.err conftest.$ac_objext \ 10553 conftest$ac_exeext conftest.$ac_ext 10554LIBS=$ac_check_lib_save_LIBS 10555fi 10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10557$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10558if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10559 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10560else 10561 10562 lt_cv_dlopen="dyld" 10563 lt_cv_dlopen_libs= 10564 lt_cv_dlopen_self=yes 10565 10566fi 10567 10568 ;; 10569 10570 *) 10571 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10572if test "x$ac_cv_func_shl_load" = x""yes; then : 10573 lt_cv_dlopen="shl_load" 10574else 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10576$as_echo_n "checking for shl_load in -ldld... " >&6; } 10577if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10578 $as_echo_n "(cached) " >&6 10579else 10580 ac_check_lib_save_LIBS=$LIBS 10581LIBS="-ldld $LIBS" 10582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10583/* end confdefs.h. */ 10584 10585/* Override any GCC internal prototype to avoid an error. 10586 Use char because int might match the return type of a GCC 10587 builtin and then its argument prototype would still apply. */ 10588#ifdef __cplusplus 10589extern "C" 10590#endif 10591char shl_load (); 10592int 10593main () 10594{ 10595return shl_load (); 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600if ac_fn_c_try_link "$LINENO"; then : 10601 ac_cv_lib_dld_shl_load=yes 10602else 10603 ac_cv_lib_dld_shl_load=no 10604fi 10605rm -f core conftest.err conftest.$ac_objext \ 10606 conftest$ac_exeext conftest.$ac_ext 10607LIBS=$ac_check_lib_save_LIBS 10608fi 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10610$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10611if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10612 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10613else 10614 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10615if test "x$ac_cv_func_dlopen" = x""yes; then : 10616 lt_cv_dlopen="dlopen" 10617else 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10619$as_echo_n "checking for dlopen in -ldl... " >&6; } 10620if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10621 $as_echo_n "(cached) " >&6 10622else 10623 ac_check_lib_save_LIBS=$LIBS 10624LIBS="-ldl $LIBS" 10625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10626/* end confdefs.h. */ 10627 10628/* Override any GCC internal prototype to avoid an error. 10629 Use char because int might match the return type of a GCC 10630 builtin and then its argument prototype would still apply. */ 10631#ifdef __cplusplus 10632extern "C" 10633#endif 10634char dlopen (); 10635int 10636main () 10637{ 10638return dlopen (); 10639 ; 10640 return 0; 10641} 10642_ACEOF 10643if ac_fn_c_try_link "$LINENO"; then : 10644 ac_cv_lib_dl_dlopen=yes 10645else 10646 ac_cv_lib_dl_dlopen=no 10647fi 10648rm -f core conftest.err conftest.$ac_objext \ 10649 conftest$ac_exeext conftest.$ac_ext 10650LIBS=$ac_check_lib_save_LIBS 10651fi 10652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10653$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10654if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10656else 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10658$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10659if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 ac_check_lib_save_LIBS=$LIBS 10663LIBS="-lsvld $LIBS" 10664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665/* end confdefs.h. */ 10666 10667/* Override any GCC internal prototype to avoid an error. 10668 Use char because int might match the return type of a GCC 10669 builtin and then its argument prototype would still apply. */ 10670#ifdef __cplusplus 10671extern "C" 10672#endif 10673char dlopen (); 10674int 10675main () 10676{ 10677return dlopen (); 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682if ac_fn_c_try_link "$LINENO"; then : 10683 ac_cv_lib_svld_dlopen=yes 10684else 10685 ac_cv_lib_svld_dlopen=no 10686fi 10687rm -f core conftest.err conftest.$ac_objext \ 10688 conftest$ac_exeext conftest.$ac_ext 10689LIBS=$ac_check_lib_save_LIBS 10690fi 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10692$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10693if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10695else 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10697$as_echo_n "checking for dld_link in -ldld... " >&6; } 10698if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 ac_check_lib_save_LIBS=$LIBS 10702LIBS="-ldld $LIBS" 10703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704/* end confdefs.h. */ 10705 10706/* Override any GCC internal prototype to avoid an error. 10707 Use char because int might match the return type of a GCC 10708 builtin and then its argument prototype would still apply. */ 10709#ifdef __cplusplus 10710extern "C" 10711#endif 10712char dld_link (); 10713int 10714main () 10715{ 10716return dld_link (); 10717 ; 10718 return 0; 10719} 10720_ACEOF 10721if ac_fn_c_try_link "$LINENO"; then : 10722 ac_cv_lib_dld_dld_link=yes 10723else 10724 ac_cv_lib_dld_dld_link=no 10725fi 10726rm -f core conftest.err conftest.$ac_objext \ 10727 conftest$ac_exeext conftest.$ac_ext 10728LIBS=$ac_check_lib_save_LIBS 10729fi 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10731$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10732if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10733 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10734fi 10735 10736 10737fi 10738 10739 10740fi 10741 10742 10743fi 10744 10745 10746fi 10747 10748 10749fi 10750 10751 ;; 10752 esac 10753 10754 if test "x$lt_cv_dlopen" != xno; then 10755 enable_dlopen=yes 10756 else 10757 enable_dlopen=no 10758 fi 10759 10760 case $lt_cv_dlopen in 10761 dlopen) 10762 save_CPPFLAGS="$CPPFLAGS" 10763 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10764 10765 save_LDFLAGS="$LDFLAGS" 10766 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10767 10768 save_LIBS="$LIBS" 10769 LIBS="$lt_cv_dlopen_libs $LIBS" 10770 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10772$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10773if test "${lt_cv_dlopen_self+set}" = set; then : 10774 $as_echo_n "(cached) " >&6 10775else 10776 if test "$cross_compiling" = yes; then : 10777 lt_cv_dlopen_self=cross 10778else 10779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10780 lt_status=$lt_dlunknown 10781 cat > conftest.$ac_ext <<_LT_EOF 10782#line 10782 "configure" 10783#include "confdefs.h" 10784 10785#if HAVE_DLFCN_H 10786#include <dlfcn.h> 10787#endif 10788 10789#include <stdio.h> 10790 10791#ifdef RTLD_GLOBAL 10792# define LT_DLGLOBAL RTLD_GLOBAL 10793#else 10794# ifdef DL_GLOBAL 10795# define LT_DLGLOBAL DL_GLOBAL 10796# else 10797# define LT_DLGLOBAL 0 10798# endif 10799#endif 10800 10801/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10802 find out it does not work in some platform. */ 10803#ifndef LT_DLLAZY_OR_NOW 10804# ifdef RTLD_LAZY 10805# define LT_DLLAZY_OR_NOW RTLD_LAZY 10806# else 10807# ifdef DL_LAZY 10808# define LT_DLLAZY_OR_NOW DL_LAZY 10809# else 10810# ifdef RTLD_NOW 10811# define LT_DLLAZY_OR_NOW RTLD_NOW 10812# else 10813# ifdef DL_NOW 10814# define LT_DLLAZY_OR_NOW DL_NOW 10815# else 10816# define LT_DLLAZY_OR_NOW 0 10817# endif 10818# endif 10819# endif 10820# endif 10821#endif 10822 10823void fnord() { int i=42;} 10824int main () 10825{ 10826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10827 int status = $lt_dlunknown; 10828 10829 if (self) 10830 { 10831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10833 /* dlclose (self); */ 10834 } 10835 else 10836 puts (dlerror ()); 10837 10838 return status; 10839} 10840_LT_EOF 10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10842 (eval $ac_link) 2>&5 10843 ac_status=$? 10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10845 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10846 (./conftest; exit; ) >&5 2>/dev/null 10847 lt_status=$? 10848 case x$lt_status in 10849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10851 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10852 esac 10853 else : 10854 # compilation failed 10855 lt_cv_dlopen_self=no 10856 fi 10857fi 10858rm -fr conftest* 10859 10860 10861fi 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10863$as_echo "$lt_cv_dlopen_self" >&6; } 10864 10865 if test "x$lt_cv_dlopen_self" = xyes; then 10866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10868$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10869if test "${lt_cv_dlopen_self_static+set}" = set; then : 10870 $as_echo_n "(cached) " >&6 10871else 10872 if test "$cross_compiling" = yes; then : 10873 lt_cv_dlopen_self_static=cross 10874else 10875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10876 lt_status=$lt_dlunknown 10877 cat > conftest.$ac_ext <<_LT_EOF 10878#line 10878 "configure" 10879#include "confdefs.h" 10880 10881#if HAVE_DLFCN_H 10882#include <dlfcn.h> 10883#endif 10884 10885#include <stdio.h> 10886 10887#ifdef RTLD_GLOBAL 10888# define LT_DLGLOBAL RTLD_GLOBAL 10889#else 10890# ifdef DL_GLOBAL 10891# define LT_DLGLOBAL DL_GLOBAL 10892# else 10893# define LT_DLGLOBAL 0 10894# endif 10895#endif 10896 10897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10898 find out it does not work in some platform. */ 10899#ifndef LT_DLLAZY_OR_NOW 10900# ifdef RTLD_LAZY 10901# define LT_DLLAZY_OR_NOW RTLD_LAZY 10902# else 10903# ifdef DL_LAZY 10904# define LT_DLLAZY_OR_NOW DL_LAZY 10905# else 10906# ifdef RTLD_NOW 10907# define LT_DLLAZY_OR_NOW RTLD_NOW 10908# else 10909# ifdef DL_NOW 10910# define LT_DLLAZY_OR_NOW DL_NOW 10911# else 10912# define LT_DLLAZY_OR_NOW 0 10913# endif 10914# endif 10915# endif 10916# endif 10917#endif 10918 10919void fnord() { int i=42;} 10920int main () 10921{ 10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10923 int status = $lt_dlunknown; 10924 10925 if (self) 10926 { 10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10929 /* dlclose (self); */ 10930 } 10931 else 10932 puts (dlerror ()); 10933 10934 return status; 10935} 10936_LT_EOF 10937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10938 (eval $ac_link) 2>&5 10939 ac_status=$? 10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10942 (./conftest; exit; ) >&5 2>/dev/null 10943 lt_status=$? 10944 case x$lt_status in 10945 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10946 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10947 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10948 esac 10949 else : 10950 # compilation failed 10951 lt_cv_dlopen_self_static=no 10952 fi 10953fi 10954rm -fr conftest* 10955 10956 10957fi 10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10959$as_echo "$lt_cv_dlopen_self_static" >&6; } 10960 fi 10961 10962 CPPFLAGS="$save_CPPFLAGS" 10963 LDFLAGS="$save_LDFLAGS" 10964 LIBS="$save_LIBS" 10965 ;; 10966 esac 10967 10968 case $lt_cv_dlopen_self in 10969 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10970 *) enable_dlopen_self=unknown ;; 10971 esac 10972 10973 case $lt_cv_dlopen_self_static in 10974 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10975 *) enable_dlopen_self_static=unknown ;; 10976 esac 10977fi 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995striplib= 10996old_striplib= 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10998$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10999if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11000 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11001 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11003$as_echo "yes" >&6; } 11004else 11005# FIXME - insert some real tests, host_os isn't really good enough 11006 case $host_os in 11007 darwin*) 11008 if test -n "$STRIP" ; then 11009 striplib="$STRIP -x" 11010 old_striplib="$STRIP -S" 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11012$as_echo "yes" >&6; } 11013 else 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11015$as_echo "no" >&6; } 11016 fi 11017 ;; 11018 *) 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11020$as_echo "no" >&6; } 11021 ;; 11022 esac 11023fi 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 # Report which library types will actually be built 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11038$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11040$as_echo "$can_build_shared" >&6; } 11041 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11043$as_echo_n "checking whether to build shared libraries... " >&6; } 11044 test "$can_build_shared" = "no" && enable_shared=no 11045 11046 # On AIX, shared libraries and static libraries use the same namespace, and 11047 # are all built from PIC. 11048 case $host_os in 11049 aix3*) 11050 test "$enable_shared" = yes && enable_static=no 11051 if test -n "$RANLIB"; then 11052 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11053 postinstall_cmds='$RANLIB $lib' 11054 fi 11055 ;; 11056 11057 aix[4-9]*) 11058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11059 test "$enable_shared" = yes && enable_static=no 11060 fi 11061 ;; 11062 esac 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11064$as_echo "$enable_shared" >&6; } 11065 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11067$as_echo_n "checking whether to build static libraries... " >&6; } 11068 # Make sure either enable_shared or enable_static is yes. 11069 test "$enable_shared" = yes || enable_static=yes 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11071$as_echo "$enable_static" >&6; } 11072 11073 11074 11075 11076fi 11077ac_ext=c 11078ac_cpp='$CPP $CPPFLAGS' 11079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11081ac_compiler_gnu=$ac_cv_c_compiler_gnu 11082 11083CC="$lt_save_CC" 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 ac_config_commands="$ac_config_commands libtool" 11098 11099 11100 11101 11102# Only expand once: 11103 11104 11105 11106 11107 11108# Define a configure option for an alternate module directory 11109 11110# Check whether --with-xorg-module-dir was given. 11111if test "${with_xorg_module_dir+set}" = set; then : 11112 withval=$with_xorg_module_dir; moduledir="$withval" 11113else 11114 moduledir="$libdir/xorg/modules" 11115fi 11116 11117 11118# Store the list of server defined optional extensions in REQUIRED_MODULES 11119 11120 11121 SAVE_CFLAGS="$CFLAGS" 11122 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125 11126#include "xorg-server.h" 11127#if !defined RANDR 11128#error RANDR not defined 11129#endif 11130 11131int 11132main () 11133{ 11134 11135 ; 11136 return 0; 11137} 11138_ACEOF 11139if ac_fn_c_try_compile "$LINENO"; then : 11140 _EXT_CHECK=yes 11141else 11142 _EXT_CHECK=no 11143fi 11144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11145 CFLAGS="$SAVE_CFLAGS" 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 11147$as_echo_n "checking if RANDR is defined... " >&6; } 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11149$as_echo "$_EXT_CHECK" >&6; } 11150 if test "$_EXT_CHECK" != no; then 11151 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11152 fi 11153 11154 11155 11156 SAVE_CFLAGS="$CFLAGS" 11157 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160 11161#include "xorg-server.h" 11162#if !defined RENDER 11163#error RENDER not defined 11164#endif 11165 11166int 11167main () 11168{ 11169 11170 ; 11171 return 0; 11172} 11173_ACEOF 11174if ac_fn_c_try_compile "$LINENO"; then : 11175 _EXT_CHECK=yes 11176else 11177 _EXT_CHECK=no 11178fi 11179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11180 CFLAGS="$SAVE_CFLAGS" 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 11182$as_echo_n "checking if RENDER is defined... " >&6; } 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11184$as_echo "$_EXT_CHECK" >&6; } 11185 if test "$_EXT_CHECK" != no; then 11186 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 11187 fi 11188 11189 11190 11191 SAVE_CFLAGS="$CFLAGS" 11192 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196#include "xorg-server.h" 11197#if !defined XV 11198#error XV not defined 11199#endif 11200 11201int 11202main () 11203{ 11204 11205 ; 11206 return 0; 11207} 11208_ACEOF 11209if ac_fn_c_try_compile "$LINENO"; then : 11210 _EXT_CHECK=yes 11211else 11212 _EXT_CHECK=no 11213fi 11214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11215 CFLAGS="$SAVE_CFLAGS" 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 11217$as_echo_n "checking if XV is defined... " >&6; } 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11219$as_echo "$_EXT_CHECK" >&6; } 11220 if test "$_EXT_CHECK" != no; then 11221 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 11222 fi 11223 11224 11225 11226 SAVE_CFLAGS="$CFLAGS" 11227 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229/* end confdefs.h. */ 11230 11231#include "xorg-server.h" 11232#if !defined DPMSExtension 11233#error DPMSExtension not defined 11234#endif 11235 11236int 11237main () 11238{ 11239 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244if ac_fn_c_try_compile "$LINENO"; then : 11245 _EXT_CHECK=yes 11246else 11247 _EXT_CHECK=no 11248fi 11249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11250 CFLAGS="$SAVE_CFLAGS" 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 11252$as_echo_n "checking if DPMSExtension is defined... " >&6; } 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11254$as_echo "$_EXT_CHECK" >&6; } 11255 if test "$_EXT_CHECK" != no; then 11256 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 11257 fi 11258 11259 11260# Obtain compiler/linker options for the driver dependencies 11261 11262pkg_failed=no 11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11264$as_echo_n "checking for XORG... " >&6; } 11265 11266if test -n "$XORG_CFLAGS"; then 11267 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11268 elif test -n "$PKG_CONFIG"; then 11269 if test -n "$PKG_CONFIG" && \ 11270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11271 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11272 ac_status=$? 11273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11274 test $ac_status = 0; }; then 11275 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11276else 11277 pkg_failed=yes 11278fi 11279 else 11280 pkg_failed=untried 11281fi 11282if test -n "$XORG_LIBS"; then 11283 pkg_cv_XORG_LIBS="$XORG_LIBS" 11284 elif test -n "$PKG_CONFIG"; then 11285 if test -n "$PKG_CONFIG" && \ 11286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11287 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11288 ac_status=$? 11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11290 test $ac_status = 0; }; then 11291 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11292else 11293 pkg_failed=yes 11294fi 11295 else 11296 pkg_failed=untried 11297fi 11298 11299 11300 11301if test $pkg_failed = yes; then 11302 11303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11304 _pkg_short_errors_supported=yes 11305else 11306 _pkg_short_errors_supported=no 11307fi 11308 if test $_pkg_short_errors_supported = yes; then 11309 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11310 else 11311 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11312 fi 11313 # Put the nasty error message in config.log where it belongs 11314 echo "$XORG_PKG_ERRORS" >&5 11315 11316 as_fn_error "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 11317 11318$XORG_PKG_ERRORS 11319 11320Consider adjusting the PKG_CONFIG_PATH environment variable if you 11321installed software in a non-standard prefix. 11322 11323Alternatively, you may set the environment variables XORG_CFLAGS 11324and XORG_LIBS to avoid the need to call pkg-config. 11325See the pkg-config man page for more details. 11326" "$LINENO" 5 11327elif test $pkg_failed = untried; then 11328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11330as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11331is in your PATH or set the PKG_CONFIG environment variable to the full 11332path to pkg-config. 11333 11334Alternatively, you may set the environment variables XORG_CFLAGS 11335and XORG_LIBS to avoid the need to call pkg-config. 11336See the pkg-config man page for more details. 11337 11338To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11339See \`config.log' for more details." "$LINENO" 5; } 11340else 11341 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11342 XORG_LIBS=$pkg_cv_XORG_LIBS 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11344$as_echo "yes" >&6; } 11345 : 11346fi 11347 11348# Checks for libraries. 11349SAVE_CPPFLAGS="$CPPFLAGS" 11350CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 11351ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 11352" 11353if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then : 11354 XSERVER_LIBPCIACCESS=yes 11355else 11356 XSERVER_LIBPCIACCESS=no 11357fi 11358 11359ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 11360if test "x$ac_cv_header_xf1bpp_h" = x""yes; then : 11361 11362$as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 11363 11364fi 11365 11366 11367ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 11368if test "x$ac_cv_header_xf4bpp_h" = x""yes; then : 11369 11370$as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 11371 11372fi 11373 11374 11375CPPFLAGS="$SAVE_CPPFLAGS" 11376 11377if test "x$XSERVER_LIBPCIACCESS" = xyes; then 11378 11379pkg_failed=no 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 11381$as_echo_n "checking for PCIACCESS... " >&6; } 11382 11383if test -n "$PCIACCESS_CFLAGS"; then 11384 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 11385 elif test -n "$PKG_CONFIG"; then 11386 if test -n "$PKG_CONFIG" && \ 11387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11388 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11389 ac_status=$? 11390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11391 test $ac_status = 0; }; then 11392 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 11393else 11394 pkg_failed=yes 11395fi 11396 else 11397 pkg_failed=untried 11398fi 11399if test -n "$PCIACCESS_LIBS"; then 11400 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 11401 elif test -n "$PKG_CONFIG"; then 11402 if test -n "$PKG_CONFIG" && \ 11403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11404 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11405 ac_status=$? 11406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11407 test $ac_status = 0; }; then 11408 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 11409else 11410 pkg_failed=yes 11411fi 11412 else 11413 pkg_failed=untried 11414fi 11415 11416 11417 11418if test $pkg_failed = yes; then 11419 11420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11421 _pkg_short_errors_supported=yes 11422else 11423 _pkg_short_errors_supported=no 11424fi 11425 if test $_pkg_short_errors_supported = yes; then 11426 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 11427 else 11428 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 11429 fi 11430 # Put the nasty error message in config.log where it belongs 11431 echo "$PCIACCESS_PKG_ERRORS" >&5 11432 11433 as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met: 11434 11435$PCIACCESS_PKG_ERRORS 11436 11437Consider adjusting the PKG_CONFIG_PATH environment variable if you 11438installed software in a non-standard prefix. 11439 11440Alternatively, you may set the environment variables PCIACCESS_CFLAGS 11441and PCIACCESS_LIBS to avoid the need to call pkg-config. 11442See the pkg-config man page for more details. 11443" "$LINENO" 5 11444elif test $pkg_failed = untried; then 11445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11447as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11448is in your PATH or set the PKG_CONFIG environment variable to the full 11449path to pkg-config. 11450 11451Alternatively, you may set the environment variables PCIACCESS_CFLAGS 11452and PCIACCESS_LIBS to avoid the need to call pkg-config. 11453See the pkg-config man page for more details. 11454 11455To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11456See \`config.log' for more details." "$LINENO" 5; } 11457else 11458 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 11459 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11461$as_echo "yes" >&6; } 11462 : 11463fi 11464 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 11465fi 11466 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 11467 XSERVER_LIBPCIACCESS_TRUE= 11468 XSERVER_LIBPCIACCESS_FALSE='#' 11469else 11470 XSERVER_LIBPCIACCESS_TRUE='#' 11471 XSERVER_LIBPCIACCESS_FALSE= 11472fi 11473 11474 11475save_CFLAGS="$CFLAGS" 11476CFLAGS="$XORG_CFLAGS" 11477ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 11478" 11479if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = x""yes; then : 11480 11481$as_echo "#define HAVE_ISA 1" >>confdefs.h 11482 11483fi 11484 11485CFLAGS="$save_CFLAGS" 11486 11487 11488# Checks for functions (often defined as inlines in compiler.h) 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inb" >&5 11490$as_echo_n "checking for inb... " >&6; } 11491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11492/* end confdefs.h. */ 11493 11494#include "util/AsmMacros.h" 11495 11496int main() { 11497 int x = inb(0); 11498 return x; 11499} 11500 11501_ACEOF 11502if ac_fn_c_try_link "$LINENO"; then : 11503 HAVE_INB=yes 11504else 11505 HAVE_INB=no 11506fi 11507rm -f core conftest.err conftest.$ac_objext \ 11508 conftest$ac_exeext conftest.$ac_ext 11509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5 11510$as_echo "$HAVE_INB" >&6; } 11511 if test x$HAVE_INB = xyes; then 11512 BUILD_UTILS_TRUE= 11513 BUILD_UTILS_FALSE='#' 11514else 11515 BUILD_UTILS_TRUE='#' 11516 BUILD_UTILS_FALSE= 11517fi 11518 11519 11520 11521 11522DRIVER_NAME=chips 11523 11524 11525ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 11526 11527cat >confcache <<\_ACEOF 11528# This file is a shell script that caches the results of configure 11529# tests run on this system so they can be shared between configure 11530# scripts and configure runs, see configure's option --config-cache. 11531# It is not useful on other systems. If it contains results you don't 11532# want to keep, you may remove or edit it. 11533# 11534# config.status only pays attention to the cache file if you give it 11535# the --recheck option to rerun configure. 11536# 11537# `ac_cv_env_foo' variables (set or unset) will be overridden when 11538# loading this file, other *unset* `ac_cv_foo' will be assigned the 11539# following values. 11540 11541_ACEOF 11542 11543# The following way of writing the cache mishandles newlines in values, 11544# but we know of no workaround that is simple, portable, and efficient. 11545# So, we kill variables containing newlines. 11546# Ultrix sh set writes to stderr and can't be redirected directly, 11547# and sets the high bit in the cache file unless we assign to the vars. 11548( 11549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11550 eval ac_val=\$$ac_var 11551 case $ac_val in #( 11552 *${as_nl}*) 11553 case $ac_var in #( 11554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11555$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11556 esac 11557 case $ac_var in #( 11558 _ | IFS | as_nl) ;; #( 11559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11560 *) { eval $ac_var=; unset $ac_var;} ;; 11561 esac ;; 11562 esac 11563 done 11564 11565 (set) 2>&1 | 11566 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11567 *${as_nl}ac_space=\ *) 11568 # `set' does not quote correctly, so add quotes: double-quote 11569 # substitution turns \\\\ into \\, and sed turns \\ into \. 11570 sed -n \ 11571 "s/'/'\\\\''/g; 11572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11573 ;; #( 11574 *) 11575 # `set' quotes correctly as required by POSIX, so do not add quotes. 11576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11577 ;; 11578 esac | 11579 sort 11580) | 11581 sed ' 11582 /^ac_cv_env_/b end 11583 t clear 11584 :clear 11585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11586 t end 11587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11588 :end' >>confcache 11589if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11590 if test -w "$cache_file"; then 11591 test "x$cache_file" != "x/dev/null" && 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11593$as_echo "$as_me: updating cache $cache_file" >&6;} 11594 cat confcache >$cache_file 11595 else 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11597$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11598 fi 11599fi 11600rm -f confcache 11601 11602test "x$prefix" = xNONE && prefix=$ac_default_prefix 11603# Let make expand exec_prefix. 11604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11605 11606DEFS=-DHAVE_CONFIG_H 11607 11608ac_libobjs= 11609ac_ltlibobjs= 11610for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11611 # 1. Remove the extension, and $U if already installed. 11612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11613 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11615 # will be set to the directory where LIBOBJS objects are built. 11616 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11617 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11618done 11619LIBOBJS=$ac_libobjs 11620 11621LTLIBOBJS=$ac_ltlibobjs 11622 11623 11624 if test -n "$EXEEXT"; then 11625 am__EXEEXT_TRUE= 11626 am__EXEEXT_FALSE='#' 11627else 11628 am__EXEEXT_TRUE='#' 11629 am__EXEEXT_FALSE= 11630fi 11631 11632if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11633 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11634Usually this means the macro was only invoked conditionally." "$LINENO" 5 11635fi 11636if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11637 as_fn_error "conditional \"AMDEP\" was never defined. 11638Usually this means the macro was only invoked conditionally." "$LINENO" 5 11639fi 11640if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11641 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11642Usually this means the macro was only invoked conditionally." "$LINENO" 5 11643fi 11644if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 11645 as_fn_error "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 11646Usually this means the macro was only invoked conditionally." "$LINENO" 5 11647fi 11648if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then 11649 as_fn_error "conditional \"BUILD_UTILS\" was never defined. 11650Usually this means the macro was only invoked conditionally." "$LINENO" 5 11651fi 11652 11653: ${CONFIG_STATUS=./config.status} 11654ac_write_fail=0 11655ac_clean_files_save=$ac_clean_files 11656ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11657{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11658$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11659as_write_fail=0 11660cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11661#! $SHELL 11662# Generated by $as_me. 11663# Run this file to recreate the current configuration. 11664# Compiler output produced by configure, useful for debugging 11665# configure, is in config.log if it exists. 11666 11667debug=false 11668ac_cs_recheck=false 11669ac_cs_silent=false 11670 11671SHELL=\${CONFIG_SHELL-$SHELL} 11672export SHELL 11673_ASEOF 11674cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11675## -------------------- ## 11676## M4sh Initialization. ## 11677## -------------------- ## 11678 11679# Be more Bourne compatible 11680DUALCASE=1; export DUALCASE # for MKS sh 11681if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11682 emulate sh 11683 NULLCMD=: 11684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11685 # is contrary to our usage. Disable this feature. 11686 alias -g '${1+"$@"}'='"$@"' 11687 setopt NO_GLOB_SUBST 11688else 11689 case `(set -o) 2>/dev/null` in #( 11690 *posix*) : 11691 set -o posix ;; #( 11692 *) : 11693 ;; 11694esac 11695fi 11696 11697 11698as_nl=' 11699' 11700export as_nl 11701# Printing a long string crashes Solaris 7 /usr/bin/printf. 11702as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11703as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11704as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11705# Prefer a ksh shell builtin over an external printf program on Solaris, 11706# but without wasting forks for bash or zsh. 11707if test -z "$BASH_VERSION$ZSH_VERSION" \ 11708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11709 as_echo='print -r --' 11710 as_echo_n='print -rn --' 11711elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11712 as_echo='printf %s\n' 11713 as_echo_n='printf %s' 11714else 11715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11717 as_echo_n='/usr/ucb/echo -n' 11718 else 11719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11720 as_echo_n_body='eval 11721 arg=$1; 11722 case $arg in #( 11723 *"$as_nl"*) 11724 expr "X$arg" : "X\\(.*\\)$as_nl"; 11725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11726 esac; 11727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11728 ' 11729 export as_echo_n_body 11730 as_echo_n='sh -c $as_echo_n_body as_echo' 11731 fi 11732 export as_echo_body 11733 as_echo='sh -c $as_echo_body as_echo' 11734fi 11735 11736# The user is always right. 11737if test "${PATH_SEPARATOR+set}" != set; then 11738 PATH_SEPARATOR=: 11739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11741 PATH_SEPARATOR=';' 11742 } 11743fi 11744 11745 11746# IFS 11747# We need space, tab and new line, in precisely that order. Quoting is 11748# there to prevent editors from complaining about space-tab. 11749# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11750# splitting by setting IFS to empty value.) 11751IFS=" "" $as_nl" 11752 11753# Find who we are. Look in the path if we contain no directory separator. 11754case $0 in #(( 11755 *[\\/]* ) as_myself=$0 ;; 11756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11757for as_dir in $PATH 11758do 11759 IFS=$as_save_IFS 11760 test -z "$as_dir" && as_dir=. 11761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11762 done 11763IFS=$as_save_IFS 11764 11765 ;; 11766esac 11767# We did not find ourselves, most probably we were run as `sh COMMAND' 11768# in which case we are not to be found in the path. 11769if test "x$as_myself" = x; then 11770 as_myself=$0 11771fi 11772if test ! -f "$as_myself"; then 11773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11774 exit 1 11775fi 11776 11777# Unset variables that we do not need and which cause bugs (e.g. in 11778# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11779# suppresses any "Segmentation fault" message there. '((' could 11780# trigger a bug in pdksh 5.2.14. 11781for as_var in BASH_ENV ENV MAIL MAILPATH 11782do eval test x\${$as_var+set} = xset \ 11783 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11784done 11785PS1='$ ' 11786PS2='> ' 11787PS4='+ ' 11788 11789# NLS nuisances. 11790LC_ALL=C 11791export LC_ALL 11792LANGUAGE=C 11793export LANGUAGE 11794 11795# CDPATH. 11796(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11797 11798 11799# as_fn_error ERROR [LINENO LOG_FD] 11800# --------------------------------- 11801# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11802# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11803# script with status $?, using 1 if that was 0. 11804as_fn_error () 11805{ 11806 as_status=$?; test $as_status -eq 0 && as_status=1 11807 if test "$3"; then 11808 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11810 fi 11811 $as_echo "$as_me: error: $1" >&2 11812 as_fn_exit $as_status 11813} # as_fn_error 11814 11815 11816# as_fn_set_status STATUS 11817# ----------------------- 11818# Set $? to STATUS, without forking. 11819as_fn_set_status () 11820{ 11821 return $1 11822} # as_fn_set_status 11823 11824# as_fn_exit STATUS 11825# ----------------- 11826# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11827as_fn_exit () 11828{ 11829 set +e 11830 as_fn_set_status $1 11831 exit $1 11832} # as_fn_exit 11833 11834# as_fn_unset VAR 11835# --------------- 11836# Portably unset VAR. 11837as_fn_unset () 11838{ 11839 { eval $1=; unset $1;} 11840} 11841as_unset=as_fn_unset 11842# as_fn_append VAR VALUE 11843# ---------------------- 11844# Append the text in VALUE to the end of the definition contained in VAR. Take 11845# advantage of any shell optimizations that allow amortized linear growth over 11846# repeated appends, instead of the typical quadratic growth present in naive 11847# implementations. 11848if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11849 eval 'as_fn_append () 11850 { 11851 eval $1+=\$2 11852 }' 11853else 11854 as_fn_append () 11855 { 11856 eval $1=\$$1\$2 11857 } 11858fi # as_fn_append 11859 11860# as_fn_arith ARG... 11861# ------------------ 11862# Perform arithmetic evaluation on the ARGs, and store the result in the 11863# global $as_val. Take advantage of shells that can avoid forks. The arguments 11864# must be portable across $(()) and expr. 11865if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11866 eval 'as_fn_arith () 11867 { 11868 as_val=$(( $* )) 11869 }' 11870else 11871 as_fn_arith () 11872 { 11873 as_val=`expr "$@" || test $? -eq 1` 11874 } 11875fi # as_fn_arith 11876 11877 11878if expr a : '\(a\)' >/dev/null 2>&1 && 11879 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11880 as_expr=expr 11881else 11882 as_expr=false 11883fi 11884 11885if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11886 as_basename=basename 11887else 11888 as_basename=false 11889fi 11890 11891if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11892 as_dirname=dirname 11893else 11894 as_dirname=false 11895fi 11896 11897as_me=`$as_basename -- "$0" || 11898$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11899 X"$0" : 'X\(//\)$' \| \ 11900 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11901$as_echo X/"$0" | 11902 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11903 s//\1/ 11904 q 11905 } 11906 /^X\/\(\/\/\)$/{ 11907 s//\1/ 11908 q 11909 } 11910 /^X\/\(\/\).*/{ 11911 s//\1/ 11912 q 11913 } 11914 s/.*/./; q'` 11915 11916# Avoid depending upon Character Ranges. 11917as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11919as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11920as_cr_digits='0123456789' 11921as_cr_alnum=$as_cr_Letters$as_cr_digits 11922 11923ECHO_C= ECHO_N= ECHO_T= 11924case `echo -n x` in #((((( 11925-n*) 11926 case `echo 'xy\c'` in 11927 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11928 xy) ECHO_C='\c';; 11929 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11930 ECHO_T=' ';; 11931 esac;; 11932*) 11933 ECHO_N='-n';; 11934esac 11935 11936rm -f conf$$ conf$$.exe conf$$.file 11937if test -d conf$$.dir; then 11938 rm -f conf$$.dir/conf$$.file 11939else 11940 rm -f conf$$.dir 11941 mkdir conf$$.dir 2>/dev/null 11942fi 11943if (echo >conf$$.file) 2>/dev/null; then 11944 if ln -s conf$$.file conf$$ 2>/dev/null; then 11945 as_ln_s='ln -s' 11946 # ... but there are two gotchas: 11947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11949 # In both cases, we have to default to `cp -p'. 11950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11951 as_ln_s='cp -p' 11952 elif ln conf$$.file conf$$ 2>/dev/null; then 11953 as_ln_s=ln 11954 else 11955 as_ln_s='cp -p' 11956 fi 11957else 11958 as_ln_s='cp -p' 11959fi 11960rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11961rmdir conf$$.dir 2>/dev/null 11962 11963 11964# as_fn_mkdir_p 11965# ------------- 11966# Create "$as_dir" as a directory, including parents if necessary. 11967as_fn_mkdir_p () 11968{ 11969 11970 case $as_dir in #( 11971 -*) as_dir=./$as_dir;; 11972 esac 11973 test -d "$as_dir" || eval $as_mkdir_p || { 11974 as_dirs= 11975 while :; do 11976 case $as_dir in #( 11977 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11978 *) as_qdir=$as_dir;; 11979 esac 11980 as_dirs="'$as_qdir' $as_dirs" 11981 as_dir=`$as_dirname -- "$as_dir" || 11982$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11983 X"$as_dir" : 'X\(//\)[^/]' \| \ 11984 X"$as_dir" : 'X\(//\)$' \| \ 11985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11986$as_echo X"$as_dir" | 11987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11988 s//\1/ 11989 q 11990 } 11991 /^X\(\/\/\)[^/].*/{ 11992 s//\1/ 11993 q 11994 } 11995 /^X\(\/\/\)$/{ 11996 s//\1/ 11997 q 11998 } 11999 /^X\(\/\).*/{ 12000 s//\1/ 12001 q 12002 } 12003 s/.*/./; q'` 12004 test -d "$as_dir" && break 12005 done 12006 test -z "$as_dirs" || eval "mkdir $as_dirs" 12007 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12008 12009 12010} # as_fn_mkdir_p 12011if mkdir -p . 2>/dev/null; then 12012 as_mkdir_p='mkdir -p "$as_dir"' 12013else 12014 test -d ./-p && rmdir ./-p 12015 as_mkdir_p=false 12016fi 12017 12018if test -x / >/dev/null 2>&1; then 12019 as_test_x='test -x' 12020else 12021 if ls -dL / >/dev/null 2>&1; then 12022 as_ls_L_option=L 12023 else 12024 as_ls_L_option= 12025 fi 12026 as_test_x=' 12027 eval sh -c '\'' 12028 if test -d "$1"; then 12029 test -d "$1/."; 12030 else 12031 case $1 in #( 12032 -*)set "./$1";; 12033 esac; 12034 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12035 ???[sx]*):;;*)false;;esac;fi 12036 '\'' sh 12037 ' 12038fi 12039as_executable_p=$as_test_x 12040 12041# Sed expression to map a string onto a valid CPP name. 12042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12043 12044# Sed expression to map a string onto a valid variable name. 12045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12046 12047 12048exec 6>&1 12049## ----------------------------------- ## 12050## Main body of $CONFIG_STATUS script. ## 12051## ----------------------------------- ## 12052_ASEOF 12053test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12054 12055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12056# Save the log message, to keep $0 and so on meaningful, and to 12057# report actual input values of CONFIG_FILES etc. instead of their 12058# values after options handling. 12059ac_log=" 12060This file was extended by xf86-video-chips $as_me 1.2.3, which was 12061generated by GNU Autoconf 2.65. Invocation command line was 12062 12063 CONFIG_FILES = $CONFIG_FILES 12064 CONFIG_HEADERS = $CONFIG_HEADERS 12065 CONFIG_LINKS = $CONFIG_LINKS 12066 CONFIG_COMMANDS = $CONFIG_COMMANDS 12067 $ $0 $@ 12068 12069on `(hostname || uname -n) 2>/dev/null | sed 1q` 12070" 12071 12072_ACEOF 12073 12074case $ac_config_files in *" 12075"*) set x $ac_config_files; shift; ac_config_files=$*;; 12076esac 12077 12078case $ac_config_headers in *" 12079"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12080esac 12081 12082 12083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12084# Files that config.status was made for. 12085config_files="$ac_config_files" 12086config_headers="$ac_config_headers" 12087config_commands="$ac_config_commands" 12088 12089_ACEOF 12090 12091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12092ac_cs_usage="\ 12093\`$as_me' instantiates files and other configuration actions 12094from templates according to the current configuration. Unless the files 12095and actions are specified as TAGs, all are instantiated by default. 12096 12097Usage: $0 [OPTION]... [TAG]... 12098 12099 -h, --help print this help, then exit 12100 -V, --version print version number and configuration settings, then exit 12101 --config print configuration, then exit 12102 -q, --quiet, --silent 12103 do not print progress messages 12104 -d, --debug don't remove temporary files 12105 --recheck update $as_me by reconfiguring in the same conditions 12106 --file=FILE[:TEMPLATE] 12107 instantiate the configuration file FILE 12108 --header=FILE[:TEMPLATE] 12109 instantiate the configuration header FILE 12110 12111Configuration files: 12112$config_files 12113 12114Configuration headers: 12115$config_headers 12116 12117Configuration commands: 12118$config_commands 12119 12120Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12121 12122_ACEOF 12123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12124ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12125ac_cs_version="\\ 12126xf86-video-chips config.status 1.2.3 12127configured by $0, generated by GNU Autoconf 2.65, 12128 with options \\"\$ac_cs_config\\" 12129 12130Copyright (C) 2009 Free Software Foundation, Inc. 12131This config.status script is free software; the Free Software Foundation 12132gives unlimited permission to copy, distribute and modify it." 12133 12134ac_pwd='$ac_pwd' 12135srcdir='$srcdir' 12136INSTALL='$INSTALL' 12137MKDIR_P='$MKDIR_P' 12138AWK='$AWK' 12139test -n "\$AWK" || AWK=awk 12140_ACEOF 12141 12142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12143# The default lists apply if the user does not specify any file. 12144ac_need_defaults=: 12145while test $# != 0 12146do 12147 case $1 in 12148 --*=*) 12149 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12150 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12151 ac_shift=: 12152 ;; 12153 *) 12154 ac_option=$1 12155 ac_optarg=$2 12156 ac_shift=shift 12157 ;; 12158 esac 12159 12160 case $ac_option in 12161 # Handling of the options. 12162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12163 ac_cs_recheck=: ;; 12164 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12165 $as_echo "$ac_cs_version"; exit ;; 12166 --config | --confi | --conf | --con | --co | --c ) 12167 $as_echo "$ac_cs_config"; exit ;; 12168 --debug | --debu | --deb | --de | --d | -d ) 12169 debug=: ;; 12170 --file | --fil | --fi | --f ) 12171 $ac_shift 12172 case $ac_optarg in 12173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12174 esac 12175 as_fn_append CONFIG_FILES " '$ac_optarg'" 12176 ac_need_defaults=false;; 12177 --header | --heade | --head | --hea ) 12178 $ac_shift 12179 case $ac_optarg in 12180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12181 esac 12182 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12183 ac_need_defaults=false;; 12184 --he | --h) 12185 # Conflict between --help and --header 12186 as_fn_error "ambiguous option: \`$1' 12187Try \`$0 --help' for more information.";; 12188 --help | --hel | -h ) 12189 $as_echo "$ac_cs_usage"; exit ;; 12190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12191 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12192 ac_cs_silent=: ;; 12193 12194 # This is an error. 12195 -*) as_fn_error "unrecognized option: \`$1' 12196Try \`$0 --help' for more information." ;; 12197 12198 *) as_fn_append ac_config_targets " $1" 12199 ac_need_defaults=false ;; 12200 12201 esac 12202 shift 12203done 12204 12205ac_configure_extra_args= 12206 12207if $ac_cs_silent; then 12208 exec 6>/dev/null 12209 ac_configure_extra_args="$ac_configure_extra_args --silent" 12210fi 12211 12212_ACEOF 12213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12214if \$ac_cs_recheck; then 12215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12216 shift 12217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12218 CONFIG_SHELL='$SHELL' 12219 export CONFIG_SHELL 12220 exec "\$@" 12221fi 12222 12223_ACEOF 12224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12225exec 5>>config.log 12226{ 12227 echo 12228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12229## Running $as_me. ## 12230_ASBOX 12231 $as_echo "$ac_log" 12232} >&5 12233 12234_ACEOF 12235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12236# 12237# INIT-COMMANDS 12238# 12239AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12240 12241 12242# The HP-UX ksh and POSIX shell print the target directory to stdout 12243# if CDPATH is set. 12244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12245 12246sed_quote_subst='$sed_quote_subst' 12247double_quote_subst='$double_quote_subst' 12248delay_variable_subst='$delay_variable_subst' 12249enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12250macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12251macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12252enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12253pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12254enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12255host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12256host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12257host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12258build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12259build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12260build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12261SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12262Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12263GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12264EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12265FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12266LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12267NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12268LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12269max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12270ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12271exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12272lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12273lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12274lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12275reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12276reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12277OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12278deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12279file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12280AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12281AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12282STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12283RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12284old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12285old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12286old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12287CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12288CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12289compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12290GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12291lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12292lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12293lt_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"`' 12294lt_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"`' 12295objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12296SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12297ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12298MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12299lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12300lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12301lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12302lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12303lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12304need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12305DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12306NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12307LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12308OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12309OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12310libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12311shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12312extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12313archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12314enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12315export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12316whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12317compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12318old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12319old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12320archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12321archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12322module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12323module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12324with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12325allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12326no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12327hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12328hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12329hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12330hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12331hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12332hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12333hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12334hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12335inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12336link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12337fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12338always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12339export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12340exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12341include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12342prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12343file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12344variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12345need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12346need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12347version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12348runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12349shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12350shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12351libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12352library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12353soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12354postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12355postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12356finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12357finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12358hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12359sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12360sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12361hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12362enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12363enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12364enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12365old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12366striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12367 12368LTCC='$LTCC' 12369LTCFLAGS='$LTCFLAGS' 12370compiler='$compiler_DEFAULT' 12371 12372# Quote evaled strings. 12373for var in SED \ 12374GREP \ 12375EGREP \ 12376FGREP \ 12377LD \ 12378NM \ 12379LN_S \ 12380lt_SP2NL \ 12381lt_NL2SP \ 12382reload_flag \ 12383OBJDUMP \ 12384deplibs_check_method \ 12385file_magic_cmd \ 12386AR \ 12387AR_FLAGS \ 12388STRIP \ 12389RANLIB \ 12390CC \ 12391CFLAGS \ 12392compiler \ 12393lt_cv_sys_global_symbol_pipe \ 12394lt_cv_sys_global_symbol_to_cdecl \ 12395lt_cv_sys_global_symbol_to_c_name_address \ 12396lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12397SHELL \ 12398ECHO \ 12399lt_prog_compiler_no_builtin_flag \ 12400lt_prog_compiler_wl \ 12401lt_prog_compiler_pic \ 12402lt_prog_compiler_static \ 12403lt_cv_prog_compiler_c_o \ 12404need_locks \ 12405DSYMUTIL \ 12406NMEDIT \ 12407LIPO \ 12408OTOOL \ 12409OTOOL64 \ 12410shrext_cmds \ 12411export_dynamic_flag_spec \ 12412whole_archive_flag_spec \ 12413compiler_needs_object \ 12414with_gnu_ld \ 12415allow_undefined_flag \ 12416no_undefined_flag \ 12417hardcode_libdir_flag_spec \ 12418hardcode_libdir_flag_spec_ld \ 12419hardcode_libdir_separator \ 12420fix_srcfile_path \ 12421exclude_expsyms \ 12422include_expsyms \ 12423file_list_spec \ 12424variables_saved_for_relink \ 12425libname_spec \ 12426library_names_spec \ 12427soname_spec \ 12428finish_eval \ 12429old_striplib \ 12430striplib; do 12431 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12432 *[\\\\\\\`\\"\\\$]*) 12433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12434 ;; 12435 *) 12436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12437 ;; 12438 esac 12439done 12440 12441# Double-quote double-evaled strings. 12442for var in reload_cmds \ 12443old_postinstall_cmds \ 12444old_postuninstall_cmds \ 12445old_archive_cmds \ 12446extract_expsyms_cmds \ 12447old_archive_from_new_cmds \ 12448old_archive_from_expsyms_cmds \ 12449archive_cmds \ 12450archive_expsym_cmds \ 12451module_cmds \ 12452module_expsym_cmds \ 12453export_symbols_cmds \ 12454prelink_cmds \ 12455postinstall_cmds \ 12456postuninstall_cmds \ 12457finish_cmds \ 12458sys_lib_search_path_spec \ 12459sys_lib_dlsearch_path_spec; do 12460 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12461 *[\\\\\\\`\\"\\\$]*) 12462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12463 ;; 12464 *) 12465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12466 ;; 12467 esac 12468done 12469 12470# Fix-up fallback echo if it was mangled by the above quoting rules. 12471case \$lt_ECHO in 12472*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12473 ;; 12474esac 12475 12476ac_aux_dir='$ac_aux_dir' 12477xsi_shell='$xsi_shell' 12478lt_shell_append='$lt_shell_append' 12479 12480# See if we are running on zsh, and set the options which allow our 12481# commands through without removal of \ escapes INIT. 12482if test -n "\${ZSH_VERSION+set}" ; then 12483 setopt NO_GLOB_SUBST 12484fi 12485 12486 12487 PACKAGE='$PACKAGE' 12488 VERSION='$VERSION' 12489 TIMESTAMP='$TIMESTAMP' 12490 RM='$RM' 12491 ofile='$ofile' 12492 12493 12494 12495 12496_ACEOF 12497 12498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12499 12500# Handling of arguments. 12501for ac_config_target in $ac_config_targets 12502do 12503 case $ac_config_target in 12504 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12507 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12508 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12509 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12510 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 12511 12512 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12513 esac 12514done 12515 12516 12517# If the user did not use the arguments to specify the items to instantiate, 12518# then the envvar interface is used. Set only those that are not. 12519# We use the long form for the default assignment because of an extremely 12520# bizarre bug on SunOS 4.1.3. 12521if $ac_need_defaults; then 12522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12524 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12525fi 12526 12527# Have a temporary directory for convenience. Make it in the build tree 12528# simply because there is no reason against having it here, and in addition, 12529# creating and moving files from /tmp can sometimes cause problems. 12530# Hook for its removal unless debugging. 12531# Note that there is a small window in which the directory will not be cleaned: 12532# after its creation but before its name has been assigned to `$tmp'. 12533$debug || 12534{ 12535 tmp= 12536 trap 'exit_status=$? 12537 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12538' 0 12539 trap 'as_fn_exit 1' 1 2 13 15 12540} 12541# Create a (secure) tmp directory for tmp files. 12542 12543{ 12544 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12545 test -n "$tmp" && test -d "$tmp" 12546} || 12547{ 12548 tmp=./conf$$-$RANDOM 12549 (umask 077 && mkdir "$tmp") 12550} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12551 12552# Set up the scripts for CONFIG_FILES section. 12553# No need to generate them if there are no CONFIG_FILES. 12554# This happens for instance with `./config.status config.h'. 12555if test -n "$CONFIG_FILES"; then 12556 12557 12558ac_cr=`echo X | tr X '\015'` 12559# On cygwin, bash can eat \r inside `` if the user requested igncr. 12560# But we know of no other shell where ac_cr would be empty at this 12561# point, so we can use a bashism as a fallback. 12562if test "x$ac_cr" = x; then 12563 eval ac_cr=\$\'\\r\' 12564fi 12565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12567 ac_cs_awk_cr='\r' 12568else 12569 ac_cs_awk_cr=$ac_cr 12570fi 12571 12572echo 'BEGIN {' >"$tmp/subs1.awk" && 12573_ACEOF 12574 12575 12576{ 12577 echo "cat >conf$$subs.awk <<_ACEOF" && 12578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12579 echo "_ACEOF" 12580} >conf$$subs.sh || 12581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12582ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12583ac_delim='%!_!# ' 12584for ac_last_try in false false false false false :; do 12585 . ./conf$$subs.sh || 12586 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12587 12588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12589 if test $ac_delim_n = $ac_delim_num; then 12590 break 12591 elif $ac_last_try; then 12592 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12593 else 12594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12595 fi 12596done 12597rm -f conf$$subs.sh 12598 12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12600cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12601_ACEOF 12602sed -n ' 12603h 12604s/^/S["/; s/!.*/"]=/ 12605p 12606g 12607s/^[^!]*!// 12608:repl 12609t repl 12610s/'"$ac_delim"'$// 12611t delim 12612:nl 12613h 12614s/\(.\{148\}\)..*/\1/ 12615t more1 12616s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12617p 12618n 12619b repl 12620:more1 12621s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12622p 12623g 12624s/.\{148\}// 12625t nl 12626:delim 12627h 12628s/\(.\{148\}\)..*/\1/ 12629t more2 12630s/["\\]/\\&/g; s/^/"/; s/$/"/ 12631p 12632b 12633:more2 12634s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12635p 12636g 12637s/.\{148\}// 12638t delim 12639' <conf$$subs.awk | sed ' 12640/^[^""]/{ 12641 N 12642 s/\n// 12643} 12644' >>$CONFIG_STATUS || ac_write_fail=1 12645rm -f conf$$subs.awk 12646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12647_ACAWK 12648cat >>"\$tmp/subs1.awk" <<_ACAWK && 12649 for (key in S) S_is_set[key] = 1 12650 FS = "" 12651 12652} 12653{ 12654 line = $ 0 12655 nfields = split(line, field, "@") 12656 substed = 0 12657 len = length(field[1]) 12658 for (i = 2; i < nfields; i++) { 12659 key = field[i] 12660 keylen = length(key) 12661 if (S_is_set[key]) { 12662 value = S[key] 12663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12664 len += length(value) + length(field[++i]) 12665 substed = 1 12666 } else 12667 len += 1 + keylen 12668 } 12669 12670 print line 12671} 12672 12673_ACAWK 12674_ACEOF 12675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12676if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12678else 12679 cat 12680fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12681 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12682_ACEOF 12683 12684# VPATH may cause trouble with some makes, so we remove $(srcdir), 12685# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12686# trailing colons and then remove the whole line if VPATH becomes empty 12687# (actually we leave an empty line to preserve line numbers). 12688if test "x$srcdir" = x.; then 12689 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12690s/:*\$(srcdir):*/:/ 12691s/:*\${srcdir}:*/:/ 12692s/:*@srcdir@:*/:/ 12693s/^\([^=]*=[ ]*\):*/\1/ 12694s/:*$// 12695s/^[^=]*=[ ]*$// 12696}' 12697fi 12698 12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12700fi # test -n "$CONFIG_FILES" 12701 12702# Set up the scripts for CONFIG_HEADERS section. 12703# No need to generate them if there are no CONFIG_HEADERS. 12704# This happens for instance with `./config.status Makefile'. 12705if test -n "$CONFIG_HEADERS"; then 12706cat >"$tmp/defines.awk" <<\_ACAWK || 12707BEGIN { 12708_ACEOF 12709 12710# Transform confdefs.h into an awk script `defines.awk', embedded as 12711# here-document in config.status, that substitutes the proper values into 12712# config.h.in to produce config.h. 12713 12714# Create a delimiter string that does not exist in confdefs.h, to ease 12715# handling of long lines. 12716ac_delim='%!_!# ' 12717for ac_last_try in false false :; do 12718 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12719 if test -z "$ac_t"; then 12720 break 12721 elif $ac_last_try; then 12722 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12723 else 12724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12725 fi 12726done 12727 12728# For the awk script, D is an array of macro values keyed by name, 12729# likewise P contains macro parameters if any. Preserve backslash 12730# newline sequences. 12731 12732ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12733sed -n ' 12734s/.\{148\}/&'"$ac_delim"'/g 12735t rset 12736:rset 12737s/^[ ]*#[ ]*define[ ][ ]*/ / 12738t def 12739d 12740:def 12741s/\\$// 12742t bsnl 12743s/["\\]/\\&/g 12744s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12745D["\1"]=" \3"/p 12746s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12747d 12748:bsnl 12749s/["\\]/\\&/g 12750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12751D["\1"]=" \3\\\\\\n"\\/p 12752t cont 12753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12754t cont 12755d 12756:cont 12757n 12758s/.\{148\}/&'"$ac_delim"'/g 12759t clear 12760:clear 12761s/\\$// 12762t bsnlc 12763s/["\\]/\\&/g; s/^/"/; s/$/"/p 12764d 12765:bsnlc 12766s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12767b cont 12768' <confdefs.h | sed ' 12769s/'"$ac_delim"'/"\\\ 12770"/g' >>$CONFIG_STATUS || ac_write_fail=1 12771 12772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12773 for (key in D) D_is_set[key] = 1 12774 FS = "" 12775} 12776/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12777 line = \$ 0 12778 split(line, arg, " ") 12779 if (arg[1] == "#") { 12780 defundef = arg[2] 12781 mac1 = arg[3] 12782 } else { 12783 defundef = substr(arg[1], 2) 12784 mac1 = arg[2] 12785 } 12786 split(mac1, mac2, "(") #) 12787 macro = mac2[1] 12788 prefix = substr(line, 1, index(line, defundef) - 1) 12789 if (D_is_set[macro]) { 12790 # Preserve the white space surrounding the "#". 12791 print prefix "define", macro P[macro] D[macro] 12792 next 12793 } else { 12794 # Replace #undef with comments. This is necessary, for example, 12795 # in the case of _POSIX_SOURCE, which is predefined and required 12796 # on some systems where configure will not decide to define it. 12797 if (defundef == "undef") { 12798 print "/*", prefix defundef, macro, "*/" 12799 next 12800 } 12801 } 12802} 12803{ print } 12804_ACAWK 12805_ACEOF 12806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12807 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12808fi # test -n "$CONFIG_HEADERS" 12809 12810 12811eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12812shift 12813for ac_tag 12814do 12815 case $ac_tag in 12816 :[FHLC]) ac_mode=$ac_tag; continue;; 12817 esac 12818 case $ac_mode$ac_tag in 12819 :[FHL]*:*);; 12820 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12821 :[FH]-) ac_tag=-:-;; 12822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12823 esac 12824 ac_save_IFS=$IFS 12825 IFS=: 12826 set x $ac_tag 12827 IFS=$ac_save_IFS 12828 shift 12829 ac_file=$1 12830 shift 12831 12832 case $ac_mode in 12833 :L) ac_source=$1;; 12834 :[FH]) 12835 ac_file_inputs= 12836 for ac_f 12837 do 12838 case $ac_f in 12839 -) ac_f="$tmp/stdin";; 12840 *) # Look for the file first in the build tree, then in the source tree 12841 # (if the path is not absolute). The absolute path cannot be DOS-style, 12842 # because $ac_f cannot contain `:'. 12843 test -f "$ac_f" || 12844 case $ac_f in 12845 [\\/$]*) false;; 12846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12847 esac || 12848 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12849 esac 12850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12851 as_fn_append ac_file_inputs " '$ac_f'" 12852 done 12853 12854 # Let's still pretend it is `configure' which instantiates (i.e., don't 12855 # use $as_me), people would be surprised to read: 12856 # /* config.h. Generated by config.status. */ 12857 configure_input='Generated from '` 12858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12859 `' by configure.' 12860 if test x"$ac_file" != x-; then 12861 configure_input="$ac_file. $configure_input" 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12863$as_echo "$as_me: creating $ac_file" >&6;} 12864 fi 12865 # Neutralize special characters interpreted by sed in replacement strings. 12866 case $configure_input in #( 12867 *\&* | *\|* | *\\* ) 12868 ac_sed_conf_input=`$as_echo "$configure_input" | 12869 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12870 *) ac_sed_conf_input=$configure_input;; 12871 esac 12872 12873 case $ac_tag in 12874 *:-:* | *:-) cat >"$tmp/stdin" \ 12875 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12876 esac 12877 ;; 12878 esac 12879 12880 ac_dir=`$as_dirname -- "$ac_file" || 12881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12882 X"$ac_file" : 'X\(//\)[^/]' \| \ 12883 X"$ac_file" : 'X\(//\)$' \| \ 12884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12885$as_echo X"$ac_file" | 12886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12887 s//\1/ 12888 q 12889 } 12890 /^X\(\/\/\)[^/].*/{ 12891 s//\1/ 12892 q 12893 } 12894 /^X\(\/\/\)$/{ 12895 s//\1/ 12896 q 12897 } 12898 /^X\(\/\).*/{ 12899 s//\1/ 12900 q 12901 } 12902 s/.*/./; q'` 12903 as_dir="$ac_dir"; as_fn_mkdir_p 12904 ac_builddir=. 12905 12906case "$ac_dir" in 12907.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12908*) 12909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12910 # A ".." for each directory in $ac_dir_suffix. 12911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12912 case $ac_top_builddir_sub in 12913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12915 esac ;; 12916esac 12917ac_abs_top_builddir=$ac_pwd 12918ac_abs_builddir=$ac_pwd$ac_dir_suffix 12919# for backward compatibility: 12920ac_top_builddir=$ac_top_build_prefix 12921 12922case $srcdir in 12923 .) # We are building in place. 12924 ac_srcdir=. 12925 ac_top_srcdir=$ac_top_builddir_sub 12926 ac_abs_top_srcdir=$ac_pwd ;; 12927 [\\/]* | ?:[\\/]* ) # Absolute name. 12928 ac_srcdir=$srcdir$ac_dir_suffix; 12929 ac_top_srcdir=$srcdir 12930 ac_abs_top_srcdir=$srcdir ;; 12931 *) # Relative name. 12932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12933 ac_top_srcdir=$ac_top_build_prefix$srcdir 12934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12935esac 12936ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12937 12938 12939 case $ac_mode in 12940 :F) 12941 # 12942 # CONFIG_FILE 12943 # 12944 12945 case $INSTALL in 12946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12948 esac 12949 ac_MKDIR_P=$MKDIR_P 12950 case $MKDIR_P in 12951 [\\/$]* | ?:[\\/]* ) ;; 12952 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12953 esac 12954_ACEOF 12955 12956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12957# If the template does not know about datarootdir, expand it. 12958# FIXME: This hack should be removed a few years after 2.60. 12959ac_datarootdir_hack=; ac_datarootdir_seen= 12960ac_sed_dataroot=' 12961/datarootdir/ { 12962 p 12963 q 12964} 12965/@datadir@/p 12966/@docdir@/p 12967/@infodir@/p 12968/@localedir@/p 12969/@mandir@/p' 12970case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12971*datarootdir*) ac_datarootdir_seen=yes;; 12972*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12974$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12975_ACEOF 12976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12977 ac_datarootdir_hack=' 12978 s&@datadir@&$datadir&g 12979 s&@docdir@&$docdir&g 12980 s&@infodir@&$infodir&g 12981 s&@localedir@&$localedir&g 12982 s&@mandir@&$mandir&g 12983 s&\\\${datarootdir}&$datarootdir&g' ;; 12984esac 12985_ACEOF 12986 12987# Neutralize VPATH when `$srcdir' = `.'. 12988# Shell code in configure.ac might set extrasub. 12989# FIXME: do we really want to maintain this feature? 12990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12991ac_sed_extra="$ac_vpsub 12992$extrasub 12993_ACEOF 12994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12995:t 12996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12997s|@configure_input@|$ac_sed_conf_input|;t t 12998s&@top_builddir@&$ac_top_builddir_sub&;t t 12999s&@top_build_prefix@&$ac_top_build_prefix&;t t 13000s&@srcdir@&$ac_srcdir&;t t 13001s&@abs_srcdir@&$ac_abs_srcdir&;t t 13002s&@top_srcdir@&$ac_top_srcdir&;t t 13003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13004s&@builddir@&$ac_builddir&;t t 13005s&@abs_builddir@&$ac_abs_builddir&;t t 13006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13007s&@INSTALL@&$ac_INSTALL&;t t 13008s&@MKDIR_P@&$ac_MKDIR_P&;t t 13009$ac_datarootdir_hack 13010" 13011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13012 || as_fn_error "could not create $ac_file" "$LINENO" 5 13013 13014test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13015 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13018which seems to be undefined. Please make sure it is defined." >&5 13019$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13020which seems to be undefined. Please make sure it is defined." >&2;} 13021 13022 rm -f "$tmp/stdin" 13023 case $ac_file in 13024 -) cat "$tmp/out" && rm -f "$tmp/out";; 13025 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13026 esac \ 13027 || as_fn_error "could not create $ac_file" "$LINENO" 5 13028 ;; 13029 :H) 13030 # 13031 # CONFIG_HEADER 13032 # 13033 if test x"$ac_file" != x-; then 13034 { 13035 $as_echo "/* $configure_input */" \ 13036 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13037 } >"$tmp/config.h" \ 13038 || as_fn_error "could not create $ac_file" "$LINENO" 5 13039 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13041$as_echo "$as_me: $ac_file is unchanged" >&6;} 13042 else 13043 rm -f "$ac_file" 13044 mv "$tmp/config.h" "$ac_file" \ 13045 || as_fn_error "could not create $ac_file" "$LINENO" 5 13046 fi 13047 else 13048 $as_echo "/* $configure_input */" \ 13049 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13050 || as_fn_error "could not create -" "$LINENO" 5 13051 fi 13052# Compute "$ac_file"'s index in $config_headers. 13053_am_arg="$ac_file" 13054_am_stamp_count=1 13055for _am_header in $config_headers :; do 13056 case $_am_header in 13057 $_am_arg | $_am_arg:* ) 13058 break ;; 13059 * ) 13060 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13061 esac 13062done 13063echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13064$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13065 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13066 X"$_am_arg" : 'X\(//\)$' \| \ 13067 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13068$as_echo X"$_am_arg" | 13069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13070 s//\1/ 13071 q 13072 } 13073 /^X\(\/\/\)[^/].*/{ 13074 s//\1/ 13075 q 13076 } 13077 /^X\(\/\/\)$/{ 13078 s//\1/ 13079 q 13080 } 13081 /^X\(\/\).*/{ 13082 s//\1/ 13083 q 13084 } 13085 s/.*/./; q'`/stamp-h$_am_stamp_count 13086 ;; 13087 13088 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13089$as_echo "$as_me: executing $ac_file commands" >&6;} 13090 ;; 13091 esac 13092 13093 13094 case $ac_file$ac_mode in 13095 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13096 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13097 # are listed without --file. Let's play safe and only enable the eval 13098 # if we detect the quoting. 13099 case $CONFIG_FILES in 13100 *\'*) eval set x "$CONFIG_FILES" ;; 13101 *) set x $CONFIG_FILES ;; 13102 esac 13103 shift 13104 for mf 13105 do 13106 # Strip MF so we end up with the name of the file. 13107 mf=`echo "$mf" | sed -e 's/:.*$//'` 13108 # Check whether this is an Automake generated Makefile or not. 13109 # We used to match only the files named `Makefile.in', but 13110 # some people rename them; so instead we look at the file content. 13111 # Grep'ing the first line is not enough: some people post-process 13112 # each Makefile.in and add a new line on top of each file to say so. 13113 # Grep'ing the whole file is not good either: AIX grep has a line 13114 # limit of 2048, but all sed's we know have understand at least 4000. 13115 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13116 dirpart=`$as_dirname -- "$mf" || 13117$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13118 X"$mf" : 'X\(//\)[^/]' \| \ 13119 X"$mf" : 'X\(//\)$' \| \ 13120 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13121$as_echo X"$mf" | 13122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13123 s//\1/ 13124 q 13125 } 13126 /^X\(\/\/\)[^/].*/{ 13127 s//\1/ 13128 q 13129 } 13130 /^X\(\/\/\)$/{ 13131 s//\1/ 13132 q 13133 } 13134 /^X\(\/\).*/{ 13135 s//\1/ 13136 q 13137 } 13138 s/.*/./; q'` 13139 else 13140 continue 13141 fi 13142 # Extract the definition of DEPDIR, am__include, and am__quote 13143 # from the Makefile without running `make'. 13144 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13145 test -z "$DEPDIR" && continue 13146 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13147 test -z "am__include" && continue 13148 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13149 # When using ansi2knr, U may be empty or an underscore; expand it 13150 U=`sed -n 's/^U = //p' < "$mf"` 13151 # Find all dependency output files, they are included files with 13152 # $(DEPDIR) in their names. We invoke sed twice because it is the 13153 # simplest approach to changing $(DEPDIR) to its actual value in the 13154 # expansion. 13155 for file in `sed -n " 13156 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13157 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13158 # Make sure the directory exists. 13159 test -f "$dirpart/$file" && continue 13160 fdir=`$as_dirname -- "$file" || 13161$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13162 X"$file" : 'X\(//\)[^/]' \| \ 13163 X"$file" : 'X\(//\)$' \| \ 13164 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13165$as_echo X"$file" | 13166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13167 s//\1/ 13168 q 13169 } 13170 /^X\(\/\/\)[^/].*/{ 13171 s//\1/ 13172 q 13173 } 13174 /^X\(\/\/\)$/{ 13175 s//\1/ 13176 q 13177 } 13178 /^X\(\/\).*/{ 13179 s//\1/ 13180 q 13181 } 13182 s/.*/./; q'` 13183 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13184 # echo "creating $dirpart/$file" 13185 echo '# dummy' > "$dirpart/$file" 13186 done 13187 done 13188} 13189 ;; 13190 "libtool":C) 13191 13192 # See if we are running on zsh, and set the options which allow our 13193 # commands through without removal of \ escapes. 13194 if test -n "${ZSH_VERSION+set}" ; then 13195 setopt NO_GLOB_SUBST 13196 fi 13197 13198 cfgfile="${ofile}T" 13199 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13200 $RM "$cfgfile" 13201 13202 cat <<_LT_EOF >> "$cfgfile" 13203#! $SHELL 13204 13205# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13206# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13207# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13208# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13209# 13210# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13211# 2006, 2007, 2008 Free Software Foundation, Inc. 13212# Written by Gordon Matzigkeit, 1996 13213# 13214# This file is part of GNU Libtool. 13215# 13216# GNU Libtool is free software; you can redistribute it and/or 13217# modify it under the terms of the GNU General Public License as 13218# published by the Free Software Foundation; either version 2 of 13219# the License, or (at your option) any later version. 13220# 13221# As a special exception to the GNU General Public License, 13222# if you distribute this file as part of a program or library that 13223# is built using GNU Libtool, you may include this file under the 13224# same distribution terms that you use for the rest of that program. 13225# 13226# GNU Libtool is distributed in the hope that it will be useful, 13227# but WITHOUT ANY WARRANTY; without even the implied warranty of 13228# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13229# GNU General Public License for more details. 13230# 13231# You should have received a copy of the GNU General Public License 13232# along with GNU Libtool; see the file COPYING. If not, a copy 13233# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13234# obtained by writing to the Free Software Foundation, Inc., 13235# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13236 13237 13238# The names of the tagged configurations supported by this script. 13239available_tags="" 13240 13241# ### BEGIN LIBTOOL CONFIG 13242 13243# Whether or not to build static libraries. 13244build_old_libs=$enable_static 13245 13246# Which release of libtool.m4 was used? 13247macro_version=$macro_version 13248macro_revision=$macro_revision 13249 13250# Whether or not to build shared libraries. 13251build_libtool_libs=$enable_shared 13252 13253# What type of objects to build. 13254pic_mode=$pic_mode 13255 13256# Whether or not to optimize for fast installation. 13257fast_install=$enable_fast_install 13258 13259# The host system. 13260host_alias=$host_alias 13261host=$host 13262host_os=$host_os 13263 13264# The build system. 13265build_alias=$build_alias 13266build=$build 13267build_os=$build_os 13268 13269# A sed program that does not truncate output. 13270SED=$lt_SED 13271 13272# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13273Xsed="\$SED -e 1s/^X//" 13274 13275# A grep program that handles long lines. 13276GREP=$lt_GREP 13277 13278# An ERE matcher. 13279EGREP=$lt_EGREP 13280 13281# A literal string matcher. 13282FGREP=$lt_FGREP 13283 13284# A BSD- or MS-compatible name lister. 13285NM=$lt_NM 13286 13287# Whether we need soft or hard links. 13288LN_S=$lt_LN_S 13289 13290# What is the maximum length of a command? 13291max_cmd_len=$max_cmd_len 13292 13293# Object file suffix (normally "o"). 13294objext=$ac_objext 13295 13296# Executable file suffix (normally ""). 13297exeext=$exeext 13298 13299# whether the shell understands "unset". 13300lt_unset=$lt_unset 13301 13302# turn spaces into newlines. 13303SP2NL=$lt_lt_SP2NL 13304 13305# turn newlines into spaces. 13306NL2SP=$lt_lt_NL2SP 13307 13308# How to create reloadable object files. 13309reload_flag=$lt_reload_flag 13310reload_cmds=$lt_reload_cmds 13311 13312# An object symbol dumper. 13313OBJDUMP=$lt_OBJDUMP 13314 13315# Method to check whether dependent libraries are shared objects. 13316deplibs_check_method=$lt_deplibs_check_method 13317 13318# Command to use when deplibs_check_method == "file_magic". 13319file_magic_cmd=$lt_file_magic_cmd 13320 13321# The archiver. 13322AR=$lt_AR 13323AR_FLAGS=$lt_AR_FLAGS 13324 13325# A symbol stripping program. 13326STRIP=$lt_STRIP 13327 13328# Commands used to install an old-style archive. 13329RANLIB=$lt_RANLIB 13330old_postinstall_cmds=$lt_old_postinstall_cmds 13331old_postuninstall_cmds=$lt_old_postuninstall_cmds 13332 13333# A C compiler. 13334LTCC=$lt_CC 13335 13336# LTCC compiler flags. 13337LTCFLAGS=$lt_CFLAGS 13338 13339# Take the output of nm and produce a listing of raw symbols and C names. 13340global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13341 13342# Transform the output of nm in a proper C declaration. 13343global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13344 13345# Transform the output of nm in a C name address pair. 13346global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13347 13348# Transform the output of nm in a C name address pair when lib prefix is needed. 13349global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13350 13351# The name of the directory that contains temporary libtool files. 13352objdir=$objdir 13353 13354# Shell to use when invoking shell scripts. 13355SHELL=$lt_SHELL 13356 13357# An echo program that does not interpret backslashes. 13358ECHO=$lt_ECHO 13359 13360# Used to examine libraries when file_magic_cmd begins with "file". 13361MAGIC_CMD=$MAGIC_CMD 13362 13363# Must we lock files when doing compilation? 13364need_locks=$lt_need_locks 13365 13366# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13367DSYMUTIL=$lt_DSYMUTIL 13368 13369# Tool to change global to local symbols on Mac OS X. 13370NMEDIT=$lt_NMEDIT 13371 13372# Tool to manipulate fat objects and archives on Mac OS X. 13373LIPO=$lt_LIPO 13374 13375# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13376OTOOL=$lt_OTOOL 13377 13378# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13379OTOOL64=$lt_OTOOL64 13380 13381# Old archive suffix (normally "a"). 13382libext=$libext 13383 13384# Shared library suffix (normally ".so"). 13385shrext_cmds=$lt_shrext_cmds 13386 13387# The commands to extract the exported symbol list from a shared archive. 13388extract_expsyms_cmds=$lt_extract_expsyms_cmds 13389 13390# Variables whose values should be saved in libtool wrapper scripts and 13391# restored at link time. 13392variables_saved_for_relink=$lt_variables_saved_for_relink 13393 13394# Do we need the "lib" prefix for modules? 13395need_lib_prefix=$need_lib_prefix 13396 13397# Do we need a version for libraries? 13398need_version=$need_version 13399 13400# Library versioning type. 13401version_type=$version_type 13402 13403# Shared library runtime path variable. 13404runpath_var=$runpath_var 13405 13406# Shared library path variable. 13407shlibpath_var=$shlibpath_var 13408 13409# Is shlibpath searched before the hard-coded library search path? 13410shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13411 13412# Format of library name prefix. 13413libname_spec=$lt_libname_spec 13414 13415# List of archive names. First name is the real one, the rest are links. 13416# The last name is the one that the linker finds with -lNAME 13417library_names_spec=$lt_library_names_spec 13418 13419# The coded name of the library, if different from the real name. 13420soname_spec=$lt_soname_spec 13421 13422# Command to use after installation of a shared archive. 13423postinstall_cmds=$lt_postinstall_cmds 13424 13425# Command to use after uninstallation of a shared archive. 13426postuninstall_cmds=$lt_postuninstall_cmds 13427 13428# Commands used to finish a libtool library installation in a directory. 13429finish_cmds=$lt_finish_cmds 13430 13431# As "finish_cmds", except a single script fragment to be evaled but 13432# not shown. 13433finish_eval=$lt_finish_eval 13434 13435# Whether we should hardcode library paths into libraries. 13436hardcode_into_libs=$hardcode_into_libs 13437 13438# Compile-time system search path for libraries. 13439sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13440 13441# Run-time system search path for libraries. 13442sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13443 13444# Whether dlopen is supported. 13445dlopen_support=$enable_dlopen 13446 13447# Whether dlopen of programs is supported. 13448dlopen_self=$enable_dlopen_self 13449 13450# Whether dlopen of statically linked programs is supported. 13451dlopen_self_static=$enable_dlopen_self_static 13452 13453# Commands to strip libraries. 13454old_striplib=$lt_old_striplib 13455striplib=$lt_striplib 13456 13457 13458# The linker used to build libraries. 13459LD=$lt_LD 13460 13461# Commands used to build an old-style archive. 13462old_archive_cmds=$lt_old_archive_cmds 13463 13464# A language specific compiler. 13465CC=$lt_compiler 13466 13467# Is the compiler the GNU compiler? 13468with_gcc=$GCC 13469 13470# Compiler flag to turn off builtin functions. 13471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13472 13473# How to pass a linker flag through the compiler. 13474wl=$lt_lt_prog_compiler_wl 13475 13476# Additional compiler flags for building library objects. 13477pic_flag=$lt_lt_prog_compiler_pic 13478 13479# Compiler flag to prevent dynamic linking. 13480link_static_flag=$lt_lt_prog_compiler_static 13481 13482# Does compiler simultaneously support -c and -o options? 13483compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13484 13485# Whether or not to add -lc for building shared libraries. 13486build_libtool_need_lc=$archive_cmds_need_lc 13487 13488# Whether or not to disallow shared libs when runtime libs are static. 13489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13490 13491# Compiler flag to allow reflexive dlopens. 13492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13493 13494# Compiler flag to generate shared objects directly from archives. 13495whole_archive_flag_spec=$lt_whole_archive_flag_spec 13496 13497# Whether the compiler copes with passing no objects directly. 13498compiler_needs_object=$lt_compiler_needs_object 13499 13500# Create an old-style archive from a shared archive. 13501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13502 13503# Create a temporary old-style archive to link instead of a shared archive. 13504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13505 13506# Commands used to build a shared archive. 13507archive_cmds=$lt_archive_cmds 13508archive_expsym_cmds=$lt_archive_expsym_cmds 13509 13510# Commands used to build a loadable module if different from building 13511# a shared archive. 13512module_cmds=$lt_module_cmds 13513module_expsym_cmds=$lt_module_expsym_cmds 13514 13515# Whether we are building with GNU ld or not. 13516with_gnu_ld=$lt_with_gnu_ld 13517 13518# Flag that allows shared libraries with undefined symbols to be built. 13519allow_undefined_flag=$lt_allow_undefined_flag 13520 13521# Flag that enforces no undefined symbols. 13522no_undefined_flag=$lt_no_undefined_flag 13523 13524# Flag to hardcode \$libdir into a binary during linking. 13525# This must work even if \$libdir does not exist 13526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13527 13528# If ld is used when linking, flag to hardcode \$libdir into a binary 13529# during linking. This must work even if \$libdir does not exist. 13530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13531 13532# Whether we need a single "-rpath" flag with a separated argument. 13533hardcode_libdir_separator=$lt_hardcode_libdir_separator 13534 13535# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13536# DIR into the resulting binary. 13537hardcode_direct=$hardcode_direct 13538 13539# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13540# DIR into the resulting binary and the resulting library dependency is 13541# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13542# library is relocated. 13543hardcode_direct_absolute=$hardcode_direct_absolute 13544 13545# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13546# into the resulting binary. 13547hardcode_minus_L=$hardcode_minus_L 13548 13549# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13550# into the resulting binary. 13551hardcode_shlibpath_var=$hardcode_shlibpath_var 13552 13553# Set to "yes" if building a shared library automatically hardcodes DIR 13554# into the library and all subsequent libraries and executables linked 13555# against it. 13556hardcode_automatic=$hardcode_automatic 13557 13558# Set to yes if linker adds runtime paths of dependent libraries 13559# to runtime path list. 13560inherit_rpath=$inherit_rpath 13561 13562# Whether libtool must link a program against all its dependency libraries. 13563link_all_deplibs=$link_all_deplibs 13564 13565# Fix the shell variable \$srcfile for the compiler. 13566fix_srcfile_path=$lt_fix_srcfile_path 13567 13568# Set to "yes" if exported symbols are required. 13569always_export_symbols=$always_export_symbols 13570 13571# The commands to list exported symbols. 13572export_symbols_cmds=$lt_export_symbols_cmds 13573 13574# Symbols that should not be listed in the preloaded symbols. 13575exclude_expsyms=$lt_exclude_expsyms 13576 13577# Symbols that must always be exported. 13578include_expsyms=$lt_include_expsyms 13579 13580# Commands necessary for linking programs (against libraries) with templates. 13581prelink_cmds=$lt_prelink_cmds 13582 13583# Specify filename containing input files. 13584file_list_spec=$lt_file_list_spec 13585 13586# How to hardcode a shared library path into an executable. 13587hardcode_action=$hardcode_action 13588 13589# ### END LIBTOOL CONFIG 13590 13591_LT_EOF 13592 13593 case $host_os in 13594 aix3*) 13595 cat <<\_LT_EOF >> "$cfgfile" 13596# AIX sometimes has problems with the GCC collect2 program. For some 13597# reason, if we set the COLLECT_NAMES environment variable, the problems 13598# vanish in a puff of smoke. 13599if test "X${COLLECT_NAMES+set}" != Xset; then 13600 COLLECT_NAMES= 13601 export COLLECT_NAMES 13602fi 13603_LT_EOF 13604 ;; 13605 esac 13606 13607 13608ltmain="$ac_aux_dir/ltmain.sh" 13609 13610 13611 # We use sed instead of cat because bash on DJGPP gets confused if 13612 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13613 # text mode, it properly converts lines to CR/LF. This bash problem 13614 # is reportedly fixed, but why not run on old versions too? 13615 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13616 || (rm -f "$cfgfile"; exit 1) 13617 13618 case $xsi_shell in 13619 yes) 13620 cat << \_LT_EOF >> "$cfgfile" 13621 13622# func_dirname file append nondir_replacement 13623# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13624# otherwise set result to NONDIR_REPLACEMENT. 13625func_dirname () 13626{ 13627 case ${1} in 13628 */*) func_dirname_result="${1%/*}${2}" ;; 13629 * ) func_dirname_result="${3}" ;; 13630 esac 13631} 13632 13633# func_basename file 13634func_basename () 13635{ 13636 func_basename_result="${1##*/}" 13637} 13638 13639# func_dirname_and_basename file append nondir_replacement 13640# perform func_basename and func_dirname in a single function 13641# call: 13642# dirname: Compute the dirname of FILE. If nonempty, 13643# add APPEND to the result, otherwise set result 13644# to NONDIR_REPLACEMENT. 13645# value returned in "$func_dirname_result" 13646# basename: Compute filename of FILE. 13647# value retuned in "$func_basename_result" 13648# Implementation must be kept synchronized with func_dirname 13649# and func_basename. For efficiency, we do not delegate to 13650# those functions but instead duplicate the functionality here. 13651func_dirname_and_basename () 13652{ 13653 case ${1} in 13654 */*) func_dirname_result="${1%/*}${2}" ;; 13655 * ) func_dirname_result="${3}" ;; 13656 esac 13657 func_basename_result="${1##*/}" 13658} 13659 13660# func_stripname prefix suffix name 13661# strip PREFIX and SUFFIX off of NAME. 13662# PREFIX and SUFFIX must not contain globbing or regex special 13663# characters, hashes, percent signs, but SUFFIX may contain a leading 13664# dot (in which case that matches only a dot). 13665func_stripname () 13666{ 13667 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13668 # positional parameters, so assign one to ordinary parameter first. 13669 func_stripname_result=${3} 13670 func_stripname_result=${func_stripname_result#"${1}"} 13671 func_stripname_result=${func_stripname_result%"${2}"} 13672} 13673 13674# func_opt_split 13675func_opt_split () 13676{ 13677 func_opt_split_opt=${1%%=*} 13678 func_opt_split_arg=${1#*=} 13679} 13680 13681# func_lo2o object 13682func_lo2o () 13683{ 13684 case ${1} in 13685 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13686 *) func_lo2o_result=${1} ;; 13687 esac 13688} 13689 13690# func_xform libobj-or-source 13691func_xform () 13692{ 13693 func_xform_result=${1%.*}.lo 13694} 13695 13696# func_arith arithmetic-term... 13697func_arith () 13698{ 13699 func_arith_result=$(( $* )) 13700} 13701 13702# func_len string 13703# STRING may not start with a hyphen. 13704func_len () 13705{ 13706 func_len_result=${#1} 13707} 13708 13709_LT_EOF 13710 ;; 13711 *) # Bourne compatible functions. 13712 cat << \_LT_EOF >> "$cfgfile" 13713 13714# func_dirname file append nondir_replacement 13715# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13716# otherwise set result to NONDIR_REPLACEMENT. 13717func_dirname () 13718{ 13719 # Extract subdirectory from the argument. 13720 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13721 if test "X$func_dirname_result" = "X${1}"; then 13722 func_dirname_result="${3}" 13723 else 13724 func_dirname_result="$func_dirname_result${2}" 13725 fi 13726} 13727 13728# func_basename file 13729func_basename () 13730{ 13731 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13732} 13733 13734 13735# func_stripname prefix suffix name 13736# strip PREFIX and SUFFIX off of NAME. 13737# PREFIX and SUFFIX must not contain globbing or regex special 13738# characters, hashes, percent signs, but SUFFIX may contain a leading 13739# dot (in which case that matches only a dot). 13740# func_strip_suffix prefix name 13741func_stripname () 13742{ 13743 case ${2} in 13744 .*) func_stripname_result=`$ECHO "X${3}" \ 13745 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13746 *) func_stripname_result=`$ECHO "X${3}" \ 13747 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13748 esac 13749} 13750 13751# sed scripts: 13752my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13753my_sed_long_arg='1s/^-[^=]*=//' 13754 13755# func_opt_split 13756func_opt_split () 13757{ 13758 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13759 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13760} 13761 13762# func_lo2o object 13763func_lo2o () 13764{ 13765 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13766} 13767 13768# func_xform libobj-or-source 13769func_xform () 13770{ 13771 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13772} 13773 13774# func_arith arithmetic-term... 13775func_arith () 13776{ 13777 func_arith_result=`expr "$@"` 13778} 13779 13780# func_len string 13781# STRING may not start with a hyphen. 13782func_len () 13783{ 13784 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13785} 13786 13787_LT_EOF 13788esac 13789 13790case $lt_shell_append in 13791 yes) 13792 cat << \_LT_EOF >> "$cfgfile" 13793 13794# func_append var value 13795# Append VALUE to the end of shell variable VAR. 13796func_append () 13797{ 13798 eval "$1+=\$2" 13799} 13800_LT_EOF 13801 ;; 13802 *) 13803 cat << \_LT_EOF >> "$cfgfile" 13804 13805# func_append var value 13806# Append VALUE to the end of shell variable VAR. 13807func_append () 13808{ 13809 eval "$1=\$$1\$2" 13810} 13811 13812_LT_EOF 13813 ;; 13814 esac 13815 13816 13817 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13818 || (rm -f "$cfgfile"; exit 1) 13819 13820 mv -f "$cfgfile" "$ofile" || 13821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13822 chmod +x "$ofile" 13823 13824 ;; 13825 13826 esac 13827done # for ac_tag 13828 13829 13830as_fn_exit 0 13831_ACEOF 13832ac_clean_files=$ac_clean_files_save 13833 13834test $ac_write_fail = 0 || 13835 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13836 13837 13838# configure is writing to config.log, and then calls config.status. 13839# config.status does its own redirection, appending to config.log. 13840# Unfortunately, on DOS this fails, as config.log is still kept open 13841# by configure, so config.status won't be able to write to it; its 13842# output is simply discarded. So we exec the FD to /dev/null, 13843# effectively closing config.log, so it can be properly (re)opened and 13844# appended to by config.status. When coming back to configure, we 13845# need to make the FD available again. 13846if test "$no_create" != yes; then 13847 ac_cs_success=: 13848 ac_config_status_args= 13849 test "$silent" = yes && 13850 ac_config_status_args="$ac_config_status_args --quiet" 13851 exec 5>/dev/null 13852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13853 exec 5>>config.log 13854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13855 # would make configure fail if this is the last instruction. 13856 $ac_cs_success || as_fn_exit $? 13857fi 13858if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13860$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13861fi 13862 13863